{"version":3,"sources":["node_modules/tiny-emitter/index.js","node_modules/cross-fetch/dist/browser-ponyfill.js","node_modules/p-cancelable/index.js","src/environments/environment.prod.ts","node_modules/lodash-es/_freeGlobal.js","node_modules/lodash-es/_root.js","node_modules/lodash-es/_Symbol.js","node_modules/lodash-es/_getRawTag.js","node_modules/lodash-es/_objectToString.js","node_modules/lodash-es/_baseGetTag.js","node_modules/lodash-es/_overArg.js","node_modules/lodash-es/_getPrototype.js","node_modules/lodash-es/isObjectLike.js","node_modules/lodash-es/isPlainObject.js","node_modules/lodash-es/isObject.js","node_modules/lodash-es/isFunction.js","node_modules/lodash-es/_coreJsData.js","node_modules/lodash-es/_isMasked.js","node_modules/lodash-es/_toSource.js","node_modules/lodash-es/_baseIsNative.js","node_modules/lodash-es/_getValue.js","node_modules/lodash-es/_getNative.js","node_modules/lodash-es/_defineProperty.js","node_modules/lodash-es/_baseAssignValue.js","node_modules/lodash-es/_arrayAggregator.js","node_modules/lodash-es/_createBaseFor.js","node_modules/lodash-es/_baseFor.js","node_modules/lodash-es/_baseTimes.js","node_modules/lodash-es/_baseIsArguments.js","node_modules/lodash-es/isArguments.js","node_modules/lodash-es/isArray.js","node_modules/lodash-es/stubFalse.js","node_modules/lodash-es/isBuffer.js","node_modules/lodash-es/_isIndex.js","node_modules/lodash-es/isLength.js","node_modules/lodash-es/_baseIsTypedArray.js","node_modules/lodash-es/_baseUnary.js","node_modules/lodash-es/_nodeUtil.js","node_modules/lodash-es/isTypedArray.js","node_modules/lodash-es/_arrayLikeKeys.js","node_modules/lodash-es/_isPrototype.js","node_modules/lodash-es/_nativeKeys.js","node_modules/lodash-es/_baseKeys.js","node_modules/lodash-es/isArrayLike.js","node_modules/lodash-es/keys.js","node_modules/lodash-es/_baseForOwn.js","node_modules/lodash-es/_createBaseEach.js","node_modules/lodash-es/_baseEach.js","node_modules/lodash-es/_baseAggregator.js","node_modules/lodash-es/_listCacheClear.js","node_modules/lodash-es/eq.js","node_modules/lodash-es/_assocIndexOf.js","node_modules/lodash-es/_listCacheDelete.js","node_modules/lodash-es/_listCacheGet.js","node_modules/lodash-es/_listCacheHas.js","node_modules/lodash-es/_listCacheSet.js","node_modules/lodash-es/_ListCache.js","node_modules/lodash-es/_stackClear.js","node_modules/lodash-es/_stackDelete.js","node_modules/lodash-es/_stackGet.js","node_modules/lodash-es/_stackHas.js","node_modules/lodash-es/_Map.js","node_modules/lodash-es/_nativeCreate.js","node_modules/lodash-es/_hashClear.js","node_modules/lodash-es/_hashDelete.js","node_modules/lodash-es/_hashGet.js","node_modules/lodash-es/_hashHas.js","node_modules/lodash-es/_hashSet.js","node_modules/lodash-es/_Hash.js","node_modules/lodash-es/_mapCacheClear.js","node_modules/lodash-es/_isKeyable.js","node_modules/lodash-es/_getMapData.js","node_modules/lodash-es/_mapCacheDelete.js","node_modules/lodash-es/_mapCacheGet.js","node_modules/lodash-es/_mapCacheHas.js","node_modules/lodash-es/_mapCacheSet.js","node_modules/lodash-es/_MapCache.js","node_modules/lodash-es/_stackSet.js","node_modules/lodash-es/_Stack.js","node_modules/lodash-es/_setCacheAdd.js","node_modules/lodash-es/_setCacheHas.js","node_modules/lodash-es/_SetCache.js","node_modules/lodash-es/_arraySome.js","node_modules/lodash-es/_cacheHas.js","node_modules/lodash-es/_equalArrays.js","node_modules/lodash-es/_Uint8Array.js","node_modules/lodash-es/_mapToArray.js","node_modules/lodash-es/_setToArray.js","node_modules/lodash-es/_equalByTag.js","node_modules/lodash-es/_arrayPush.js","node_modules/lodash-es/_baseGetAllKeys.js","node_modules/lodash-es/_arrayFilter.js","node_modules/lodash-es/stubArray.js","node_modules/lodash-es/_getSymbols.js","node_modules/lodash-es/_getAllKeys.js","node_modules/lodash-es/_equalObjects.js","node_modules/lodash-es/_DataView.js","node_modules/lodash-es/_Promise.js","node_modules/lodash-es/_Set.js","node_modules/lodash-es/_WeakMap.js","node_modules/lodash-es/_getTag.js","node_modules/lodash-es/_baseIsEqualDeep.js","node_modules/lodash-es/_baseIsEqual.js","node_modules/lodash-es/_baseIsMatch.js","node_modules/lodash-es/_isStrictComparable.js","node_modules/lodash-es/_getMatchData.js","node_modules/lodash-es/_matchesStrictComparable.js","node_modules/lodash-es/_baseMatches.js","node_modules/lodash-es/isSymbol.js","node_modules/lodash-es/_isKey.js","node_modules/lodash-es/memoize.js","node_modules/lodash-es/_memoizeCapped.js","node_modules/lodash-es/_stringToPath.js","node_modules/lodash-es/_arrayMap.js","node_modules/lodash-es/_baseToString.js","node_modules/lodash-es/toString.js","node_modules/lodash-es/_castPath.js","node_modules/lodash-es/_toKey.js","node_modules/lodash-es/_baseGet.js","node_modules/lodash-es/get.js","node_modules/lodash-es/_baseHasIn.js","node_modules/lodash-es/_hasPath.js","node_modules/lodash-es/hasIn.js","node_modules/lodash-es/_baseMatchesProperty.js","node_modules/lodash-es/identity.js","node_modules/lodash-es/_baseProperty.js","node_modules/lodash-es/_basePropertyDeep.js","node_modules/lodash-es/property.js","node_modules/lodash-es/_baseIteratee.js","node_modules/lodash-es/_createAggregator.js","node_modules/lodash-es/groupBy.js","node_modules/lodash-es/isEqual.js","node_modules/lodash-es/_isFlattenable.js","node_modules/lodash-es/_baseFlatten.js","node_modules/lodash-es/_baseMap.js","node_modules/lodash-es/_baseSortBy.js","node_modules/lodash-es/_compareAscending.js","node_modules/lodash-es/_compareMultiple.js","node_modules/lodash-es/_baseOrderBy.js","node_modules/lodash-es/_apply.js","node_modules/lodash-es/_overRest.js","node_modules/lodash-es/constant.js","node_modules/lodash-es/_baseSetToString.js","node_modules/lodash-es/_shortOut.js","node_modules/lodash-es/_setToString.js","node_modules/lodash-es/_baseRest.js","node_modules/lodash-es/_isIterateeCall.js","node_modules/lodash-es/sortBy.js","node_modules/lodash-es/_baseFindIndex.js","node_modules/lodash-es/_baseIsNaN.js","node_modules/lodash-es/_strictIndexOf.js","node_modules/lodash-es/_baseIndexOf.js","node_modules/lodash-es/_arrayIncludes.js","node_modules/lodash-es/_arrayIncludesWith.js","node_modules/lodash-es/noop.js","node_modules/lodash-es/_createSet.js","node_modules/lodash-es/_baseUniq.js","node_modules/lodash-es/uniqBy.js","node_modules/lodash-es/_trimmedEndIndex.js","node_modules/lodash-es/_baseTrim.js","node_modules/lodash-es/toNumber.js","node_modules/lodash-es/toFinite.js","node_modules/lodash-es/toInteger.js","node_modules/lodash-es/_baseCreate.js","node_modules/lodash-es/_copyArray.js","node_modules/lodash-es/_arrayEach.js","node_modules/lodash-es/_assignValue.js","node_modules/lodash-es/_copyObject.js","node_modules/lodash-es/_nativeKeysIn.js","node_modules/lodash-es/_baseKeysIn.js","node_modules/lodash-es/keysIn.js","node_modules/lodash-es/flatten.js","node_modules/lodash-es/_baseSlice.js","node_modules/lodash-es/_castSlice.js","node_modules/lodash-es/_hasUnicode.js","node_modules/lodash-es/_asciiToArray.js","node_modules/lodash-es/_unicodeToArray.js","node_modules/lodash-es/_stringToArray.js","node_modules/lodash-es/_createCaseFirst.js","node_modules/lodash-es/upperFirst.js","node_modules/lodash-es/capitalize.js","node_modules/lodash-es/_arrayReduce.js","node_modules/lodash-es/_basePropertyOf.js","node_modules/lodash-es/_deburrLetter.js","node_modules/lodash-es/deburr.js","node_modules/lodash-es/_asciiWords.js","node_modules/lodash-es/_hasUnicodeWord.js","node_modules/lodash-es/_unicodeWords.js","node_modules/lodash-es/words.js","node_modules/lodash-es/_createCompounder.js","node_modules/lodash-es/camelCase.js","node_modules/lodash-es/_createRound.js","node_modules/lodash-es/_baseAssign.js","node_modules/lodash-es/_baseAssignIn.js","node_modules/lodash-es/_cloneBuffer.js","node_modules/lodash-es/_copySymbols.js","node_modules/lodash-es/_getSymbolsIn.js","node_modules/lodash-es/_copySymbolsIn.js","node_modules/lodash-es/_getAllKeysIn.js","node_modules/lodash-es/_initCloneArray.js","node_modules/lodash-es/_cloneArrayBuffer.js","node_modules/lodash-es/_cloneDataView.js","node_modules/lodash-es/_cloneRegExp.js","node_modules/lodash-es/_cloneSymbol.js","node_modules/lodash-es/_cloneTypedArray.js","node_modules/lodash-es/_initCloneByTag.js","node_modules/lodash-es/_initCloneObject.js","node_modules/lodash-es/_baseIsMap.js","node_modules/lodash-es/isMap.js","node_modules/lodash-es/_baseIsSet.js","node_modules/lodash-es/isSet.js","node_modules/lodash-es/_baseClone.js","node_modules/lodash-es/cloneDeep.js","node_modules/lodash-es/now.js","node_modules/lodash-es/debounce.js","node_modules/lodash-es/isArrayLikeObject.js","node_modules/lodash-es/_baseDifference.js","node_modules/lodash-es/last.js","node_modules/lodash-es/head.js","node_modules/lodash-es/map.js","node_modules/lodash-es/flatMap.js","node_modules/lodash-es/isString.js","node_modules/lodash-es/isBoolean.js","node_modules/lodash-es/isEmpty.js","node_modules/lodash-es/isNumber.js","node_modules/lodash-es/isNaN.js","node_modules/lodash-es/_baseIsRegExp.js","node_modules/lodash-es/isRegExp.js","node_modules/lodash-es/_baseSum.js","node_modules/lodash-es/negate.js","node_modules/lodash-es/_baseSet.js","node_modules/lodash-es/_basePickBy.js","node_modules/lodash-es/pickBy.js","node_modules/lodash-es/omitBy.js","node_modules/lodash-es/orderBy.js","node_modules/lodash-es/_asciiSize.js","node_modules/lodash-es/_unicodeSize.js","node_modules/lodash-es/_stringSize.js","node_modules/lodash-es/round.js","node_modules/lodash-es/set.js","node_modules/lodash-es/sum.js","node_modules/lodash-es/throttle.js","node_modules/lodash-es/truncate.js","node_modules/lodash-es/union.js","node_modules/lodash-es/uniq.js","node_modules/lodash-es/_baseXor.js","node_modules/lodash-es/xorWith.js","src/util/rxjs/operators/null-or-map.ts","src/util/rxjs/operators/null-or-switch-map.ts","src/util/rxjs/operators/if-then.ts","src/util/rxjs/operators/value-or-switch-map.ts","src/util/rxjs/operators/with-default.ts","node_modules/@angular/core/fesm2022/rxjs-interop.mjs","node_modules/@ngrx/store/fesm2022/ngrx-store.mjs","node_modules/immutable/dist/immutable.es.js","src/util/rxjs/observables/combine-map.ts","src/util/rxjs/observables/firstValue.ts","src/util/rxjs/observables/countdown-in-seconds.ts","node_modules/ts-invariant/lib/invariant.js","node_modules/@apollo/client/utilities/globals/maybe.js","node_modules/@apollo/client/utilities/globals/global.js","node_modules/@apollo/client/utilities/globals/DEV.js","node_modules/ts-invariant/process/index.js","node_modules/graphql/jsutils/isObjectLike.mjs","node_modules/graphql/polyfills/symbols.mjs","node_modules/graphql/language/location.mjs","node_modules/graphql/language/printLocation.mjs","node_modules/graphql/error/GraphQLError.mjs","node_modules/graphql/error/syntaxError.mjs","node_modules/graphql/language/kinds.mjs","node_modules/graphql/jsutils/invariant.mjs","node_modules/graphql/jsutils/nodejsCustomInspectSymbol.mjs","node_modules/graphql/jsutils/defineInspect.mjs","node_modules/graphql/language/ast.mjs","node_modules/graphql/language/tokenKind.mjs","node_modules/graphql/jsutils/inspect.mjs","node_modules/graphql/jsutils/devAssert.mjs","node_modules/graphql/jsutils/instanceOf.mjs","node_modules/graphql/language/source.mjs","node_modules/graphql/language/directiveLocation.mjs","node_modules/graphql/language/blockString.mjs","node_modules/graphql/language/lexer.mjs","node_modules/graphql/language/parser.mjs","node_modules/graphql/language/visitor.mjs","node_modules/graphql/language/printer.mjs","node_modules/graphql/language/predicates.mjs","node_modules/@apollo/client/utilities/globals/fix-graphql.js","node_modules/@apollo/client/utilities/globals/index.js","node_modules/@apollo/client/utilities/graphql/directives.js","node_modules/@apollo/client/utilities/graphql/fragments.js","node_modules/@apollo/client/utilities/common/objects.js","node_modules/@apollo/client/utilities/graphql/storeUtils.js","node_modules/@apollo/client/utilities/graphql/getFromAST.js","node_modules/@apollo/client/utilities/common/filterInPlace.js","node_modules/@apollo/client/utilities/graphql/transform.js","node_modules/@apollo/client/utilities/common/mergeDeep.js","node_modules/zen-observable-ts/module.js","node_modules/symbol-observable/es/ponyfill.js","node_modules/symbol-observable/es/index.js","node_modules/@apollo/client/utilities/observables/Observable.js","node_modules/@apollo/client/utilities/common/cloneDeep.js","node_modules/@apollo/client/utilities/common/maybeDeepFreeze.js","node_modules/@apollo/client/utilities/observables/iteration.js","node_modules/@apollo/client/utilities/observables/asyncMap.js","node_modules/@apollo/client/utilities/common/canUse.js","node_modules/@apollo/client/utilities/observables/subclassing.js","node_modules/@apollo/client/utilities/observables/Concast.js","node_modules/@apollo/client/utilities/common/arrays.js","node_modules/@apollo/client/utilities/common/incrementalResult.js","node_modules/@apollo/client/utilities/common/errorHandling.js","node_modules/@apollo/client/utilities/common/compact.js","node_modules/@apollo/client/utilities/common/makeUniqueId.js","node_modules/@apollo/client/utilities/common/stringifyForDisplay.js","node_modules/@apollo/client/utilities/common/mergeOptions.js","node_modules/@apollo/client/link/utils/fromError.js","node_modules/@apollo/client/link/utils/throwServerError.js","node_modules/@apollo/client/link/utils/validateOperation.js","node_modules/@apollo/client/link/utils/createOperation.js","node_modules/@apollo/client/link/utils/transformOperation.js","node_modules/@apollo/client/link/core/ApolloLink.js","node_modules/@apollo/client/link/core/execute.js","node_modules/@apollo/client/version.js","node_modules/@apollo/client/utilities/common/responseIterator.js","node_modules/@apollo/client/link/http/iterators/async.js","node_modules/@apollo/client/link/http/iterators/nodeStream.js","node_modules/@apollo/client/link/http/iterators/promise.js","node_modules/@apollo/client/link/http/iterators/reader.js","node_modules/@apollo/client/link/http/responseIterator.js","node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js","node_modules/@apollo/client/link/http/serializeFetchParameter.js","node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js","node_modules/@apollo/client/link/http/checkFetcher.js","node_modules/@apollo/client/link/http/createSignalIfSupported.js","node_modules/@apollo/client/link/http/selectURI.js","node_modules/@apollo/client/link/http/rewriteURIForGET.js","node_modules/@apollo/client/link/http/createHttpLink.js","node_modules/@apollo/client/link/http/HttpLink.js","node_modules/@wry/equality/lib/index.js","node_modules/@wry/trie/lib/trie.esm.js","node_modules/@wry/context/lib/slot.js","node_modules/@wry/context/lib/index.js","node_modules/optimism/lib/bundle.esm.js","node_modules/@apollo/client/cache/core/cache.js","node_modules/@apollo/client/cache/core/types/common.js","node_modules/@apollo/client/cache/inmemory/helpers.js","node_modules/@apollo/client/cache/inmemory/entityStore.js","node_modules/@apollo/client/cache/inmemory/object-canon.js","node_modules/@apollo/client/cache/inmemory/readFromStore.js","node_modules/@apollo/client/cache/inmemory/reactiveVars.js","node_modules/@apollo/client/cache/inmemory/key-extractor.js","node_modules/@apollo/client/cache/inmemory/policies.js","node_modules/@apollo/client/cache/inmemory/writeToStore.js","node_modules/@apollo/client/cache/inmemory/inMemoryCache.js","node_modules/@apollo/client/errors/index.js","node_modules/@apollo/client/core/networkStatus.js","node_modules/@apollo/client/core/ObservableQuery.js","node_modules/@apollo/client/core/LocalState.js","node_modules/@apollo/client/core/QueryInfo.js","node_modules/@apollo/client/core/QueryManager.js","node_modules/@apollo/client/core/ApolloClient.js","node_modules/graphql-tag/lib/index.js","node_modules/@apollo/client/core/index.js","node_modules/apollo-angular/fesm2022/ngApollo.mjs","src/graphql/generated/graphql.generated.ts","src/store/generated/accessible-item-record.generated.ts","src/store/generated/out-of-service-event-record.generated.ts","src/store/generated/out-of-service-reason-record.generated.ts","src/store/generated/out-of-service-secondary-reason-record.generated.ts","src/store/generated/unit-shift-summary-record.generated.ts","src/store/generated/out-of-service-event-summary-record.generated.ts","src/store/generated/unit-position-summary-record.generated.ts","src/store/generated/unit-summary-record.generated.ts","src/store/generated/waypoint-summary-record.generated.ts","src/store/generated/position-report-summary-record.generated.ts","src/store/generated/coordinates-record.generated.ts","src/store/generated/vehicle-summary-record.generated.ts","src/store/generated/vehicle-position-summary-record.generated.ts","src/util/rxjs/operators/share-replay-safe.ts","src/util/cache.ts","src/lib/tcs-app-insights/app-insights-util.ts","src/util/entity-store/entity-store.actions.ts","src/store/generated/address-record.generated.ts","src/store/generated/id-list-item-record.generated.ts","src/store/generated/activation-rule-record.generated.ts","src/store/generated/active-alert-record.generated.ts","src/store/generated/active-timeline-record.generated.ts","src/store/generated/alert-record.generated.ts","src/store/generated/application-notification-record.generated.ts","src/store/generated/assignment-delayed-reason-record.generated.ts","src/store/generated/cancellation-category-record.generated.ts","src/store/generated/cancellation-reason-record.generated.ts","src/store/generated/cancellation-secondary-reason-record.generated.ts","src/store/generated/card-record.generated.ts","src/store/generated/card-link-record.generated.ts","src/store/generated/card-note-archive-record.generated.ts","src/store/generated/card-note-record.generated.ts","src/store/generated/card-re-open-reason-record.generated.ts","src/store/generated/operation-summary-record.generated.ts","src/store/generated/requester-summary-record.generated.ts","src/store/generated/request-location-summary-record.generated.ts","src/store/generated/request-summary-record.generated.ts","src/store/generated/request-patient-summary-record.generated.ts","src/store/generated/card-summary-record.generated.ts","src/store/generated/configuration-setting-record.generated.ts","src/store/generated/decline-category-record.generated.ts","src/store/generated/decline-reason-record.generated.ts","src/store/generated/decline-secondary-reason-record.generated.ts","src/store/generated/diversion-reason-record.generated.ts","src/store/generated/escort-request-record.generated.ts","src/store/generated/estimated-duration-record.generated.ts","src/store/generated/eta-record.generated.ts","src/store/generated/external-action-record.generated.ts","src/store/generated/external-action-type-record.generated.ts","src/store/generated/external-system-unit-record.generated.ts","src/store/generated/facility-non-acceptance-reason-record.generated.ts","src/store/generated/firewall-rule-record.generated.ts","src/store/generated/flight-following-report-record.generated.ts","src/store/generated/landing-zone-out-of-service-reason-record.generated.ts","src/store/generated/location-hazard-attachment-record.generated.ts","src/store/generated/location-hazard-record.generated.ts","src/store/generated/manifest-entry-record.generated.ts","src/store/generated/medical-control-contact-log-entry-record.generated.ts","src/store/generated/message-status-update-record.generated.ts","src/store/generated/next-due-type-record.generated.ts","src/store/generated/non-referral-reason-record.generated.ts","src/store/generated/notification-record.generated.ts","src/store/generated/notification-group-record.generated.ts","src/store/generated/notification-group-member-record.generated.ts","src/store/generated/notification-recipient-record.generated.ts","src/store/generated/notification-subscription-record.generated.ts","src/store/generated/notification-template-record.generated.ts","src/store/generated/oem-activity-record.generated.ts","src/store/generated/oem-asset-record.generated.ts","src/store/generated/oem-plan-change-request-record.generated.ts","src/store/generated/oem-plan-record.generated.ts","src/store/generated/preferred-unit-record.generated.ts","src/store/generated/offer-algorithm-record.generated.ts","src/store/generated/operation-record.generated.ts","src/store/generated/out-of-service-event-note-record.generated.ts","src/store/generated/passdown-log-acknowledgement-record.generated.ts","src/store/generated/passdown-log-record.generated.ts","src/store/generated/patient-record.generated.ts","src/store/generated/position-report-alert-record.generated.ts","src/store/generated/position-report-archive-record.generated.ts","src/store/generated/position-report-record.generated.ts","src/store/generated/question-choice-record.generated.ts","src/store/generated/question-record.generated.ts","src/store/generated/questionnaire-record.generated.ts","src/store/generated/questionnaire-question-response-record.generated.ts","src/store/generated/questionnaire-question-response-note-record.generated.ts","src/store/generated/questionnaire-response-record.generated.ts","src/store/generated/questionnaire-section-record.generated.ts","src/store/generated/questionnaire-section-question-record.generated.ts","src/store/generated/receiving-facility-request-record.generated.ts","src/store/generated/rendezvous-request-record.generated.ts","src/store/generated/safety-questions-record.generated.ts","src/store/generated/required-capability-record.generated.ts","src/store/generated/request-record.generated.ts","src/store/generated/requester-record.generated.ts","src/store/generated/requester-referral-reason-record.generated.ts","src/store/generated/requester-role-record.generated.ts","src/store/generated/request-location-record.generated.ts","src/store/generated/request-patient-record.generated.ts","src/store/generated/system-timer-record.generated.ts","src/store/generated/timeline-record.generated.ts","src/store/generated/timeline-item-record.generated.ts","src/store/generated/timestamp-record.generated.ts","src/store/generated/timestamp-type-record.generated.ts","src/store/generated/tracked-message-record.generated.ts","src/store/generated/transfer-reason-record.generated.ts","src/store/generated/transport-offer-record.generated.ts","src/store/generated/transport-offer-option-record.generated.ts","src/store/generated/transport-reason-record.generated.ts","src/store/generated/trip-record.generated.ts","src/store/generated/trip-leg-record.generated.ts","src/store/generated/trip-passenger-record.generated.ts","src/store/generated/unit-activation-rule-record.generated.ts","src/store/generated/unit-em-system-mapping-record.generated.ts","src/store/generated/unit-record.generated.ts","src/store/generated/unit-note-record.generated.ts","src/store/generated/unit-position-record.generated.ts","src/store/generated/unit-shift-record.generated.ts","src/store/generated/unit-status-history-entry-record.generated.ts","src/store/generated/vehicle-disposition-record.generated.ts","src/store/generated/waypoint-record.generated.ts","src/store/generated/web-order-log-entity-changes-record.generated.ts","src/store/generated/web-order-log-record.generated.ts","src/store/generated/agency-record.generated.ts","src/store/generated/agency-location-record.generated.ts","src/store/generated/airport-record.generated.ts","src/store/generated/archive-log-record.generated.ts","src/store/generated/base-control-zone-record.generated.ts","src/store/generated/hours-of-operation-record.generated.ts","src/store/generated/base-record.generated.ts","src/store/generated/base-medical-control-contact-record.generated.ts","src/store/generated/base-medical-control-contact-state-record.generated.ts","src/store/generated/capability-record.generated.ts","src/store/generated/communication-center-record.generated.ts","src/store/generated/required-capability-id-list-record.generated.ts","src/store/generated/communication-center-transport-offer-option-record.generated.ts","src/store/generated/company-record.generated.ts","src/store/generated/complete-flight-instance-record.generated.ts","src/store/generated/control-zone-record.generated.ts","src/store/generated/department-record.generated.ts","src/store/generated/entity-capability-record.generated.ts","src/store/generated/external-reference-record.generated.ts","src/store/generated/fbo-record.generated.ts","src/store/generated/fuel-tank-record.generated.ts","src/store/generated/location-record.generated.ts","src/store/generated/medical-facility-contact-record.generated.ts","src/store/generated/medical-facility-record.generated.ts","src/store/generated/medical-facility-physician-record.generated.ts","src/store/generated/medical-facility-unit-record.generated.ts","src/store/generated/medical-unit-record.generated.ts","src/store/generated/tcs-realtime-tracking-record.generated.ts","src/store/generated/user-application-settings-record.generated.ts","src/store/generated/person-record.generated.ts","src/store/generated/physician-record.generated.ts","src/store/generated/program-base-record.generated.ts","src/store/generated/program-record.generated.ts","src/store/generated/ramco-vehicle-configuration-record.generated.ts","src/store/generated/region-base-record.generated.ts","src/store/generated/region-record.generated.ts","src/store/generated/region-group-record.generated.ts","src/store/generated/specialty-team-record.generated.ts","src/store/generated/specialty-team-member-record.generated.ts","src/store/generated/support-request-record.generated.ts","src/store/generated/timezone-record.generated.ts","src/store/generated/transfer-center-record.generated.ts","src/store/generated/trm-user-agency-record.generated.ts","src/store/generated/trm-user-record.generated.ts","src/store/generated/trm-user-medical-facility-record.generated.ts","src/store/generated/trm-user-program-record.generated.ts","src/store/generated/vehicle-control-zone-record.generated.ts","src/store/generated/vehicle-record.generated.ts","src/store/generated/engine-parameters-record.generated.ts","src/store/generated/maintenance-parameters-record.generated.ts","src/store/generated/deferral-due-date-record.generated.ts","src/store/generated/next-due-record.generated.ts","src/store/generated/vehicle-maintenance-record.generated.ts","src/store/generated/vehicle-make-record.generated.ts","src/store/generated/vehicle-model-record.generated.ts","src/store/generated/vehicle-state-inspection-record.generated.ts","src/store/generated/active-card-unit-offering-record.generated.ts","src/store/generated/record-reviver.generated.ts","src/store/store-helpers.ts","src/store/store.service.ts","src/util/entity-store/entity-store.models.ts","src/store/fetch-services.ts","src/store/generated/client-sync.generated.ts","src/store/entityStores/entity-store-selectors.ts","src/store/entityStores/company-selectors.ts","src/util/string.ts","node_modules/tiny-clean-object/dist/index.js","src/util/object.ts","src/lib/amg-authorization/permissions.model.ts","src/lib/amg-authorization/permissions.service.ts","src/lib/tcs-identity/impersonation.service.ts","src/app/shared/authentication/authentication-api/authentication-client.model.ts","src/models/person-view-model.ts","src/store/entityStores/person-selectors.ts","node_modules/@okta/okta-auth-js/esm/browser/idx/types/api.js","node_modules/@okta/okta-auth-js/esm/browser/util/console.js","node_modules/@okta/okta-auth-js/esm/browser/util/object.js","node_modules/@okta/okta-auth-js/esm/browser/errors/CustomError.js","node_modules/@okta/okta-auth-js/esm/browser/util/types.js","node_modules/@okta/okta-auth-js/esm/browser/errors/WWWAuthError.js","node_modules/@okta/okta-auth-js/esm/browser/util/misc.js","node_modules/@okta/okta-auth-js/esm/browser/util/url.js","node_modules/@okta/okta-auth-js/esm/browser/errors/AuthSdkError.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/oauth.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/oauthMeta.js","node_modules/@okta/okta-auth-js/esm/browser/idx/transactionMeta.js","node_modules/js-cookie/dist/js.cookie.mjs","node_modules/@okta/okta-auth-js/esm/browser/oidc/types/Token.js","node_modules/@okta/okta-auth-js/esm/browser/constants.js","node_modules/@okta/okta-auth-js/esm/browser/errors/AuthApiError.js","node_modules/@okta/okta-auth-js/esm/browser/errors/OAuthError.js","node_modules/@okta/okta-auth-js/esm/browser/http/request.js","node_modules/@okta/okta-auth-js/esm/browser/idx/interact.js","node_modules/@okta/okta-auth-js/esm/browser/_virtual/_tslib.js","node_modules/@okta/okta-auth-js/esm/browser/idx/idxState/v1/generateIdxAction.js","node_modules/@okta/okta-auth-js/esm/browser/idx/idxState/v1/actionParser.js","node_modules/@okta/okta-auth-js/esm/browser/idx/idxState/v1/remediationParser.js","node_modules/jsonpath-plus/dist/index-browser-esm.js","node_modules/@okta/okta-auth-js/esm/browser/util/jsonpath.js","node_modules/@okta/okta-auth-js/esm/browser/idx/idxState/v1/idxResponseParser.js","node_modules/@okta/okta-auth-js/esm/browser/idx/idxState/v1/makeIdxState.js","node_modules/@okta/okta-auth-js/esm/browser/idx/idxState/v1/parsers.js","node_modules/@okta/okta-auth-js/esm/browser/idx/idxState/index.js","node_modules/@okta/okta-auth-js/esm/browser/idx/types/idx-js.js","node_modules/@okta/okta-auth-js/esm/browser/errors/index.js","node_modules/@okta/okta-auth-js/esm/browser/idx/introspect.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/util.js","node_modules/@okta/okta-auth-js/esm/browser/idx/authenticator/util.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/Base/Remediator.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/GenericRemediator/util.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/GenericRemediator/GenericRemediator.js","node_modules/@okta/okta-auth-js/esm/browser/idx/util.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediate.js","node_modules/@okta/okta-auth-js/esm/browser/idx/run.js","node_modules/@okta/okta-auth-js/esm/browser/idx/authenticate.js","node_modules/@okta/okta-auth-js/esm/browser/idx/authenticator/Authenticator.js","node_modules/@okta/okta-auth-js/esm/browser/idx/authenticator/VerificationCodeAuthenticator.js","node_modules/@okta/okta-auth-js/esm/browser/idx/authenticator/OktaVerifyTotp.js","node_modules/@okta/okta-auth-js/esm/browser/idx/authenticator/OktaPassword.js","node_modules/@okta/okta-auth-js/esm/browser/idx/authenticator/SecurityQuestionEnrollment.js","node_modules/@okta/okta-auth-js/esm/browser/idx/authenticator/SecurityQuestionVerification.js","node_modules/@okta/okta-auth-js/esm/browser/idx/authenticator/WebauthnEnrollment.js","node_modules/@okta/okta-auth-js/esm/browser/idx/authenticator/WebauthnVerification.js","node_modules/@okta/okta-auth-js/esm/browser/idx/authenticator/getAuthenticator.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/Base/VerifyAuthenticator.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/EnrollAuthenticator.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/EnrollPoll.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/SelectEnrollmentChannel.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/EnrollmentChannelData.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/ChallengeAuthenticator.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/ChallengePoll.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/ResetAuthenticator.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/EnrollProfile.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/Identify.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/ReEnrollAuthenticator.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/ReEnrollAuthenticatorWarning.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/RedirectIdp.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/Base/SelectAuthenticator.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/SelectAuthenticatorAuthenticate.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/SelectAuthenticatorEnroll.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/SelectAuthenticatorUnlockAccount.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/SelectEnrollProfile.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/Base/AuthenticatorData.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/AuthenticatorVerificationData.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/AuthenticatorEnrollmentData.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/Skip.js","node_modules/@okta/okta-auth-js/esm/browser/idx/flow/AuthenticationFlow.js","node_modules/@okta/okta-auth-js/esm/browser/idx/flow/PasswordRecoveryFlow.js","node_modules/@okta/okta-auth-js/esm/browser/idx/flow/RegistrationFlow.js","node_modules/@okta/okta-auth-js/esm/browser/idx/flow/AccountUnlockFlow.js","node_modules/@okta/okta-auth-js/esm/browser/idx/flow/FlowSpecification.js","node_modules/@okta/okta-auth-js/esm/browser/idx/cancel.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/urlParams.js","node_modules/@okta/okta-auth-js/esm/browser/idx/emailVerify.js","node_modules/@okta/okta-auth-js/esm/browser/idx/proceed.js","node_modules/@okta/okta-auth-js/esm/browser/idx/poll.js","node_modules/@okta/okta-auth-js/esm/browser/idx/startTransaction.js","node_modules/@okta/okta-auth-js/esm/browser/idx/register.js","node_modules/@okta/okta-auth-js/esm/browser/idx/recoverPassword.js","node_modules/@okta/okta-auth-js/esm/browser/idx/handleInteractionCodeRedirect.js","node_modules/@okta/okta-auth-js/esm/browser/idx/unlockAccount.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/errors.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/loginRedirect.js","node_modules/@okta/okta-auth-js/esm/browser/idx/factory/api.js","node_modules/@okta/okta-auth-js/esm/browser/idx/remediators/index.js","node_modules/@okta/okta-auth-js/esm/browser/features.js","node_modules/@okta/okta-auth-js/esm/browser/crypto/browser.js","node_modules/@okta/okta-auth-js/esm/browser/base/factory.js","node_modules/@okta/okta-auth-js/esm/browser/storage/mixin.js","node_modules/@okta/okta-auth-js/esm/browser/http/OktaUserAgent.js","node_modules/@okta/okta-auth-js/esm/browser/http/headers.js","node_modules/@okta/okta-auth-js/esm/browser/http/mixin.js","node_modules/@okta/okta-auth-js/esm/browser/crypto/index.js","node_modules/@okta/okta-auth-js/esm/browser/crypto/base64.js","node_modules/@okta/okta-auth-js/esm/browser/crypto/oidcHash.js","node_modules/@okta/okta-auth-js/esm/browser/crypto/verifyToken.js","node_modules/@okta/okta-auth-js/esm/browser/util/PromiseQueue.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/mixin/index.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/pkce.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/decodeToken.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/defaultTokenParams.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/exchangeCodeForTokens.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/endpoints/token.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/dpop.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/endpoints/well-known.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/validateClaims.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/verifyToken.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/handleOAuthResponse.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/getUserInfo.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/browser.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/prepareTokenParams.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/endpoints/authorize.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/getToken.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/getWithoutPrompt.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/getWithPopup.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/getWithRedirect.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/parseFromUrl.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/refreshToken.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/renewTokensWithRefresh.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/renewToken.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/renewTokens.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/revokeToken.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/introspect.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/enrollAuthenticatorMeta.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/enrollAuthenticator.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/defaultEnrollAuthenticatorParams.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/prepareEnrollAuthenticatorParams.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/factory/api.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/TokenManager.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/validateToken.js","node_modules/@okta/okta-auth-js/esm/browser/clock.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/types/TokenManager.js","node_modules/@okta/okta-auth-js/esm/browser/browser/browserStorage.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/mixin/browser.js","node_modules/@okta/okta-auth-js/esm/browser/core/AuthStateManager.js","node_modules/@okta/okta-auth-js/esm/browser/services/AutoRenewService.js","node_modules/broadcast-channel/dist/esbrowser/util.js","node_modules/broadcast-channel/dist/esbrowser/methods/native.js","node_modules/oblivious-set/dist/es/index.js","node_modules/broadcast-channel/dist/esbrowser/options.js","node_modules/broadcast-channel/dist/esbrowser/methods/indexed-db.js","node_modules/broadcast-channel/dist/esbrowser/methods/localstorage.js","node_modules/broadcast-channel/dist/esbrowser/methods/simulate.js","node_modules/broadcast-channel/dist/esbrowser/method-chooser.js","node_modules/broadcast-channel/dist/esbrowser/broadcast-channel.js","node_modules/unload/dist/es/browser.js","node_modules/unload/dist/es/node.js","node_modules/unload/dist/es/index.js","node_modules/broadcast-channel/dist/esbrowser/leader-election-util.js","node_modules/broadcast-channel/dist/esbrowser/leader-election-web-lock.js","node_modules/broadcast-channel/dist/esbrowser/leader-election.js","node_modules/@okta/okta-auth-js/esm/browser/services/SyncStorageService.js","node_modules/@okta/okta-auth-js/esm/browser/services/LeaderElectionService.js","node_modules/@okta/okta-auth-js/esm/browser/services/RenewOnTabActivationService.js","node_modules/@okta/okta-auth-js/esm/browser/core/ServiceManager/browser.js","node_modules/@okta/okta-auth-js/esm/browser/core/mixin.js","node_modules/@okta/okta-auth-js/esm/browser/session/api.js","node_modules/@okta/okta-auth-js/esm/browser/session/factory.js","node_modules/@okta/okta-auth-js/esm/browser/session/mixin.js","node_modules/@okta/okta-auth-js/esm/browser/core/factory.js","node_modules/@okta/okta-auth-js/esm/browser/idx/webauthn.js","node_modules/@okta/okta-auth-js/esm/browser/idx/mixin.js","node_modules/@okta/okta-auth-js/esm/browser/idx/factory/OktaAuthIdx.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/mixin/minimal.js","node_modules/@okta/okta-auth-js/esm/browser/core/options.js","node_modules/@okta/okta-auth-js/esm/browser/storage/options/StorageOptionsConstructor.js","node_modules/@okta/okta-auth-js/esm/browser/base/options.js","node_modules/@okta/okta-auth-js/esm/browser/storage/options/browser.js","node_modules/@okta/okta-auth-js/esm/browser/fetch/fetchRequest.js","node_modules/@okta/okta-auth-js/esm/browser/http/options.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/options/OAuthOptionsConstructor.js","node_modules/@okta/okta-auth-js/esm/browser/idx/options.js","node_modules/@okta/okta-auth-js/esm/browser/idx/storage.js","node_modules/@okta/okta-auth-js/esm/browser/storage/SavedObject.js","node_modules/@okta/okta-auth-js/esm/browser/storage/BaseStorageManager.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/storage.js","node_modules/@okta/okta-auth-js/esm/browser/core/storage.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/types/Transaction.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/util/sharedStorage.js","node_modules/@okta/okta-auth-js/esm/browser/oidc/TransactionManager.js","node_modules/@okta/okta-auth-js/esm/browser/idx/IdxTransactionManager.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/transactions/Base.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/request.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/transactions/ProfileTransaction.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/transactions/ProfileSchemaTransaction.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/types.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/profileApi.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/transactions/EmailStatusTransaction.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/transactions/EmailChallengeTransaction.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/transactions/EmailTransaction.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/emailApi.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/transactions/PhoneTransaction.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/phoneApi.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/transactions/PasswordTransaction.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/passwordApi.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/api.js","node_modules/@okta/okta-auth-js/esm/browser/myaccount/mixin.js","node_modules/@okta/okta-auth-js/esm/browser/authn/api.js","node_modules/@okta/okta-auth-js/esm/browser/authn/util/stateToken.js","node_modules/@okta/okta-auth-js/esm/browser/authn/util/link2fn.js","node_modules/@okta/okta-auth-js/esm/browser/errors/AuthPollStopError.js","node_modules/@okta/okta-auth-js/esm/browser/authn/util/poll.js","node_modules/@okta/okta-auth-js/esm/browser/authn/util/links2fns.js","node_modules/@okta/okta-auth-js/esm/browser/authn/util/flattenEmbedded.js","node_modules/@okta/okta-auth-js/esm/browser/authn/AuthnTransactionImpl.js","node_modules/@okta/okta-auth-js/esm/browser/authn/factory.js","node_modules/@okta/okta-auth-js/esm/browser/browser/fingerprint.js","node_modules/@okta/okta-auth-js/esm/browser/authn/mixin.js","node_modules/@okta/okta-auth-js/esm/browser/exports/exports/default.js","node_modules/compare-versions/lib/esm/index.js","node_modules/@okta/okta-angular/fesm2015/okta-okta-angular.js","src/lib/tcs-identity/authentication.service.ts","node_modules/@nevware21/ts-utils/dist/es5/mod/ts-utils.js","node_modules/@microsoft/dynamicproto-js/dist-es5/DynamicProto.js","node_modules/@microsoft/applicationinsights-shims/dist-es5/Constants.js","node_modules/@microsoft/applicationinsights-shims/dist-es5/TsLibShims.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK.Enums/EnumHelperFuncs.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/__DynamicConstants.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/AggregationError.js","node_modules/@nevware21/ts-async/dist/es5/mod/ts-async.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/InternalConstants.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/HelperFuncs.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/EnvUtils.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/RandomHelper.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/DataCacheHelper.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/Config/ConfigDefaults.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/Config/DynamicSupport.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/Config/DynamicProperty.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/Config/DynamicState.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/Config/DynamicConfig.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/AsyncUtils.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/Constants.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/Config/ConfigDefaultHelpers.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/DbgExtensionUtils.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/DiagnosticLogger.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/CookieMgr.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/NotificationManager.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/PerfManager.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/CoreUtils.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/W3cTraceParent.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/TelemetryHelpers.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/ProcessTelemetryContext.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/UnloadHandlerContainer.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/UnloadHookContainer.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/BaseTelemetryPlugin.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/TelemetryInitializerPlugin.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/AppInsightsCore.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/EventHelpers.js","node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/InstrumentHooks.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Constants.js","node_modules/@microsoft/applicationinsights-common/dist-es5/RequestResponseHeaders.js","node_modules/@microsoft/applicationinsights-common/dist-es5/__DynamicConstants.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Telemetry/Common/DataSanitizer.js","node_modules/@microsoft/applicationinsights-common/dist-es5/UrlHelperFuncs.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Util.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Enums.js","node_modules/@microsoft/applicationinsights-common/dist-es5/StorageHelperFuncs.js","node_modules/@microsoft/applicationinsights-common/dist-es5/ThrottleMgr.js","node_modules/@microsoft/applicationinsights-common/dist-es5/ConnectionStringParser.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Telemetry/Common/Envelope.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Telemetry/Event.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Telemetry/Exception.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Telemetry/Common/DataPoint.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Telemetry/Metric.js","node_modules/@microsoft/applicationinsights-common/dist-es5/HelperFuncs.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Telemetry/PageView.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Telemetry/RemoteDependencyData.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Telemetry/Trace.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Telemetry/PageViewPerformance.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Telemetry/Common/Data.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Interfaces/Contracts/SeverityLevel.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Interfaces/Contracts/ContextTagKeys.js","node_modules/@microsoft/applicationinsights-common/dist-es5/TelemetryItemCreator.js","node_modules/@microsoft/applicationinsights-common/dist-es5/Interfaces/PartAExtensions.js","node_modules/@microsoft/applicationinsights-common/dist-es5/DomHelperFuncs.js","node_modules/@microsoft/applicationinsights-common/dist-es5/applicationinsights-common.js","node_modules/@microsoft/applicationinsights-analytics-js/dist-es5/__DynamicConstants.js","node_modules/@microsoft/applicationinsights-analytics-js/dist-es5/JavaScriptSDK/Telemetry/PageViewManager.js","node_modules/@microsoft/applicationinsights-analytics-js/dist-es5/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js","node_modules/@microsoft/applicationinsights-analytics-js/dist-es5/JavaScriptSDK/Telemetry/PageVisitTimeManager.js","node_modules/@microsoft/applicationinsights-analytics-js/dist-es5/JavaScriptSDK/Timing.js","node_modules/@microsoft/applicationinsights-analytics-js/dist-es5/JavaScriptSDK/AnalyticsPlugin.js","node_modules/@microsoft/applicationinsights-cfgsync-js/dist-es5/__DynamicConstants.js","node_modules/@microsoft/applicationinsights-cfgsync-js/dist-es5/CfgSyncHelperFuncs.js","node_modules/@microsoft/applicationinsights-cfgsync-js/dist-es5/CfgSyncPlugin.js","node_modules/@microsoft/applicationinsights-channel-js/dist-es5/InternalConstants.js","node_modules/@microsoft/applicationinsights-channel-js/dist-es5/__DynamicConstants.js","node_modules/@microsoft/applicationinsights-channel-js/dist-es5/EnvelopeCreator.js","node_modules/@microsoft/applicationinsights-channel-js/dist-es5/Offline.js","node_modules/@microsoft/applicationinsights-channel-js/dist-es5/SendBuffer.js","node_modules/@microsoft/applicationinsights-channel-js/dist-es5/Serializer.js","node_modules/@microsoft/applicationinsights-channel-js/dist-es5/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js","node_modules/@microsoft/applicationinsights-channel-js/dist-es5/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js","node_modules/@microsoft/applicationinsights-channel-js/dist-es5/TelemetryProcessors/Sample.js","node_modules/@microsoft/applicationinsights-channel-js/dist-es5/Sender.js","node_modules/@microsoft/applicationinsights-dependencies-js/dist-es5/InternalConstants.js","node_modules/@microsoft/applicationinsights-dependencies-js/dist-es5/__DynamicConstants.js","node_modules/@microsoft/applicationinsights-dependencies-js/dist-es5/ajaxRecord.js","node_modules/@microsoft/applicationinsights-dependencies-js/dist-es5/ajax.js","node_modules/@microsoft/applicationinsights-properties-js/dist-es5/Context/Application.js","node_modules/@microsoft/applicationinsights-properties-js/dist-es5/Context/Device.js","node_modules/@microsoft/applicationinsights-properties-js/dist-es5/Context/Internal.js","node_modules/@microsoft/applicationinsights-properties-js/dist-es5/Context/Location.js","node_modules/@microsoft/applicationinsights-properties-js/dist-es5/__DynamicConstants.js","node_modules/@microsoft/applicationinsights-properties-js/dist-es5/Context/Session.js","node_modules/@microsoft/applicationinsights-properties-js/dist-es5/Context/TelemetryTrace.js","node_modules/@microsoft/applicationinsights-properties-js/dist-es5/Context/User.js","node_modules/@microsoft/applicationinsights-properties-js/dist-es5/TelemetryContext.js","node_modules/@microsoft/applicationinsights-properties-js/dist-es5/PropertiesPlugin.js","node_modules/@microsoft/applicationinsights-web/dist-es5/InternalConstants.js","node_modules/@microsoft/applicationinsights-web/dist-es5/__DynamicConstants.js","node_modules/@microsoft/applicationinsights-web/dist-es5/AISku.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/__DynamicConstants.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/AggregationError.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/InternalConstants.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/HelperFuncs.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/EnvUtils.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/RandomHelper.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/DataCacheHelper.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/Config/ConfigDefaults.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/Config/DynamicSupport.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/Config/DynamicProperty.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/Config/DynamicState.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/Config/DynamicConfig.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/DbgExtensionUtils.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/DiagnosticLogger.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/PerfManager.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/CoreUtils.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/TelemetryHelpers.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/ProcessTelemetryContext.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/UnloadHandlerContainer.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/UnloadHookContainer.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-core-js/dist-es5/JavaScriptSDK/BaseTelemetryPlugin.js","node_modules/@microsoft/applicationinsights-angularplugin-js/node_modules/@microsoft/applicationinsights-common/dist-es5/applicationinsights-common.js","node_modules/@microsoft/applicationinsights-angularplugin-js/fesm2020/microsoft-applicationinsights-angularplugin-js.mjs","node_modules/uuid/dist/esm-browser/rng.js","node_modules/uuid/dist/esm-browser/regex.js","node_modules/uuid/dist/esm-browser/validate.js","node_modules/uuid/dist/esm-browser/stringify.js","node_modules/uuid/dist/esm-browser/v4.js","src/util/uuid.ts","src/lib/tcs-app-insights/app-insights-initializer.service.ts","node_modules/@newrelic/browser-agent/dist/esm/loaders/agent-base.js","node_modules/@newrelic/browser-agent/dist/esm/loaders/features/enabled-features.js","node_modules/@newrelic/browser-agent/dist/esm/loaders/features/featureDependencies.js","node_modules/@newrelic/browser-agent/dist/esm/features/utils/instrument-base.js","node_modules/@newrelic/browser-agent/dist/esm/features/page_view_event/instrument/index.js","node_modules/@newrelic/browser-agent/dist/esm/common/aggregate/aggregator.js","node_modules/@newrelic/browser-agent/dist/esm/loaders/agent.js","node_modules/@newrelic/browser-agent/dist/esm/features/page_view_timing/instrument/index.js","node_modules/@newrelic/browser-agent/dist/esm/features/metrics/instrument/index.js","node_modules/@newrelic/browser-agent/dist/esm/features/jserrors/shared/uncaught-error.js","node_modules/@newrelic/browser-agent/dist/esm/features/jserrors/shared/cast-error.js","node_modules/@newrelic/browser-agent/dist/esm/features/jserrors/instrument/index.js","node_modules/@newrelic/browser-agent/dist/esm/common/ids/id.js","node_modules/@newrelic/browser-agent/dist/esm/common/util/data-size.js","node_modules/@newrelic/browser-agent/dist/esm/features/ajax/instrument/distributed-tracing.js","node_modules/@newrelic/browser-agent/dist/esm/features/ajax/instrument/response-size.js","node_modules/@newrelic/browser-agent/dist/esm/features/ajax/instrument/index.js","node_modules/@newrelic/browser-agent/dist/esm/features/session_trace/instrument/index.js","node_modules/@newrelic/browser-agent/dist/esm/features/spa/instrument/index.js","node_modules/@newrelic/browser-agent/dist/esm/features/page_action/instrument/index.js","node_modules/@newrelic/browser-agent/dist/esm/features/session_replay/instrument/index.js","node_modules/@newrelic/browser-agent/dist/esm/loaders/browser-agent.js","src/lib/tcs-new-relic/new-relic-initializer.service.ts","src/app/global-data-context.service.ts","src/lib/tcs-identity/user-data-context.service.ts","src/lib/tcs-identity/user.service.ts","src/app/shared/graphql/generated/operations-mutations.generated.ts","src/app/shared/graphql/generated/organization-mutations.generated.ts","src/app/shared/authorization/permissions.ts","src/app/shared/company-query.service.ts","src/app/shared/company-context.service.ts","src/store/entityStores/card-selectors.ts","src/store/entityStores/transport-offer-selectors.ts","src/store/entityStores/shared-selectors.ts","src/store/entityStores/unit-selectors.ts","src/store/entityStores/department-selectors.ts","src/store/entityStores/region-group-selectors.ts","src/store/entityStores/region-selectors.ts","src/lib/tcs-authorization/accessible-item-authorization.service.ts","src/lib/tcs-authorization/ops-reader-authorization.service.ts","src/lib/tcs-authorization/comm-center-authorization.service.ts","src/lib/tcs-authorization/control-zone-authorization.service.ts","src/lib/tcs-authorization/region-authorization.service.ts","src/util/helpers/url-helper.ts","src/lib/tcs-authorization/authorization-helpers.ts","src/lib/tcs-authorization/card-authorization.service.ts","src/lib/tcs-authorization/ops-authorization.service.ts","src/lib/tcs-authorization/org-authorization.service.ts","src/lib/tcs-authorization/oos-authorization.service.ts","src/lib/tcs-authorization/insights-authorization.service.ts"],"sourcesContent":["function E() {\n // Keep this empty so it's easier to inherit from\n // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)\n}\nE.prototype = {\n on: function (name, callback, ctx) {\n var e = this.e || (this.e = {});\n (e[name] || (e[name] = [])).push({\n fn: callback,\n ctx: ctx\n });\n return this;\n },\n once: function (name, callback, ctx) {\n var self = this;\n function listener() {\n self.off(name, listener);\n callback.apply(ctx, arguments);\n }\n ;\n listener._ = callback;\n return this.on(name, listener, ctx);\n },\n emit: function (name) {\n var data = [].slice.call(arguments, 1);\n var evtArr = ((this.e || (this.e = {}))[name] || []).slice();\n var i = 0;\n var len = evtArr.length;\n for (i; i < len; i++) {\n evtArr[i].fn.apply(evtArr[i].ctx, data);\n }\n return this;\n },\n off: function (name, callback) {\n var e = this.e || (this.e = {});\n var evts = e[name];\n var liveEvents = [];\n if (evts && callback) {\n for (var i = 0, len = evts.length; i < len; i++) {\n if (evts[i].fn !== callback && evts[i].fn._ !== callback) liveEvents.push(evts[i]);\n }\n }\n\n // Remove event from queue to prevent memory leak\n // Suggested by https://github.com/lazd\n // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910\n\n liveEvents.length ? e[name] = liveEvents : delete e[name];\n return this;\n }\n};\nmodule.exports = E;","var global = typeof self !== 'undefined' ? self : this;\nvar __self__ = function () {\n function F() {\n this.fetch = false;\n this.DOMException = global.DOMException;\n }\n F.prototype = global;\n return new F();\n}();\n(function (self) {\n var irrelevant = function (exports) {\n var support = {\n searchParams: 'URLSearchParams' in self,\n iterable: 'Symbol' in self && 'iterator' in Symbol,\n blob: 'FileReader' in self && 'Blob' in self && function () {\n try {\n new Blob();\n return true;\n } catch (e) {\n return false;\n }\n }(),\n formData: 'FormData' in self,\n arrayBuffer: 'ArrayBuffer' in self\n };\n function isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj);\n }\n if (support.arrayBuffer) {\n var viewClasses = ['[object Int8Array]', '[object Uint8Array]', '[object Uint8ClampedArray]', '[object Int16Array]', '[object Uint16Array]', '[object Int32Array]', '[object Uint32Array]', '[object Float32Array]', '[object Float64Array]'];\n var isArrayBufferView = ArrayBuffer.isView || function (obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1;\n };\n }\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name);\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name');\n }\n return name.toLowerCase();\n }\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value);\n }\n return value;\n }\n\n // Build a destructive iterator for the value list\n function iteratorFor(items) {\n var iterator = {\n next: function () {\n var value = items.shift();\n return {\n done: value === undefined,\n value: value\n };\n }\n };\n if (support.iterable) {\n iterator[Symbol.iterator] = function () {\n return iterator;\n };\n }\n return iterator;\n }\n function Headers(headers) {\n this.map = {};\n if (headers instanceof Headers) {\n headers.forEach(function (value, name) {\n this.append(name, value);\n }, this);\n } else if (Array.isArray(headers)) {\n headers.forEach(function (header) {\n this.append(header[0], header[1]);\n }, this);\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function (name) {\n this.append(name, headers[name]);\n }, this);\n }\n }\n Headers.prototype.append = function (name, value) {\n name = normalizeName(name);\n value = normalizeValue(value);\n var oldValue = this.map[name];\n this.map[name] = oldValue ? oldValue + ', ' + value : value;\n };\n Headers.prototype['delete'] = function (name) {\n delete this.map[normalizeName(name)];\n };\n Headers.prototype.get = function (name) {\n name = normalizeName(name);\n return this.has(name) ? this.map[name] : null;\n };\n Headers.prototype.has = function (name) {\n return this.map.hasOwnProperty(normalizeName(name));\n };\n Headers.prototype.set = function (name, value) {\n this.map[normalizeName(name)] = normalizeValue(value);\n };\n Headers.prototype.forEach = function (callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this);\n }\n }\n };\n Headers.prototype.keys = function () {\n var items = [];\n this.forEach(function (value, name) {\n items.push(name);\n });\n return iteratorFor(items);\n };\n Headers.prototype.values = function () {\n var items = [];\n this.forEach(function (value) {\n items.push(value);\n });\n return iteratorFor(items);\n };\n Headers.prototype.entries = function () {\n var items = [];\n this.forEach(function (value, name) {\n items.push([name, value]);\n });\n return iteratorFor(items);\n };\n if (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries;\n }\n function consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'));\n }\n body.bodyUsed = true;\n }\n function fileReaderReady(reader) {\n return new Promise(function (resolve, reject) {\n reader.onload = function () {\n resolve(reader.result);\n };\n reader.onerror = function () {\n reject(reader.error);\n };\n });\n }\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsArrayBuffer(blob);\n return promise;\n }\n function readBlobAsText(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsText(blob);\n return promise;\n }\n function readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf);\n var chars = new Array(view.length);\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i]);\n }\n return chars.join('');\n }\n function bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0);\n } else {\n var view = new Uint8Array(buf.byteLength);\n view.set(new Uint8Array(buf));\n return view.buffer;\n }\n }\n function Body() {\n this.bodyUsed = false;\n this._initBody = function (body) {\n this._bodyInit = body;\n if (!body) {\n this._bodyText = '';\n } else if (typeof body === 'string') {\n this._bodyText = body;\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body;\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body;\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString();\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer);\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer]);\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body);\n } else {\n this._bodyText = body = Object.prototype.toString.call(body);\n }\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8');\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type);\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n }\n }\n };\n if (support.blob) {\n this.blob = function () {\n var rejected = consumed(this);\n if (rejected) {\n return rejected;\n }\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob);\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]));\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob');\n } else {\n return Promise.resolve(new Blob([this._bodyText]));\n }\n };\n this.arrayBuffer = function () {\n if (this._bodyArrayBuffer) {\n return consumed(this) || Promise.resolve(this._bodyArrayBuffer);\n } else {\n return this.blob().then(readBlobAsArrayBuffer);\n }\n };\n }\n this.text = function () {\n var rejected = consumed(this);\n if (rejected) {\n return rejected;\n }\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob);\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text');\n } else {\n return Promise.resolve(this._bodyText);\n }\n };\n if (support.formData) {\n this.formData = function () {\n return this.text().then(decode);\n };\n }\n this.json = function () {\n return this.text().then(JSON.parse);\n };\n return this;\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];\n function normalizeMethod(method) {\n var upcased = method.toUpperCase();\n return methods.indexOf(upcased) > -1 ? upcased : method;\n }\n function Request(input, options) {\n options = options || {};\n var body = options.body;\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read');\n }\n this.url = input.url;\n this.credentials = input.credentials;\n if (!options.headers) {\n this.headers = new Headers(input.headers);\n }\n this.method = input.method;\n this.mode = input.mode;\n this.signal = input.signal;\n if (!body && input._bodyInit != null) {\n body = input._bodyInit;\n input.bodyUsed = true;\n }\n } else {\n this.url = String(input);\n }\n this.credentials = options.credentials || this.credentials || 'same-origin';\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers);\n }\n this.method = normalizeMethod(options.method || this.method || 'GET');\n this.mode = options.mode || this.mode || null;\n this.signal = options.signal || this.signal;\n this.referrer = null;\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests');\n }\n this._initBody(body);\n }\n Request.prototype.clone = function () {\n return new Request(this, {\n body: this._bodyInit\n });\n };\n function decode(body) {\n var form = new FormData();\n body.trim().split('&').forEach(function (bytes) {\n if (bytes) {\n var split = bytes.split('=');\n var name = split.shift().replace(/\\+/g, ' ');\n var value = split.join('=').replace(/\\+/g, ' ');\n form.append(decodeURIComponent(name), decodeURIComponent(value));\n }\n });\n return form;\n }\n function parseHeaders(rawHeaders) {\n var headers = new Headers();\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ');\n preProcessedHeaders.split(/\\r?\\n/).forEach(function (line) {\n var parts = line.split(':');\n var key = parts.shift().trim();\n if (key) {\n var value = parts.join(':').trim();\n headers.append(key, value);\n }\n });\n return headers;\n }\n Body.call(Request.prototype);\n function Response(bodyInit, options) {\n if (!options) {\n options = {};\n }\n this.type = 'default';\n this.status = options.status === undefined ? 200 : options.status;\n this.ok = this.status >= 200 && this.status < 300;\n this.statusText = 'statusText' in options ? options.statusText : 'OK';\n this.headers = new Headers(options.headers);\n this.url = options.url || '';\n this._initBody(bodyInit);\n }\n Body.call(Response.prototype);\n Response.prototype.clone = function () {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n });\n };\n Response.error = function () {\n var response = new Response(null, {\n status: 0,\n statusText: ''\n });\n response.type = 'error';\n return response;\n };\n var redirectStatuses = [301, 302, 303, 307, 308];\n Response.redirect = function (url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code');\n }\n return new Response(null, {\n status: status,\n headers: {\n location: url\n }\n });\n };\n exports.DOMException = self.DOMException;\n try {\n new exports.DOMException();\n } catch (err) {\n exports.DOMException = function (message, name) {\n this.message = message;\n this.name = name;\n var error = Error(message);\n this.stack = error.stack;\n };\n exports.DOMException.prototype = Object.create(Error.prototype);\n exports.DOMException.prototype.constructor = exports.DOMException;\n }\n function fetch(input, init) {\n return new Promise(function (resolve, reject) {\n var request = new Request(input, init);\n if (request.signal && request.signal.aborted) {\n return reject(new exports.DOMException('Aborted', 'AbortError'));\n }\n var xhr = new XMLHttpRequest();\n function abortXhr() {\n xhr.abort();\n }\n xhr.onload = function () {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n };\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');\n var body = 'response' in xhr ? xhr.response : xhr.responseText;\n resolve(new Response(body, options));\n };\n xhr.onerror = function () {\n reject(new TypeError('Network request failed'));\n };\n xhr.ontimeout = function () {\n reject(new TypeError('Network request failed'));\n };\n xhr.onabort = function () {\n reject(new exports.DOMException('Aborted', 'AbortError'));\n };\n xhr.open(request.method, request.url, true);\n if (request.credentials === 'include') {\n xhr.withCredentials = true;\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false;\n }\n if ('responseType' in xhr && support.blob) {\n xhr.responseType = 'blob';\n }\n request.headers.forEach(function (value, name) {\n xhr.setRequestHeader(name, value);\n });\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr);\n xhr.onreadystatechange = function () {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr);\n }\n };\n }\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);\n });\n }\n fetch.polyfill = true;\n if (!self.fetch) {\n self.fetch = fetch;\n self.Headers = Headers;\n self.Request = Request;\n self.Response = Response;\n }\n exports.Headers = Headers;\n exports.Request = Request;\n exports.Response = Response;\n exports.fetch = fetch;\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n return exports;\n }({});\n})(__self__);\n__self__.fetch.ponyfill = true;\n// Remove \"polyfill\" property added by whatwg-fetch\ndelete __self__.fetch.polyfill;\n// Choose between native implementation (global) or custom implementation (__self__)\n// var ctx = global.fetch ? global : __self__;\nvar ctx = __self__; // this line disable service worker support temporarily\nexports = ctx.fetch; // To enable: import fetch from 'cross-fetch'\nexports.default = ctx.fetch; // For TypeScript consumers without esModuleInterop.\nexports.fetch = ctx.fetch; // To enable: import {fetch} from 'cross-fetch'\nexports.Headers = ctx.Headers;\nexports.Request = ctx.Request;\nexports.Response = ctx.Response;\nmodule.exports = exports;","'use strict';\n\nclass CancelError extends Error {\n constructor(reason) {\n super(reason || 'Promise was canceled');\n this.name = 'CancelError';\n }\n get isCanceled() {\n return true;\n }\n}\nclass PCancelable {\n static fn(userFn) {\n return (...arguments_) => {\n return new PCancelable((resolve, reject, onCancel) => {\n arguments_.push(onCancel);\n // eslint-disable-next-line promise/prefer-await-to-then\n userFn(...arguments_).then(resolve, reject);\n });\n };\n }\n constructor(executor) {\n this._cancelHandlers = [];\n this._isPending = true;\n this._isCanceled = false;\n this._rejectOnCancel = true;\n this._promise = new Promise((resolve, reject) => {\n this._reject = reject;\n const onResolve = value => {\n if (!this._isCanceled || !onCancel.shouldReject) {\n this._isPending = false;\n resolve(value);\n }\n };\n const onReject = error => {\n this._isPending = false;\n reject(error);\n };\n const onCancel = handler => {\n if (!this._isPending) {\n throw new Error('The `onCancel` handler was attached after the promise settled.');\n }\n this._cancelHandlers.push(handler);\n };\n Object.defineProperties(onCancel, {\n shouldReject: {\n get: () => this._rejectOnCancel,\n set: boolean => {\n this._rejectOnCancel = boolean;\n }\n }\n });\n return executor(onResolve, onReject, onCancel);\n });\n }\n then(onFulfilled, onRejected) {\n // eslint-disable-next-line promise/prefer-await-to-then\n return this._promise.then(onFulfilled, onRejected);\n }\n catch(onRejected) {\n return this._promise.catch(onRejected);\n }\n finally(onFinally) {\n return this._promise.finally(onFinally);\n }\n cancel(reason) {\n if (!this._isPending || this._isCanceled) {\n return;\n }\n this._isCanceled = true;\n if (this._cancelHandlers.length > 0) {\n try {\n for (const handler of this._cancelHandlers) {\n handler();\n }\n } catch (error) {\n this._reject(error);\n return;\n }\n }\n if (this._rejectOnCancel) {\n this._reject(new CancelError(reason));\n }\n }\n get isCanceled() {\n return this._isCanceled;\n }\n}\nObject.setPrototypeOf(PCancelable.prototype, Promise.prototype);\nmodule.exports = PCancelable;\nmodule.exports.CancelError = CancelError;","export const environment = {\r\n production: true,\r\n};\r\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\nexport default freeGlobal;","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\nexport default root;","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\nexport default Symbol;","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\nexport default getRawTag;","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\nexport default objectToString;","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);\n}\nexport default baseGetTag;","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function (arg) {\n return func(transform(arg));\n };\n}\nexport default overArg;","import overArg from './_overArg.js';\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\nexport default getPrototype;","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\nexport default isObjectLike;","import baseGetTag from './_baseGetTag.js';\nimport getPrototype from './_getPrototype.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;\n}\nexport default isPlainObject;","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\nexport default isObject;","import baseGetTag from './_baseGetTag.js';\nimport isObject from './isObject.js';\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\nexport default isFunction;","import root from './_root.js';\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\nexport default coreJsData;","import coreJsData from './_coreJsData.js';\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = function () {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? 'Symbol(src)_1.' + uid : '';\n}();\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && maskSrcKey in func;\n}\nexport default isMasked;","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return func + '';\n } catch (e) {}\n }\n return '';\n}\nexport default toSource;","import isFunction from './isFunction.js';\nimport isMasked from './_isMasked.js';\nimport isObject from './isObject.js';\nimport toSource from './_toSource.js';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\nexport default baseIsNative;","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\nexport default getValue;","import baseIsNative from './_baseIsNative.js';\nimport getValue from './_getValue.js';\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\nexport default getNative;","import getNative from './_getNative.js';\nvar defineProperty = function () {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}();\nexport default defineProperty;","import defineProperty from './_defineProperty.js';\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\nexport default baseAssignValue;","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\nexport default arrayAggregator;","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function (object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\nexport default createBaseFor;","import createBaseFor from './_createBaseFor.js';\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\nexport default baseFor;","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\nexport default baseTimes;","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\nexport default baseIsArguments;","import baseIsArguments from './_baseIsArguments.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function () {\n return arguments;\n}()) ? baseIsArguments : function (value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');\n};\nexport default isArguments;","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\nexport default isArray;","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\nexport default stubFalse;","import root from './_root.js';\nimport stubFalse from './stubFalse.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\nexport default isBuffer;","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length && (type == 'number' || type != 'symbol' && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;\n}\nexport default isIndex;","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\nexport default isLength;","import baseGetTag from './_baseGetTag.js';\nimport isLength from './isLength.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\nexport default baseIsTypedArray;","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function (value) {\n return func(value);\n };\n}\nexport default baseUnary;","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = function () {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}();\nexport default nodeUtil;","import baseIsTypedArray from './_baseIsTypedArray.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\nexport default isTypedArray;","import baseTimes from './_baseTimes.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isIndex from './_isIndex.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n isBuff && (key == 'offset' || key == 'parent') ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') ||\n // Skip index properties.\n isIndex(key, length)))) {\n result.push(key);\n }\n }\n return result;\n}\nexport default arrayLikeKeys;","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;\n return value === proto;\n}\nexport default isPrototype;","import overArg from './_overArg.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\nexport default nativeKeys;","import isPrototype from './_isPrototype.js';\nimport nativeKeys from './_nativeKeys.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\nexport default baseKeys;","import isFunction from './isFunction.js';\nimport isLength from './isLength.js';\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\nexport default isArrayLike;","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeys from './_baseKeys.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\nexport default keys;","import baseFor from './_baseFor.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\nexport default baseForOwn;","import isArrayLike from './isArrayLike.js';\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function (collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n while (fromRight ? index-- : ++index < length) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\nexport default createBaseEach;","import baseForOwn from './_baseForOwn.js';\nimport createBaseEach from './_createBaseEach.js';\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\nexport default baseEach;","import baseEach from './_baseEach.js';\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function (value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n}\nexport default baseAggregator;","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\nexport default listCacheClear;","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || value !== value && other !== other;\n}\nexport default eq;","import eq from './eq.js';\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\nexport default assocIndexOf;","import assocIndexOf from './_assocIndexOf.js';\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\nexport default listCacheDelete;","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n return index < 0 ? undefined : data[index][1];\n}\nexport default listCacheGet;","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\nexport default listCacheHas;","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\nexport default listCacheSet;","import listCacheClear from './_listCacheClear.js';\nimport listCacheDelete from './_listCacheDelete.js';\nimport listCacheGet from './_listCacheGet.js';\nimport listCacheHas from './_listCacheHas.js';\nimport listCacheSet from './_listCacheSet.js';\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\nexport default ListCache;","import ListCache from './_ListCache.js';\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache();\n this.size = 0;\n}\nexport default stackClear;","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n this.size = data.size;\n return result;\n}\nexport default stackDelete;","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\nexport default stackGet;","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\nexport default stackHas;","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\nexport default Map;","import getNative from './_getNative.js';\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\nexport default nativeCreate;","import nativeCreate from './_nativeCreate.js';\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\nexport default hashClear;","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\nexport default hashDelete;","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\nexport default hashGet;","import nativeCreate from './_nativeCreate.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\nexport default hashHas;","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;\n return this;\n}\nexport default hashSet;","import hashClear from './_hashClear.js';\nimport hashDelete from './_hashDelete.js';\nimport hashGet from './_hashGet.js';\nimport hashHas from './_hashHas.js';\nimport hashSet from './_hashSet.js';\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\nexport default Hash;","import Hash from './_Hash.js';\nimport ListCache from './_ListCache.js';\nimport Map from './_Map.js';\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash(),\n 'map': new (Map || ListCache)(),\n 'string': new Hash()\n };\n}\nexport default mapCacheClear;","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;\n}\nexport default isKeyable;","import isKeyable from './_isKeyable.js';\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;\n}\nexport default getMapData;","import getMapData from './_getMapData.js';\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\nexport default mapCacheDelete;","import getMapData from './_getMapData.js';\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\nexport default mapCacheGet;","import getMapData from './_getMapData.js';\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\nexport default mapCacheHas;","import getMapData from './_getMapData.js';\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\nexport default mapCacheSet;","import mapCacheClear from './_mapCacheClear.js';\nimport mapCacheDelete from './_mapCacheDelete.js';\nimport mapCacheGet from './_mapCacheGet.js';\nimport mapCacheHas from './_mapCacheHas.js';\nimport mapCacheSet from './_mapCacheSet.js';\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\nexport default MapCache;","import ListCache from './_ListCache.js';\nimport Map from './_Map.js';\nimport MapCache from './_MapCache.js';\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\nexport default stackSet;","import ListCache from './_ListCache.js';\nimport stackClear from './_stackClear.js';\nimport stackDelete from './_stackDelete.js';\nimport stackGet from './_stackGet.js';\nimport stackHas from './_stackHas.js';\nimport stackSet from './_stackSet.js';\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\nexport default Stack;","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\nexport default setCacheAdd;","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\nexport default setCacheHas;","import MapCache from './_MapCache.js';\nimport setCacheAdd from './_setCacheAdd.js';\nimport setCacheHas from './_setCacheHas.js';\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n this.__data__ = new MapCache();\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\nexport default SetCache;","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\nexport default arraySome;","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\nexport default cacheHas;","import SetCache from './_SetCache.js';\nimport arraySome from './_arraySome.js';\nimport cacheHas from './_cacheHas.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined;\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n if (customizer) {\n var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function (othValue, othIndex) {\n if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\nexport default equalArrays;","import root from './_root.js';\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\nexport default Uint8Array;","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n map.forEach(function (value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\nexport default mapToArray;","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n set.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n}\nexport default setToArray;","import Symbol from './_Symbol.js';\nimport Uint8Array from './_Uint8Array.js';\nimport eq from './eq.js';\nimport equalArrays from './_equalArrays.js';\nimport mapToArray from './_mapToArray.js';\nimport setToArray from './_setToArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n case arrayBufferTag:\n if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n case errorTag:\n return object.name == other.name && object.message == other.message;\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == other + '';\n case mapTag:\n var convert = mapToArray;\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\nexport default equalByTag;","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\nexport default arrayPush;","import arrayPush from './_arrayPush.js';\nimport isArray from './isArray.js';\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\nexport default baseGetAllKeys;","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\nexport default arrayFilter;","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\nexport default stubArray;","import arrayFilter from './_arrayFilter.js';\nimport stubArray from './stubArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function (object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function (symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\nexport default getSymbols;","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbols from './_getSymbols.js';\nimport keys from './keys.js';\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\nexport default getAllKeys;","import getAllKeys from './_getAllKeys.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n if (customizer) {\n var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor && 'constructor' in object && 'constructor' in other && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\nexport default equalObjects;","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\nexport default DataView;","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\nexport default Promise;","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\nexport default Set;","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\nexport default WeakMap;","import DataView from './_DataView.js';\nimport Map from './_Map.js';\nimport Promise from './_Promise.js';\nimport Set from './_Set.js';\nimport WeakMap from './_WeakMap.js';\nimport baseGetTag from './_baseGetTag.js';\nimport toSource from './_toSource.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise && getTag(Promise.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {\n getTag = function (value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString:\n return dataViewTag;\n case mapCtorString:\n return mapTag;\n case promiseCtorString:\n return promiseTag;\n case setCtorString:\n return setTag;\n case weakMapCtorString:\n return weakMapTag;\n }\n }\n return result;\n };\n}\nexport default getTag;","import Stack from './_Stack.js';\nimport equalArrays from './_equalArrays.js';\nimport equalByTag from './_equalByTag.js';\nimport equalObjects from './_equalObjects.js';\nimport getTag from './_getTag.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack());\n return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n stack || (stack = new Stack());\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack());\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\nexport default baseIsEqualDeep;","import baseIsEqualDeep from './_baseIsEqualDeep.js';\nimport isObjectLike from './isObjectLike.js';\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\nexport default baseIsEqual;","import Stack from './_Stack.js';\nimport baseIsEqual from './_baseIsEqual.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack();\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result)) {\n return false;\n }\n }\n }\n return true;\n}\nexport default baseIsMatch;","import isObject from './isObject.js';\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\nexport default isStrictComparable;","import isStrictComparable from './_isStrictComparable.js';\nimport keys from './keys.js';\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n while (length--) {\n var key = result[length],\n value = object[key];\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\nexport default getMatchData;","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function (object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue && (srcValue !== undefined || key in Object(object));\n };\n}\nexport default matchesStrictComparable;","import baseIsMatch from './_baseIsMatch.js';\nimport getMatchData from './_getMatchData.js';\nimport matchesStrictComparable from './_matchesStrictComparable.js';\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function (object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\nexport default baseMatches;","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' || isObjectLike(value) && baseGetTag(value) == symbolTag;\n}\nexport default isSymbol;","import isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);\n}\nexport default isKey;","import MapCache from './_MapCache.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || resolver != null && typeof resolver != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function () {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache)();\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\nexport default memoize;","import memoize from './memoize.js';\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function (key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n var cache = result.cache;\n return result;\n}\nexport default memoizeCapped;","import memoizeCapped from './_memoizeCapped.js';\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function (string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function (match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : number || match);\n });\n return result;\n});\nexport default stringToPath;","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\nexport default arrayMap;","import Symbol from './_Symbol.js';\nimport arrayMap from './_arrayMap.js';\nimport isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = value + '';\n return result == '0' && 1 / value == -INFINITY ? '-0' : result;\n}\nexport default baseToString;","import baseToString from './_baseToString.js';\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\nexport default toString;","import isArray from './isArray.js';\nimport isKey from './_isKey.js';\nimport stringToPath from './_stringToPath.js';\nimport toString from './toString.js';\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\nexport default castPath;","import isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = value + '';\n return result == '0' && 1 / value == -INFINITY ? '-0' : result;\n}\nexport default toKey;","import castPath from './_castPath.js';\nimport toKey from './_toKey.js';\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n var index = 0,\n length = path.length;\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return index && index == length ? object : undefined;\n}\nexport default baseGet;","import baseGet from './_baseGet.js';\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\nexport default get;","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\nexport default baseHasIn;","import castPath from './_castPath.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isIndex from './_isIndex.js';\nimport isLength from './isLength.js';\nimport toKey from './_toKey.js';\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n var index = -1,\n length = path.length,\n result = false;\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));\n}\nexport default hasPath;","import baseHasIn from './_baseHasIn.js';\nimport hasPath from './_hasPath.js';\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\nexport default hasIn;","import baseIsEqual from './_baseIsEqual.js';\nimport get from './get.js';\nimport hasIn from './hasIn.js';\nimport isKey from './_isKey.js';\nimport isStrictComparable from './_isStrictComparable.js';\nimport matchesStrictComparable from './_matchesStrictComparable.js';\nimport toKey from './_toKey.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function (object) {\n var objValue = get(object, path);\n return objValue === undefined && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\nexport default baseMatchesProperty;","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\nexport default identity;","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function (object) {\n return object == null ? undefined : object[key];\n };\n}\nexport default baseProperty;","import baseGet from './_baseGet.js';\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function (object) {\n return baseGet(object, path);\n };\n}\nexport default basePropertyDeep;","import baseProperty from './_baseProperty.js';\nimport basePropertyDeep from './_basePropertyDeep.js';\nimport isKey from './_isKey.js';\nimport toKey from './_toKey.js';\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\nexport default property;","import baseMatches from './_baseMatches.js';\nimport baseMatchesProperty from './_baseMatchesProperty.js';\nimport identity from './identity.js';\nimport isArray from './isArray.js';\nimport property from './property.js';\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);\n }\n return property(value);\n}\nexport default baseIteratee;","import arrayAggregator from './_arrayAggregator.js';\nimport baseAggregator from './_baseAggregator.js';\nimport baseIteratee from './_baseIteratee.js';\nimport isArray from './isArray.js';\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n return function (collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n}\nexport default createAggregator;","import baseAssignValue from './_baseAssignValue.js';\nimport createAggregator from './_createAggregator.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\nvar groupBy = createAggregator(function (result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n});\nexport default groupBy;","import baseIsEqual from './_baseIsEqual.js';\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\nexport default isEqual;","import Symbol from './_Symbol.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\nexport default isFlattenable;","import arrayPush from './_arrayPush.js';\nimport isFlattenable from './_isFlattenable.js';\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n predicate || (predicate = isFlattenable);\n result || (result = []);\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\nexport default baseFlatten;","import baseEach from './_baseEach.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n baseEach(collection, function (value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\nexport default baseMap;","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\nexport default baseSortBy;","import isSymbol from './isSymbol.js';\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) {\n return 1;\n }\n if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\nexport default compareAscending;","import compareAscending from './_compareAscending.js';\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\nexport default compareMultiple;","import arrayMap from './_arrayMap.js';\nimport baseGet from './_baseGet.js';\nimport baseIteratee from './_baseIteratee.js';\nimport baseMap from './_baseMap.js';\nimport baseSortBy from './_baseSortBy.js';\nimport baseUnary from './_baseUnary.js';\nimport compareMultiple from './_compareMultiple.js';\nimport identity from './identity.js';\nimport isArray from './isArray.js';\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function (iteratee) {\n if (isArray(iteratee)) {\n return function (value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n };\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(baseIteratee));\n var result = baseMap(collection, function (value, key, collection) {\n var criteria = arrayMap(iteratees, function (iteratee) {\n return iteratee(value);\n });\n return {\n 'criteria': criteria,\n 'index': ++index,\n 'value': value\n };\n });\n return baseSortBy(result, function (object, other) {\n return compareMultiple(object, other, orders);\n });\n}\nexport default baseOrderBy;","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0:\n return func.call(thisArg);\n case 1:\n return func.call(thisArg, args[0]);\n case 2:\n return func.call(thisArg, args[0], args[1]);\n case 3:\n return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\nexport default apply;","import apply from './_apply.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? func.length - 1 : start, 0);\n return function () {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\nexport default overRest;","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function () {\n return value;\n };\n}\nexport default constant;","import constant from './constant.js';\nimport defineProperty from './_defineProperty.js';\nimport identity from './identity.js';\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function (func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\nexport default baseSetToString;","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n return function () {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\nexport default shortOut;","import baseSetToString from './_baseSetToString.js';\nimport shortOut from './_shortOut.js';\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\nexport default setToString;","import identity from './identity.js';\nimport overRest from './_overRest.js';\nimport setToString from './_setToString.js';\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\nexport default baseRest;","import eq from './eq.js';\nimport isArrayLike from './isArrayLike.js';\nimport isIndex from './_isIndex.js';\nimport isObject from './isObject.js';\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) {\n return eq(object[index], value);\n }\n return false;\n}\nexport default isIterateeCall;","import baseFlatten from './_baseFlatten.js';\nimport baseOrderBy from './_baseOrderBy.js';\nimport baseRest from './_baseRest.js';\nimport isIterateeCall from './_isIterateeCall.js';\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\nvar sortBy = baseRest(function (collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\nexport default sortBy;","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n while (fromRight ? index-- : ++index < length) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\nexport default baseFindIndex;","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\nexport default baseIsNaN;","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\nexport default strictIndexOf;","import baseFindIndex from './_baseFindIndex.js';\nimport baseIsNaN from './_baseIsNaN.js';\nimport strictIndexOf from './_strictIndexOf.js';\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);\n}\nexport default baseIndexOf;","import baseIndexOf from './_baseIndexOf.js';\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\nexport default arrayIncludes;","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\nexport default arrayIncludesWith;","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\nexport default noop;","import Set from './_Set.js';\nimport noop from './noop.js';\nimport setToArray from './_setToArray.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function (values) {\n return new Set(values);\n};\nexport default createSet;","import SetCache from './_SetCache.js';\nimport arrayIncludes from './_arrayIncludes.js';\nimport arrayIncludesWith from './_arrayIncludesWith.js';\nimport cacheHas from './_cacheHas.js';\nimport createSet from './_createSet.js';\nimport setToArray from './_setToArray.js';\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n } else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache();\n } else {\n seen = iteratee ? [] : result;\n }\n outer: while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n value = comparator || value !== 0 ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n } else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\nexport default baseUniq;","import baseIteratee from './_baseIteratee.js';\nimport baseUniq from './_baseUniq.js';\n\n/**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\nfunction uniqBy(array, iteratee) {\n return array && array.length ? baseUniq(array, baseIteratee(iteratee, 2)) : [];\n}\nexport default uniqBy;","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\nexport default trimmedEndIndex;","import trimmedEndIndex from './_trimmedEndIndex.js';\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '') : string;\n}\nexport default baseTrim;","import baseTrim from './_baseTrim.js';\nimport isObject from './isObject.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? other + '' : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;\n}\nexport default toNumber;","import toNumber from './toNumber.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = value < 0 ? -1 : 1;\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\nexport default toFinite;","import toFinite from './toFinite.js';\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n return result === result ? remainder ? result - remainder : result : 0;\n}\nexport default toInteger;","import isObject from './isObject.js';\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = function () {\n function object() {}\n return function (proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object();\n object.prototype = undefined;\n return result;\n };\n}();\nexport default baseCreate;","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\nexport default copyArray;","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\nexport default arrayEach;","import baseAssignValue from './_baseAssignValue.js';\nimport eq from './eq.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined && !(key in object)) {\n baseAssignValue(object, key, value);\n }\n}\nexport default assignValue;","import assignValue from './_assignValue.js';\nimport baseAssignValue from './_baseAssignValue.js';\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n var index = -1,\n length = props.length;\n while (++index < length) {\n var key = props[index];\n var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined;\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\nexport default copyObject;","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\nexport default nativeKeysIn;","import isObject from './isObject.js';\nimport isPrototype from './_isPrototype.js';\nimport nativeKeysIn from './_nativeKeysIn.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\nexport default baseKeysIn;","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeysIn from './_baseKeysIn.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\nexport default keysIn;","import baseFlatten from './_baseFlatten.js';\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\nexport default flatten;","/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n if (start < 0) {\n start = -start > length ? 0 : length + start;\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : end - start >>> 0;\n start >>>= 0;\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\nexport default baseSlice;","import baseSlice from './_baseSlice.js';\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return !start && end >= length ? array : baseSlice(array, start, end);\n}\nexport default castSlice;","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\nexport default hasUnicode;","/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n return string.split('');\n}\nexport default asciiToArray;","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n return string.match(reUnicode) || [];\n}\nexport default unicodeToArray;","import asciiToArray from './_asciiToArray.js';\nimport hasUnicode from './_hasUnicode.js';\nimport unicodeToArray from './_unicodeToArray.js';\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);\n}\nexport default stringToArray;","import castSlice from './_castSlice.js';\nimport hasUnicode from './_hasUnicode.js';\nimport stringToArray from './_stringToArray.js';\nimport toString from './toString.js';\n\n/**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\nfunction createCaseFirst(methodName) {\n return function (string) {\n string = toString(string);\n var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined;\n var chr = strSymbols ? strSymbols[0] : string.charAt(0);\n var trailing = strSymbols ? castSlice(strSymbols, 1).join('') : string.slice(1);\n return chr[methodName]() + trailing;\n };\n}\nexport default createCaseFirst;","import createCaseFirst from './_createCaseFirst.js';\n\n/**\n * Converts the first character of `string` to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.upperFirst('fred');\n * // => 'Fred'\n *\n * _.upperFirst('FRED');\n * // => 'FRED'\n */\nvar upperFirst = createCaseFirst('toUpperCase');\nexport default upperFirst;","import toString from './toString.js';\nimport upperFirst from './upperFirst.js';\n\n/**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\nfunction capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n}\nexport default capitalize;","/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\nexport default arrayReduce;","/**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyOf(object) {\n return function (key) {\n return object == null ? undefined : object[key];\n };\n}\nexport default basePropertyOf;","import basePropertyOf from './_basePropertyOf.js';\n\n/** Used to map Latin Unicode letters to basic Latin letters. */\nvar deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A',\n '\\xc1': 'A',\n '\\xc2': 'A',\n '\\xc3': 'A',\n '\\xc4': 'A',\n '\\xc5': 'A',\n '\\xe0': 'a',\n '\\xe1': 'a',\n '\\xe2': 'a',\n '\\xe3': 'a',\n '\\xe4': 'a',\n '\\xe5': 'a',\n '\\xc7': 'C',\n '\\xe7': 'c',\n '\\xd0': 'D',\n '\\xf0': 'd',\n '\\xc8': 'E',\n '\\xc9': 'E',\n '\\xca': 'E',\n '\\xcb': 'E',\n '\\xe8': 'e',\n '\\xe9': 'e',\n '\\xea': 'e',\n '\\xeb': 'e',\n '\\xcc': 'I',\n '\\xcd': 'I',\n '\\xce': 'I',\n '\\xcf': 'I',\n '\\xec': 'i',\n '\\xed': 'i',\n '\\xee': 'i',\n '\\xef': 'i',\n '\\xd1': 'N',\n '\\xf1': 'n',\n '\\xd2': 'O',\n '\\xd3': 'O',\n '\\xd4': 'O',\n '\\xd5': 'O',\n '\\xd6': 'O',\n '\\xd8': 'O',\n '\\xf2': 'o',\n '\\xf3': 'o',\n '\\xf4': 'o',\n '\\xf5': 'o',\n '\\xf6': 'o',\n '\\xf8': 'o',\n '\\xd9': 'U',\n '\\xda': 'U',\n '\\xdb': 'U',\n '\\xdc': 'U',\n '\\xf9': 'u',\n '\\xfa': 'u',\n '\\xfb': 'u',\n '\\xfc': 'u',\n '\\xdd': 'Y',\n '\\xfd': 'y',\n '\\xff': 'y',\n '\\xc6': 'Ae',\n '\\xe6': 'ae',\n '\\xde': 'Th',\n '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A',\n '\\u0102': 'A',\n '\\u0104': 'A',\n '\\u0101': 'a',\n '\\u0103': 'a',\n '\\u0105': 'a',\n '\\u0106': 'C',\n '\\u0108': 'C',\n '\\u010a': 'C',\n '\\u010c': 'C',\n '\\u0107': 'c',\n '\\u0109': 'c',\n '\\u010b': 'c',\n '\\u010d': 'c',\n '\\u010e': 'D',\n '\\u0110': 'D',\n '\\u010f': 'd',\n '\\u0111': 'd',\n '\\u0112': 'E',\n '\\u0114': 'E',\n '\\u0116': 'E',\n '\\u0118': 'E',\n '\\u011a': 'E',\n '\\u0113': 'e',\n '\\u0115': 'e',\n '\\u0117': 'e',\n '\\u0119': 'e',\n '\\u011b': 'e',\n '\\u011c': 'G',\n '\\u011e': 'G',\n '\\u0120': 'G',\n '\\u0122': 'G',\n '\\u011d': 'g',\n '\\u011f': 'g',\n '\\u0121': 'g',\n '\\u0123': 'g',\n '\\u0124': 'H',\n '\\u0126': 'H',\n '\\u0125': 'h',\n '\\u0127': 'h',\n '\\u0128': 'I',\n '\\u012a': 'I',\n '\\u012c': 'I',\n '\\u012e': 'I',\n '\\u0130': 'I',\n '\\u0129': 'i',\n '\\u012b': 'i',\n '\\u012d': 'i',\n '\\u012f': 'i',\n '\\u0131': 'i',\n '\\u0134': 'J',\n '\\u0135': 'j',\n '\\u0136': 'K',\n '\\u0137': 'k',\n '\\u0138': 'k',\n '\\u0139': 'L',\n '\\u013b': 'L',\n '\\u013d': 'L',\n '\\u013f': 'L',\n '\\u0141': 'L',\n '\\u013a': 'l',\n '\\u013c': 'l',\n '\\u013e': 'l',\n '\\u0140': 'l',\n '\\u0142': 'l',\n '\\u0143': 'N',\n '\\u0145': 'N',\n '\\u0147': 'N',\n '\\u014a': 'N',\n '\\u0144': 'n',\n '\\u0146': 'n',\n '\\u0148': 'n',\n '\\u014b': 'n',\n '\\u014c': 'O',\n '\\u014e': 'O',\n '\\u0150': 'O',\n '\\u014d': 'o',\n '\\u014f': 'o',\n '\\u0151': 'o',\n '\\u0154': 'R',\n '\\u0156': 'R',\n '\\u0158': 'R',\n '\\u0155': 'r',\n '\\u0157': 'r',\n '\\u0159': 'r',\n '\\u015a': 'S',\n '\\u015c': 'S',\n '\\u015e': 'S',\n '\\u0160': 'S',\n '\\u015b': 's',\n '\\u015d': 's',\n '\\u015f': 's',\n '\\u0161': 's',\n '\\u0162': 'T',\n '\\u0164': 'T',\n '\\u0166': 'T',\n '\\u0163': 't',\n '\\u0165': 't',\n '\\u0167': 't',\n '\\u0168': 'U',\n '\\u016a': 'U',\n '\\u016c': 'U',\n '\\u016e': 'U',\n '\\u0170': 'U',\n '\\u0172': 'U',\n '\\u0169': 'u',\n '\\u016b': 'u',\n '\\u016d': 'u',\n '\\u016f': 'u',\n '\\u0171': 'u',\n '\\u0173': 'u',\n '\\u0174': 'W',\n '\\u0175': 'w',\n '\\u0176': 'Y',\n '\\u0177': 'y',\n '\\u0178': 'Y',\n '\\u0179': 'Z',\n '\\u017b': 'Z',\n '\\u017d': 'Z',\n '\\u017a': 'z',\n '\\u017c': 'z',\n '\\u017e': 'z',\n '\\u0132': 'IJ',\n '\\u0133': 'ij',\n '\\u0152': 'Oe',\n '\\u0153': 'oe',\n '\\u0149': \"'n\",\n '\\u017f': 's'\n};\n\n/**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\nvar deburrLetter = basePropertyOf(deburredLetters);\nexport default deburrLetter;","import deburrLetter from './_deburrLetter.js';\nimport toString from './toString.js';\n\n/** Used to match Latin Unicode letters (excluding mathematical operators). */\nvar reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n/** Used to compose unicode character classes. */\nvar rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;\n\n/** Used to compose unicode capture groups. */\nvar rsCombo = '[' + rsComboRange + ']';\n\n/**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\nvar reComboMark = RegExp(rsCombo, 'g');\n\n/**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\nfunction deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n}\nexport default deburr;","/** Used to match words composed of alphanumeric characters. */\nvar reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n/**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction asciiWords(string) {\n return string.match(reAsciiWord) || [];\n}\nexport default asciiWords;","/** Used to detect strings that need a more robust regexp to match words. */\nvar reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n/**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\nfunction hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n}\nexport default hasUnicodeWord;","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\",\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;\n\n/** Used to match complex or compound words. */\nvar reUnicodeWord = RegExp([rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')', rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower, rsUpper + '+' + rsOptContrUpper, rsOrdUpper, rsOrdLower, rsDigits, rsEmoji].join('|'), 'g');\n\n/**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n}\nexport default unicodeWords;","import asciiWords from './_asciiWords.js';\nimport hasUnicodeWord from './_hasUnicodeWord.js';\nimport toString from './toString.js';\nimport unicodeWords from './_unicodeWords.js';\n\n/**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\nfunction words(string, pattern, guard) {\n string = toString(string);\n pattern = guard ? undefined : pattern;\n if (pattern === undefined) {\n return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n }\n return string.match(pattern) || [];\n}\nexport default words;","import arrayReduce from './_arrayReduce.js';\nimport deburr from './deburr.js';\nimport words from './words.js';\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\";\n\n/** Used to match apostrophes. */\nvar reApos = RegExp(rsApos, 'g');\n\n/**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\nfunction createCompounder(callback) {\n return function (string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n}\nexport default createCompounder;","import capitalize from './capitalize.js';\nimport createCompounder from './_createCompounder.js';\n\n/**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\nvar camelCase = createCompounder(function (result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n});\nexport default camelCase;","import root from './_root.js';\nimport toInteger from './toInteger.js';\nimport toNumber from './toNumber.js';\nimport toString from './toString.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsFinite = root.isFinite,\n nativeMin = Math.min;\n\n/**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\nfunction createRound(methodName) {\n var func = Math[methodName];\n return function (number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision && nativeIsFinite(number)) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n}\nexport default createRound;","import copyObject from './_copyObject.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\nexport default baseAssign;","import copyObject from './_copyObject.js';\nimport keysIn from './keysIn.js';\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\nexport default baseAssignIn;","import root from './_root.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n buffer.copy(result);\n return result;\n}\nexport default cloneBuffer;","import copyObject from './_copyObject.js';\nimport getSymbols from './_getSymbols.js';\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\nexport default copySymbols;","import arrayPush from './_arrayPush.js';\nimport getPrototype from './_getPrototype.js';\nimport getSymbols from './_getSymbols.js';\nimport stubArray from './stubArray.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function (object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\nexport default getSymbolsIn;","import copyObject from './_copyObject.js';\nimport getSymbolsIn from './_getSymbolsIn.js';\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\nexport default copySymbolsIn;","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbolsIn from './_getSymbolsIn.js';\nimport keysIn from './keysIn.js';\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\nexport default getAllKeysIn;","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\nexport default initCloneArray;","import Uint8Array from './_Uint8Array.js';\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\nexport default cloneArrayBuffer;","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\nexport default cloneDataView;","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\nexport default cloneRegExp;","import Symbol from './_Symbol.js';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\nexport default cloneSymbol;","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\nexport default cloneTypedArray;","import cloneArrayBuffer from './_cloneArrayBuffer.js';\nimport cloneDataView from './_cloneDataView.js';\nimport cloneRegExp from './_cloneRegExp.js';\nimport cloneSymbol from './_cloneSymbol.js';\nimport cloneTypedArray from './_cloneTypedArray.js';\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n case dataViewTag:\n return cloneDataView(object, isDeep);\n case float32Tag:\n case float64Tag:\n case int8Tag:\n case int16Tag:\n case int32Tag:\n case uint8Tag:\n case uint8ClampedTag:\n case uint16Tag:\n case uint32Tag:\n return cloneTypedArray(object, isDeep);\n case mapTag:\n return new Ctor();\n case numberTag:\n case stringTag:\n return new Ctor(object);\n case regexpTag:\n return cloneRegExp(object);\n case setTag:\n return new Ctor();\n case symbolTag:\n return cloneSymbol(object);\n }\n}\nexport default initCloneByTag;","import baseCreate from './_baseCreate.js';\nimport getPrototype from './_getPrototype.js';\nimport isPrototype from './_isPrototype.js';\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return typeof object.constructor == 'function' && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};\n}\nexport default initCloneObject;","import getTag from './_getTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\nexport default baseIsMap;","import baseIsMap from './_baseIsMap.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\nexport default isMap;","import getTag from './_getTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\nexport default baseIsSet;","import baseIsSet from './_baseIsSet.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\nexport default isSet;","import Stack from './_Stack.js';\nimport arrayEach from './_arrayEach.js';\nimport assignValue from './_assignValue.js';\nimport baseAssign from './_baseAssign.js';\nimport baseAssignIn from './_baseAssignIn.js';\nimport cloneBuffer from './_cloneBuffer.js';\nimport copyArray from './_copyArray.js';\nimport copySymbols from './_copySymbols.js';\nimport copySymbolsIn from './_copySymbolsIn.js';\nimport getAllKeys from './_getAllKeys.js';\nimport getAllKeysIn from './_getAllKeysIn.js';\nimport getTag from './_getTag.js';\nimport initCloneArray from './_initCloneArray.js';\nimport initCloneByTag from './_initCloneByTag.js';\nimport initCloneObject from './_initCloneObject.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isMap from './isMap.js';\nimport isObject from './isObject.js';\nimport isSet from './isSet.js';\nimport keys from './keys.js';\nimport keysIn from './keysIn.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || isFunc && !object) {\n result = isFlat || isFunc ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack());\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n if (isSet(value)) {\n value.forEach(function (subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function (subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function (subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\nexport default baseClone;","import baseClone from './_baseClone.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\nexport default cloneDeep;","import root from './_root.js';\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function () {\n return root.Date.now();\n};\nexport default now;","import isObject from './isObject.js';\nimport now from './now.js';\nimport toNumber from './toNumber.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;\n }\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;\n }\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\nexport default debounce;","import isArrayLike from './isArrayLike.js';\nimport isObjectLike from './isObjectLike.js';\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\nexport default isArrayLikeObject;","import SetCache from './_SetCache.js';\nimport arrayIncludes from './_arrayIncludes.js';\nimport arrayIncludesWith from './_arrayIncludesWith.js';\nimport arrayMap from './_arrayMap.js';\nimport baseUnary from './_baseUnary.js';\nimport cacheHas from './_cacheHas.js';\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\nfunction baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n } else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer: while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n value = comparator || value !== 0 ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n } else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n}\nexport default baseDifference;","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\nexport default last;","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n return array && array.length ? array[0] : undefined;\n}\nexport default head;","import arrayMap from './_arrayMap.js';\nimport baseIteratee from './_baseIteratee.js';\nimport baseMap from './_baseMap.js';\nimport isArray from './isArray.js';\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, baseIteratee(iteratee, 3));\n}\nexport default map;","import baseFlatten from './_baseFlatten.js';\nimport map from './map.js';\n\n/**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\nfunction flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n}\nexport default flatMap;","import baseGetTag from './_baseGetTag.js';\nimport isArray from './isArray.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;\n}\nexport default isString;","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]';\n\n/**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\nfunction isBoolean(value) {\n return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag;\n}\nexport default isBoolean;","import baseKeys from './_baseKeys.js';\nimport getTag from './_getTag.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isArrayLike from './isArrayLike.js';\nimport isBuffer from './isBuffer.js';\nimport isPrototype from './_isPrototype.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) && (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n}\nexport default isEmpty;","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar numberTag = '[object Number]';\n\n/**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\nfunction isNumber(value) {\n return typeof value == 'number' || isObjectLike(value) && baseGetTag(value) == numberTag;\n}\nexport default isNumber;","import isNumber from './isNumber.js';\n\n/**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\nfunction isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n}\nexport default isNaN;","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar regexpTag = '[object RegExp]';\n\n/**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\nfunction baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n}\nexport default baseIsRegExp;","import baseIsRegExp from './_baseIsRegExp.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;\n\n/**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\nvar isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\nexport default isRegExp;","/**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\nfunction baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : result + current;\n }\n }\n return result;\n}\nexport default baseSum;","/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\nfunction negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function () {\n var args = arguments;\n switch (args.length) {\n case 0:\n return !predicate.call(this);\n case 1:\n return !predicate.call(this, args[0]);\n case 2:\n return !predicate.call(this, args[0], args[1]);\n case 3:\n return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n}\nexport default negate;","import assignValue from './_assignValue.js';\nimport castPath from './_castPath.js';\nimport isIndex from './_isIndex.js';\nimport isObject from './isObject.js';\nimport toKey from './_toKey.js';\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\nexport default baseSet;","import baseGet from './_baseGet.js';\nimport baseSet from './_baseSet.js';\nimport castPath from './_castPath.js';\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\nexport default basePickBy;","import arrayMap from './_arrayMap.js';\nimport baseIteratee from './_baseIteratee.js';\nimport basePickBy from './_basePickBy.js';\nimport getAllKeysIn from './_getAllKeysIn.js';\n\n/**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\nfunction pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function (prop) {\n return [prop];\n });\n predicate = baseIteratee(predicate);\n return basePickBy(object, props, function (value, path) {\n return predicate(value, path[0]);\n });\n}\nexport default pickBy;","import baseIteratee from './_baseIteratee.js';\nimport negate from './negate.js';\nimport pickBy from './pickBy.js';\n\n/**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\nfunction omitBy(object, predicate) {\n return pickBy(object, negate(baseIteratee(predicate)));\n}\nexport default omitBy;","import baseOrderBy from './_baseOrderBy.js';\nimport isArray from './isArray.js';\n\n/**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\nfunction orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n}\nexport default orderBy;","import baseProperty from './_baseProperty.js';\n\n/**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nvar asciiSize = baseProperty('length');\nexport default asciiSize;","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nfunction unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n}\nexport default unicodeSize;","import asciiSize from './_asciiSize.js';\nimport hasUnicode from './_hasUnicode.js';\nimport unicodeSize from './_unicodeSize.js';\n\n/**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\nfunction stringSize(string) {\n return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);\n}\nexport default stringSize;","import createRound from './_createRound.js';\n\n/**\n * Computes `number` rounded to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round.\n * @param {number} [precision=0] The precision to round to.\n * @returns {number} Returns the rounded number.\n * @example\n *\n * _.round(4.006);\n * // => 4\n *\n * _.round(4.006, 2);\n * // => 4.01\n *\n * _.round(4060, -2);\n * // => 4100\n */\nvar round = createRound('round');\nexport default round;","import baseSet from './_baseSet.js';\n\n/**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\nfunction set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n}\nexport default set;","import baseSum from './_baseSum.js';\nimport identity from './identity.js';\n\n/**\n * Computes the sum of the values in `array`.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {number} Returns the sum.\n * @example\n *\n * _.sum([4, 2, 8, 6]);\n * // => 20\n */\nfunction sum(array) {\n return array && array.length ? baseSum(array, identity) : 0;\n}\nexport default sum;","import debounce from './debounce.js';\nimport isObject from './isObject.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\nexport default throttle;","import baseToString from './_baseToString.js';\nimport castSlice from './_castSlice.js';\nimport hasUnicode from './_hasUnicode.js';\nimport isObject from './isObject.js';\nimport isRegExp from './isRegExp.js';\nimport stringSize from './_stringSize.js';\nimport stringToArray from './_stringToArray.js';\nimport toInteger from './toInteger.js';\nimport toString from './toString.js';\n\n/** Used as default options for `_.truncate`. */\nvar DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Truncates `string` if it's longer than the given maximum string length.\n * The last characters of the truncated string are replaced with the omission\n * string which defaults to \"...\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to truncate.\n * @param {Object} [options={}] The options object.\n * @param {number} [options.length=30] The maximum string length.\n * @param {string} [options.omission='...'] The string to indicate text is omitted.\n * @param {RegExp|string} [options.separator] The separator pattern to truncate to.\n * @returns {string} Returns the truncated string.\n * @example\n *\n * _.truncate('hi-diddly-ho there, neighborino');\n * // => 'hi-diddly-ho there, neighbo...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'length': 24,\n * 'separator': ' '\n * });\n * // => 'hi-diddly-ho there,...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'length': 24,\n * 'separator': /,? +/\n * });\n * // => 'hi-diddly-ho there...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'omission': ' [...]'\n * });\n * // => 'hi-diddly-ho there, neig [...]'\n */\nfunction truncate(string, options) {\n var length = DEFAULT_TRUNC_LENGTH,\n omission = DEFAULT_TRUNC_OMISSION;\n if (isObject(options)) {\n var separator = 'separator' in options ? options.separator : separator;\n length = 'length' in options ? toInteger(options.length) : length;\n omission = 'omission' in options ? baseToString(options.omission) : omission;\n }\n string = toString(string);\n var strLength = string.length;\n if (hasUnicode(string)) {\n var strSymbols = stringToArray(string);\n strLength = strSymbols.length;\n }\n if (length >= strLength) {\n return string;\n }\n var end = length - stringSize(omission);\n if (end < 1) {\n return omission;\n }\n var result = strSymbols ? castSlice(strSymbols, 0, end).join('') : string.slice(0, end);\n if (separator === undefined) {\n return result + omission;\n }\n if (strSymbols) {\n end += result.length - end;\n }\n if (isRegExp(separator)) {\n if (string.slice(end).search(separator)) {\n var match,\n substring = result;\n if (!separator.global) {\n separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');\n }\n separator.lastIndex = 0;\n while (match = separator.exec(substring)) {\n var newEnd = match.index;\n }\n result = result.slice(0, newEnd === undefined ? end : newEnd);\n }\n } else if (string.indexOf(baseToString(separator), end) != end) {\n var index = result.lastIndexOf(separator);\n if (index > -1) {\n result = result.slice(0, index);\n }\n }\n return result + omission;\n}\nexport default truncate;","import baseFlatten from './_baseFlatten.js';\nimport baseRest from './_baseRest.js';\nimport baseUniq from './_baseUniq.js';\nimport isArrayLikeObject from './isArrayLikeObject.js';\n\n/**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\nvar union = baseRest(function (arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n});\nexport default union;","import baseUniq from './_baseUniq.js';\n\n/**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\nfunction uniq(array) {\n return array && array.length ? baseUniq(array) : [];\n}\nexport default uniq;","import baseDifference from './_baseDifference.js';\nimport baseFlatten from './_baseFlatten.js';\nimport baseUniq from './_baseUniq.js';\n\n/**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\nfunction baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n}\nexport default baseXor;","import arrayFilter from './_arrayFilter.js';\nimport baseRest from './_baseRest.js';\nimport baseXor from './_baseXor.js';\nimport isArrayLikeObject from './isArrayLikeObject.js';\nimport last from './last.js';\n\n/**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\nvar xorWith = baseRest(function (arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n});\nexport default xorWith;","import { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\n\r\n/**\r\n *\r\n * @param project called when the observed value is not null\r\n * @returns Observable\r\n */\r\nexport function nullOrMap(project: (value: TIn) => TOut) {\r\n return (observable: Observable) =>\r\n observable.pipe(\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n map((r) => (r == null ? (null as null) : project(r!))),\r\n );\r\n}\r\n\r\n/**\r\n *\r\n * @param project called when the observed value is not null\r\n * @returns Observable\r\n */\r\nexport function undefinedOrMap(project: (value: TIn) => TOut) {\r\n return (observable: Observable) =>\r\n observable.pipe(\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n map((r) => (r == null ? (undefined as undefined) : project(r!))),\r\n );\r\n}\r\n","import { Observable, of } from 'rxjs';\r\nimport { switchMap } from 'rxjs/operators';\r\n\r\n/**\r\n *\r\n * @param project called when the observed value is not null\r\n * @returns Observable\r\n */\r\nexport function nullOrSwitchMap(project: (value: TIn) => Observable) {\r\n return (observable: Observable) =>\r\n observable.pipe(\r\n switchMap((r) =>\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n r == null ? of(null as null) : project(r!),\r\n ),\r\n );\r\n}\r\n\r\n/**\r\n *\r\n * @param project called when the observed value is not null\r\n * @returns Observable\r\n */\r\nexport function undefinedOrSwitchMap(project: (value: TIn) => Observable) {\r\n return (observable: Observable) =>\r\n observable.pipe(\r\n switchMap((r) =>\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n r == null ? of(undefined as undefined) : project(r!),\r\n ),\r\n );\r\n}\r\n","import { Observable } from 'rxjs';\r\n\r\n/** execute condition within the observable stream */\r\nexport const ifThen =\r\n (\r\n condition: () => boolean,\r\n then: (observable: Observable) => Observable,\r\n elseThen: (observable: Observable) => Observable = (o: Observable) => o,\r\n ) =>\r\n (observable: Observable) => {\r\n return condition() ? then(observable) : elseThen(observable);\r\n };\r\n","import { Observable, of } from 'rxjs';\r\nimport { switchMap } from 'rxjs/operators';\r\n\r\n/**\r\n *\r\n * @param project called when the observed value is null or undefined\r\n * @returns Observable\r\n */\r\nexport function valueOrSwitchMap(project: () => Observable) {\r\n return (observable: Observable) =>\r\n observable.pipe(switchMap((r) => (r != null ? of(r) : project())));\r\n}\r\n","import { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\n\r\n/**\r\n * Sets default value of observable, if observable value is null (or an empty string if `evaluateEmptyString` param is true)\r\n * @param defaultValue Value to be set when evaluated as null or empty\r\n * @param evaluateEmptyString When true and value is an empty string, the value will be replaced with the default value\r\n * @returns Observable\r\n */\r\nexport function withDefault(defaultValue: T, evaluateEmptyString: boolean = false) {\r\n return (observable: Observable) =>\r\n observable.pipe(\r\n map((r) =>\r\n r == null || (evaluateEmptyString && typeof r === 'string' && r === '') ? defaultValue : r,\r\n ),\r\n );\r\n}\r\n","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { assertInInjectionContext, inject, DestroyRef, ɵRuntimeError, ɵgetOutputDestroyRef, Injector, effect, untracked, assertNotInReactiveContext, signal, computed } from '@angular/core';\nimport { Observable, ReplaySubject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\n/**\n * Operator which completes the Observable when the calling context (component, directive, service,\n * etc) is destroyed.\n *\n * @param destroyRef optionally, the `DestroyRef` representing the current context. This can be\n * passed explicitly to use `takeUntilDestroyed` outside of an [injection\n * context](guide/dependency-injection-context). Otherwise, the current `DestroyRef` is injected.\n *\n * @developerPreview\n */\nfunction takeUntilDestroyed(destroyRef) {\n if (!destroyRef) {\n assertInInjectionContext(takeUntilDestroyed);\n destroyRef = inject(DestroyRef);\n }\n const destroyed$ = new Observable(observer => {\n const unregisterFn = destroyRef.onDestroy(observer.next.bind(observer));\n return unregisterFn;\n });\n return source => {\n return source.pipe(takeUntil(destroyed$));\n };\n}\n\n/**\n * Implementation of `OutputRef` that emits values from\n * an RxJS observable source.\n *\n * @internal\n */\nclass OutputFromObservableRef {\n constructor(source) {\n this.source = source;\n this.destroyed = false;\n this.destroyRef = inject(DestroyRef);\n this.destroyRef.onDestroy(() => {\n this.destroyed = true;\n });\n }\n subscribe(callbackFn) {\n if (this.destroyed) {\n throw new ɵRuntimeError(953 /* ɵRuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode && 'Unexpected subscription to destroyed `OutputRef`. ' + 'The owning directive/component is destroyed.');\n }\n // Stop yielding more values when the directive/component is already destroyed.\n const subscription = this.source.pipe(takeUntilDestroyed(this.destroyRef)).subscribe({\n next: value => callbackFn(value)\n });\n return {\n unsubscribe: () => subscription.unsubscribe()\n };\n }\n}\n/**\n * Declares an Angular output that is using an RxJS observable as a source\n * for events dispatched to parent subscribers.\n *\n * The behavior for an observable as source is defined as followed:\n * 1. New values are forwarded to the Angular output (next notifications).\n * 2. Errors notifications are not handled by Angular. You need to handle these manually.\n * For example by using `catchError`.\n * 3. Completion notifications stop the output from emitting new values.\n *\n * @usageNotes\n * Initialize an output in your directive by declaring a\n * class field and initializing it with the `outputFromObservable()` function.\n *\n * ```ts\n * @Directive({..})\n * export class MyDir {\n * nameChange$ = ;\n * nameChange = outputFromObservable(this.nameChange$);\n * }\n * ```\n *\n * @developerPreview\n */\nfunction outputFromObservable(observable, opts) {\n ngDevMode && assertInInjectionContext(outputFromObservable);\n return new OutputFromObservableRef(observable);\n}\n\n/**\n * Converts an Angular output declared via `output()` or `outputFromObservable()`\n * to an observable.\n *\n * You can subscribe to the output via `Observable.subscribe` then.\n *\n * @developerPreview\n */\nfunction outputToObservable(ref) {\n const destroyRef = ɵgetOutputDestroyRef(ref);\n return new Observable(observer => {\n // Complete the observable upon directive/component destroy.\n // Note: May be `undefined` if an `EventEmitter` is declared outside\n // of an injection context.\n destroyRef?.onDestroy(() => observer.complete());\n const subscription = ref.subscribe(v => observer.next(v));\n return () => subscription.unsubscribe();\n });\n}\n\n/**\n * Exposes the value of an Angular `Signal` as an RxJS `Observable`.\n *\n * The signal's value will be propagated into the `Observable`'s subscribers using an `effect`.\n *\n * `toObservable` must be called in an injection context unless an injector is provided via options.\n *\n * @developerPreview\n */\nfunction toObservable(source, options) {\n !options?.injector && assertInInjectionContext(toObservable);\n const injector = options?.injector ?? inject(Injector);\n const subject = new ReplaySubject(1);\n const watcher = effect(() => {\n let value;\n try {\n value = source();\n } catch (err) {\n untracked(() => subject.error(err));\n return;\n }\n untracked(() => subject.next(value));\n }, {\n injector,\n manualCleanup: true\n });\n injector.get(DestroyRef).onDestroy(() => {\n watcher.destroy();\n subject.complete();\n });\n return subject.asObservable();\n}\n\n/**\n * Get the current value of an `Observable` as a reactive `Signal`.\n *\n * `toSignal` returns a `Signal` which provides synchronous reactive access to values produced\n * by the given `Observable`, by subscribing to that `Observable`. The returned `Signal` will always\n * have the most recent value emitted by the subscription, and will throw an error if the\n * `Observable` errors.\n *\n * With `requireSync` set to `true`, `toSignal` will assert that the `Observable` produces a value\n * immediately upon subscription. No `initialValue` is needed in this case, and the returned signal\n * does not include an `undefined` type.\n *\n * By default, the subscription will be automatically cleaned up when the current [injection\n * context](/guide/dependency-injection-context) is destroyed. For example, when `toSignal` is\n * called during the construction of a component, the subscription will be cleaned up when the\n * component is destroyed. If an injection context is not available, an explicit `Injector` can be\n * passed instead.\n *\n * If the subscription should persist until the `Observable` itself completes, the `manualCleanup`\n * option can be specified instead, which disables the automatic subscription teardown. No injection\n * context is needed in this configuration as well.\n *\n * @developerPreview\n */\nfunction toSignal(source, options) {\n ngDevMode && assertNotInReactiveContext(toSignal, 'Invoking `toSignal` causes new subscriptions every time. ' + 'Consider moving `toSignal` outside of the reactive context and read the signal value where needed.');\n const requiresCleanup = !options?.manualCleanup;\n requiresCleanup && !options?.injector && assertInInjectionContext(toSignal);\n const cleanupRef = requiresCleanup ? options?.injector?.get(DestroyRef) ?? inject(DestroyRef) : null;\n // Note: T is the Observable value type, and U is the initial value type. They don't have to be\n // the same - the returned signal gives values of type `T`.\n let state;\n if (options?.requireSync) {\n // Initially the signal is in a `NoValue` state.\n state = signal({\n kind: 0 /* StateKind.NoValue */\n });\n } else {\n // If an initial value was passed, use it. Otherwise, use `undefined` as the initial value.\n state = signal({\n kind: 1 /* StateKind.Value */,\n value: options?.initialValue\n });\n }\n // Note: This code cannot run inside a reactive context (see assertion above). If we'd support\n // this, we would subscribe to the observable outside of the current reactive context, avoiding\n // that side-effect signal reads/writes are attribute to the current consumer. The current\n // consumer only needs to be notified when the `state` signal changes through the observable\n // subscription. Additional context (related to async pipe):\n // https://github.com/angular/angular/pull/50522.\n const sub = source.subscribe({\n next: value => state.set({\n kind: 1 /* StateKind.Value */,\n value\n }),\n error: error => {\n if (options?.rejectErrors) {\n // Kick the error back to RxJS. It will be caught and rethrown in a macrotask, which causes\n // the error to end up as an uncaught exception.\n throw error;\n }\n state.set({\n kind: 2 /* StateKind.Error */,\n error\n });\n }\n // Completion of the Observable is meaningless to the signal. Signals don't have a concept of\n // \"complete\".\n });\n if (ngDevMode && options?.requireSync && state().kind === 0 /* StateKind.NoValue */) {\n throw new ɵRuntimeError(601 /* ɵRuntimeErrorCode.REQUIRE_SYNC_WITHOUT_SYNC_EMIT */, '`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.');\n }\n // Unsubscribe when the current context is destroyed, if requested.\n cleanupRef?.onDestroy(sub.unsubscribe.bind(sub));\n // The actual returned signal is a `computed` of the `State` signal, which maps the various states\n // to either values or errors.\n return computed(() => {\n const current = state();\n switch (current.kind) {\n case 1 /* StateKind.Value */:\n return current.value;\n case 2 /* StateKind.Error */:\n throw current.error;\n case 0 /* StateKind.NoValue */:\n // This shouldn't really happen because the error is thrown on creation.\n // TODO(alxhub): use a RuntimeError when we finalize the error semantics\n throw new ɵRuntimeError(601 /* ɵRuntimeErrorCode.REQUIRE_SYNC_WITHOUT_SYNC_EMIT */, '`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.');\n }\n });\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { outputFromObservable, outputToObservable, takeUntilDestroyed, toObservable, toSignal };\n","import * as i0 from '@angular/core';\nimport { Injectable, InjectionToken, Inject, computed, isDevMode, inject, makeEnvironmentProviders, ENVIRONMENT_INITIALIZER, NgModule, Optional } from '@angular/core';\nimport { BehaviorSubject, Observable, Subject, queueScheduler } from 'rxjs';\nimport { observeOn, withLatestFrom, scan, pluck, map, distinctUntilChanged } from 'rxjs/operators';\nimport { toSignal } from '@angular/core/rxjs-interop';\nconst REGISTERED_ACTION_TYPES = {};\nfunction resetRegisteredActionTypes() {\n for (const key of Object.keys(REGISTERED_ACTION_TYPES)) {\n delete REGISTERED_ACTION_TYPES[key];\n }\n}\n\n/**\n * @description\n * Creates a configured `Creator` function that, when called, returns an object in the shape of the `Action` interface.\n *\n * Action creators reduce the explicitness of class-based action creators.\n *\n * @param type Describes the action that will be dispatched\n * @param config Additional metadata needed for the handling of the action. See {@link createAction#usage-notes Usage Notes}.\n *\n * @usageNotes\n *\n * **Declaring an action creator**\n *\n * Without additional metadata:\n * ```ts\n * export const increment = createAction('[Counter] Increment');\n * ```\n * With additional metadata:\n * ```ts\n * export const loginSuccess = createAction(\n * '[Auth/API] Login Success',\n * props<{ user: User }>()\n * );\n * ```\n * With a function:\n * ```ts\n * export const loginSuccess = createAction(\n * '[Auth/API] Login Success',\n * (response: Response) => response.user\n * );\n * ```\n *\n * **Dispatching an action**\n *\n * Without additional metadata:\n * ```ts\n * store.dispatch(increment());\n * ```\n * With additional metadata:\n * ```ts\n * store.dispatch(loginSuccess({ user: newUser }));\n * ```\n *\n * **Referencing an action in a reducer**\n *\n * Using a switch statement:\n * ```ts\n * switch (action.type) {\n * // ...\n * case AuthApiActions.loginSuccess.type: {\n * return {\n * ...state,\n * user: action.user\n * };\n * }\n * }\n * ```\n * Using a reducer creator:\n * ```ts\n * on(AuthApiActions.loginSuccess, (state, { user }) => ({ ...state, user }))\n * ```\n *\n * **Referencing an action in an effect**\n * ```ts\n * effectName$ = createEffect(\n * () => this.actions$.pipe(\n * ofType(AuthApiActions.loginSuccess),\n * // ...\n * )\n * );\n * ```\n */\nfunction createAction(type, config) {\n REGISTERED_ACTION_TYPES[type] = (REGISTERED_ACTION_TYPES[type] || 0) + 1;\n if (typeof config === 'function') {\n return defineType(type, (...args) => ({\n ...config(...args),\n type\n }));\n }\n const as = config ? config._as : 'empty';\n switch (as) {\n case 'empty':\n return defineType(type, () => ({\n type\n }));\n case 'props':\n return defineType(type, props => ({\n ...props,\n type\n }));\n default:\n throw new Error('Unexpected config.');\n }\n}\nfunction props() {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return {\n _as: 'props',\n _p: undefined\n };\n}\nfunction union(creators) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return undefined;\n}\nfunction defineType(type, creator) {\n return Object.defineProperty(creator, 'type', {\n value: type,\n writable: false\n });\n}\nfunction capitalize(text) {\n return text.charAt(0).toUpperCase() + text.substring(1);\n}\nfunction uncapitalize(text) {\n return text.charAt(0).toLowerCase() + text.substring(1);\n}\n\n/**\n * @description\n * A function that creates a group of action creators with the same source.\n *\n * @param config An object that contains a source and dictionary of events.\n * An event is a key-value pair of an event name and event props.\n * @returns A dictionary of action creators.\n * The name of each action creator is created by camel casing the event name.\n * The type of each action is created using the \"[Source] Event Name\" pattern.\n *\n * @usageNotes\n *\n * ```ts\n * const authApiActions = createActionGroup({\n * source: 'Auth API',\n * events: {\n * // defining events with payload using the `props` function\n * 'Login Success': props<{ userId: number; token: string }>(),\n * 'Login Failure': props<{ error: string }>(),\n *\n * // defining an event without payload using the `emptyProps` function\n * 'Logout Success': emptyProps(),\n *\n * // defining an event with payload using the props factory\n * 'Logout Failure': (error: Error) => ({ error }),\n * },\n * });\n *\n * // action type: \"[Auth API] Login Success\"\n * authApiActions.loginSuccess({ userId: 10, token: 'ngrx' });\n *\n * // action type: \"[Auth API] Login Failure\"\n * authApiActions.loginFailure({ error: 'Login Failure!' });\n *\n * // action type: \"[Auth API] Logout Success\"\n * authApiActions.logoutSuccess();\n *\n * // action type: \"[Auth API] Logout Failure\";\n * authApiActions.logoutFailure(new Error('Logout Failure!'));\n * ```\n */\nfunction createActionGroup(config) {\n const {\n source,\n events\n } = config;\n return Object.keys(events).reduce((actionGroup, eventName) => ({\n ...actionGroup,\n [toActionName(eventName)]: createAction(toActionType(source, eventName), events[eventName])\n }), {});\n}\nfunction emptyProps() {\n return props();\n}\nfunction toActionName(eventName) {\n return eventName.trim().split(' ').map((word, i) => i === 0 ? uncapitalize(word) : capitalize(word)).join('');\n}\nfunction toActionType(source, eventName) {\n return `[${source}] ${eventName}`;\n}\nconst INIT = '@ngrx/store/init';\nlet ActionsSubject = /*#__PURE__*/(() => {\n class ActionsSubject extends BehaviorSubject {\n constructor() {\n super({\n type: INIT\n });\n }\n next(action) {\n if (typeof action === 'function') {\n throw new TypeError(`\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().`);\n } else if (typeof action === 'undefined') {\n throw new TypeError(`Actions must be objects`);\n } else if (typeof action.type === 'undefined') {\n throw new TypeError(`Actions must have a type property`);\n }\n super.next(action);\n }\n complete() {\n /* noop */\n }\n ngOnDestroy() {\n super.complete();\n }\n /** @nocollapse */\n static {\n this.ɵfac = function ActionsSubject_Factory(t) {\n return new (t || ActionsSubject)();\n };\n }\n /** @nocollapse */\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ActionsSubject,\n factory: ActionsSubject.ɵfac\n });\n }\n }\n return ActionsSubject;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst ACTIONS_SUBJECT_PROVIDERS = [ActionsSubject];\nconst _ROOT_STORE_GUARD = new InjectionToken('@ngrx/store Internal Root Guard');\nconst _INITIAL_STATE = new InjectionToken('@ngrx/store Internal Initial State');\nconst INITIAL_STATE = new InjectionToken('@ngrx/store Initial State');\nconst REDUCER_FACTORY = new InjectionToken('@ngrx/store Reducer Factory');\nconst _REDUCER_FACTORY = new InjectionToken('@ngrx/store Internal Reducer Factory Provider');\nconst INITIAL_REDUCERS = new InjectionToken('@ngrx/store Initial Reducers');\nconst _INITIAL_REDUCERS = new InjectionToken('@ngrx/store Internal Initial Reducers');\nconst STORE_FEATURES = new InjectionToken('@ngrx/store Store Features');\nconst _STORE_REDUCERS = new InjectionToken('@ngrx/store Internal Store Reducers');\nconst _FEATURE_REDUCERS = new InjectionToken('@ngrx/store Internal Feature Reducers');\nconst _FEATURE_CONFIGS = new InjectionToken('@ngrx/store Internal Feature Configs');\nconst _STORE_FEATURES = new InjectionToken('@ngrx/store Internal Store Features');\nconst _FEATURE_REDUCERS_TOKEN = new InjectionToken('@ngrx/store Internal Feature Reducers Token');\nconst FEATURE_REDUCERS = new InjectionToken('@ngrx/store Feature Reducers');\n/**\n * User-defined meta reducers from StoreModule.forRoot()\n */\nconst USER_PROVIDED_META_REDUCERS = new InjectionToken('@ngrx/store User Provided Meta Reducers');\n/**\n * Meta reducers defined either internally by @ngrx/store or by library authors\n */\nconst META_REDUCERS = new InjectionToken('@ngrx/store Meta Reducers');\n/**\n * Concats the user provided meta reducers and the meta reducers provided on the multi\n * injection token\n */\nconst _RESOLVED_META_REDUCERS = new InjectionToken('@ngrx/store Internal Resolved Meta Reducers');\n/**\n * Runtime checks defined by the user via an InjectionToken\n * Defaults to `_USER_RUNTIME_CHECKS`\n */\nconst USER_RUNTIME_CHECKS = new InjectionToken('@ngrx/store User Runtime Checks Config');\n/**\n * Runtime checks defined by the user via forRoot()\n */\nconst _USER_RUNTIME_CHECKS = new InjectionToken('@ngrx/store Internal User Runtime Checks Config');\n/**\n * Runtime checks currently in use\n */\nconst ACTIVE_RUNTIME_CHECKS = new InjectionToken('@ngrx/store Internal Runtime Checks');\nconst _ACTION_TYPE_UNIQUENESS_CHECK = new InjectionToken('@ngrx/store Check if Action types are unique');\n/**\n * InjectionToken that registers the global Store.\n * Mainly used to provide a hook that can be injected\n * to ensure the root state is loaded before something\n * that depends on it.\n */\nconst ROOT_STORE_PROVIDER = new InjectionToken('@ngrx/store Root Store Provider');\n/**\n * InjectionToken that registers feature states.\n * Mainly used to provide a hook that can be injected\n * to ensure feature state is loaded before something\n * that depends on it.\n */\nconst FEATURE_STATE_PROVIDER = new InjectionToken('@ngrx/store Feature State Provider');\n\n/**\n * @description\n * Combines reducers for individual features into a single reducer.\n *\n * You can use this function to delegate handling of state transitions to multiple reducers, each acting on their\n * own sub-state within the root state.\n *\n * @param reducers An object mapping keys of the root state to their corresponding feature reducer.\n * @param initialState Provides a state value if the current state is `undefined`, as it is initially.\n * @returns A reducer function.\n *\n * @usageNotes\n *\n * **Example combining two feature reducers into one \"root\" reducer**\n *\n * ```ts\n * export const reducer = combineReducers({\n * featureA: featureAReducer,\n * featureB: featureBReducer\n * });\n * ```\n *\n * You can also override the initial states of the sub-features:\n * ```ts\n * export const reducer = combineReducers({\n * featureA: featureAReducer,\n * featureB: featureBReducer\n * }, {\n * featureA: { counterA: 13 },\n * featureB: { counterB: 37 }\n * });\n * ```\n */\nfunction combineReducers(reducers, initialState = {}) {\n const reducerKeys = Object.keys(reducers);\n const finalReducers = {};\n for (let i = 0; i < reducerKeys.length; i++) {\n const key = reducerKeys[i];\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n const finalReducerKeys = Object.keys(finalReducers);\n return function combination(state, action) {\n state = state === undefined ? initialState : state;\n let hasChanged = false;\n const nextState = {};\n for (let i = 0; i < finalReducerKeys.length; i++) {\n const key = finalReducerKeys[i];\n const reducer = finalReducers[key];\n const previousStateForKey = state[key];\n const nextStateForKey = reducer(previousStateForKey, action);\n nextState[key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n return hasChanged ? nextState : state;\n };\n}\nfunction omit(object, keyToRemove) {\n return Object.keys(object).filter(key => key !== keyToRemove).reduce((result, key) => Object.assign(result, {\n [key]: object[key]\n }), {});\n}\nfunction compose(...functions) {\n return function (arg) {\n if (functions.length === 0) {\n return arg;\n }\n const last = functions[functions.length - 1];\n const rest = functions.slice(0, -1);\n return rest.reduceRight((composed, fn) => fn(composed), last(arg));\n };\n}\nfunction createReducerFactory(reducerFactory, metaReducers) {\n if (Array.isArray(metaReducers) && metaReducers.length > 0) {\n reducerFactory = compose.apply(null, [...metaReducers, reducerFactory]);\n }\n return (reducers, initialState) => {\n const reducer = reducerFactory(reducers);\n return (state, action) => {\n state = state === undefined ? initialState : state;\n return reducer(state, action);\n };\n };\n}\nfunction createFeatureReducerFactory(metaReducers) {\n const reducerFactory = Array.isArray(metaReducers) && metaReducers.length > 0 ? compose(...metaReducers) : r => r;\n return (reducer, initialState) => {\n reducer = reducerFactory(reducer);\n return (state, action) => {\n state = state === undefined ? initialState : state;\n return reducer(state, action);\n };\n };\n}\nclass ReducerObservable extends Observable {}\nclass ReducerManagerDispatcher extends ActionsSubject {}\nconst UPDATE = '@ngrx/store/update-reducers';\nlet ReducerManager = /*#__PURE__*/(() => {\n class ReducerManager extends BehaviorSubject {\n get currentReducers() {\n return this.reducers;\n }\n constructor(dispatcher, initialState, reducers, reducerFactory) {\n super(reducerFactory(reducers, initialState));\n this.dispatcher = dispatcher;\n this.initialState = initialState;\n this.reducers = reducers;\n this.reducerFactory = reducerFactory;\n }\n addFeature(feature) {\n this.addFeatures([feature]);\n }\n addFeatures(features) {\n const reducers = features.reduce((reducerDict, {\n reducers,\n reducerFactory,\n metaReducers,\n initialState,\n key\n }) => {\n const reducer = typeof reducers === 'function' ? createFeatureReducerFactory(metaReducers)(reducers, initialState) : createReducerFactory(reducerFactory, metaReducers)(reducers, initialState);\n reducerDict[key] = reducer;\n return reducerDict;\n }, {});\n this.addReducers(reducers);\n }\n removeFeature(feature) {\n this.removeFeatures([feature]);\n }\n removeFeatures(features) {\n this.removeReducers(features.map(p => p.key));\n }\n addReducer(key, reducer) {\n this.addReducers({\n [key]: reducer\n });\n }\n addReducers(reducers) {\n this.reducers = {\n ...this.reducers,\n ...reducers\n };\n this.updateReducers(Object.keys(reducers));\n }\n removeReducer(featureKey) {\n this.removeReducers([featureKey]);\n }\n removeReducers(featureKeys) {\n featureKeys.forEach(key => {\n this.reducers = omit(this.reducers, key) /*TODO(#823)*/;\n });\n this.updateReducers(featureKeys);\n }\n updateReducers(featureKeys) {\n this.next(this.reducerFactory(this.reducers, this.initialState));\n this.dispatcher.next({\n type: UPDATE,\n features: featureKeys\n });\n }\n ngOnDestroy() {\n this.complete();\n }\n /** @nocollapse */\n static {\n this.ɵfac = function ReducerManager_Factory(t) {\n return new (t || ReducerManager)(i0.ɵɵinject(ReducerManagerDispatcher), i0.ɵɵinject(INITIAL_STATE), i0.ɵɵinject(INITIAL_REDUCERS), i0.ɵɵinject(REDUCER_FACTORY));\n };\n }\n /** @nocollapse */\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ReducerManager,\n factory: ReducerManager.ɵfac\n });\n }\n }\n return ReducerManager;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst REDUCER_MANAGER_PROVIDERS = [ReducerManager, {\n provide: ReducerObservable,\n useExisting: ReducerManager\n}, {\n provide: ReducerManagerDispatcher,\n useExisting: ActionsSubject\n}];\nlet ScannedActionsSubject = /*#__PURE__*/(() => {\n class ScannedActionsSubject extends Subject {\n ngOnDestroy() {\n this.complete();\n }\n /** @nocollapse */\n static {\n this.ɵfac = /* @__PURE__ */(() => {\n let ɵScannedActionsSubject_BaseFactory;\n return function ScannedActionsSubject_Factory(t) {\n return (ɵScannedActionsSubject_BaseFactory || (ɵScannedActionsSubject_BaseFactory = i0.ɵɵgetInheritedFactory(ScannedActionsSubject)))(t || ScannedActionsSubject);\n };\n })();\n }\n /** @nocollapse */\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ScannedActionsSubject,\n factory: ScannedActionsSubject.ɵfac\n });\n }\n }\n return ScannedActionsSubject;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst SCANNED_ACTIONS_SUBJECT_PROVIDERS = [ScannedActionsSubject];\nclass StateObservable extends Observable {}\nlet State = /*#__PURE__*/(() => {\n class State extends BehaviorSubject {\n static {\n this.INIT = INIT;\n }\n constructor(actions$, reducer$, scannedActions, initialState) {\n super(initialState);\n const actionsOnQueue$ = actions$.pipe(observeOn(queueScheduler));\n const withLatestReducer$ = actionsOnQueue$.pipe(withLatestFrom(reducer$));\n const seed = {\n state: initialState\n };\n const stateAndAction$ = withLatestReducer$.pipe(scan(reduceState, seed));\n this.stateSubscription = stateAndAction$.subscribe(({\n state,\n action\n }) => {\n this.next(state);\n scannedActions.next(action);\n });\n this.state = toSignal(this, {\n manualCleanup: true,\n requireSync: true\n });\n }\n ngOnDestroy() {\n this.stateSubscription.unsubscribe();\n this.complete();\n }\n /** @nocollapse */\n static {\n this.ɵfac = function State_Factory(t) {\n return new (t || State)(i0.ɵɵinject(ActionsSubject), i0.ɵɵinject(ReducerObservable), i0.ɵɵinject(ScannedActionsSubject), i0.ɵɵinject(INITIAL_STATE));\n };\n }\n /** @nocollapse */\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: State,\n factory: State.ɵfac\n });\n }\n }\n return State;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction reduceState(stateActionPair = {\n state: undefined\n}, [action, reducer]) {\n const {\n state\n } = stateActionPair;\n return {\n state: reducer(state, action),\n action\n };\n}\nconst STATE_PROVIDERS = [State, {\n provide: StateObservable,\n useExisting: State\n}];\n\n// disabled because we have lowercase generics for `select`\nlet Store = /*#__PURE__*/(() => {\n class Store extends Observable {\n constructor(state$, actionsObserver, reducerManager) {\n super();\n this.actionsObserver = actionsObserver;\n this.reducerManager = reducerManager;\n this.source = state$;\n this.state = state$.state;\n }\n select(pathOrMapFn, ...paths) {\n return select.call(null, pathOrMapFn, ...paths)(this);\n }\n /**\n * Returns a signal of the provided selector.\n *\n * @param selector selector function\n * @param options select signal options\n */\n selectSignal(selector, options) {\n return computed(() => selector(this.state()), options);\n }\n lift(operator) {\n const store = new Store(this, this.actionsObserver, this.reducerManager);\n store.operator = operator;\n return store;\n }\n dispatch(action) {\n this.actionsObserver.next(action);\n }\n next(action) {\n this.actionsObserver.next(action);\n }\n error(err) {\n this.actionsObserver.error(err);\n }\n complete() {\n this.actionsObserver.complete();\n }\n addReducer(key, reducer) {\n this.reducerManager.addReducer(key, reducer);\n }\n removeReducer(key) {\n this.reducerManager.removeReducer(key);\n }\n /** @nocollapse */\n static {\n this.ɵfac = function Store_Factory(t) {\n return new (t || Store)(i0.ɵɵinject(StateObservable), i0.ɵɵinject(ActionsSubject), i0.ɵɵinject(ReducerManager));\n };\n }\n /** @nocollapse */\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: Store,\n factory: Store.ɵfac\n });\n }\n }\n return Store;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst STORE_PROVIDERS = [Store];\nfunction select(pathOrMapFn, propsOrPath, ...paths) {\n return function selectOperator(source$) {\n let mapped$;\n if (typeof pathOrMapFn === 'string') {\n const pathSlices = [propsOrPath, ...paths].filter(Boolean);\n mapped$ = source$.pipe(pluck(pathOrMapFn, ...pathSlices));\n } else if (typeof pathOrMapFn === 'function') {\n mapped$ = source$.pipe(map(source => pathOrMapFn(source, propsOrPath)));\n } else {\n throw new TypeError(`Unexpected type '${typeof pathOrMapFn}' in select operator,` + ` expected 'string' or 'function'`);\n }\n return mapped$.pipe(distinctUntilChanged());\n };\n}\nconst RUNTIME_CHECK_URL = 'https://ngrx.io/guide/store/configuration/runtime-checks';\nfunction isUndefined(target) {\n return target === undefined;\n}\nfunction isNull(target) {\n return target === null;\n}\nfunction isArray(target) {\n return Array.isArray(target);\n}\nfunction isString(target) {\n return typeof target === 'string';\n}\nfunction isBoolean(target) {\n return typeof target === 'boolean';\n}\nfunction isNumber(target) {\n return typeof target === 'number';\n}\nfunction isObjectLike(target) {\n return typeof target === 'object' && target !== null;\n}\nfunction isObject(target) {\n return isObjectLike(target) && !isArray(target);\n}\nfunction isPlainObject(target) {\n if (!isObject(target)) {\n return false;\n }\n const targetPrototype = Object.getPrototypeOf(target);\n return targetPrototype === Object.prototype || targetPrototype === null;\n}\nfunction isFunction(target) {\n return typeof target === 'function';\n}\nfunction isComponent(target) {\n return isFunction(target) && target.hasOwnProperty('ɵcmp');\n}\nfunction hasOwnProperty(target, propertyName) {\n return Object.prototype.hasOwnProperty.call(target, propertyName);\n}\nlet _ngrxMockEnvironment = false;\nfunction setNgrxMockEnvironment(value) {\n _ngrxMockEnvironment = value;\n}\nfunction isNgrxMockEnvironment() {\n return _ngrxMockEnvironment;\n}\nfunction isEqualCheck(a, b) {\n return a === b;\n}\nfunction isArgumentsChanged(args, lastArguments, comparator) {\n for (let i = 0; i < args.length; i++) {\n if (!comparator(args[i], lastArguments[i])) {\n return true;\n }\n }\n return false;\n}\nfunction resultMemoize(projectionFn, isResultEqual) {\n return defaultMemoize(projectionFn, isEqualCheck, isResultEqual);\n}\nfunction defaultMemoize(projectionFn, isArgumentsEqual = isEqualCheck, isResultEqual = isEqualCheck) {\n let lastArguments = null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, , , , ,\n let lastResult = null;\n let overrideResult;\n function reset() {\n lastArguments = null;\n lastResult = null;\n }\n function setResult(result = undefined) {\n overrideResult = {\n result\n };\n }\n function clearResult() {\n overrideResult = undefined;\n }\n /* eslint-disable prefer-rest-params, prefer-spread */\n // disabled because of the use of `arguments`\n function memoized() {\n if (overrideResult !== undefined) {\n return overrideResult.result;\n }\n if (!lastArguments) {\n lastResult = projectionFn.apply(null, arguments);\n lastArguments = arguments;\n return lastResult;\n }\n if (!isArgumentsChanged(arguments, lastArguments, isArgumentsEqual)) {\n return lastResult;\n }\n const newResult = projectionFn.apply(null, arguments);\n lastArguments = arguments;\n if (isResultEqual(lastResult, newResult)) {\n return lastResult;\n }\n lastResult = newResult;\n return newResult;\n }\n return {\n memoized,\n reset,\n setResult,\n clearResult\n };\n}\nfunction createSelector(...input) {\n return createSelectorFactory(defaultMemoize)(...input);\n}\nfunction defaultStateFn(state, selectors, props, memoizedProjector) {\n if (props === undefined) {\n const args = selectors.map(fn => fn(state));\n return memoizedProjector.memoized.apply(null, args);\n }\n const args = selectors.map(fn => fn(state, props));\n return memoizedProjector.memoized.apply(null, [...args, props]);\n}\n/**\n *\n * @param memoize The function used to memoize selectors\n * @param options Config Object that may include a `stateFn` function defining how to return the selector's value, given the entire `Store`'s state, parent `Selector`s, `Props`, and a `MemoizedProjection`\n *\n * @usageNotes\n *\n * **Creating a Selector Factory Where Array Order Does Not Matter**\n *\n * ```ts\n * function removeMatch(arr: string[], target: string): string[] {\n * const matchIndex = arr.indexOf(target);\n * return [...arr.slice(0, matchIndex), ...arr.slice(matchIndex + 1)];\n * }\n *\n * function orderDoesNotMatterComparer(a: any, b: any): boolean {\n * if (!Array.isArray(a) || !Array.isArray(b)) {\n * return a === b;\n * }\n * if (a.length !== b.length) {\n * return false;\n * }\n * let tempB = [...b];\n * function reduceToDetermineIfArraysContainSameContents(\n * previousCallResult: boolean,\n * arrayMember: any\n * ): boolean {\n * if (previousCallResult === false) {\n * return false;\n * }\n * if (tempB.includes(arrayMember)) {\n * tempB = removeMatch(tempB, arrayMember);\n * return true;\n * }\n * return false;\n * }\n * return a.reduce(reduceToDetermineIfArraysContainSameContents, true);\n * }\n *\n * export const createOrderDoesNotMatterSelector = createSelectorFactory(\n * (projectionFun) => defaultMemoize(\n * projectionFun,\n * orderDoesNotMatterComparer,\n * orderDoesNotMatterComparer\n * )\n * );\n * ```\n *\n * **Creating an Alternative Memoization Strategy**\n *\n * ```ts\n * function serialize(x: any): string {\n * return JSON.stringify(x);\n * }\n *\n * export const createFullHistorySelector = createSelectorFactory(\n * (projectionFunction) => {\n * const cache = {};\n *\n * function memoized() {\n * const serializedArguments = serialize(...arguments);\n * if (cache[serializedArguments] != null) {\n * cache[serializedArguments] = projectionFunction.apply(null, arguments);\n * }\n * return cache[serializedArguments];\n * }\n * return {\n * memoized,\n * reset: () => {},\n * setResult: () => {},\n * clearResult: () => {},\n * };\n * }\n * );\n * ```\n */\nfunction createSelectorFactory(memoize, options = {\n stateFn: defaultStateFn\n}) {\n return function (...input) {\n let args = input;\n if (Array.isArray(args[0])) {\n const [head, ...tail] = args;\n args = [...head, ...tail];\n } else if (args.length === 1 && isSelectorsDictionary(args[0])) {\n args = extractArgsFromSelectorsDictionary(args[0]);\n }\n const selectors = args.slice(0, args.length - 1);\n const projector = args[args.length - 1];\n const memoizedSelectors = selectors.filter(selector => selector.release && typeof selector.release === 'function');\n const memoizedProjector = memoize(function (...selectors) {\n return projector.apply(null, selectors);\n });\n const memoizedState = defaultMemoize(function (state, props) {\n return options.stateFn.apply(null, [state, selectors, props, memoizedProjector]);\n });\n function release() {\n memoizedState.reset();\n memoizedProjector.reset();\n memoizedSelectors.forEach(selector => selector.release());\n }\n return Object.assign(memoizedState.memoized, {\n release,\n projector: memoizedProjector.memoized,\n setResult: memoizedState.setResult,\n clearResult: memoizedState.clearResult\n });\n };\n}\nfunction createFeatureSelector(featureName) {\n return createSelector(state => {\n const featureState = state[featureName];\n if (!isNgrxMockEnvironment() && isDevMode() && !(featureName in state)) {\n console.warn(`@ngrx/store: The feature name \"${featureName}\" does ` + 'not exist in the state, therefore createFeatureSelector ' + 'cannot access it. Be sure it is imported in a loaded module ' + `using StoreModule.forRoot('${featureName}', ...) or ` + `StoreModule.forFeature('${featureName}', ...). If the default ` + 'state is intended to be undefined, as is the case with router ' + 'state, this development-only warning message can be ignored.');\n }\n return featureState;\n }, featureState => featureState);\n}\nfunction isSelectorsDictionary(selectors) {\n return !!selectors && typeof selectors === 'object' && Object.values(selectors).every(selector => typeof selector === 'function');\n}\nfunction extractArgsFromSelectorsDictionary(selectorsDictionary) {\n const selectors = Object.values(selectorsDictionary);\n const resultKeys = Object.keys(selectorsDictionary);\n const projector = (...selectorResults) => resultKeys.reduce((result, key, index) => ({\n ...result,\n [key]: selectorResults[index]\n }), {});\n return [...selectors, projector];\n}\n\n/**\n * @description\n * A function that accepts a feature name and a feature reducer, and creates\n * a feature selector and a selector for each feature state property.\n * This function also provides the ability to add extra selectors to\n * the feature object.\n *\n * @param featureConfig An object that contains a feature name and a feature\n * reducer as required, and extra selectors factory as an optional argument.\n * @returns An object that contains a feature name, a feature reducer,\n * a feature selector, a selector for each feature state property, and extra\n * selectors.\n *\n * @usageNotes\n *\n * ```ts\n * interface ProductsState {\n * products: Product[];\n * selectedId: string | null;\n * }\n *\n * const initialState: ProductsState = {\n * products: [],\n * selectedId: null,\n * };\n *\n * const productsFeature = createFeature({\n * name: 'products',\n * reducer: createReducer(\n * initialState,\n * on(ProductsApiActions.loadSuccess(state, { products }) => ({\n * ...state,\n * products,\n * }),\n * ),\n * });\n *\n * const {\n * name,\n * reducer,\n * // feature selector\n * selectProductsState, // type: MemoizedSelector, ProductsState>\n * // feature state properties selectors\n * selectProducts, // type: MemoizedSelector, Product[]>\n * selectSelectedId, // type: MemoizedSelector, string | null>\n * } = productsFeature;\n * ```\n *\n * **Creating Feature with Extra Selectors**\n *\n * ```ts\n * type CallState = 'init' | 'loading' | 'loaded' | { error: string };\n *\n * interface State extends EntityState {\n * callState: CallState;\n * }\n *\n * const adapter = createEntityAdapter();\n * const initialState: State = adapter.getInitialState({\n * callState: 'init',\n * });\n *\n * export const productsFeature = createFeature({\n * name: 'products',\n * reducer: createReducer(initialState),\n * extraSelectors: ({ selectProductsState, selectCallState }) => ({\n * ...adapter.getSelectors(selectProductsState),\n * ...getCallStateSelectors(selectCallState)\n * }),\n * });\n *\n * const {\n * name,\n * reducer,\n * // feature selector\n * selectProductsState,\n * // feature state properties selectors\n * selectIds,\n * selectEntities,\n * selectCallState,\n * // selectors returned by `adapter.getSelectors`\n * selectAll,\n * selectTotal,\n * // selectors returned by `getCallStateSelectors`\n * selectIsLoading,\n * selectIsLoaded,\n * selectError,\n * } = productsFeature;\n * ```\n */\nfunction createFeature(featureConfig) {\n const {\n name,\n reducer,\n extraSelectors: extraSelectorsFactory\n } = featureConfig;\n const featureSelector = createFeatureSelector(name);\n const nestedSelectors = createNestedSelectors(featureSelector, reducer);\n const baseSelectors = {\n [`select${capitalize(name)}State`]: featureSelector,\n ...nestedSelectors\n };\n const extraSelectors = extraSelectorsFactory ? extraSelectorsFactory(baseSelectors) : {};\n return {\n name,\n reducer,\n ...baseSelectors,\n ...extraSelectors\n };\n}\nfunction createNestedSelectors(featureSelector, reducer) {\n const initialState = getInitialState(reducer);\n const nestedKeys = isPlainObject(initialState) ? Object.keys(initialState) : [];\n return nestedKeys.reduce((nestedSelectors, nestedKey) => ({\n ...nestedSelectors,\n [`select${capitalize(nestedKey)}`]: createSelector(featureSelector, parentState => parentState?.[nestedKey])\n }), {});\n}\nfunction getInitialState(reducer) {\n return reducer(undefined, {\n type: '@ngrx/feature/init'\n });\n}\nfunction _createStoreReducers(reducers) {\n return reducers instanceof InjectionToken ? inject(reducers) : reducers;\n}\nfunction _createFeatureStore(configs, featureStores) {\n return featureStores.map((feat, index) => {\n if (configs[index] instanceof InjectionToken) {\n const conf = inject(configs[index]);\n return {\n key: feat.key,\n reducerFactory: conf.reducerFactory ? conf.reducerFactory : combineReducers,\n metaReducers: conf.metaReducers ? conf.metaReducers : [],\n initialState: conf.initialState\n };\n }\n return feat;\n });\n}\nfunction _createFeatureReducers(reducerCollection) {\n return reducerCollection.map(reducer => {\n return reducer instanceof InjectionToken ? inject(reducer) : reducer;\n });\n}\nfunction _initialStateFactory(initialState) {\n if (typeof initialState === 'function') {\n return initialState();\n }\n return initialState;\n}\nfunction _concatMetaReducers(metaReducers, userProvidedMetaReducers) {\n return metaReducers.concat(userProvidedMetaReducers);\n}\nfunction _provideForRootGuard() {\n const store = inject(Store, {\n optional: true,\n skipSelf: true\n });\n if (store) {\n throw new TypeError(`The root Store has been provided more than once. Feature modules should provide feature states instead.`);\n }\n return 'guarded';\n}\nfunction immutabilityCheckMetaReducer(reducer, checks) {\n return function (state, action) {\n const act = checks.action(action) ? freeze(action) : action;\n const nextState = reducer(state, act);\n return checks.state() ? freeze(nextState) : nextState;\n };\n}\nfunction freeze(target) {\n Object.freeze(target);\n const targetIsFunction = isFunction(target);\n Object.getOwnPropertyNames(target).forEach(prop => {\n // Ignore Ivy properties, ref: https://github.com/ngrx/platform/issues/2109#issuecomment-582689060\n if (prop.startsWith('ɵ')) {\n return;\n }\n if (hasOwnProperty(target, prop) && (targetIsFunction ? prop !== 'caller' && prop !== 'callee' && prop !== 'arguments' : true)) {\n const propValue = target[prop];\n if ((isObjectLike(propValue) || isFunction(propValue)) && !Object.isFrozen(propValue)) {\n freeze(propValue);\n }\n }\n });\n return target;\n}\nfunction serializationCheckMetaReducer(reducer, checks) {\n return function (state, action) {\n if (checks.action(action)) {\n const unserializableAction = getUnserializable(action);\n throwIfUnserializable(unserializableAction, 'action');\n }\n const nextState = reducer(state, action);\n if (checks.state()) {\n const unserializableState = getUnserializable(nextState);\n throwIfUnserializable(unserializableState, 'state');\n }\n return nextState;\n };\n}\nfunction getUnserializable(target, path = []) {\n // Guard against undefined and null, e.g. a reducer that returns undefined\n if ((isUndefined(target) || isNull(target)) && path.length === 0) {\n return {\n path: ['root'],\n value: target\n };\n }\n const keys = Object.keys(target);\n return keys.reduce((result, key) => {\n if (result) {\n return result;\n }\n const value = target[key];\n // Ignore Ivy components\n if (isComponent(value)) {\n return result;\n }\n if (isUndefined(value) || isNull(value) || isNumber(value) || isBoolean(value) || isString(value) || isArray(value)) {\n return false;\n }\n if (isPlainObject(value)) {\n return getUnserializable(value, [...path, key]);\n }\n return {\n path: [...path, key],\n value\n };\n }, false);\n}\nfunction throwIfUnserializable(unserializable, context) {\n if (unserializable === false) {\n return;\n }\n const unserializablePath = unserializable.path.join('.');\n const error = new Error(`Detected unserializable ${context} at \"${unserializablePath}\". ${RUNTIME_CHECK_URL}#strict${context}serializability`);\n error.value = unserializable.value;\n error.unserializablePath = unserializablePath;\n throw error;\n}\nfunction inNgZoneAssertMetaReducer(reducer, checks) {\n return function (state, action) {\n if (checks.action(action) && !i0.NgZone.isInAngularZone()) {\n throw new Error(`Action '${action.type}' running outside NgZone. ${RUNTIME_CHECK_URL}#strictactionwithinngzone`);\n }\n return reducer(state, action);\n };\n}\nfunction createActiveRuntimeChecks(runtimeChecks) {\n if (isDevMode()) {\n return {\n strictStateSerializability: false,\n strictActionSerializability: false,\n strictStateImmutability: true,\n strictActionImmutability: true,\n strictActionWithinNgZone: false,\n strictActionTypeUniqueness: false,\n ...runtimeChecks\n };\n }\n return {\n strictStateSerializability: false,\n strictActionSerializability: false,\n strictStateImmutability: false,\n strictActionImmutability: false,\n strictActionWithinNgZone: false,\n strictActionTypeUniqueness: false\n };\n}\nfunction createSerializationCheckMetaReducer({\n strictActionSerializability,\n strictStateSerializability\n}) {\n return reducer => strictActionSerializability || strictStateSerializability ? serializationCheckMetaReducer(reducer, {\n action: action => strictActionSerializability && !ignoreNgrxAction(action),\n state: () => strictStateSerializability\n }) : reducer;\n}\nfunction createImmutabilityCheckMetaReducer({\n strictActionImmutability,\n strictStateImmutability\n}) {\n return reducer => strictActionImmutability || strictStateImmutability ? immutabilityCheckMetaReducer(reducer, {\n action: action => strictActionImmutability && !ignoreNgrxAction(action),\n state: () => strictStateImmutability\n }) : reducer;\n}\nfunction ignoreNgrxAction(action) {\n return action.type.startsWith('@ngrx');\n}\nfunction createInNgZoneCheckMetaReducer({\n strictActionWithinNgZone\n}) {\n return reducer => strictActionWithinNgZone ? inNgZoneAssertMetaReducer(reducer, {\n action: action => strictActionWithinNgZone && !ignoreNgrxAction(action)\n }) : reducer;\n}\nfunction provideRuntimeChecks(runtimeChecks) {\n return [{\n provide: _USER_RUNTIME_CHECKS,\n useValue: runtimeChecks\n }, {\n provide: USER_RUNTIME_CHECKS,\n useFactory: _runtimeChecksFactory,\n deps: [_USER_RUNTIME_CHECKS]\n }, {\n provide: ACTIVE_RUNTIME_CHECKS,\n deps: [USER_RUNTIME_CHECKS],\n useFactory: createActiveRuntimeChecks\n }, {\n provide: META_REDUCERS,\n multi: true,\n deps: [ACTIVE_RUNTIME_CHECKS],\n useFactory: createImmutabilityCheckMetaReducer\n }, {\n provide: META_REDUCERS,\n multi: true,\n deps: [ACTIVE_RUNTIME_CHECKS],\n useFactory: createSerializationCheckMetaReducer\n }, {\n provide: META_REDUCERS,\n multi: true,\n deps: [ACTIVE_RUNTIME_CHECKS],\n useFactory: createInNgZoneCheckMetaReducer\n }];\n}\nfunction checkForActionTypeUniqueness() {\n return [{\n provide: _ACTION_TYPE_UNIQUENESS_CHECK,\n multi: true,\n deps: [ACTIVE_RUNTIME_CHECKS],\n useFactory: _actionTypeUniquenessCheck\n }];\n}\nfunction _runtimeChecksFactory(runtimeChecks) {\n return runtimeChecks;\n}\nfunction _actionTypeUniquenessCheck(config) {\n if (!config.strictActionTypeUniqueness) {\n return;\n }\n const duplicates = Object.entries(REGISTERED_ACTION_TYPES).filter(([, registrations]) => registrations > 1).map(([type]) => type);\n if (duplicates.length) {\n throw new Error(`Action types are registered more than once, ${duplicates.map(type => `\"${type}\"`).join(', ')}. ${RUNTIME_CHECK_URL}#strictactiontypeuniqueness`);\n }\n}\n\n/**\n * Provides additional slices of state in the Store.\n * These providers cannot be used at the component level.\n *\n * @usageNotes\n *\n * ### Providing Store Features\n *\n * ```ts\n * const booksRoutes: Route[] = [\n * {\n * path: '',\n * providers: [provideState('books', booksReducer)],\n * children: [\n * { path: '', component: BookListComponent },\n * { path: ':id', component: BookDetailsComponent },\n * ],\n * },\n * ];\n * ```\n */\nfunction provideState(featureNameOrSlice, reducers, config = {}) {\n return makeEnvironmentProviders([..._provideState(featureNameOrSlice, reducers, config), ENVIRONMENT_STATE_PROVIDER]);\n}\nfunction _provideStore(reducers = {}, config = {}) {\n return [{\n provide: _ROOT_STORE_GUARD,\n useFactory: _provideForRootGuard\n }, {\n provide: _INITIAL_STATE,\n useValue: config.initialState\n }, {\n provide: INITIAL_STATE,\n useFactory: _initialStateFactory,\n deps: [_INITIAL_STATE]\n }, {\n provide: _INITIAL_REDUCERS,\n useValue: reducers\n }, {\n provide: _STORE_REDUCERS,\n useExisting: reducers instanceof InjectionToken ? reducers : _INITIAL_REDUCERS\n }, {\n provide: INITIAL_REDUCERS,\n deps: [_INITIAL_REDUCERS, [new Inject(_STORE_REDUCERS)]],\n useFactory: _createStoreReducers\n }, {\n provide: USER_PROVIDED_META_REDUCERS,\n useValue: config.metaReducers ? config.metaReducers : []\n }, {\n provide: _RESOLVED_META_REDUCERS,\n deps: [META_REDUCERS, USER_PROVIDED_META_REDUCERS],\n useFactory: _concatMetaReducers\n }, {\n provide: _REDUCER_FACTORY,\n useValue: config.reducerFactory ? config.reducerFactory : combineReducers\n }, {\n provide: REDUCER_FACTORY,\n deps: [_REDUCER_FACTORY, _RESOLVED_META_REDUCERS],\n useFactory: createReducerFactory\n }, ACTIONS_SUBJECT_PROVIDERS, REDUCER_MANAGER_PROVIDERS, SCANNED_ACTIONS_SUBJECT_PROVIDERS, STATE_PROVIDERS, STORE_PROVIDERS, provideRuntimeChecks(config.runtimeChecks), checkForActionTypeUniqueness()];\n}\nfunction rootStoreProviderFactory() {\n inject(ActionsSubject);\n inject(ReducerObservable);\n inject(ScannedActionsSubject);\n inject(Store);\n inject(_ROOT_STORE_GUARD, {\n optional: true\n });\n inject(_ACTION_TYPE_UNIQUENESS_CHECK, {\n optional: true\n });\n}\n/**\n * Environment Initializer used in the root\n * providers to initialize the Store\n */\nconst ENVIRONMENT_STORE_PROVIDER = [{\n provide: ROOT_STORE_PROVIDER,\n useFactory: rootStoreProviderFactory\n}, {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory() {\n return () => inject(ROOT_STORE_PROVIDER);\n }\n}];\n/**\n * Provides the global Store providers and initializes\n * the Store.\n * These providers cannot be used at the component level.\n *\n * @usageNotes\n *\n * ### Providing the Global Store\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideStore()],\n * });\n * ```\n */\nfunction provideStore(reducers, config) {\n return makeEnvironmentProviders([..._provideStore(reducers, config), ENVIRONMENT_STORE_PROVIDER]);\n}\nfunction featureStateProviderFactory() {\n inject(ROOT_STORE_PROVIDER);\n const features = inject(_STORE_FEATURES);\n const featureReducers = inject(FEATURE_REDUCERS);\n const reducerManager = inject(ReducerManager);\n inject(_ACTION_TYPE_UNIQUENESS_CHECK, {\n optional: true\n });\n const feats = features.map((feature, index) => {\n const featureReducerCollection = featureReducers.shift();\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const reducers = featureReducerCollection /*TODO(#823)*/[index];\n return {\n ...feature,\n reducers,\n initialState: _initialStateFactory(feature.initialState)\n };\n });\n reducerManager.addFeatures(feats);\n}\n/**\n * Environment Initializer used in the feature\n * providers to register state features\n */\nconst ENVIRONMENT_STATE_PROVIDER = [{\n provide: FEATURE_STATE_PROVIDER,\n useFactory: featureStateProviderFactory\n}, {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory() {\n return () => inject(FEATURE_STATE_PROVIDER);\n }\n}];\nfunction _provideState(featureNameOrSlice, reducers, config = {}) {\n return [{\n provide: _FEATURE_CONFIGS,\n multi: true,\n useValue: featureNameOrSlice instanceof Object ? {} : config\n }, {\n provide: STORE_FEATURES,\n multi: true,\n useValue: {\n key: featureNameOrSlice instanceof Object ? featureNameOrSlice.name : featureNameOrSlice,\n reducerFactory: !(config instanceof InjectionToken) && config.reducerFactory ? config.reducerFactory : combineReducers,\n metaReducers: !(config instanceof InjectionToken) && config.metaReducers ? config.metaReducers : [],\n initialState: !(config instanceof InjectionToken) && config.initialState ? config.initialState : undefined\n }\n }, {\n provide: _STORE_FEATURES,\n deps: [_FEATURE_CONFIGS, STORE_FEATURES],\n useFactory: _createFeatureStore\n }, {\n provide: _FEATURE_REDUCERS,\n multi: true,\n useValue: featureNameOrSlice instanceof Object ? featureNameOrSlice.reducer : reducers\n }, {\n provide: _FEATURE_REDUCERS_TOKEN,\n multi: true,\n useExisting: reducers instanceof InjectionToken ? reducers : _FEATURE_REDUCERS\n }, {\n provide: FEATURE_REDUCERS,\n multi: true,\n deps: [_FEATURE_REDUCERS, [new Inject(_FEATURE_REDUCERS_TOKEN)]],\n useFactory: _createFeatureReducers\n }, checkForActionTypeUniqueness()];\n}\nlet StoreRootModule = /*#__PURE__*/(() => {\n class StoreRootModule {\n constructor(actions$, reducer$, scannedActions$, store, guard, actionCheck) {}\n /** @nocollapse */\n static {\n this.ɵfac = function StoreRootModule_Factory(t) {\n return new (t || StoreRootModule)(i0.ɵɵinject(ActionsSubject), i0.ɵɵinject(ReducerObservable), i0.ɵɵinject(ScannedActionsSubject), i0.ɵɵinject(Store), i0.ɵɵinject(_ROOT_STORE_GUARD, 8), i0.ɵɵinject(_ACTION_TYPE_UNIQUENESS_CHECK, 8));\n };\n }\n /** @nocollapse */\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: StoreRootModule\n });\n }\n /** @nocollapse */\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n }\n }\n return StoreRootModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet StoreFeatureModule = /*#__PURE__*/(() => {\n class StoreFeatureModule {\n constructor(features, featureReducers, reducerManager, root, actionCheck) {\n this.features = features;\n this.featureReducers = featureReducers;\n this.reducerManager = reducerManager;\n const feats = features.map((feature, index) => {\n const featureReducerCollection = featureReducers.shift();\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const reducers = featureReducerCollection /*TODO(#823)*/[index];\n return {\n ...feature,\n reducers,\n initialState: _initialStateFactory(feature.initialState)\n };\n });\n reducerManager.addFeatures(feats);\n }\n // eslint-disable-next-line @angular-eslint/contextual-lifecycle\n ngOnDestroy() {\n this.reducerManager.removeFeatures(this.features);\n }\n /** @nocollapse */\n static {\n this.ɵfac = function StoreFeatureModule_Factory(t) {\n return new (t || StoreFeatureModule)(i0.ɵɵinject(_STORE_FEATURES), i0.ɵɵinject(FEATURE_REDUCERS), i0.ɵɵinject(ReducerManager), i0.ɵɵinject(StoreRootModule), i0.ɵɵinject(_ACTION_TYPE_UNIQUENESS_CHECK, 8));\n };\n }\n /** @nocollapse */\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: StoreFeatureModule\n });\n }\n /** @nocollapse */\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n }\n }\n return StoreFeatureModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet StoreModule = /*#__PURE__*/(() => {\n class StoreModule {\n static forRoot(reducers, config) {\n return {\n ngModule: StoreRootModule,\n providers: [..._provideStore(reducers, config)]\n };\n }\n static forFeature(featureNameOrSlice, reducers, config = {}) {\n return {\n ngModule: StoreFeatureModule,\n providers: [..._provideState(featureNameOrSlice, reducers, config)]\n };\n }\n /** @nocollapse */\n static {\n this.ɵfac = function StoreModule_Factory(t) {\n return new (t || StoreModule)();\n };\n }\n /** @nocollapse */\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: StoreModule\n });\n }\n /** @nocollapse */\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n }\n }\n return StoreModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @description\n * Associates actions with a given state change function.\n * A state change function must be provided as the last parameter.\n *\n * @param args `ActionCreator`'s followed by a state change function.\n *\n * @returns an association of action types with a state change function.\n *\n * @usageNotes\n * ```ts\n * on(AuthApiActions.loginSuccess, (state, { user }) => ({ ...state, user }))\n * ```\n */\nfunction on(...args) {\n const reducer = args.pop();\n const types = args.map(creator => creator.type);\n return {\n reducer,\n types\n };\n}\n/**\n * @description\n * Creates a reducer function to handle state transitions.\n *\n * Reducer creators reduce the explicitness of reducer functions with switch statements.\n *\n * @param initialState Provides a state value if the current state is `undefined`, as it is initially.\n * @param ons Associations between actions and state changes.\n * @returns A reducer function.\n *\n * @usageNotes\n *\n * - Must be used with `ActionCreator`'s (returned by `createAction`). Cannot be used with class-based action creators.\n * - The returned `ActionReducer` does not require being wrapped with another function.\n *\n * **Declaring a reducer creator**\n *\n * ```ts\n * export const reducer = createReducer(\n * initialState,\n * on(\n * featureActions.actionOne,\n * featureActions.actionTwo,\n * (state, { updatedValue }) => ({ ...state, prop: updatedValue })\n * ),\n * on(featureActions.actionThree, () => initialState);\n * );\n * ```\n */\nfunction createReducer(initialState, ...ons) {\n const map = new Map();\n for (const on of ons) {\n for (const type of on.types) {\n const existingReducer = map.get(type);\n if (existingReducer) {\n const newReducer = (state, action) => on.reducer(existingReducer(state, action), action);\n map.set(type, newReducer);\n } else {\n map.set(type, on.reducer);\n }\n }\n }\n return function (state = initialState, action) {\n const reducer = map.get(action.type);\n return reducer ? reducer(state, action) : state;\n };\n}\n\n/**\n * DO NOT EDIT\n *\n * This file is automatically generated at build\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ACTIVE_RUNTIME_CHECKS, ActionsSubject, FEATURE_REDUCERS, FEATURE_STATE_PROVIDER, INIT, INITIAL_REDUCERS, INITIAL_STATE, META_REDUCERS, REDUCER_FACTORY, ROOT_STORE_PROVIDER, ReducerManager, ReducerManagerDispatcher, ReducerObservable, STORE_FEATURES, ScannedActionsSubject, State, StateObservable, Store, StoreFeatureModule, StoreModule, StoreRootModule, UPDATE, USER_PROVIDED_META_REDUCERS, USER_RUNTIME_CHECKS, combineReducers, compose, createAction, createActionGroup, createFeature, createFeatureSelector, createReducer, createReducerFactory, createSelector, createSelectorFactory, defaultMemoize, defaultStateFn, emptyProps, isNgrxMockEnvironment, on, props, provideState, provideStore, reduceState, resultMemoize, select, setNgrxMockEnvironment, union };\n","/**\n * MIT License\n * \n * Copyright (c) 2014-present, Lee Byron and other contributors.\n * \n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * \n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nvar DELETE = 'delete';\n\n// Constants describing the size of trie nodes.\nvar SHIFT = 5; // Resulted in best performance after ______?\nvar SIZE = 1 << SHIFT;\nvar MASK = SIZE - 1;\n\n// A consistent shared value representing \"not set\" which equals nothing other\n// than itself, and nothing that could be provided externally.\nvar NOT_SET = {};\n\n// Boolean references, Rough equivalent of `bool &`.\nfunction MakeRef() {\n return {\n value: false\n };\n}\nfunction SetRef(ref) {\n if (ref) {\n ref.value = true;\n }\n}\n\n// A function which returns a value representing an \"owner\" for transient writes\n// to tries. The return value will only ever equal itself, and will not equal\n// the return of any subsequent call of this function.\nfunction OwnerID() {}\nfunction ensureSize(iter) {\n if (iter.size === undefined) {\n iter.size = iter.__iterate(returnTrue);\n }\n return iter.size;\n}\nfunction wrapIndex(iter, index) {\n // This implements \"is array index\" which the ECMAString spec defines as:\n //\n // A String property name P is an array index if and only if\n // ToString(ToUint32(P)) is equal to P and ToUint32(P) is not equal\n // to 2^32−1.\n //\n // http://www.ecma-international.org/ecma-262/6.0/#sec-array-exotic-objects\n if (typeof index !== 'number') {\n var uint32Index = index >>> 0; // N >>> 0 is shorthand for ToUint32\n if ('' + uint32Index !== index || uint32Index === 4294967295) {\n return NaN;\n }\n index = uint32Index;\n }\n return index < 0 ? ensureSize(iter) + index : index;\n}\nfunction returnTrue() {\n return true;\n}\nfunction wholeSlice(begin, end, size) {\n return (begin === 0 && !isNeg(begin) || size !== undefined && begin <= -size) && (end === undefined || size !== undefined && end >= size);\n}\nfunction resolveBegin(begin, size) {\n return resolveIndex(begin, size, 0);\n}\nfunction resolveEnd(end, size) {\n return resolveIndex(end, size, size);\n}\nfunction resolveIndex(index, size, defaultIndex) {\n // Sanitize indices using this shorthand for ToInt32(argument)\n // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32\n return index === undefined ? defaultIndex : isNeg(index) ? size === Infinity ? size : Math.max(0, size + index) | 0 : size === undefined || size === index ? index : Math.min(size, index) | 0;\n}\nfunction isNeg(value) {\n // Account for -0 which is negative, but not less than 0.\n return value < 0 || value === 0 && 1 / value === -Infinity;\n}\nvar IS_COLLECTION_SYMBOL = '@@__IMMUTABLE_ITERABLE__@@';\nfunction isCollection(maybeCollection) {\n return Boolean(maybeCollection && maybeCollection[IS_COLLECTION_SYMBOL]);\n}\nvar IS_KEYED_SYMBOL = '@@__IMMUTABLE_KEYED__@@';\nfunction isKeyed(maybeKeyed) {\n return Boolean(maybeKeyed && maybeKeyed[IS_KEYED_SYMBOL]);\n}\nvar IS_INDEXED_SYMBOL = '@@__IMMUTABLE_INDEXED__@@';\nfunction isIndexed(maybeIndexed) {\n return Boolean(maybeIndexed && maybeIndexed[IS_INDEXED_SYMBOL]);\n}\nfunction isAssociative(maybeAssociative) {\n return isKeyed(maybeAssociative) || isIndexed(maybeAssociative);\n}\nvar Collection = function Collection(value) {\n return isCollection(value) ? value : Seq(value);\n};\nvar KeyedCollection = /*@__PURE__*/function (Collection) {\n function KeyedCollection(value) {\n return isKeyed(value) ? value : KeyedSeq(value);\n }\n if (Collection) KeyedCollection.__proto__ = Collection;\n KeyedCollection.prototype = Object.create(Collection && Collection.prototype);\n KeyedCollection.prototype.constructor = KeyedCollection;\n return KeyedCollection;\n}(Collection);\nvar IndexedCollection = /*@__PURE__*/function (Collection) {\n function IndexedCollection(value) {\n return isIndexed(value) ? value : IndexedSeq(value);\n }\n if (Collection) IndexedCollection.__proto__ = Collection;\n IndexedCollection.prototype = Object.create(Collection && Collection.prototype);\n IndexedCollection.prototype.constructor = IndexedCollection;\n return IndexedCollection;\n}(Collection);\nvar SetCollection = /*@__PURE__*/function (Collection) {\n function SetCollection(value) {\n return isCollection(value) && !isAssociative(value) ? value : SetSeq(value);\n }\n if (Collection) SetCollection.__proto__ = Collection;\n SetCollection.prototype = Object.create(Collection && Collection.prototype);\n SetCollection.prototype.constructor = SetCollection;\n return SetCollection;\n}(Collection);\nCollection.Keyed = KeyedCollection;\nCollection.Indexed = IndexedCollection;\nCollection.Set = SetCollection;\nvar IS_SEQ_SYMBOL = '@@__IMMUTABLE_SEQ__@@';\nfunction isSeq(maybeSeq) {\n return Boolean(maybeSeq && maybeSeq[IS_SEQ_SYMBOL]);\n}\nvar IS_RECORD_SYMBOL = '@@__IMMUTABLE_RECORD__@@';\nfunction isRecord(maybeRecord) {\n return Boolean(maybeRecord && maybeRecord[IS_RECORD_SYMBOL]);\n}\nfunction isImmutable(maybeImmutable) {\n return isCollection(maybeImmutable) || isRecord(maybeImmutable);\n}\nvar IS_ORDERED_SYMBOL = '@@__IMMUTABLE_ORDERED__@@';\nfunction isOrdered(maybeOrdered) {\n return Boolean(maybeOrdered && maybeOrdered[IS_ORDERED_SYMBOL]);\n}\nvar ITERATE_KEYS = 0;\nvar ITERATE_VALUES = 1;\nvar ITERATE_ENTRIES = 2;\nvar REAL_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nvar ITERATOR_SYMBOL = REAL_ITERATOR_SYMBOL || FAUX_ITERATOR_SYMBOL;\nvar Iterator = function Iterator(next) {\n this.next = next;\n};\nIterator.prototype.toString = function toString() {\n return '[Iterator]';\n};\nIterator.KEYS = ITERATE_KEYS;\nIterator.VALUES = ITERATE_VALUES;\nIterator.ENTRIES = ITERATE_ENTRIES;\nIterator.prototype.inspect = Iterator.prototype.toSource = function () {\n return this.toString();\n};\nIterator.prototype[ITERATOR_SYMBOL] = function () {\n return this;\n};\nfunction iteratorValue(type, k, v, iteratorResult) {\n var value = type === 0 ? k : type === 1 ? v : [k, v];\n iteratorResult ? iteratorResult.value = value : iteratorResult = {\n value: value,\n done: false\n };\n return iteratorResult;\n}\nfunction iteratorDone() {\n return {\n value: undefined,\n done: true\n };\n}\nfunction hasIterator(maybeIterable) {\n if (Array.isArray(maybeIterable)) {\n // IE11 trick as it does not support `Symbol.iterator`\n return true;\n }\n return !!getIteratorFn(maybeIterable);\n}\nfunction isIterator(maybeIterator) {\n return maybeIterator && typeof maybeIterator.next === 'function';\n}\nfunction getIterator(iterable) {\n var iteratorFn = getIteratorFn(iterable);\n return iteratorFn && iteratorFn.call(iterable);\n}\nfunction getIteratorFn(iterable) {\n var iteratorFn = iterable && (REAL_ITERATOR_SYMBOL && iterable[REAL_ITERATOR_SYMBOL] || iterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n}\nfunction isEntriesIterable(maybeIterable) {\n var iteratorFn = getIteratorFn(maybeIterable);\n return iteratorFn && iteratorFn === maybeIterable.entries;\n}\nfunction isKeysIterable(maybeIterable) {\n var iteratorFn = getIteratorFn(maybeIterable);\n return iteratorFn && iteratorFn === maybeIterable.keys;\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction isArrayLike(value) {\n if (Array.isArray(value) || typeof value === 'string') {\n return true;\n }\n return value && typeof value === 'object' && Number.isInteger(value.length) && value.length >= 0 && (value.length === 0 ?\n // Only {length: 0} is considered Array-like.\n Object.keys(value).length === 1 :\n // An object is only Array-like if it has a property where the last value\n // in the array-like may be found (which could be undefined).\n value.hasOwnProperty(value.length - 1));\n}\nvar Seq = /*@__PURE__*/function (Collection) {\n function Seq(value) {\n return value === undefined || value === null ? emptySequence() : isImmutable(value) ? value.toSeq() : seqFromValue(value);\n }\n if (Collection) Seq.__proto__ = Collection;\n Seq.prototype = Object.create(Collection && Collection.prototype);\n Seq.prototype.constructor = Seq;\n Seq.prototype.toSeq = function toSeq() {\n return this;\n };\n Seq.prototype.toString = function toString() {\n return this.__toString('Seq {', '}');\n };\n Seq.prototype.cacheResult = function cacheResult() {\n if (!this._cache && this.__iterateUncached) {\n this._cache = this.entrySeq().toArray();\n this.size = this._cache.length;\n }\n return this;\n };\n\n // abstract __iterateUncached(fn, reverse)\n\n Seq.prototype.__iterate = function __iterate(fn, reverse) {\n var cache = this._cache;\n if (cache) {\n var size = cache.length;\n var i = 0;\n while (i !== size) {\n var entry = cache[reverse ? size - ++i : i++];\n if (fn(entry[1], entry[0], this) === false) {\n break;\n }\n }\n return i;\n }\n return this.__iterateUncached(fn, reverse);\n };\n\n // abstract __iteratorUncached(type, reverse)\n\n Seq.prototype.__iterator = function __iterator(type, reverse) {\n var cache = this._cache;\n if (cache) {\n var size = cache.length;\n var i = 0;\n return new Iterator(function () {\n if (i === size) {\n return iteratorDone();\n }\n var entry = cache[reverse ? size - ++i : i++];\n return iteratorValue(type, entry[0], entry[1]);\n });\n }\n return this.__iteratorUncached(type, reverse);\n };\n return Seq;\n}(Collection);\nvar KeyedSeq = /*@__PURE__*/function (Seq) {\n function KeyedSeq(value) {\n return value === undefined || value === null ? emptySequence().toKeyedSeq() : isCollection(value) ? isKeyed(value) ? value.toSeq() : value.fromEntrySeq() : isRecord(value) ? value.toSeq() : keyedSeqFromValue(value);\n }\n if (Seq) KeyedSeq.__proto__ = Seq;\n KeyedSeq.prototype = Object.create(Seq && Seq.prototype);\n KeyedSeq.prototype.constructor = KeyedSeq;\n KeyedSeq.prototype.toKeyedSeq = function toKeyedSeq() {\n return this;\n };\n return KeyedSeq;\n}(Seq);\nvar IndexedSeq = /*@__PURE__*/function (Seq) {\n function IndexedSeq(value) {\n return value === undefined || value === null ? emptySequence() : isCollection(value) ? isKeyed(value) ? value.entrySeq() : value.toIndexedSeq() : isRecord(value) ? value.toSeq().entrySeq() : indexedSeqFromValue(value);\n }\n if (Seq) IndexedSeq.__proto__ = Seq;\n IndexedSeq.prototype = Object.create(Seq && Seq.prototype);\n IndexedSeq.prototype.constructor = IndexedSeq;\n IndexedSeq.of = function of(/*...values*/\n ) {\n return IndexedSeq(arguments);\n };\n IndexedSeq.prototype.toIndexedSeq = function toIndexedSeq() {\n return this;\n };\n IndexedSeq.prototype.toString = function toString() {\n return this.__toString('Seq [', ']');\n };\n return IndexedSeq;\n}(Seq);\nvar SetSeq = /*@__PURE__*/function (Seq) {\n function SetSeq(value) {\n return (isCollection(value) && !isAssociative(value) ? value : IndexedSeq(value)).toSetSeq();\n }\n if (Seq) SetSeq.__proto__ = Seq;\n SetSeq.prototype = Object.create(Seq && Seq.prototype);\n SetSeq.prototype.constructor = SetSeq;\n SetSeq.of = function of(/*...values*/\n ) {\n return SetSeq(arguments);\n };\n SetSeq.prototype.toSetSeq = function toSetSeq() {\n return this;\n };\n return SetSeq;\n}(Seq);\nSeq.isSeq = isSeq;\nSeq.Keyed = KeyedSeq;\nSeq.Set = SetSeq;\nSeq.Indexed = IndexedSeq;\nSeq.prototype[IS_SEQ_SYMBOL] = true;\n\n// #pragma Root Sequences\n\nvar ArraySeq = /*@__PURE__*/function (IndexedSeq) {\n function ArraySeq(array) {\n this._array = array;\n this.size = array.length;\n }\n if (IndexedSeq) ArraySeq.__proto__ = IndexedSeq;\n ArraySeq.prototype = Object.create(IndexedSeq && IndexedSeq.prototype);\n ArraySeq.prototype.constructor = ArraySeq;\n ArraySeq.prototype.get = function get(index, notSetValue) {\n return this.has(index) ? this._array[wrapIndex(this, index)] : notSetValue;\n };\n ArraySeq.prototype.__iterate = function __iterate(fn, reverse) {\n var array = this._array;\n var size = array.length;\n var i = 0;\n while (i !== size) {\n var ii = reverse ? size - ++i : i++;\n if (fn(array[ii], ii, this) === false) {\n break;\n }\n }\n return i;\n };\n ArraySeq.prototype.__iterator = function __iterator(type, reverse) {\n var array = this._array;\n var size = array.length;\n var i = 0;\n return new Iterator(function () {\n if (i === size) {\n return iteratorDone();\n }\n var ii = reverse ? size - ++i : i++;\n return iteratorValue(type, ii, array[ii]);\n });\n };\n return ArraySeq;\n}(IndexedSeq);\nvar ObjectSeq = /*@__PURE__*/function (KeyedSeq) {\n function ObjectSeq(object) {\n var keys = Object.keys(object).concat(Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : []);\n this._object = object;\n this._keys = keys;\n this.size = keys.length;\n }\n if (KeyedSeq) ObjectSeq.__proto__ = KeyedSeq;\n ObjectSeq.prototype = Object.create(KeyedSeq && KeyedSeq.prototype);\n ObjectSeq.prototype.constructor = ObjectSeq;\n ObjectSeq.prototype.get = function get(key, notSetValue) {\n if (notSetValue !== undefined && !this.has(key)) {\n return notSetValue;\n }\n return this._object[key];\n };\n ObjectSeq.prototype.has = function has(key) {\n return hasOwnProperty.call(this._object, key);\n };\n ObjectSeq.prototype.__iterate = function __iterate(fn, reverse) {\n var object = this._object;\n var keys = this._keys;\n var size = keys.length;\n var i = 0;\n while (i !== size) {\n var key = keys[reverse ? size - ++i : i++];\n if (fn(object[key], key, this) === false) {\n break;\n }\n }\n return i;\n };\n ObjectSeq.prototype.__iterator = function __iterator(type, reverse) {\n var object = this._object;\n var keys = this._keys;\n var size = keys.length;\n var i = 0;\n return new Iterator(function () {\n if (i === size) {\n return iteratorDone();\n }\n var key = keys[reverse ? size - ++i : i++];\n return iteratorValue(type, key, object[key]);\n });\n };\n return ObjectSeq;\n}(KeyedSeq);\nObjectSeq.prototype[IS_ORDERED_SYMBOL] = true;\nvar CollectionSeq = /*@__PURE__*/function (IndexedSeq) {\n function CollectionSeq(collection) {\n this._collection = collection;\n this.size = collection.length || collection.size;\n }\n if (IndexedSeq) CollectionSeq.__proto__ = IndexedSeq;\n CollectionSeq.prototype = Object.create(IndexedSeq && IndexedSeq.prototype);\n CollectionSeq.prototype.constructor = CollectionSeq;\n CollectionSeq.prototype.__iterateUncached = function __iterateUncached(fn, reverse) {\n if (reverse) {\n return this.cacheResult().__iterate(fn, reverse);\n }\n var collection = this._collection;\n var iterator = getIterator(collection);\n var iterations = 0;\n if (isIterator(iterator)) {\n var step;\n while (!(step = iterator.next()).done) {\n if (fn(step.value, iterations++, this) === false) {\n break;\n }\n }\n }\n return iterations;\n };\n CollectionSeq.prototype.__iteratorUncached = function __iteratorUncached(type, reverse) {\n if (reverse) {\n return this.cacheResult().__iterator(type, reverse);\n }\n var collection = this._collection;\n var iterator = getIterator(collection);\n if (!isIterator(iterator)) {\n return new Iterator(iteratorDone);\n }\n var iterations = 0;\n return new Iterator(function () {\n var step = iterator.next();\n return step.done ? step : iteratorValue(type, iterations++, step.value);\n });\n };\n return CollectionSeq;\n}(IndexedSeq);\n\n// # pragma Helper functions\n\nvar EMPTY_SEQ;\nfunction emptySequence() {\n return EMPTY_SEQ || (EMPTY_SEQ = new ArraySeq([]));\n}\nfunction keyedSeqFromValue(value) {\n var seq = maybeIndexedSeqFromValue(value);\n if (seq) {\n return seq.fromEntrySeq();\n }\n if (typeof value === 'object') {\n return new ObjectSeq(value);\n }\n throw new TypeError('Expected Array or collection object of [k, v] entries, or keyed object: ' + value);\n}\nfunction indexedSeqFromValue(value) {\n var seq = maybeIndexedSeqFromValue(value);\n if (seq) {\n return seq;\n }\n throw new TypeError('Expected Array or collection object of values: ' + value);\n}\nfunction seqFromValue(value) {\n var seq = maybeIndexedSeqFromValue(value);\n if (seq) {\n return isEntriesIterable(value) ? seq.fromEntrySeq() : isKeysIterable(value) ? seq.toSetSeq() : seq;\n }\n if (typeof value === 'object') {\n return new ObjectSeq(value);\n }\n throw new TypeError('Expected Array or collection object of values, or keyed object: ' + value);\n}\nfunction maybeIndexedSeqFromValue(value) {\n return isArrayLike(value) ? new ArraySeq(value) : hasIterator(value) ? new CollectionSeq(value) : undefined;\n}\nvar IS_MAP_SYMBOL = '@@__IMMUTABLE_MAP__@@';\nfunction isMap(maybeMap) {\n return Boolean(maybeMap && maybeMap[IS_MAP_SYMBOL]);\n}\nfunction isOrderedMap(maybeOrderedMap) {\n return isMap(maybeOrderedMap) && isOrdered(maybeOrderedMap);\n}\nfunction isValueObject(maybeValue) {\n return Boolean(maybeValue && typeof maybeValue.equals === 'function' && typeof maybeValue.hashCode === 'function');\n}\n\n/**\n * An extension of the \"same-value\" algorithm as [described for use by ES6 Map\n * and Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#Key_equality)\n *\n * NaN is considered the same as NaN, however -0 and 0 are considered the same\n * value, which is different from the algorithm described by\n * [`Object.is`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).\n *\n * This is extended further to allow Objects to describe the values they\n * represent, by way of `valueOf` or `equals` (and `hashCode`).\n *\n * Note: because of this extension, the key equality of Immutable.Map and the\n * value equality of Immutable.Set will differ from ES6 Map and Set.\n *\n * ### Defining custom values\n *\n * The easiest way to describe the value an object represents is by implementing\n * `valueOf`. For example, `Date` represents a value by returning a unix\n * timestamp for `valueOf`:\n *\n * var date1 = new Date(1234567890000); // Fri Feb 13 2009 ...\n * var date2 = new Date(1234567890000);\n * date1.valueOf(); // 1234567890000\n * assert( date1 !== date2 );\n * assert( Immutable.is( date1, date2 ) );\n *\n * Note: overriding `valueOf` may have other implications if you use this object\n * where JavaScript expects a primitive, such as implicit string coercion.\n *\n * For more complex types, especially collections, implementing `valueOf` may\n * not be performant. An alternative is to implement `equals` and `hashCode`.\n *\n * `equals` takes another object, presumably of similar type, and returns true\n * if it is equal. Equality is symmetrical, so the same result should be\n * returned if this and the argument are flipped.\n *\n * assert( a.equals(b) === b.equals(a) );\n *\n * `hashCode` returns a 32bit integer number representing the object which will\n * be used to determine how to store the value object in a Map or Set. You must\n * provide both or neither methods, one must not exist without the other.\n *\n * Also, an important relationship between these methods must be upheld: if two\n * values are equal, they *must* return the same hashCode. If the values are not\n * equal, they might have the same hashCode; this is called a hash collision,\n * and while undesirable for performance reasons, it is acceptable.\n *\n * if (a.equals(b)) {\n * assert( a.hashCode() === b.hashCode() );\n * }\n *\n * All Immutable collections are Value Objects: they implement `equals()`\n * and `hashCode()`.\n */\nfunction is(valueA, valueB) {\n if (valueA === valueB || valueA !== valueA && valueB !== valueB) {\n return true;\n }\n if (!valueA || !valueB) {\n return false;\n }\n if (typeof valueA.valueOf === 'function' && typeof valueB.valueOf === 'function') {\n valueA = valueA.valueOf();\n valueB = valueB.valueOf();\n if (valueA === valueB || valueA !== valueA && valueB !== valueB) {\n return true;\n }\n if (!valueA || !valueB) {\n return false;\n }\n }\n return !!(isValueObject(valueA) && isValueObject(valueB) && valueA.equals(valueB));\n}\nvar imul = typeof Math.imul === 'function' && Math.imul(0xffffffff, 2) === -2 ? Math.imul : function imul(a, b) {\n a |= 0; // int\n b |= 0; // int\n var c = a & 0xffff;\n var d = b & 0xffff;\n // Shift by 0 fixes the sign on the high part.\n return c * d + ((a >>> 16) * d + c * (b >>> 16) << 16 >>> 0) | 0; // int\n};\n\n// v8 has an optimization for storing 31-bit signed numbers.\n// Values which have either 00 or 11 as the high order bits qualify.\n// This function drops the highest order bit in a signed number, maintaining\n// the sign bit.\nfunction smi(i32) {\n return i32 >>> 1 & 0x40000000 | i32 & 0xbfffffff;\n}\nvar defaultValueOf = Object.prototype.valueOf;\nfunction hash(o) {\n if (o == null) {\n return hashNullish(o);\n }\n if (typeof o.hashCode === 'function') {\n // Drop any high bits from accidentally long hash codes.\n return smi(o.hashCode(o));\n }\n var v = valueOf(o);\n if (v == null) {\n return hashNullish(v);\n }\n switch (typeof v) {\n case 'boolean':\n // The hash values for built-in constants are a 1 value for each 5-byte\n // shift region expect for the first, which encodes the value. This\n // reduces the odds of a hash collision for these common values.\n return v ? 0x42108421 : 0x42108420;\n case 'number':\n return hashNumber(v);\n case 'string':\n return v.length > STRING_HASH_CACHE_MIN_STRLEN ? cachedHashString(v) : hashString(v);\n case 'object':\n case 'function':\n return hashJSObj(v);\n case 'symbol':\n return hashSymbol(v);\n default:\n if (typeof v.toString === 'function') {\n return hashString(v.toString());\n }\n throw new Error('Value type ' + typeof v + ' cannot be hashed.');\n }\n}\nfunction hashNullish(nullish) {\n return nullish === null ? 0x42108422 : /* undefined */0x42108423;\n}\n\n// Compress arbitrarily large numbers into smi hashes.\nfunction hashNumber(n) {\n if (n !== n || n === Infinity) {\n return 0;\n }\n var hash = n | 0;\n if (hash !== n) {\n hash ^= n * 0xffffffff;\n }\n while (n > 0xffffffff) {\n n /= 0xffffffff;\n hash ^= n;\n }\n return smi(hash);\n}\nfunction cachedHashString(string) {\n var hashed = stringHashCache[string];\n if (hashed === undefined) {\n hashed = hashString(string);\n if (STRING_HASH_CACHE_SIZE === STRING_HASH_CACHE_MAX_SIZE) {\n STRING_HASH_CACHE_SIZE = 0;\n stringHashCache = {};\n }\n STRING_HASH_CACHE_SIZE++;\n stringHashCache[string] = hashed;\n }\n return hashed;\n}\n\n// http://jsperf.com/hashing-strings\nfunction hashString(string) {\n // This is the hash from JVM\n // The hash code for a string is computed as\n // s[0] * 31 ^ (n - 1) + s[1] * 31 ^ (n - 2) + ... + s[n - 1],\n // where s[i] is the ith character of the string and n is the length of\n // the string. We \"mod\" the result to make it between 0 (inclusive) and 2^31\n // (exclusive) by dropping high bits.\n var hashed = 0;\n for (var ii = 0; ii < string.length; ii++) {\n hashed = 31 * hashed + string.charCodeAt(ii) | 0;\n }\n return smi(hashed);\n}\nfunction hashSymbol(sym) {\n var hashed = symbolMap[sym];\n if (hashed !== undefined) {\n return hashed;\n }\n hashed = nextHash();\n symbolMap[sym] = hashed;\n return hashed;\n}\nfunction hashJSObj(obj) {\n var hashed;\n if (usingWeakMap) {\n hashed = weakMap.get(obj);\n if (hashed !== undefined) {\n return hashed;\n }\n }\n hashed = obj[UID_HASH_KEY];\n if (hashed !== undefined) {\n return hashed;\n }\n if (!canDefineProperty) {\n hashed = obj.propertyIsEnumerable && obj.propertyIsEnumerable[UID_HASH_KEY];\n if (hashed !== undefined) {\n return hashed;\n }\n hashed = getIENodeHash(obj);\n if (hashed !== undefined) {\n return hashed;\n }\n }\n hashed = nextHash();\n if (usingWeakMap) {\n weakMap.set(obj, hashed);\n } else if (isExtensible !== undefined && isExtensible(obj) === false) {\n throw new Error('Non-extensible objects are not allowed as keys.');\n } else if (canDefineProperty) {\n Object.defineProperty(obj, UID_HASH_KEY, {\n enumerable: false,\n configurable: false,\n writable: false,\n value: hashed\n });\n } else if (obj.propertyIsEnumerable !== undefined && obj.propertyIsEnumerable === obj.constructor.prototype.propertyIsEnumerable) {\n // Since we can't define a non-enumerable property on the object\n // we'll hijack one of the less-used non-enumerable properties to\n // save our hash on it. Since this is a function it will not show up in\n // `JSON.stringify` which is what we want.\n obj.propertyIsEnumerable = function () {\n return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments);\n };\n obj.propertyIsEnumerable[UID_HASH_KEY] = hashed;\n } else if (obj.nodeType !== undefined) {\n // At this point we couldn't get the IE `uniqueID` to use as a hash\n // and we couldn't use a non-enumerable property to exploit the\n // dontEnum bug so we simply add the `UID_HASH_KEY` on the node\n // itself.\n obj[UID_HASH_KEY] = hashed;\n } else {\n throw new Error('Unable to set a non-enumerable property on object.');\n }\n return hashed;\n}\n\n// Get references to ES5 object methods.\nvar isExtensible = Object.isExtensible;\n\n// True if Object.defineProperty works as expected. IE8 fails this test.\nvar canDefineProperty = function () {\n try {\n Object.defineProperty({}, '@', {});\n return true;\n } catch (e) {\n return false;\n }\n}();\n\n// IE has a `uniqueID` property on DOM nodes. We can construct the hash from it\n// and avoid memory leaks from the IE cloneNode bug.\nfunction getIENodeHash(node) {\n if (node && node.nodeType > 0) {\n switch (node.nodeType) {\n case 1:\n // Element\n return node.uniqueID;\n case 9:\n // Document\n return node.documentElement && node.documentElement.uniqueID;\n }\n }\n}\nfunction valueOf(obj) {\n return obj.valueOf !== defaultValueOf && typeof obj.valueOf === 'function' ? obj.valueOf(obj) : obj;\n}\nfunction nextHash() {\n var nextHash = ++_objHashUID;\n if (_objHashUID & 0x40000000) {\n _objHashUID = 0;\n }\n return nextHash;\n}\n\n// If possible, use a WeakMap.\nvar usingWeakMap = typeof WeakMap === 'function';\nvar weakMap;\nif (usingWeakMap) {\n weakMap = new WeakMap();\n}\nvar symbolMap = Object.create(null);\nvar _objHashUID = 0;\nvar UID_HASH_KEY = '__immutablehash__';\nif (typeof Symbol === 'function') {\n UID_HASH_KEY = Symbol(UID_HASH_KEY);\n}\nvar STRING_HASH_CACHE_MIN_STRLEN = 16;\nvar STRING_HASH_CACHE_MAX_SIZE = 255;\nvar STRING_HASH_CACHE_SIZE = 0;\nvar stringHashCache = {};\nvar ToKeyedSequence = /*@__PURE__*/function (KeyedSeq) {\n function ToKeyedSequence(indexed, useKeys) {\n this._iter = indexed;\n this._useKeys = useKeys;\n this.size = indexed.size;\n }\n if (KeyedSeq) ToKeyedSequence.__proto__ = KeyedSeq;\n ToKeyedSequence.prototype = Object.create(KeyedSeq && KeyedSeq.prototype);\n ToKeyedSequence.prototype.constructor = ToKeyedSequence;\n ToKeyedSequence.prototype.get = function get(key, notSetValue) {\n return this._iter.get(key, notSetValue);\n };\n ToKeyedSequence.prototype.has = function has(key) {\n return this._iter.has(key);\n };\n ToKeyedSequence.prototype.valueSeq = function valueSeq() {\n return this._iter.valueSeq();\n };\n ToKeyedSequence.prototype.reverse = function reverse() {\n var this$1$1 = this;\n var reversedSequence = reverseFactory(this, true);\n if (!this._useKeys) {\n reversedSequence.valueSeq = function () {\n return this$1$1._iter.toSeq().reverse();\n };\n }\n return reversedSequence;\n };\n ToKeyedSequence.prototype.map = function map(mapper, context) {\n var this$1$1 = this;\n var mappedSequence = mapFactory(this, mapper, context);\n if (!this._useKeys) {\n mappedSequence.valueSeq = function () {\n return this$1$1._iter.toSeq().map(mapper, context);\n };\n }\n return mappedSequence;\n };\n ToKeyedSequence.prototype.__iterate = function __iterate(fn, reverse) {\n var this$1$1 = this;\n return this._iter.__iterate(function (v, k) {\n return fn(v, k, this$1$1);\n }, reverse);\n };\n ToKeyedSequence.prototype.__iterator = function __iterator(type, reverse) {\n return this._iter.__iterator(type, reverse);\n };\n return ToKeyedSequence;\n}(KeyedSeq);\nToKeyedSequence.prototype[IS_ORDERED_SYMBOL] = true;\nvar ToIndexedSequence = /*@__PURE__*/function (IndexedSeq) {\n function ToIndexedSequence(iter) {\n this._iter = iter;\n this.size = iter.size;\n }\n if (IndexedSeq) ToIndexedSequence.__proto__ = IndexedSeq;\n ToIndexedSequence.prototype = Object.create(IndexedSeq && IndexedSeq.prototype);\n ToIndexedSequence.prototype.constructor = ToIndexedSequence;\n ToIndexedSequence.prototype.includes = function includes(value) {\n return this._iter.includes(value);\n };\n ToIndexedSequence.prototype.__iterate = function __iterate(fn, reverse) {\n var this$1$1 = this;\n var i = 0;\n reverse && ensureSize(this);\n return this._iter.__iterate(function (v) {\n return fn(v, reverse ? this$1$1.size - ++i : i++, this$1$1);\n }, reverse);\n };\n ToIndexedSequence.prototype.__iterator = function __iterator(type, reverse) {\n var this$1$1 = this;\n var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);\n var i = 0;\n reverse && ensureSize(this);\n return new Iterator(function () {\n var step = iterator.next();\n return step.done ? step : iteratorValue(type, reverse ? this$1$1.size - ++i : i++, step.value, step);\n });\n };\n return ToIndexedSequence;\n}(IndexedSeq);\nvar ToSetSequence = /*@__PURE__*/function (SetSeq) {\n function ToSetSequence(iter) {\n this._iter = iter;\n this.size = iter.size;\n }\n if (SetSeq) ToSetSequence.__proto__ = SetSeq;\n ToSetSequence.prototype = Object.create(SetSeq && SetSeq.prototype);\n ToSetSequence.prototype.constructor = ToSetSequence;\n ToSetSequence.prototype.has = function has(key) {\n return this._iter.includes(key);\n };\n ToSetSequence.prototype.__iterate = function __iterate(fn, reverse) {\n var this$1$1 = this;\n return this._iter.__iterate(function (v) {\n return fn(v, v, this$1$1);\n }, reverse);\n };\n ToSetSequence.prototype.__iterator = function __iterator(type, reverse) {\n var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);\n return new Iterator(function () {\n var step = iterator.next();\n return step.done ? step : iteratorValue(type, step.value, step.value, step);\n });\n };\n return ToSetSequence;\n}(SetSeq);\nvar FromEntriesSequence = /*@__PURE__*/function (KeyedSeq) {\n function FromEntriesSequence(entries) {\n this._iter = entries;\n this.size = entries.size;\n }\n if (KeyedSeq) FromEntriesSequence.__proto__ = KeyedSeq;\n FromEntriesSequence.prototype = Object.create(KeyedSeq && KeyedSeq.prototype);\n FromEntriesSequence.prototype.constructor = FromEntriesSequence;\n FromEntriesSequence.prototype.entrySeq = function entrySeq() {\n return this._iter.toSeq();\n };\n FromEntriesSequence.prototype.__iterate = function __iterate(fn, reverse) {\n var this$1$1 = this;\n return this._iter.__iterate(function (entry) {\n // Check if entry exists first so array access doesn't throw for holes\n // in the parent iteration.\n if (entry) {\n validateEntry(entry);\n var indexedCollection = isCollection(entry);\n return fn(indexedCollection ? entry.get(1) : entry[1], indexedCollection ? entry.get(0) : entry[0], this$1$1);\n }\n }, reverse);\n };\n FromEntriesSequence.prototype.__iterator = function __iterator(type, reverse) {\n var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);\n return new Iterator(function () {\n while (true) {\n var step = iterator.next();\n if (step.done) {\n return step;\n }\n var entry = step.value;\n // Check if entry exists first so array access doesn't throw for holes\n // in the parent iteration.\n if (entry) {\n validateEntry(entry);\n var indexedCollection = isCollection(entry);\n return iteratorValue(type, indexedCollection ? entry.get(0) : entry[0], indexedCollection ? entry.get(1) : entry[1], step);\n }\n }\n });\n };\n return FromEntriesSequence;\n}(KeyedSeq);\nToIndexedSequence.prototype.cacheResult = ToKeyedSequence.prototype.cacheResult = ToSetSequence.prototype.cacheResult = FromEntriesSequence.prototype.cacheResult = cacheResultThrough;\nfunction flipFactory(collection) {\n var flipSequence = makeSequence(collection);\n flipSequence._iter = collection;\n flipSequence.size = collection.size;\n flipSequence.flip = function () {\n return collection;\n };\n flipSequence.reverse = function () {\n var reversedSequence = collection.reverse.apply(this); // super.reverse()\n reversedSequence.flip = function () {\n return collection.reverse();\n };\n return reversedSequence;\n };\n flipSequence.has = function (key) {\n return collection.includes(key);\n };\n flipSequence.includes = function (key) {\n return collection.has(key);\n };\n flipSequence.cacheResult = cacheResultThrough;\n flipSequence.__iterateUncached = function (fn, reverse) {\n var this$1$1 = this;\n return collection.__iterate(function (v, k) {\n return fn(k, v, this$1$1) !== false;\n }, reverse);\n };\n flipSequence.__iteratorUncached = function (type, reverse) {\n if (type === ITERATE_ENTRIES) {\n var iterator = collection.__iterator(type, reverse);\n return new Iterator(function () {\n var step = iterator.next();\n if (!step.done) {\n var k = step.value[0];\n step.value[0] = step.value[1];\n step.value[1] = k;\n }\n return step;\n });\n }\n return collection.__iterator(type === ITERATE_VALUES ? ITERATE_KEYS : ITERATE_VALUES, reverse);\n };\n return flipSequence;\n}\nfunction mapFactory(collection, mapper, context) {\n var mappedSequence = makeSequence(collection);\n mappedSequence.size = collection.size;\n mappedSequence.has = function (key) {\n return collection.has(key);\n };\n mappedSequence.get = function (key, notSetValue) {\n var v = collection.get(key, NOT_SET);\n return v === NOT_SET ? notSetValue : mapper.call(context, v, key, collection);\n };\n mappedSequence.__iterateUncached = function (fn, reverse) {\n var this$1$1 = this;\n return collection.__iterate(function (v, k, c) {\n return fn(mapper.call(context, v, k, c), k, this$1$1) !== false;\n }, reverse);\n };\n mappedSequence.__iteratorUncached = function (type, reverse) {\n var iterator = collection.__iterator(ITERATE_ENTRIES, reverse);\n return new Iterator(function () {\n var step = iterator.next();\n if (step.done) {\n return step;\n }\n var entry = step.value;\n var key = entry[0];\n return iteratorValue(type, key, mapper.call(context, entry[1], key, collection), step);\n });\n };\n return mappedSequence;\n}\nfunction reverseFactory(collection, useKeys) {\n var this$1$1 = this;\n var reversedSequence = makeSequence(collection);\n reversedSequence._iter = collection;\n reversedSequence.size = collection.size;\n reversedSequence.reverse = function () {\n return collection;\n };\n if (collection.flip) {\n reversedSequence.flip = function () {\n var flipSequence = flipFactory(collection);\n flipSequence.reverse = function () {\n return collection.flip();\n };\n return flipSequence;\n };\n }\n reversedSequence.get = function (key, notSetValue) {\n return collection.get(useKeys ? key : -1 - key, notSetValue);\n };\n reversedSequence.has = function (key) {\n return collection.has(useKeys ? key : -1 - key);\n };\n reversedSequence.includes = function (value) {\n return collection.includes(value);\n };\n reversedSequence.cacheResult = cacheResultThrough;\n reversedSequence.__iterate = function (fn, reverse) {\n var this$1$1 = this;\n var i = 0;\n reverse && ensureSize(collection);\n return collection.__iterate(function (v, k) {\n return fn(v, useKeys ? k : reverse ? this$1$1.size - ++i : i++, this$1$1);\n }, !reverse);\n };\n reversedSequence.__iterator = function (type, reverse) {\n var i = 0;\n reverse && ensureSize(collection);\n var iterator = collection.__iterator(ITERATE_ENTRIES, !reverse);\n return new Iterator(function () {\n var step = iterator.next();\n if (step.done) {\n return step;\n }\n var entry = step.value;\n return iteratorValue(type, useKeys ? entry[0] : reverse ? this$1$1.size - ++i : i++, entry[1], step);\n });\n };\n return reversedSequence;\n}\nfunction filterFactory(collection, predicate, context, useKeys) {\n var filterSequence = makeSequence(collection);\n if (useKeys) {\n filterSequence.has = function (key) {\n var v = collection.get(key, NOT_SET);\n return v !== NOT_SET && !!predicate.call(context, v, key, collection);\n };\n filterSequence.get = function (key, notSetValue) {\n var v = collection.get(key, NOT_SET);\n return v !== NOT_SET && predicate.call(context, v, key, collection) ? v : notSetValue;\n };\n }\n filterSequence.__iterateUncached = function (fn, reverse) {\n var this$1$1 = this;\n var iterations = 0;\n collection.__iterate(function (v, k, c) {\n if (predicate.call(context, v, k, c)) {\n iterations++;\n return fn(v, useKeys ? k : iterations - 1, this$1$1);\n }\n }, reverse);\n return iterations;\n };\n filterSequence.__iteratorUncached = function (type, reverse) {\n var iterator = collection.__iterator(ITERATE_ENTRIES, reverse);\n var iterations = 0;\n return new Iterator(function () {\n while (true) {\n var step = iterator.next();\n if (step.done) {\n return step;\n }\n var entry = step.value;\n var key = entry[0];\n var value = entry[1];\n if (predicate.call(context, value, key, collection)) {\n return iteratorValue(type, useKeys ? key : iterations++, value, step);\n }\n }\n });\n };\n return filterSequence;\n}\nfunction countByFactory(collection, grouper, context) {\n var groups = Map().asMutable();\n collection.__iterate(function (v, k) {\n groups.update(grouper.call(context, v, k, collection), 0, function (a) {\n return a + 1;\n });\n });\n return groups.asImmutable();\n}\nfunction groupByFactory(collection, grouper, context) {\n var isKeyedIter = isKeyed(collection);\n var groups = (isOrdered(collection) ? OrderedMap() : Map()).asMutable();\n collection.__iterate(function (v, k) {\n groups.update(grouper.call(context, v, k, collection), function (a) {\n return a = a || [], a.push(isKeyedIter ? [k, v] : v), a;\n });\n });\n var coerce = collectionClass(collection);\n return groups.map(function (arr) {\n return reify(collection, coerce(arr));\n }).asImmutable();\n}\nfunction partitionFactory(collection, predicate, context) {\n var isKeyedIter = isKeyed(collection);\n var groups = [[], []];\n collection.__iterate(function (v, k) {\n groups[predicate.call(context, v, k, collection) ? 1 : 0].push(isKeyedIter ? [k, v] : v);\n });\n var coerce = collectionClass(collection);\n return groups.map(function (arr) {\n return reify(collection, coerce(arr));\n });\n}\nfunction sliceFactory(collection, begin, end, useKeys) {\n var originalSize = collection.size;\n if (wholeSlice(begin, end, originalSize)) {\n return collection;\n }\n var resolvedBegin = resolveBegin(begin, originalSize);\n var resolvedEnd = resolveEnd(end, originalSize);\n\n // begin or end will be NaN if they were provided as negative numbers and\n // this collection's size is unknown. In that case, cache first so there is\n // a known size and these do not resolve to NaN.\n if (resolvedBegin !== resolvedBegin || resolvedEnd !== resolvedEnd) {\n return sliceFactory(collection.toSeq().cacheResult(), begin, end, useKeys);\n }\n\n // Note: resolvedEnd is undefined when the original sequence's length is\n // unknown and this slice did not supply an end and should contain all\n // elements after resolvedBegin.\n // In that case, resolvedSize will be NaN and sliceSize will remain undefined.\n var resolvedSize = resolvedEnd - resolvedBegin;\n var sliceSize;\n if (resolvedSize === resolvedSize) {\n sliceSize = resolvedSize < 0 ? 0 : resolvedSize;\n }\n var sliceSeq = makeSequence(collection);\n\n // If collection.size is undefined, the size of the realized sliceSeq is\n // unknown at this point unless the number of items to slice is 0\n sliceSeq.size = sliceSize === 0 ? sliceSize : collection.size && sliceSize || undefined;\n if (!useKeys && isSeq(collection) && sliceSize >= 0) {\n sliceSeq.get = function (index, notSetValue) {\n index = wrapIndex(this, index);\n return index >= 0 && index < sliceSize ? collection.get(index + resolvedBegin, notSetValue) : notSetValue;\n };\n }\n sliceSeq.__iterateUncached = function (fn, reverse) {\n var this$1$1 = this;\n if (sliceSize === 0) {\n return 0;\n }\n if (reverse) {\n return this.cacheResult().__iterate(fn, reverse);\n }\n var skipped = 0;\n var isSkipping = true;\n var iterations = 0;\n collection.__iterate(function (v, k) {\n if (!(isSkipping && (isSkipping = skipped++ < resolvedBegin))) {\n iterations++;\n return fn(v, useKeys ? k : iterations - 1, this$1$1) !== false && iterations !== sliceSize;\n }\n });\n return iterations;\n };\n sliceSeq.__iteratorUncached = function (type, reverse) {\n if (sliceSize !== 0 && reverse) {\n return this.cacheResult().__iterator(type, reverse);\n }\n // Don't bother instantiating parent iterator if taking 0.\n if (sliceSize === 0) {\n return new Iterator(iteratorDone);\n }\n var iterator = collection.__iterator(type, reverse);\n var skipped = 0;\n var iterations = 0;\n return new Iterator(function () {\n while (skipped++ < resolvedBegin) {\n iterator.next();\n }\n if (++iterations > sliceSize) {\n return iteratorDone();\n }\n var step = iterator.next();\n if (useKeys || type === ITERATE_VALUES || step.done) {\n return step;\n }\n if (type === ITERATE_KEYS) {\n return iteratorValue(type, iterations - 1, undefined, step);\n }\n return iteratorValue(type, iterations - 1, step.value[1], step);\n });\n };\n return sliceSeq;\n}\nfunction takeWhileFactory(collection, predicate, context) {\n var takeSequence = makeSequence(collection);\n takeSequence.__iterateUncached = function (fn, reverse) {\n var this$1$1 = this;\n if (reverse) {\n return this.cacheResult().__iterate(fn, reverse);\n }\n var iterations = 0;\n collection.__iterate(function (v, k, c) {\n return predicate.call(context, v, k, c) && ++iterations && fn(v, k, this$1$1);\n });\n return iterations;\n };\n takeSequence.__iteratorUncached = function (type, reverse) {\n var this$1$1 = this;\n if (reverse) {\n return this.cacheResult().__iterator(type, reverse);\n }\n var iterator = collection.__iterator(ITERATE_ENTRIES, reverse);\n var iterating = true;\n return new Iterator(function () {\n if (!iterating) {\n return iteratorDone();\n }\n var step = iterator.next();\n if (step.done) {\n return step;\n }\n var entry = step.value;\n var k = entry[0];\n var v = entry[1];\n if (!predicate.call(context, v, k, this$1$1)) {\n iterating = false;\n return iteratorDone();\n }\n return type === ITERATE_ENTRIES ? step : iteratorValue(type, k, v, step);\n });\n };\n return takeSequence;\n}\nfunction skipWhileFactory(collection, predicate, context, useKeys) {\n var skipSequence = makeSequence(collection);\n skipSequence.__iterateUncached = function (fn, reverse) {\n var this$1$1 = this;\n if (reverse) {\n return this.cacheResult().__iterate(fn, reverse);\n }\n var isSkipping = true;\n var iterations = 0;\n collection.__iterate(function (v, k, c) {\n if (!(isSkipping && (isSkipping = predicate.call(context, v, k, c)))) {\n iterations++;\n return fn(v, useKeys ? k : iterations - 1, this$1$1);\n }\n });\n return iterations;\n };\n skipSequence.__iteratorUncached = function (type, reverse) {\n var this$1$1 = this;\n if (reverse) {\n return this.cacheResult().__iterator(type, reverse);\n }\n var iterator = collection.__iterator(ITERATE_ENTRIES, reverse);\n var skipping = true;\n var iterations = 0;\n return new Iterator(function () {\n var step;\n var k;\n var v;\n do {\n step = iterator.next();\n if (step.done) {\n if (useKeys || type === ITERATE_VALUES) {\n return step;\n }\n if (type === ITERATE_KEYS) {\n return iteratorValue(type, iterations++, undefined, step);\n }\n return iteratorValue(type, iterations++, step.value[1], step);\n }\n var entry = step.value;\n k = entry[0];\n v = entry[1];\n skipping && (skipping = predicate.call(context, v, k, this$1$1));\n } while (skipping);\n return type === ITERATE_ENTRIES ? step : iteratorValue(type, k, v, step);\n });\n };\n return skipSequence;\n}\nfunction concatFactory(collection, values) {\n var isKeyedCollection = isKeyed(collection);\n var iters = [collection].concat(values).map(function (v) {\n if (!isCollection(v)) {\n v = isKeyedCollection ? keyedSeqFromValue(v) : indexedSeqFromValue(Array.isArray(v) ? v : [v]);\n } else if (isKeyedCollection) {\n v = KeyedCollection(v);\n }\n return v;\n }).filter(function (v) {\n return v.size !== 0;\n });\n if (iters.length === 0) {\n return collection;\n }\n if (iters.length === 1) {\n var singleton = iters[0];\n if (singleton === collection || isKeyedCollection && isKeyed(singleton) || isIndexed(collection) && isIndexed(singleton)) {\n return singleton;\n }\n }\n var concatSeq = new ArraySeq(iters);\n if (isKeyedCollection) {\n concatSeq = concatSeq.toKeyedSeq();\n } else if (!isIndexed(collection)) {\n concatSeq = concatSeq.toSetSeq();\n }\n concatSeq = concatSeq.flatten(true);\n concatSeq.size = iters.reduce(function (sum, seq) {\n if (sum !== undefined) {\n var size = seq.size;\n if (size !== undefined) {\n return sum + size;\n }\n }\n }, 0);\n return concatSeq;\n}\nfunction flattenFactory(collection, depth, useKeys) {\n var flatSequence = makeSequence(collection);\n flatSequence.__iterateUncached = function (fn, reverse) {\n if (reverse) {\n return this.cacheResult().__iterate(fn, reverse);\n }\n var iterations = 0;\n var stopped = false;\n function flatDeep(iter, currentDepth) {\n iter.__iterate(function (v, k) {\n if ((!depth || currentDepth < depth) && isCollection(v)) {\n flatDeep(v, currentDepth + 1);\n } else {\n iterations++;\n if (fn(v, useKeys ? k : iterations - 1, flatSequence) === false) {\n stopped = true;\n }\n }\n return !stopped;\n }, reverse);\n }\n flatDeep(collection, 0);\n return iterations;\n };\n flatSequence.__iteratorUncached = function (type, reverse) {\n if (reverse) {\n return this.cacheResult().__iterator(type, reverse);\n }\n var iterator = collection.__iterator(type, reverse);\n var stack = [];\n var iterations = 0;\n return new Iterator(function () {\n while (iterator) {\n var step = iterator.next();\n if (step.done !== false) {\n iterator = stack.pop();\n continue;\n }\n var v = step.value;\n if (type === ITERATE_ENTRIES) {\n v = v[1];\n }\n if ((!depth || stack.length < depth) && isCollection(v)) {\n stack.push(iterator);\n iterator = v.__iterator(type, reverse);\n } else {\n return useKeys ? step : iteratorValue(type, iterations++, v, step);\n }\n }\n return iteratorDone();\n });\n };\n return flatSequence;\n}\nfunction flatMapFactory(collection, mapper, context) {\n var coerce = collectionClass(collection);\n return collection.toSeq().map(function (v, k) {\n return coerce(mapper.call(context, v, k, collection));\n }).flatten(true);\n}\nfunction interposeFactory(collection, separator) {\n var interposedSequence = makeSequence(collection);\n interposedSequence.size = collection.size && collection.size * 2 - 1;\n interposedSequence.__iterateUncached = function (fn, reverse) {\n var this$1$1 = this;\n var iterations = 0;\n collection.__iterate(function (v) {\n return (!iterations || fn(separator, iterations++, this$1$1) !== false) && fn(v, iterations++, this$1$1) !== false;\n }, reverse);\n return iterations;\n };\n interposedSequence.__iteratorUncached = function (type, reverse) {\n var iterator = collection.__iterator(ITERATE_VALUES, reverse);\n var iterations = 0;\n var step;\n return new Iterator(function () {\n if (!step || iterations % 2) {\n step = iterator.next();\n if (step.done) {\n return step;\n }\n }\n return iterations % 2 ? iteratorValue(type, iterations++, separator) : iteratorValue(type, iterations++, step.value, step);\n });\n };\n return interposedSequence;\n}\nfunction sortFactory(collection, comparator, mapper) {\n if (!comparator) {\n comparator = defaultComparator;\n }\n var isKeyedCollection = isKeyed(collection);\n var index = 0;\n var entries = collection.toSeq().map(function (v, k) {\n return [k, v, index++, mapper ? mapper(v, k, collection) : v];\n }).valueSeq().toArray();\n entries.sort(function (a, b) {\n return comparator(a[3], b[3]) || a[2] - b[2];\n }).forEach(isKeyedCollection ? function (v, i) {\n entries[i].length = 2;\n } : function (v, i) {\n entries[i] = v[1];\n });\n return isKeyedCollection ? KeyedSeq(entries) : isIndexed(collection) ? IndexedSeq(entries) : SetSeq(entries);\n}\nfunction maxFactory(collection, comparator, mapper) {\n if (!comparator) {\n comparator = defaultComparator;\n }\n if (mapper) {\n var entry = collection.toSeq().map(function (v, k) {\n return [v, mapper(v, k, collection)];\n }).reduce(function (a, b) {\n return maxCompare(comparator, a[1], b[1]) ? b : a;\n });\n return entry && entry[0];\n }\n return collection.reduce(function (a, b) {\n return maxCompare(comparator, a, b) ? b : a;\n });\n}\nfunction maxCompare(comparator, a, b) {\n var comp = comparator(b, a);\n // b is considered the new max if the comparator declares them equal, but\n // they are not equal and b is in fact a nullish value.\n return comp === 0 && b !== a && (b === undefined || b === null || b !== b) || comp > 0;\n}\nfunction zipWithFactory(keyIter, zipper, iters, zipAll) {\n var zipSequence = makeSequence(keyIter);\n var sizes = new ArraySeq(iters).map(function (i) {\n return i.size;\n });\n zipSequence.size = zipAll ? sizes.max() : sizes.min();\n // Note: this a generic base implementation of __iterate in terms of\n // __iterator which may be more generically useful in the future.\n zipSequence.__iterate = function (fn, reverse) {\n /* generic:\n var iterator = this.__iterator(ITERATE_ENTRIES, reverse);\n var step;\n var iterations = 0;\n while (!(step = iterator.next()).done) {\n iterations++;\n if (fn(step.value[1], step.value[0], this) === false) {\n break;\n }\n }\n return iterations;\n */\n // indexed:\n var iterator = this.__iterator(ITERATE_VALUES, reverse);\n var step;\n var iterations = 0;\n while (!(step = iterator.next()).done) {\n if (fn(step.value, iterations++, this) === false) {\n break;\n }\n }\n return iterations;\n };\n zipSequence.__iteratorUncached = function (type, reverse) {\n var iterators = iters.map(function (i) {\n return i = Collection(i), getIterator(reverse ? i.reverse() : i);\n });\n var iterations = 0;\n var isDone = false;\n return new Iterator(function () {\n var steps;\n if (!isDone) {\n steps = iterators.map(function (i) {\n return i.next();\n });\n isDone = zipAll ? steps.every(function (s) {\n return s.done;\n }) : steps.some(function (s) {\n return s.done;\n });\n }\n if (isDone) {\n return iteratorDone();\n }\n return iteratorValue(type, iterations++, zipper.apply(null, steps.map(function (s) {\n return s.value;\n })));\n });\n };\n return zipSequence;\n}\n\n// #pragma Helper Functions\n\nfunction reify(iter, seq) {\n return iter === seq ? iter : isSeq(iter) ? seq : iter.constructor(seq);\n}\nfunction validateEntry(entry) {\n if (entry !== Object(entry)) {\n throw new TypeError('Expected [K, V] tuple: ' + entry);\n }\n}\nfunction collectionClass(collection) {\n return isKeyed(collection) ? KeyedCollection : isIndexed(collection) ? IndexedCollection : SetCollection;\n}\nfunction makeSequence(collection) {\n return Object.create((isKeyed(collection) ? KeyedSeq : isIndexed(collection) ? IndexedSeq : SetSeq).prototype);\n}\nfunction cacheResultThrough() {\n if (this._iter.cacheResult) {\n this._iter.cacheResult();\n this.size = this._iter.size;\n return this;\n }\n return Seq.prototype.cacheResult.call(this);\n}\nfunction defaultComparator(a, b) {\n if (a === undefined && b === undefined) {\n return 0;\n }\n if (a === undefined) {\n return 1;\n }\n if (b === undefined) {\n return -1;\n }\n return a > b ? 1 : a < b ? -1 : 0;\n}\nfunction arrCopy(arr, offset) {\n offset = offset || 0;\n var len = Math.max(0, arr.length - offset);\n var newArr = new Array(len);\n for (var ii = 0; ii < len; ii++) {\n newArr[ii] = arr[ii + offset];\n }\n return newArr;\n}\nfunction invariant(condition, error) {\n if (!condition) {\n throw new Error(error);\n }\n}\nfunction assertNotInfinite(size) {\n invariant(size !== Infinity, 'Cannot perform this action with an infinite size.');\n}\nfunction coerceKeyPath(keyPath) {\n if (isArrayLike(keyPath) && typeof keyPath !== 'string') {\n return keyPath;\n }\n if (isOrdered(keyPath)) {\n return keyPath.toArray();\n }\n throw new TypeError('Invalid keyPath: expected Ordered Collection or Array: ' + keyPath);\n}\nvar toString = Object.prototype.toString;\nfunction isPlainObject(value) {\n // The base prototype's toString deals with Argument objects and native namespaces like Math\n if (!value || typeof value !== 'object' || toString.call(value) !== '[object Object]') {\n return false;\n }\n var proto = Object.getPrototypeOf(value);\n if (proto === null) {\n return true;\n }\n\n // Iteratively going up the prototype chain is needed for cross-realm environments (differing contexts, iframes, etc)\n var parentProto = proto;\n var nextProto = Object.getPrototypeOf(proto);\n while (nextProto !== null) {\n parentProto = nextProto;\n nextProto = Object.getPrototypeOf(parentProto);\n }\n return parentProto === proto;\n}\n\n/**\n * Returns true if the value is a potentially-persistent data structure, either\n * provided by Immutable.js or a plain Array or Object.\n */\nfunction isDataStructure(value) {\n return typeof value === 'object' && (isImmutable(value) || Array.isArray(value) || isPlainObject(value));\n}\nfunction quoteString(value) {\n try {\n return typeof value === 'string' ? JSON.stringify(value) : String(value);\n } catch (_ignoreError) {\n return JSON.stringify(value);\n }\n}\nfunction has(collection, key) {\n return isImmutable(collection) ? collection.has(key) : isDataStructure(collection) && hasOwnProperty.call(collection, key);\n}\nfunction get(collection, key, notSetValue) {\n return isImmutable(collection) ? collection.get(key, notSetValue) : !has(collection, key) ? notSetValue : typeof collection.get === 'function' ? collection.get(key) : collection[key];\n}\nfunction shallowCopy(from) {\n if (Array.isArray(from)) {\n return arrCopy(from);\n }\n var to = {};\n for (var key in from) {\n if (hasOwnProperty.call(from, key)) {\n to[key] = from[key];\n }\n }\n return to;\n}\nfunction remove(collection, key) {\n if (!isDataStructure(collection)) {\n throw new TypeError('Cannot update non-data-structure value: ' + collection);\n }\n if (isImmutable(collection)) {\n if (!collection.remove) {\n throw new TypeError('Cannot update immutable value without .remove() method: ' + collection);\n }\n return collection.remove(key);\n }\n if (!hasOwnProperty.call(collection, key)) {\n return collection;\n }\n var collectionCopy = shallowCopy(collection);\n if (Array.isArray(collectionCopy)) {\n collectionCopy.splice(key, 1);\n } else {\n delete collectionCopy[key];\n }\n return collectionCopy;\n}\nfunction set(collection, key, value) {\n if (!isDataStructure(collection)) {\n throw new TypeError('Cannot update non-data-structure value: ' + collection);\n }\n if (isImmutable(collection)) {\n if (!collection.set) {\n throw new TypeError('Cannot update immutable value without .set() method: ' + collection);\n }\n return collection.set(key, value);\n }\n if (hasOwnProperty.call(collection, key) && value === collection[key]) {\n return collection;\n }\n var collectionCopy = shallowCopy(collection);\n collectionCopy[key] = value;\n return collectionCopy;\n}\nfunction updateIn$1(collection, keyPath, notSetValue, updater) {\n if (!updater) {\n updater = notSetValue;\n notSetValue = undefined;\n }\n var updatedValue = updateInDeeply(isImmutable(collection), collection, coerceKeyPath(keyPath), 0, notSetValue, updater);\n return updatedValue === NOT_SET ? notSetValue : updatedValue;\n}\nfunction updateInDeeply(inImmutable, existing, keyPath, i, notSetValue, updater) {\n var wasNotSet = existing === NOT_SET;\n if (i === keyPath.length) {\n var existingValue = wasNotSet ? notSetValue : existing;\n var newValue = updater(existingValue);\n return newValue === existingValue ? existing : newValue;\n }\n if (!wasNotSet && !isDataStructure(existing)) {\n throw new TypeError('Cannot update within non-data-structure value in path [' + keyPath.slice(0, i).map(quoteString) + ']: ' + existing);\n }\n var key = keyPath[i];\n var nextExisting = wasNotSet ? NOT_SET : get(existing, key, NOT_SET);\n var nextUpdated = updateInDeeply(nextExisting === NOT_SET ? inImmutable : isImmutable(nextExisting), nextExisting, keyPath, i + 1, notSetValue, updater);\n return nextUpdated === nextExisting ? existing : nextUpdated === NOT_SET ? remove(existing, key) : set(wasNotSet ? inImmutable ? emptyMap() : {} : existing, key, nextUpdated);\n}\nfunction setIn$1(collection, keyPath, value) {\n return updateIn$1(collection, keyPath, NOT_SET, function () {\n return value;\n });\n}\nfunction setIn(keyPath, v) {\n return setIn$1(this, keyPath, v);\n}\nfunction removeIn(collection, keyPath) {\n return updateIn$1(collection, keyPath, function () {\n return NOT_SET;\n });\n}\nfunction deleteIn(keyPath) {\n return removeIn(this, keyPath);\n}\nfunction update$1(collection, key, notSetValue, updater) {\n return updateIn$1(collection, [key], notSetValue, updater);\n}\nfunction update(key, notSetValue, updater) {\n return arguments.length === 1 ? key(this) : update$1(this, key, notSetValue, updater);\n}\nfunction updateIn(keyPath, notSetValue, updater) {\n return updateIn$1(this, keyPath, notSetValue, updater);\n}\nfunction merge$1() {\n var iters = [],\n len = arguments.length;\n while (len--) iters[len] = arguments[len];\n return mergeIntoKeyedWith(this, iters);\n}\nfunction mergeWith$1(merger) {\n var iters = [],\n len = arguments.length - 1;\n while (len-- > 0) iters[len] = arguments[len + 1];\n if (typeof merger !== 'function') {\n throw new TypeError('Invalid merger function: ' + merger);\n }\n return mergeIntoKeyedWith(this, iters, merger);\n}\nfunction mergeIntoKeyedWith(collection, collections, merger) {\n var iters = [];\n for (var ii = 0; ii < collections.length; ii++) {\n var collection$1 = KeyedCollection(collections[ii]);\n if (collection$1.size !== 0) {\n iters.push(collection$1);\n }\n }\n if (iters.length === 0) {\n return collection;\n }\n if (collection.toSeq().size === 0 && !collection.__ownerID && iters.length === 1) {\n return collection.constructor(iters[0]);\n }\n return collection.withMutations(function (collection) {\n var mergeIntoCollection = merger ? function (value, key) {\n update$1(collection, key, NOT_SET, function (oldVal) {\n return oldVal === NOT_SET ? value : merger(oldVal, value, key);\n });\n } : function (value, key) {\n collection.set(key, value);\n };\n for (var ii = 0; ii < iters.length; ii++) {\n iters[ii].forEach(mergeIntoCollection);\n }\n });\n}\nfunction merge(collection) {\n var sources = [],\n len = arguments.length - 1;\n while (len-- > 0) sources[len] = arguments[len + 1];\n return mergeWithSources(collection, sources);\n}\nfunction mergeWith(merger, collection) {\n var sources = [],\n len = arguments.length - 2;\n while (len-- > 0) sources[len] = arguments[len + 2];\n return mergeWithSources(collection, sources, merger);\n}\nfunction mergeDeep$1(collection) {\n var sources = [],\n len = arguments.length - 1;\n while (len-- > 0) sources[len] = arguments[len + 1];\n return mergeDeepWithSources(collection, sources);\n}\nfunction mergeDeepWith$1(merger, collection) {\n var sources = [],\n len = arguments.length - 2;\n while (len-- > 0) sources[len] = arguments[len + 2];\n return mergeDeepWithSources(collection, sources, merger);\n}\nfunction mergeDeepWithSources(collection, sources, merger) {\n return mergeWithSources(collection, sources, deepMergerWith(merger));\n}\nfunction mergeWithSources(collection, sources, merger) {\n if (!isDataStructure(collection)) {\n throw new TypeError('Cannot merge into non-data-structure value: ' + collection);\n }\n if (isImmutable(collection)) {\n return typeof merger === 'function' && collection.mergeWith ? collection.mergeWith.apply(collection, [merger].concat(sources)) : collection.merge ? collection.merge.apply(collection, sources) : collection.concat.apply(collection, sources);\n }\n var isArray = Array.isArray(collection);\n var merged = collection;\n var Collection = isArray ? IndexedCollection : KeyedCollection;\n var mergeItem = isArray ? function (value) {\n // Copy on write\n if (merged === collection) {\n merged = shallowCopy(merged);\n }\n merged.push(value);\n } : function (value, key) {\n var hasVal = hasOwnProperty.call(merged, key);\n var nextVal = hasVal && merger ? merger(merged[key], value, key) : value;\n if (!hasVal || nextVal !== merged[key]) {\n // Copy on write\n if (merged === collection) {\n merged = shallowCopy(merged);\n }\n merged[key] = nextVal;\n }\n };\n for (var i = 0; i < sources.length; i++) {\n Collection(sources[i]).forEach(mergeItem);\n }\n return merged;\n}\nfunction deepMergerWith(merger) {\n function deepMerger(oldValue, newValue, key) {\n return isDataStructure(oldValue) && isDataStructure(newValue) && areMergeable(oldValue, newValue) ? mergeWithSources(oldValue, [newValue], deepMerger) : merger ? merger(oldValue, newValue, key) : newValue;\n }\n return deepMerger;\n}\n\n/**\n * It's unclear what the desired behavior is for merging two collections that\n * fall into separate categories between keyed, indexed, or set-like, so we only\n * consider them mergeable if they fall into the same category.\n */\nfunction areMergeable(oldDataStructure, newDataStructure) {\n var oldSeq = Seq(oldDataStructure);\n var newSeq = Seq(newDataStructure);\n // This logic assumes that a sequence can only fall into one of the three\n // categories mentioned above (since there's no `isSetLike()` method).\n return isIndexed(oldSeq) === isIndexed(newSeq) && isKeyed(oldSeq) === isKeyed(newSeq);\n}\nfunction mergeDeep() {\n var iters = [],\n len = arguments.length;\n while (len--) iters[len] = arguments[len];\n return mergeDeepWithSources(this, iters);\n}\nfunction mergeDeepWith(merger) {\n var iters = [],\n len = arguments.length - 1;\n while (len-- > 0) iters[len] = arguments[len + 1];\n return mergeDeepWithSources(this, iters, merger);\n}\nfunction mergeIn(keyPath) {\n var iters = [],\n len = arguments.length - 1;\n while (len-- > 0) iters[len] = arguments[len + 1];\n return updateIn$1(this, keyPath, emptyMap(), function (m) {\n return mergeWithSources(m, iters);\n });\n}\nfunction mergeDeepIn(keyPath) {\n var iters = [],\n len = arguments.length - 1;\n while (len-- > 0) iters[len] = arguments[len + 1];\n return updateIn$1(this, keyPath, emptyMap(), function (m) {\n return mergeDeepWithSources(m, iters);\n });\n}\nfunction withMutations(fn) {\n var mutable = this.asMutable();\n fn(mutable);\n return mutable.wasAltered() ? mutable.__ensureOwner(this.__ownerID) : this;\n}\nfunction asMutable() {\n return this.__ownerID ? this : this.__ensureOwner(new OwnerID());\n}\nfunction asImmutable() {\n return this.__ensureOwner();\n}\nfunction wasAltered() {\n return this.__altered;\n}\nvar Map = /*@__PURE__*/function (KeyedCollection) {\n function Map(value) {\n return value === undefined || value === null ? emptyMap() : isMap(value) && !isOrdered(value) ? value : emptyMap().withMutations(function (map) {\n var iter = KeyedCollection(value);\n assertNotInfinite(iter.size);\n iter.forEach(function (v, k) {\n return map.set(k, v);\n });\n });\n }\n if (KeyedCollection) Map.__proto__ = KeyedCollection;\n Map.prototype = Object.create(KeyedCollection && KeyedCollection.prototype);\n Map.prototype.constructor = Map;\n Map.of = function of() {\n var keyValues = [],\n len = arguments.length;\n while (len--) keyValues[len] = arguments[len];\n return emptyMap().withMutations(function (map) {\n for (var i = 0; i < keyValues.length; i += 2) {\n if (i + 1 >= keyValues.length) {\n throw new Error('Missing value for key: ' + keyValues[i]);\n }\n map.set(keyValues[i], keyValues[i + 1]);\n }\n });\n };\n Map.prototype.toString = function toString() {\n return this.__toString('Map {', '}');\n };\n\n // @pragma Access\n\n Map.prototype.get = function get(k, notSetValue) {\n return this._root ? this._root.get(0, undefined, k, notSetValue) : notSetValue;\n };\n\n // @pragma Modification\n\n Map.prototype.set = function set(k, v) {\n return updateMap(this, k, v);\n };\n Map.prototype.remove = function remove(k) {\n return updateMap(this, k, NOT_SET);\n };\n Map.prototype.deleteAll = function deleteAll(keys) {\n var collection = Collection(keys);\n if (collection.size === 0) {\n return this;\n }\n return this.withMutations(function (map) {\n collection.forEach(function (key) {\n return map.remove(key);\n });\n });\n };\n Map.prototype.clear = function clear() {\n if (this.size === 0) {\n return this;\n }\n if (this.__ownerID) {\n this.size = 0;\n this._root = null;\n this.__hash = undefined;\n this.__altered = true;\n return this;\n }\n return emptyMap();\n };\n\n // @pragma Composition\n\n Map.prototype.sort = function sort(comparator) {\n // Late binding\n return OrderedMap(sortFactory(this, comparator));\n };\n Map.prototype.sortBy = function sortBy(mapper, comparator) {\n // Late binding\n return OrderedMap(sortFactory(this, comparator, mapper));\n };\n Map.prototype.map = function map(mapper, context) {\n var this$1$1 = this;\n return this.withMutations(function (map) {\n map.forEach(function (value, key) {\n map.set(key, mapper.call(context, value, key, this$1$1));\n });\n });\n };\n\n // @pragma Mutability\n\n Map.prototype.__iterator = function __iterator(type, reverse) {\n return new MapIterator(this, type, reverse);\n };\n Map.prototype.__iterate = function __iterate(fn, reverse) {\n var this$1$1 = this;\n var iterations = 0;\n this._root && this._root.iterate(function (entry) {\n iterations++;\n return fn(entry[1], entry[0], this$1$1);\n }, reverse);\n return iterations;\n };\n Map.prototype.__ensureOwner = function __ensureOwner(ownerID) {\n if (ownerID === this.__ownerID) {\n return this;\n }\n if (!ownerID) {\n if (this.size === 0) {\n return emptyMap();\n }\n this.__ownerID = ownerID;\n this.__altered = false;\n return this;\n }\n return makeMap(this.size, this._root, ownerID, this.__hash);\n };\n return Map;\n}(KeyedCollection);\nMap.isMap = isMap;\nvar MapPrototype = Map.prototype;\nMapPrototype[IS_MAP_SYMBOL] = true;\nMapPrototype[DELETE] = MapPrototype.remove;\nMapPrototype.removeAll = MapPrototype.deleteAll;\nMapPrototype.setIn = setIn;\nMapPrototype.removeIn = MapPrototype.deleteIn = deleteIn;\nMapPrototype.update = update;\nMapPrototype.updateIn = updateIn;\nMapPrototype.merge = MapPrototype.concat = merge$1;\nMapPrototype.mergeWith = mergeWith$1;\nMapPrototype.mergeDeep = mergeDeep;\nMapPrototype.mergeDeepWith = mergeDeepWith;\nMapPrototype.mergeIn = mergeIn;\nMapPrototype.mergeDeepIn = mergeDeepIn;\nMapPrototype.withMutations = withMutations;\nMapPrototype.wasAltered = wasAltered;\nMapPrototype.asImmutable = asImmutable;\nMapPrototype['@@transducer/init'] = MapPrototype.asMutable = asMutable;\nMapPrototype['@@transducer/step'] = function (result, arr) {\n return result.set(arr[0], arr[1]);\n};\nMapPrototype['@@transducer/result'] = function (obj) {\n return obj.asImmutable();\n};\n\n// #pragma Trie Nodes\n\nvar ArrayMapNode = function ArrayMapNode(ownerID, entries) {\n this.ownerID = ownerID;\n this.entries = entries;\n};\nArrayMapNode.prototype.get = function get(shift, keyHash, key, notSetValue) {\n var entries = this.entries;\n for (var ii = 0, len = entries.length; ii < len; ii++) {\n if (is(key, entries[ii][0])) {\n return entries[ii][1];\n }\n }\n return notSetValue;\n};\nArrayMapNode.prototype.update = function update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {\n var removed = value === NOT_SET;\n var entries = this.entries;\n var idx = 0;\n var len = entries.length;\n for (; idx < len; idx++) {\n if (is(key, entries[idx][0])) {\n break;\n }\n }\n var exists = idx < len;\n if (exists ? entries[idx][1] === value : removed) {\n return this;\n }\n SetRef(didAlter);\n (removed || !exists) && SetRef(didChangeSize);\n if (removed && entries.length === 1) {\n return; // undefined\n }\n if (!exists && !removed && entries.length >= MAX_ARRAY_MAP_SIZE) {\n return createNodes(ownerID, entries, key, value);\n }\n var isEditable = ownerID && ownerID === this.ownerID;\n var newEntries = isEditable ? entries : arrCopy(entries);\n if (exists) {\n if (removed) {\n idx === len - 1 ? newEntries.pop() : newEntries[idx] = newEntries.pop();\n } else {\n newEntries[idx] = [key, value];\n }\n } else {\n newEntries.push([key, value]);\n }\n if (isEditable) {\n this.entries = newEntries;\n return this;\n }\n return new ArrayMapNode(ownerID, newEntries);\n};\nvar BitmapIndexedNode = function BitmapIndexedNode(ownerID, bitmap, nodes) {\n this.ownerID = ownerID;\n this.bitmap = bitmap;\n this.nodes = nodes;\n};\nBitmapIndexedNode.prototype.get = function get(shift, keyHash, key, notSetValue) {\n if (keyHash === undefined) {\n keyHash = hash(key);\n }\n var bit = 1 << ((shift === 0 ? keyHash : keyHash >>> shift) & MASK);\n var bitmap = this.bitmap;\n return (bitmap & bit) === 0 ? notSetValue : this.nodes[popCount(bitmap & bit - 1)].get(shift + SHIFT, keyHash, key, notSetValue);\n};\nBitmapIndexedNode.prototype.update = function update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {\n if (keyHash === undefined) {\n keyHash = hash(key);\n }\n var keyHashFrag = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;\n var bit = 1 << keyHashFrag;\n var bitmap = this.bitmap;\n var exists = (bitmap & bit) !== 0;\n if (!exists && value === NOT_SET) {\n return this;\n }\n var idx = popCount(bitmap & bit - 1);\n var nodes = this.nodes;\n var node = exists ? nodes[idx] : undefined;\n var newNode = updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);\n if (newNode === node) {\n return this;\n }\n if (!exists && newNode && nodes.length >= MAX_BITMAP_INDEXED_SIZE) {\n return expandNodes(ownerID, nodes, bitmap, keyHashFrag, newNode);\n }\n if (exists && !newNode && nodes.length === 2 && isLeafNode(nodes[idx ^ 1])) {\n return nodes[idx ^ 1];\n }\n if (exists && newNode && nodes.length === 1 && isLeafNode(newNode)) {\n return newNode;\n }\n var isEditable = ownerID && ownerID === this.ownerID;\n var newBitmap = exists ? newNode ? bitmap : bitmap ^ bit : bitmap | bit;\n var newNodes = exists ? newNode ? setAt(nodes, idx, newNode, isEditable) : spliceOut(nodes, idx, isEditable) : spliceIn(nodes, idx, newNode, isEditable);\n if (isEditable) {\n this.bitmap = newBitmap;\n this.nodes = newNodes;\n return this;\n }\n return new BitmapIndexedNode(ownerID, newBitmap, newNodes);\n};\nvar HashArrayMapNode = function HashArrayMapNode(ownerID, count, nodes) {\n this.ownerID = ownerID;\n this.count = count;\n this.nodes = nodes;\n};\nHashArrayMapNode.prototype.get = function get(shift, keyHash, key, notSetValue) {\n if (keyHash === undefined) {\n keyHash = hash(key);\n }\n var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;\n var node = this.nodes[idx];\n return node ? node.get(shift + SHIFT, keyHash, key, notSetValue) : notSetValue;\n};\nHashArrayMapNode.prototype.update = function update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {\n if (keyHash === undefined) {\n keyHash = hash(key);\n }\n var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;\n var removed = value === NOT_SET;\n var nodes = this.nodes;\n var node = nodes[idx];\n if (removed && !node) {\n return this;\n }\n var newNode = updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);\n if (newNode === node) {\n return this;\n }\n var newCount = this.count;\n if (!node) {\n newCount++;\n } else if (!newNode) {\n newCount--;\n if (newCount < MIN_HASH_ARRAY_MAP_SIZE) {\n return packNodes(ownerID, nodes, newCount, idx);\n }\n }\n var isEditable = ownerID && ownerID === this.ownerID;\n var newNodes = setAt(nodes, idx, newNode, isEditable);\n if (isEditable) {\n this.count = newCount;\n this.nodes = newNodes;\n return this;\n }\n return new HashArrayMapNode(ownerID, newCount, newNodes);\n};\nvar HashCollisionNode = function HashCollisionNode(ownerID, keyHash, entries) {\n this.ownerID = ownerID;\n this.keyHash = keyHash;\n this.entries = entries;\n};\nHashCollisionNode.prototype.get = function get(shift, keyHash, key, notSetValue) {\n var entries = this.entries;\n for (var ii = 0, len = entries.length; ii < len; ii++) {\n if (is(key, entries[ii][0])) {\n return entries[ii][1];\n }\n }\n return notSetValue;\n};\nHashCollisionNode.prototype.update = function update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {\n if (keyHash === undefined) {\n keyHash = hash(key);\n }\n var removed = value === NOT_SET;\n if (keyHash !== this.keyHash) {\n if (removed) {\n return this;\n }\n SetRef(didAlter);\n SetRef(didChangeSize);\n return mergeIntoNode(this, ownerID, shift, keyHash, [key, value]);\n }\n var entries = this.entries;\n var idx = 0;\n var len = entries.length;\n for (; idx < len; idx++) {\n if (is(key, entries[idx][0])) {\n break;\n }\n }\n var exists = idx < len;\n if (exists ? entries[idx][1] === value : removed) {\n return this;\n }\n SetRef(didAlter);\n (removed || !exists) && SetRef(didChangeSize);\n if (removed && len === 2) {\n return new ValueNode(ownerID, this.keyHash, entries[idx ^ 1]);\n }\n var isEditable = ownerID && ownerID === this.ownerID;\n var newEntries = isEditable ? entries : arrCopy(entries);\n if (exists) {\n if (removed) {\n idx === len - 1 ? newEntries.pop() : newEntries[idx] = newEntries.pop();\n } else {\n newEntries[idx] = [key, value];\n }\n } else {\n newEntries.push([key, value]);\n }\n if (isEditable) {\n this.entries = newEntries;\n return this;\n }\n return new HashCollisionNode(ownerID, this.keyHash, newEntries);\n};\nvar ValueNode = function ValueNode(ownerID, keyHash, entry) {\n this.ownerID = ownerID;\n this.keyHash = keyHash;\n this.entry = entry;\n};\nValueNode.prototype.get = function get(shift, keyHash, key, notSetValue) {\n return is(key, this.entry[0]) ? this.entry[1] : notSetValue;\n};\nValueNode.prototype.update = function update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {\n var removed = value === NOT_SET;\n var keyMatch = is(key, this.entry[0]);\n if (keyMatch ? value === this.entry[1] : removed) {\n return this;\n }\n SetRef(didAlter);\n if (removed) {\n SetRef(didChangeSize);\n return; // undefined\n }\n if (keyMatch) {\n if (ownerID && ownerID === this.ownerID) {\n this.entry[1] = value;\n return this;\n }\n return new ValueNode(ownerID, this.keyHash, [key, value]);\n }\n SetRef(didChangeSize);\n return mergeIntoNode(this, ownerID, shift, hash(key), [key, value]);\n};\n\n// #pragma Iterators\n\nArrayMapNode.prototype.iterate = HashCollisionNode.prototype.iterate = function (fn, reverse) {\n var entries = this.entries;\n for (var ii = 0, maxIndex = entries.length - 1; ii <= maxIndex; ii++) {\n if (fn(entries[reverse ? maxIndex - ii : ii]) === false) {\n return false;\n }\n }\n};\nBitmapIndexedNode.prototype.iterate = HashArrayMapNode.prototype.iterate = function (fn, reverse) {\n var nodes = this.nodes;\n for (var ii = 0, maxIndex = nodes.length - 1; ii <= maxIndex; ii++) {\n var node = nodes[reverse ? maxIndex - ii : ii];\n if (node && node.iterate(fn, reverse) === false) {\n return false;\n }\n }\n};\n\n// eslint-disable-next-line no-unused-vars\nValueNode.prototype.iterate = function (fn, reverse) {\n return fn(this.entry);\n};\nvar MapIterator = /*@__PURE__*/function (Iterator) {\n function MapIterator(map, type, reverse) {\n this._type = type;\n this._reverse = reverse;\n this._stack = map._root && mapIteratorFrame(map._root);\n }\n if (Iterator) MapIterator.__proto__ = Iterator;\n MapIterator.prototype = Object.create(Iterator && Iterator.prototype);\n MapIterator.prototype.constructor = MapIterator;\n MapIterator.prototype.next = function next() {\n var type = this._type;\n var stack = this._stack;\n while (stack) {\n var node = stack.node;\n var index = stack.index++;\n var maxIndex = void 0;\n if (node.entry) {\n if (index === 0) {\n return mapIteratorValue(type, node.entry);\n }\n } else if (node.entries) {\n maxIndex = node.entries.length - 1;\n if (index <= maxIndex) {\n return mapIteratorValue(type, node.entries[this._reverse ? maxIndex - index : index]);\n }\n } else {\n maxIndex = node.nodes.length - 1;\n if (index <= maxIndex) {\n var subNode = node.nodes[this._reverse ? maxIndex - index : index];\n if (subNode) {\n if (subNode.entry) {\n return mapIteratorValue(type, subNode.entry);\n }\n stack = this._stack = mapIteratorFrame(subNode, stack);\n }\n continue;\n }\n }\n stack = this._stack = this._stack.__prev;\n }\n return iteratorDone();\n };\n return MapIterator;\n}(Iterator);\nfunction mapIteratorValue(type, entry) {\n return iteratorValue(type, entry[0], entry[1]);\n}\nfunction mapIteratorFrame(node, prev) {\n return {\n node: node,\n index: 0,\n __prev: prev\n };\n}\nfunction makeMap(size, root, ownerID, hash) {\n var map = Object.create(MapPrototype);\n map.size = size;\n map._root = root;\n map.__ownerID = ownerID;\n map.__hash = hash;\n map.__altered = false;\n return map;\n}\nvar EMPTY_MAP;\nfunction emptyMap() {\n return EMPTY_MAP || (EMPTY_MAP = makeMap(0));\n}\nfunction updateMap(map, k, v) {\n var newRoot;\n var newSize;\n if (!map._root) {\n if (v === NOT_SET) {\n return map;\n }\n newSize = 1;\n newRoot = new ArrayMapNode(map.__ownerID, [[k, v]]);\n } else {\n var didChangeSize = MakeRef();\n var didAlter = MakeRef();\n newRoot = updateNode(map._root, map.__ownerID, 0, undefined, k, v, didChangeSize, didAlter);\n if (!didAlter.value) {\n return map;\n }\n newSize = map.size + (didChangeSize.value ? v === NOT_SET ? -1 : 1 : 0);\n }\n if (map.__ownerID) {\n map.size = newSize;\n map._root = newRoot;\n map.__hash = undefined;\n map.__altered = true;\n return map;\n }\n return newRoot ? makeMap(newSize, newRoot) : emptyMap();\n}\nfunction updateNode(node, ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {\n if (!node) {\n if (value === NOT_SET) {\n return node;\n }\n SetRef(didAlter);\n SetRef(didChangeSize);\n return new ValueNode(ownerID, keyHash, [key, value]);\n }\n return node.update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter);\n}\nfunction isLeafNode(node) {\n return node.constructor === ValueNode || node.constructor === HashCollisionNode;\n}\nfunction mergeIntoNode(node, ownerID, shift, keyHash, entry) {\n if (node.keyHash === keyHash) {\n return new HashCollisionNode(ownerID, keyHash, [node.entry, entry]);\n }\n var idx1 = (shift === 0 ? node.keyHash : node.keyHash >>> shift) & MASK;\n var idx2 = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;\n var newNode;\n var nodes = idx1 === idx2 ? [mergeIntoNode(node, ownerID, shift + SHIFT, keyHash, entry)] : (newNode = new ValueNode(ownerID, keyHash, entry), idx1 < idx2 ? [node, newNode] : [newNode, node]);\n return new BitmapIndexedNode(ownerID, 1 << idx1 | 1 << idx2, nodes);\n}\nfunction createNodes(ownerID, entries, key, value) {\n if (!ownerID) {\n ownerID = new OwnerID();\n }\n var node = new ValueNode(ownerID, hash(key), [key, value]);\n for (var ii = 0; ii < entries.length; ii++) {\n var entry = entries[ii];\n node = node.update(ownerID, 0, undefined, entry[0], entry[1]);\n }\n return node;\n}\nfunction packNodes(ownerID, nodes, count, excluding) {\n var bitmap = 0;\n var packedII = 0;\n var packedNodes = new Array(count);\n for (var ii = 0, bit = 1, len = nodes.length; ii < len; ii++, bit <<= 1) {\n var node = nodes[ii];\n if (node !== undefined && ii !== excluding) {\n bitmap |= bit;\n packedNodes[packedII++] = node;\n }\n }\n return new BitmapIndexedNode(ownerID, bitmap, packedNodes);\n}\nfunction expandNodes(ownerID, nodes, bitmap, including, node) {\n var count = 0;\n var expandedNodes = new Array(SIZE);\n for (var ii = 0; bitmap !== 0; ii++, bitmap >>>= 1) {\n expandedNodes[ii] = bitmap & 1 ? nodes[count++] : undefined;\n }\n expandedNodes[including] = node;\n return new HashArrayMapNode(ownerID, count + 1, expandedNodes);\n}\nfunction popCount(x) {\n x -= x >> 1 & 0x55555555;\n x = (x & 0x33333333) + (x >> 2 & 0x33333333);\n x = x + (x >> 4) & 0x0f0f0f0f;\n x += x >> 8;\n x += x >> 16;\n return x & 0x7f;\n}\nfunction setAt(array, idx, val, canEdit) {\n var newArray = canEdit ? array : arrCopy(array);\n newArray[idx] = val;\n return newArray;\n}\nfunction spliceIn(array, idx, val, canEdit) {\n var newLen = array.length + 1;\n if (canEdit && idx + 1 === newLen) {\n array[idx] = val;\n return array;\n }\n var newArray = new Array(newLen);\n var after = 0;\n for (var ii = 0; ii < newLen; ii++) {\n if (ii === idx) {\n newArray[ii] = val;\n after = -1;\n } else {\n newArray[ii] = array[ii + after];\n }\n }\n return newArray;\n}\nfunction spliceOut(array, idx, canEdit) {\n var newLen = array.length - 1;\n if (canEdit && idx === newLen) {\n array.pop();\n return array;\n }\n var newArray = new Array(newLen);\n var after = 0;\n for (var ii = 0; ii < newLen; ii++) {\n if (ii === idx) {\n after = 1;\n }\n newArray[ii] = array[ii + after];\n }\n return newArray;\n}\nvar MAX_ARRAY_MAP_SIZE = SIZE / 4;\nvar MAX_BITMAP_INDEXED_SIZE = SIZE / 2;\nvar MIN_HASH_ARRAY_MAP_SIZE = SIZE / 4;\nvar IS_LIST_SYMBOL = '@@__IMMUTABLE_LIST__@@';\nfunction isList(maybeList) {\n return Boolean(maybeList && maybeList[IS_LIST_SYMBOL]);\n}\nvar List = /*@__PURE__*/function (IndexedCollection) {\n function List(value) {\n var empty = emptyList();\n if (value === undefined || value === null) {\n return empty;\n }\n if (isList(value)) {\n return value;\n }\n var iter = IndexedCollection(value);\n var size = iter.size;\n if (size === 0) {\n return empty;\n }\n assertNotInfinite(size);\n if (size > 0 && size < SIZE) {\n return makeList(0, size, SHIFT, null, new VNode(iter.toArray()));\n }\n return empty.withMutations(function (list) {\n list.setSize(size);\n iter.forEach(function (v, i) {\n return list.set(i, v);\n });\n });\n }\n if (IndexedCollection) List.__proto__ = IndexedCollection;\n List.prototype = Object.create(IndexedCollection && IndexedCollection.prototype);\n List.prototype.constructor = List;\n List.of = function of(/*...values*/\n ) {\n return this(arguments);\n };\n List.prototype.toString = function toString() {\n return this.__toString('List [', ']');\n };\n\n // @pragma Access\n\n List.prototype.get = function get(index, notSetValue) {\n index = wrapIndex(this, index);\n if (index >= 0 && index < this.size) {\n index += this._origin;\n var node = listNodeFor(this, index);\n return node && node.array[index & MASK];\n }\n return notSetValue;\n };\n\n // @pragma Modification\n\n List.prototype.set = function set(index, value) {\n return updateList(this, index, value);\n };\n List.prototype.remove = function remove(index) {\n return !this.has(index) ? this : index === 0 ? this.shift() : index === this.size - 1 ? this.pop() : this.splice(index, 1);\n };\n List.prototype.insert = function insert(index, value) {\n return this.splice(index, 0, value);\n };\n List.prototype.clear = function clear() {\n if (this.size === 0) {\n return this;\n }\n if (this.__ownerID) {\n this.size = this._origin = this._capacity = 0;\n this._level = SHIFT;\n this._root = this._tail = this.__hash = undefined;\n this.__altered = true;\n return this;\n }\n return emptyList();\n };\n List.prototype.push = function push(/*...values*/\n ) {\n var values = arguments;\n var oldSize = this.size;\n return this.withMutations(function (list) {\n setListBounds(list, 0, oldSize + values.length);\n for (var ii = 0; ii < values.length; ii++) {\n list.set(oldSize + ii, values[ii]);\n }\n });\n };\n List.prototype.pop = function pop() {\n return setListBounds(this, 0, -1);\n };\n List.prototype.unshift = function unshift(/*...values*/\n ) {\n var values = arguments;\n return this.withMutations(function (list) {\n setListBounds(list, -values.length);\n for (var ii = 0; ii < values.length; ii++) {\n list.set(ii, values[ii]);\n }\n });\n };\n List.prototype.shift = function shift() {\n return setListBounds(this, 1);\n };\n\n // @pragma Composition\n\n List.prototype.concat = function concat(/*...collections*/\n ) {\n var arguments$1 = arguments;\n var seqs = [];\n for (var i = 0; i < arguments.length; i++) {\n var argument = arguments$1[i];\n var seq = IndexedCollection(typeof argument !== 'string' && hasIterator(argument) ? argument : [argument]);\n if (seq.size !== 0) {\n seqs.push(seq);\n }\n }\n if (seqs.length === 0) {\n return this;\n }\n if (this.size === 0 && !this.__ownerID && seqs.length === 1) {\n return this.constructor(seqs[0]);\n }\n return this.withMutations(function (list) {\n seqs.forEach(function (seq) {\n return seq.forEach(function (value) {\n return list.push(value);\n });\n });\n });\n };\n List.prototype.setSize = function setSize(size) {\n return setListBounds(this, 0, size);\n };\n List.prototype.map = function map(mapper, context) {\n var this$1$1 = this;\n return this.withMutations(function (list) {\n for (var i = 0; i < this$1$1.size; i++) {\n list.set(i, mapper.call(context, list.get(i), i, this$1$1));\n }\n });\n };\n\n // @pragma Iteration\n\n List.prototype.slice = function slice(begin, end) {\n var size = this.size;\n if (wholeSlice(begin, end, size)) {\n return this;\n }\n return setListBounds(this, resolveBegin(begin, size), resolveEnd(end, size));\n };\n List.prototype.__iterator = function __iterator(type, reverse) {\n var index = reverse ? this.size : 0;\n var values = iterateList(this, reverse);\n return new Iterator(function () {\n var value = values();\n return value === DONE ? iteratorDone() : iteratorValue(type, reverse ? --index : index++, value);\n });\n };\n List.prototype.__iterate = function __iterate(fn, reverse) {\n var index = reverse ? this.size : 0;\n var values = iterateList(this, reverse);\n var value;\n while ((value = values()) !== DONE) {\n if (fn(value, reverse ? --index : index++, this) === false) {\n break;\n }\n }\n return index;\n };\n List.prototype.__ensureOwner = function __ensureOwner(ownerID) {\n if (ownerID === this.__ownerID) {\n return this;\n }\n if (!ownerID) {\n if (this.size === 0) {\n return emptyList();\n }\n this.__ownerID = ownerID;\n this.__altered = false;\n return this;\n }\n return makeList(this._origin, this._capacity, this._level, this._root, this._tail, ownerID, this.__hash);\n };\n return List;\n}(IndexedCollection);\nList.isList = isList;\nvar ListPrototype = List.prototype;\nListPrototype[IS_LIST_SYMBOL] = true;\nListPrototype[DELETE] = ListPrototype.remove;\nListPrototype.merge = ListPrototype.concat;\nListPrototype.setIn = setIn;\nListPrototype.deleteIn = ListPrototype.removeIn = deleteIn;\nListPrototype.update = update;\nListPrototype.updateIn = updateIn;\nListPrototype.mergeIn = mergeIn;\nListPrototype.mergeDeepIn = mergeDeepIn;\nListPrototype.withMutations = withMutations;\nListPrototype.wasAltered = wasAltered;\nListPrototype.asImmutable = asImmutable;\nListPrototype['@@transducer/init'] = ListPrototype.asMutable = asMutable;\nListPrototype['@@transducer/step'] = function (result, arr) {\n return result.push(arr);\n};\nListPrototype['@@transducer/result'] = function (obj) {\n return obj.asImmutable();\n};\nvar VNode = function VNode(array, ownerID) {\n this.array = array;\n this.ownerID = ownerID;\n};\n\n// TODO: seems like these methods are very similar\n\nVNode.prototype.removeBefore = function removeBefore(ownerID, level, index) {\n if (index === level ? 1 << level : this.array.length === 0) {\n return this;\n }\n var originIndex = index >>> level & MASK;\n if (originIndex >= this.array.length) {\n return new VNode([], ownerID);\n }\n var removingFirst = originIndex === 0;\n var newChild;\n if (level > 0) {\n var oldChild = this.array[originIndex];\n newChild = oldChild && oldChild.removeBefore(ownerID, level - SHIFT, index);\n if (newChild === oldChild && removingFirst) {\n return this;\n }\n }\n if (removingFirst && !newChild) {\n return this;\n }\n var editable = editableVNode(this, ownerID);\n if (!removingFirst) {\n for (var ii = 0; ii < originIndex; ii++) {\n editable.array[ii] = undefined;\n }\n }\n if (newChild) {\n editable.array[originIndex] = newChild;\n }\n return editable;\n};\nVNode.prototype.removeAfter = function removeAfter(ownerID, level, index) {\n if (index === (level ? 1 << level : 0) || this.array.length === 0) {\n return this;\n }\n var sizeIndex = index - 1 >>> level & MASK;\n if (sizeIndex >= this.array.length) {\n return this;\n }\n var newChild;\n if (level > 0) {\n var oldChild = this.array[sizeIndex];\n newChild = oldChild && oldChild.removeAfter(ownerID, level - SHIFT, index);\n if (newChild === oldChild && sizeIndex === this.array.length - 1) {\n return this;\n }\n }\n var editable = editableVNode(this, ownerID);\n editable.array.splice(sizeIndex + 1);\n if (newChild) {\n editable.array[sizeIndex] = newChild;\n }\n return editable;\n};\nvar DONE = {};\nfunction iterateList(list, reverse) {\n var left = list._origin;\n var right = list._capacity;\n var tailPos = getTailOffset(right);\n var tail = list._tail;\n return iterateNodeOrLeaf(list._root, list._level, 0);\n function iterateNodeOrLeaf(node, level, offset) {\n return level === 0 ? iterateLeaf(node, offset) : iterateNode(node, level, offset);\n }\n function iterateLeaf(node, offset) {\n var array = offset === tailPos ? tail && tail.array : node && node.array;\n var from = offset > left ? 0 : left - offset;\n var to = right - offset;\n if (to > SIZE) {\n to = SIZE;\n }\n return function () {\n if (from === to) {\n return DONE;\n }\n var idx = reverse ? --to : from++;\n return array && array[idx];\n };\n }\n function iterateNode(node, level, offset) {\n var values;\n var array = node && node.array;\n var from = offset > left ? 0 : left - offset >> level;\n var to = (right - offset >> level) + 1;\n if (to > SIZE) {\n to = SIZE;\n }\n return function () {\n while (true) {\n if (values) {\n var value = values();\n if (value !== DONE) {\n return value;\n }\n values = null;\n }\n if (from === to) {\n return DONE;\n }\n var idx = reverse ? --to : from++;\n values = iterateNodeOrLeaf(array && array[idx], level - SHIFT, offset + (idx << level));\n }\n };\n }\n}\nfunction makeList(origin, capacity, level, root, tail, ownerID, hash) {\n var list = Object.create(ListPrototype);\n list.size = capacity - origin;\n list._origin = origin;\n list._capacity = capacity;\n list._level = level;\n list._root = root;\n list._tail = tail;\n list.__ownerID = ownerID;\n list.__hash = hash;\n list.__altered = false;\n return list;\n}\nvar EMPTY_LIST;\nfunction emptyList() {\n return EMPTY_LIST || (EMPTY_LIST = makeList(0, 0, SHIFT));\n}\nfunction updateList(list, index, value) {\n index = wrapIndex(list, index);\n if (index !== index) {\n return list;\n }\n if (index >= list.size || index < 0) {\n return list.withMutations(function (list) {\n index < 0 ? setListBounds(list, index).set(0, value) : setListBounds(list, 0, index + 1).set(index, value);\n });\n }\n index += list._origin;\n var newTail = list._tail;\n var newRoot = list._root;\n var didAlter = MakeRef();\n if (index >= getTailOffset(list._capacity)) {\n newTail = updateVNode(newTail, list.__ownerID, 0, index, value, didAlter);\n } else {\n newRoot = updateVNode(newRoot, list.__ownerID, list._level, index, value, didAlter);\n }\n if (!didAlter.value) {\n return list;\n }\n if (list.__ownerID) {\n list._root = newRoot;\n list._tail = newTail;\n list.__hash = undefined;\n list.__altered = true;\n return list;\n }\n return makeList(list._origin, list._capacity, list._level, newRoot, newTail);\n}\nfunction updateVNode(node, ownerID, level, index, value, didAlter) {\n var idx = index >>> level & MASK;\n var nodeHas = node && idx < node.array.length;\n if (!nodeHas && value === undefined) {\n return node;\n }\n var newNode;\n if (level > 0) {\n var lowerNode = node && node.array[idx];\n var newLowerNode = updateVNode(lowerNode, ownerID, level - SHIFT, index, value, didAlter);\n if (newLowerNode === lowerNode) {\n return node;\n }\n newNode = editableVNode(node, ownerID);\n newNode.array[idx] = newLowerNode;\n return newNode;\n }\n if (nodeHas && node.array[idx] === value) {\n return node;\n }\n if (didAlter) {\n SetRef(didAlter);\n }\n newNode = editableVNode(node, ownerID);\n if (value === undefined && idx === newNode.array.length - 1) {\n newNode.array.pop();\n } else {\n newNode.array[idx] = value;\n }\n return newNode;\n}\nfunction editableVNode(node, ownerID) {\n if (ownerID && node && ownerID === node.ownerID) {\n return node;\n }\n return new VNode(node ? node.array.slice() : [], ownerID);\n}\nfunction listNodeFor(list, rawIndex) {\n if (rawIndex >= getTailOffset(list._capacity)) {\n return list._tail;\n }\n if (rawIndex < 1 << list._level + SHIFT) {\n var node = list._root;\n var level = list._level;\n while (node && level > 0) {\n node = node.array[rawIndex >>> level & MASK];\n level -= SHIFT;\n }\n return node;\n }\n}\nfunction setListBounds(list, begin, end) {\n // Sanitize begin & end using this shorthand for ToInt32(argument)\n // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32\n if (begin !== undefined) {\n begin |= 0;\n }\n if (end !== undefined) {\n end |= 0;\n }\n var owner = list.__ownerID || new OwnerID();\n var oldOrigin = list._origin;\n var oldCapacity = list._capacity;\n var newOrigin = oldOrigin + begin;\n var newCapacity = end === undefined ? oldCapacity : end < 0 ? oldCapacity + end : oldOrigin + end;\n if (newOrigin === oldOrigin && newCapacity === oldCapacity) {\n return list;\n }\n\n // If it's going to end after it starts, it's empty.\n if (newOrigin >= newCapacity) {\n return list.clear();\n }\n var newLevel = list._level;\n var newRoot = list._root;\n\n // New origin might need creating a higher root.\n var offsetShift = 0;\n while (newOrigin + offsetShift < 0) {\n newRoot = new VNode(newRoot && newRoot.array.length ? [undefined, newRoot] : [], owner);\n newLevel += SHIFT;\n offsetShift += 1 << newLevel;\n }\n if (offsetShift) {\n newOrigin += offsetShift;\n oldOrigin += offsetShift;\n newCapacity += offsetShift;\n oldCapacity += offsetShift;\n }\n var oldTailOffset = getTailOffset(oldCapacity);\n var newTailOffset = getTailOffset(newCapacity);\n\n // New size might need creating a higher root.\n while (newTailOffset >= 1 << newLevel + SHIFT) {\n newRoot = new VNode(newRoot && newRoot.array.length ? [newRoot] : [], owner);\n newLevel += SHIFT;\n }\n\n // Locate or create the new tail.\n var oldTail = list._tail;\n var newTail = newTailOffset < oldTailOffset ? listNodeFor(list, newCapacity - 1) : newTailOffset > oldTailOffset ? new VNode([], owner) : oldTail;\n\n // Merge Tail into tree.\n if (oldTail && newTailOffset > oldTailOffset && newOrigin < oldCapacity && oldTail.array.length) {\n newRoot = editableVNode(newRoot, owner);\n var node = newRoot;\n for (var level = newLevel; level > SHIFT; level -= SHIFT) {\n var idx = oldTailOffset >>> level & MASK;\n node = node.array[idx] = editableVNode(node.array[idx], owner);\n }\n node.array[oldTailOffset >>> SHIFT & MASK] = oldTail;\n }\n\n // If the size has been reduced, there's a chance the tail needs to be trimmed.\n if (newCapacity < oldCapacity) {\n newTail = newTail && newTail.removeAfter(owner, 0, newCapacity);\n }\n\n // If the new origin is within the tail, then we do not need a root.\n if (newOrigin >= newTailOffset) {\n newOrigin -= newTailOffset;\n newCapacity -= newTailOffset;\n newLevel = SHIFT;\n newRoot = null;\n newTail = newTail && newTail.removeBefore(owner, 0, newOrigin);\n\n // Otherwise, if the root has been trimmed, garbage collect.\n } else if (newOrigin > oldOrigin || newTailOffset < oldTailOffset) {\n offsetShift = 0;\n\n // Identify the new top root node of the subtree of the old root.\n while (newRoot) {\n var beginIndex = newOrigin >>> newLevel & MASK;\n if (beginIndex !== newTailOffset >>> newLevel & MASK) {\n break;\n }\n if (beginIndex) {\n offsetShift += (1 << newLevel) * beginIndex;\n }\n newLevel -= SHIFT;\n newRoot = newRoot.array[beginIndex];\n }\n\n // Trim the new sides of the new root.\n if (newRoot && newOrigin > oldOrigin) {\n newRoot = newRoot.removeBefore(owner, newLevel, newOrigin - offsetShift);\n }\n if (newRoot && newTailOffset < oldTailOffset) {\n newRoot = newRoot.removeAfter(owner, newLevel, newTailOffset - offsetShift);\n }\n if (offsetShift) {\n newOrigin -= offsetShift;\n newCapacity -= offsetShift;\n }\n }\n if (list.__ownerID) {\n list.size = newCapacity - newOrigin;\n list._origin = newOrigin;\n list._capacity = newCapacity;\n list._level = newLevel;\n list._root = newRoot;\n list._tail = newTail;\n list.__hash = undefined;\n list.__altered = true;\n return list;\n }\n return makeList(newOrigin, newCapacity, newLevel, newRoot, newTail);\n}\nfunction getTailOffset(size) {\n return size < SIZE ? 0 : size - 1 >>> SHIFT << SHIFT;\n}\nvar OrderedMap = /*@__PURE__*/function (Map) {\n function OrderedMap(value) {\n return value === undefined || value === null ? emptyOrderedMap() : isOrderedMap(value) ? value : emptyOrderedMap().withMutations(function (map) {\n var iter = KeyedCollection(value);\n assertNotInfinite(iter.size);\n iter.forEach(function (v, k) {\n return map.set(k, v);\n });\n });\n }\n if (Map) OrderedMap.__proto__ = Map;\n OrderedMap.prototype = Object.create(Map && Map.prototype);\n OrderedMap.prototype.constructor = OrderedMap;\n OrderedMap.of = function of(/*...values*/\n ) {\n return this(arguments);\n };\n OrderedMap.prototype.toString = function toString() {\n return this.__toString('OrderedMap {', '}');\n };\n\n // @pragma Access\n\n OrderedMap.prototype.get = function get(k, notSetValue) {\n var index = this._map.get(k);\n return index !== undefined ? this._list.get(index)[1] : notSetValue;\n };\n\n // @pragma Modification\n\n OrderedMap.prototype.clear = function clear() {\n if (this.size === 0) {\n return this;\n }\n if (this.__ownerID) {\n this.size = 0;\n this._map.clear();\n this._list.clear();\n this.__altered = true;\n return this;\n }\n return emptyOrderedMap();\n };\n OrderedMap.prototype.set = function set(k, v) {\n return updateOrderedMap(this, k, v);\n };\n OrderedMap.prototype.remove = function remove(k) {\n return updateOrderedMap(this, k, NOT_SET);\n };\n OrderedMap.prototype.__iterate = function __iterate(fn, reverse) {\n var this$1$1 = this;\n return this._list.__iterate(function (entry) {\n return entry && fn(entry[1], entry[0], this$1$1);\n }, reverse);\n };\n OrderedMap.prototype.__iterator = function __iterator(type, reverse) {\n return this._list.fromEntrySeq().__iterator(type, reverse);\n };\n OrderedMap.prototype.__ensureOwner = function __ensureOwner(ownerID) {\n if (ownerID === this.__ownerID) {\n return this;\n }\n var newMap = this._map.__ensureOwner(ownerID);\n var newList = this._list.__ensureOwner(ownerID);\n if (!ownerID) {\n if (this.size === 0) {\n return emptyOrderedMap();\n }\n this.__ownerID = ownerID;\n this.__altered = false;\n this._map = newMap;\n this._list = newList;\n return this;\n }\n return makeOrderedMap(newMap, newList, ownerID, this.__hash);\n };\n return OrderedMap;\n}(Map);\nOrderedMap.isOrderedMap = isOrderedMap;\nOrderedMap.prototype[IS_ORDERED_SYMBOL] = true;\nOrderedMap.prototype[DELETE] = OrderedMap.prototype.remove;\nfunction makeOrderedMap(map, list, ownerID, hash) {\n var omap = Object.create(OrderedMap.prototype);\n omap.size = map ? map.size : 0;\n omap._map = map;\n omap._list = list;\n omap.__ownerID = ownerID;\n omap.__hash = hash;\n omap.__altered = false;\n return omap;\n}\nvar EMPTY_ORDERED_MAP;\nfunction emptyOrderedMap() {\n return EMPTY_ORDERED_MAP || (EMPTY_ORDERED_MAP = makeOrderedMap(emptyMap(), emptyList()));\n}\nfunction updateOrderedMap(omap, k, v) {\n var map = omap._map;\n var list = omap._list;\n var i = map.get(k);\n var has = i !== undefined;\n var newMap;\n var newList;\n if (v === NOT_SET) {\n // removed\n if (!has) {\n return omap;\n }\n if (list.size >= SIZE && list.size >= map.size * 2) {\n newList = list.filter(function (entry, idx) {\n return entry !== undefined && i !== idx;\n });\n newMap = newList.toKeyedSeq().map(function (entry) {\n return entry[0];\n }).flip().toMap();\n if (omap.__ownerID) {\n newMap.__ownerID = newList.__ownerID = omap.__ownerID;\n }\n } else {\n newMap = map.remove(k);\n newList = i === list.size - 1 ? list.pop() : list.set(i, undefined);\n }\n } else if (has) {\n if (v === list.get(i)[1]) {\n return omap;\n }\n newMap = map;\n newList = list.set(i, [k, v]);\n } else {\n newMap = map.set(k, list.size);\n newList = list.set(list.size, [k, v]);\n }\n if (omap.__ownerID) {\n omap.size = newMap.size;\n omap._map = newMap;\n omap._list = newList;\n omap.__hash = undefined;\n omap.__altered = true;\n return omap;\n }\n return makeOrderedMap(newMap, newList);\n}\nvar IS_STACK_SYMBOL = '@@__IMMUTABLE_STACK__@@';\nfunction isStack(maybeStack) {\n return Boolean(maybeStack && maybeStack[IS_STACK_SYMBOL]);\n}\nvar Stack = /*@__PURE__*/function (IndexedCollection) {\n function Stack(value) {\n return value === undefined || value === null ? emptyStack() : isStack(value) ? value : emptyStack().pushAll(value);\n }\n if (IndexedCollection) Stack.__proto__ = IndexedCollection;\n Stack.prototype = Object.create(IndexedCollection && IndexedCollection.prototype);\n Stack.prototype.constructor = Stack;\n Stack.of = function of(/*...values*/\n ) {\n return this(arguments);\n };\n Stack.prototype.toString = function toString() {\n return this.__toString('Stack [', ']');\n };\n\n // @pragma Access\n\n Stack.prototype.get = function get(index, notSetValue) {\n var head = this._head;\n index = wrapIndex(this, index);\n while (head && index--) {\n head = head.next;\n }\n return head ? head.value : notSetValue;\n };\n Stack.prototype.peek = function peek() {\n return this._head && this._head.value;\n };\n\n // @pragma Modification\n\n Stack.prototype.push = function push(/*...values*/\n ) {\n var arguments$1 = arguments;\n if (arguments.length === 0) {\n return this;\n }\n var newSize = this.size + arguments.length;\n var head = this._head;\n for (var ii = arguments.length - 1; ii >= 0; ii--) {\n head = {\n value: arguments$1[ii],\n next: head\n };\n }\n if (this.__ownerID) {\n this.size = newSize;\n this._head = head;\n this.__hash = undefined;\n this.__altered = true;\n return this;\n }\n return makeStack(newSize, head);\n };\n Stack.prototype.pushAll = function pushAll(iter) {\n iter = IndexedCollection(iter);\n if (iter.size === 0) {\n return this;\n }\n if (this.size === 0 && isStack(iter)) {\n return iter;\n }\n assertNotInfinite(iter.size);\n var newSize = this.size;\n var head = this._head;\n iter.__iterate(function (value) {\n newSize++;\n head = {\n value: value,\n next: head\n };\n }, /* reverse */true);\n if (this.__ownerID) {\n this.size = newSize;\n this._head = head;\n this.__hash = undefined;\n this.__altered = true;\n return this;\n }\n return makeStack(newSize, head);\n };\n Stack.prototype.pop = function pop() {\n return this.slice(1);\n };\n Stack.prototype.clear = function clear() {\n if (this.size === 0) {\n return this;\n }\n if (this.__ownerID) {\n this.size = 0;\n this._head = undefined;\n this.__hash = undefined;\n this.__altered = true;\n return this;\n }\n return emptyStack();\n };\n Stack.prototype.slice = function slice(begin, end) {\n if (wholeSlice(begin, end, this.size)) {\n return this;\n }\n var resolvedBegin = resolveBegin(begin, this.size);\n var resolvedEnd = resolveEnd(end, this.size);\n if (resolvedEnd !== this.size) {\n // super.slice(begin, end);\n return IndexedCollection.prototype.slice.call(this, begin, end);\n }\n var newSize = this.size - resolvedBegin;\n var head = this._head;\n while (resolvedBegin--) {\n head = head.next;\n }\n if (this.__ownerID) {\n this.size = newSize;\n this._head = head;\n this.__hash = undefined;\n this.__altered = true;\n return this;\n }\n return makeStack(newSize, head);\n };\n\n // @pragma Mutability\n\n Stack.prototype.__ensureOwner = function __ensureOwner(ownerID) {\n if (ownerID === this.__ownerID) {\n return this;\n }\n if (!ownerID) {\n if (this.size === 0) {\n return emptyStack();\n }\n this.__ownerID = ownerID;\n this.__altered = false;\n return this;\n }\n return makeStack(this.size, this._head, ownerID, this.__hash);\n };\n\n // @pragma Iteration\n\n Stack.prototype.__iterate = function __iterate(fn, reverse) {\n var this$1$1 = this;\n if (reverse) {\n return new ArraySeq(this.toArray()).__iterate(function (v, k) {\n return fn(v, k, this$1$1);\n }, reverse);\n }\n var iterations = 0;\n var node = this._head;\n while (node) {\n if (fn(node.value, iterations++, this) === false) {\n break;\n }\n node = node.next;\n }\n return iterations;\n };\n Stack.prototype.__iterator = function __iterator(type, reverse) {\n if (reverse) {\n return new ArraySeq(this.toArray()).__iterator(type, reverse);\n }\n var iterations = 0;\n var node = this._head;\n return new Iterator(function () {\n if (node) {\n var value = node.value;\n node = node.next;\n return iteratorValue(type, iterations++, value);\n }\n return iteratorDone();\n });\n };\n return Stack;\n}(IndexedCollection);\nStack.isStack = isStack;\nvar StackPrototype = Stack.prototype;\nStackPrototype[IS_STACK_SYMBOL] = true;\nStackPrototype.shift = StackPrototype.pop;\nStackPrototype.unshift = StackPrototype.push;\nStackPrototype.unshiftAll = StackPrototype.pushAll;\nStackPrototype.withMutations = withMutations;\nStackPrototype.wasAltered = wasAltered;\nStackPrototype.asImmutable = asImmutable;\nStackPrototype['@@transducer/init'] = StackPrototype.asMutable = asMutable;\nStackPrototype['@@transducer/step'] = function (result, arr) {\n return result.unshift(arr);\n};\nStackPrototype['@@transducer/result'] = function (obj) {\n return obj.asImmutable();\n};\nfunction makeStack(size, head, ownerID, hash) {\n var map = Object.create(StackPrototype);\n map.size = size;\n map._head = head;\n map.__ownerID = ownerID;\n map.__hash = hash;\n map.__altered = false;\n return map;\n}\nvar EMPTY_STACK;\nfunction emptyStack() {\n return EMPTY_STACK || (EMPTY_STACK = makeStack(0));\n}\nvar IS_SET_SYMBOL = '@@__IMMUTABLE_SET__@@';\nfunction isSet(maybeSet) {\n return Boolean(maybeSet && maybeSet[IS_SET_SYMBOL]);\n}\nfunction isOrderedSet(maybeOrderedSet) {\n return isSet(maybeOrderedSet) && isOrdered(maybeOrderedSet);\n}\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (!isCollection(b) || a.size !== undefined && b.size !== undefined && a.size !== b.size || a.__hash !== undefined && b.__hash !== undefined && a.__hash !== b.__hash || isKeyed(a) !== isKeyed(b) || isIndexed(a) !== isIndexed(b) || isOrdered(a) !== isOrdered(b)) {\n return false;\n }\n if (a.size === 0 && b.size === 0) {\n return true;\n }\n var notAssociative = !isAssociative(a);\n if (isOrdered(a)) {\n var entries = a.entries();\n return b.every(function (v, k) {\n var entry = entries.next().value;\n return entry && is(entry[1], v) && (notAssociative || is(entry[0], k));\n }) && entries.next().done;\n }\n var flipped = false;\n if (a.size === undefined) {\n if (b.size === undefined) {\n if (typeof a.cacheResult === 'function') {\n a.cacheResult();\n }\n } else {\n flipped = true;\n var _ = a;\n a = b;\n b = _;\n }\n }\n var allEqual = true;\n var bSize = b.__iterate(function (v, k) {\n if (notAssociative ? !a.has(v) : flipped ? !is(v, a.get(k, NOT_SET)) : !is(a.get(k, NOT_SET), v)) {\n allEqual = false;\n return false;\n }\n });\n return allEqual && a.size === bSize;\n}\nfunction mixin(ctor, methods) {\n var keyCopier = function (key) {\n ctor.prototype[key] = methods[key];\n };\n Object.keys(methods).forEach(keyCopier);\n Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(methods).forEach(keyCopier);\n return ctor;\n}\nfunction toJS(value) {\n if (!value || typeof value !== 'object') {\n return value;\n }\n if (!isCollection(value)) {\n if (!isDataStructure(value)) {\n return value;\n }\n value = Seq(value);\n }\n if (isKeyed(value)) {\n var result$1 = {};\n value.__iterate(function (v, k) {\n result$1[k] = toJS(v);\n });\n return result$1;\n }\n var result = [];\n value.__iterate(function (v) {\n result.push(toJS(v));\n });\n return result;\n}\nvar Set = /*@__PURE__*/function (SetCollection) {\n function Set(value) {\n return value === undefined || value === null ? emptySet() : isSet(value) && !isOrdered(value) ? value : emptySet().withMutations(function (set) {\n var iter = SetCollection(value);\n assertNotInfinite(iter.size);\n iter.forEach(function (v) {\n return set.add(v);\n });\n });\n }\n if (SetCollection) Set.__proto__ = SetCollection;\n Set.prototype = Object.create(SetCollection && SetCollection.prototype);\n Set.prototype.constructor = Set;\n Set.of = function of(/*...values*/\n ) {\n return this(arguments);\n };\n Set.fromKeys = function fromKeys(value) {\n return this(KeyedCollection(value).keySeq());\n };\n Set.intersect = function intersect(sets) {\n sets = Collection(sets).toArray();\n return sets.length ? SetPrototype.intersect.apply(Set(sets.pop()), sets) : emptySet();\n };\n Set.union = function union(sets) {\n sets = Collection(sets).toArray();\n return sets.length ? SetPrototype.union.apply(Set(sets.pop()), sets) : emptySet();\n };\n Set.prototype.toString = function toString() {\n return this.__toString('Set {', '}');\n };\n\n // @pragma Access\n\n Set.prototype.has = function has(value) {\n return this._map.has(value);\n };\n\n // @pragma Modification\n\n Set.prototype.add = function add(value) {\n return updateSet(this, this._map.set(value, value));\n };\n Set.prototype.remove = function remove(value) {\n return updateSet(this, this._map.remove(value));\n };\n Set.prototype.clear = function clear() {\n return updateSet(this, this._map.clear());\n };\n\n // @pragma Composition\n\n Set.prototype.map = function map(mapper, context) {\n var this$1$1 = this;\n\n // keep track if the set is altered by the map function\n var didChanges = false;\n var newMap = updateSet(this, this._map.mapEntries(function (ref) {\n var v = ref[1];\n var mapped = mapper.call(context, v, v, this$1$1);\n if (mapped !== v) {\n didChanges = true;\n }\n return [mapped, mapped];\n }, context));\n return didChanges ? newMap : this;\n };\n Set.prototype.union = function union() {\n var iters = [],\n len = arguments.length;\n while (len--) iters[len] = arguments[len];\n iters = iters.filter(function (x) {\n return x.size !== 0;\n });\n if (iters.length === 0) {\n return this;\n }\n if (this.size === 0 && !this.__ownerID && iters.length === 1) {\n return this.constructor(iters[0]);\n }\n return this.withMutations(function (set) {\n for (var ii = 0; ii < iters.length; ii++) {\n if (typeof iters[ii] === 'string') {\n set.add(iters[ii]);\n } else {\n SetCollection(iters[ii]).forEach(function (value) {\n return set.add(value);\n });\n }\n }\n });\n };\n Set.prototype.intersect = function intersect() {\n var iters = [],\n len = arguments.length;\n while (len--) iters[len] = arguments[len];\n if (iters.length === 0) {\n return this;\n }\n iters = iters.map(function (iter) {\n return SetCollection(iter);\n });\n var toRemove = [];\n this.forEach(function (value) {\n if (!iters.every(function (iter) {\n return iter.includes(value);\n })) {\n toRemove.push(value);\n }\n });\n return this.withMutations(function (set) {\n toRemove.forEach(function (value) {\n set.remove(value);\n });\n });\n };\n Set.prototype.subtract = function subtract() {\n var iters = [],\n len = arguments.length;\n while (len--) iters[len] = arguments[len];\n if (iters.length === 0) {\n return this;\n }\n iters = iters.map(function (iter) {\n return SetCollection(iter);\n });\n var toRemove = [];\n this.forEach(function (value) {\n if (iters.some(function (iter) {\n return iter.includes(value);\n })) {\n toRemove.push(value);\n }\n });\n return this.withMutations(function (set) {\n toRemove.forEach(function (value) {\n set.remove(value);\n });\n });\n };\n Set.prototype.sort = function sort(comparator) {\n // Late binding\n return OrderedSet(sortFactory(this, comparator));\n };\n Set.prototype.sortBy = function sortBy(mapper, comparator) {\n // Late binding\n return OrderedSet(sortFactory(this, comparator, mapper));\n };\n Set.prototype.wasAltered = function wasAltered() {\n return this._map.wasAltered();\n };\n Set.prototype.__iterate = function __iterate(fn, reverse) {\n var this$1$1 = this;\n return this._map.__iterate(function (k) {\n return fn(k, k, this$1$1);\n }, reverse);\n };\n Set.prototype.__iterator = function __iterator(type, reverse) {\n return this._map.__iterator(type, reverse);\n };\n Set.prototype.__ensureOwner = function __ensureOwner(ownerID) {\n if (ownerID === this.__ownerID) {\n return this;\n }\n var newMap = this._map.__ensureOwner(ownerID);\n if (!ownerID) {\n if (this.size === 0) {\n return this.__empty();\n }\n this.__ownerID = ownerID;\n this._map = newMap;\n return this;\n }\n return this.__make(newMap, ownerID);\n };\n return Set;\n}(SetCollection);\nSet.isSet = isSet;\nvar SetPrototype = Set.prototype;\nSetPrototype[IS_SET_SYMBOL] = true;\nSetPrototype[DELETE] = SetPrototype.remove;\nSetPrototype.merge = SetPrototype.concat = SetPrototype.union;\nSetPrototype.withMutations = withMutations;\nSetPrototype.asImmutable = asImmutable;\nSetPrototype['@@transducer/init'] = SetPrototype.asMutable = asMutable;\nSetPrototype['@@transducer/step'] = function (result, arr) {\n return result.add(arr);\n};\nSetPrototype['@@transducer/result'] = function (obj) {\n return obj.asImmutable();\n};\nSetPrototype.__empty = emptySet;\nSetPrototype.__make = makeSet;\nfunction updateSet(set, newMap) {\n if (set.__ownerID) {\n set.size = newMap.size;\n set._map = newMap;\n return set;\n }\n return newMap === set._map ? set : newMap.size === 0 ? set.__empty() : set.__make(newMap);\n}\nfunction makeSet(map, ownerID) {\n var set = Object.create(SetPrototype);\n set.size = map ? map.size : 0;\n set._map = map;\n set.__ownerID = ownerID;\n return set;\n}\nvar EMPTY_SET;\nfunction emptySet() {\n return EMPTY_SET || (EMPTY_SET = makeSet(emptyMap()));\n}\n\n/**\n * Returns a lazy seq of nums from start (inclusive) to end\n * (exclusive), by step, where start defaults to 0, step to 1, and end to\n * infinity. When start is equal to end, returns empty list.\n */\nvar Range = /*@__PURE__*/function (IndexedSeq) {\n function Range(start, end, step) {\n if (!(this instanceof Range)) {\n return new Range(start, end, step);\n }\n invariant(step !== 0, 'Cannot step a Range by 0');\n start = start || 0;\n if (end === undefined) {\n end = Infinity;\n }\n step = step === undefined ? 1 : Math.abs(step);\n if (end < start) {\n step = -step;\n }\n this._start = start;\n this._end = end;\n this._step = step;\n this.size = Math.max(0, Math.ceil((end - start) / step - 1) + 1);\n if (this.size === 0) {\n if (EMPTY_RANGE) {\n return EMPTY_RANGE;\n }\n EMPTY_RANGE = this;\n }\n }\n if (IndexedSeq) Range.__proto__ = IndexedSeq;\n Range.prototype = Object.create(IndexedSeq && IndexedSeq.prototype);\n Range.prototype.constructor = Range;\n Range.prototype.toString = function toString() {\n if (this.size === 0) {\n return 'Range []';\n }\n return 'Range [ ' + this._start + '...' + this._end + (this._step !== 1 ? ' by ' + this._step : '') + ' ]';\n };\n Range.prototype.get = function get(index, notSetValue) {\n return this.has(index) ? this._start + wrapIndex(this, index) * this._step : notSetValue;\n };\n Range.prototype.includes = function includes(searchValue) {\n var possibleIndex = (searchValue - this._start) / this._step;\n return possibleIndex >= 0 && possibleIndex < this.size && possibleIndex === Math.floor(possibleIndex);\n };\n Range.prototype.slice = function slice(begin, end) {\n if (wholeSlice(begin, end, this.size)) {\n return this;\n }\n begin = resolveBegin(begin, this.size);\n end = resolveEnd(end, this.size);\n if (end <= begin) {\n return new Range(0, 0);\n }\n return new Range(this.get(begin, this._end), this.get(end, this._end), this._step);\n };\n Range.prototype.indexOf = function indexOf(searchValue) {\n var offsetValue = searchValue - this._start;\n if (offsetValue % this._step === 0) {\n var index = offsetValue / this._step;\n if (index >= 0 && index < this.size) {\n return index;\n }\n }\n return -1;\n };\n Range.prototype.lastIndexOf = function lastIndexOf(searchValue) {\n return this.indexOf(searchValue);\n };\n Range.prototype.__iterate = function __iterate(fn, reverse) {\n var size = this.size;\n var step = this._step;\n var value = reverse ? this._start + (size - 1) * step : this._start;\n var i = 0;\n while (i !== size) {\n if (fn(value, reverse ? size - ++i : i++, this) === false) {\n break;\n }\n value += reverse ? -step : step;\n }\n return i;\n };\n Range.prototype.__iterator = function __iterator(type, reverse) {\n var size = this.size;\n var step = this._step;\n var value = reverse ? this._start + (size - 1) * step : this._start;\n var i = 0;\n return new Iterator(function () {\n if (i === size) {\n return iteratorDone();\n }\n var v = value;\n value += reverse ? -step : step;\n return iteratorValue(type, reverse ? size - ++i : i++, v);\n });\n };\n Range.prototype.equals = function equals(other) {\n return other instanceof Range ? this._start === other._start && this._end === other._end && this._step === other._step : deepEqual(this, other);\n };\n return Range;\n}(IndexedSeq);\nvar EMPTY_RANGE;\nfunction getIn$1(collection, searchKeyPath, notSetValue) {\n var keyPath = coerceKeyPath(searchKeyPath);\n var i = 0;\n while (i !== keyPath.length) {\n collection = get(collection, keyPath[i++], NOT_SET);\n if (collection === NOT_SET) {\n return notSetValue;\n }\n }\n return collection;\n}\nfunction getIn(searchKeyPath, notSetValue) {\n return getIn$1(this, searchKeyPath, notSetValue);\n}\nfunction hasIn$1(collection, keyPath) {\n return getIn$1(collection, keyPath, NOT_SET) !== NOT_SET;\n}\nfunction hasIn(searchKeyPath) {\n return hasIn$1(this, searchKeyPath);\n}\nfunction toObject() {\n assertNotInfinite(this.size);\n var object = {};\n this.__iterate(function (v, k) {\n object[k] = v;\n });\n return object;\n}\n\n// Note: all of these methods are deprecated.\nCollection.isIterable = isCollection;\nCollection.isKeyed = isKeyed;\nCollection.isIndexed = isIndexed;\nCollection.isAssociative = isAssociative;\nCollection.isOrdered = isOrdered;\nCollection.Iterator = Iterator;\nmixin(Collection, {\n // ### Conversion to other types\n\n toArray: function toArray() {\n assertNotInfinite(this.size);\n var array = new Array(this.size || 0);\n var useTuples = isKeyed(this);\n var i = 0;\n this.__iterate(function (v, k) {\n // Keyed collections produce an array of tuples.\n array[i++] = useTuples ? [k, v] : v;\n });\n return array;\n },\n toIndexedSeq: function toIndexedSeq() {\n return new ToIndexedSequence(this);\n },\n toJS: function toJS$1() {\n return toJS(this);\n },\n toKeyedSeq: function toKeyedSeq() {\n return new ToKeyedSequence(this, true);\n },\n toMap: function toMap() {\n // Use Late Binding here to solve the circular dependency.\n return Map(this.toKeyedSeq());\n },\n toObject: toObject,\n toOrderedMap: function toOrderedMap() {\n // Use Late Binding here to solve the circular dependency.\n return OrderedMap(this.toKeyedSeq());\n },\n toOrderedSet: function toOrderedSet() {\n // Use Late Binding here to solve the circular dependency.\n return OrderedSet(isKeyed(this) ? this.valueSeq() : this);\n },\n toSet: function toSet() {\n // Use Late Binding here to solve the circular dependency.\n return Set(isKeyed(this) ? this.valueSeq() : this);\n },\n toSetSeq: function toSetSeq() {\n return new ToSetSequence(this);\n },\n toSeq: function toSeq() {\n return isIndexed(this) ? this.toIndexedSeq() : isKeyed(this) ? this.toKeyedSeq() : this.toSetSeq();\n },\n toStack: function toStack() {\n // Use Late Binding here to solve the circular dependency.\n return Stack(isKeyed(this) ? this.valueSeq() : this);\n },\n toList: function toList() {\n // Use Late Binding here to solve the circular dependency.\n return List(isKeyed(this) ? this.valueSeq() : this);\n },\n // ### Common JavaScript methods and properties\n\n toString: function toString() {\n return '[Collection]';\n },\n __toString: function __toString(head, tail) {\n if (this.size === 0) {\n return head + tail;\n }\n return head + ' ' + this.toSeq().map(this.__toStringMapper).join(', ') + ' ' + tail;\n },\n // ### ES6 Collection methods (ES6 Array and Map)\n\n concat: function concat() {\n var values = [],\n len = arguments.length;\n while (len--) values[len] = arguments[len];\n return reify(this, concatFactory(this, values));\n },\n includes: function includes(searchValue) {\n return this.some(function (value) {\n return is(value, searchValue);\n });\n },\n entries: function entries() {\n return this.__iterator(ITERATE_ENTRIES);\n },\n every: function every(predicate, context) {\n assertNotInfinite(this.size);\n var returnValue = true;\n this.__iterate(function (v, k, c) {\n if (!predicate.call(context, v, k, c)) {\n returnValue = false;\n return false;\n }\n });\n return returnValue;\n },\n filter: function filter(predicate, context) {\n return reify(this, filterFactory(this, predicate, context, true));\n },\n partition: function partition(predicate, context) {\n return partitionFactory(this, predicate, context);\n },\n find: function find(predicate, context, notSetValue) {\n var entry = this.findEntry(predicate, context);\n return entry ? entry[1] : notSetValue;\n },\n forEach: function forEach(sideEffect, context) {\n assertNotInfinite(this.size);\n return this.__iterate(context ? sideEffect.bind(context) : sideEffect);\n },\n join: function join(separator) {\n assertNotInfinite(this.size);\n separator = separator !== undefined ? '' + separator : ',';\n var joined = '';\n var isFirst = true;\n this.__iterate(function (v) {\n isFirst ? isFirst = false : joined += separator;\n joined += v !== null && v !== undefined ? v.toString() : '';\n });\n return joined;\n },\n keys: function keys() {\n return this.__iterator(ITERATE_KEYS);\n },\n map: function map(mapper, context) {\n return reify(this, mapFactory(this, mapper, context));\n },\n reduce: function reduce$1(reducer, initialReduction, context) {\n return reduce(this, reducer, initialReduction, context, arguments.length < 2, false);\n },\n reduceRight: function reduceRight(reducer, initialReduction, context) {\n return reduce(this, reducer, initialReduction, context, arguments.length < 2, true);\n },\n reverse: function reverse() {\n return reify(this, reverseFactory(this, true));\n },\n slice: function slice(begin, end) {\n return reify(this, sliceFactory(this, begin, end, true));\n },\n some: function some(predicate, context) {\n return !this.every(not(predicate), context);\n },\n sort: function sort(comparator) {\n return reify(this, sortFactory(this, comparator));\n },\n values: function values() {\n return this.__iterator(ITERATE_VALUES);\n },\n // ### More sequential methods\n\n butLast: function butLast() {\n return this.slice(0, -1);\n },\n isEmpty: function isEmpty() {\n return this.size !== undefined ? this.size === 0 : !this.some(function () {\n return true;\n });\n },\n count: function count(predicate, context) {\n return ensureSize(predicate ? this.toSeq().filter(predicate, context) : this);\n },\n countBy: function countBy(grouper, context) {\n return countByFactory(this, grouper, context);\n },\n equals: function equals(other) {\n return deepEqual(this, other);\n },\n entrySeq: function entrySeq() {\n var collection = this;\n if (collection._cache) {\n // We cache as an entries array, so we can just return the cache!\n return new ArraySeq(collection._cache);\n }\n var entriesSequence = collection.toSeq().map(entryMapper).toIndexedSeq();\n entriesSequence.fromEntrySeq = function () {\n return collection.toSeq();\n };\n return entriesSequence;\n },\n filterNot: function filterNot(predicate, context) {\n return this.filter(not(predicate), context);\n },\n findEntry: function findEntry(predicate, context, notSetValue) {\n var found = notSetValue;\n this.__iterate(function (v, k, c) {\n if (predicate.call(context, v, k, c)) {\n found = [k, v];\n return false;\n }\n });\n return found;\n },\n findKey: function findKey(predicate, context) {\n var entry = this.findEntry(predicate, context);\n return entry && entry[0];\n },\n findLast: function findLast(predicate, context, notSetValue) {\n return this.toKeyedSeq().reverse().find(predicate, context, notSetValue);\n },\n findLastEntry: function findLastEntry(predicate, context, notSetValue) {\n return this.toKeyedSeq().reverse().findEntry(predicate, context, notSetValue);\n },\n findLastKey: function findLastKey(predicate, context) {\n return this.toKeyedSeq().reverse().findKey(predicate, context);\n },\n first: function first(notSetValue) {\n return this.find(returnTrue, null, notSetValue);\n },\n flatMap: function flatMap(mapper, context) {\n return reify(this, flatMapFactory(this, mapper, context));\n },\n flatten: function flatten(depth) {\n return reify(this, flattenFactory(this, depth, true));\n },\n fromEntrySeq: function fromEntrySeq() {\n return new FromEntriesSequence(this);\n },\n get: function get(searchKey, notSetValue) {\n return this.find(function (_, key) {\n return is(key, searchKey);\n }, undefined, notSetValue);\n },\n getIn: getIn,\n groupBy: function groupBy(grouper, context) {\n return groupByFactory(this, grouper, context);\n },\n has: function has(searchKey) {\n return this.get(searchKey, NOT_SET) !== NOT_SET;\n },\n hasIn: hasIn,\n isSubset: function isSubset(iter) {\n iter = typeof iter.includes === 'function' ? iter : Collection(iter);\n return this.every(function (value) {\n return iter.includes(value);\n });\n },\n isSuperset: function isSuperset(iter) {\n iter = typeof iter.isSubset === 'function' ? iter : Collection(iter);\n return iter.isSubset(this);\n },\n keyOf: function keyOf(searchValue) {\n return this.findKey(function (value) {\n return is(value, searchValue);\n });\n },\n keySeq: function keySeq() {\n return this.toSeq().map(keyMapper).toIndexedSeq();\n },\n last: function last(notSetValue) {\n return this.toSeq().reverse().first(notSetValue);\n },\n lastKeyOf: function lastKeyOf(searchValue) {\n return this.toKeyedSeq().reverse().keyOf(searchValue);\n },\n max: function max(comparator) {\n return maxFactory(this, comparator);\n },\n maxBy: function maxBy(mapper, comparator) {\n return maxFactory(this, comparator, mapper);\n },\n min: function min(comparator) {\n return maxFactory(this, comparator ? neg(comparator) : defaultNegComparator);\n },\n minBy: function minBy(mapper, comparator) {\n return maxFactory(this, comparator ? neg(comparator) : defaultNegComparator, mapper);\n },\n rest: function rest() {\n return this.slice(1);\n },\n skip: function skip(amount) {\n return amount === 0 ? this : this.slice(Math.max(0, amount));\n },\n skipLast: function skipLast(amount) {\n return amount === 0 ? this : this.slice(0, -Math.max(0, amount));\n },\n skipWhile: function skipWhile(predicate, context) {\n return reify(this, skipWhileFactory(this, predicate, context, true));\n },\n skipUntil: function skipUntil(predicate, context) {\n return this.skipWhile(not(predicate), context);\n },\n sortBy: function sortBy(mapper, comparator) {\n return reify(this, sortFactory(this, comparator, mapper));\n },\n take: function take(amount) {\n return this.slice(0, Math.max(0, amount));\n },\n takeLast: function takeLast(amount) {\n return this.slice(-Math.max(0, amount));\n },\n takeWhile: function takeWhile(predicate, context) {\n return reify(this, takeWhileFactory(this, predicate, context));\n },\n takeUntil: function takeUntil(predicate, context) {\n return this.takeWhile(not(predicate), context);\n },\n update: function update(fn) {\n return fn(this);\n },\n valueSeq: function valueSeq() {\n return this.toIndexedSeq();\n },\n // ### Hashable Object\n\n hashCode: function hashCode() {\n return this.__hash || (this.__hash = hashCollection(this));\n }\n\n // ### Internal\n\n // abstract __iterate(fn, reverse)\n\n // abstract __iterator(type, reverse)\n});\nvar CollectionPrototype = Collection.prototype;\nCollectionPrototype[IS_COLLECTION_SYMBOL] = true;\nCollectionPrototype[ITERATOR_SYMBOL] = CollectionPrototype.values;\nCollectionPrototype.toJSON = CollectionPrototype.toArray;\nCollectionPrototype.__toStringMapper = quoteString;\nCollectionPrototype.inspect = CollectionPrototype.toSource = function () {\n return this.toString();\n};\nCollectionPrototype.chain = CollectionPrototype.flatMap;\nCollectionPrototype.contains = CollectionPrototype.includes;\nmixin(KeyedCollection, {\n // ### More sequential methods\n\n flip: function flip() {\n return reify(this, flipFactory(this));\n },\n mapEntries: function mapEntries(mapper, context) {\n var this$1$1 = this;\n var iterations = 0;\n return reify(this, this.toSeq().map(function (v, k) {\n return mapper.call(context, [k, v], iterations++, this$1$1);\n }).fromEntrySeq());\n },\n mapKeys: function mapKeys(mapper, context) {\n var this$1$1 = this;\n return reify(this, this.toSeq().flip().map(function (k, v) {\n return mapper.call(context, k, v, this$1$1);\n }).flip());\n }\n});\nvar KeyedCollectionPrototype = KeyedCollection.prototype;\nKeyedCollectionPrototype[IS_KEYED_SYMBOL] = true;\nKeyedCollectionPrototype[ITERATOR_SYMBOL] = CollectionPrototype.entries;\nKeyedCollectionPrototype.toJSON = toObject;\nKeyedCollectionPrototype.__toStringMapper = function (v, k) {\n return quoteString(k) + ': ' + quoteString(v);\n};\nmixin(IndexedCollection, {\n // ### Conversion to other types\n\n toKeyedSeq: function toKeyedSeq() {\n return new ToKeyedSequence(this, false);\n },\n // ### ES6 Collection methods (ES6 Array and Map)\n\n filter: function filter(predicate, context) {\n return reify(this, filterFactory(this, predicate, context, false));\n },\n findIndex: function findIndex(predicate, context) {\n var entry = this.findEntry(predicate, context);\n return entry ? entry[0] : -1;\n },\n indexOf: function indexOf(searchValue) {\n var key = this.keyOf(searchValue);\n return key === undefined ? -1 : key;\n },\n lastIndexOf: function lastIndexOf(searchValue) {\n var key = this.lastKeyOf(searchValue);\n return key === undefined ? -1 : key;\n },\n reverse: function reverse() {\n return reify(this, reverseFactory(this, false));\n },\n slice: function slice(begin, end) {\n return reify(this, sliceFactory(this, begin, end, false));\n },\n splice: function splice(index, removeNum /*, ...values*/) {\n var numArgs = arguments.length;\n removeNum = Math.max(removeNum || 0, 0);\n if (numArgs === 0 || numArgs === 2 && !removeNum) {\n return this;\n }\n // If index is negative, it should resolve relative to the size of the\n // collection. However size may be expensive to compute if not cached, so\n // only call count() if the number is in fact negative.\n index = resolveBegin(index, index < 0 ? this.count() : this.size);\n var spliced = this.slice(0, index);\n return reify(this, numArgs === 1 ? spliced : spliced.concat(arrCopy(arguments, 2), this.slice(index + removeNum)));\n },\n // ### More collection methods\n\n findLastIndex: function findLastIndex(predicate, context) {\n var entry = this.findLastEntry(predicate, context);\n return entry ? entry[0] : -1;\n },\n first: function first(notSetValue) {\n return this.get(0, notSetValue);\n },\n flatten: function flatten(depth) {\n return reify(this, flattenFactory(this, depth, false));\n },\n get: function get(index, notSetValue) {\n index = wrapIndex(this, index);\n return index < 0 || this.size === Infinity || this.size !== undefined && index > this.size ? notSetValue : this.find(function (_, key) {\n return key === index;\n }, undefined, notSetValue);\n },\n has: function has(index) {\n index = wrapIndex(this, index);\n return index >= 0 && (this.size !== undefined ? this.size === Infinity || index < this.size : this.indexOf(index) !== -1);\n },\n interpose: function interpose(separator) {\n return reify(this, interposeFactory(this, separator));\n },\n interleave: function interleave(/*...collections*/\n ) {\n var collections = [this].concat(arrCopy(arguments));\n var zipped = zipWithFactory(this.toSeq(), IndexedSeq.of, collections);\n var interleaved = zipped.flatten(true);\n if (zipped.size) {\n interleaved.size = zipped.size * collections.length;\n }\n return reify(this, interleaved);\n },\n keySeq: function keySeq() {\n return Range(0, this.size);\n },\n last: function last(notSetValue) {\n return this.get(-1, notSetValue);\n },\n skipWhile: function skipWhile(predicate, context) {\n return reify(this, skipWhileFactory(this, predicate, context, false));\n },\n zip: function zip(/*, ...collections */\n ) {\n var collections = [this].concat(arrCopy(arguments));\n return reify(this, zipWithFactory(this, defaultZipper, collections));\n },\n zipAll: function zipAll(/*, ...collections */\n ) {\n var collections = [this].concat(arrCopy(arguments));\n return reify(this, zipWithFactory(this, defaultZipper, collections, true));\n },\n zipWith: function zipWith(zipper /*, ...collections */) {\n var collections = arrCopy(arguments);\n collections[0] = this;\n return reify(this, zipWithFactory(this, zipper, collections));\n }\n});\nvar IndexedCollectionPrototype = IndexedCollection.prototype;\nIndexedCollectionPrototype[IS_INDEXED_SYMBOL] = true;\nIndexedCollectionPrototype[IS_ORDERED_SYMBOL] = true;\nmixin(SetCollection, {\n // ### ES6 Collection methods (ES6 Array and Map)\n\n get: function get(value, notSetValue) {\n return this.has(value) ? value : notSetValue;\n },\n includes: function includes(value) {\n return this.has(value);\n },\n // ### More sequential methods\n\n keySeq: function keySeq() {\n return this.valueSeq();\n }\n});\nvar SetCollectionPrototype = SetCollection.prototype;\nSetCollectionPrototype.has = CollectionPrototype.includes;\nSetCollectionPrototype.contains = SetCollectionPrototype.includes;\nSetCollectionPrototype.keys = SetCollectionPrototype.values;\n\n// Mixin subclasses\n\nmixin(KeyedSeq, KeyedCollectionPrototype);\nmixin(IndexedSeq, IndexedCollectionPrototype);\nmixin(SetSeq, SetCollectionPrototype);\n\n// #pragma Helper functions\n\nfunction reduce(collection, reducer, reduction, context, useFirst, reverse) {\n assertNotInfinite(collection.size);\n collection.__iterate(function (v, k, c) {\n if (useFirst) {\n useFirst = false;\n reduction = v;\n } else {\n reduction = reducer.call(context, reduction, v, k, c);\n }\n }, reverse);\n return reduction;\n}\nfunction keyMapper(v, k) {\n return k;\n}\nfunction entryMapper(v, k) {\n return [k, v];\n}\nfunction not(predicate) {\n return function () {\n return !predicate.apply(this, arguments);\n };\n}\nfunction neg(predicate) {\n return function () {\n return -predicate.apply(this, arguments);\n };\n}\nfunction defaultZipper() {\n return arrCopy(arguments);\n}\nfunction defaultNegComparator(a, b) {\n return a < b ? 1 : a > b ? -1 : 0;\n}\nfunction hashCollection(collection) {\n if (collection.size === Infinity) {\n return 0;\n }\n var ordered = isOrdered(collection);\n var keyed = isKeyed(collection);\n var h = ordered ? 1 : 0;\n var size = collection.__iterate(keyed ? ordered ? function (v, k) {\n h = 31 * h + hashMerge(hash(v), hash(k)) | 0;\n } : function (v, k) {\n h = h + hashMerge(hash(v), hash(k)) | 0;\n } : ordered ? function (v) {\n h = 31 * h + hash(v) | 0;\n } : function (v) {\n h = h + hash(v) | 0;\n });\n return murmurHashOfSize(size, h);\n}\nfunction murmurHashOfSize(size, h) {\n h = imul(h, 0xcc9e2d51);\n h = imul(h << 15 | h >>> -15, 0x1b873593);\n h = imul(h << 13 | h >>> -13, 5);\n h = (h + 0xe6546b64 | 0) ^ size;\n h = imul(h ^ h >>> 16, 0x85ebca6b);\n h = imul(h ^ h >>> 13, 0xc2b2ae35);\n h = smi(h ^ h >>> 16);\n return h;\n}\nfunction hashMerge(a, b) {\n return a ^ b + 0x9e3779b9 + (a << 6) + (a >> 2) | 0; // int\n}\nvar OrderedSet = /*@__PURE__*/function (Set) {\n function OrderedSet(value) {\n return value === undefined || value === null ? emptyOrderedSet() : isOrderedSet(value) ? value : emptyOrderedSet().withMutations(function (set) {\n var iter = SetCollection(value);\n assertNotInfinite(iter.size);\n iter.forEach(function (v) {\n return set.add(v);\n });\n });\n }\n if (Set) OrderedSet.__proto__ = Set;\n OrderedSet.prototype = Object.create(Set && Set.prototype);\n OrderedSet.prototype.constructor = OrderedSet;\n OrderedSet.of = function of(/*...values*/\n ) {\n return this(arguments);\n };\n OrderedSet.fromKeys = function fromKeys(value) {\n return this(KeyedCollection(value).keySeq());\n };\n OrderedSet.prototype.toString = function toString() {\n return this.__toString('OrderedSet {', '}');\n };\n return OrderedSet;\n}(Set);\nOrderedSet.isOrderedSet = isOrderedSet;\nvar OrderedSetPrototype = OrderedSet.prototype;\nOrderedSetPrototype[IS_ORDERED_SYMBOL] = true;\nOrderedSetPrototype.zip = IndexedCollectionPrototype.zip;\nOrderedSetPrototype.zipWith = IndexedCollectionPrototype.zipWith;\nOrderedSetPrototype.zipAll = IndexedCollectionPrototype.zipAll;\nOrderedSetPrototype.__empty = emptyOrderedSet;\nOrderedSetPrototype.__make = makeOrderedSet;\nfunction makeOrderedSet(map, ownerID) {\n var set = Object.create(OrderedSetPrototype);\n set.size = map ? map.size : 0;\n set._map = map;\n set.__ownerID = ownerID;\n return set;\n}\nvar EMPTY_ORDERED_SET;\nfunction emptyOrderedSet() {\n return EMPTY_ORDERED_SET || (EMPTY_ORDERED_SET = makeOrderedSet(emptyOrderedMap()));\n}\nvar PairSorting = {\n LeftThenRight: -1,\n RightThenLeft: +1\n};\nfunction throwOnInvalidDefaultValues(defaultValues) {\n if (isRecord(defaultValues)) {\n throw new Error('Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.');\n }\n if (isImmutable(defaultValues)) {\n throw new Error('Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.');\n }\n if (defaultValues === null || typeof defaultValues !== 'object') {\n throw new Error('Can not call `Record` with a non-object as default values. Use a plain javascript object instead.');\n }\n}\nvar Record = function Record(defaultValues, name) {\n var hasInitialized;\n throwOnInvalidDefaultValues(defaultValues);\n var RecordType = function Record(values) {\n var this$1$1 = this;\n if (values instanceof RecordType) {\n return values;\n }\n if (!(this instanceof RecordType)) {\n return new RecordType(values);\n }\n if (!hasInitialized) {\n hasInitialized = true;\n var keys = Object.keys(defaultValues);\n var indices = RecordTypePrototype._indices = {};\n // Deprecated: left to attempt not to break any external code which\n // relies on a ._name property existing on record instances.\n // Use Record.getDescriptiveName() instead\n RecordTypePrototype._name = name;\n RecordTypePrototype._keys = keys;\n RecordTypePrototype._defaultValues = defaultValues;\n for (var i = 0; i < keys.length; i++) {\n var propName = keys[i];\n indices[propName] = i;\n if (RecordTypePrototype[propName]) {\n /* eslint-disable no-console */\n typeof console === 'object' && console.warn && console.warn('Cannot define ' + recordName(this) + ' with property \"' + propName + '\" since that property name is part of the Record API.');\n /* eslint-enable no-console */\n } else {\n setProp(RecordTypePrototype, propName);\n }\n }\n }\n this.__ownerID = undefined;\n this._values = List().withMutations(function (l) {\n l.setSize(this$1$1._keys.length);\n KeyedCollection(values).forEach(function (v, k) {\n l.set(this$1$1._indices[k], v === this$1$1._defaultValues[k] ? undefined : v);\n });\n });\n return this;\n };\n var RecordTypePrototype = RecordType.prototype = Object.create(RecordPrototype);\n RecordTypePrototype.constructor = RecordType;\n if (name) {\n RecordType.displayName = name;\n }\n return RecordType;\n};\nRecord.prototype.toString = function toString() {\n var str = recordName(this) + ' { ';\n var keys = this._keys;\n var k;\n for (var i = 0, l = keys.length; i !== l; i++) {\n k = keys[i];\n str += (i ? ', ' : '') + k + ': ' + quoteString(this.get(k));\n }\n return str + ' }';\n};\nRecord.prototype.equals = function equals(other) {\n return this === other || isRecord(other) && recordSeq(this).equals(recordSeq(other));\n};\nRecord.prototype.hashCode = function hashCode() {\n return recordSeq(this).hashCode();\n};\n\n// @pragma Access\n\nRecord.prototype.has = function has(k) {\n return this._indices.hasOwnProperty(k);\n};\nRecord.prototype.get = function get(k, notSetValue) {\n if (!this.has(k)) {\n return notSetValue;\n }\n var index = this._indices[k];\n var value = this._values.get(index);\n return value === undefined ? this._defaultValues[k] : value;\n};\n\n// @pragma Modification\n\nRecord.prototype.set = function set(k, v) {\n if (this.has(k)) {\n var newValues = this._values.set(this._indices[k], v === this._defaultValues[k] ? undefined : v);\n if (newValues !== this._values && !this.__ownerID) {\n return makeRecord(this, newValues);\n }\n }\n return this;\n};\nRecord.prototype.remove = function remove(k) {\n return this.set(k);\n};\nRecord.prototype.clear = function clear() {\n var newValues = this._values.clear().setSize(this._keys.length);\n return this.__ownerID ? this : makeRecord(this, newValues);\n};\nRecord.prototype.wasAltered = function wasAltered() {\n return this._values.wasAltered();\n};\nRecord.prototype.toSeq = function toSeq() {\n return recordSeq(this);\n};\nRecord.prototype.toJS = function toJS$1() {\n return toJS(this);\n};\nRecord.prototype.entries = function entries() {\n return this.__iterator(ITERATE_ENTRIES);\n};\nRecord.prototype.__iterator = function __iterator(type, reverse) {\n return recordSeq(this).__iterator(type, reverse);\n};\nRecord.prototype.__iterate = function __iterate(fn, reverse) {\n return recordSeq(this).__iterate(fn, reverse);\n};\nRecord.prototype.__ensureOwner = function __ensureOwner(ownerID) {\n if (ownerID === this.__ownerID) {\n return this;\n }\n var newValues = this._values.__ensureOwner(ownerID);\n if (!ownerID) {\n this.__ownerID = ownerID;\n this._values = newValues;\n return this;\n }\n return makeRecord(this, newValues, ownerID);\n};\nRecord.isRecord = isRecord;\nRecord.getDescriptiveName = recordName;\nvar RecordPrototype = Record.prototype;\nRecordPrototype[IS_RECORD_SYMBOL] = true;\nRecordPrototype[DELETE] = RecordPrototype.remove;\nRecordPrototype.deleteIn = RecordPrototype.removeIn = deleteIn;\nRecordPrototype.getIn = getIn;\nRecordPrototype.hasIn = CollectionPrototype.hasIn;\nRecordPrototype.merge = merge$1;\nRecordPrototype.mergeWith = mergeWith$1;\nRecordPrototype.mergeIn = mergeIn;\nRecordPrototype.mergeDeep = mergeDeep;\nRecordPrototype.mergeDeepWith = mergeDeepWith;\nRecordPrototype.mergeDeepIn = mergeDeepIn;\nRecordPrototype.setIn = setIn;\nRecordPrototype.update = update;\nRecordPrototype.updateIn = updateIn;\nRecordPrototype.withMutations = withMutations;\nRecordPrototype.asMutable = asMutable;\nRecordPrototype.asImmutable = asImmutable;\nRecordPrototype[ITERATOR_SYMBOL] = RecordPrototype.entries;\nRecordPrototype.toJSON = RecordPrototype.toObject = CollectionPrototype.toObject;\nRecordPrototype.inspect = RecordPrototype.toSource = function () {\n return this.toString();\n};\nfunction makeRecord(likeRecord, values, ownerID) {\n var record = Object.create(Object.getPrototypeOf(likeRecord));\n record._values = values;\n record.__ownerID = ownerID;\n return record;\n}\nfunction recordName(record) {\n return record.constructor.displayName || record.constructor.name || 'Record';\n}\nfunction recordSeq(record) {\n return keyedSeqFromValue(record._keys.map(function (k) {\n return [k, record.get(k)];\n }));\n}\nfunction setProp(prototype, name) {\n try {\n Object.defineProperty(prototype, name, {\n get: function () {\n return this.get(name);\n },\n set: function (value) {\n invariant(this.__ownerID, 'Cannot set on an immutable record.');\n this.set(name, value);\n }\n });\n } catch (error) {\n // Object.defineProperty failed. Probably IE8.\n }\n}\n\n/**\n * Returns a lazy Seq of `value` repeated `times` times. When `times` is\n * undefined, returns an infinite sequence of `value`.\n */\nvar Repeat = /*@__PURE__*/function (IndexedSeq) {\n function Repeat(value, times) {\n if (!(this instanceof Repeat)) {\n return new Repeat(value, times);\n }\n this._value = value;\n this.size = times === undefined ? Infinity : Math.max(0, times);\n if (this.size === 0) {\n if (EMPTY_REPEAT) {\n return EMPTY_REPEAT;\n }\n EMPTY_REPEAT = this;\n }\n }\n if (IndexedSeq) Repeat.__proto__ = IndexedSeq;\n Repeat.prototype = Object.create(IndexedSeq && IndexedSeq.prototype);\n Repeat.prototype.constructor = Repeat;\n Repeat.prototype.toString = function toString() {\n if (this.size === 0) {\n return 'Repeat []';\n }\n return 'Repeat [ ' + this._value + ' ' + this.size + ' times ]';\n };\n Repeat.prototype.get = function get(index, notSetValue) {\n return this.has(index) ? this._value : notSetValue;\n };\n Repeat.prototype.includes = function includes(searchValue) {\n return is(this._value, searchValue);\n };\n Repeat.prototype.slice = function slice(begin, end) {\n var size = this.size;\n return wholeSlice(begin, end, size) ? this : new Repeat(this._value, resolveEnd(end, size) - resolveBegin(begin, size));\n };\n Repeat.prototype.reverse = function reverse() {\n return this;\n };\n Repeat.prototype.indexOf = function indexOf(searchValue) {\n if (is(this._value, searchValue)) {\n return 0;\n }\n return -1;\n };\n Repeat.prototype.lastIndexOf = function lastIndexOf(searchValue) {\n if (is(this._value, searchValue)) {\n return this.size;\n }\n return -1;\n };\n Repeat.prototype.__iterate = function __iterate(fn, reverse) {\n var size = this.size;\n var i = 0;\n while (i !== size) {\n if (fn(this._value, reverse ? size - ++i : i++, this) === false) {\n break;\n }\n }\n return i;\n };\n Repeat.prototype.__iterator = function __iterator(type, reverse) {\n var this$1$1 = this;\n var size = this.size;\n var i = 0;\n return new Iterator(function () {\n return i === size ? iteratorDone() : iteratorValue(type, reverse ? size - ++i : i++, this$1$1._value);\n });\n };\n Repeat.prototype.equals = function equals(other) {\n return other instanceof Repeat ? is(this._value, other._value) : deepEqual(other);\n };\n return Repeat;\n}(IndexedSeq);\nvar EMPTY_REPEAT;\nfunction fromJS(value, converter) {\n return fromJSWith([], converter || defaultConverter, value, '', converter && converter.length > 2 ? [] : undefined, {\n '': value\n });\n}\nfunction fromJSWith(stack, converter, value, key, keyPath, parentValue) {\n if (typeof value !== 'string' && !isImmutable(value) && (isArrayLike(value) || hasIterator(value) || isPlainObject(value))) {\n if (~stack.indexOf(value)) {\n throw new TypeError('Cannot convert circular structure to Immutable');\n }\n stack.push(value);\n keyPath && key !== '' && keyPath.push(key);\n var converted = converter.call(parentValue, key, Seq(value).map(function (v, k) {\n return fromJSWith(stack, converter, v, k, keyPath, value);\n }), keyPath && keyPath.slice());\n stack.pop();\n keyPath && keyPath.pop();\n return converted;\n }\n return value;\n}\nfunction defaultConverter(k, v) {\n // Effectively the opposite of \"Collection.toSeq()\"\n return isIndexed(v) ? v.toList() : isKeyed(v) ? v.toMap() : v.toSet();\n}\nvar version = \"4.3.0\";\nvar Immutable = {\n version: version,\n Collection: Collection,\n // Note: Iterable is deprecated\n Iterable: Collection,\n Seq: Seq,\n Map: Map,\n OrderedMap: OrderedMap,\n List: List,\n Stack: Stack,\n Set: Set,\n OrderedSet: OrderedSet,\n PairSorting: PairSorting,\n Record: Record,\n Range: Range,\n Repeat: Repeat,\n is: is,\n fromJS: fromJS,\n hash: hash,\n isImmutable: isImmutable,\n isCollection: isCollection,\n isKeyed: isKeyed,\n isIndexed: isIndexed,\n isAssociative: isAssociative,\n isOrdered: isOrdered,\n isValueObject: isValueObject,\n isPlainObject: isPlainObject,\n isSeq: isSeq,\n isList: isList,\n isMap: isMap,\n isOrderedMap: isOrderedMap,\n isStack: isStack,\n isSet: isSet,\n isOrderedSet: isOrderedSet,\n isRecord: isRecord,\n get: get,\n getIn: getIn$1,\n has: has,\n hasIn: hasIn$1,\n merge: merge,\n mergeDeep: mergeDeep$1,\n mergeWith: mergeWith,\n mergeDeepWith: mergeDeepWith$1,\n remove: remove,\n removeIn: removeIn,\n set: set,\n setIn: setIn$1,\n update: update$1,\n updateIn: updateIn$1\n};\n\n// Note: Iterable is deprecated\nvar Iterable = Collection;\nexport default Immutable;\nexport { Collection, Iterable, List, Map, OrderedMap, OrderedSet, PairSorting, Range, Record, Repeat, Seq, Set, Stack, fromJS, get, getIn$1 as getIn, has, hasIn$1 as hasIn, hash, is, isAssociative, isCollection, isImmutable, isIndexed, isKeyed, isList, isMap, isOrdered, isOrderedMap, isOrderedSet, isPlainObject, isRecord, isSeq, isSet, isStack, isValueObject, merge, mergeDeep$1 as mergeDeep, mergeDeepWith$1 as mergeDeepWith, mergeWith, remove, removeIn, set, setIn$1 as setIn, update$1 as update, updateIn$1 as updateIn, version };","import { combineLatest, Observable, of } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\n\r\nexport function combineMap(\r\n items: TIn[],\r\n predicate: (item: TIn) => Observable,\r\n): Observable {\r\n return items.length === 0\r\n ? of([])\r\n : combineLatest(items.map((item) => predicate(item))).pipe(\r\n map((results) =>\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n results.filter((result) => result != null).map((result) => result!),\r\n ),\r\n );\r\n}\r\n","import { Observable } from 'rxjs';\r\nimport { firstValueFrom } from 'rxjs/internal/firstValueFrom';\r\n\r\nexport function firstValueOrDefault(source: Observable, defaultValue: D): Promise {\r\n return firstValueFrom(source, { defaultValue });\r\n}\r\n\r\nexport function firstValueOrUndefined(source: Observable): Promise {\r\n return firstValueFrom(source, { defaultValue: undefined });\r\n}\r\n\r\nexport function firstValueOrNull(source: Observable): Promise {\r\n return firstValueFrom(source, { defaultValue: null });\r\n}\r\n","import { interval } from 'rxjs';\r\nimport { map, take } from 'rxjs/operators';\r\n\r\nexport function countdownInSeconds(seconds: number) {\r\n return interval(1000).pipe(\r\n take(seconds),\r\n map((v) => seconds - 1 - v),\r\n );\r\n}\r\n","import { __extends } from \"tslib\";\nvar genericMessage = \"Invariant Violation\";\nvar _a = Object.setPrototypeOf,\n setPrototypeOf = _a === void 0 ? function (obj, proto) {\n obj.__proto__ = proto;\n return obj;\n } : _a;\nvar InvariantError = /** @class */function (_super) {\n __extends(InvariantError, _super);\n function InvariantError(message) {\n if (message === void 0) {\n message = genericMessage;\n }\n var _this = _super.call(this, typeof message === \"number\" ? genericMessage + \": \" + message + \" (see https://github.com/apollographql/invariant-packages)\" : message) || this;\n _this.framesToPop = 1;\n _this.name = genericMessage;\n setPrototypeOf(_this, InvariantError.prototype);\n return _this;\n }\n return InvariantError;\n}(Error);\nexport { InvariantError };\nexport function invariant(condition, message) {\n if (!condition) {\n throw new InvariantError(message);\n }\n}\nvar verbosityLevels = [\"debug\", \"log\", \"warn\", \"error\", \"silent\"];\nvar verbosityLevel = verbosityLevels.indexOf(\"log\");\nfunction wrapConsoleMethod(name) {\n return function () {\n if (verbosityLevels.indexOf(name) >= verbosityLevel) {\n // Default to console.log if this host environment happens not to provide\n // all the console.* methods we need.\n var method = console[name] || console.log;\n return method.apply(console, arguments);\n }\n };\n}\n(function (invariant) {\n invariant.debug = wrapConsoleMethod(\"debug\");\n invariant.log = wrapConsoleMethod(\"log\");\n invariant.warn = wrapConsoleMethod(\"warn\");\n invariant.error = wrapConsoleMethod(\"error\");\n})(invariant || (invariant = {}));\nexport function setVerbosity(level) {\n var old = verbosityLevels[verbosityLevel];\n verbosityLevel = Math.max(0, verbosityLevels.indexOf(level));\n return old;\n}\nexport default invariant;\n","export function maybe(thunk) {\n try {\n return thunk();\n } catch (_a) {}\n}\n","import { maybe } from \"./maybe.js\";\nexport default maybe(function () {\n return globalThis;\n}) || maybe(function () {\n return window;\n}) || maybe(function () {\n return self;\n}) || maybe(function () {\n return global;\n}) || maybe(function () {\n return maybe.constructor(\"return this\")();\n});\n","import global from \"./global.js\";\nimport { maybe } from \"./maybe.js\";\nvar __ = \"__\";\nvar GLOBAL_KEY = [__, __].join(\"DEV\");\nfunction getDEV() {\n try {\n return Boolean(__DEV__);\n } catch (_a) {\n Object.defineProperty(global, GLOBAL_KEY, {\n value: maybe(function () {\n return process.env.NODE_ENV;\n }) !== \"production\",\n enumerable: false,\n configurable: true,\n writable: true\n });\n return global[GLOBAL_KEY];\n }\n}\nexport default getDEV();\n","function maybe(thunk) {\n try {\n return thunk();\n } catch (_) {}\n}\nvar safeGlobal = maybe(function () {\n return globalThis;\n}) || maybe(function () {\n return window;\n}) || maybe(function () {\n return self;\n}) || maybe(function () {\n return global;\n}) ||\n// We don't expect the Function constructor ever to be invoked at runtime, as\n// long as at least one of globalThis, window, self, or global is defined, so\n// we are under no obligation to make it easy for static analysis tools to\n// detect syntactic usage of the Function constructor. If you think you can\n// improve your static analysis to detect this obfuscation, think again. This\n// is an arms race you cannot win, at least not in JavaScript.\nmaybe(function () {\n return maybe.constructor(\"return this\")();\n});\nvar needToRemove = false;\nexport function install() {\n if (safeGlobal && !maybe(function () {\n return process.env.NODE_ENV;\n }) && !maybe(function () {\n return process;\n })) {\n Object.defineProperty(safeGlobal, \"process\", {\n value: {\n env: {\n // This default needs to be \"production\" instead of \"development\", to\n // avoid the problem https://github.com/graphql/graphql-js/pull/2894\n // will eventually solve, once merged and released.\n NODE_ENV: \"production\"\n }\n },\n // Let anyone else change global.process as they see fit, but hide it from\n // Object.keys(global) enumeration.\n configurable: true,\n enumerable: false,\n writable: true\n });\n needToRemove = true;\n }\n}\n\n// Call install() at least once, when this module is imported.\ninstall();\nexport function remove() {\n if (needToRemove) {\n delete safeGlobal.process;\n needToRemove = false;\n }\n}","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\n\n/**\n * Return true if `value` is object-like. A value is object-like if it's not\n * `null` and has a `typeof` result of \"object\".\n */\nexport default function isObjectLike(value) {\n return _typeof(value) == 'object' && value !== null;\n}","// In ES2015 (or a polyfilled) environment, this will be Symbol.iterator\n// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\nexport var SYMBOL_ITERATOR = typeof Symbol === 'function' && Symbol.iterator != null ? Symbol.iterator : '@@iterator'; // In ES2017 (or a polyfilled) environment, this will be Symbol.asyncIterator\n// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\nexport var SYMBOL_ASYNC_ITERATOR = typeof Symbol === 'function' && Symbol.asyncIterator != null ? Symbol.asyncIterator : '@@asyncIterator'; // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\nexport var SYMBOL_TO_STRING_TAG = typeof Symbol === 'function' && Symbol.toStringTag != null ? Symbol.toStringTag : '@@toStringTag';","/**\n * Represents a location in a Source.\n */\n\n/**\n * Takes a Source and a UTF-8 character offset, and returns the corresponding\n * line and column as a SourceLocation.\n */\nexport function getLocation(source, position) {\n var lineRegexp = /\\r\\n|[\\n\\r]/g;\n var line = 1;\n var column = position + 1;\n var match;\n while ((match = lineRegexp.exec(source.body)) && match.index < position) {\n line += 1;\n column = position + 1 - (match.index + match[0].length);\n }\n return {\n line: line,\n column: column\n };\n}","import { getLocation } from \"./location.mjs\";\n/**\n * Render a helpful description of the location in the GraphQL Source document.\n */\n\nexport function printLocation(location) {\n return printSourceLocation(location.source, getLocation(location.source, location.start));\n}\n/**\n * Render a helpful description of the location in the GraphQL Source document.\n */\n\nexport function printSourceLocation(source, sourceLocation) {\n var firstLineColumnOffset = source.locationOffset.column - 1;\n var body = whitespace(firstLineColumnOffset) + source.body;\n var lineIndex = sourceLocation.line - 1;\n var lineOffset = source.locationOffset.line - 1;\n var lineNum = sourceLocation.line + lineOffset;\n var columnOffset = sourceLocation.line === 1 ? firstLineColumnOffset : 0;\n var columnNum = sourceLocation.column + columnOffset;\n var locationStr = \"\".concat(source.name, \":\").concat(lineNum, \":\").concat(columnNum, \"\\n\");\n var lines = body.split(/\\r\\n|[\\n\\r]/g);\n var locationLine = lines[lineIndex]; // Special case for minified documents\n\n if (locationLine.length > 120) {\n var subLineIndex = Math.floor(columnNum / 80);\n var subLineColumnNum = columnNum % 80;\n var subLines = [];\n for (var i = 0; i < locationLine.length; i += 80) {\n subLines.push(locationLine.slice(i, i + 80));\n }\n return locationStr + printPrefixedLines([[\"\".concat(lineNum), subLines[0]]].concat(subLines.slice(1, subLineIndex + 1).map(function (subLine) {\n return ['', subLine];\n }), [[' ', whitespace(subLineColumnNum - 1) + '^'], ['', subLines[subLineIndex + 1]]]));\n }\n return locationStr + printPrefixedLines([\n // Lines specified like this: [\"prefix\", \"string\"],\n [\"\".concat(lineNum - 1), lines[lineIndex - 1]], [\"\".concat(lineNum), locationLine], ['', whitespace(columnNum - 1) + '^'], [\"\".concat(lineNum + 1), lines[lineIndex + 1]]]);\n}\nfunction printPrefixedLines(lines) {\n var existingLines = lines.filter(function (_ref) {\n var _ = _ref[0],\n line = _ref[1];\n return line !== undefined;\n });\n var padLen = Math.max.apply(Math, existingLines.map(function (_ref2) {\n var prefix = _ref2[0];\n return prefix.length;\n }));\n return existingLines.map(function (_ref3) {\n var prefix = _ref3[0],\n line = _ref3[1];\n return leftPad(padLen, prefix) + (line ? ' | ' + line : ' |');\n }).join('\\n');\n}\nfunction whitespace(len) {\n return Array(len + 1).join(' ');\n}\nfunction leftPad(len, str) {\n return whitespace(len - str.length) + str;\n}","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return _possibleConstructorReturn(this, result);\n };\n}\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assertThisInitialized(self);\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !_isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return _construct(Class, arguments, _getPrototypeOf(this).constructor);\n }\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return _setPrototypeOf(Wrapper, Class);\n };\n return _wrapNativeSuper(Class);\n}\nfunction _construct(Parent, args, Class) {\n if (_isNativeReflectConstruct()) {\n _construct = Reflect.construct;\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) _setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n return _construct.apply(null, arguments);\n}\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nimport isObjectLike from \"../jsutils/isObjectLike.mjs\";\nimport { SYMBOL_TO_STRING_TAG } from \"../polyfills/symbols.mjs\";\nimport { getLocation } from \"../language/location.mjs\";\nimport { printLocation, printSourceLocation } from \"../language/printLocation.mjs\";\n/**\n * A GraphQLError describes an Error found during the parse, validate, or\n * execute phases of performing a GraphQL operation. In addition to a message\n * and stack trace, it also includes information about the locations in a\n * GraphQL document and/or execution result that correspond to the Error.\n */\n\nexport var GraphQLError = /*#__PURE__*/function (_Error) {\n _inherits(GraphQLError, _Error);\n var _super = _createSuper(GraphQLError);\n\n /**\n * An array of { line, column } locations within the source GraphQL document\n * which correspond to this error.\n *\n * Errors during validation often contain multiple locations, for example to\n * point out two things with the same name. Errors during execution include a\n * single location, the field which produced the error.\n *\n * Enumerable, and appears in the result of JSON.stringify().\n */\n\n /**\n * An array describing the JSON-path into the execution response which\n * corresponds to this error. Only included for errors during execution.\n *\n * Enumerable, and appears in the result of JSON.stringify().\n */\n\n /**\n * An array of GraphQL AST Nodes corresponding to this error.\n */\n\n /**\n * The source GraphQL document for the first location of this error.\n *\n * Note that if this Error represents more than one node, the source may not\n * represent nodes after the first node.\n */\n\n /**\n * An array of character offsets within the source GraphQL document\n * which correspond to this error.\n */\n\n /**\n * The original error thrown from a field resolver during execution.\n */\n\n /**\n * Extension fields to add to the formatted error.\n */\n function GraphQLError(message, nodes, source, positions, path, originalError, extensions) {\n var _nodeLocations, _nodeLocations2, _nodeLocations3;\n var _this;\n _classCallCheck(this, GraphQLError);\n _this = _super.call(this, message);\n _this.name = 'GraphQLError';\n _this.originalError = originalError !== null && originalError !== void 0 ? originalError : undefined; // Compute list of blame nodes.\n\n _this.nodes = undefinedIfEmpty(Array.isArray(nodes) ? nodes : nodes ? [nodes] : undefined);\n var nodeLocations = [];\n for (var _i2 = 0, _ref3 = (_this$nodes = _this.nodes) !== null && _this$nodes !== void 0 ? _this$nodes : []; _i2 < _ref3.length; _i2++) {\n var _this$nodes;\n var _ref4 = _ref3[_i2];\n var loc = _ref4.loc;\n if (loc != null) {\n nodeLocations.push(loc);\n }\n }\n nodeLocations = undefinedIfEmpty(nodeLocations); // Compute locations in the source for the given nodes/positions.\n\n _this.source = source !== null && source !== void 0 ? source : (_nodeLocations = nodeLocations) === null || _nodeLocations === void 0 ? void 0 : _nodeLocations[0].source;\n _this.positions = positions !== null && positions !== void 0 ? positions : (_nodeLocations2 = nodeLocations) === null || _nodeLocations2 === void 0 ? void 0 : _nodeLocations2.map(function (loc) {\n return loc.start;\n });\n _this.locations = positions && source ? positions.map(function (pos) {\n return getLocation(source, pos);\n }) : (_nodeLocations3 = nodeLocations) === null || _nodeLocations3 === void 0 ? void 0 : _nodeLocations3.map(function (loc) {\n return getLocation(loc.source, loc.start);\n });\n _this.path = path !== null && path !== void 0 ? path : undefined;\n var originalExtensions = originalError === null || originalError === void 0 ? void 0 : originalError.extensions;\n if (extensions == null && isObjectLike(originalExtensions)) {\n _this.extensions = _objectSpread({}, originalExtensions);\n } else {\n _this.extensions = extensions !== null && extensions !== void 0 ? extensions : {};\n } // By being enumerable, JSON.stringify will include bellow properties in the resulting output.\n // This ensures that the simplest possible GraphQL service adheres to the spec.\n\n Object.defineProperties(_assertThisInitialized(_this), {\n message: {\n enumerable: true\n },\n locations: {\n enumerable: _this.locations != null\n },\n path: {\n enumerable: _this.path != null\n },\n extensions: {\n enumerable: _this.extensions != null && Object.keys(_this.extensions).length > 0\n },\n name: {\n enumerable: false\n },\n nodes: {\n enumerable: false\n },\n source: {\n enumerable: false\n },\n positions: {\n enumerable: false\n },\n originalError: {\n enumerable: false\n }\n }); // Include (non-enumerable) stack trace.\n\n if (originalError !== null && originalError !== void 0 && originalError.stack) {\n Object.defineProperty(_assertThisInitialized(_this), 'stack', {\n value: originalError.stack,\n writable: true,\n configurable: true\n });\n return _possibleConstructorReturn(_this);\n } // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(_assertThisInitialized(_this), GraphQLError);\n } else {\n Object.defineProperty(_assertThisInitialized(_this), 'stack', {\n value: Error().stack,\n writable: true,\n configurable: true\n });\n }\n return _this;\n }\n _createClass(GraphQLError, [{\n key: \"toString\",\n value: function toString() {\n return printError(this);\n } // FIXME: workaround to not break chai comparisons, should be remove in v16\n // $FlowFixMe[unsupported-syntax] Flow doesn't support computed properties yet\n }, {\n key: SYMBOL_TO_STRING_TAG,\n get: function get() {\n return 'Object';\n }\n }]);\n return GraphQLError;\n}(/*#__PURE__*/_wrapNativeSuper(Error));\nfunction undefinedIfEmpty(array) {\n return array === undefined || array.length === 0 ? undefined : array;\n}\n/**\n * Prints a GraphQLError to a string, representing useful location information\n * about the error's position in the source.\n */\n\nexport function printError(error) {\n var output = error.message;\n if (error.nodes) {\n for (var _i4 = 0, _error$nodes2 = error.nodes; _i4 < _error$nodes2.length; _i4++) {\n var node = _error$nodes2[_i4];\n if (node.loc) {\n output += '\\n\\n' + printLocation(node.loc);\n }\n }\n } else if (error.source && error.locations) {\n for (var _i6 = 0, _error$locations2 = error.locations; _i6 < _error$locations2.length; _i6++) {\n var location = _error$locations2[_i6];\n output += '\\n\\n' + printSourceLocation(error.source, location);\n }\n }\n return output;\n}","import { GraphQLError } from \"./GraphQLError.mjs\";\n/**\n * Produces a GraphQLError representing a syntax error, containing useful\n * descriptive information about the syntax error's position in the source.\n */\n\nexport function syntaxError(source, position, description) {\n return new GraphQLError(\"Syntax Error: \".concat(description), undefined, source, [position]);\n}","/**\n * The set of allowed kind values for AST nodes.\n */\nexport var Kind = Object.freeze({\n // Name\n NAME: 'Name',\n // Document\n DOCUMENT: 'Document',\n OPERATION_DEFINITION: 'OperationDefinition',\n VARIABLE_DEFINITION: 'VariableDefinition',\n SELECTION_SET: 'SelectionSet',\n FIELD: 'Field',\n ARGUMENT: 'Argument',\n // Fragments\n FRAGMENT_SPREAD: 'FragmentSpread',\n INLINE_FRAGMENT: 'InlineFragment',\n FRAGMENT_DEFINITION: 'FragmentDefinition',\n // Values\n VARIABLE: 'Variable',\n INT: 'IntValue',\n FLOAT: 'FloatValue',\n STRING: 'StringValue',\n BOOLEAN: 'BooleanValue',\n NULL: 'NullValue',\n ENUM: 'EnumValue',\n LIST: 'ListValue',\n OBJECT: 'ObjectValue',\n OBJECT_FIELD: 'ObjectField',\n // Directives\n DIRECTIVE: 'Directive',\n // Types\n NAMED_TYPE: 'NamedType',\n LIST_TYPE: 'ListType',\n NON_NULL_TYPE: 'NonNullType',\n // Type System Definitions\n SCHEMA_DEFINITION: 'SchemaDefinition',\n OPERATION_TYPE_DEFINITION: 'OperationTypeDefinition',\n // Type Definitions\n SCALAR_TYPE_DEFINITION: 'ScalarTypeDefinition',\n OBJECT_TYPE_DEFINITION: 'ObjectTypeDefinition',\n FIELD_DEFINITION: 'FieldDefinition',\n INPUT_VALUE_DEFINITION: 'InputValueDefinition',\n INTERFACE_TYPE_DEFINITION: 'InterfaceTypeDefinition',\n UNION_TYPE_DEFINITION: 'UnionTypeDefinition',\n ENUM_TYPE_DEFINITION: 'EnumTypeDefinition',\n ENUM_VALUE_DEFINITION: 'EnumValueDefinition',\n INPUT_OBJECT_TYPE_DEFINITION: 'InputObjectTypeDefinition',\n // Directive Definitions\n DIRECTIVE_DEFINITION: 'DirectiveDefinition',\n // Type System Extensions\n SCHEMA_EXTENSION: 'SchemaExtension',\n // Type Extensions\n SCALAR_TYPE_EXTENSION: 'ScalarTypeExtension',\n OBJECT_TYPE_EXTENSION: 'ObjectTypeExtension',\n INTERFACE_TYPE_EXTENSION: 'InterfaceTypeExtension',\n UNION_TYPE_EXTENSION: 'UnionTypeExtension',\n ENUM_TYPE_EXTENSION: 'EnumTypeExtension',\n INPUT_OBJECT_TYPE_EXTENSION: 'InputObjectTypeExtension'\n});\n/**\n * The enum type representing the possible kind values of AST nodes.\n */","export default function invariant(condition, message) {\n var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')\n\n if (!booleanCondition) {\n throw new Error(message != null ? message : 'Unexpected invariant triggered.');\n }\n}","// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\nvar nodejsCustomInspectSymbol = typeof Symbol === 'function' && typeof Symbol.for === 'function' ? Symbol.for('nodejs.util.inspect.custom') : undefined;\nexport default nodejsCustomInspectSymbol;","import invariant from \"./invariant.mjs\";\nimport nodejsCustomInspectSymbol from \"./nodejsCustomInspectSymbol.mjs\";\n/**\n * The `defineInspect()` function defines `inspect()` prototype method as alias of `toJSON`\n */\n\nexport default function defineInspect(classObject) {\n var fn = classObject.prototype.toJSON;\n typeof fn === 'function' || invariant(0);\n classObject.prototype.inspect = fn; // istanbul ignore else (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\n if (nodejsCustomInspectSymbol) {\n classObject.prototype[nodejsCustomInspectSymbol] = fn;\n }\n}","import defineInspect from \"../jsutils/defineInspect.mjs\";\n\n/**\n * Contains a range of UTF-8 character offsets and token references that\n * identify the region of the source from which the AST derived.\n */\nexport var Location = /*#__PURE__*/function () {\n /**\n * The character offset at which this Node begins.\n */\n\n /**\n * The character offset at which this Node ends.\n */\n\n /**\n * The Token at which this Node begins.\n */\n\n /**\n * The Token at which this Node ends.\n */\n\n /**\n * The Source document the AST represents.\n */\n function Location(startToken, endToken, source) {\n this.start = startToken.start;\n this.end = endToken.end;\n this.startToken = startToken;\n this.endToken = endToken;\n this.source = source;\n }\n var _proto = Location.prototype;\n _proto.toJSON = function toJSON() {\n return {\n start: this.start,\n end: this.end\n };\n };\n return Location;\n}(); // Print a simplified form when appearing in `inspect` and `util.inspect`.\n\ndefineInspect(Location);\n/**\n * Represents a range of characters represented by a lexical token\n * within a Source.\n */\n\nexport var Token = /*#__PURE__*/function () {\n /**\n * The kind of Token.\n */\n\n /**\n * The character offset at which this Node begins.\n */\n\n /**\n * The character offset at which this Node ends.\n */\n\n /**\n * The 1-indexed line number on which this Token appears.\n */\n\n /**\n * The 1-indexed column number at which this Token begins.\n */\n\n /**\n * For non-punctuation tokens, represents the interpreted value of the token.\n */\n\n /**\n * Tokens exist as nodes in a double-linked-list amongst all tokens\n * including ignored tokens. is always the first node and \n * the last.\n */\n function Token(kind, start, end, line, column, prev, value) {\n this.kind = kind;\n this.start = start;\n this.end = end;\n this.line = line;\n this.column = column;\n this.value = value;\n this.prev = prev;\n this.next = null;\n }\n var _proto2 = Token.prototype;\n _proto2.toJSON = function toJSON() {\n return {\n kind: this.kind,\n value: this.value,\n line: this.line,\n column: this.column\n };\n };\n return Token;\n}(); // Print a simplified form when appearing in `inspect` and `util.inspect`.\n\ndefineInspect(Token);\n/**\n * @internal\n */\n\nexport function isNode(maybeNode) {\n return maybeNode != null && typeof maybeNode.kind === 'string';\n}\n/**\n * The list of all possible AST node types.\n */","/**\n * An exported enum describing the different kinds of tokens that the\n * lexer emits.\n */\nexport var TokenKind = Object.freeze({\n SOF: '',\n EOF: '',\n BANG: '!',\n DOLLAR: '$',\n AMP: '&',\n PAREN_L: '(',\n PAREN_R: ')',\n SPREAD: '...',\n COLON: ':',\n EQUALS: '=',\n AT: '@',\n BRACKET_L: '[',\n BRACKET_R: ']',\n BRACE_L: '{',\n PIPE: '|',\n BRACE_R: '}',\n NAME: 'Name',\n INT: 'Int',\n FLOAT: 'Float',\n STRING: 'String',\n BLOCK_STRING: 'BlockString',\n COMMENT: 'Comment'\n});\n/**\n * The enum type representing the token kinds values.\n */","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\n\n/* eslint-disable flowtype/no-weak-types */\nimport nodejsCustomInspectSymbol from \"./nodejsCustomInspectSymbol.mjs\";\nvar MAX_ARRAY_LENGTH = 10;\nvar MAX_RECURSIVE_DEPTH = 2;\n/**\n * Used to print values in error messages.\n */\n\nexport default function inspect(value) {\n return formatValue(value, []);\n}\nfunction formatValue(value, seenValues) {\n switch (_typeof(value)) {\n case 'string':\n return JSON.stringify(value);\n case 'function':\n return value.name ? \"[function \".concat(value.name, \"]\") : '[function]';\n case 'object':\n if (value === null) {\n return 'null';\n }\n return formatObjectValue(value, seenValues);\n default:\n return String(value);\n }\n}\nfunction formatObjectValue(value, previouslySeenValues) {\n if (previouslySeenValues.indexOf(value) !== -1) {\n return '[Circular]';\n }\n var seenValues = [].concat(previouslySeenValues, [value]);\n var customInspectFn = getCustomFn(value);\n if (customInspectFn !== undefined) {\n var customValue = customInspectFn.call(value); // check for infinite recursion\n\n if (customValue !== value) {\n return typeof customValue === 'string' ? customValue : formatValue(customValue, seenValues);\n }\n } else if (Array.isArray(value)) {\n return formatArray(value, seenValues);\n }\n return formatObject(value, seenValues);\n}\nfunction formatObject(object, seenValues) {\n var keys = Object.keys(object);\n if (keys.length === 0) {\n return '{}';\n }\n if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n return '[' + getObjectTag(object) + ']';\n }\n var properties = keys.map(function (key) {\n var value = formatValue(object[key], seenValues);\n return key + ': ' + value;\n });\n return '{ ' + properties.join(', ') + ' }';\n}\nfunction formatArray(array, seenValues) {\n if (array.length === 0) {\n return '[]';\n }\n if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n return '[Array]';\n }\n var len = Math.min(MAX_ARRAY_LENGTH, array.length);\n var remaining = array.length - len;\n var items = [];\n for (var i = 0; i < len; ++i) {\n items.push(formatValue(array[i], seenValues));\n }\n if (remaining === 1) {\n items.push('... 1 more item');\n } else if (remaining > 1) {\n items.push(\"... \".concat(remaining, \" more items\"));\n }\n return '[' + items.join(', ') + ']';\n}\nfunction getCustomFn(object) {\n var customInspectFn = object[String(nodejsCustomInspectSymbol)];\n if (typeof customInspectFn === 'function') {\n return customInspectFn;\n }\n if (typeof object.inspect === 'function') {\n return object.inspect;\n }\n}\nfunction getObjectTag(object) {\n var tag = Object.prototype.toString.call(object).replace(/^\\[object /, '').replace(/]$/, '');\n if (tag === 'Object' && typeof object.constructor === 'function') {\n var name = object.constructor.name;\n if (typeof name === 'string' && name !== '') {\n return name;\n }\n }\n return tag;\n}","export default function devAssert(condition, message) {\n var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')\n\n if (!booleanCondition) {\n throw new Error(message);\n }\n}","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\nimport inspect from \"./inspect.mjs\";\n/**\n * A replacement for instanceof which includes an error warning when multi-realm\n * constructors are detected.\n */\n\n// See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production\n// See: https://webpack.js.org/guides/production/\nexport default process.env.NODE_ENV === 'production' ?\n// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n// eslint-disable-next-line no-shadow\nfunction instanceOf(value, constructor) {\n return value instanceof constructor;\n} :\n// eslint-disable-next-line no-shadow\nfunction instanceOf(value, constructor) {\n if (value instanceof constructor) {\n return true;\n }\n if (_typeof(value) === 'object' && value !== null) {\n var _value$constructor;\n var className = constructor.prototype[Symbol.toStringTag];\n var valueClassName =\n // We still need to support constructor's name to detect conflicts with older versions of this library.\n Symbol.toStringTag in value ? value[Symbol.toStringTag] : (_value$constructor = value.constructor) === null || _value$constructor === void 0 ? void 0 : _value$constructor.name;\n if (className === valueClassName) {\n var stringifiedValue = inspect(value);\n throw new Error(\"Cannot use \".concat(className, \" \\\"\").concat(stringifiedValue, \"\\\" from another module or realm.\\n\\nEnsure that there is only one instance of \\\"graphql\\\" in the node_modules\\ndirectory. If different versions of \\\"graphql\\\" are the dependencies of other\\nrelied on modules, use \\\"resolutions\\\" to ensure only one version is installed.\\n\\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\\n\\nDuplicate \\\"graphql\\\" modules cannot be used at the same time since different\\nversions may have different capabilities and behavior. The data from one\\nversion used in the function from another could produce confusing and\\nspurious results.\"));\n }\n }\n return false;\n};","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nimport { SYMBOL_TO_STRING_TAG } from \"../polyfills/symbols.mjs\";\nimport inspect from \"../jsutils/inspect.mjs\";\nimport devAssert from \"../jsutils/devAssert.mjs\";\nimport instanceOf from \"../jsutils/instanceOf.mjs\";\n\n/**\n * A representation of source input to GraphQL. The `name` and `locationOffset` parameters are\n * optional, but they are useful for clients who store GraphQL documents in source files.\n * For example, if the GraphQL input starts at line 40 in a file named `Foo.graphql`, it might\n * be useful for `name` to be `\"Foo.graphql\"` and location to be `{ line: 40, column: 1 }`.\n * The `line` and `column` properties in `locationOffset` are 1-indexed.\n */\nexport var Source = /*#__PURE__*/function () {\n function Source(body) {\n var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'GraphQL request';\n var locationOffset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n line: 1,\n column: 1\n };\n typeof body === 'string' || devAssert(0, \"Body must be a string. Received: \".concat(inspect(body), \".\"));\n this.body = body;\n this.name = name;\n this.locationOffset = locationOffset;\n this.locationOffset.line > 0 || devAssert(0, 'line in locationOffset is 1-indexed and must be positive.');\n this.locationOffset.column > 0 || devAssert(0, 'column in locationOffset is 1-indexed and must be positive.');\n } // $FlowFixMe[unsupported-syntax] Flow doesn't support computed properties yet\n\n _createClass(Source, [{\n key: SYMBOL_TO_STRING_TAG,\n get: function get() {\n return 'Source';\n }\n }]);\n return Source;\n}();\n/**\n * Test if the given value is a Source object.\n *\n * @internal\n */\n\n// eslint-disable-next-line no-redeclare\nexport function isSource(source) {\n return instanceOf(source, Source);\n}","/**\n * The set of allowed directive location values.\n */\nexport var DirectiveLocation = Object.freeze({\n // Request Definitions\n QUERY: 'QUERY',\n MUTATION: 'MUTATION',\n SUBSCRIPTION: 'SUBSCRIPTION',\n FIELD: 'FIELD',\n FRAGMENT_DEFINITION: 'FRAGMENT_DEFINITION',\n FRAGMENT_SPREAD: 'FRAGMENT_SPREAD',\n INLINE_FRAGMENT: 'INLINE_FRAGMENT',\n VARIABLE_DEFINITION: 'VARIABLE_DEFINITION',\n // Type System Definitions\n SCHEMA: 'SCHEMA',\n SCALAR: 'SCALAR',\n OBJECT: 'OBJECT',\n FIELD_DEFINITION: 'FIELD_DEFINITION',\n ARGUMENT_DEFINITION: 'ARGUMENT_DEFINITION',\n INTERFACE: 'INTERFACE',\n UNION: 'UNION',\n ENUM: 'ENUM',\n ENUM_VALUE: 'ENUM_VALUE',\n INPUT_OBJECT: 'INPUT_OBJECT',\n INPUT_FIELD_DEFINITION: 'INPUT_FIELD_DEFINITION'\n});\n/**\n * The enum type representing the directive location values.\n */","/**\n * Produces the value of a block string from its parsed raw value, similar to\n * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.\n *\n * This implements the GraphQL spec's BlockStringValue() static algorithm.\n *\n * @internal\n */\nexport function dedentBlockStringValue(rawString) {\n // Expand a block string's raw value into independent lines.\n var lines = rawString.split(/\\r\\n|[\\n\\r]/g); // Remove common indentation from all lines but first.\n\n var commonIndent = getBlockStringIndentation(rawString);\n if (commonIndent !== 0) {\n for (var i = 1; i < lines.length; i++) {\n lines[i] = lines[i].slice(commonIndent);\n }\n } // Remove leading and trailing blank lines.\n\n var startLine = 0;\n while (startLine < lines.length && isBlank(lines[startLine])) {\n ++startLine;\n }\n var endLine = lines.length;\n while (endLine > startLine && isBlank(lines[endLine - 1])) {\n --endLine;\n } // Return a string of the lines joined with U+000A.\n\n return lines.slice(startLine, endLine).join('\\n');\n}\nfunction isBlank(str) {\n for (var i = 0; i < str.length; ++i) {\n if (str[i] !== ' ' && str[i] !== '\\t') {\n return false;\n }\n }\n return true;\n}\n/**\n * @internal\n */\n\nexport function getBlockStringIndentation(value) {\n var _commonIndent;\n var isFirstLine = true;\n var isEmptyLine = true;\n var indent = 0;\n var commonIndent = null;\n for (var i = 0; i < value.length; ++i) {\n switch (value.charCodeAt(i)) {\n case 13:\n // \\r\n if (value.charCodeAt(i + 1) === 10) {\n ++i; // skip \\r\\n as one symbol\n }\n\n // falls through\n\n case 10:\n // \\n\n isFirstLine = false;\n isEmptyLine = true;\n indent = 0;\n break;\n case 9: // \\t\n\n case 32:\n // \n ++indent;\n break;\n default:\n if (isEmptyLine && !isFirstLine && (commonIndent === null || indent < commonIndent)) {\n commonIndent = indent;\n }\n isEmptyLine = false;\n }\n }\n return (_commonIndent = commonIndent) !== null && _commonIndent !== void 0 ? _commonIndent : 0;\n}\n/**\n * Print a block string in the indented block form by adding a leading and\n * trailing blank line. However, if a block string starts with whitespace and is\n * a single-line, adding a leading blank line would strip that whitespace.\n *\n * @internal\n */\n\nexport function printBlockString(value) {\n var indentation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var preferMultipleLines = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var isSingleLine = value.indexOf('\\n') === -1;\n var hasLeadingSpace = value[0] === ' ' || value[0] === '\\t';\n var hasTrailingQuote = value[value.length - 1] === '\"';\n var hasTrailingSlash = value[value.length - 1] === '\\\\';\n var printAsMultipleLines = !isSingleLine || hasTrailingQuote || hasTrailingSlash || preferMultipleLines;\n var result = ''; // Format a multi-line block quote to account for leading space.\n\n if (printAsMultipleLines && !(isSingleLine && hasLeadingSpace)) {\n result += '\\n' + indentation;\n }\n result += indentation ? value.replace(/\\n/g, '\\n' + indentation) : value;\n if (printAsMultipleLines) {\n result += '\\n';\n }\n return '\"\"\"' + result.replace(/\"\"\"/g, '\\\\\"\"\"') + '\"\"\"';\n}","import { syntaxError } from \"../error/syntaxError.mjs\";\nimport { Token } from \"./ast.mjs\";\nimport { TokenKind } from \"./tokenKind.mjs\";\nimport { dedentBlockStringValue } from \"./blockString.mjs\";\n/**\n * Given a Source object, creates a Lexer for that source.\n * A Lexer is a stateful stream generator in that every time\n * it is advanced, it returns the next token in the Source. Assuming the\n * source lexes, the final Token emitted by the lexer will be of kind\n * EOF, after which the lexer will repeatedly return the same EOF token\n * whenever called.\n */\n\nexport var Lexer = /*#__PURE__*/function () {\n /**\n * The previously focused non-ignored token.\n */\n\n /**\n * The currently focused non-ignored token.\n */\n\n /**\n * The (1-indexed) line containing the current token.\n */\n\n /**\n * The character offset at which the current line begins.\n */\n function Lexer(source) {\n var startOfFileToken = new Token(TokenKind.SOF, 0, 0, 0, 0, null);\n this.source = source;\n this.lastToken = startOfFileToken;\n this.token = startOfFileToken;\n this.line = 1;\n this.lineStart = 0;\n }\n /**\n * Advances the token stream to the next non-ignored token.\n */\n\n var _proto = Lexer.prototype;\n _proto.advance = function advance() {\n this.lastToken = this.token;\n var token = this.token = this.lookahead();\n return token;\n }\n /**\n * Looks ahead and returns the next non-ignored token, but does not change\n * the state of Lexer.\n */;\n _proto.lookahead = function lookahead() {\n var token = this.token;\n if (token.kind !== TokenKind.EOF) {\n do {\n var _token$next;\n\n // Note: next is only mutable during parsing, so we cast to allow this.\n token = (_token$next = token.next) !== null && _token$next !== void 0 ? _token$next : token.next = readToken(this, token);\n } while (token.kind === TokenKind.COMMENT);\n }\n return token;\n };\n return Lexer;\n}();\n/**\n * @internal\n */\n\nexport function isPunctuatorTokenKind(kind) {\n return kind === TokenKind.BANG || kind === TokenKind.DOLLAR || kind === TokenKind.AMP || kind === TokenKind.PAREN_L || kind === TokenKind.PAREN_R || kind === TokenKind.SPREAD || kind === TokenKind.COLON || kind === TokenKind.EQUALS || kind === TokenKind.AT || kind === TokenKind.BRACKET_L || kind === TokenKind.BRACKET_R || kind === TokenKind.BRACE_L || kind === TokenKind.PIPE || kind === TokenKind.BRACE_R;\n}\nfunction printCharCode(code) {\n return (\n // NaN/undefined represents access beyond the end of the file.\n isNaN(code) ? TokenKind.EOF :\n // Trust JSON for ASCII.\n code < 0x007f ? JSON.stringify(String.fromCharCode(code)) :\n // Otherwise print the escaped form.\n \"\\\"\\\\u\".concat(('00' + code.toString(16).toUpperCase()).slice(-4), \"\\\"\")\n );\n}\n/**\n * Gets the next token from the source starting at the given position.\n *\n * This skips over whitespace until it finds the next lexable token, then lexes\n * punctuators immediately or calls the appropriate helper function for more\n * complicated tokens.\n */\n\nfunction readToken(lexer, prev) {\n var source = lexer.source;\n var body = source.body;\n var bodyLength = body.length;\n var pos = prev.end;\n while (pos < bodyLength) {\n var code = body.charCodeAt(pos);\n var _line = lexer.line;\n var _col = 1 + pos - lexer.lineStart; // SourceCharacter\n\n switch (code) {\n case 0xfeff: // \n\n case 9: // \\t\n\n case 32: // \n\n case 44:\n // ,\n ++pos;\n continue;\n case 10:\n // \\n\n ++pos;\n ++lexer.line;\n lexer.lineStart = pos;\n continue;\n case 13:\n // \\r\n if (body.charCodeAt(pos + 1) === 10) {\n pos += 2;\n } else {\n ++pos;\n }\n ++lexer.line;\n lexer.lineStart = pos;\n continue;\n case 33:\n // !\n return new Token(TokenKind.BANG, pos, pos + 1, _line, _col, prev);\n case 35:\n // #\n return readComment(source, pos, _line, _col, prev);\n case 36:\n // $\n return new Token(TokenKind.DOLLAR, pos, pos + 1, _line, _col, prev);\n case 38:\n // &\n return new Token(TokenKind.AMP, pos, pos + 1, _line, _col, prev);\n case 40:\n // (\n return new Token(TokenKind.PAREN_L, pos, pos + 1, _line, _col, prev);\n case 41:\n // )\n return new Token(TokenKind.PAREN_R, pos, pos + 1, _line, _col, prev);\n case 46:\n // .\n if (body.charCodeAt(pos + 1) === 46 && body.charCodeAt(pos + 2) === 46) {\n return new Token(TokenKind.SPREAD, pos, pos + 3, _line, _col, prev);\n }\n break;\n case 58:\n // :\n return new Token(TokenKind.COLON, pos, pos + 1, _line, _col, prev);\n case 61:\n // =\n return new Token(TokenKind.EQUALS, pos, pos + 1, _line, _col, prev);\n case 64:\n // @\n return new Token(TokenKind.AT, pos, pos + 1, _line, _col, prev);\n case 91:\n // [\n return new Token(TokenKind.BRACKET_L, pos, pos + 1, _line, _col, prev);\n case 93:\n // ]\n return new Token(TokenKind.BRACKET_R, pos, pos + 1, _line, _col, prev);\n case 123:\n // {\n return new Token(TokenKind.BRACE_L, pos, pos + 1, _line, _col, prev);\n case 124:\n // |\n return new Token(TokenKind.PIPE, pos, pos + 1, _line, _col, prev);\n case 125:\n // }\n return new Token(TokenKind.BRACE_R, pos, pos + 1, _line, _col, prev);\n case 34:\n // \"\n if (body.charCodeAt(pos + 1) === 34 && body.charCodeAt(pos + 2) === 34) {\n return readBlockString(source, pos, _line, _col, prev, lexer);\n }\n return readString(source, pos, _line, _col, prev);\n case 45: // -\n\n case 48: // 0\n\n case 49: // 1\n\n case 50: // 2\n\n case 51: // 3\n\n case 52: // 4\n\n case 53: // 5\n\n case 54: // 6\n\n case 55: // 7\n\n case 56: // 8\n\n case 57:\n // 9\n return readNumber(source, pos, code, _line, _col, prev);\n case 65: // A\n\n case 66: // B\n\n case 67: // C\n\n case 68: // D\n\n case 69: // E\n\n case 70: // F\n\n case 71: // G\n\n case 72: // H\n\n case 73: // I\n\n case 74: // J\n\n case 75: // K\n\n case 76: // L\n\n case 77: // M\n\n case 78: // N\n\n case 79: // O\n\n case 80: // P\n\n case 81: // Q\n\n case 82: // R\n\n case 83: // S\n\n case 84: // T\n\n case 85: // U\n\n case 86: // V\n\n case 87: // W\n\n case 88: // X\n\n case 89: // Y\n\n case 90: // Z\n\n case 95: // _\n\n case 97: // a\n\n case 98: // b\n\n case 99: // c\n\n case 100: // d\n\n case 101: // e\n\n case 102: // f\n\n case 103: // g\n\n case 104: // h\n\n case 105: // i\n\n case 106: // j\n\n case 107: // k\n\n case 108: // l\n\n case 109: // m\n\n case 110: // n\n\n case 111: // o\n\n case 112: // p\n\n case 113: // q\n\n case 114: // r\n\n case 115: // s\n\n case 116: // t\n\n case 117: // u\n\n case 118: // v\n\n case 119: // w\n\n case 120: // x\n\n case 121: // y\n\n case 122:\n // z\n return readName(source, pos, _line, _col, prev);\n }\n throw syntaxError(source, pos, unexpectedCharacterMessage(code));\n }\n var line = lexer.line;\n var col = 1 + pos - lexer.lineStart;\n return new Token(TokenKind.EOF, bodyLength, bodyLength, line, col, prev);\n}\n/**\n * Report a message that an unexpected character was encountered.\n */\n\nfunction unexpectedCharacterMessage(code) {\n if (code < 0x0020 && code !== 0x0009 && code !== 0x000a && code !== 0x000d) {\n return \"Cannot contain the invalid character \".concat(printCharCode(code), \".\");\n }\n if (code === 39) {\n // '\n return 'Unexpected single quote character (\\'), did you mean to use a double quote (\")?';\n }\n return \"Cannot parse the unexpected character \".concat(printCharCode(code), \".\");\n}\n/**\n * Reads a comment token from the source file.\n *\n * #[\\u0009\\u0020-\\uFFFF]*\n */\n\nfunction readComment(source, start, line, col, prev) {\n var body = source.body;\n var code;\n var position = start;\n do {\n code = body.charCodeAt(++position);\n } while (!isNaN(code) && (\n // SourceCharacter but not LineTerminator\n code > 0x001f || code === 0x0009));\n return new Token(TokenKind.COMMENT, start, position, line, col, prev, body.slice(start + 1, position));\n}\n/**\n * Reads a number token from the source file, either a float\n * or an int depending on whether a decimal point appears.\n *\n * Int: -?(0|[1-9][0-9]*)\n * Float: -?(0|[1-9][0-9]*)(\\.[0-9]+)?((E|e)(+|-)?[0-9]+)?\n */\n\nfunction readNumber(source, start, firstCode, line, col, prev) {\n var body = source.body;\n var code = firstCode;\n var position = start;\n var isFloat = false;\n if (code === 45) {\n // -\n code = body.charCodeAt(++position);\n }\n if (code === 48) {\n // 0\n code = body.charCodeAt(++position);\n if (code >= 48 && code <= 57) {\n throw syntaxError(source, position, \"Invalid number, unexpected digit after 0: \".concat(printCharCode(code), \".\"));\n }\n } else {\n position = readDigits(source, position, code);\n code = body.charCodeAt(position);\n }\n if (code === 46) {\n // .\n isFloat = true;\n code = body.charCodeAt(++position);\n position = readDigits(source, position, code);\n code = body.charCodeAt(position);\n }\n if (code === 69 || code === 101) {\n // E e\n isFloat = true;\n code = body.charCodeAt(++position);\n if (code === 43 || code === 45) {\n // + -\n code = body.charCodeAt(++position);\n }\n position = readDigits(source, position, code);\n code = body.charCodeAt(position);\n } // Numbers cannot be followed by . or NameStart\n\n if (code === 46 || isNameStart(code)) {\n throw syntaxError(source, position, \"Invalid number, expected digit but got: \".concat(printCharCode(code), \".\"));\n }\n return new Token(isFloat ? TokenKind.FLOAT : TokenKind.INT, start, position, line, col, prev, body.slice(start, position));\n}\n/**\n * Returns the new position in the source after reading digits.\n */\n\nfunction readDigits(source, start, firstCode) {\n var body = source.body;\n var position = start;\n var code = firstCode;\n if (code >= 48 && code <= 57) {\n // 0 - 9\n do {\n code = body.charCodeAt(++position);\n } while (code >= 48 && code <= 57); // 0 - 9\n\n return position;\n }\n throw syntaxError(source, position, \"Invalid number, expected digit but got: \".concat(printCharCode(code), \".\"));\n}\n/**\n * Reads a string token from the source file.\n *\n * \"([^\"\\\\\\u000A\\u000D]|(\\\\(u[0-9a-fA-F]{4}|[\"\\\\/bfnrt])))*\"\n */\n\nfunction readString(source, start, line, col, prev) {\n var body = source.body;\n var position = start + 1;\n var chunkStart = position;\n var code = 0;\n var value = '';\n while (position < body.length && !isNaN(code = body.charCodeAt(position)) &&\n // not LineTerminator\n code !== 0x000a && code !== 0x000d) {\n // Closing Quote (\")\n if (code === 34) {\n value += body.slice(chunkStart, position);\n return new Token(TokenKind.STRING, start, position + 1, line, col, prev, value);\n } // SourceCharacter\n\n if (code < 0x0020 && code !== 0x0009) {\n throw syntaxError(source, position, \"Invalid character within String: \".concat(printCharCode(code), \".\"));\n }\n ++position;\n if (code === 92) {\n // \\\n value += body.slice(chunkStart, position - 1);\n code = body.charCodeAt(position);\n switch (code) {\n case 34:\n value += '\"';\n break;\n case 47:\n value += '/';\n break;\n case 92:\n value += '\\\\';\n break;\n case 98:\n value += '\\b';\n break;\n case 102:\n value += '\\f';\n break;\n case 110:\n value += '\\n';\n break;\n case 114:\n value += '\\r';\n break;\n case 116:\n value += '\\t';\n break;\n case 117:\n {\n // uXXXX\n var charCode = uniCharCode(body.charCodeAt(position + 1), body.charCodeAt(position + 2), body.charCodeAt(position + 3), body.charCodeAt(position + 4));\n if (charCode < 0) {\n var invalidSequence = body.slice(position + 1, position + 5);\n throw syntaxError(source, position, \"Invalid character escape sequence: \\\\u\".concat(invalidSequence, \".\"));\n }\n value += String.fromCharCode(charCode);\n position += 4;\n break;\n }\n default:\n throw syntaxError(source, position, \"Invalid character escape sequence: \\\\\".concat(String.fromCharCode(code), \".\"));\n }\n ++position;\n chunkStart = position;\n }\n }\n throw syntaxError(source, position, 'Unterminated string.');\n}\n/**\n * Reads a block string token from the source file.\n *\n * \"\"\"(\"?\"?(\\\\\"\"\"|\\\\(?!=\"\"\")|[^\"\\\\]))*\"\"\"\n */\n\nfunction readBlockString(source, start, line, col, prev, lexer) {\n var body = source.body;\n var position = start + 3;\n var chunkStart = position;\n var code = 0;\n var rawValue = '';\n while (position < body.length && !isNaN(code = body.charCodeAt(position))) {\n // Closing Triple-Quote (\"\"\")\n if (code === 34 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34) {\n rawValue += body.slice(chunkStart, position);\n return new Token(TokenKind.BLOCK_STRING, start, position + 3, line, col, prev, dedentBlockStringValue(rawValue));\n } // SourceCharacter\n\n if (code < 0x0020 && code !== 0x0009 && code !== 0x000a && code !== 0x000d) {\n throw syntaxError(source, position, \"Invalid character within String: \".concat(printCharCode(code), \".\"));\n }\n if (code === 10) {\n // new line\n ++position;\n ++lexer.line;\n lexer.lineStart = position;\n } else if (code === 13) {\n // carriage return\n if (body.charCodeAt(position + 1) === 10) {\n position += 2;\n } else {\n ++position;\n }\n ++lexer.line;\n lexer.lineStart = position;\n } else if (\n // Escape Triple-Quote (\\\"\"\")\n code === 92 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34 && body.charCodeAt(position + 3) === 34) {\n rawValue += body.slice(chunkStart, position) + '\"\"\"';\n position += 4;\n chunkStart = position;\n } else {\n ++position;\n }\n }\n throw syntaxError(source, position, 'Unterminated string.');\n}\n/**\n * Converts four hexadecimal chars to the integer that the\n * string represents. For example, uniCharCode('0','0','0','f')\n * will return 15, and uniCharCode('0','0','f','f') returns 255.\n *\n * Returns a negative number on error, if a char was invalid.\n *\n * This is implemented by noting that char2hex() returns -1 on error,\n * which means the result of ORing the char2hex() will also be negative.\n */\n\nfunction uniCharCode(a, b, c, d) {\n return char2hex(a) << 12 | char2hex(b) << 8 | char2hex(c) << 4 | char2hex(d);\n}\n/**\n * Converts a hex character to its integer value.\n * '0' becomes 0, '9' becomes 9\n * 'A' becomes 10, 'F' becomes 15\n * 'a' becomes 10, 'f' becomes 15\n *\n * Returns -1 on error.\n */\n\nfunction char2hex(a) {\n return a >= 48 && a <= 57 ? a - 48 // 0-9\n : a >= 65 && a <= 70 ? a - 55 // A-F\n : a >= 97 && a <= 102 ? a - 87 // a-f\n : -1;\n}\n/**\n * Reads an alphanumeric + underscore name from the source.\n *\n * [_A-Za-z][_0-9A-Za-z]*\n */\n\nfunction readName(source, start, line, col, prev) {\n var body = source.body;\n var bodyLength = body.length;\n var position = start + 1;\n var code = 0;\n while (position !== bodyLength && !isNaN(code = body.charCodeAt(position)) && (code === 95 ||\n // _\n code >= 48 && code <= 57 ||\n // 0-9\n code >= 65 && code <= 90 ||\n // A-Z\n code >= 97 && code <= 122) // a-z\n ) {\n ++position;\n }\n return new Token(TokenKind.NAME, start, position, line, col, prev, body.slice(start, position));\n} // _ A-Z a-z\n\nfunction isNameStart(code) {\n return code === 95 || code >= 65 && code <= 90 || code >= 97 && code <= 122;\n}","import { syntaxError } from \"../error/syntaxError.mjs\";\nimport { Kind } from \"./kinds.mjs\";\nimport { Location } from \"./ast.mjs\";\nimport { TokenKind } from \"./tokenKind.mjs\";\nimport { Source, isSource } from \"./source.mjs\";\nimport { DirectiveLocation } from \"./directiveLocation.mjs\";\nimport { Lexer, isPunctuatorTokenKind } from \"./lexer.mjs\";\n/**\n * Configuration options to control parser behavior\n */\n\n/**\n * Given a GraphQL source, parses it into a Document.\n * Throws GraphQLError if a syntax error is encountered.\n */\nexport function parse(source, options) {\n var parser = new Parser(source, options);\n return parser.parseDocument();\n}\n/**\n * Given a string containing a GraphQL value (ex. `[42]`), parse the AST for\n * that value.\n * Throws GraphQLError if a syntax error is encountered.\n *\n * This is useful within tools that operate upon GraphQL Values directly and\n * in isolation of complete GraphQL documents.\n *\n * Consider providing the results to the utility function: valueFromAST().\n */\n\nexport function parseValue(source, options) {\n var parser = new Parser(source, options);\n parser.expectToken(TokenKind.SOF);\n var value = parser.parseValueLiteral(false);\n parser.expectToken(TokenKind.EOF);\n return value;\n}\n/**\n * Given a string containing a GraphQL Type (ex. `[Int!]`), parse the AST for\n * that type.\n * Throws GraphQLError if a syntax error is encountered.\n *\n * This is useful within tools that operate upon GraphQL Types directly and\n * in isolation of complete GraphQL documents.\n *\n * Consider providing the results to the utility function: typeFromAST().\n */\n\nexport function parseType(source, options) {\n var parser = new Parser(source, options);\n parser.expectToken(TokenKind.SOF);\n var type = parser.parseTypeReference();\n parser.expectToken(TokenKind.EOF);\n return type;\n}\n/**\n * This class is exported only to assist people in implementing their own parsers\n * without duplicating too much code and should be used only as last resort for cases\n * such as experimental syntax or if certain features could not be contributed upstream.\n *\n * It is still part of the internal API and is versioned, so any changes to it are never\n * considered breaking changes. If you still need to support multiple versions of the\n * library, please use the `versionInfo` variable for version detection.\n *\n * @internal\n */\n\nexport var Parser = /*#__PURE__*/function () {\n function Parser(source, options) {\n var sourceObj = isSource(source) ? source : new Source(source);\n this._lexer = new Lexer(sourceObj);\n this._options = options;\n }\n /**\n * Converts a name lex token into a name parse node.\n */\n\n var _proto = Parser.prototype;\n _proto.parseName = function parseName() {\n var token = this.expectToken(TokenKind.NAME);\n return {\n kind: Kind.NAME,\n value: token.value,\n loc: this.loc(token)\n };\n } // Implements the parsing rules in the Document section.\n\n /**\n * Document : Definition+\n */;\n _proto.parseDocument = function parseDocument() {\n var start = this._lexer.token;\n return {\n kind: Kind.DOCUMENT,\n definitions: this.many(TokenKind.SOF, this.parseDefinition, TokenKind.EOF),\n loc: this.loc(start)\n };\n }\n /**\n * Definition :\n * - ExecutableDefinition\n * - TypeSystemDefinition\n * - TypeSystemExtension\n *\n * ExecutableDefinition :\n * - OperationDefinition\n * - FragmentDefinition\n */;\n _proto.parseDefinition = function parseDefinition() {\n if (this.peek(TokenKind.NAME)) {\n switch (this._lexer.token.value) {\n case 'query':\n case 'mutation':\n case 'subscription':\n return this.parseOperationDefinition();\n case 'fragment':\n return this.parseFragmentDefinition();\n case 'schema':\n case 'scalar':\n case 'type':\n case 'interface':\n case 'union':\n case 'enum':\n case 'input':\n case 'directive':\n return this.parseTypeSystemDefinition();\n case 'extend':\n return this.parseTypeSystemExtension();\n }\n } else if (this.peek(TokenKind.BRACE_L)) {\n return this.parseOperationDefinition();\n } else if (this.peekDescription()) {\n return this.parseTypeSystemDefinition();\n }\n throw this.unexpected();\n } // Implements the parsing rules in the Operations section.\n\n /**\n * OperationDefinition :\n * - SelectionSet\n * - OperationType Name? VariableDefinitions? Directives? SelectionSet\n */;\n _proto.parseOperationDefinition = function parseOperationDefinition() {\n var start = this._lexer.token;\n if (this.peek(TokenKind.BRACE_L)) {\n return {\n kind: Kind.OPERATION_DEFINITION,\n operation: 'query',\n name: undefined,\n variableDefinitions: [],\n directives: [],\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n }\n var operation = this.parseOperationType();\n var name;\n if (this.peek(TokenKind.NAME)) {\n name = this.parseName();\n }\n return {\n kind: Kind.OPERATION_DEFINITION,\n operation: operation,\n name: name,\n variableDefinitions: this.parseVariableDefinitions(),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n }\n /**\n * OperationType : one of query mutation subscription\n */;\n _proto.parseOperationType = function parseOperationType() {\n var operationToken = this.expectToken(TokenKind.NAME);\n switch (operationToken.value) {\n case 'query':\n return 'query';\n case 'mutation':\n return 'mutation';\n case 'subscription':\n return 'subscription';\n }\n throw this.unexpected(operationToken);\n }\n /**\n * VariableDefinitions : ( VariableDefinition+ )\n */;\n _proto.parseVariableDefinitions = function parseVariableDefinitions() {\n return this.optionalMany(TokenKind.PAREN_L, this.parseVariableDefinition, TokenKind.PAREN_R);\n }\n /**\n * VariableDefinition : Variable : Type DefaultValue? Directives[Const]?\n */;\n _proto.parseVariableDefinition = function parseVariableDefinition() {\n var start = this._lexer.token;\n return {\n kind: Kind.VARIABLE_DEFINITION,\n variable: this.parseVariable(),\n type: (this.expectToken(TokenKind.COLON), this.parseTypeReference()),\n defaultValue: this.expectOptionalToken(TokenKind.EQUALS) ? this.parseValueLiteral(true) : undefined,\n directives: this.parseDirectives(true),\n loc: this.loc(start)\n };\n }\n /**\n * Variable : $ Name\n */;\n _proto.parseVariable = function parseVariable() {\n var start = this._lexer.token;\n this.expectToken(TokenKind.DOLLAR);\n return {\n kind: Kind.VARIABLE,\n name: this.parseName(),\n loc: this.loc(start)\n };\n }\n /**\n * SelectionSet : { Selection+ }\n */;\n _proto.parseSelectionSet = function parseSelectionSet() {\n var start = this._lexer.token;\n return {\n kind: Kind.SELECTION_SET,\n selections: this.many(TokenKind.BRACE_L, this.parseSelection, TokenKind.BRACE_R),\n loc: this.loc(start)\n };\n }\n /**\n * Selection :\n * - Field\n * - FragmentSpread\n * - InlineFragment\n */;\n _proto.parseSelection = function parseSelection() {\n return this.peek(TokenKind.SPREAD) ? this.parseFragment() : this.parseField();\n }\n /**\n * Field : Alias? Name Arguments? Directives? SelectionSet?\n *\n * Alias : Name :\n */;\n _proto.parseField = function parseField() {\n var start = this._lexer.token;\n var nameOrAlias = this.parseName();\n var alias;\n var name;\n if (this.expectOptionalToken(TokenKind.COLON)) {\n alias = nameOrAlias;\n name = this.parseName();\n } else {\n name = nameOrAlias;\n }\n return {\n kind: Kind.FIELD,\n alias: alias,\n name: name,\n arguments: this.parseArguments(false),\n directives: this.parseDirectives(false),\n selectionSet: this.peek(TokenKind.BRACE_L) ? this.parseSelectionSet() : undefined,\n loc: this.loc(start)\n };\n }\n /**\n * Arguments[Const] : ( Argument[?Const]+ )\n */;\n _proto.parseArguments = function parseArguments(isConst) {\n var item = isConst ? this.parseConstArgument : this.parseArgument;\n return this.optionalMany(TokenKind.PAREN_L, item, TokenKind.PAREN_R);\n }\n /**\n * Argument[Const] : Name : Value[?Const]\n */;\n _proto.parseArgument = function parseArgument() {\n var start = this._lexer.token;\n var name = this.parseName();\n this.expectToken(TokenKind.COLON);\n return {\n kind: Kind.ARGUMENT,\n name: name,\n value: this.parseValueLiteral(false),\n loc: this.loc(start)\n };\n };\n _proto.parseConstArgument = function parseConstArgument() {\n var start = this._lexer.token;\n return {\n kind: Kind.ARGUMENT,\n name: this.parseName(),\n value: (this.expectToken(TokenKind.COLON), this.parseValueLiteral(true)),\n loc: this.loc(start)\n };\n } // Implements the parsing rules in the Fragments section.\n\n /**\n * Corresponds to both FragmentSpread and InlineFragment in the spec.\n *\n * FragmentSpread : ... FragmentName Directives?\n *\n * InlineFragment : ... TypeCondition? Directives? SelectionSet\n */;\n _proto.parseFragment = function parseFragment() {\n var start = this._lexer.token;\n this.expectToken(TokenKind.SPREAD);\n var hasTypeCondition = this.expectOptionalKeyword('on');\n if (!hasTypeCondition && this.peek(TokenKind.NAME)) {\n return {\n kind: Kind.FRAGMENT_SPREAD,\n name: this.parseFragmentName(),\n directives: this.parseDirectives(false),\n loc: this.loc(start)\n };\n }\n return {\n kind: Kind.INLINE_FRAGMENT,\n typeCondition: hasTypeCondition ? this.parseNamedType() : undefined,\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n }\n /**\n * FragmentDefinition :\n * - fragment FragmentName on TypeCondition Directives? SelectionSet\n *\n * TypeCondition : NamedType\n */;\n _proto.parseFragmentDefinition = function parseFragmentDefinition() {\n var _this$_options;\n var start = this._lexer.token;\n this.expectKeyword('fragment'); // Experimental support for defining variables within fragments changes\n // the grammar of FragmentDefinition:\n // - fragment FragmentName VariableDefinitions? on TypeCondition Directives? SelectionSet\n\n if (((_this$_options = this._options) === null || _this$_options === void 0 ? void 0 : _this$_options.experimentalFragmentVariables) === true) {\n return {\n kind: Kind.FRAGMENT_DEFINITION,\n name: this.parseFragmentName(),\n variableDefinitions: this.parseVariableDefinitions(),\n typeCondition: (this.expectKeyword('on'), this.parseNamedType()),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n }\n return {\n kind: Kind.FRAGMENT_DEFINITION,\n name: this.parseFragmentName(),\n typeCondition: (this.expectKeyword('on'), this.parseNamedType()),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n }\n /**\n * FragmentName : Name but not `on`\n */;\n _proto.parseFragmentName = function parseFragmentName() {\n if (this._lexer.token.value === 'on') {\n throw this.unexpected();\n }\n return this.parseName();\n } // Implements the parsing rules in the Values section.\n\n /**\n * Value[Const] :\n * - [~Const] Variable\n * - IntValue\n * - FloatValue\n * - StringValue\n * - BooleanValue\n * - NullValue\n * - EnumValue\n * - ListValue[?Const]\n * - ObjectValue[?Const]\n *\n * BooleanValue : one of `true` `false`\n *\n * NullValue : `null`\n *\n * EnumValue : Name but not `true`, `false` or `null`\n */;\n _proto.parseValueLiteral = function parseValueLiteral(isConst) {\n var token = this._lexer.token;\n switch (token.kind) {\n case TokenKind.BRACKET_L:\n return this.parseList(isConst);\n case TokenKind.BRACE_L:\n return this.parseObject(isConst);\n case TokenKind.INT:\n this._lexer.advance();\n return {\n kind: Kind.INT,\n value: token.value,\n loc: this.loc(token)\n };\n case TokenKind.FLOAT:\n this._lexer.advance();\n return {\n kind: Kind.FLOAT,\n value: token.value,\n loc: this.loc(token)\n };\n case TokenKind.STRING:\n case TokenKind.BLOCK_STRING:\n return this.parseStringLiteral();\n case TokenKind.NAME:\n this._lexer.advance();\n switch (token.value) {\n case 'true':\n return {\n kind: Kind.BOOLEAN,\n value: true,\n loc: this.loc(token)\n };\n case 'false':\n return {\n kind: Kind.BOOLEAN,\n value: false,\n loc: this.loc(token)\n };\n case 'null':\n return {\n kind: Kind.NULL,\n loc: this.loc(token)\n };\n default:\n return {\n kind: Kind.ENUM,\n value: token.value,\n loc: this.loc(token)\n };\n }\n case TokenKind.DOLLAR:\n if (!isConst) {\n return this.parseVariable();\n }\n break;\n }\n throw this.unexpected();\n };\n _proto.parseStringLiteral = function parseStringLiteral() {\n var token = this._lexer.token;\n this._lexer.advance();\n return {\n kind: Kind.STRING,\n value: token.value,\n block: token.kind === TokenKind.BLOCK_STRING,\n loc: this.loc(token)\n };\n }\n /**\n * ListValue[Const] :\n * - [ ]\n * - [ Value[?Const]+ ]\n */;\n _proto.parseList = function parseList(isConst) {\n var _this = this;\n var start = this._lexer.token;\n var item = function item() {\n return _this.parseValueLiteral(isConst);\n };\n return {\n kind: Kind.LIST,\n values: this.any(TokenKind.BRACKET_L, item, TokenKind.BRACKET_R),\n loc: this.loc(start)\n };\n }\n /**\n * ObjectValue[Const] :\n * - { }\n * - { ObjectField[?Const]+ }\n */;\n _proto.parseObject = function parseObject(isConst) {\n var _this2 = this;\n var start = this._lexer.token;\n var item = function item() {\n return _this2.parseObjectField(isConst);\n };\n return {\n kind: Kind.OBJECT,\n fields: this.any(TokenKind.BRACE_L, item, TokenKind.BRACE_R),\n loc: this.loc(start)\n };\n }\n /**\n * ObjectField[Const] : Name : Value[?Const]\n */;\n _proto.parseObjectField = function parseObjectField(isConst) {\n var start = this._lexer.token;\n var name = this.parseName();\n this.expectToken(TokenKind.COLON);\n return {\n kind: Kind.OBJECT_FIELD,\n name: name,\n value: this.parseValueLiteral(isConst),\n loc: this.loc(start)\n };\n } // Implements the parsing rules in the Directives section.\n\n /**\n * Directives[Const] : Directive[?Const]+\n */;\n _proto.parseDirectives = function parseDirectives(isConst) {\n var directives = [];\n while (this.peek(TokenKind.AT)) {\n directives.push(this.parseDirective(isConst));\n }\n return directives;\n }\n /**\n * Directive[Const] : @ Name Arguments[?Const]?\n */;\n _proto.parseDirective = function parseDirective(isConst) {\n var start = this._lexer.token;\n this.expectToken(TokenKind.AT);\n return {\n kind: Kind.DIRECTIVE,\n name: this.parseName(),\n arguments: this.parseArguments(isConst),\n loc: this.loc(start)\n };\n } // Implements the parsing rules in the Types section.\n\n /**\n * Type :\n * - NamedType\n * - ListType\n * - NonNullType\n */;\n _proto.parseTypeReference = function parseTypeReference() {\n var start = this._lexer.token;\n var type;\n if (this.expectOptionalToken(TokenKind.BRACKET_L)) {\n type = this.parseTypeReference();\n this.expectToken(TokenKind.BRACKET_R);\n type = {\n kind: Kind.LIST_TYPE,\n type: type,\n loc: this.loc(start)\n };\n } else {\n type = this.parseNamedType();\n }\n if (this.expectOptionalToken(TokenKind.BANG)) {\n return {\n kind: Kind.NON_NULL_TYPE,\n type: type,\n loc: this.loc(start)\n };\n }\n return type;\n }\n /**\n * NamedType : Name\n */;\n _proto.parseNamedType = function parseNamedType() {\n var start = this._lexer.token;\n return {\n kind: Kind.NAMED_TYPE,\n name: this.parseName(),\n loc: this.loc(start)\n };\n } // Implements the parsing rules in the Type Definition section.\n\n /**\n * TypeSystemDefinition :\n * - SchemaDefinition\n * - TypeDefinition\n * - DirectiveDefinition\n *\n * TypeDefinition :\n * - ScalarTypeDefinition\n * - ObjectTypeDefinition\n * - InterfaceTypeDefinition\n * - UnionTypeDefinition\n * - EnumTypeDefinition\n * - InputObjectTypeDefinition\n */;\n _proto.parseTypeSystemDefinition = function parseTypeSystemDefinition() {\n // Many definitions begin with a description and require a lookahead.\n var keywordToken = this.peekDescription() ? this._lexer.lookahead() : this._lexer.token;\n if (keywordToken.kind === TokenKind.NAME) {\n switch (keywordToken.value) {\n case 'schema':\n return this.parseSchemaDefinition();\n case 'scalar':\n return this.parseScalarTypeDefinition();\n case 'type':\n return this.parseObjectTypeDefinition();\n case 'interface':\n return this.parseInterfaceTypeDefinition();\n case 'union':\n return this.parseUnionTypeDefinition();\n case 'enum':\n return this.parseEnumTypeDefinition();\n case 'input':\n return this.parseInputObjectTypeDefinition();\n case 'directive':\n return this.parseDirectiveDefinition();\n }\n }\n throw this.unexpected(keywordToken);\n };\n _proto.peekDescription = function peekDescription() {\n return this.peek(TokenKind.STRING) || this.peek(TokenKind.BLOCK_STRING);\n }\n /**\n * Description : StringValue\n */;\n _proto.parseDescription = function parseDescription() {\n if (this.peekDescription()) {\n return this.parseStringLiteral();\n }\n }\n /**\n * SchemaDefinition : Description? schema Directives[Const]? { OperationTypeDefinition+ }\n */;\n _proto.parseSchemaDefinition = function parseSchemaDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('schema');\n var directives = this.parseDirectives(true);\n var operationTypes = this.many(TokenKind.BRACE_L, this.parseOperationTypeDefinition, TokenKind.BRACE_R);\n return {\n kind: Kind.SCHEMA_DEFINITION,\n description: description,\n directives: directives,\n operationTypes: operationTypes,\n loc: this.loc(start)\n };\n }\n /**\n * OperationTypeDefinition : OperationType : NamedType\n */;\n _proto.parseOperationTypeDefinition = function parseOperationTypeDefinition() {\n var start = this._lexer.token;\n var operation = this.parseOperationType();\n this.expectToken(TokenKind.COLON);\n var type = this.parseNamedType();\n return {\n kind: Kind.OPERATION_TYPE_DEFINITION,\n operation: operation,\n type: type,\n loc: this.loc(start)\n };\n }\n /**\n * ScalarTypeDefinition : Description? scalar Name Directives[Const]?\n */;\n _proto.parseScalarTypeDefinition = function parseScalarTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('scalar');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n return {\n kind: Kind.SCALAR_TYPE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n loc: this.loc(start)\n };\n }\n /**\n * ObjectTypeDefinition :\n * Description?\n * type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?\n */;\n _proto.parseObjectTypeDefinition = function parseObjectTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('type');\n var name = this.parseName();\n var interfaces = this.parseImplementsInterfaces();\n var directives = this.parseDirectives(true);\n var fields = this.parseFieldsDefinition();\n return {\n kind: Kind.OBJECT_TYPE_DEFINITION,\n description: description,\n name: name,\n interfaces: interfaces,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n }\n /**\n * ImplementsInterfaces :\n * - implements `&`? NamedType\n * - ImplementsInterfaces & NamedType\n */;\n _proto.parseImplementsInterfaces = function parseImplementsInterfaces() {\n var _this$_options2;\n if (!this.expectOptionalKeyword('implements')) {\n return [];\n }\n if (((_this$_options2 = this._options) === null || _this$_options2 === void 0 ? void 0 : _this$_options2.allowLegacySDLImplementsInterfaces) === true) {\n var types = []; // Optional leading ampersand\n\n this.expectOptionalToken(TokenKind.AMP);\n do {\n types.push(this.parseNamedType());\n } while (this.expectOptionalToken(TokenKind.AMP) || this.peek(TokenKind.NAME));\n return types;\n }\n return this.delimitedMany(TokenKind.AMP, this.parseNamedType);\n }\n /**\n * FieldsDefinition : { FieldDefinition+ }\n */;\n _proto.parseFieldsDefinition = function parseFieldsDefinition() {\n var _this$_options3;\n\n // Legacy support for the SDL?\n if (((_this$_options3 = this._options) === null || _this$_options3 === void 0 ? void 0 : _this$_options3.allowLegacySDLEmptyFields) === true && this.peek(TokenKind.BRACE_L) && this._lexer.lookahead().kind === TokenKind.BRACE_R) {\n this._lexer.advance();\n this._lexer.advance();\n return [];\n }\n return this.optionalMany(TokenKind.BRACE_L, this.parseFieldDefinition, TokenKind.BRACE_R);\n }\n /**\n * FieldDefinition :\n * - Description? Name ArgumentsDefinition? : Type Directives[Const]?\n */;\n _proto.parseFieldDefinition = function parseFieldDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n var name = this.parseName();\n var args = this.parseArgumentDefs();\n this.expectToken(TokenKind.COLON);\n var type = this.parseTypeReference();\n var directives = this.parseDirectives(true);\n return {\n kind: Kind.FIELD_DEFINITION,\n description: description,\n name: name,\n arguments: args,\n type: type,\n directives: directives,\n loc: this.loc(start)\n };\n }\n /**\n * ArgumentsDefinition : ( InputValueDefinition+ )\n */;\n _proto.parseArgumentDefs = function parseArgumentDefs() {\n return this.optionalMany(TokenKind.PAREN_L, this.parseInputValueDef, TokenKind.PAREN_R);\n }\n /**\n * InputValueDefinition :\n * - Description? Name : Type DefaultValue? Directives[Const]?\n */;\n _proto.parseInputValueDef = function parseInputValueDef() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n var name = this.parseName();\n this.expectToken(TokenKind.COLON);\n var type = this.parseTypeReference();\n var defaultValue;\n if (this.expectOptionalToken(TokenKind.EQUALS)) {\n defaultValue = this.parseValueLiteral(true);\n }\n var directives = this.parseDirectives(true);\n return {\n kind: Kind.INPUT_VALUE_DEFINITION,\n description: description,\n name: name,\n type: type,\n defaultValue: defaultValue,\n directives: directives,\n loc: this.loc(start)\n };\n }\n /**\n * InterfaceTypeDefinition :\n * - Description? interface Name Directives[Const]? FieldsDefinition?\n */;\n _proto.parseInterfaceTypeDefinition = function parseInterfaceTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('interface');\n var name = this.parseName();\n var interfaces = this.parseImplementsInterfaces();\n var directives = this.parseDirectives(true);\n var fields = this.parseFieldsDefinition();\n return {\n kind: Kind.INTERFACE_TYPE_DEFINITION,\n description: description,\n name: name,\n interfaces: interfaces,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n }\n /**\n * UnionTypeDefinition :\n * - Description? union Name Directives[Const]? UnionMemberTypes?\n */;\n _proto.parseUnionTypeDefinition = function parseUnionTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('union');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var types = this.parseUnionMemberTypes();\n return {\n kind: Kind.UNION_TYPE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n types: types,\n loc: this.loc(start)\n };\n }\n /**\n * UnionMemberTypes :\n * - = `|`? NamedType\n * - UnionMemberTypes | NamedType\n */;\n _proto.parseUnionMemberTypes = function parseUnionMemberTypes() {\n return this.expectOptionalToken(TokenKind.EQUALS) ? this.delimitedMany(TokenKind.PIPE, this.parseNamedType) : [];\n }\n /**\n * EnumTypeDefinition :\n * - Description? enum Name Directives[Const]? EnumValuesDefinition?\n */;\n _proto.parseEnumTypeDefinition = function parseEnumTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('enum');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var values = this.parseEnumValuesDefinition();\n return {\n kind: Kind.ENUM_TYPE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n values: values,\n loc: this.loc(start)\n };\n }\n /**\n * EnumValuesDefinition : { EnumValueDefinition+ }\n */;\n _proto.parseEnumValuesDefinition = function parseEnumValuesDefinition() {\n return this.optionalMany(TokenKind.BRACE_L, this.parseEnumValueDefinition, TokenKind.BRACE_R);\n }\n /**\n * EnumValueDefinition : Description? EnumValue Directives[Const]?\n *\n * EnumValue : Name\n */;\n _proto.parseEnumValueDefinition = function parseEnumValueDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n return {\n kind: Kind.ENUM_VALUE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n loc: this.loc(start)\n };\n }\n /**\n * InputObjectTypeDefinition :\n * - Description? input Name Directives[Const]? InputFieldsDefinition?\n */;\n _proto.parseInputObjectTypeDefinition = function parseInputObjectTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('input');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var fields = this.parseInputFieldsDefinition();\n return {\n kind: Kind.INPUT_OBJECT_TYPE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n }\n /**\n * InputFieldsDefinition : { InputValueDefinition+ }\n */;\n _proto.parseInputFieldsDefinition = function parseInputFieldsDefinition() {\n return this.optionalMany(TokenKind.BRACE_L, this.parseInputValueDef, TokenKind.BRACE_R);\n }\n /**\n * TypeSystemExtension :\n * - SchemaExtension\n * - TypeExtension\n *\n * TypeExtension :\n * - ScalarTypeExtension\n * - ObjectTypeExtension\n * - InterfaceTypeExtension\n * - UnionTypeExtension\n * - EnumTypeExtension\n * - InputObjectTypeDefinition\n */;\n _proto.parseTypeSystemExtension = function parseTypeSystemExtension() {\n var keywordToken = this._lexer.lookahead();\n if (keywordToken.kind === TokenKind.NAME) {\n switch (keywordToken.value) {\n case 'schema':\n return this.parseSchemaExtension();\n case 'scalar':\n return this.parseScalarTypeExtension();\n case 'type':\n return this.parseObjectTypeExtension();\n case 'interface':\n return this.parseInterfaceTypeExtension();\n case 'union':\n return this.parseUnionTypeExtension();\n case 'enum':\n return this.parseEnumTypeExtension();\n case 'input':\n return this.parseInputObjectTypeExtension();\n }\n }\n throw this.unexpected(keywordToken);\n }\n /**\n * SchemaExtension :\n * - extend schema Directives[Const]? { OperationTypeDefinition+ }\n * - extend schema Directives[Const]\n */;\n _proto.parseSchemaExtension = function parseSchemaExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('schema');\n var directives = this.parseDirectives(true);\n var operationTypes = this.optionalMany(TokenKind.BRACE_L, this.parseOperationTypeDefinition, TokenKind.BRACE_R);\n if (directives.length === 0 && operationTypes.length === 0) {\n throw this.unexpected();\n }\n return {\n kind: Kind.SCHEMA_EXTENSION,\n directives: directives,\n operationTypes: operationTypes,\n loc: this.loc(start)\n };\n }\n /**\n * ScalarTypeExtension :\n * - extend scalar Name Directives[Const]\n */;\n _proto.parseScalarTypeExtension = function parseScalarTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('scalar');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n if (directives.length === 0) {\n throw this.unexpected();\n }\n return {\n kind: Kind.SCALAR_TYPE_EXTENSION,\n name: name,\n directives: directives,\n loc: this.loc(start)\n };\n }\n /**\n * ObjectTypeExtension :\n * - extend type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition\n * - extend type Name ImplementsInterfaces? Directives[Const]\n * - extend type Name ImplementsInterfaces\n */;\n _proto.parseObjectTypeExtension = function parseObjectTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('type');\n var name = this.parseName();\n var interfaces = this.parseImplementsInterfaces();\n var directives = this.parseDirectives(true);\n var fields = this.parseFieldsDefinition();\n if (interfaces.length === 0 && directives.length === 0 && fields.length === 0) {\n throw this.unexpected();\n }\n return {\n kind: Kind.OBJECT_TYPE_EXTENSION,\n name: name,\n interfaces: interfaces,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n }\n /**\n * InterfaceTypeExtension :\n * - extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition\n * - extend interface Name ImplementsInterfaces? Directives[Const]\n * - extend interface Name ImplementsInterfaces\n */;\n _proto.parseInterfaceTypeExtension = function parseInterfaceTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('interface');\n var name = this.parseName();\n var interfaces = this.parseImplementsInterfaces();\n var directives = this.parseDirectives(true);\n var fields = this.parseFieldsDefinition();\n if (interfaces.length === 0 && directives.length === 0 && fields.length === 0) {\n throw this.unexpected();\n }\n return {\n kind: Kind.INTERFACE_TYPE_EXTENSION,\n name: name,\n interfaces: interfaces,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n }\n /**\n * UnionTypeExtension :\n * - extend union Name Directives[Const]? UnionMemberTypes\n * - extend union Name Directives[Const]\n */;\n _proto.parseUnionTypeExtension = function parseUnionTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('union');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var types = this.parseUnionMemberTypes();\n if (directives.length === 0 && types.length === 0) {\n throw this.unexpected();\n }\n return {\n kind: Kind.UNION_TYPE_EXTENSION,\n name: name,\n directives: directives,\n types: types,\n loc: this.loc(start)\n };\n }\n /**\n * EnumTypeExtension :\n * - extend enum Name Directives[Const]? EnumValuesDefinition\n * - extend enum Name Directives[Const]\n */;\n _proto.parseEnumTypeExtension = function parseEnumTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('enum');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var values = this.parseEnumValuesDefinition();\n if (directives.length === 0 && values.length === 0) {\n throw this.unexpected();\n }\n return {\n kind: Kind.ENUM_TYPE_EXTENSION,\n name: name,\n directives: directives,\n values: values,\n loc: this.loc(start)\n };\n }\n /**\n * InputObjectTypeExtension :\n * - extend input Name Directives[Const]? InputFieldsDefinition\n * - extend input Name Directives[Const]\n */;\n _proto.parseInputObjectTypeExtension = function parseInputObjectTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('input');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var fields = this.parseInputFieldsDefinition();\n if (directives.length === 0 && fields.length === 0) {\n throw this.unexpected();\n }\n return {\n kind: Kind.INPUT_OBJECT_TYPE_EXTENSION,\n name: name,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n }\n /**\n * DirectiveDefinition :\n * - Description? directive @ Name ArgumentsDefinition? `repeatable`? on DirectiveLocations\n */;\n _proto.parseDirectiveDefinition = function parseDirectiveDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('directive');\n this.expectToken(TokenKind.AT);\n var name = this.parseName();\n var args = this.parseArgumentDefs();\n var repeatable = this.expectOptionalKeyword('repeatable');\n this.expectKeyword('on');\n var locations = this.parseDirectiveLocations();\n return {\n kind: Kind.DIRECTIVE_DEFINITION,\n description: description,\n name: name,\n arguments: args,\n repeatable: repeatable,\n locations: locations,\n loc: this.loc(start)\n };\n }\n /**\n * DirectiveLocations :\n * - `|`? DirectiveLocation\n * - DirectiveLocations | DirectiveLocation\n */;\n _proto.parseDirectiveLocations = function parseDirectiveLocations() {\n return this.delimitedMany(TokenKind.PIPE, this.parseDirectiveLocation);\n }\n /*\n * DirectiveLocation :\n * - ExecutableDirectiveLocation\n * - TypeSystemDirectiveLocation\n *\n * ExecutableDirectiveLocation : one of\n * `QUERY`\n * `MUTATION`\n * `SUBSCRIPTION`\n * `FIELD`\n * `FRAGMENT_DEFINITION`\n * `FRAGMENT_SPREAD`\n * `INLINE_FRAGMENT`\n *\n * TypeSystemDirectiveLocation : one of\n * `SCHEMA`\n * `SCALAR`\n * `OBJECT`\n * `FIELD_DEFINITION`\n * `ARGUMENT_DEFINITION`\n * `INTERFACE`\n * `UNION`\n * `ENUM`\n * `ENUM_VALUE`\n * `INPUT_OBJECT`\n * `INPUT_FIELD_DEFINITION`\n */;\n _proto.parseDirectiveLocation = function parseDirectiveLocation() {\n var start = this._lexer.token;\n var name = this.parseName();\n if (DirectiveLocation[name.value] !== undefined) {\n return name;\n }\n throw this.unexpected(start);\n } // Core parsing utility functions\n\n /**\n * Returns a location object, used to identify the place in the source that created a given parsed object.\n */;\n _proto.loc = function loc(startToken) {\n var _this$_options4;\n if (((_this$_options4 = this._options) === null || _this$_options4 === void 0 ? void 0 : _this$_options4.noLocation) !== true) {\n return new Location(startToken, this._lexer.lastToken, this._lexer.source);\n }\n }\n /**\n * Determines if the next token is of a given kind\n */;\n _proto.peek = function peek(kind) {\n return this._lexer.token.kind === kind;\n }\n /**\n * If the next token is of the given kind, return that token after advancing the lexer.\n * Otherwise, do not change the parser state and throw an error.\n */;\n _proto.expectToken = function expectToken(kind) {\n var token = this._lexer.token;\n if (token.kind === kind) {\n this._lexer.advance();\n return token;\n }\n throw syntaxError(this._lexer.source, token.start, \"Expected \".concat(getTokenKindDesc(kind), \", found \").concat(getTokenDesc(token), \".\"));\n }\n /**\n * If the next token is of the given kind, return that token after advancing the lexer.\n * Otherwise, do not change the parser state and return undefined.\n */;\n _proto.expectOptionalToken = function expectOptionalToken(kind) {\n var token = this._lexer.token;\n if (token.kind === kind) {\n this._lexer.advance();\n return token;\n }\n return undefined;\n }\n /**\n * If the next token is a given keyword, advance the lexer.\n * Otherwise, do not change the parser state and throw an error.\n */;\n _proto.expectKeyword = function expectKeyword(value) {\n var token = this._lexer.token;\n if (token.kind === TokenKind.NAME && token.value === value) {\n this._lexer.advance();\n } else {\n throw syntaxError(this._lexer.source, token.start, \"Expected \\\"\".concat(value, \"\\\", found \").concat(getTokenDesc(token), \".\"));\n }\n }\n /**\n * If the next token is a given keyword, return \"true\" after advancing the lexer.\n * Otherwise, do not change the parser state and return \"false\".\n */;\n _proto.expectOptionalKeyword = function expectOptionalKeyword(value) {\n var token = this._lexer.token;\n if (token.kind === TokenKind.NAME && token.value === value) {\n this._lexer.advance();\n return true;\n }\n return false;\n }\n /**\n * Helper function for creating an error when an unexpected lexed token is encountered.\n */;\n _proto.unexpected = function unexpected(atToken) {\n var token = atToken !== null && atToken !== void 0 ? atToken : this._lexer.token;\n return syntaxError(this._lexer.source, token.start, \"Unexpected \".concat(getTokenDesc(token), \".\"));\n }\n /**\n * Returns a possibly empty list of parse nodes, determined by the parseFn.\n * This list begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */;\n _proto.any = function any(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n var nodes = [];\n while (!this.expectOptionalToken(closeKind)) {\n nodes.push(parseFn.call(this));\n }\n return nodes;\n }\n /**\n * Returns a list of parse nodes, determined by the parseFn.\n * It can be empty only if open token is missing otherwise it will always return non-empty list\n * that begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */;\n _proto.optionalMany = function optionalMany(openKind, parseFn, closeKind) {\n if (this.expectOptionalToken(openKind)) {\n var nodes = [];\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n return nodes;\n }\n return [];\n }\n /**\n * Returns a non-empty list of parse nodes, determined by the parseFn.\n * This list begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */;\n _proto.many = function many(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n var nodes = [];\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n return nodes;\n }\n /**\n * Returns a non-empty list of parse nodes, determined by the parseFn.\n * This list may begin with a lex token of delimiterKind followed by items separated by lex tokens of tokenKind.\n * Advances the parser to the next lex token after last item in the list.\n */;\n _proto.delimitedMany = function delimitedMany(delimiterKind, parseFn) {\n this.expectOptionalToken(delimiterKind);\n var nodes = [];\n do {\n nodes.push(parseFn.call(this));\n } while (this.expectOptionalToken(delimiterKind));\n return nodes;\n };\n return Parser;\n}();\n/**\n * A helper function to describe a token as a string for debugging.\n */\n\nfunction getTokenDesc(token) {\n var value = token.value;\n return getTokenKindDesc(token.kind) + (value != null ? \" \\\"\".concat(value, \"\\\"\") : '');\n}\n/**\n * A helper function to describe a token kind as a string for debugging.\n */\n\nfunction getTokenKindDesc(kind) {\n return isPunctuatorTokenKind(kind) ? \"\\\"\".concat(kind, \"\\\"\") : kind;\n}","import inspect from \"../jsutils/inspect.mjs\";\nimport { isNode } from \"./ast.mjs\";\n/**\n * A visitor is provided to visit, it contains the collection of\n * relevant functions to be called during the visitor's traversal.\n */\n\nexport var QueryDocumentKeys = {\n Name: [],\n Document: ['definitions'],\n OperationDefinition: ['name', 'variableDefinitions', 'directives', 'selectionSet'],\n VariableDefinition: ['variable', 'type', 'defaultValue', 'directives'],\n Variable: ['name'],\n SelectionSet: ['selections'],\n Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],\n Argument: ['name', 'value'],\n FragmentSpread: ['name', 'directives'],\n InlineFragment: ['typeCondition', 'directives', 'selectionSet'],\n FragmentDefinition: ['name',\n // Note: fragment variable definitions are experimental and may be changed\n // or removed in the future.\n 'variableDefinitions', 'typeCondition', 'directives', 'selectionSet'],\n IntValue: [],\n FloatValue: [],\n StringValue: [],\n BooleanValue: [],\n NullValue: [],\n EnumValue: [],\n ListValue: ['values'],\n ObjectValue: ['fields'],\n ObjectField: ['name', 'value'],\n Directive: ['name', 'arguments'],\n NamedType: ['name'],\n ListType: ['type'],\n NonNullType: ['type'],\n SchemaDefinition: ['description', 'directives', 'operationTypes'],\n OperationTypeDefinition: ['type'],\n ScalarTypeDefinition: ['description', 'name', 'directives'],\n ObjectTypeDefinition: ['description', 'name', 'interfaces', 'directives', 'fields'],\n FieldDefinition: ['description', 'name', 'arguments', 'type', 'directives'],\n InputValueDefinition: ['description', 'name', 'type', 'defaultValue', 'directives'],\n InterfaceTypeDefinition: ['description', 'name', 'interfaces', 'directives', 'fields'],\n UnionTypeDefinition: ['description', 'name', 'directives', 'types'],\n EnumTypeDefinition: ['description', 'name', 'directives', 'values'],\n EnumValueDefinition: ['description', 'name', 'directives'],\n InputObjectTypeDefinition: ['description', 'name', 'directives', 'fields'],\n DirectiveDefinition: ['description', 'name', 'arguments', 'locations'],\n SchemaExtension: ['directives', 'operationTypes'],\n ScalarTypeExtension: ['name', 'directives'],\n ObjectTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n InterfaceTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n UnionTypeExtension: ['name', 'directives', 'types'],\n EnumTypeExtension: ['name', 'directives', 'values'],\n InputObjectTypeExtension: ['name', 'directives', 'fields']\n};\nexport var BREAK = Object.freeze({});\n/**\n * visit() will walk through an AST using a depth-first traversal, calling\n * the visitor's enter function at each node in the traversal, and calling the\n * leave function after visiting that node and all of its child nodes.\n *\n * By returning different values from the enter and leave functions, the\n * behavior of the visitor can be altered, including skipping over a sub-tree of\n * the AST (by returning false), editing the AST by returning a value or null\n * to remove the value, or to stop the whole traversal by returning BREAK.\n *\n * When using visit() to edit an AST, the original AST will not be modified, and\n * a new version of the AST with the changes applied will be returned from the\n * visit function.\n *\n * const editedAST = visit(ast, {\n * enter(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: skip visiting this node\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * },\n * leave(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: no action\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * }\n * });\n *\n * Alternatively to providing enter() and leave() functions, a visitor can\n * instead provide functions named the same as the kinds of AST nodes, or\n * enter/leave visitors at a named key, leading to four permutations of the\n * visitor API:\n *\n * 1) Named visitors triggered when entering a node of a specific kind.\n *\n * visit(ast, {\n * Kind(node) {\n * // enter the \"Kind\" node\n * }\n * })\n *\n * 2) Named visitors that trigger upon entering and leaving a node of\n * a specific kind.\n *\n * visit(ast, {\n * Kind: {\n * enter(node) {\n * // enter the \"Kind\" node\n * }\n * leave(node) {\n * // leave the \"Kind\" node\n * }\n * }\n * })\n *\n * 3) Generic visitors that trigger upon entering and leaving any node.\n *\n * visit(ast, {\n * enter(node) {\n * // enter any node\n * },\n * leave(node) {\n * // leave any node\n * }\n * })\n *\n * 4) Parallel visitors for entering and leaving nodes of a specific kind.\n *\n * visit(ast, {\n * enter: {\n * Kind(node) {\n * // enter the \"Kind\" node\n * }\n * },\n * leave: {\n * Kind(node) {\n * // leave the \"Kind\" node\n * }\n * }\n * })\n */\n\nexport function visit(root, visitor) {\n var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys;\n\n /* eslint-disable no-undef-init */\n var stack = undefined;\n var inArray = Array.isArray(root);\n var keys = [root];\n var index = -1;\n var edits = [];\n var node = undefined;\n var key = undefined;\n var parent = undefined;\n var path = [];\n var ancestors = [];\n var newRoot = root;\n /* eslint-enable no-undef-init */\n\n do {\n index++;\n var isLeaving = index === keys.length;\n var isEdited = isLeaving && edits.length !== 0;\n if (isLeaving) {\n key = ancestors.length === 0 ? undefined : path[path.length - 1];\n node = parent;\n parent = ancestors.pop();\n if (isEdited) {\n if (inArray) {\n node = node.slice();\n } else {\n var clone = {};\n for (var _i2 = 0, _Object$keys2 = Object.keys(node); _i2 < _Object$keys2.length; _i2++) {\n var k = _Object$keys2[_i2];\n clone[k] = node[k];\n }\n node = clone;\n }\n var editOffset = 0;\n for (var ii = 0; ii < edits.length; ii++) {\n var editKey = edits[ii][0];\n var editValue = edits[ii][1];\n if (inArray) {\n editKey -= editOffset;\n }\n if (inArray && editValue === null) {\n node.splice(editKey, 1);\n editOffset++;\n } else {\n node[editKey] = editValue;\n }\n }\n }\n index = stack.index;\n keys = stack.keys;\n edits = stack.edits;\n inArray = stack.inArray;\n stack = stack.prev;\n } else {\n key = parent ? inArray ? index : keys[index] : undefined;\n node = parent ? parent[key] : newRoot;\n if (node === null || node === undefined) {\n continue;\n }\n if (parent) {\n path.push(key);\n }\n }\n var result = void 0;\n if (!Array.isArray(node)) {\n if (!isNode(node)) {\n throw new Error(\"Invalid AST Node: \".concat(inspect(node), \".\"));\n }\n var visitFn = getVisitFn(visitor, node.kind, isLeaving);\n if (visitFn) {\n result = visitFn.call(visitor, node, key, parent, path, ancestors);\n if (result === BREAK) {\n break;\n }\n if (result === false) {\n if (!isLeaving) {\n path.pop();\n continue;\n }\n } else if (result !== undefined) {\n edits.push([key, result]);\n if (!isLeaving) {\n if (isNode(result)) {\n node = result;\n } else {\n path.pop();\n continue;\n }\n }\n }\n }\n }\n if (result === undefined && isEdited) {\n edits.push([key, node]);\n }\n if (isLeaving) {\n path.pop();\n } else {\n var _visitorKeys$node$kin;\n stack = {\n inArray: inArray,\n index: index,\n keys: keys,\n edits: edits,\n prev: stack\n };\n inArray = Array.isArray(node);\n keys = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];\n index = -1;\n edits = [];\n if (parent) {\n ancestors.push(parent);\n }\n parent = node;\n }\n } while (stack !== undefined);\n if (edits.length !== 0) {\n newRoot = edits[edits.length - 1][1];\n }\n return newRoot;\n}\n/**\n * Creates a new visitor instance which delegates to many visitors to run in\n * parallel. Each visitor will be visited for each node before moving on.\n *\n * If a prior visitor edits a node, no following visitors will see that node.\n */\n\nexport function visitInParallel(visitors) {\n var skipping = new Array(visitors.length);\n return {\n enter: function enter(node) {\n for (var i = 0; i < visitors.length; i++) {\n if (skipping[i] == null) {\n var fn = getVisitFn(visitors[i], node.kind, /* isLeaving */\n false);\n if (fn) {\n var result = fn.apply(visitors[i], arguments);\n if (result === false) {\n skipping[i] = node;\n } else if (result === BREAK) {\n skipping[i] = BREAK;\n } else if (result !== undefined) {\n return result;\n }\n }\n }\n }\n },\n leave: function leave(node) {\n for (var i = 0; i < visitors.length; i++) {\n if (skipping[i] == null) {\n var fn = getVisitFn(visitors[i], node.kind, /* isLeaving */\n true);\n if (fn) {\n var result = fn.apply(visitors[i], arguments);\n if (result === BREAK) {\n skipping[i] = BREAK;\n } else if (result !== undefined && result !== false) {\n return result;\n }\n }\n } else if (skipping[i] === node) {\n skipping[i] = null;\n }\n }\n }\n };\n}\n/**\n * Given a visitor instance, if it is leaving or not, and a node kind, return\n * the function the visitor runtime should call.\n */\n\nexport function getVisitFn(visitor, kind, isLeaving) {\n var kindVisitor = visitor[kind];\n if (kindVisitor) {\n if (!isLeaving && typeof kindVisitor === 'function') {\n // { Kind() {} }\n return kindVisitor;\n }\n var kindSpecificVisitor = isLeaving ? kindVisitor.leave : kindVisitor.enter;\n if (typeof kindSpecificVisitor === 'function') {\n // { Kind: { enter() {}, leave() {} } }\n return kindSpecificVisitor;\n }\n } else {\n var specificVisitor = isLeaving ? visitor.leave : visitor.enter;\n if (specificVisitor) {\n if (typeof specificVisitor === 'function') {\n // { enter() {}, leave() {} }\n return specificVisitor;\n }\n var specificKindVisitor = specificVisitor[kind];\n if (typeof specificKindVisitor === 'function') {\n // { enter: { Kind() {} }, leave: { Kind() {} } }\n return specificKindVisitor;\n }\n }\n }\n}","import { visit } from \"./visitor.mjs\";\nimport { printBlockString } from \"./blockString.mjs\";\n/**\n * Converts an AST into a string, using one set of reasonable\n * formatting rules.\n */\n\nexport function print(ast) {\n return visit(ast, {\n leave: printDocASTReducer\n });\n}\nvar MAX_LINE_LENGTH = 80; // TODO: provide better type coverage in future\n\nvar printDocASTReducer = {\n Name: function Name(node) {\n return node.value;\n },\n Variable: function Variable(node) {\n return '$' + node.name;\n },\n // Document\n Document: function Document(node) {\n return join(node.definitions, '\\n\\n') + '\\n';\n },\n OperationDefinition: function OperationDefinition(node) {\n var op = node.operation;\n var name = node.name;\n var varDefs = wrap('(', join(node.variableDefinitions, ', '), ')');\n var directives = join(node.directives, ' ');\n var selectionSet = node.selectionSet; // Anonymous queries with no directives or variable definitions can use\n // the query short form.\n\n return !name && !directives && !varDefs && op === 'query' ? selectionSet : join([op, join([name, varDefs]), directives, selectionSet], ' ');\n },\n VariableDefinition: function VariableDefinition(_ref) {\n var variable = _ref.variable,\n type = _ref.type,\n defaultValue = _ref.defaultValue,\n directives = _ref.directives;\n return variable + ': ' + type + wrap(' = ', defaultValue) + wrap(' ', join(directives, ' '));\n },\n SelectionSet: function SelectionSet(_ref2) {\n var selections = _ref2.selections;\n return block(selections);\n },\n Field: function Field(_ref3) {\n var alias = _ref3.alias,\n name = _ref3.name,\n args = _ref3.arguments,\n directives = _ref3.directives,\n selectionSet = _ref3.selectionSet;\n var prefix = wrap('', alias, ': ') + name;\n var argsLine = prefix + wrap('(', join(args, ', '), ')');\n if (argsLine.length > MAX_LINE_LENGTH) {\n argsLine = prefix + wrap('(\\n', indent(join(args, '\\n')), '\\n)');\n }\n return join([argsLine, join(directives, ' '), selectionSet], ' ');\n },\n Argument: function Argument(_ref4) {\n var name = _ref4.name,\n value = _ref4.value;\n return name + ': ' + value;\n },\n // Fragments\n FragmentSpread: function FragmentSpread(_ref5) {\n var name = _ref5.name,\n directives = _ref5.directives;\n return '...' + name + wrap(' ', join(directives, ' '));\n },\n InlineFragment: function InlineFragment(_ref6) {\n var typeCondition = _ref6.typeCondition,\n directives = _ref6.directives,\n selectionSet = _ref6.selectionSet;\n return join(['...', wrap('on ', typeCondition), join(directives, ' '), selectionSet], ' ');\n },\n FragmentDefinition: function FragmentDefinition(_ref7) {\n var name = _ref7.name,\n typeCondition = _ref7.typeCondition,\n variableDefinitions = _ref7.variableDefinitions,\n directives = _ref7.directives,\n selectionSet = _ref7.selectionSet;\n return (\n // Note: fragment variable definitions are experimental and may be changed\n // or removed in the future.\n \"fragment \".concat(name).concat(wrap('(', join(variableDefinitions, ', '), ')'), \" \") + \"on \".concat(typeCondition, \" \").concat(wrap('', join(directives, ' '), ' ')) + selectionSet\n );\n },\n // Value\n IntValue: function IntValue(_ref8) {\n var value = _ref8.value;\n return value;\n },\n FloatValue: function FloatValue(_ref9) {\n var value = _ref9.value;\n return value;\n },\n StringValue: function StringValue(_ref10, key) {\n var value = _ref10.value,\n isBlockString = _ref10.block;\n return isBlockString ? printBlockString(value, key === 'description' ? '' : ' ') : JSON.stringify(value);\n },\n BooleanValue: function BooleanValue(_ref11) {\n var value = _ref11.value;\n return value ? 'true' : 'false';\n },\n NullValue: function NullValue() {\n return 'null';\n },\n EnumValue: function EnumValue(_ref12) {\n var value = _ref12.value;\n return value;\n },\n ListValue: function ListValue(_ref13) {\n var values = _ref13.values;\n return '[' + join(values, ', ') + ']';\n },\n ObjectValue: function ObjectValue(_ref14) {\n var fields = _ref14.fields;\n return '{' + join(fields, ', ') + '}';\n },\n ObjectField: function ObjectField(_ref15) {\n var name = _ref15.name,\n value = _ref15.value;\n return name + ': ' + value;\n },\n // Directive\n Directive: function Directive(_ref16) {\n var name = _ref16.name,\n args = _ref16.arguments;\n return '@' + name + wrap('(', join(args, ', '), ')');\n },\n // Type\n NamedType: function NamedType(_ref17) {\n var name = _ref17.name;\n return name;\n },\n ListType: function ListType(_ref18) {\n var type = _ref18.type;\n return '[' + type + ']';\n },\n NonNullType: function NonNullType(_ref19) {\n var type = _ref19.type;\n return type + '!';\n },\n // Type System Definitions\n SchemaDefinition: addDescription(function (_ref20) {\n var directives = _ref20.directives,\n operationTypes = _ref20.operationTypes;\n return join(['schema', join(directives, ' '), block(operationTypes)], ' ');\n }),\n OperationTypeDefinition: function OperationTypeDefinition(_ref21) {\n var operation = _ref21.operation,\n type = _ref21.type;\n return operation + ': ' + type;\n },\n ScalarTypeDefinition: addDescription(function (_ref22) {\n var name = _ref22.name,\n directives = _ref22.directives;\n return join(['scalar', name, join(directives, ' ')], ' ');\n }),\n ObjectTypeDefinition: addDescription(function (_ref23) {\n var name = _ref23.name,\n interfaces = _ref23.interfaces,\n directives = _ref23.directives,\n fields = _ref23.fields;\n return join(['type', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n }),\n FieldDefinition: addDescription(function (_ref24) {\n var name = _ref24.name,\n args = _ref24.arguments,\n type = _ref24.type,\n directives = _ref24.directives;\n return name + (hasMultilineItems(args) ? wrap('(\\n', indent(join(args, '\\n')), '\\n)') : wrap('(', join(args, ', '), ')')) + ': ' + type + wrap(' ', join(directives, ' '));\n }),\n InputValueDefinition: addDescription(function (_ref25) {\n var name = _ref25.name,\n type = _ref25.type,\n defaultValue = _ref25.defaultValue,\n directives = _ref25.directives;\n return join([name + ': ' + type, wrap('= ', defaultValue), join(directives, ' ')], ' ');\n }),\n InterfaceTypeDefinition: addDescription(function (_ref26) {\n var name = _ref26.name,\n interfaces = _ref26.interfaces,\n directives = _ref26.directives,\n fields = _ref26.fields;\n return join(['interface', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n }),\n UnionTypeDefinition: addDescription(function (_ref27) {\n var name = _ref27.name,\n directives = _ref27.directives,\n types = _ref27.types;\n return join(['union', name, join(directives, ' '), types && types.length !== 0 ? '= ' + join(types, ' | ') : ''], ' ');\n }),\n EnumTypeDefinition: addDescription(function (_ref28) {\n var name = _ref28.name,\n directives = _ref28.directives,\n values = _ref28.values;\n return join(['enum', name, join(directives, ' '), block(values)], ' ');\n }),\n EnumValueDefinition: addDescription(function (_ref29) {\n var name = _ref29.name,\n directives = _ref29.directives;\n return join([name, join(directives, ' ')], ' ');\n }),\n InputObjectTypeDefinition: addDescription(function (_ref30) {\n var name = _ref30.name,\n directives = _ref30.directives,\n fields = _ref30.fields;\n return join(['input', name, join(directives, ' '), block(fields)], ' ');\n }),\n DirectiveDefinition: addDescription(function (_ref31) {\n var name = _ref31.name,\n args = _ref31.arguments,\n repeatable = _ref31.repeatable,\n locations = _ref31.locations;\n return 'directive @' + name + (hasMultilineItems(args) ? wrap('(\\n', indent(join(args, '\\n')), '\\n)') : wrap('(', join(args, ', '), ')')) + (repeatable ? ' repeatable' : '') + ' on ' + join(locations, ' | ');\n }),\n SchemaExtension: function SchemaExtension(_ref32) {\n var directives = _ref32.directives,\n operationTypes = _ref32.operationTypes;\n return join(['extend schema', join(directives, ' '), block(operationTypes)], ' ');\n },\n ScalarTypeExtension: function ScalarTypeExtension(_ref33) {\n var name = _ref33.name,\n directives = _ref33.directives;\n return join(['extend scalar', name, join(directives, ' ')], ' ');\n },\n ObjectTypeExtension: function ObjectTypeExtension(_ref34) {\n var name = _ref34.name,\n interfaces = _ref34.interfaces,\n directives = _ref34.directives,\n fields = _ref34.fields;\n return join(['extend type', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n },\n InterfaceTypeExtension: function InterfaceTypeExtension(_ref35) {\n var name = _ref35.name,\n interfaces = _ref35.interfaces,\n directives = _ref35.directives,\n fields = _ref35.fields;\n return join(['extend interface', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n },\n UnionTypeExtension: function UnionTypeExtension(_ref36) {\n var name = _ref36.name,\n directives = _ref36.directives,\n types = _ref36.types;\n return join(['extend union', name, join(directives, ' '), types && types.length !== 0 ? '= ' + join(types, ' | ') : ''], ' ');\n },\n EnumTypeExtension: function EnumTypeExtension(_ref37) {\n var name = _ref37.name,\n directives = _ref37.directives,\n values = _ref37.values;\n return join(['extend enum', name, join(directives, ' '), block(values)], ' ');\n },\n InputObjectTypeExtension: function InputObjectTypeExtension(_ref38) {\n var name = _ref38.name,\n directives = _ref38.directives,\n fields = _ref38.fields;\n return join(['extend input', name, join(directives, ' '), block(fields)], ' ');\n }\n};\nfunction addDescription(cb) {\n return function (node) {\n return join([node.description, cb(node)], '\\n');\n };\n}\n/**\n * Given maybeArray, print an empty string if it is null or empty, otherwise\n * print all items together separated by separator if provided\n */\n\nfunction join(maybeArray) {\n var _maybeArray$filter$jo;\n var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter(function (x) {\n return x;\n }).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : '';\n}\n/**\n * Given array, print each item on its own line, wrapped in an\n * indented \"{ }\" block.\n */\n\nfunction block(array) {\n return wrap('{\\n', indent(join(array, '\\n')), '\\n}');\n}\n/**\n * If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.\n */\n\nfunction wrap(start, maybeString) {\n var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n return maybeString != null && maybeString !== '' ? start + maybeString + end : '';\n}\nfunction indent(str) {\n return wrap(' ', str.replace(/\\n/g, '\\n '));\n}\nfunction isMultiline(str) {\n return str.indexOf('\\n') !== -1;\n}\nfunction hasMultilineItems(maybeArray) {\n return maybeArray != null && maybeArray.some(isMultiline);\n}","import { Kind } from \"./kinds.mjs\";\nexport function isDefinitionNode(node) {\n return isExecutableDefinitionNode(node) || isTypeSystemDefinitionNode(node) || isTypeSystemExtensionNode(node);\n}\nexport function isExecutableDefinitionNode(node) {\n return node.kind === Kind.OPERATION_DEFINITION || node.kind === Kind.FRAGMENT_DEFINITION;\n}\nexport function isSelectionNode(node) {\n return node.kind === Kind.FIELD || node.kind === Kind.FRAGMENT_SPREAD || node.kind === Kind.INLINE_FRAGMENT;\n}\nexport function isValueNode(node) {\n return node.kind === Kind.VARIABLE || node.kind === Kind.INT || node.kind === Kind.FLOAT || node.kind === Kind.STRING || node.kind === Kind.BOOLEAN || node.kind === Kind.NULL || node.kind === Kind.ENUM || node.kind === Kind.LIST || node.kind === Kind.OBJECT;\n}\nexport function isTypeNode(node) {\n return node.kind === Kind.NAMED_TYPE || node.kind === Kind.LIST_TYPE || node.kind === Kind.NON_NULL_TYPE;\n}\nexport function isTypeSystemDefinitionNode(node) {\n return node.kind === Kind.SCHEMA_DEFINITION || isTypeDefinitionNode(node) || node.kind === Kind.DIRECTIVE_DEFINITION;\n}\nexport function isTypeDefinitionNode(node) {\n return node.kind === Kind.SCALAR_TYPE_DEFINITION || node.kind === Kind.OBJECT_TYPE_DEFINITION || node.kind === Kind.INTERFACE_TYPE_DEFINITION || node.kind === Kind.UNION_TYPE_DEFINITION || node.kind === Kind.ENUM_TYPE_DEFINITION || node.kind === Kind.INPUT_OBJECT_TYPE_DEFINITION;\n}\nexport function isTypeSystemExtensionNode(node) {\n return node.kind === Kind.SCHEMA_EXTENSION || isTypeExtensionNode(node);\n}\nexport function isTypeExtensionNode(node) {\n return node.kind === Kind.SCALAR_TYPE_EXTENSION || node.kind === Kind.OBJECT_TYPE_EXTENSION || node.kind === Kind.INTERFACE_TYPE_EXTENSION || node.kind === Kind.UNION_TYPE_EXTENSION || node.kind === Kind.ENUM_TYPE_EXTENSION || node.kind === Kind.INPUT_OBJECT_TYPE_EXTENSION;\n}","import { remove } from \"ts-invariant/process/index.js\";\nimport { Source } from 'graphql';\nexport function removeTemporaryGlobals() {\n return typeof Source === \"function\" ? remove() : remove();\n}\n","import { invariant, InvariantError } from \"ts-invariant\";\nimport DEV from \"./DEV.js\";\nexport { DEV };\nexport function checkDEV() {\n __DEV__ ? invariant(\"boolean\" === typeof DEV, DEV) : invariant(\"boolean\" === typeof DEV, 39);\n}\nimport { removeTemporaryGlobals } from \"./fix-graphql.js\";\nremoveTemporaryGlobals();\nexport { maybe } from \"./maybe.js\";\nexport { default as global } from \"./global.js\";\nexport { invariant, InvariantError };\ncheckDEV();\n","import { invariant } from \"../globals/index.js\";\nimport { visit, BREAK } from 'graphql';\nexport function shouldInclude(_a, variables) {\n var directives = _a.directives;\n if (!directives || !directives.length) {\n return true;\n }\n return getInclusionDirectives(directives).every(function (_a) {\n var directive = _a.directive,\n ifArgument = _a.ifArgument;\n var evaledValue = false;\n if (ifArgument.value.kind === 'Variable') {\n evaledValue = variables && variables[ifArgument.value.name.value];\n __DEV__ ? invariant(evaledValue !== void 0, \"Invalid variable referenced in @\".concat(directive.name.value, \" directive.\")) : invariant(evaledValue !== void 0, 40);\n } else {\n evaledValue = ifArgument.value.value;\n }\n return directive.name.value === 'skip' ? !evaledValue : evaledValue;\n });\n}\nexport function getDirectiveNames(root) {\n var names = [];\n visit(root, {\n Directive: function (node) {\n names.push(node.name.value);\n }\n });\n return names;\n}\nexport var hasAnyDirectives = function (names, root) {\n return hasDirectives(names, root, false);\n};\nexport var hasAllDirectives = function (names, root) {\n return hasDirectives(names, root, true);\n};\nexport function hasDirectives(names, root, all) {\n var nameSet = new Set(names);\n var uniqueCount = nameSet.size;\n visit(root, {\n Directive: function (node) {\n if (nameSet.delete(node.name.value) && (!all || !nameSet.size)) {\n return BREAK;\n }\n }\n });\n return all ? !nameSet.size : nameSet.size < uniqueCount;\n}\nexport function hasClientExports(document) {\n return document && hasDirectives(['client', 'export'], document, true);\n}\nfunction isInclusionDirective(_a) {\n var value = _a.name.value;\n return value === 'skip' || value === 'include';\n}\nexport function getInclusionDirectives(directives) {\n var result = [];\n if (directives && directives.length) {\n directives.forEach(function (directive) {\n if (!isInclusionDirective(directive)) return;\n var directiveArguments = directive.arguments;\n var directiveName = directive.name.value;\n __DEV__ ? invariant(directiveArguments && directiveArguments.length === 1, \"Incorrect number of arguments for the @\".concat(directiveName, \" directive.\")) : invariant(directiveArguments && directiveArguments.length === 1, 41);\n var ifArgument = directiveArguments[0];\n __DEV__ ? invariant(ifArgument.name && ifArgument.name.value === 'if', \"Invalid argument for the @\".concat(directiveName, \" directive.\")) : invariant(ifArgument.name && ifArgument.name.value === 'if', 42);\n var ifValue = ifArgument.value;\n __DEV__ ? invariant(ifValue && (ifValue.kind === 'Variable' || ifValue.kind === 'BooleanValue'), \"Argument for the @\".concat(directiveName, \" directive must be a variable or a boolean value.\")) : invariant(ifValue && (ifValue.kind === 'Variable' || ifValue.kind === 'BooleanValue'), 43);\n result.push({\n directive: directive,\n ifArgument: ifArgument\n });\n });\n }\n return result;\n}\n","import { __assign, __spreadArray } from \"tslib\";\nimport { invariant, InvariantError } from \"../globals/index.js\";\nexport function getFragmentQueryDocument(document, fragmentName) {\n var actualFragmentName = fragmentName;\n var fragments = [];\n document.definitions.forEach(function (definition) {\n if (definition.kind === 'OperationDefinition') {\n throw __DEV__ ? new InvariantError(\"Found a \".concat(definition.operation, \" operation\").concat(definition.name ? \" named '\".concat(definition.name.value, \"'\") : '', \". \") + 'No operations are allowed when using a fragment as a query. Only fragments are allowed.') : new InvariantError(44);\n }\n if (definition.kind === 'FragmentDefinition') {\n fragments.push(definition);\n }\n });\n if (typeof actualFragmentName === 'undefined') {\n __DEV__ ? invariant(fragments.length === 1, \"Found \".concat(fragments.length, \" fragments. `fragmentName` must be provided when there is not exactly 1 fragment.\")) : invariant(fragments.length === 1, 45);\n actualFragmentName = fragments[0].name.value;\n }\n var query = __assign(__assign({}, document), {\n definitions: __spreadArray([{\n kind: 'OperationDefinition',\n operation: 'query',\n selectionSet: {\n kind: 'SelectionSet',\n selections: [{\n kind: 'FragmentSpread',\n name: {\n kind: 'Name',\n value: actualFragmentName\n }\n }]\n }\n }], document.definitions, true)\n });\n return query;\n}\nexport function createFragmentMap(fragments) {\n if (fragments === void 0) {\n fragments = [];\n }\n var symTable = {};\n fragments.forEach(function (fragment) {\n symTable[fragment.name.value] = fragment;\n });\n return symTable;\n}\nexport function getFragmentFromSelection(selection, fragmentMap) {\n switch (selection.kind) {\n case 'InlineFragment':\n return selection;\n case 'FragmentSpread':\n {\n var fragmentName = selection.name.value;\n if (typeof fragmentMap === \"function\") {\n return fragmentMap(fragmentName);\n }\n var fragment = fragmentMap && fragmentMap[fragmentName];\n __DEV__ ? invariant(fragment, \"No fragment named \".concat(fragmentName)) : invariant(fragment, 46);\n return fragment || null;\n }\n default:\n return null;\n }\n}\n","export function isNonNullObject(obj) {\n return obj !== null && typeof obj === 'object';\n}\n","import { InvariantError } from \"../globals/index.js\";\nimport { isNonNullObject } from \"../common/objects.js\";\nimport { getFragmentFromSelection } from \"./fragments.js\";\nexport function makeReference(id) {\n return {\n __ref: String(id)\n };\n}\nexport function isReference(obj) {\n return Boolean(obj && typeof obj === 'object' && typeof obj.__ref === 'string');\n}\nexport function isDocumentNode(value) {\n return isNonNullObject(value) && value.kind === \"Document\" && Array.isArray(value.definitions);\n}\nfunction isStringValue(value) {\n return value.kind === 'StringValue';\n}\nfunction isBooleanValue(value) {\n return value.kind === 'BooleanValue';\n}\nfunction isIntValue(value) {\n return value.kind === 'IntValue';\n}\nfunction isFloatValue(value) {\n return value.kind === 'FloatValue';\n}\nfunction isVariable(value) {\n return value.kind === 'Variable';\n}\nfunction isObjectValue(value) {\n return value.kind === 'ObjectValue';\n}\nfunction isListValue(value) {\n return value.kind === 'ListValue';\n}\nfunction isEnumValue(value) {\n return value.kind === 'EnumValue';\n}\nfunction isNullValue(value) {\n return value.kind === 'NullValue';\n}\nexport function valueToObjectRepresentation(argObj, name, value, variables) {\n if (isIntValue(value) || isFloatValue(value)) {\n argObj[name.value] = Number(value.value);\n } else if (isBooleanValue(value) || isStringValue(value)) {\n argObj[name.value] = value.value;\n } else if (isObjectValue(value)) {\n var nestedArgObj_1 = {};\n value.fields.map(function (obj) {\n return valueToObjectRepresentation(nestedArgObj_1, obj.name, obj.value, variables);\n });\n argObj[name.value] = nestedArgObj_1;\n } else if (isVariable(value)) {\n var variableValue = (variables || {})[value.name.value];\n argObj[name.value] = variableValue;\n } else if (isListValue(value)) {\n argObj[name.value] = value.values.map(function (listValue) {\n var nestedArgArrayObj = {};\n valueToObjectRepresentation(nestedArgArrayObj, name, listValue, variables);\n return nestedArgArrayObj[name.value];\n });\n } else if (isEnumValue(value)) {\n argObj[name.value] = value.value;\n } else if (isNullValue(value)) {\n argObj[name.value] = null;\n } else {\n throw __DEV__ ? new InvariantError(\"The inline argument \\\"\".concat(name.value, \"\\\" of kind \\\"\").concat(value.kind, \"\\\"\") + 'is not supported. Use variables instead of inline arguments to ' + 'overcome this limitation.') : new InvariantError(55);\n }\n}\nexport function storeKeyNameFromField(field, variables) {\n var directivesObj = null;\n if (field.directives) {\n directivesObj = {};\n field.directives.forEach(function (directive) {\n directivesObj[directive.name.value] = {};\n if (directive.arguments) {\n directive.arguments.forEach(function (_a) {\n var name = _a.name,\n value = _a.value;\n return valueToObjectRepresentation(directivesObj[directive.name.value], name, value, variables);\n });\n }\n });\n }\n var argObj = null;\n if (field.arguments && field.arguments.length) {\n argObj = {};\n field.arguments.forEach(function (_a) {\n var name = _a.name,\n value = _a.value;\n return valueToObjectRepresentation(argObj, name, value, variables);\n });\n }\n return getStoreKeyName(field.name.value, argObj, directivesObj);\n}\nvar KNOWN_DIRECTIVES = ['connection', 'include', 'skip', 'client', 'rest', 'export'];\nexport var getStoreKeyName = Object.assign(function (fieldName, args, directives) {\n if (args && directives && directives['connection'] && directives['connection']['key']) {\n if (directives['connection']['filter'] && directives['connection']['filter'].length > 0) {\n var filterKeys = directives['connection']['filter'] ? directives['connection']['filter'] : [];\n filterKeys.sort();\n var filteredArgs_1 = {};\n filterKeys.forEach(function (key) {\n filteredArgs_1[key] = args[key];\n });\n return \"\".concat(directives['connection']['key'], \"(\").concat(stringify(filteredArgs_1), \")\");\n } else {\n return directives['connection']['key'];\n }\n }\n var completeFieldName = fieldName;\n if (args) {\n var stringifiedArgs = stringify(args);\n completeFieldName += \"(\".concat(stringifiedArgs, \")\");\n }\n if (directives) {\n Object.keys(directives).forEach(function (key) {\n if (KNOWN_DIRECTIVES.indexOf(key) !== -1) return;\n if (directives[key] && Object.keys(directives[key]).length) {\n completeFieldName += \"@\".concat(key, \"(\").concat(stringify(directives[key]), \")\");\n } else {\n completeFieldName += \"@\".concat(key);\n }\n });\n }\n return completeFieldName;\n}, {\n setStringify: function (s) {\n var previous = stringify;\n stringify = s;\n return previous;\n }\n});\nvar stringify = function defaultStringify(value) {\n return JSON.stringify(value, stringifyReplacer);\n};\nfunction stringifyReplacer(_key, value) {\n if (isNonNullObject(value) && !Array.isArray(value)) {\n value = Object.keys(value).sort().reduce(function (copy, key) {\n copy[key] = value[key];\n return copy;\n }, {});\n }\n return value;\n}\nexport function argumentsObjectFromField(field, variables) {\n if (field.arguments && field.arguments.length) {\n var argObj_1 = {};\n field.arguments.forEach(function (_a) {\n var name = _a.name,\n value = _a.value;\n return valueToObjectRepresentation(argObj_1, name, value, variables);\n });\n return argObj_1;\n }\n return null;\n}\nexport function resultKeyNameFromField(field) {\n return field.alias ? field.alias.value : field.name.value;\n}\nexport function getTypenameFromResult(result, selectionSet, fragmentMap) {\n if (typeof result.__typename === 'string') {\n return result.__typename;\n }\n for (var _i = 0, _a = selectionSet.selections; _i < _a.length; _i++) {\n var selection = _a[_i];\n if (isField(selection)) {\n if (selection.name.value === '__typename') {\n return result[resultKeyNameFromField(selection)];\n }\n } else {\n var typename = getTypenameFromResult(result, getFragmentFromSelection(selection, fragmentMap).selectionSet, fragmentMap);\n if (typeof typename === 'string') {\n return typename;\n }\n }\n }\n}\nexport function isField(selection) {\n return selection.kind === 'Field';\n}\nexport function isInlineFragment(selection) {\n return selection.kind === 'InlineFragment';\n}\n","import { invariant, InvariantError } from \"../globals/index.js\";\nimport { valueToObjectRepresentation } from \"./storeUtils.js\";\nexport function checkDocument(doc) {\n __DEV__ ? invariant(doc && doc.kind === 'Document', \"Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \\\"gql\\\" tag? http://docs.apollostack.com/apollo-client/core.html#gql\") : invariant(doc && doc.kind === 'Document', 47);\n var operations = doc.definitions.filter(function (d) {\n return d.kind !== 'FragmentDefinition';\n }).map(function (definition) {\n if (definition.kind !== 'OperationDefinition') {\n throw __DEV__ ? new InvariantError(\"Schema type definitions not allowed in queries. Found: \\\"\".concat(definition.kind, \"\\\"\")) : new InvariantError(48);\n }\n return definition;\n });\n __DEV__ ? invariant(operations.length <= 1, \"Ambiguous GraphQL document: contains \".concat(operations.length, \" operations\")) : invariant(operations.length <= 1, 49);\n return doc;\n}\nexport function getOperationDefinition(doc) {\n checkDocument(doc);\n return doc.definitions.filter(function (definition) {\n return definition.kind === 'OperationDefinition';\n })[0];\n}\nexport function getOperationName(doc) {\n return doc.definitions.filter(function (definition) {\n return definition.kind === 'OperationDefinition' && definition.name;\n }).map(function (x) {\n return x.name.value;\n })[0] || null;\n}\nexport function getFragmentDefinitions(doc) {\n return doc.definitions.filter(function (definition) {\n return definition.kind === 'FragmentDefinition';\n });\n}\nexport function getQueryDefinition(doc) {\n var queryDef = getOperationDefinition(doc);\n __DEV__ ? invariant(queryDef && queryDef.operation === 'query', 'Must contain a query definition.') : invariant(queryDef && queryDef.operation === 'query', 50);\n return queryDef;\n}\nexport function getFragmentDefinition(doc) {\n __DEV__ ? invariant(doc.kind === 'Document', \"Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \\\"gql\\\" tag? http://docs.apollostack.com/apollo-client/core.html#gql\") : invariant(doc.kind === 'Document', 51);\n __DEV__ ? invariant(doc.definitions.length <= 1, 'Fragment must have exactly one definition.') : invariant(doc.definitions.length <= 1, 52);\n var fragmentDef = doc.definitions[0];\n __DEV__ ? invariant(fragmentDef.kind === 'FragmentDefinition', 'Must be a fragment definition.') : invariant(fragmentDef.kind === 'FragmentDefinition', 53);\n return fragmentDef;\n}\nexport function getMainDefinition(queryDoc) {\n checkDocument(queryDoc);\n var fragmentDefinition;\n for (var _i = 0, _a = queryDoc.definitions; _i < _a.length; _i++) {\n var definition = _a[_i];\n if (definition.kind === 'OperationDefinition') {\n var operation = definition.operation;\n if (operation === 'query' || operation === 'mutation' || operation === 'subscription') {\n return definition;\n }\n }\n if (definition.kind === 'FragmentDefinition' && !fragmentDefinition) {\n fragmentDefinition = definition;\n }\n }\n if (fragmentDefinition) {\n return fragmentDefinition;\n }\n throw __DEV__ ? new InvariantError('Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.') : new InvariantError(54);\n}\nexport function getDefaultValues(definition) {\n var defaultValues = Object.create(null);\n var defs = definition && definition.variableDefinitions;\n if (defs && defs.length) {\n defs.forEach(function (def) {\n if (def.defaultValue) {\n valueToObjectRepresentation(defaultValues, def.variable.name, def.defaultValue);\n }\n });\n }\n return defaultValues;\n}\n","export function filterInPlace(array, test, context) {\n var target = 0;\n array.forEach(function (elem, i) {\n if (test.call(this, elem, i, array)) {\n array[target++] = elem;\n }\n }, context);\n array.length = target;\n return array;\n}\n","import { __assign, __spreadArray } from \"tslib\";\nimport { invariant } from \"../globals/index.js\";\nimport { visit } from 'graphql';\nimport { checkDocument, getOperationDefinition, getFragmentDefinition, getFragmentDefinitions, getMainDefinition } from \"./getFromAST.js\";\nimport { filterInPlace } from \"../common/filterInPlace.js\";\nimport { isField, isInlineFragment } from \"./storeUtils.js\";\nimport { createFragmentMap } from \"./fragments.js\";\nvar TYPENAME_FIELD = {\n kind: 'Field',\n name: {\n kind: 'Name',\n value: '__typename'\n }\n};\nfunction isEmpty(op, fragmentMap) {\n return !op || op.selectionSet.selections.every(function (selection) {\n return selection.kind === 'FragmentSpread' && isEmpty(fragmentMap[selection.name.value], fragmentMap);\n });\n}\nfunction nullIfDocIsEmpty(doc) {\n return isEmpty(getOperationDefinition(doc) || getFragmentDefinition(doc), createFragmentMap(getFragmentDefinitions(doc))) ? null : doc;\n}\nfunction getDirectiveMatcher(directives) {\n return function directiveMatcher(directive) {\n return directives.some(function (dir) {\n return dir.name && dir.name === directive.name.value || dir.test && dir.test(directive);\n });\n };\n}\nexport function removeDirectivesFromDocument(directives, doc) {\n var variablesInUse = Object.create(null);\n var variablesToRemove = [];\n var fragmentSpreadsInUse = Object.create(null);\n var fragmentSpreadsToRemove = [];\n var modifiedDoc = nullIfDocIsEmpty(visit(doc, {\n Variable: {\n enter: function (node, _key, parent) {\n if (parent.kind !== 'VariableDefinition') {\n variablesInUse[node.name.value] = true;\n }\n }\n },\n Field: {\n enter: function (node) {\n if (directives && node.directives) {\n var shouldRemoveField = directives.some(function (directive) {\n return directive.remove;\n });\n if (shouldRemoveField && node.directives && node.directives.some(getDirectiveMatcher(directives))) {\n if (node.arguments) {\n node.arguments.forEach(function (arg) {\n if (arg.value.kind === 'Variable') {\n variablesToRemove.push({\n name: arg.value.name.value\n });\n }\n });\n }\n if (node.selectionSet) {\n getAllFragmentSpreadsFromSelectionSet(node.selectionSet).forEach(function (frag) {\n fragmentSpreadsToRemove.push({\n name: frag.name.value\n });\n });\n }\n return null;\n }\n }\n }\n },\n FragmentSpread: {\n enter: function (node) {\n fragmentSpreadsInUse[node.name.value] = true;\n }\n },\n Directive: {\n enter: function (node) {\n if (getDirectiveMatcher(directives)(node)) {\n return null;\n }\n }\n }\n }));\n if (modifiedDoc && filterInPlace(variablesToRemove, function (v) {\n return !!v.name && !variablesInUse[v.name];\n }).length) {\n modifiedDoc = removeArgumentsFromDocument(variablesToRemove, modifiedDoc);\n }\n if (modifiedDoc && filterInPlace(fragmentSpreadsToRemove, function (fs) {\n return !!fs.name && !fragmentSpreadsInUse[fs.name];\n }).length) {\n modifiedDoc = removeFragmentSpreadFromDocument(fragmentSpreadsToRemove, modifiedDoc);\n }\n return modifiedDoc;\n}\nexport var addTypenameToDocument = Object.assign(function (doc) {\n return visit(doc, {\n SelectionSet: {\n enter: function (node, _key, parent) {\n if (parent && parent.kind === 'OperationDefinition') {\n return;\n }\n var selections = node.selections;\n if (!selections) {\n return;\n }\n var skip = selections.some(function (selection) {\n return isField(selection) && (selection.name.value === '__typename' || selection.name.value.lastIndexOf('__', 0) === 0);\n });\n if (skip) {\n return;\n }\n var field = parent;\n if (isField(field) && field.directives && field.directives.some(function (d) {\n return d.name.value === 'export';\n })) {\n return;\n }\n return __assign(__assign({}, node), {\n selections: __spreadArray(__spreadArray([], selections, true), [TYPENAME_FIELD], false)\n });\n }\n }\n });\n}, {\n added: function (field) {\n return field === TYPENAME_FIELD;\n }\n});\nvar connectionRemoveConfig = {\n test: function (directive) {\n var willRemove = directive.name.value === 'connection';\n if (willRemove) {\n if (!directive.arguments || !directive.arguments.some(function (arg) {\n return arg.name.value === 'key';\n })) {\n __DEV__ && invariant.warn('Removing an @connection directive even though it does not have a key. ' + 'You may want to use the key parameter to specify a store key.');\n }\n }\n return willRemove;\n }\n};\nexport function removeConnectionDirectiveFromDocument(doc) {\n return removeDirectivesFromDocument([connectionRemoveConfig], checkDocument(doc));\n}\nfunction hasDirectivesInSelectionSet(directives, selectionSet, nestedCheck) {\n if (nestedCheck === void 0) {\n nestedCheck = true;\n }\n return !!selectionSet && selectionSet.selections && selectionSet.selections.some(function (selection) {\n return hasDirectivesInSelection(directives, selection, nestedCheck);\n });\n}\nfunction hasDirectivesInSelection(directives, selection, nestedCheck) {\n if (nestedCheck === void 0) {\n nestedCheck = true;\n }\n if (!isField(selection)) {\n return true;\n }\n if (!selection.directives) {\n return false;\n }\n return selection.directives.some(getDirectiveMatcher(directives)) || nestedCheck && hasDirectivesInSelectionSet(directives, selection.selectionSet, nestedCheck);\n}\nfunction getArgumentMatcher(config) {\n return function argumentMatcher(argument) {\n return config.some(function (aConfig) {\n return argument.value && argument.value.kind === 'Variable' && argument.value.name && (aConfig.name === argument.value.name.value || aConfig.test && aConfig.test(argument));\n });\n };\n}\nexport function removeArgumentsFromDocument(config, doc) {\n var argMatcher = getArgumentMatcher(config);\n return nullIfDocIsEmpty(visit(doc, {\n OperationDefinition: {\n enter: function (node) {\n return __assign(__assign({}, node), {\n variableDefinitions: node.variableDefinitions ? node.variableDefinitions.filter(function (varDef) {\n return !config.some(function (arg) {\n return arg.name === varDef.variable.name.value;\n });\n }) : []\n });\n }\n },\n Field: {\n enter: function (node) {\n var shouldRemoveField = config.some(function (argConfig) {\n return argConfig.remove;\n });\n if (shouldRemoveField) {\n var argMatchCount_1 = 0;\n if (node.arguments) {\n node.arguments.forEach(function (arg) {\n if (argMatcher(arg)) {\n argMatchCount_1 += 1;\n }\n });\n }\n if (argMatchCount_1 === 1) {\n return null;\n }\n }\n }\n },\n Argument: {\n enter: function (node) {\n if (argMatcher(node)) {\n return null;\n }\n }\n }\n }));\n}\nexport function removeFragmentSpreadFromDocument(config, doc) {\n function enter(node) {\n if (config.some(function (def) {\n return def.name === node.name.value;\n })) {\n return null;\n }\n }\n return nullIfDocIsEmpty(visit(doc, {\n FragmentSpread: {\n enter: enter\n },\n FragmentDefinition: {\n enter: enter\n }\n }));\n}\nfunction getAllFragmentSpreadsFromSelectionSet(selectionSet) {\n var allFragments = [];\n selectionSet.selections.forEach(function (selection) {\n if ((isField(selection) || isInlineFragment(selection)) && selection.selectionSet) {\n getAllFragmentSpreadsFromSelectionSet(selection.selectionSet).forEach(function (frag) {\n return allFragments.push(frag);\n });\n } else if (selection.kind === 'FragmentSpread') {\n allFragments.push(selection);\n }\n });\n return allFragments;\n}\nexport function buildQueryFromSelectionSet(document) {\n var definition = getMainDefinition(document);\n var definitionOperation = definition.operation;\n if (definitionOperation === 'query') {\n return document;\n }\n var modifiedDoc = visit(document, {\n OperationDefinition: {\n enter: function (node) {\n return __assign(__assign({}, node), {\n operation: 'query'\n });\n }\n }\n });\n return modifiedDoc;\n}\nexport function removeClientSetsFromDocument(document) {\n checkDocument(document);\n var modifiedDoc = removeDirectivesFromDocument([{\n test: function (directive) {\n return directive.name.value === 'client';\n },\n remove: true\n }], document);\n if (modifiedDoc) {\n modifiedDoc = visit(modifiedDoc, {\n FragmentDefinition: {\n enter: function (node) {\n if (node.selectionSet) {\n var isTypenameOnly = node.selectionSet.selections.every(function (selection) {\n return isField(selection) && selection.name.value === '__typename';\n });\n if (isTypenameOnly) {\n return null;\n }\n }\n }\n }\n });\n }\n return modifiedDoc;\n}\n","import { __assign, __spreadArray } from \"tslib\";\nimport { isNonNullObject } from \"./objects.js\";\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nexport function mergeDeep() {\n var sources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n sources[_i] = arguments[_i];\n }\n return mergeDeepArray(sources);\n}\nexport function mergeDeepArray(sources) {\n var target = sources[0] || {};\n var count = sources.length;\n if (count > 1) {\n var merger = new DeepMerger();\n for (var i = 1; i < count; ++i) {\n target = merger.merge(target, sources[i]);\n }\n }\n return target;\n}\nvar defaultReconciler = function (target, source, property) {\n return this.merge(target[property], source[property]);\n};\nvar DeepMerger = function () {\n function DeepMerger(reconciler) {\n if (reconciler === void 0) {\n reconciler = defaultReconciler;\n }\n this.reconciler = reconciler;\n this.isObject = isNonNullObject;\n this.pastCopies = new Set();\n }\n DeepMerger.prototype.merge = function (target, source) {\n var _this = this;\n var context = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n context[_i - 2] = arguments[_i];\n }\n if (isNonNullObject(source) && isNonNullObject(target)) {\n Object.keys(source).forEach(function (sourceKey) {\n if (hasOwnProperty.call(target, sourceKey)) {\n var targetValue = target[sourceKey];\n if (source[sourceKey] !== targetValue) {\n var result = _this.reconciler.apply(_this, __spreadArray([target, source, sourceKey], context, false));\n if (result !== targetValue) {\n target = _this.shallowCopyForMerge(target);\n target[sourceKey] = result;\n }\n }\n } else {\n target = _this.shallowCopyForMerge(target);\n target[sourceKey] = source[sourceKey];\n }\n });\n return target;\n }\n return source;\n };\n DeepMerger.prototype.shallowCopyForMerge = function (value) {\n if (isNonNullObject(value)) {\n if (!this.pastCopies.has(value)) {\n if (Array.isArray(value)) {\n value = value.slice(0);\n } else {\n value = __assign({\n __proto__: Object.getPrototypeOf(value)\n }, value);\n }\n this.pastCopies.add(value);\n }\n }\n return value;\n };\n return DeepMerger;\n}();\nexport { DeepMerger };\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n if (it) return (it = it.call(o)).next.bind(it);\n if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n return function () {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\n// === Symbol Support ===\nvar hasSymbols = function () {\n return typeof Symbol === 'function';\n};\nvar hasSymbol = function (name) {\n return hasSymbols() && Boolean(Symbol[name]);\n};\nvar getSymbol = function (name) {\n return hasSymbol(name) ? Symbol[name] : '@@' + name;\n};\nif (hasSymbols() && !hasSymbol('observable')) {\n Symbol.observable = Symbol('observable');\n}\nvar SymbolIterator = getSymbol('iterator');\nvar SymbolObservable = getSymbol('observable');\nvar SymbolSpecies = getSymbol('species'); // === Abstract Operations ===\n\nfunction getMethod(obj, key) {\n var value = obj[key];\n if (value == null) return undefined;\n if (typeof value !== 'function') throw new TypeError(value + ' is not a function');\n return value;\n}\nfunction getSpecies(obj) {\n var ctor = obj.constructor;\n if (ctor !== undefined) {\n ctor = ctor[SymbolSpecies];\n if (ctor === null) {\n ctor = undefined;\n }\n }\n return ctor !== undefined ? ctor : Observable;\n}\nfunction isObservable(x) {\n return x instanceof Observable; // SPEC: Brand check\n}\nfunction hostReportError(e) {\n if (hostReportError.log) {\n hostReportError.log(e);\n } else {\n setTimeout(function () {\n throw e;\n });\n }\n}\nfunction enqueue(fn) {\n Promise.resolve().then(function () {\n try {\n fn();\n } catch (e) {\n hostReportError(e);\n }\n });\n}\nfunction cleanupSubscription(subscription) {\n var cleanup = subscription._cleanup;\n if (cleanup === undefined) return;\n subscription._cleanup = undefined;\n if (!cleanup) {\n return;\n }\n try {\n if (typeof cleanup === 'function') {\n cleanup();\n } else {\n var unsubscribe = getMethod(cleanup, 'unsubscribe');\n if (unsubscribe) {\n unsubscribe.call(cleanup);\n }\n }\n } catch (e) {\n hostReportError(e);\n }\n}\nfunction closeSubscription(subscription) {\n subscription._observer = undefined;\n subscription._queue = undefined;\n subscription._state = 'closed';\n}\nfunction flushSubscription(subscription) {\n var queue = subscription._queue;\n if (!queue) {\n return;\n }\n subscription._queue = undefined;\n subscription._state = 'ready';\n for (var i = 0; i < queue.length; ++i) {\n notifySubscription(subscription, queue[i].type, queue[i].value);\n if (subscription._state === 'closed') break;\n }\n}\nfunction notifySubscription(subscription, type, value) {\n subscription._state = 'running';\n var observer = subscription._observer;\n try {\n var m = getMethod(observer, type);\n switch (type) {\n case 'next':\n if (m) m.call(observer, value);\n break;\n case 'error':\n closeSubscription(subscription);\n if (m) m.call(observer, value);else throw value;\n break;\n case 'complete':\n closeSubscription(subscription);\n if (m) m.call(observer);\n break;\n }\n } catch (e) {\n hostReportError(e);\n }\n if (subscription._state === 'closed') cleanupSubscription(subscription);else if (subscription._state === 'running') subscription._state = 'ready';\n}\nfunction onNotify(subscription, type, value) {\n if (subscription._state === 'closed') return;\n if (subscription._state === 'buffering') {\n subscription._queue.push({\n type: type,\n value: value\n });\n return;\n }\n if (subscription._state !== 'ready') {\n subscription._state = 'buffering';\n subscription._queue = [{\n type: type,\n value: value\n }];\n enqueue(function () {\n return flushSubscription(subscription);\n });\n return;\n }\n notifySubscription(subscription, type, value);\n}\nvar Subscription = /*#__PURE__*/function () {\n function Subscription(observer, subscriber) {\n // ASSERT: observer is an object\n // ASSERT: subscriber is callable\n this._cleanup = undefined;\n this._observer = observer;\n this._queue = undefined;\n this._state = 'initializing';\n var subscriptionObserver = new SubscriptionObserver(this);\n try {\n this._cleanup = subscriber.call(undefined, subscriptionObserver);\n } catch (e) {\n subscriptionObserver.error(e);\n }\n if (this._state === 'initializing') this._state = 'ready';\n }\n var _proto = Subscription.prototype;\n _proto.unsubscribe = function unsubscribe() {\n if (this._state !== 'closed') {\n closeSubscription(this);\n cleanupSubscription(this);\n }\n };\n _createClass(Subscription, [{\n key: \"closed\",\n get: function () {\n return this._state === 'closed';\n }\n }]);\n return Subscription;\n}();\nvar SubscriptionObserver = /*#__PURE__*/function () {\n function SubscriptionObserver(subscription) {\n this._subscription = subscription;\n }\n var _proto2 = SubscriptionObserver.prototype;\n _proto2.next = function next(value) {\n onNotify(this._subscription, 'next', value);\n };\n _proto2.error = function error(value) {\n onNotify(this._subscription, 'error', value);\n };\n _proto2.complete = function complete() {\n onNotify(this._subscription, 'complete');\n };\n _createClass(SubscriptionObserver, [{\n key: \"closed\",\n get: function () {\n return this._subscription._state === 'closed';\n }\n }]);\n return SubscriptionObserver;\n}();\nvar Observable = /*#__PURE__*/function () {\n function Observable(subscriber) {\n if (!(this instanceof Observable)) throw new TypeError('Observable cannot be called as a function');\n if (typeof subscriber !== 'function') throw new TypeError('Observable initializer must be a function');\n this._subscriber = subscriber;\n }\n var _proto3 = Observable.prototype;\n _proto3.subscribe = function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n observer = {\n next: observer,\n error: arguments[1],\n complete: arguments[2]\n };\n }\n return new Subscription(observer, this._subscriber);\n };\n _proto3.forEach = function forEach(fn) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n if (typeof fn !== 'function') {\n reject(new TypeError(fn + ' is not a function'));\n return;\n }\n function done() {\n subscription.unsubscribe();\n resolve();\n }\n var subscription = _this.subscribe({\n next: function (value) {\n try {\n fn(value, done);\n } catch (e) {\n reject(e);\n subscription.unsubscribe();\n }\n },\n error: reject,\n complete: resolve\n });\n });\n };\n _proto3.map = function map(fn) {\n var _this2 = this;\n if (typeof fn !== 'function') throw new TypeError(fn + ' is not a function');\n var C = getSpecies(this);\n return new C(function (observer) {\n return _this2.subscribe({\n next: function (value) {\n try {\n value = fn(value);\n } catch (e) {\n return observer.error(e);\n }\n observer.next(value);\n },\n error: function (e) {\n observer.error(e);\n },\n complete: function () {\n observer.complete();\n }\n });\n });\n };\n _proto3.filter = function filter(fn) {\n var _this3 = this;\n if (typeof fn !== 'function') throw new TypeError(fn + ' is not a function');\n var C = getSpecies(this);\n return new C(function (observer) {\n return _this3.subscribe({\n next: function (value) {\n try {\n if (!fn(value)) return;\n } catch (e) {\n return observer.error(e);\n }\n observer.next(value);\n },\n error: function (e) {\n observer.error(e);\n },\n complete: function () {\n observer.complete();\n }\n });\n });\n };\n _proto3.reduce = function reduce(fn) {\n var _this4 = this;\n if (typeof fn !== 'function') throw new TypeError(fn + ' is not a function');\n var C = getSpecies(this);\n var hasSeed = arguments.length > 1;\n var hasValue = false;\n var seed = arguments[1];\n var acc = seed;\n return new C(function (observer) {\n return _this4.subscribe({\n next: function (value) {\n var first = !hasValue;\n hasValue = true;\n if (!first || hasSeed) {\n try {\n acc = fn(acc, value);\n } catch (e) {\n return observer.error(e);\n }\n } else {\n acc = value;\n }\n },\n error: function (e) {\n observer.error(e);\n },\n complete: function () {\n if (!hasValue && !hasSeed) return observer.error(new TypeError('Cannot reduce an empty sequence'));\n observer.next(acc);\n observer.complete();\n }\n });\n });\n };\n _proto3.concat = function concat() {\n var _this5 = this;\n for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {\n sources[_key] = arguments[_key];\n }\n var C = getSpecies(this);\n return new C(function (observer) {\n var subscription;\n var index = 0;\n function startNext(next) {\n subscription = next.subscribe({\n next: function (v) {\n observer.next(v);\n },\n error: function (e) {\n observer.error(e);\n },\n complete: function () {\n if (index === sources.length) {\n subscription = undefined;\n observer.complete();\n } else {\n startNext(C.from(sources[index++]));\n }\n }\n });\n }\n startNext(_this5);\n return function () {\n if (subscription) {\n subscription.unsubscribe();\n subscription = undefined;\n }\n };\n });\n };\n _proto3.flatMap = function flatMap(fn) {\n var _this6 = this;\n if (typeof fn !== 'function') throw new TypeError(fn + ' is not a function');\n var C = getSpecies(this);\n return new C(function (observer) {\n var subscriptions = [];\n var outer = _this6.subscribe({\n next: function (value) {\n if (fn) {\n try {\n value = fn(value);\n } catch (e) {\n return observer.error(e);\n }\n }\n var inner = C.from(value).subscribe({\n next: function (value) {\n observer.next(value);\n },\n error: function (e) {\n observer.error(e);\n },\n complete: function () {\n var i = subscriptions.indexOf(inner);\n if (i >= 0) subscriptions.splice(i, 1);\n completeIfDone();\n }\n });\n subscriptions.push(inner);\n },\n error: function (e) {\n observer.error(e);\n },\n complete: function () {\n completeIfDone();\n }\n });\n function completeIfDone() {\n if (outer.closed && subscriptions.length === 0) observer.complete();\n }\n return function () {\n subscriptions.forEach(function (s) {\n return s.unsubscribe();\n });\n outer.unsubscribe();\n };\n });\n };\n _proto3[SymbolObservable] = function () {\n return this;\n };\n Observable.from = function from(x) {\n var C = typeof this === 'function' ? this : Observable;\n if (x == null) throw new TypeError(x + ' is not an object');\n var method = getMethod(x, SymbolObservable);\n if (method) {\n var observable = method.call(x);\n if (Object(observable) !== observable) throw new TypeError(observable + ' is not an object');\n if (isObservable(observable) && observable.constructor === C) return observable;\n return new C(function (observer) {\n return observable.subscribe(observer);\n });\n }\n if (hasSymbol('iterator')) {\n method = getMethod(x, SymbolIterator);\n if (method) {\n return new C(function (observer) {\n enqueue(function () {\n if (observer.closed) return;\n for (var _iterator = _createForOfIteratorHelperLoose(method.call(x)), _step; !(_step = _iterator()).done;) {\n var item = _step.value;\n observer.next(item);\n if (observer.closed) return;\n }\n observer.complete();\n });\n });\n }\n }\n if (Array.isArray(x)) {\n return new C(function (observer) {\n enqueue(function () {\n if (observer.closed) return;\n for (var i = 0; i < x.length; ++i) {\n observer.next(x[i]);\n if (observer.closed) return;\n }\n observer.complete();\n });\n });\n }\n throw new TypeError(x + ' is not observable');\n };\n Observable.of = function of() {\n for (var _len2 = arguments.length, items = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n items[_key2] = arguments[_key2];\n }\n var C = typeof this === 'function' ? this : Observable;\n return new C(function (observer) {\n enqueue(function () {\n if (observer.closed) return;\n for (var i = 0; i < items.length; ++i) {\n observer.next(items[i]);\n if (observer.closed) return;\n }\n observer.complete();\n });\n });\n };\n _createClass(Observable, null, [{\n key: SymbolSpecies,\n get: function () {\n return this;\n }\n }]);\n return Observable;\n}();\nif (hasSymbols()) {\n Object.defineProperty(Observable, Symbol('extensions'), {\n value: {\n symbol: SymbolObservable,\n hostReportError: hostReportError\n },\n configurable: true\n });\n}\nexport { Observable };","export default function symbolObservablePonyfill(root) {\n var result;\n var Symbol = root.Symbol;\n if (typeof Symbol === 'function') {\n if (Symbol.observable) {\n result = Symbol.observable;\n } else {\n if (typeof Symbol.for === 'function') {\n // This just needs to be something that won't trample other user's Symbol.for use\n // It also will guide people to the source of their issues, if this is problematic.\n // META: It's a resource locator!\n result = Symbol.for('https://github.com/benlesh/symbol-observable');\n } else {\n // Symbol.for didn't exist! The best we can do at this point is a totally \n // unique symbol. Note that the string argument here is a descriptor, not\n // an identifier. This symbol is unique.\n result = Symbol('https://github.com/benlesh/symbol-observable');\n }\n try {\n Symbol.observable = result;\n } catch (err) {\n // Do nothing. In some environments, users have frozen `Symbol` for security reasons,\n // if it is frozen assigning to it will throw. In this case, we don't care, because\n // they will need to use the returned value from the ponyfill.\n }\n }\n } else {\n result = '@@observable';\n }\n return result;\n}\n;","/* global window */\nimport ponyfill from './ponyfill.js';\nvar root;\nif (typeof self !== 'undefined') {\n root = self;\n} else if (typeof window !== 'undefined') {\n root = window;\n} else if (typeof global !== 'undefined') {\n root = global;\n} else if (typeof module !== 'undefined') {\n root = module;\n} else {\n root = Function('return this')();\n}\nvar result = ponyfill(root);\nexport default result;","import { Observable } from 'zen-observable-ts';\nimport 'symbol-observable';\nvar prototype = Observable.prototype;\nvar fakeObsSymbol = '@@observable';\nif (!prototype[fakeObsSymbol]) {\n prototype[fakeObsSymbol] = function () {\n return this;\n };\n}\nexport { Observable };\n","var toString = Object.prototype.toString;\nexport function cloneDeep(value) {\n return cloneDeepHelper(value);\n}\nfunction cloneDeepHelper(val, seen) {\n switch (toString.call(val)) {\n case \"[object Array]\":\n {\n seen = seen || new Map();\n if (seen.has(val)) return seen.get(val);\n var copy_1 = val.slice(0);\n seen.set(val, copy_1);\n copy_1.forEach(function (child, i) {\n copy_1[i] = cloneDeepHelper(child, seen);\n });\n return copy_1;\n }\n case \"[object Object]\":\n {\n seen = seen || new Map();\n if (seen.has(val)) return seen.get(val);\n var copy_2 = Object.create(Object.getPrototypeOf(val));\n seen.set(val, copy_2);\n Object.keys(val).forEach(function (key) {\n copy_2[key] = cloneDeepHelper(val[key], seen);\n });\n return copy_2;\n }\n default:\n return val;\n }\n}\n","import \"../globals/index.js\";\nimport { isNonNullObject } from \"./objects.js\";\nfunction deepFreeze(value) {\n var workSet = new Set([value]);\n workSet.forEach(function (obj) {\n if (isNonNullObject(obj) && shallowFreeze(obj) === obj) {\n Object.getOwnPropertyNames(obj).forEach(function (name) {\n if (isNonNullObject(obj[name])) workSet.add(obj[name]);\n });\n }\n });\n return value;\n}\nfunction shallowFreeze(obj) {\n if (__DEV__ && !Object.isFrozen(obj)) {\n try {\n Object.freeze(obj);\n } catch (e) {\n if (e instanceof TypeError) return null;\n throw e;\n }\n }\n return obj;\n}\nexport function maybeDeepFreeze(obj) {\n if (__DEV__) {\n deepFreeze(obj);\n }\n return obj;\n}\n","export function iterateObserversSafely(observers, method, argument) {\n var observersWithMethod = [];\n observers.forEach(function (obs) {\n return obs[method] && observersWithMethod.push(obs);\n });\n observersWithMethod.forEach(function (obs) {\n return obs[method](argument);\n });\n}\n","import { Observable } from \"./Observable.js\";\nexport function asyncMap(observable, mapFn, catchFn) {\n return new Observable(function (observer) {\n var next = observer.next,\n error = observer.error,\n complete = observer.complete;\n var activeCallbackCount = 0;\n var completed = false;\n var promiseQueue = {\n then: function (callback) {\n return new Promise(function (resolve) {\n return resolve(callback());\n });\n }\n };\n function makeCallback(examiner, delegate) {\n if (examiner) {\n return function (arg) {\n ++activeCallbackCount;\n var both = function () {\n return examiner(arg);\n };\n promiseQueue = promiseQueue.then(both, both).then(function (result) {\n --activeCallbackCount;\n next && next.call(observer, result);\n if (completed) {\n handler.complete();\n }\n }, function (error) {\n --activeCallbackCount;\n throw error;\n }).catch(function (caught) {\n error && error.call(observer, caught);\n });\n };\n } else {\n return function (arg) {\n return delegate && delegate.call(observer, arg);\n };\n }\n }\n var handler = {\n next: makeCallback(mapFn, next),\n error: makeCallback(catchFn, error),\n complete: function () {\n completed = true;\n if (!activeCallbackCount) {\n complete && complete.call(observer);\n }\n }\n };\n var sub = observable.subscribe(handler);\n return function () {\n return sub.unsubscribe();\n };\n });\n}\n","import { maybe } from \"../globals/index.js\";\nexport var canUseWeakMap = typeof WeakMap === 'function' && maybe(function () {\n return navigator.product;\n}) !== 'ReactNative';\nexport var canUseWeakSet = typeof WeakSet === 'function';\nexport var canUseSymbol = typeof Symbol === 'function' && typeof Symbol.for === 'function';\nexport var canUseAsyncIteratorSymbol = canUseSymbol && Symbol.asyncIterator;\nexport var canUseDOM = typeof maybe(function () {\n return window.document.createElement;\n}) === \"function\";\nvar usingJSDOM = maybe(function () {\n return navigator.userAgent.indexOf(\"jsdom\") >= 0;\n}) || false;\nexport var canUseLayoutEffect = canUseDOM && !usingJSDOM;\n","import { Observable } from \"./Observable.js\";\nimport { canUseSymbol } from \"../common/canUse.js\";\nexport function fixObservableSubclass(subclass) {\n function set(key) {\n Object.defineProperty(subclass, key, {\n value: Observable\n });\n }\n if (canUseSymbol && Symbol.species) {\n set(Symbol.species);\n }\n set(\"@@species\");\n return subclass;\n}\n","import { __extends } from \"tslib\";\nimport { Observable } from \"./Observable.js\";\nimport { iterateObserversSafely } from \"./iteration.js\";\nimport { fixObservableSubclass } from \"./subclassing.js\";\nfunction isPromiseLike(value) {\n return value && typeof value.then === \"function\";\n}\nvar Concast = function (_super) {\n __extends(Concast, _super);\n function Concast(sources) {\n var _this = _super.call(this, function (observer) {\n _this.addObserver(observer);\n return function () {\n return _this.removeObserver(observer);\n };\n }) || this;\n _this.observers = new Set();\n _this.promise = new Promise(function (resolve, reject) {\n _this.resolve = resolve;\n _this.reject = reject;\n });\n _this.handlers = {\n next: function (result) {\n if (_this.sub !== null) {\n _this.latest = [\"next\", result];\n _this.notify(\"next\", result);\n iterateObserversSafely(_this.observers, \"next\", result);\n }\n },\n error: function (error) {\n var sub = _this.sub;\n if (sub !== null) {\n if (sub) setTimeout(function () {\n return sub.unsubscribe();\n });\n _this.sub = null;\n _this.latest = [\"error\", error];\n _this.reject(error);\n _this.notify(\"error\", error);\n iterateObserversSafely(_this.observers, \"error\", error);\n }\n },\n complete: function () {\n var sub = _this.sub;\n if (sub !== null) {\n var value = _this.sources.shift();\n if (!value) {\n if (sub) setTimeout(function () {\n return sub.unsubscribe();\n });\n _this.sub = null;\n if (_this.latest && _this.latest[0] === \"next\") {\n _this.resolve(_this.latest[1]);\n } else {\n _this.resolve();\n }\n _this.notify(\"complete\");\n iterateObserversSafely(_this.observers, \"complete\");\n } else if (isPromiseLike(value)) {\n value.then(function (obs) {\n return _this.sub = obs.subscribe(_this.handlers);\n });\n } else {\n _this.sub = value.subscribe(_this.handlers);\n }\n }\n }\n };\n _this.nextResultListeners = new Set();\n _this.cancel = function (reason) {\n _this.reject(reason);\n _this.sources = [];\n _this.handlers.complete();\n };\n _this.promise.catch(function (_) {});\n if (typeof sources === \"function\") {\n sources = [new Observable(sources)];\n }\n if (isPromiseLike(sources)) {\n sources.then(function (iterable) {\n return _this.start(iterable);\n }, _this.handlers.error);\n } else {\n _this.start(sources);\n }\n return _this;\n }\n Concast.prototype.start = function (sources) {\n if (this.sub !== void 0) return;\n this.sources = Array.from(sources);\n this.handlers.complete();\n };\n Concast.prototype.deliverLastMessage = function (observer) {\n if (this.latest) {\n var nextOrError = this.latest[0];\n var method = observer[nextOrError];\n if (method) {\n method.call(observer, this.latest[1]);\n }\n if (this.sub === null && nextOrError === \"next\" && observer.complete) {\n observer.complete();\n }\n }\n };\n Concast.prototype.addObserver = function (observer) {\n if (!this.observers.has(observer)) {\n this.deliverLastMessage(observer);\n this.observers.add(observer);\n }\n };\n Concast.prototype.removeObserver = function (observer) {\n if (this.observers.delete(observer) && this.observers.size < 1) {\n this.handlers.complete();\n }\n };\n Concast.prototype.notify = function (method, arg) {\n var nextResultListeners = this.nextResultListeners;\n if (nextResultListeners.size) {\n this.nextResultListeners = new Set();\n nextResultListeners.forEach(function (listener) {\n return listener(method, arg);\n });\n }\n };\n Concast.prototype.beforeNext = function (callback) {\n var called = false;\n this.nextResultListeners.add(function (method, arg) {\n if (!called) {\n called = true;\n callback(method, arg);\n }\n });\n };\n return Concast;\n}(Observable);\nexport { Concast };\nfixObservableSubclass(Concast);\n","export function isNonEmptyArray(value) {\n return Array.isArray(value) && value.length > 0;\n}\n","import { isNonEmptyArray } from \"./arrays.js\";\nimport { DeepMerger } from \"./mergeDeep.js\";\nexport function isExecutionPatchIncrementalResult(value) {\n return \"incremental\" in value;\n}\nexport function isExecutionPatchInitialResult(value) {\n return \"hasNext\" in value && \"data\" in value;\n}\nexport function isExecutionPatchResult(value) {\n return isExecutionPatchIncrementalResult(value) || isExecutionPatchInitialResult(value);\n}\nexport function mergeIncrementalData(prevResult, result) {\n var mergedData = prevResult;\n var merger = new DeepMerger();\n if (isExecutionPatchIncrementalResult(result) && isNonEmptyArray(result.incremental)) {\n result.incremental.forEach(function (_a) {\n var data = _a.data,\n path = _a.path;\n for (var i = path.length - 1; i >= 0; --i) {\n var key = path[i];\n var isNumericKey = !isNaN(+key);\n var parent_1 = isNumericKey ? [] : {};\n parent_1[key] = data;\n data = parent_1;\n }\n mergedData = merger.merge(mergedData, data);\n });\n }\n return mergedData;\n}\n","import { isNonEmptyArray } from \"./arrays.js\";\nimport { isExecutionPatchIncrementalResult } from \"./incrementalResult.js\";\nexport function graphQLResultHasError(result) {\n var errors = getGraphQLErrorsFromResult(result);\n return isNonEmptyArray(errors);\n}\nexport function getGraphQLErrorsFromResult(result) {\n var graphQLErrors = isNonEmptyArray(result.errors) ? result.errors.slice(0) : [];\n if (isExecutionPatchIncrementalResult(result) && isNonEmptyArray(result.incremental)) {\n result.incremental.forEach(function (incrementalResult) {\n if (incrementalResult.errors) {\n graphQLErrors.push.apply(graphQLErrors, incrementalResult.errors);\n }\n });\n }\n return graphQLErrors;\n}\n","export function compact() {\n var objects = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n objects[_i] = arguments[_i];\n }\n var result = Object.create(null);\n objects.forEach(function (obj) {\n if (!obj) return;\n Object.keys(obj).forEach(function (key) {\n var value = obj[key];\n if (value !== void 0) {\n result[key] = value;\n }\n });\n });\n return result;\n}\n","var prefixCounts = new Map();\nexport function makeUniqueId(prefix) {\n var count = prefixCounts.get(prefix) || 1;\n prefixCounts.set(prefix, count + 1);\n return \"\".concat(prefix, \":\").concat(count, \":\").concat(Math.random().toString(36).slice(2));\n}\n","import { makeUniqueId } from \"./makeUniqueId.js\";\nexport function stringifyForDisplay(value) {\n var undefId = makeUniqueId(\"stringifyForDisplay\");\n return JSON.stringify(value, function (key, value) {\n return value === void 0 ? undefId : value;\n }).split(JSON.stringify(undefId)).join(\"\");\n}\n","import { __assign } from \"tslib\";\nimport { compact } from \"./compact.js\";\nexport function mergeOptions(defaults, options) {\n return compact(defaults, options, options.variables && {\n variables: __assign(__assign({}, defaults && defaults.variables), options.variables)\n });\n}\n","import { Observable } from \"../../utilities/index.js\";\nexport function fromError(errorValue) {\n return new Observable(function (observer) {\n observer.error(errorValue);\n });\n}\n","export var throwServerError = function (response, result, message) {\n var error = new Error(message);\n error.name = 'ServerError';\n error.response = response;\n error.statusCode = response.status;\n error.result = result;\n throw error;\n};\n","import { InvariantError } from \"../../utilities/globals/index.js\";\nexport function validateOperation(operation) {\n var OPERATION_FIELDS = ['query', 'operationName', 'variables', 'extensions', 'context'];\n for (var _i = 0, _a = Object.keys(operation); _i < _a.length; _i++) {\n var key = _a[_i];\n if (OPERATION_FIELDS.indexOf(key) < 0) {\n throw __DEV__ ? new InvariantError(\"illegal argument: \".concat(key)) : new InvariantError(27);\n }\n }\n return operation;\n}\n","import { __assign } from \"tslib\";\nexport function createOperation(starting, operation) {\n var context = __assign({}, starting);\n var setContext = function (next) {\n if (typeof next === 'function') {\n context = __assign(__assign({}, context), next(context));\n } else {\n context = __assign(__assign({}, context), next);\n }\n };\n var getContext = function () {\n return __assign({}, context);\n };\n Object.defineProperty(operation, 'setContext', {\n enumerable: false,\n value: setContext\n });\n Object.defineProperty(operation, 'getContext', {\n enumerable: false,\n value: getContext\n });\n return operation;\n}\n","import { getOperationName } from \"../../utilities/index.js\";\nexport function transformOperation(operation) {\n var transformedOperation = {\n variables: operation.variables || {},\n extensions: operation.extensions || {},\n operationName: operation.operationName,\n query: operation.query\n };\n if (!transformedOperation.operationName) {\n transformedOperation.operationName = typeof transformedOperation.query !== 'string' ? getOperationName(transformedOperation.query) || undefined : '';\n }\n return transformedOperation;\n}\n","import { __extends } from \"tslib\";\nimport { InvariantError, invariant } from \"../../utilities/globals/index.js\";\nimport { Observable } from \"../../utilities/index.js\";\nimport { validateOperation, createOperation, transformOperation } from \"../utils/index.js\";\nfunction passthrough(op, forward) {\n return forward ? forward(op) : Observable.of();\n}\nfunction toLink(handler) {\n return typeof handler === 'function' ? new ApolloLink(handler) : handler;\n}\nfunction isTerminating(link) {\n return link.request.length <= 1;\n}\nvar LinkError = function (_super) {\n __extends(LinkError, _super);\n function LinkError(message, link) {\n var _this = _super.call(this, message) || this;\n _this.link = link;\n return _this;\n }\n return LinkError;\n}(Error);\nvar ApolloLink = function () {\n function ApolloLink(request) {\n if (request) this.request = request;\n }\n ApolloLink.empty = function () {\n return new ApolloLink(function () {\n return Observable.of();\n });\n };\n ApolloLink.from = function (links) {\n if (links.length === 0) return ApolloLink.empty();\n return links.map(toLink).reduce(function (x, y) {\n return x.concat(y);\n });\n };\n ApolloLink.split = function (test, left, right) {\n var leftLink = toLink(left);\n var rightLink = toLink(right || new ApolloLink(passthrough));\n if (isTerminating(leftLink) && isTerminating(rightLink)) {\n return new ApolloLink(function (operation) {\n return test(operation) ? leftLink.request(operation) || Observable.of() : rightLink.request(operation) || Observable.of();\n });\n } else {\n return new ApolloLink(function (operation, forward) {\n return test(operation) ? leftLink.request(operation, forward) || Observable.of() : rightLink.request(operation, forward) || Observable.of();\n });\n }\n };\n ApolloLink.execute = function (link, operation) {\n return link.request(createOperation(operation.context, transformOperation(validateOperation(operation)))) || Observable.of();\n };\n ApolloLink.concat = function (first, second) {\n var firstLink = toLink(first);\n if (isTerminating(firstLink)) {\n __DEV__ && invariant.warn(new LinkError(\"You are calling concat on a terminating link, which will have no effect\", firstLink));\n return firstLink;\n }\n var nextLink = toLink(second);\n if (isTerminating(nextLink)) {\n return new ApolloLink(function (operation) {\n return firstLink.request(operation, function (op) {\n return nextLink.request(op) || Observable.of();\n }) || Observable.of();\n });\n } else {\n return new ApolloLink(function (operation, forward) {\n return firstLink.request(operation, function (op) {\n return nextLink.request(op, forward) || Observable.of();\n }) || Observable.of();\n });\n }\n };\n ApolloLink.prototype.split = function (test, left, right) {\n return this.concat(ApolloLink.split(test, left, right || new ApolloLink(passthrough)));\n };\n ApolloLink.prototype.concat = function (next) {\n return ApolloLink.concat(this, next);\n };\n ApolloLink.prototype.request = function (operation, forward) {\n throw __DEV__ ? new InvariantError('request is not implemented') : new InvariantError(22);\n };\n ApolloLink.prototype.onError = function (error, observer) {\n if (observer && observer.error) {\n observer.error(error);\n return false;\n }\n throw error;\n };\n ApolloLink.prototype.setOnError = function (fn) {\n this.onError = fn;\n return this;\n };\n return ApolloLink;\n}();\nexport { ApolloLink };\n","import { ApolloLink } from \"./ApolloLink.js\";\nexport var execute = ApolloLink.execute;\n","export var version = '3.7.7';\n","import { canUseAsyncIteratorSymbol } from \"./canUse.js\";\nexport function isNodeResponse(value) {\n return !!value.body;\n}\nexport function isReadableStream(value) {\n return !!value.getReader;\n}\nexport function isAsyncIterableIterator(value) {\n return !!(canUseAsyncIteratorSymbol && value[Symbol.asyncIterator]);\n}\nexport function isStreamableBlob(value) {\n return !!value.stream;\n}\nexport function isBlob(value) {\n return !!value.arrayBuffer;\n}\nexport function isNodeReadableStream(value) {\n return !!value.pipe;\n}\n","export default function asyncIterator(source) {\n var _a;\n var iterator = source[Symbol.asyncIterator]();\n return _a = {\n next: function () {\n return iterator.next();\n }\n }, _a[Symbol.asyncIterator] = function () {\n return this;\n }, _a;\n}\n","import { canUseAsyncIteratorSymbol } from \"../../../utilities/index.js\";\nexport default function nodeStreamIterator(stream) {\n var cleanup = null;\n var error = null;\n var done = false;\n var data = [];\n var waiting = [];\n function onData(chunk) {\n if (error) return;\n if (waiting.length) {\n var shiftedArr = waiting.shift();\n if (Array.isArray(shiftedArr) && shiftedArr[0]) {\n return shiftedArr[0]({\n value: chunk,\n done: false\n });\n }\n }\n data.push(chunk);\n }\n function onError(err) {\n error = err;\n var all = waiting.slice();\n all.forEach(function (pair) {\n pair[1](err);\n });\n !cleanup || cleanup();\n }\n function onEnd() {\n done = true;\n var all = waiting.slice();\n all.forEach(function (pair) {\n pair[0]({\n value: undefined,\n done: true\n });\n });\n !cleanup || cleanup();\n }\n cleanup = function () {\n cleanup = null;\n stream.removeListener(\"data\", onData);\n stream.removeListener(\"error\", onError);\n stream.removeListener(\"end\", onEnd);\n stream.removeListener(\"finish\", onEnd);\n stream.removeListener(\"close\", onEnd);\n };\n stream.on(\"data\", onData);\n stream.on(\"error\", onError);\n stream.on(\"end\", onEnd);\n stream.on(\"finish\", onEnd);\n stream.on(\"close\", onEnd);\n function getNext() {\n return new Promise(function (resolve, reject) {\n if (error) return reject(error);\n if (data.length) return resolve({\n value: data.shift(),\n done: false\n });\n if (done) return resolve({\n value: undefined,\n done: true\n });\n waiting.push([resolve, reject]);\n });\n }\n var iterator = {\n next: function () {\n return getNext();\n }\n };\n if (canUseAsyncIteratorSymbol) {\n iterator[Symbol.asyncIterator] = function () {\n return this;\n };\n }\n return iterator;\n}\n","import { canUseAsyncIteratorSymbol } from \"../../../utilities/index.js\";\nexport default function promiseIterator(promise) {\n var resolved = false;\n var iterator = {\n next: function () {\n if (resolved) return Promise.resolve({\n value: undefined,\n done: true\n });\n resolved = true;\n return new Promise(function (resolve, reject) {\n promise.then(function (value) {\n resolve({\n value: value,\n done: false\n });\n }).catch(reject);\n });\n }\n };\n if (canUseAsyncIteratorSymbol) {\n iterator[Symbol.asyncIterator] = function () {\n return this;\n };\n }\n return iterator;\n}\n","import { canUseAsyncIteratorSymbol } from \"../../../utilities/index.js\";\nexport default function readerIterator(reader) {\n var iterator = {\n next: function () {\n return reader.read();\n }\n };\n if (canUseAsyncIteratorSymbol) {\n iterator[Symbol.asyncIterator] = function () {\n return this;\n };\n }\n return iterator;\n}\n","import { isAsyncIterableIterator, isBlob, isNodeResponse, isNodeReadableStream, isReadableStream, isStreamableBlob } from \"../../utilities/common/responseIterator.js\";\nimport asyncIterator from \"./iterators/async.js\";\nimport nodeStreamIterator from \"./iterators/nodeStream.js\";\nimport promiseIterator from \"./iterators/promise.js\";\nimport readerIterator from \"./iterators/reader.js\";\nexport function responseIterator(response) {\n var body = response;\n if (isNodeResponse(response)) body = response.body;\n if (isAsyncIterableIterator(body)) return asyncIterator(body);\n if (isReadableStream(body)) return readerIterator(body.getReader());\n if (isStreamableBlob(body)) {\n return readerIterator(body.stream().getReader());\n }\n if (isBlob(body)) return promiseIterator(body.arrayBuffer());\n if (isNodeReadableStream(body)) return nodeStreamIterator(body);\n throw new Error(\"Unknown body type for responseIterator. Please pass a streamable response.\");\n}\n","import { __awaiter, __generator } from \"tslib\";\nimport { responseIterator } from \"./responseIterator.js\";\nimport { throwServerError } from \"../utils/index.js\";\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nexport function readMultipartBody(response, observer) {\n var _a, _b, _c;\n return __awaiter(this, void 0, void 0, function () {\n var decoder, contentType, delimiter, boundaryVal, boundary, buffer, iterator, running, _d, value, done, chunk, bi, message, i, headers, contentType_1, body, result;\n var _e;\n return __generator(this, function (_f) {\n switch (_f.label) {\n case 0:\n if (TextDecoder === undefined) {\n throw new Error(\"TextDecoder must be defined in the environment: please import a polyfill.\");\n }\n decoder = new TextDecoder(\"utf-8\");\n contentType = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.get('content-type');\n delimiter = \"boundary=\";\n boundaryVal = (contentType === null || contentType === void 0 ? void 0 : contentType.includes(delimiter)) ? contentType === null || contentType === void 0 ? void 0 : contentType.substring((contentType === null || contentType === void 0 ? void 0 : contentType.indexOf(delimiter)) + delimiter.length).replace(/['\"]/g, \"\").replace(/\\;(.*)/gm, \"\").trim() : \"-\";\n boundary = \"--\".concat(boundaryVal);\n buffer = \"\";\n iterator = responseIterator(response);\n running = true;\n _f.label = 1;\n case 1:\n if (!running) return [3, 3];\n return [4, iterator.next()];\n case 2:\n _d = _f.sent(), value = _d.value, done = _d.done;\n chunk = typeof value === \"string\" ? value : decoder.decode(value);\n running = !done;\n buffer += chunk;\n bi = buffer.indexOf(boundary);\n while (bi > -1) {\n message = void 0;\n _e = [buffer.slice(0, bi), buffer.slice(bi + boundary.length)], message = _e[0], buffer = _e[1];\n if (message.trim()) {\n i = message.indexOf(\"\\r\\n\\r\\n\");\n headers = parseHeaders(message.slice(0, i));\n contentType_1 = headers[\"content-type\"];\n if (contentType_1 && contentType_1.toLowerCase().indexOf(\"application/json\") === -1) {\n throw new Error(\"Unsupported patch content type: application/json is required.\");\n }\n body = message.slice(i);\n try {\n result = parseJsonBody(response, body.replace(\"\\r\\n\", \"\"));\n if (Object.keys(result).length > 1 || \"data\" in result || \"incremental\" in result || \"errors\" in result) {\n (_b = observer.next) === null || _b === void 0 ? void 0 : _b.call(observer, result);\n }\n } catch (err) {\n handleError(err, observer);\n }\n }\n bi = buffer.indexOf(boundary);\n }\n return [3, 1];\n case 3:\n (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.call(observer);\n return [2];\n }\n });\n });\n}\nexport function parseHeaders(headerText) {\n var headersInit = {};\n headerText.split(\"\\n\").forEach(function (line) {\n var i = line.indexOf(\":\");\n if (i > -1) {\n var name_1 = line.slice(0, i).trim().toLowerCase();\n var value = line.slice(i + 1).trim();\n headersInit[name_1] = value;\n }\n });\n return headersInit;\n}\nexport function parseJsonBody(response, bodyText) {\n if (response.status >= 300) {\n var getResult = function () {\n try {\n return JSON.parse(bodyText);\n } catch (err) {\n return bodyText;\n }\n };\n throwServerError(response, getResult(), \"Response not successful: Received status code \".concat(response.status));\n }\n try {\n return JSON.parse(bodyText);\n } catch (err) {\n var parseError = err;\n parseError.name = \"ServerParseError\";\n parseError.response = response;\n parseError.statusCode = response.status;\n parseError.bodyText = bodyText;\n throw parseError;\n }\n}\nexport function handleError(err, observer) {\n var _a, _b;\n if (err.name === \"AbortError\") return;\n if (err.result && err.result.errors && err.result.data) {\n (_a = observer.next) === null || _a === void 0 ? void 0 : _a.call(observer, err.result);\n }\n (_b = observer.error) === null || _b === void 0 ? void 0 : _b.call(observer, err);\n}\nexport function readJsonBody(response, operation, observer) {\n parseAndCheckHttpResponse(operation)(response).then(function (result) {\n var _a, _b;\n (_a = observer.next) === null || _a === void 0 ? void 0 : _a.call(observer, result);\n (_b = observer.complete) === null || _b === void 0 ? void 0 : _b.call(observer);\n }).catch(function (err) {\n return handleError(err, observer);\n });\n}\nexport function parseAndCheckHttpResponse(operations) {\n return function (response) {\n return response.text().then(function (bodyText) {\n return parseJsonBody(response, bodyText);\n }).then(function (result) {\n if (response.status >= 300) {\n throwServerError(response, result, \"Response not successful: Received status code \".concat(response.status));\n }\n if (!Array.isArray(result) && !hasOwnProperty.call(result, \"data\") && !hasOwnProperty.call(result, \"errors\")) {\n throwServerError(response, result, \"Server response was missing for query '\".concat(Array.isArray(operations) ? operations.map(function (op) {\n return op.operationName;\n }) : operations.operationName, \"'.\"));\n }\n return result;\n });\n };\n}\n","import { InvariantError } from \"../../utilities/globals/index.js\";\nexport var serializeFetchParameter = function (p, label) {\n var serialized;\n try {\n serialized = JSON.stringify(p);\n } catch (e) {\n var parseError = __DEV__ ? new InvariantError(\"Network request failed. \".concat(label, \" is not serializable: \").concat(e.message)) : new InvariantError(24);\n parseError.parseError = e;\n throw parseError;\n }\n return serialized;\n};\n","import { __assign, __spreadArray } from \"tslib\";\nimport { print } from 'graphql';\n;\nvar defaultHttpOptions = {\n includeQuery: true,\n includeExtensions: false,\n preserveHeaderCase: false\n};\nvar defaultHeaders = {\n accept: '*/*',\n 'content-type': 'application/json'\n};\nvar defaultOptions = {\n method: 'POST'\n};\nexport var fallbackHttpConfig = {\n http: defaultHttpOptions,\n headers: defaultHeaders,\n options: defaultOptions\n};\nexport var defaultPrinter = function (ast, printer) {\n return printer(ast);\n};\nexport function selectHttpOptionsAndBody(operation, fallbackConfig) {\n var configs = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n configs[_i - 2] = arguments[_i];\n }\n configs.unshift(fallbackConfig);\n return selectHttpOptionsAndBodyInternal.apply(void 0, __spreadArray([operation, defaultPrinter], configs, false));\n}\nexport function selectHttpOptionsAndBodyInternal(operation, printer) {\n var configs = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n configs[_i - 2] = arguments[_i];\n }\n var options = {};\n var http = {};\n configs.forEach(function (config) {\n options = __assign(__assign(__assign({}, options), config.options), {\n headers: __assign(__assign({}, options.headers), config.headers)\n });\n if (config.credentials) {\n options.credentials = config.credentials;\n }\n http = __assign(__assign({}, http), config.http);\n });\n if (options.headers) {\n options.headers = removeDuplicateHeaders(options.headers, http.preserveHeaderCase);\n }\n var operationName = operation.operationName,\n extensions = operation.extensions,\n variables = operation.variables,\n query = operation.query;\n var body = {\n operationName: operationName,\n variables: variables\n };\n if (http.includeExtensions) body.extensions = extensions;\n if (http.includeQuery) body.query = printer(query, print);\n return {\n options: options,\n body: body\n };\n}\n;\nfunction removeDuplicateHeaders(headers, preserveHeaderCase) {\n if (!preserveHeaderCase) {\n var normalizedHeaders_1 = Object.create(null);\n Object.keys(Object(headers)).forEach(function (name) {\n normalizedHeaders_1[name.toLowerCase()] = headers[name];\n });\n return normalizedHeaders_1;\n }\n var headerData = Object.create(null);\n Object.keys(Object(headers)).forEach(function (name) {\n headerData[name.toLowerCase()] = {\n originalName: name,\n value: headers[name]\n };\n });\n var normalizedHeaders = Object.create(null);\n Object.keys(headerData).forEach(function (name) {\n normalizedHeaders[headerData[name].originalName] = headerData[name].value;\n });\n return normalizedHeaders;\n}\n","import { InvariantError } from \"../../utilities/globals/index.js\";\nexport var checkFetcher = function (fetcher) {\n if (!fetcher && typeof fetch === 'undefined') {\n throw __DEV__ ? new InvariantError(\"\\n\\\"fetch\\\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\\n\\nimport fetch from 'cross-fetch';\\nimport { ApolloClient, HttpLink } from '@apollo/client';\\nconst client = new ApolloClient({\\n link: new HttpLink({ uri: '/graphql', fetch })\\n});\\n \") : new InvariantError(23);\n }\n};\n","export var createSignalIfSupported = function () {\n if (typeof AbortController === 'undefined') return {\n controller: false,\n signal: false\n };\n var controller = new AbortController();\n var signal = controller.signal;\n return {\n controller: controller,\n signal: signal\n };\n};\n","export var selectURI = function (operation, fallbackURI) {\n var context = operation.getContext();\n var contextURI = context.uri;\n if (contextURI) {\n return contextURI;\n } else if (typeof fallbackURI === 'function') {\n return fallbackURI(operation);\n } else {\n return fallbackURI || '/graphql';\n }\n};\n","import { serializeFetchParameter } from \"./serializeFetchParameter.js\";\nexport function rewriteURIForGET(chosenURI, body) {\n var queryParams = [];\n var addQueryParam = function (key, value) {\n queryParams.push(\"\".concat(key, \"=\").concat(encodeURIComponent(value)));\n };\n if ('query' in body) {\n addQueryParam('query', body.query);\n }\n if (body.operationName) {\n addQueryParam('operationName', body.operationName);\n }\n if (body.variables) {\n var serializedVariables = void 0;\n try {\n serializedVariables = serializeFetchParameter(body.variables, 'Variables map');\n } catch (parseError) {\n return {\n parseError: parseError\n };\n }\n addQueryParam('variables', serializedVariables);\n }\n if (body.extensions) {\n var serializedExtensions = void 0;\n try {\n serializedExtensions = serializeFetchParameter(body.extensions, 'Extensions map');\n } catch (parseError) {\n return {\n parseError: parseError\n };\n }\n addQueryParam('extensions', serializedExtensions);\n }\n var fragment = '',\n preFragment = chosenURI;\n var fragmentStart = chosenURI.indexOf('#');\n if (fragmentStart !== -1) {\n fragment = chosenURI.substr(fragmentStart);\n preFragment = chosenURI.substr(0, fragmentStart);\n }\n var queryParamsPrefix = preFragment.indexOf('?') === -1 ? '?' : '&';\n var newURI = preFragment + queryParamsPrefix + queryParams.join('&') + fragment;\n return {\n newURI: newURI\n };\n}\n","import { __assign, __rest } from \"tslib\";\nimport \"../../utilities/globals/index.js\";\nimport { visit } from 'graphql';\nimport { ApolloLink } from \"../core/index.js\";\nimport { Observable, hasDirectives } from \"../../utilities/index.js\";\nimport { serializeFetchParameter } from \"./serializeFetchParameter.js\";\nimport { selectURI } from \"./selectURI.js\";\nimport { handleError, readMultipartBody, readJsonBody } from \"./parseAndCheckHttpResponse.js\";\nimport { checkFetcher } from \"./checkFetcher.js\";\nimport { selectHttpOptionsAndBodyInternal, defaultPrinter, fallbackHttpConfig } from \"./selectHttpOptionsAndBody.js\";\nimport { createSignalIfSupported } from \"./createSignalIfSupported.js\";\nimport { rewriteURIForGET } from \"./rewriteURIForGET.js\";\nimport { fromError } from \"../utils/index.js\";\nimport { maybe } from \"../../utilities/index.js\";\nvar backupFetch = maybe(function () {\n return fetch;\n});\nexport var createHttpLink = function (linkOptions) {\n if (linkOptions === void 0) {\n linkOptions = {};\n }\n var _a = linkOptions.uri,\n uri = _a === void 0 ? '/graphql' : _a,\n preferredFetch = linkOptions.fetch,\n _b = linkOptions.print,\n print = _b === void 0 ? defaultPrinter : _b,\n includeExtensions = linkOptions.includeExtensions,\n preserveHeaderCase = linkOptions.preserveHeaderCase,\n useGETForQueries = linkOptions.useGETForQueries,\n _c = linkOptions.includeUnusedVariables,\n includeUnusedVariables = _c === void 0 ? false : _c,\n requestOptions = __rest(linkOptions, [\"uri\", \"fetch\", \"print\", \"includeExtensions\", \"preserveHeaderCase\", \"useGETForQueries\", \"includeUnusedVariables\"]);\n if (__DEV__) {\n checkFetcher(preferredFetch || backupFetch);\n }\n var linkConfig = {\n http: {\n includeExtensions: includeExtensions,\n preserveHeaderCase: preserveHeaderCase\n },\n options: requestOptions.fetchOptions,\n credentials: requestOptions.credentials,\n headers: requestOptions.headers\n };\n return new ApolloLink(function (operation) {\n var chosenURI = selectURI(operation, uri);\n var context = operation.getContext();\n var clientAwarenessHeaders = {};\n if (context.clientAwareness) {\n var _a = context.clientAwareness,\n name_1 = _a.name,\n version = _a.version;\n if (name_1) {\n clientAwarenessHeaders['apollographql-client-name'] = name_1;\n }\n if (version) {\n clientAwarenessHeaders['apollographql-client-version'] = version;\n }\n }\n var contextHeaders = __assign(__assign({}, clientAwarenessHeaders), context.headers);\n var contextConfig = {\n http: context.http,\n options: context.fetchOptions,\n credentials: context.credentials,\n headers: contextHeaders\n };\n var _b = selectHttpOptionsAndBodyInternal(operation, print, fallbackHttpConfig, linkConfig, contextConfig),\n options = _b.options,\n body = _b.body;\n if (body.variables && !includeUnusedVariables) {\n var unusedNames_1 = new Set(Object.keys(body.variables));\n visit(operation.query, {\n Variable: function (node, _key, parent) {\n if (parent && parent.kind !== 'VariableDefinition') {\n unusedNames_1.delete(node.name.value);\n }\n }\n });\n if (unusedNames_1.size) {\n body.variables = __assign({}, body.variables);\n unusedNames_1.forEach(function (name) {\n delete body.variables[name];\n });\n }\n }\n var controller;\n if (!options.signal) {\n var _c = createSignalIfSupported(),\n _controller = _c.controller,\n signal = _c.signal;\n controller = _controller;\n if (controller) options.signal = signal;\n }\n var definitionIsMutation = function (d) {\n return d.kind === 'OperationDefinition' && d.operation === 'mutation';\n };\n if (useGETForQueries && !operation.query.definitions.some(definitionIsMutation)) {\n options.method = 'GET';\n }\n if (hasDirectives(['defer'], operation.query)) {\n options.headers = options.headers || {};\n options.headers.accept = \"multipart/mixed; deferSpec=20220824, application/json\";\n }\n if (options.method === 'GET') {\n var _d = rewriteURIForGET(chosenURI, body),\n newURI = _d.newURI,\n parseError = _d.parseError;\n if (parseError) {\n return fromError(parseError);\n }\n chosenURI = newURI;\n } else {\n try {\n options.body = serializeFetchParameter(body, 'Payload');\n } catch (parseError) {\n return fromError(parseError);\n }\n }\n return new Observable(function (observer) {\n var currentFetch = preferredFetch || maybe(function () {\n return fetch;\n }) || backupFetch;\n currentFetch(chosenURI, options).then(function (response) {\n var _a;\n operation.setContext({\n response: response\n });\n var ctype = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.get('content-type');\n if (ctype !== null && /^multipart\\/mixed/i.test(ctype)) {\n return readMultipartBody(response, observer);\n } else {\n return readJsonBody(response, operation, observer);\n }\n }).catch(function (err) {\n return handleError(err, observer);\n });\n return function () {\n if (controller) controller.abort();\n };\n });\n });\n};\n","import { __extends } from \"tslib\";\nimport { ApolloLink } from \"../core/index.js\";\nimport { createHttpLink } from \"./createHttpLink.js\";\nvar HttpLink = function (_super) {\n __extends(HttpLink, _super);\n function HttpLink(options) {\n if (options === void 0) {\n options = {};\n }\n var _this = _super.call(this, createHttpLink(options).request) || this;\n _this.options = options;\n return _this;\n }\n return HttpLink;\n}(ApolloLink);\nexport { HttpLink };\n","const {\n toString,\n hasOwnProperty\n} = Object.prototype;\nconst fnToStr = Function.prototype.toString;\nconst previousComparisons = new Map();\n/**\n * Performs a deep equality check on two JavaScript values, tolerating cycles.\n */\nexport function equal(a, b) {\n try {\n return check(a, b);\n } finally {\n previousComparisons.clear();\n }\n}\n// Allow default imports as well.\nexport default equal;\nfunction check(a, b) {\n // If the two values are strictly equal, our job is easy.\n if (a === b) {\n return true;\n }\n // Object.prototype.toString returns a representation of the runtime type of\n // the given value that is considerably more precise than typeof.\n const aTag = toString.call(a);\n const bTag = toString.call(b);\n // If the runtime types of a and b are different, they could maybe be equal\n // under some interpretation of equality, but for simplicity and performance\n // we just return false instead.\n if (aTag !== bTag) {\n return false;\n }\n switch (aTag) {\n case '[object Array]':\n // Arrays are a lot like other objects, but we can cheaply compare their\n // lengths as a short-cut before comparing their elements.\n if (a.length !== b.length) return false;\n // Fall through to object case...\n case '[object Object]':\n {\n if (previouslyCompared(a, b)) return true;\n const aKeys = definedKeys(a);\n const bKeys = definedKeys(b);\n // If `a` and `b` have a different number of enumerable keys, they\n // must be different.\n const keyCount = aKeys.length;\n if (keyCount !== bKeys.length) return false;\n // Now make sure they have the same keys.\n for (let k = 0; k < keyCount; ++k) {\n if (!hasOwnProperty.call(b, aKeys[k])) {\n return false;\n }\n }\n // Finally, check deep equality of all child properties.\n for (let k = 0; k < keyCount; ++k) {\n const key = aKeys[k];\n if (!check(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n case '[object Error]':\n return a.name === b.name && a.message === b.message;\n case '[object Number]':\n // Handle NaN, which is !== itself.\n if (a !== a) return b !== b;\n // Fall through to shared +a === +b case...\n case '[object Boolean]':\n case '[object Date]':\n return +a === +b;\n case '[object RegExp]':\n case '[object String]':\n return a == `${b}`;\n case '[object Map]':\n case '[object Set]':\n {\n if (a.size !== b.size) return false;\n if (previouslyCompared(a, b)) return true;\n const aIterator = a.entries();\n const isMap = aTag === '[object Map]';\n while (true) {\n const info = aIterator.next();\n if (info.done) break;\n // If a instanceof Set, aValue === aKey.\n const [aKey, aValue] = info.value;\n // So this works the same way for both Set and Map.\n if (!b.has(aKey)) {\n return false;\n }\n // However, we care about deep equality of values only when dealing\n // with Map structures.\n if (isMap && !check(aValue, b.get(aKey))) {\n return false;\n }\n }\n return true;\n }\n case '[object Uint16Array]':\n case '[object Uint8Array]': // Buffer, in Node.js.\n case '[object Uint32Array]':\n case '[object Int32Array]':\n case '[object Int8Array]':\n case '[object Int16Array]':\n case '[object ArrayBuffer]':\n // DataView doesn't need these conversions, but the equality check is\n // otherwise the same.\n a = new Uint8Array(a);\n b = new Uint8Array(b);\n // Fall through...\n case '[object DataView]':\n {\n let len = a.byteLength;\n if (len === b.byteLength) {\n while (len-- && a[len] === b[len]) {\n // Keep looping as long as the bytes are equal.\n }\n }\n return len === -1;\n }\n case '[object AsyncFunction]':\n case '[object GeneratorFunction]':\n case '[object AsyncGeneratorFunction]':\n case '[object Function]':\n {\n const aCode = fnToStr.call(a);\n if (aCode !== fnToStr.call(b)) {\n return false;\n }\n // We consider non-native functions equal if they have the same code\n // (native functions require === because their code is censored).\n // Note that this behavior is not entirely sound, since !== function\n // objects with the same code can behave differently depending on\n // their closure scope. However, any function can behave differently\n // depending on the values of its input arguments (including this)\n // and its calling context (including its closure scope), even\n // though the function object is === to itself; and it is entirely\n // possible for functions that are not === to behave exactly the\n // same under all conceivable circumstances. Because none of these\n // factors are statically decidable in JavaScript, JS function\n // equality is not well-defined. This ambiguity allows us to\n // consider the best possible heuristic among various imperfect\n // options, and equating non-native functions that have the same\n // code has enormous practical benefits, such as when comparing\n // functions that are repeatedly passed as fresh function\n // expressions within objects that are otherwise deeply equal. Since\n // any function created from the same syntactic expression (in the\n // same code location) will always stringify to the same code\n // according to fnToStr.call, we can reasonably expect these\n // repeatedly passed function expressions to have the same code, and\n // thus behave \"the same\" (with all the caveats mentioned above),\n // even though the runtime function objects are !== to one another.\n return !endsWith(aCode, nativeCodeSuffix);\n }\n }\n // Otherwise the values are not equal.\n return false;\n}\nfunction definedKeys(obj) {\n // Remember that the second argument to Array.prototype.filter will be\n // used as `this` within the callback function.\n return Object.keys(obj).filter(isDefinedKey, obj);\n}\nfunction isDefinedKey(key) {\n return this[key] !== void 0;\n}\nconst nativeCodeSuffix = \"{ [native code] }\";\nfunction endsWith(full, suffix) {\n const fromIndex = full.length - suffix.length;\n return fromIndex >= 0 && full.indexOf(suffix, fromIndex) === fromIndex;\n}\nfunction previouslyCompared(a, b) {\n // Though cyclic references can make an object graph appear infinite from the\n // perspective of a depth-first traversal, the graph still contains a finite\n // number of distinct object references. We use the previousComparisons cache\n // to avoid comparing the same pair of object references more than once, which\n // guarantees termination (even if we end up comparing every object in one\n // graph to every object in the other graph, which is extremely unlikely),\n // while still allowing weird isomorphic structures (like rings with different\n // lengths) a chance to pass the equality test.\n let bSet = previousComparisons.get(a);\n if (bSet) {\n // Return true here because we can be sure false will be returned somewhere\n // else if the objects are not equivalent.\n if (bSet.has(b)) return true;\n } else {\n previousComparisons.set(a, bSet = new Set());\n }\n bSet.add(b);\n return false;\n}\n","// A [trie](https://en.wikipedia.org/wiki/Trie) data structure that holds\n// object keys weakly, yet can also hold non-object keys, unlike the\n// native `WeakMap`.\n// If no makeData function is supplied, the looked-up data will be an empty,\n// null-prototype Object.\nvar defaultMakeData = function () {\n return Object.create(null);\n};\n// Useful for processing arguments objects as well as arrays.\nvar _a = Array.prototype,\n forEach = _a.forEach,\n slice = _a.slice;\nvar Trie = /** @class */function () {\n function Trie(weakness, makeData) {\n if (weakness === void 0) {\n weakness = true;\n }\n if (makeData === void 0) {\n makeData = defaultMakeData;\n }\n this.weakness = weakness;\n this.makeData = makeData;\n }\n Trie.prototype.lookup = function () {\n var array = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n array[_i] = arguments[_i];\n }\n return this.lookupArray(array);\n };\n Trie.prototype.lookupArray = function (array) {\n var node = this;\n forEach.call(array, function (key) {\n return node = node.getChildTrie(key);\n });\n return node.data || (node.data = this.makeData(slice.call(array)));\n };\n Trie.prototype.getChildTrie = function (key) {\n var map = this.weakness && isObjRef(key) ? this.weak || (this.weak = new WeakMap()) : this.strong || (this.strong = new Map());\n var child = map.get(key);\n if (!child) map.set(key, child = new Trie(this.weakness, this.makeData));\n return child;\n };\n return Trie;\n}();\nfunction isObjRef(value) {\n switch (typeof value) {\n case \"object\":\n if (value === null) break;\n // Fall through to return true...\n case \"function\":\n return true;\n }\n return false;\n}\nexport { Trie };\n","// This currentContext variable will only be used if the makeSlotClass\n// function is called, which happens only if this is the first copy of the\n// @wry/context package to be imported.\nlet currentContext = null;\n// This unique internal object is used to denote the absence of a value\n// for a given Slot, and is never exposed to outside code.\nconst MISSING_VALUE = {};\nlet idCounter = 1;\n// Although we can't do anything about the cost of duplicated code from\n// accidentally bundling multiple copies of the @wry/context package, we can\n// avoid creating the Slot class more than once using makeSlotClass.\nconst makeSlotClass = () => class Slot {\n constructor() {\n // If you have a Slot object, you can find out its slot.id, but you cannot\n // guess the slot.id of a Slot you don't have access to, thanks to the\n // randomized suffix.\n this.id = [\"slot\", idCounter++, Date.now(), Math.random().toString(36).slice(2)].join(\":\");\n }\n hasValue() {\n for (let context = currentContext; context; context = context.parent) {\n // We use the Slot object iself as a key to its value, which means the\n // value cannot be obtained without a reference to the Slot object.\n if (this.id in context.slots) {\n const value = context.slots[this.id];\n if (value === MISSING_VALUE) break;\n if (context !== currentContext) {\n // Cache the value in currentContext.slots so the next lookup will\n // be faster. This caching is safe because the tree of contexts and\n // the values of the slots are logically immutable.\n currentContext.slots[this.id] = value;\n }\n return true;\n }\n }\n if (currentContext) {\n // If a value was not found for this Slot, it's never going to be found\n // no matter how many times we look it up, so we might as well cache\n // the absence of the value, too.\n currentContext.slots[this.id] = MISSING_VALUE;\n }\n return false;\n }\n getValue() {\n if (this.hasValue()) {\n return currentContext.slots[this.id];\n }\n }\n withValue(value, callback,\n // Given the prevalence of arrow functions, specifying arguments is likely\n // to be much more common than specifying `this`, hence this ordering:\n args, thisArg) {\n const slots = {\n __proto__: null,\n [this.id]: value\n };\n const parent = currentContext;\n currentContext = {\n parent,\n slots\n };\n try {\n // Function.prototype.apply allows the arguments array argument to be\n // omitted or undefined, so args! is fine here.\n return callback.apply(thisArg, args);\n } finally {\n currentContext = parent;\n }\n }\n // Capture the current context and wrap a callback function so that it\n // reestablishes the captured context when called.\n static bind(callback) {\n const context = currentContext;\n return function () {\n const saved = currentContext;\n try {\n currentContext = context;\n return callback.apply(this, arguments);\n } finally {\n currentContext = saved;\n }\n };\n }\n // Immediately run a callback function without any captured context.\n static noContext(callback,\n // Given the prevalence of arrow functions, specifying arguments is likely\n // to be much more common than specifying `this`, hence this ordering:\n args, thisArg) {\n if (currentContext) {\n const saved = currentContext;\n try {\n currentContext = null;\n // Function.prototype.apply allows the arguments array argument to be\n // omitted or undefined, so args! is fine here.\n return callback.apply(thisArg, args);\n } finally {\n currentContext = saved;\n }\n } else {\n return callback.apply(thisArg, args);\n }\n }\n};\nfunction maybe(fn) {\n try {\n return fn();\n } catch (ignored) {}\n}\n// We store a single global implementation of the Slot class as a permanent\n// non-enumerable property of the globalThis object. This obfuscation does\n// nothing to prevent access to the Slot class, but at least it ensures the\n// implementation (i.e. currentContext) cannot be tampered with, and all copies\n// of the @wry/context package (hopefully just one) will share the same Slot\n// implementation. Since the first copy of the @wry/context package to be\n// imported wins, this technique imposes a steep cost for any future breaking\n// changes to the Slot class.\nconst globalKey = \"@wry/context:Slot\";\nconst host =\n// Prefer globalThis when available.\n// https://github.com/benjamn/wryware/issues/347\nmaybe(() => globalThis) ||\n// Fall back to global, which works in Node.js and may be converted by some\n// bundlers to the appropriate identifier (window, self, ...) depending on the\n// bundling target. https://github.com/endojs/endo/issues/576#issuecomment-1178515224\nmaybe(() => global) ||\n// Otherwise, use a dummy host that's local to this module. We used to fall\n// back to using the Array constructor as a namespace, but that was flagged in\n// https://github.com/benjamn/wryware/issues/347, and can be avoided.\nObject.create(null);\n// Whichever globalHost we're using, make TypeScript happy about the additional\n// globalKey property.\nconst globalHost = host;\nexport const Slot = globalHost[globalKey] ||\n// Earlier versions of this package stored the globalKey property on the Array\n// constructor, so we check there as well, to prevent Slot class duplication.\nArray[globalKey] || function (Slot) {\n try {\n Object.defineProperty(globalHost, globalKey, {\n value: Slot,\n enumerable: false,\n writable: false,\n // When it was possible for globalHost to be the Array constructor (a\n // legacy Slot dedup strategy), it was important for the property to be\n // configurable:true so it could be deleted. That does not seem to be as\n // important when globalHost is the global object, but I don't want to\n // cause similar problems again, and configurable:true seems safest.\n // https://github.com/endojs/endo/issues/576#issuecomment-1178274008\n configurable: true\n });\n } finally {\n return Slot;\n }\n}(makeSlotClass());\n","import { Slot } from \"./slot.js\";\nexport { Slot };\nexport const {\n bind,\n noContext\n} = Slot;\n// Like global.setTimeout, except the callback runs with captured context.\nexport { setTimeoutWithContext as setTimeout };\nfunction setTimeoutWithContext(callback, delay) {\n return setTimeout(bind(callback), delay);\n}\n// Turn any generator function into an async function (using yield instead\n// of await), with context automatically preserved across yields.\nexport function asyncFromGen(genFn) {\n return function () {\n const gen = genFn.apply(this, arguments);\n const boundNext = bind(gen.next);\n const boundThrow = bind(gen.throw);\n return new Promise((resolve, reject) => {\n function invoke(method, argument) {\n try {\n var result = method.call(gen, argument);\n } catch (error) {\n return reject(error);\n }\n const next = result.done ? resolve : invokeNext;\n if (isPromiseLike(result.value)) {\n result.value.then(next, result.done ? reject : invokeThrow);\n } else {\n next(result.value);\n }\n }\n const invokeNext = value => invoke(boundNext, value);\n const invokeThrow = error => invoke(boundThrow, error);\n invokeNext();\n });\n };\n}\nfunction isPromiseLike(value) {\n return value && typeof value.then === \"function\";\n}\n// If you use the fibers npm package to implement coroutines in Node.js,\n// you should call this function at least once to ensure context management\n// remains coherent across any yields.\nconst wrappedFibers = [];\nexport function wrapYieldingFiberMethods(Fiber) {\n // There can be only one implementation of Fiber per process, so this array\n // should never grow longer than one element.\n if (wrappedFibers.indexOf(Fiber) < 0) {\n const wrap = (obj, method) => {\n const fn = obj[method];\n obj[method] = function () {\n return noContext(fn, arguments, this);\n };\n };\n // These methods can yield, according to\n // https://github.com/laverdet/node-fibers/blob/ddebed9b8ae3883e57f822e2108e6943e5c8d2a8/fibers.js#L97-L100\n wrap(Fiber, \"yield\");\n wrap(Fiber.prototype, \"run\");\n wrap(Fiber.prototype, \"throwInto\");\n wrappedFibers.push(Fiber);\n }\n return Fiber;\n}\n","import { Trie } from '@wry/trie';\nexport { Trie as KeyTrie } from '@wry/trie';\nimport { Slot } from '@wry/context';\nexport { asyncFromGen, bind as bindContext, noContext, setTimeout } from '@wry/context';\nfunction defaultDispose() {}\nvar Cache = /** @class */function () {\n function Cache(max, dispose) {\n if (max === void 0) {\n max = Infinity;\n }\n if (dispose === void 0) {\n dispose = defaultDispose;\n }\n this.max = max;\n this.dispose = dispose;\n this.map = new Map();\n this.newest = null;\n this.oldest = null;\n }\n Cache.prototype.has = function (key) {\n return this.map.has(key);\n };\n Cache.prototype.get = function (key) {\n var node = this.getNode(key);\n return node && node.value;\n };\n Cache.prototype.getNode = function (key) {\n var node = this.map.get(key);\n if (node && node !== this.newest) {\n var older = node.older,\n newer = node.newer;\n if (newer) {\n newer.older = older;\n }\n if (older) {\n older.newer = newer;\n }\n node.older = this.newest;\n node.older.newer = node;\n node.newer = null;\n this.newest = node;\n if (node === this.oldest) {\n this.oldest = newer;\n }\n }\n return node;\n };\n Cache.prototype.set = function (key, value) {\n var node = this.getNode(key);\n if (node) {\n return node.value = value;\n }\n node = {\n key: key,\n value: value,\n newer: null,\n older: this.newest\n };\n if (this.newest) {\n this.newest.newer = node;\n }\n this.newest = node;\n this.oldest = this.oldest || node;\n this.map.set(key, node);\n return node.value;\n };\n Cache.prototype.clean = function () {\n while (this.oldest && this.map.size > this.max) {\n this.delete(this.oldest.key);\n }\n };\n Cache.prototype.delete = function (key) {\n var node = this.map.get(key);\n if (node) {\n if (node === this.newest) {\n this.newest = node.older;\n }\n if (node === this.oldest) {\n this.oldest = node.newer;\n }\n if (node.newer) {\n node.newer.older = node.older;\n }\n if (node.older) {\n node.older.newer = node.newer;\n }\n this.map.delete(key);\n this.dispose(node.value, key);\n return true;\n }\n return false;\n };\n return Cache;\n}();\nvar parentEntrySlot = new Slot();\nvar _a;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar\n// This Array.from polyfill is restricted to working with Set for now,\n// but we can improve the polyfill and add other input types, as needed. Note\n// that this fallback implementation will only be used if the host environment\n// does not support a native Array.from function. In most modern JS runtimes,\n// the toArray function exported here will be === Array.from.\ntoArray = (_a = Array.from, _a === void 0 ? function (collection) {\n var array = [];\n collection.forEach(function (item) {\n return array.push(item);\n });\n return array;\n} : _a);\nfunction maybeUnsubscribe(entryOrDep) {\n var unsubscribe = entryOrDep.unsubscribe;\n if (typeof unsubscribe === \"function\") {\n entryOrDep.unsubscribe = void 0;\n unsubscribe();\n }\n}\nvar emptySetPool = [];\nvar POOL_TARGET_SIZE = 100;\n// Since this package might be used browsers, we should avoid using the\n// Node built-in assert module.\nfunction assert(condition, optionalMessage) {\n if (!condition) {\n throw new Error(optionalMessage || \"assertion failure\");\n }\n}\nfunction valueIs(a, b) {\n var len = a.length;\n return (\n // Unknown values are not equal to each other.\n len > 0 &&\n // Both values must be ordinary (or both exceptional) to be equal.\n len === b.length &&\n // The underlying value or exception must be the same.\n a[len - 1] === b[len - 1]\n );\n}\nfunction valueGet(value) {\n switch (value.length) {\n case 0:\n throw new Error(\"unknown value\");\n case 1:\n return value[0];\n case 2:\n throw value[1];\n }\n}\nfunction valueCopy(value) {\n return value.slice(0);\n}\nvar Entry = /** @class */function () {\n function Entry(fn) {\n this.fn = fn;\n this.parents = new Set();\n this.childValues = new Map();\n // When this Entry has children that are dirty, this property becomes\n // a Set containing other Entry objects, borrowed from emptySetPool.\n // When the set becomes empty, it gets recycled back to emptySetPool.\n this.dirtyChildren = null;\n this.dirty = true;\n this.recomputing = false;\n this.value = [];\n this.deps = null;\n ++Entry.count;\n }\n Entry.prototype.peek = function () {\n if (this.value.length === 1 && !mightBeDirty(this)) {\n rememberParent(this);\n return this.value[0];\n }\n };\n // This is the most important method of the Entry API, because it\n // determines whether the cached this.value can be returned immediately,\n // or must be recomputed. The overall performance of the caching system\n // depends on the truth of the following observations: (1) this.dirty is\n // usually false, (2) this.dirtyChildren is usually null/empty, and thus\n // (3) valueGet(this.value) is usually returned without recomputation.\n Entry.prototype.recompute = function (args) {\n assert(!this.recomputing, \"already recomputing\");\n rememberParent(this);\n return mightBeDirty(this) ? reallyRecompute(this, args) : valueGet(this.value);\n };\n Entry.prototype.setDirty = function () {\n if (this.dirty) return;\n this.dirty = true;\n this.value.length = 0;\n reportDirty(this);\n // We can go ahead and unsubscribe here, since any further dirty\n // notifications we receive will be redundant, and unsubscribing may\n // free up some resources, e.g. file watchers.\n maybeUnsubscribe(this);\n };\n Entry.prototype.dispose = function () {\n var _this = this;\n this.setDirty();\n // Sever any dependency relationships with our own children, so those\n // children don't retain this parent Entry in their child.parents sets,\n // thereby preventing it from being fully garbage collected.\n forgetChildren(this);\n // Because this entry has been kicked out of the cache (in index.js),\n // we've lost the ability to find out if/when this entry becomes dirty,\n // whether that happens through a subscription, because of a direct call\n // to entry.setDirty(), or because one of its children becomes dirty.\n // Because of this loss of future information, we have to assume the\n // worst (that this entry might have become dirty very soon), so we must\n // immediately mark this entry's parents as dirty. Normally we could\n // just call entry.setDirty() rather than calling parent.setDirty() for\n // each parent, but that would leave this entry in parent.childValues\n // and parent.dirtyChildren, which would prevent the child from being\n // truly forgotten.\n eachParent(this, function (parent, child) {\n parent.setDirty();\n forgetChild(parent, _this);\n });\n };\n Entry.prototype.forget = function () {\n // The code that creates Entry objects in index.ts will replace this method\n // with one that actually removes the Entry from the cache, which will also\n // trigger the entry.dispose method.\n this.dispose();\n };\n Entry.prototype.dependOn = function (dep) {\n dep.add(this);\n if (!this.deps) {\n this.deps = emptySetPool.pop() || new Set();\n }\n this.deps.add(dep);\n };\n Entry.prototype.forgetDeps = function () {\n var _this = this;\n if (this.deps) {\n toArray(this.deps).forEach(function (dep) {\n return dep.delete(_this);\n });\n this.deps.clear();\n emptySetPool.push(this.deps);\n this.deps = null;\n }\n };\n Entry.count = 0;\n return Entry;\n}();\nfunction rememberParent(child) {\n var parent = parentEntrySlot.getValue();\n if (parent) {\n child.parents.add(parent);\n if (!parent.childValues.has(child)) {\n parent.childValues.set(child, []);\n }\n if (mightBeDirty(child)) {\n reportDirtyChild(parent, child);\n } else {\n reportCleanChild(parent, child);\n }\n return parent;\n }\n}\nfunction reallyRecompute(entry, args) {\n forgetChildren(entry);\n // Set entry as the parent entry while calling recomputeNewValue(entry).\n parentEntrySlot.withValue(entry, recomputeNewValue, [entry, args]);\n if (maybeSubscribe(entry, args)) {\n // If we successfully recomputed entry.value and did not fail to\n // (re)subscribe, then this Entry is no longer explicitly dirty.\n setClean(entry);\n }\n return valueGet(entry.value);\n}\nfunction recomputeNewValue(entry, args) {\n entry.recomputing = true;\n // Set entry.value as unknown.\n entry.value.length = 0;\n try {\n // If entry.fn succeeds, entry.value will become a normal Value.\n entry.value[0] = entry.fn.apply(null, args);\n } catch (e) {\n // If entry.fn throws, entry.value will become exceptional.\n entry.value[1] = e;\n }\n // Either way, this line is always reached.\n entry.recomputing = false;\n}\nfunction mightBeDirty(entry) {\n return entry.dirty || !!(entry.dirtyChildren && entry.dirtyChildren.size);\n}\nfunction setClean(entry) {\n entry.dirty = false;\n if (mightBeDirty(entry)) {\n // This Entry may still have dirty children, in which case we can't\n // let our parents know we're clean just yet.\n return;\n }\n reportClean(entry);\n}\nfunction reportDirty(child) {\n eachParent(child, reportDirtyChild);\n}\nfunction reportClean(child) {\n eachParent(child, reportCleanChild);\n}\nfunction eachParent(child, callback) {\n var parentCount = child.parents.size;\n if (parentCount) {\n var parents = toArray(child.parents);\n for (var i = 0; i < parentCount; ++i) {\n callback(parents[i], child);\n }\n }\n}\n// Let a parent Entry know that one of its children may be dirty.\nfunction reportDirtyChild(parent, child) {\n // Must have called rememberParent(child) before calling\n // reportDirtyChild(parent, child).\n assert(parent.childValues.has(child));\n assert(mightBeDirty(child));\n var parentWasClean = !mightBeDirty(parent);\n if (!parent.dirtyChildren) {\n parent.dirtyChildren = emptySetPool.pop() || new Set();\n } else if (parent.dirtyChildren.has(child)) {\n // If we already know this child is dirty, then we must have already\n // informed our own parents that we are dirty, so we can terminate\n // the recursion early.\n return;\n }\n parent.dirtyChildren.add(child);\n // If parent was clean before, it just became (possibly) dirty (according to\n // mightBeDirty), since we just added child to parent.dirtyChildren.\n if (parentWasClean) {\n reportDirty(parent);\n }\n}\n// Let a parent Entry know that one of its children is no longer dirty.\nfunction reportCleanChild(parent, child) {\n // Must have called rememberChild(child) before calling\n // reportCleanChild(parent, child).\n assert(parent.childValues.has(child));\n assert(!mightBeDirty(child));\n var childValue = parent.childValues.get(child);\n if (childValue.length === 0) {\n parent.childValues.set(child, valueCopy(child.value));\n } else if (!valueIs(childValue, child.value)) {\n parent.setDirty();\n }\n removeDirtyChild(parent, child);\n if (mightBeDirty(parent)) {\n return;\n }\n reportClean(parent);\n}\nfunction removeDirtyChild(parent, child) {\n var dc = parent.dirtyChildren;\n if (dc) {\n dc.delete(child);\n if (dc.size === 0) {\n if (emptySetPool.length < POOL_TARGET_SIZE) {\n emptySetPool.push(dc);\n }\n parent.dirtyChildren = null;\n }\n }\n}\n// Removes all children from this entry and returns an array of the\n// removed children.\nfunction forgetChildren(parent) {\n if (parent.childValues.size > 0) {\n parent.childValues.forEach(function (_value, child) {\n forgetChild(parent, child);\n });\n }\n // Remove this parent Entry from any sets to which it was added by the\n // addToSet method.\n parent.forgetDeps();\n // After we forget all our children, this.dirtyChildren must be empty\n // and therefore must have been reset to null.\n assert(parent.dirtyChildren === null);\n}\nfunction forgetChild(parent, child) {\n child.parents.delete(parent);\n parent.childValues.delete(child);\n removeDirtyChild(parent, child);\n}\nfunction maybeSubscribe(entry, args) {\n if (typeof entry.subscribe === \"function\") {\n try {\n maybeUnsubscribe(entry); // Prevent double subscriptions.\n entry.unsubscribe = entry.subscribe.apply(null, args);\n } catch (e) {\n // If this Entry has a subscribe function and it threw an exception\n // (or an unsubscribe function it previously returned now throws),\n // return false to indicate that we were not able to subscribe (or\n // unsubscribe), and this Entry should remain dirty.\n entry.setDirty();\n return false;\n }\n }\n // Returning true indicates either that there was no entry.subscribe\n // function or that it succeeded.\n return true;\n}\nvar EntryMethods = {\n setDirty: true,\n dispose: true,\n forget: true // Fully remove parent Entry from LRU cache and computation graph\n};\nfunction dep(options) {\n var depsByKey = new Map();\n var subscribe = options && options.subscribe;\n function depend(key) {\n var parent = parentEntrySlot.getValue();\n if (parent) {\n var dep_1 = depsByKey.get(key);\n if (!dep_1) {\n depsByKey.set(key, dep_1 = new Set());\n }\n parent.dependOn(dep_1);\n if (typeof subscribe === \"function\") {\n maybeUnsubscribe(dep_1);\n dep_1.unsubscribe = subscribe(key);\n }\n }\n }\n depend.dirty = function dirty(key, entryMethodName) {\n var dep = depsByKey.get(key);\n if (dep) {\n var m_1 = entryMethodName && hasOwnProperty.call(EntryMethods, entryMethodName) ? entryMethodName : \"setDirty\";\n // We have to use toArray(dep).forEach instead of dep.forEach, because\n // modifying a Set while iterating over it can cause elements in the Set\n // to be removed from the Set before they've been iterated over.\n toArray(dep).forEach(function (entry) {\n return entry[m_1]();\n });\n depsByKey.delete(key);\n maybeUnsubscribe(dep);\n }\n };\n return depend;\n}\nfunction makeDefaultMakeCacheKeyFunction() {\n var keyTrie = new Trie(typeof WeakMap === \"function\");\n return function () {\n return keyTrie.lookupArray(arguments);\n };\n}\n// The defaultMakeCacheKey function is remarkably powerful, because it gives\n// a unique object for any shallow-identical list of arguments. If you need\n// to implement a custom makeCacheKey function, you may find it helpful to\n// delegate the final work to defaultMakeCacheKey, which is why we export it\n// here. However, you may want to avoid defaultMakeCacheKey if your runtime\n// does not support WeakMap, or you have the ability to return a string key.\n// In those cases, just write your own custom makeCacheKey functions.\nvar defaultMakeCacheKey = makeDefaultMakeCacheKeyFunction();\nvar caches = new Set();\nfunction wrap(originalFunction, options) {\n if (options === void 0) {\n options = Object.create(null);\n }\n var cache = new Cache(options.max || Math.pow(2, 16), function (entry) {\n return entry.dispose();\n });\n var keyArgs = options.keyArgs;\n var makeCacheKey = options.makeCacheKey || makeDefaultMakeCacheKeyFunction();\n var optimistic = function () {\n var key = makeCacheKey.apply(null, keyArgs ? keyArgs.apply(null, arguments) : arguments);\n if (key === void 0) {\n return originalFunction.apply(null, arguments);\n }\n var entry = cache.get(key);\n if (!entry) {\n cache.set(key, entry = new Entry(originalFunction));\n entry.subscribe = options.subscribe;\n // Give the Entry the ability to trigger cache.delete(key), even though\n // the Entry itself does not know about key or cache.\n entry.forget = function () {\n return cache.delete(key);\n };\n }\n var value = entry.recompute(Array.prototype.slice.call(arguments));\n // Move this entry to the front of the least-recently used queue,\n // since we just finished computing its value.\n cache.set(key, entry);\n caches.add(cache);\n // Clean up any excess entries in the cache, but only if there is no\n // active parent entry, meaning we're not in the middle of a larger\n // computation that might be flummoxed by the cleaning.\n if (!parentEntrySlot.hasValue()) {\n caches.forEach(function (cache) {\n return cache.clean();\n });\n caches.clear();\n }\n return value;\n };\n Object.defineProperty(optimistic, \"size\", {\n get: function () {\n return cache[\"map\"].size;\n },\n configurable: false,\n enumerable: false\n });\n function dirtyKey(key) {\n var entry = cache.get(key);\n if (entry) {\n entry.setDirty();\n }\n }\n optimistic.dirtyKey = dirtyKey;\n optimistic.dirty = function dirty() {\n dirtyKey(makeCacheKey.apply(null, arguments));\n };\n function peekKey(key) {\n var entry = cache.get(key);\n if (entry) {\n return entry.peek();\n }\n }\n optimistic.peekKey = peekKey;\n optimistic.peek = function peek() {\n return peekKey(makeCacheKey.apply(null, arguments));\n };\n function forgetKey(key) {\n return cache.delete(key);\n }\n optimistic.forgetKey = forgetKey;\n optimistic.forget = function forget() {\n return forgetKey(makeCacheKey.apply(null, arguments));\n };\n optimistic.makeCacheKey = makeCacheKey;\n optimistic.getKey = keyArgs ? function getKey() {\n return makeCacheKey.apply(null, keyArgs.apply(null, arguments));\n } : makeCacheKey;\n return Object.freeze(optimistic);\n}\nexport { defaultMakeCacheKey, dep, wrap };\n","import { __assign, __rest } from \"tslib\";\nimport { wrap } from 'optimism';\nimport { getFragmentQueryDocument } from \"../../utilities/index.js\";\nvar ApolloCache = function () {\n function ApolloCache() {\n this.getFragmentDoc = wrap(getFragmentQueryDocument);\n }\n ApolloCache.prototype.batch = function (options) {\n var _this = this;\n var optimisticId = typeof options.optimistic === \"string\" ? options.optimistic : options.optimistic === false ? null : void 0;\n var updateResult;\n this.performTransaction(function () {\n return updateResult = options.update(_this);\n }, optimisticId);\n return updateResult;\n };\n ApolloCache.prototype.recordOptimisticTransaction = function (transaction, optimisticId) {\n this.performTransaction(transaction, optimisticId);\n };\n ApolloCache.prototype.transformDocument = function (document) {\n return document;\n };\n ApolloCache.prototype.transformForLink = function (document) {\n return document;\n };\n ApolloCache.prototype.identify = function (object) {\n return;\n };\n ApolloCache.prototype.gc = function () {\n return [];\n };\n ApolloCache.prototype.modify = function (options) {\n return false;\n };\n ApolloCache.prototype.readQuery = function (options, optimistic) {\n if (optimistic === void 0) {\n optimistic = !!options.optimistic;\n }\n return this.read(__assign(__assign({}, options), {\n rootId: options.id || 'ROOT_QUERY',\n optimistic: optimistic\n }));\n };\n ApolloCache.prototype.readFragment = function (options, optimistic) {\n if (optimistic === void 0) {\n optimistic = !!options.optimistic;\n }\n return this.read(__assign(__assign({}, options), {\n query: this.getFragmentDoc(options.fragment, options.fragmentName),\n rootId: options.id,\n optimistic: optimistic\n }));\n };\n ApolloCache.prototype.writeQuery = function (_a) {\n var id = _a.id,\n data = _a.data,\n options = __rest(_a, [\"id\", \"data\"]);\n return this.write(Object.assign(options, {\n dataId: id || 'ROOT_QUERY',\n result: data\n }));\n };\n ApolloCache.prototype.writeFragment = function (_a) {\n var id = _a.id,\n data = _a.data,\n fragment = _a.fragment,\n fragmentName = _a.fragmentName,\n options = __rest(_a, [\"id\", \"data\", \"fragment\", \"fragmentName\"]);\n return this.write(Object.assign(options, {\n query: this.getFragmentDoc(fragment, fragmentName),\n dataId: id,\n result: data\n }));\n };\n ApolloCache.prototype.updateQuery = function (options, update) {\n return this.batch({\n update: function (cache) {\n var value = cache.readQuery(options);\n var data = update(value);\n if (data === void 0 || data === null) return value;\n cache.writeQuery(__assign(__assign({}, options), {\n data: data\n }));\n return data;\n }\n });\n };\n ApolloCache.prototype.updateFragment = function (options, update) {\n return this.batch({\n update: function (cache) {\n var value = cache.readFragment(options);\n var data = update(value);\n if (data === void 0 || data === null) return value;\n cache.writeFragment(__assign(__assign({}, options), {\n data: data\n }));\n return data;\n }\n });\n };\n return ApolloCache;\n}();\nexport { ApolloCache };\n","import { __extends } from \"tslib\";\nvar MissingFieldError = function (_super) {\n __extends(MissingFieldError, _super);\n function MissingFieldError(message, path, query, variables) {\n var _a;\n var _this = _super.call(this, message) || this;\n _this.message = message;\n _this.path = path;\n _this.query = query;\n _this.variables = variables;\n if (Array.isArray(_this.path)) {\n _this.missing = _this.message;\n for (var i = _this.path.length - 1; i >= 0; --i) {\n _this.missing = (_a = {}, _a[_this.path[i]] = _this.missing, _a);\n }\n } else {\n _this.missing = _this.path;\n }\n _this.__proto__ = MissingFieldError.prototype;\n return _this;\n }\n return MissingFieldError;\n}(Error);\nexport { MissingFieldError };\n","import { isReference, isField, DeepMerger, resultKeyNameFromField, shouldInclude, isNonNullObject, compact, createFragmentMap, getFragmentDefinitions } from \"../../utilities/index.js\";\nexport var hasOwn = Object.prototype.hasOwnProperty;\nexport function isNullish(value) {\n return value === null || value === void 0;\n}\nexport var isArray = Array.isArray;\nexport function defaultDataIdFromObject(_a, context) {\n var __typename = _a.__typename,\n id = _a.id,\n _id = _a._id;\n if (typeof __typename === \"string\") {\n if (context) {\n context.keyObject = !isNullish(id) ? {\n id: id\n } : !isNullish(_id) ? {\n _id: _id\n } : void 0;\n }\n if (isNullish(id) && !isNullish(_id)) {\n id = _id;\n }\n if (!isNullish(id)) {\n return \"\".concat(__typename, \":\").concat(typeof id === \"number\" || typeof id === \"string\" ? id : JSON.stringify(id));\n }\n }\n}\nvar defaultConfig = {\n dataIdFromObject: defaultDataIdFromObject,\n addTypename: true,\n resultCaching: true,\n canonizeResults: false\n};\nexport function normalizeConfig(config) {\n return compact(defaultConfig, config);\n}\nexport function shouldCanonizeResults(config) {\n var value = config.canonizeResults;\n return value === void 0 ? defaultConfig.canonizeResults : value;\n}\nexport function getTypenameFromStoreObject(store, objectOrReference) {\n return isReference(objectOrReference) ? store.get(objectOrReference.__ref, \"__typename\") : objectOrReference && objectOrReference.__typename;\n}\nexport var TypeOrFieldNameRegExp = /^[_a-z][_0-9a-z]*/i;\nexport function fieldNameFromStoreName(storeFieldName) {\n var match = storeFieldName.match(TypeOrFieldNameRegExp);\n return match ? match[0] : storeFieldName;\n}\nexport function selectionSetMatchesResult(selectionSet, result, variables) {\n if (isNonNullObject(result)) {\n return isArray(result) ? result.every(function (item) {\n return selectionSetMatchesResult(selectionSet, item, variables);\n }) : selectionSet.selections.every(function (field) {\n if (isField(field) && shouldInclude(field, variables)) {\n var key = resultKeyNameFromField(field);\n return hasOwn.call(result, key) && (!field.selectionSet || selectionSetMatchesResult(field.selectionSet, result[key], variables));\n }\n return true;\n });\n }\n return false;\n}\nexport function storeValueIsStoreObject(value) {\n return isNonNullObject(value) && !isReference(value) && !isArray(value);\n}\nexport function makeProcessedFieldsMerger() {\n return new DeepMerger();\n}\nexport function extractFragmentContext(document, fragments) {\n var fragmentMap = createFragmentMap(getFragmentDefinitions(document));\n return {\n fragmentMap: fragmentMap,\n lookupFragment: function (name) {\n var def = fragmentMap[name];\n if (!def && fragments) {\n def = fragments.lookup(name);\n }\n return def || null;\n }\n };\n}\n","import { __assign, __extends, __rest } from \"tslib\";\nimport { invariant } from \"../../utilities/globals/index.js\";\nimport { dep } from 'optimism';\nimport { equal } from '@wry/equality';\nimport { Trie } from '@wry/trie';\nimport { isReference, makeReference, DeepMerger, maybeDeepFreeze, canUseWeakMap, isNonNullObject } from \"../../utilities/index.js\";\nimport { hasOwn, fieldNameFromStoreName } from \"./helpers.js\";\nvar DELETE = Object.create(null);\nvar delModifier = function () {\n return DELETE;\n};\nvar INVALIDATE = Object.create(null);\nvar EntityStore = function () {\n function EntityStore(policies, group) {\n var _this = this;\n this.policies = policies;\n this.group = group;\n this.data = Object.create(null);\n this.rootIds = Object.create(null);\n this.refs = Object.create(null);\n this.getFieldValue = function (objectOrReference, storeFieldName) {\n return maybeDeepFreeze(isReference(objectOrReference) ? _this.get(objectOrReference.__ref, storeFieldName) : objectOrReference && objectOrReference[storeFieldName]);\n };\n this.canRead = function (objOrRef) {\n return isReference(objOrRef) ? _this.has(objOrRef.__ref) : typeof objOrRef === \"object\";\n };\n this.toReference = function (objOrIdOrRef, mergeIntoStore) {\n if (typeof objOrIdOrRef === \"string\") {\n return makeReference(objOrIdOrRef);\n }\n if (isReference(objOrIdOrRef)) {\n return objOrIdOrRef;\n }\n var id = _this.policies.identify(objOrIdOrRef)[0];\n if (id) {\n var ref = makeReference(id);\n if (mergeIntoStore) {\n _this.merge(id, objOrIdOrRef);\n }\n return ref;\n }\n };\n }\n EntityStore.prototype.toObject = function () {\n return __assign({}, this.data);\n };\n EntityStore.prototype.has = function (dataId) {\n return this.lookup(dataId, true) !== void 0;\n };\n EntityStore.prototype.get = function (dataId, fieldName) {\n this.group.depend(dataId, fieldName);\n if (hasOwn.call(this.data, dataId)) {\n var storeObject = this.data[dataId];\n if (storeObject && hasOwn.call(storeObject, fieldName)) {\n return storeObject[fieldName];\n }\n }\n if (fieldName === \"__typename\" && hasOwn.call(this.policies.rootTypenamesById, dataId)) {\n return this.policies.rootTypenamesById[dataId];\n }\n if (this instanceof Layer) {\n return this.parent.get(dataId, fieldName);\n }\n };\n EntityStore.prototype.lookup = function (dataId, dependOnExistence) {\n if (dependOnExistence) this.group.depend(dataId, \"__exists\");\n if (hasOwn.call(this.data, dataId)) {\n return this.data[dataId];\n }\n if (this instanceof Layer) {\n return this.parent.lookup(dataId, dependOnExistence);\n }\n if (this.policies.rootTypenamesById[dataId]) {\n return Object.create(null);\n }\n };\n EntityStore.prototype.merge = function (older, newer) {\n var _this = this;\n var dataId;\n if (isReference(older)) older = older.__ref;\n if (isReference(newer)) newer = newer.__ref;\n var existing = typeof older === \"string\" ? this.lookup(dataId = older) : older;\n var incoming = typeof newer === \"string\" ? this.lookup(dataId = newer) : newer;\n if (!incoming) return;\n __DEV__ ? invariant(typeof dataId === \"string\", \"store.merge expects a string ID\") : invariant(typeof dataId === \"string\", 1);\n var merged = new DeepMerger(storeObjectReconciler).merge(existing, incoming);\n this.data[dataId] = merged;\n if (merged !== existing) {\n delete this.refs[dataId];\n if (this.group.caching) {\n var fieldsToDirty_1 = Object.create(null);\n if (!existing) fieldsToDirty_1.__exists = 1;\n Object.keys(incoming).forEach(function (storeFieldName) {\n if (!existing || existing[storeFieldName] !== merged[storeFieldName]) {\n fieldsToDirty_1[storeFieldName] = 1;\n var fieldName = fieldNameFromStoreName(storeFieldName);\n if (fieldName !== storeFieldName && !_this.policies.hasKeyArgs(merged.__typename, fieldName)) {\n fieldsToDirty_1[fieldName] = 1;\n }\n if (merged[storeFieldName] === void 0 && !(_this instanceof Layer)) {\n delete merged[storeFieldName];\n }\n }\n });\n if (fieldsToDirty_1.__typename && !(existing && existing.__typename) && this.policies.rootTypenamesById[dataId] === merged.__typename) {\n delete fieldsToDirty_1.__typename;\n }\n Object.keys(fieldsToDirty_1).forEach(function (fieldName) {\n return _this.group.dirty(dataId, fieldName);\n });\n }\n }\n };\n EntityStore.prototype.modify = function (dataId, fields) {\n var _this = this;\n var storeObject = this.lookup(dataId);\n if (storeObject) {\n var changedFields_1 = Object.create(null);\n var needToMerge_1 = false;\n var allDeleted_1 = true;\n var sharedDetails_1 = {\n DELETE: DELETE,\n INVALIDATE: INVALIDATE,\n isReference: isReference,\n toReference: this.toReference,\n canRead: this.canRead,\n readField: function (fieldNameOrOptions, from) {\n return _this.policies.readField(typeof fieldNameOrOptions === \"string\" ? {\n fieldName: fieldNameOrOptions,\n from: from || makeReference(dataId)\n } : fieldNameOrOptions, {\n store: _this\n });\n }\n };\n Object.keys(storeObject).forEach(function (storeFieldName) {\n var fieldName = fieldNameFromStoreName(storeFieldName);\n var fieldValue = storeObject[storeFieldName];\n if (fieldValue === void 0) return;\n var modify = typeof fields === \"function\" ? fields : fields[storeFieldName] || fields[fieldName];\n if (modify) {\n var newValue = modify === delModifier ? DELETE : modify(maybeDeepFreeze(fieldValue), __assign(__assign({}, sharedDetails_1), {\n fieldName: fieldName,\n storeFieldName: storeFieldName,\n storage: _this.getStorage(dataId, storeFieldName)\n }));\n if (newValue === INVALIDATE) {\n _this.group.dirty(dataId, storeFieldName);\n } else {\n if (newValue === DELETE) newValue = void 0;\n if (newValue !== fieldValue) {\n changedFields_1[storeFieldName] = newValue;\n needToMerge_1 = true;\n fieldValue = newValue;\n }\n }\n }\n if (fieldValue !== void 0) {\n allDeleted_1 = false;\n }\n });\n if (needToMerge_1) {\n this.merge(dataId, changedFields_1);\n if (allDeleted_1) {\n if (this instanceof Layer) {\n this.data[dataId] = void 0;\n } else {\n delete this.data[dataId];\n }\n this.group.dirty(dataId, \"__exists\");\n }\n return true;\n }\n }\n return false;\n };\n EntityStore.prototype.delete = function (dataId, fieldName, args) {\n var _a;\n var storeObject = this.lookup(dataId);\n if (storeObject) {\n var typename = this.getFieldValue(storeObject, \"__typename\");\n var storeFieldName = fieldName && args ? this.policies.getStoreFieldName({\n typename: typename,\n fieldName: fieldName,\n args: args\n }) : fieldName;\n return this.modify(dataId, storeFieldName ? (_a = {}, _a[storeFieldName] = delModifier, _a) : delModifier);\n }\n return false;\n };\n EntityStore.prototype.evict = function (options, limit) {\n var evicted = false;\n if (options.id) {\n if (hasOwn.call(this.data, options.id)) {\n evicted = this.delete(options.id, options.fieldName, options.args);\n }\n if (this instanceof Layer && this !== limit) {\n evicted = this.parent.evict(options, limit) || evicted;\n }\n if (options.fieldName || evicted) {\n this.group.dirty(options.id, options.fieldName || \"__exists\");\n }\n }\n return evicted;\n };\n EntityStore.prototype.clear = function () {\n this.replace(null);\n };\n EntityStore.prototype.extract = function () {\n var _this = this;\n var obj = this.toObject();\n var extraRootIds = [];\n this.getRootIdSet().forEach(function (id) {\n if (!hasOwn.call(_this.policies.rootTypenamesById, id)) {\n extraRootIds.push(id);\n }\n });\n if (extraRootIds.length) {\n obj.__META = {\n extraRootIds: extraRootIds.sort()\n };\n }\n return obj;\n };\n EntityStore.prototype.replace = function (newData) {\n var _this = this;\n Object.keys(this.data).forEach(function (dataId) {\n if (!(newData && hasOwn.call(newData, dataId))) {\n _this.delete(dataId);\n }\n });\n if (newData) {\n var __META = newData.__META,\n rest_1 = __rest(newData, [\"__META\"]);\n Object.keys(rest_1).forEach(function (dataId) {\n _this.merge(dataId, rest_1[dataId]);\n });\n if (__META) {\n __META.extraRootIds.forEach(this.retain, this);\n }\n }\n };\n EntityStore.prototype.retain = function (rootId) {\n return this.rootIds[rootId] = (this.rootIds[rootId] || 0) + 1;\n };\n EntityStore.prototype.release = function (rootId) {\n if (this.rootIds[rootId] > 0) {\n var count = --this.rootIds[rootId];\n if (!count) delete this.rootIds[rootId];\n return count;\n }\n return 0;\n };\n EntityStore.prototype.getRootIdSet = function (ids) {\n if (ids === void 0) {\n ids = new Set();\n }\n Object.keys(this.rootIds).forEach(ids.add, ids);\n if (this instanceof Layer) {\n this.parent.getRootIdSet(ids);\n } else {\n Object.keys(this.policies.rootTypenamesById).forEach(ids.add, ids);\n }\n return ids;\n };\n EntityStore.prototype.gc = function () {\n var _this = this;\n var ids = this.getRootIdSet();\n var snapshot = this.toObject();\n ids.forEach(function (id) {\n if (hasOwn.call(snapshot, id)) {\n Object.keys(_this.findChildRefIds(id)).forEach(ids.add, ids);\n delete snapshot[id];\n }\n });\n var idsToRemove = Object.keys(snapshot);\n if (idsToRemove.length) {\n var root_1 = this;\n while (root_1 instanceof Layer) root_1 = root_1.parent;\n idsToRemove.forEach(function (id) {\n return root_1.delete(id);\n });\n }\n return idsToRemove;\n };\n EntityStore.prototype.findChildRefIds = function (dataId) {\n if (!hasOwn.call(this.refs, dataId)) {\n var found_1 = this.refs[dataId] = Object.create(null);\n var root = this.data[dataId];\n if (!root) return found_1;\n var workSet_1 = new Set([root]);\n workSet_1.forEach(function (obj) {\n if (isReference(obj)) {\n found_1[obj.__ref] = true;\n }\n if (isNonNullObject(obj)) {\n Object.keys(obj).forEach(function (key) {\n var child = obj[key];\n if (isNonNullObject(child)) {\n workSet_1.add(child);\n }\n });\n }\n });\n }\n return this.refs[dataId];\n };\n EntityStore.prototype.makeCacheKey = function () {\n return this.group.keyMaker.lookupArray(arguments);\n };\n return EntityStore;\n}();\nexport { EntityStore };\nvar CacheGroup = function () {\n function CacheGroup(caching, parent) {\n if (parent === void 0) {\n parent = null;\n }\n this.caching = caching;\n this.parent = parent;\n this.d = null;\n this.resetCaching();\n }\n CacheGroup.prototype.resetCaching = function () {\n this.d = this.caching ? dep() : null;\n this.keyMaker = new Trie(canUseWeakMap);\n };\n CacheGroup.prototype.depend = function (dataId, storeFieldName) {\n if (this.d) {\n this.d(makeDepKey(dataId, storeFieldName));\n var fieldName = fieldNameFromStoreName(storeFieldName);\n if (fieldName !== storeFieldName) {\n this.d(makeDepKey(dataId, fieldName));\n }\n if (this.parent) {\n this.parent.depend(dataId, storeFieldName);\n }\n }\n };\n CacheGroup.prototype.dirty = function (dataId, storeFieldName) {\n if (this.d) {\n this.d.dirty(makeDepKey(dataId, storeFieldName), storeFieldName === \"__exists\" ? \"forget\" : \"setDirty\");\n }\n };\n return CacheGroup;\n}();\nfunction makeDepKey(dataId, storeFieldName) {\n return storeFieldName + '#' + dataId;\n}\nexport function maybeDependOnExistenceOfEntity(store, entityId) {\n if (supportsResultCaching(store)) {\n store.group.depend(entityId, \"__exists\");\n }\n}\n(function (EntityStore) {\n var Root = function (_super) {\n __extends(Root, _super);\n function Root(_a) {\n var policies = _a.policies,\n _b = _a.resultCaching,\n resultCaching = _b === void 0 ? true : _b,\n seed = _a.seed;\n var _this = _super.call(this, policies, new CacheGroup(resultCaching)) || this;\n _this.stump = new Stump(_this);\n _this.storageTrie = new Trie(canUseWeakMap);\n if (seed) _this.replace(seed);\n return _this;\n }\n Root.prototype.addLayer = function (layerId, replay) {\n return this.stump.addLayer(layerId, replay);\n };\n Root.prototype.removeLayer = function () {\n return this;\n };\n Root.prototype.getStorage = function () {\n return this.storageTrie.lookupArray(arguments);\n };\n return Root;\n }(EntityStore);\n EntityStore.Root = Root;\n})(EntityStore || (EntityStore = {}));\nvar Layer = function (_super) {\n __extends(Layer, _super);\n function Layer(id, parent, replay, group) {\n var _this = _super.call(this, parent.policies, group) || this;\n _this.id = id;\n _this.parent = parent;\n _this.replay = replay;\n _this.group = group;\n replay(_this);\n return _this;\n }\n Layer.prototype.addLayer = function (layerId, replay) {\n return new Layer(layerId, this, replay, this.group);\n };\n Layer.prototype.removeLayer = function (layerId) {\n var _this = this;\n var parent = this.parent.removeLayer(layerId);\n if (layerId === this.id) {\n if (this.group.caching) {\n Object.keys(this.data).forEach(function (dataId) {\n var ownStoreObject = _this.data[dataId];\n var parentStoreObject = parent[\"lookup\"](dataId);\n if (!parentStoreObject) {\n _this.delete(dataId);\n } else if (!ownStoreObject) {\n _this.group.dirty(dataId, \"__exists\");\n Object.keys(parentStoreObject).forEach(function (storeFieldName) {\n _this.group.dirty(dataId, storeFieldName);\n });\n } else if (ownStoreObject !== parentStoreObject) {\n Object.keys(ownStoreObject).forEach(function (storeFieldName) {\n if (!equal(ownStoreObject[storeFieldName], parentStoreObject[storeFieldName])) {\n _this.group.dirty(dataId, storeFieldName);\n }\n });\n }\n });\n }\n return parent;\n }\n if (parent === this.parent) return this;\n return parent.addLayer(this.id, this.replay);\n };\n Layer.prototype.toObject = function () {\n return __assign(__assign({}, this.parent.toObject()), this.data);\n };\n Layer.prototype.findChildRefIds = function (dataId) {\n var fromParent = this.parent.findChildRefIds(dataId);\n return hasOwn.call(this.data, dataId) ? __assign(__assign({}, fromParent), _super.prototype.findChildRefIds.call(this, dataId)) : fromParent;\n };\n Layer.prototype.getStorage = function () {\n var p = this.parent;\n while (p.parent) p = p.parent;\n return p.getStorage.apply(p, arguments);\n };\n return Layer;\n}(EntityStore);\nvar Stump = function (_super) {\n __extends(Stump, _super);\n function Stump(root) {\n return _super.call(this, \"EntityStore.Stump\", root, function () {}, new CacheGroup(root.group.caching, root.group)) || this;\n }\n Stump.prototype.removeLayer = function () {\n return this;\n };\n Stump.prototype.merge = function () {\n return this.parent.merge.apply(this.parent, arguments);\n };\n return Stump;\n}(Layer);\nfunction storeObjectReconciler(existingObject, incomingObject, property) {\n var existingValue = existingObject[property];\n var incomingValue = incomingObject[property];\n return equal(existingValue, incomingValue) ? existingValue : incomingValue;\n}\nexport function supportsResultCaching(store) {\n return !!(store instanceof EntityStore && store.group.caching);\n}\n","import { __assign } from \"tslib\";\nimport \"../../utilities/globals/index.js\";\nimport { Trie } from \"@wry/trie\";\nimport { canUseWeakMap, canUseWeakSet, isNonNullObject as isObjectOrArray } from \"../../utilities/index.js\";\nimport { isArray } from \"./helpers.js\";\nfunction shallowCopy(value) {\n if (isObjectOrArray(value)) {\n return isArray(value) ? value.slice(0) : __assign({\n __proto__: Object.getPrototypeOf(value)\n }, value);\n }\n return value;\n}\nvar ObjectCanon = function () {\n function ObjectCanon() {\n this.known = new (canUseWeakSet ? WeakSet : Set)();\n this.pool = new Trie(canUseWeakMap);\n this.passes = new WeakMap();\n this.keysByJSON = new Map();\n this.empty = this.admit({});\n }\n ObjectCanon.prototype.isKnown = function (value) {\n return isObjectOrArray(value) && this.known.has(value);\n };\n ObjectCanon.prototype.pass = function (value) {\n if (isObjectOrArray(value)) {\n var copy = shallowCopy(value);\n this.passes.set(copy, value);\n return copy;\n }\n return value;\n };\n ObjectCanon.prototype.admit = function (value) {\n var _this = this;\n if (isObjectOrArray(value)) {\n var original = this.passes.get(value);\n if (original) return original;\n var proto = Object.getPrototypeOf(value);\n switch (proto) {\n case Array.prototype:\n {\n if (this.known.has(value)) return value;\n var array = value.map(this.admit, this);\n var node = this.pool.lookupArray(array);\n if (!node.array) {\n this.known.add(node.array = array);\n if (__DEV__) {\n Object.freeze(array);\n }\n }\n return node.array;\n }\n case null:\n case Object.prototype:\n {\n if (this.known.has(value)) return value;\n var proto_1 = Object.getPrototypeOf(value);\n var array_1 = [proto_1];\n var keys = this.sortedKeys(value);\n array_1.push(keys.json);\n var firstValueIndex_1 = array_1.length;\n keys.sorted.forEach(function (key) {\n array_1.push(_this.admit(value[key]));\n });\n var node = this.pool.lookupArray(array_1);\n if (!node.object) {\n var obj_1 = node.object = Object.create(proto_1);\n this.known.add(obj_1);\n keys.sorted.forEach(function (key, i) {\n obj_1[key] = array_1[firstValueIndex_1 + i];\n });\n if (__DEV__) {\n Object.freeze(obj_1);\n }\n }\n return node.object;\n }\n }\n }\n return value;\n };\n ObjectCanon.prototype.sortedKeys = function (obj) {\n var keys = Object.keys(obj);\n var node = this.pool.lookupArray(keys);\n if (!node.keys) {\n keys.sort();\n var json = JSON.stringify(keys);\n if (!(node.keys = this.keysByJSON.get(json))) {\n this.keysByJSON.set(json, node.keys = {\n sorted: keys,\n json: json\n });\n }\n }\n return node.keys;\n };\n return ObjectCanon;\n}();\nexport { ObjectCanon };\nexport var canonicalStringify = Object.assign(function (value) {\n if (isObjectOrArray(value)) {\n if (stringifyCanon === void 0) {\n resetCanonicalStringify();\n }\n var canonical = stringifyCanon.admit(value);\n var json = stringifyCache.get(canonical);\n if (json === void 0) {\n stringifyCache.set(canonical, json = JSON.stringify(canonical));\n }\n return json;\n }\n return JSON.stringify(value);\n}, {\n reset: resetCanonicalStringify\n});\nvar stringifyCanon;\nvar stringifyCache;\nfunction resetCanonicalStringify() {\n stringifyCanon = new ObjectCanon();\n stringifyCache = new (canUseWeakMap ? WeakMap : Map)();\n}\n","import { __assign } from \"tslib\";\nimport { invariant, InvariantError } from \"../../utilities/globals/index.js\";\nimport { Kind } from 'graphql';\nimport { wrap } from 'optimism';\nimport { isField, resultKeyNameFromField, isReference, makeReference, shouldInclude, addTypenameToDocument, getDefaultValues, getMainDefinition, getQueryDefinition, getFragmentFromSelection, maybeDeepFreeze, mergeDeepArray, DeepMerger, isNonNullObject, canUseWeakMap, compact } from \"../../utilities/index.js\";\nimport { maybeDependOnExistenceOfEntity, supportsResultCaching } from \"./entityStore.js\";\nimport { isArray, extractFragmentContext, getTypenameFromStoreObject, shouldCanonizeResults } from \"./helpers.js\";\nimport { MissingFieldError } from \"../core/types/common.js\";\nimport { canonicalStringify, ObjectCanon } from \"./object-canon.js\";\n;\nfunction execSelectionSetKeyArgs(options) {\n return [options.selectionSet, options.objectOrReference, options.context, options.context.canonizeResults];\n}\nvar StoreReader = function () {\n function StoreReader(config) {\n var _this = this;\n this.knownResults = new (canUseWeakMap ? WeakMap : Map)();\n this.config = compact(config, {\n addTypename: config.addTypename !== false,\n canonizeResults: shouldCanonizeResults(config)\n });\n this.canon = config.canon || new ObjectCanon();\n this.executeSelectionSet = wrap(function (options) {\n var _a;\n var canonizeResults = options.context.canonizeResults;\n var peekArgs = execSelectionSetKeyArgs(options);\n peekArgs[3] = !canonizeResults;\n var other = (_a = _this.executeSelectionSet).peek.apply(_a, peekArgs);\n if (other) {\n if (canonizeResults) {\n return __assign(__assign({}, other), {\n result: _this.canon.admit(other.result)\n });\n }\n return other;\n }\n maybeDependOnExistenceOfEntity(options.context.store, options.enclosingRef.__ref);\n return _this.execSelectionSetImpl(options);\n }, {\n max: this.config.resultCacheMaxSize,\n keyArgs: execSelectionSetKeyArgs,\n makeCacheKey: function (selectionSet, parent, context, canonizeResults) {\n if (supportsResultCaching(context.store)) {\n return context.store.makeCacheKey(selectionSet, isReference(parent) ? parent.__ref : parent, context.varString, canonizeResults);\n }\n }\n });\n this.executeSubSelectedArray = wrap(function (options) {\n maybeDependOnExistenceOfEntity(options.context.store, options.enclosingRef.__ref);\n return _this.execSubSelectedArrayImpl(options);\n }, {\n max: this.config.resultCacheMaxSize,\n makeCacheKey: function (_a) {\n var field = _a.field,\n array = _a.array,\n context = _a.context;\n if (supportsResultCaching(context.store)) {\n return context.store.makeCacheKey(field, array, context.varString);\n }\n }\n });\n }\n StoreReader.prototype.resetCanon = function () {\n this.canon = new ObjectCanon();\n };\n StoreReader.prototype.diffQueryAgainstStore = function (_a) {\n var store = _a.store,\n query = _a.query,\n _b = _a.rootId,\n rootId = _b === void 0 ? 'ROOT_QUERY' : _b,\n variables = _a.variables,\n _c = _a.returnPartialData,\n returnPartialData = _c === void 0 ? true : _c,\n _d = _a.canonizeResults,\n canonizeResults = _d === void 0 ? this.config.canonizeResults : _d;\n var policies = this.config.cache.policies;\n variables = __assign(__assign({}, getDefaultValues(getQueryDefinition(query))), variables);\n var rootRef = makeReference(rootId);\n var execResult = this.executeSelectionSet({\n selectionSet: getMainDefinition(query).selectionSet,\n objectOrReference: rootRef,\n enclosingRef: rootRef,\n context: __assign({\n store: store,\n query: query,\n policies: policies,\n variables: variables,\n varString: canonicalStringify(variables),\n canonizeResults: canonizeResults\n }, extractFragmentContext(query, this.config.fragments))\n });\n var missing;\n if (execResult.missing) {\n missing = [new MissingFieldError(firstMissing(execResult.missing), execResult.missing, query, variables)];\n if (!returnPartialData) {\n throw missing[0];\n }\n }\n return {\n result: execResult.result,\n complete: !missing,\n missing: missing\n };\n };\n StoreReader.prototype.isFresh = function (result, parent, selectionSet, context) {\n if (supportsResultCaching(context.store) && this.knownResults.get(result) === selectionSet) {\n var latest = this.executeSelectionSet.peek(selectionSet, parent, context, this.canon.isKnown(result));\n if (latest && result === latest.result) {\n return true;\n }\n }\n return false;\n };\n StoreReader.prototype.execSelectionSetImpl = function (_a) {\n var _this = this;\n var selectionSet = _a.selectionSet,\n objectOrReference = _a.objectOrReference,\n enclosingRef = _a.enclosingRef,\n context = _a.context;\n if (isReference(objectOrReference) && !context.policies.rootTypenamesById[objectOrReference.__ref] && !context.store.has(objectOrReference.__ref)) {\n return {\n result: this.canon.empty,\n missing: \"Dangling reference to missing \".concat(objectOrReference.__ref, \" object\")\n };\n }\n var variables = context.variables,\n policies = context.policies,\n store = context.store;\n var typename = store.getFieldValue(objectOrReference, \"__typename\");\n var objectsToMerge = [];\n var missing;\n var missingMerger = new DeepMerger();\n if (this.config.addTypename && typeof typename === \"string\" && !policies.rootIdsByTypename[typename]) {\n objectsToMerge.push({\n __typename: typename\n });\n }\n function handleMissing(result, resultName) {\n var _a;\n if (result.missing) {\n missing = missingMerger.merge(missing, (_a = {}, _a[resultName] = result.missing, _a));\n }\n return result.result;\n }\n var workSet = new Set(selectionSet.selections);\n workSet.forEach(function (selection) {\n var _a, _b;\n if (!shouldInclude(selection, variables)) return;\n if (isField(selection)) {\n var fieldValue = policies.readField({\n fieldName: selection.name.value,\n field: selection,\n variables: context.variables,\n from: objectOrReference\n }, context);\n var resultName = resultKeyNameFromField(selection);\n if (fieldValue === void 0) {\n if (!addTypenameToDocument.added(selection)) {\n missing = missingMerger.merge(missing, (_a = {}, _a[resultName] = \"Can't find field '\".concat(selection.name.value, \"' on \").concat(isReference(objectOrReference) ? objectOrReference.__ref + \" object\" : \"object \" + JSON.stringify(objectOrReference, null, 2)), _a));\n }\n } else if (isArray(fieldValue)) {\n fieldValue = handleMissing(_this.executeSubSelectedArray({\n field: selection,\n array: fieldValue,\n enclosingRef: enclosingRef,\n context: context\n }), resultName);\n } else if (!selection.selectionSet) {\n if (context.canonizeResults) {\n fieldValue = _this.canon.pass(fieldValue);\n }\n } else if (fieldValue != null) {\n fieldValue = handleMissing(_this.executeSelectionSet({\n selectionSet: selection.selectionSet,\n objectOrReference: fieldValue,\n enclosingRef: isReference(fieldValue) ? fieldValue : enclosingRef,\n context: context\n }), resultName);\n }\n if (fieldValue !== void 0) {\n objectsToMerge.push((_b = {}, _b[resultName] = fieldValue, _b));\n }\n } else {\n var fragment = getFragmentFromSelection(selection, context.lookupFragment);\n if (!fragment && selection.kind === Kind.FRAGMENT_SPREAD) {\n throw __DEV__ ? new InvariantError(\"No fragment named \".concat(selection.name.value)) : new InvariantError(5);\n }\n if (fragment && policies.fragmentMatches(fragment, typename)) {\n fragment.selectionSet.selections.forEach(workSet.add, workSet);\n }\n }\n });\n var result = mergeDeepArray(objectsToMerge);\n var finalResult = {\n result: result,\n missing: missing\n };\n var frozen = context.canonizeResults ? this.canon.admit(finalResult) : maybeDeepFreeze(finalResult);\n if (frozen.result) {\n this.knownResults.set(frozen.result, selectionSet);\n }\n return frozen;\n };\n StoreReader.prototype.execSubSelectedArrayImpl = function (_a) {\n var _this = this;\n var field = _a.field,\n array = _a.array,\n enclosingRef = _a.enclosingRef,\n context = _a.context;\n var missing;\n var missingMerger = new DeepMerger();\n function handleMissing(childResult, i) {\n var _a;\n if (childResult.missing) {\n missing = missingMerger.merge(missing, (_a = {}, _a[i] = childResult.missing, _a));\n }\n return childResult.result;\n }\n if (field.selectionSet) {\n array = array.filter(context.store.canRead);\n }\n array = array.map(function (item, i) {\n if (item === null) {\n return null;\n }\n if (isArray(item)) {\n return handleMissing(_this.executeSubSelectedArray({\n field: field,\n array: item,\n enclosingRef: enclosingRef,\n context: context\n }), i);\n }\n if (field.selectionSet) {\n return handleMissing(_this.executeSelectionSet({\n selectionSet: field.selectionSet,\n objectOrReference: item,\n enclosingRef: isReference(item) ? item : enclosingRef,\n context: context\n }), i);\n }\n if (__DEV__) {\n assertSelectionSetForIdValue(context.store, field, item);\n }\n return item;\n });\n return {\n result: context.canonizeResults ? this.canon.admit(array) : array,\n missing: missing\n };\n };\n return StoreReader;\n}();\nexport { StoreReader };\nfunction firstMissing(tree) {\n try {\n JSON.stringify(tree, function (_, value) {\n if (typeof value === \"string\") throw value;\n return value;\n });\n } catch (result) {\n return result;\n }\n}\nfunction assertSelectionSetForIdValue(store, field, fieldValue) {\n if (!field.selectionSet) {\n var workSet_1 = new Set([fieldValue]);\n workSet_1.forEach(function (value) {\n if (isNonNullObject(value)) {\n __DEV__ ? invariant(!isReference(value), \"Missing selection set for object of type \".concat(getTypenameFromStoreObject(store, value), \" returned for query field \").concat(field.name.value)) : invariant(!isReference(value), 6);\n Object.values(value).forEach(workSet_1.add, workSet_1);\n }\n });\n }\n}\n","import { dep } from \"optimism\";\nimport { Slot } from \"@wry/context\";\nexport var cacheSlot = new Slot();\nvar cacheInfoMap = new WeakMap();\nfunction getCacheInfo(cache) {\n var info = cacheInfoMap.get(cache);\n if (!info) {\n cacheInfoMap.set(cache, info = {\n vars: new Set(),\n dep: dep()\n });\n }\n return info;\n}\nexport function forgetCache(cache) {\n getCacheInfo(cache).vars.forEach(function (rv) {\n return rv.forgetCache(cache);\n });\n}\nexport function recallCache(cache) {\n getCacheInfo(cache).vars.forEach(function (rv) {\n return rv.attachCache(cache);\n });\n}\nexport function makeVar(value) {\n var caches = new Set();\n var listeners = new Set();\n var rv = function (newValue) {\n if (arguments.length > 0) {\n if (value !== newValue) {\n value = newValue;\n caches.forEach(function (cache) {\n getCacheInfo(cache).dep.dirty(rv);\n broadcast(cache);\n });\n var oldListeners = Array.from(listeners);\n listeners.clear();\n oldListeners.forEach(function (listener) {\n return listener(value);\n });\n }\n } else {\n var cache = cacheSlot.getValue();\n if (cache) {\n attach(cache);\n getCacheInfo(cache).dep(rv);\n }\n }\n return value;\n };\n rv.onNextChange = function (listener) {\n listeners.add(listener);\n return function () {\n listeners.delete(listener);\n };\n };\n var attach = rv.attachCache = function (cache) {\n caches.add(cache);\n getCacheInfo(cache).vars.add(rv);\n return rv;\n };\n rv.forgetCache = function (cache) {\n return caches.delete(cache);\n };\n return rv;\n}\nfunction broadcast(cache) {\n if (cache.broadcastWatches) {\n cache.broadcastWatches();\n }\n}\n","import { invariant } from \"../../utilities/globals/index.js\";\nimport { argumentsObjectFromField, DeepMerger, isNonEmptyArray, isNonNullObject } from \"../../utilities/index.js\";\nimport { hasOwn, isArray } from \"./helpers.js\";\nvar specifierInfoCache = Object.create(null);\nfunction lookupSpecifierInfo(spec) {\n var cacheKey = JSON.stringify(spec);\n return specifierInfoCache[cacheKey] || (specifierInfoCache[cacheKey] = Object.create(null));\n}\nexport function keyFieldsFnFromSpecifier(specifier) {\n var info = lookupSpecifierInfo(specifier);\n return info.keyFieldsFn || (info.keyFieldsFn = function (object, context) {\n var extract = function (from, key) {\n return context.readField(key, from);\n };\n var keyObject = context.keyObject = collectSpecifierPaths(specifier, function (schemaKeyPath) {\n var extracted = extractKeyPath(context.storeObject, schemaKeyPath, extract);\n if (extracted === void 0 && object !== context.storeObject && hasOwn.call(object, schemaKeyPath[0])) {\n extracted = extractKeyPath(object, schemaKeyPath, extractKey);\n }\n __DEV__ ? invariant(extracted !== void 0, \"Missing field '\".concat(schemaKeyPath.join('.'), \"' while extracting keyFields from \").concat(JSON.stringify(object))) : invariant(extracted !== void 0, 2);\n return extracted;\n });\n return \"\".concat(context.typename, \":\").concat(JSON.stringify(keyObject));\n });\n}\nexport function keyArgsFnFromSpecifier(specifier) {\n var info = lookupSpecifierInfo(specifier);\n return info.keyArgsFn || (info.keyArgsFn = function (args, _a) {\n var field = _a.field,\n variables = _a.variables,\n fieldName = _a.fieldName;\n var collected = collectSpecifierPaths(specifier, function (keyPath) {\n var firstKey = keyPath[0];\n var firstChar = firstKey.charAt(0);\n if (firstChar === \"@\") {\n if (field && isNonEmptyArray(field.directives)) {\n var directiveName_1 = firstKey.slice(1);\n var d = field.directives.find(function (d) {\n return d.name.value === directiveName_1;\n });\n var directiveArgs = d && argumentsObjectFromField(d, variables);\n return directiveArgs && extractKeyPath(directiveArgs, keyPath.slice(1));\n }\n return;\n }\n if (firstChar === \"$\") {\n var variableName = firstKey.slice(1);\n if (variables && hasOwn.call(variables, variableName)) {\n var varKeyPath = keyPath.slice(0);\n varKeyPath[0] = variableName;\n return extractKeyPath(variables, varKeyPath);\n }\n return;\n }\n if (args) {\n return extractKeyPath(args, keyPath);\n }\n });\n var suffix = JSON.stringify(collected);\n if (args || suffix !== \"{}\") {\n fieldName += \":\" + suffix;\n }\n return fieldName;\n });\n}\nexport function collectSpecifierPaths(specifier, extractor) {\n var merger = new DeepMerger();\n return getSpecifierPaths(specifier).reduce(function (collected, path) {\n var _a;\n var toMerge = extractor(path);\n if (toMerge !== void 0) {\n for (var i = path.length - 1; i >= 0; --i) {\n toMerge = (_a = {}, _a[path[i]] = toMerge, _a);\n }\n collected = merger.merge(collected, toMerge);\n }\n return collected;\n }, Object.create(null));\n}\nexport function getSpecifierPaths(spec) {\n var info = lookupSpecifierInfo(spec);\n if (!info.paths) {\n var paths_1 = info.paths = [];\n var currentPath_1 = [];\n spec.forEach(function (s, i) {\n if (isArray(s)) {\n getSpecifierPaths(s).forEach(function (p) {\n return paths_1.push(currentPath_1.concat(p));\n });\n currentPath_1.length = 0;\n } else {\n currentPath_1.push(s);\n if (!isArray(spec[i + 1])) {\n paths_1.push(currentPath_1.slice(0));\n currentPath_1.length = 0;\n }\n }\n });\n }\n return info.paths;\n}\nfunction extractKey(object, key) {\n return object[key];\n}\nexport function extractKeyPath(object, path, extract) {\n extract = extract || extractKey;\n return normalize(path.reduce(function reducer(obj, key) {\n return isArray(obj) ? obj.map(function (child) {\n return reducer(child, key);\n }) : obj && extract(obj, key);\n }, object));\n}\nfunction normalize(value) {\n if (isNonNullObject(value)) {\n if (isArray(value)) {\n return value.map(normalize);\n }\n return collectSpecifierPaths(Object.keys(value).sort(), function (path) {\n return extractKeyPath(value, path);\n });\n }\n return value;\n}\n","import { __assign, __rest } from \"tslib\";\nimport { invariant, InvariantError } from \"../../utilities/globals/index.js\";\nimport { storeKeyNameFromField, argumentsObjectFromField, isReference, getStoreKeyName, isNonNullObject, stringifyForDisplay } from \"../../utilities/index.js\";\nimport { hasOwn, fieldNameFromStoreName, storeValueIsStoreObject, selectionSetMatchesResult, TypeOrFieldNameRegExp, defaultDataIdFromObject, isArray } from \"./helpers.js\";\nimport { cacheSlot } from \"./reactiveVars.js\";\nimport { canonicalStringify } from \"./object-canon.js\";\nimport { keyArgsFnFromSpecifier, keyFieldsFnFromSpecifier } from \"./key-extractor.js\";\ngetStoreKeyName.setStringify(canonicalStringify);\nfunction argsFromFieldSpecifier(spec) {\n return spec.args !== void 0 ? spec.args : spec.field ? argumentsObjectFromField(spec.field, spec.variables) : null;\n}\nvar nullKeyFieldsFn = function () {\n return void 0;\n};\nvar simpleKeyArgsFn = function (_args, context) {\n return context.fieldName;\n};\nvar mergeTrueFn = function (existing, incoming, _a) {\n var mergeObjects = _a.mergeObjects;\n return mergeObjects(existing, incoming);\n};\nvar mergeFalseFn = function (_, incoming) {\n return incoming;\n};\nvar Policies = function () {\n function Policies(config) {\n this.config = config;\n this.typePolicies = Object.create(null);\n this.toBeAdded = Object.create(null);\n this.supertypeMap = new Map();\n this.fuzzySubtypes = new Map();\n this.rootIdsByTypename = Object.create(null);\n this.rootTypenamesById = Object.create(null);\n this.usingPossibleTypes = false;\n this.config = __assign({\n dataIdFromObject: defaultDataIdFromObject\n }, config);\n this.cache = this.config.cache;\n this.setRootTypename(\"Query\");\n this.setRootTypename(\"Mutation\");\n this.setRootTypename(\"Subscription\");\n if (config.possibleTypes) {\n this.addPossibleTypes(config.possibleTypes);\n }\n if (config.typePolicies) {\n this.addTypePolicies(config.typePolicies);\n }\n }\n Policies.prototype.identify = function (object, partialContext) {\n var _a;\n var policies = this;\n var typename = partialContext && (partialContext.typename || ((_a = partialContext.storeObject) === null || _a === void 0 ? void 0 : _a.__typename)) || object.__typename;\n if (typename === this.rootTypenamesById.ROOT_QUERY) {\n return [\"ROOT_QUERY\"];\n }\n var storeObject = partialContext && partialContext.storeObject || object;\n var context = __assign(__assign({}, partialContext), {\n typename: typename,\n storeObject: storeObject,\n readField: partialContext && partialContext.readField || function () {\n var options = normalizeReadFieldOptions(arguments, storeObject);\n return policies.readField(options, {\n store: policies.cache[\"data\"],\n variables: options.variables\n });\n }\n });\n var id;\n var policy = typename && this.getTypePolicy(typename);\n var keyFn = policy && policy.keyFn || this.config.dataIdFromObject;\n while (keyFn) {\n var specifierOrId = keyFn(object, context);\n if (isArray(specifierOrId)) {\n keyFn = keyFieldsFnFromSpecifier(specifierOrId);\n } else {\n id = specifierOrId;\n break;\n }\n }\n id = id ? String(id) : void 0;\n return context.keyObject ? [id, context.keyObject] : [id];\n };\n Policies.prototype.addTypePolicies = function (typePolicies) {\n var _this = this;\n Object.keys(typePolicies).forEach(function (typename) {\n var _a = typePolicies[typename],\n queryType = _a.queryType,\n mutationType = _a.mutationType,\n subscriptionType = _a.subscriptionType,\n incoming = __rest(_a, [\"queryType\", \"mutationType\", \"subscriptionType\"]);\n if (queryType) _this.setRootTypename(\"Query\", typename);\n if (mutationType) _this.setRootTypename(\"Mutation\", typename);\n if (subscriptionType) _this.setRootTypename(\"Subscription\", typename);\n if (hasOwn.call(_this.toBeAdded, typename)) {\n _this.toBeAdded[typename].push(incoming);\n } else {\n _this.toBeAdded[typename] = [incoming];\n }\n });\n };\n Policies.prototype.updateTypePolicy = function (typename, incoming) {\n var _this = this;\n var existing = this.getTypePolicy(typename);\n var keyFields = incoming.keyFields,\n fields = incoming.fields;\n function setMerge(existing, merge) {\n existing.merge = typeof merge === \"function\" ? merge : merge === true ? mergeTrueFn : merge === false ? mergeFalseFn : existing.merge;\n }\n setMerge(existing, incoming.merge);\n existing.keyFn = keyFields === false ? nullKeyFieldsFn : isArray(keyFields) ? keyFieldsFnFromSpecifier(keyFields) : typeof keyFields === \"function\" ? keyFields : existing.keyFn;\n if (fields) {\n Object.keys(fields).forEach(function (fieldName) {\n var existing = _this.getFieldPolicy(typename, fieldName, true);\n var incoming = fields[fieldName];\n if (typeof incoming === \"function\") {\n existing.read = incoming;\n } else {\n var keyArgs = incoming.keyArgs,\n read = incoming.read,\n merge = incoming.merge;\n existing.keyFn = keyArgs === false ? simpleKeyArgsFn : isArray(keyArgs) ? keyArgsFnFromSpecifier(keyArgs) : typeof keyArgs === \"function\" ? keyArgs : existing.keyFn;\n if (typeof read === \"function\") {\n existing.read = read;\n }\n setMerge(existing, merge);\n }\n if (existing.read && existing.merge) {\n existing.keyFn = existing.keyFn || simpleKeyArgsFn;\n }\n });\n }\n };\n Policies.prototype.setRootTypename = function (which, typename) {\n if (typename === void 0) {\n typename = which;\n }\n var rootId = \"ROOT_\" + which.toUpperCase();\n var old = this.rootTypenamesById[rootId];\n if (typename !== old) {\n __DEV__ ? invariant(!old || old === which, \"Cannot change root \".concat(which, \" __typename more than once\")) : invariant(!old || old === which, 3);\n if (old) delete this.rootIdsByTypename[old];\n this.rootIdsByTypename[typename] = rootId;\n this.rootTypenamesById[rootId] = typename;\n }\n };\n Policies.prototype.addPossibleTypes = function (possibleTypes) {\n var _this = this;\n this.usingPossibleTypes = true;\n Object.keys(possibleTypes).forEach(function (supertype) {\n _this.getSupertypeSet(supertype, true);\n possibleTypes[supertype].forEach(function (subtype) {\n _this.getSupertypeSet(subtype, true).add(supertype);\n var match = subtype.match(TypeOrFieldNameRegExp);\n if (!match || match[0] !== subtype) {\n _this.fuzzySubtypes.set(subtype, new RegExp(subtype));\n }\n });\n });\n };\n Policies.prototype.getTypePolicy = function (typename) {\n var _this = this;\n if (!hasOwn.call(this.typePolicies, typename)) {\n var policy_1 = this.typePolicies[typename] = Object.create(null);\n policy_1.fields = Object.create(null);\n var supertypes = this.supertypeMap.get(typename);\n if (supertypes && supertypes.size) {\n supertypes.forEach(function (supertype) {\n var _a = _this.getTypePolicy(supertype),\n fields = _a.fields,\n rest = __rest(_a, [\"fields\"]);\n Object.assign(policy_1, rest);\n Object.assign(policy_1.fields, fields);\n });\n }\n }\n var inbox = this.toBeAdded[typename];\n if (inbox && inbox.length) {\n inbox.splice(0).forEach(function (policy) {\n _this.updateTypePolicy(typename, policy);\n });\n }\n return this.typePolicies[typename];\n };\n Policies.prototype.getFieldPolicy = function (typename, fieldName, createIfMissing) {\n if (typename) {\n var fieldPolicies = this.getTypePolicy(typename).fields;\n return fieldPolicies[fieldName] || createIfMissing && (fieldPolicies[fieldName] = Object.create(null));\n }\n };\n Policies.prototype.getSupertypeSet = function (subtype, createIfMissing) {\n var supertypeSet = this.supertypeMap.get(subtype);\n if (!supertypeSet && createIfMissing) {\n this.supertypeMap.set(subtype, supertypeSet = new Set());\n }\n return supertypeSet;\n };\n Policies.prototype.fragmentMatches = function (fragment, typename, result, variables) {\n var _this = this;\n if (!fragment.typeCondition) return true;\n if (!typename) return false;\n var supertype = fragment.typeCondition.name.value;\n if (typename === supertype) return true;\n if (this.usingPossibleTypes && this.supertypeMap.has(supertype)) {\n var typenameSupertypeSet = this.getSupertypeSet(typename, true);\n var workQueue_1 = [typenameSupertypeSet];\n var maybeEnqueue_1 = function (subtype) {\n var supertypeSet = _this.getSupertypeSet(subtype, false);\n if (supertypeSet && supertypeSet.size && workQueue_1.indexOf(supertypeSet) < 0) {\n workQueue_1.push(supertypeSet);\n }\n };\n var needToCheckFuzzySubtypes = !!(result && this.fuzzySubtypes.size);\n var checkingFuzzySubtypes = false;\n for (var i = 0; i < workQueue_1.length; ++i) {\n var supertypeSet = workQueue_1[i];\n if (supertypeSet.has(supertype)) {\n if (!typenameSupertypeSet.has(supertype)) {\n if (checkingFuzzySubtypes) {\n __DEV__ && invariant.warn(\"Inferring subtype \".concat(typename, \" of supertype \").concat(supertype));\n }\n typenameSupertypeSet.add(supertype);\n }\n return true;\n }\n supertypeSet.forEach(maybeEnqueue_1);\n if (needToCheckFuzzySubtypes && i === workQueue_1.length - 1 && selectionSetMatchesResult(fragment.selectionSet, result, variables)) {\n needToCheckFuzzySubtypes = false;\n checkingFuzzySubtypes = true;\n this.fuzzySubtypes.forEach(function (regExp, fuzzyString) {\n var match = typename.match(regExp);\n if (match && match[0] === typename) {\n maybeEnqueue_1(fuzzyString);\n }\n });\n }\n }\n }\n return false;\n };\n Policies.prototype.hasKeyArgs = function (typename, fieldName) {\n var policy = this.getFieldPolicy(typename, fieldName, false);\n return !!(policy && policy.keyFn);\n };\n Policies.prototype.getStoreFieldName = function (fieldSpec) {\n var typename = fieldSpec.typename,\n fieldName = fieldSpec.fieldName;\n var policy = this.getFieldPolicy(typename, fieldName, false);\n var storeFieldName;\n var keyFn = policy && policy.keyFn;\n if (keyFn && typename) {\n var context = {\n typename: typename,\n fieldName: fieldName,\n field: fieldSpec.field || null,\n variables: fieldSpec.variables\n };\n var args = argsFromFieldSpecifier(fieldSpec);\n while (keyFn) {\n var specifierOrString = keyFn(args, context);\n if (isArray(specifierOrString)) {\n keyFn = keyArgsFnFromSpecifier(specifierOrString);\n } else {\n storeFieldName = specifierOrString || fieldName;\n break;\n }\n }\n }\n if (storeFieldName === void 0) {\n storeFieldName = fieldSpec.field ? storeKeyNameFromField(fieldSpec.field, fieldSpec.variables) : getStoreKeyName(fieldName, argsFromFieldSpecifier(fieldSpec));\n }\n if (storeFieldName === false) {\n return fieldName;\n }\n return fieldName === fieldNameFromStoreName(storeFieldName) ? storeFieldName : fieldName + \":\" + storeFieldName;\n };\n Policies.prototype.readField = function (options, context) {\n var objectOrReference = options.from;\n if (!objectOrReference) return;\n var nameOrField = options.field || options.fieldName;\n if (!nameOrField) return;\n if (options.typename === void 0) {\n var typename = context.store.getFieldValue(objectOrReference, \"__typename\");\n if (typename) options.typename = typename;\n }\n var storeFieldName = this.getStoreFieldName(options);\n var fieldName = fieldNameFromStoreName(storeFieldName);\n var existing = context.store.getFieldValue(objectOrReference, storeFieldName);\n var policy = this.getFieldPolicy(options.typename, fieldName, false);\n var read = policy && policy.read;\n if (read) {\n var readOptions = makeFieldFunctionOptions(this, objectOrReference, options, context, context.store.getStorage(isReference(objectOrReference) ? objectOrReference.__ref : objectOrReference, storeFieldName));\n return cacheSlot.withValue(this.cache, read, [existing, readOptions]);\n }\n return existing;\n };\n Policies.prototype.getReadFunction = function (typename, fieldName) {\n var policy = this.getFieldPolicy(typename, fieldName, false);\n return policy && policy.read;\n };\n Policies.prototype.getMergeFunction = function (parentTypename, fieldName, childTypename) {\n var policy = this.getFieldPolicy(parentTypename, fieldName, false);\n var merge = policy && policy.merge;\n if (!merge && childTypename) {\n policy = this.getTypePolicy(childTypename);\n merge = policy && policy.merge;\n }\n return merge;\n };\n Policies.prototype.runMergeFunction = function (existing, incoming, _a, context, storage) {\n var field = _a.field,\n typename = _a.typename,\n merge = _a.merge;\n if (merge === mergeTrueFn) {\n return makeMergeObjectsFunction(context.store)(existing, incoming);\n }\n if (merge === mergeFalseFn) {\n return incoming;\n }\n if (context.overwrite) {\n existing = void 0;\n }\n return merge(existing, incoming, makeFieldFunctionOptions(this, void 0, {\n typename: typename,\n fieldName: field.name.value,\n field: field,\n variables: context.variables\n }, context, storage || Object.create(null)));\n };\n return Policies;\n}();\nexport { Policies };\nfunction makeFieldFunctionOptions(policies, objectOrReference, fieldSpec, context, storage) {\n var storeFieldName = policies.getStoreFieldName(fieldSpec);\n var fieldName = fieldNameFromStoreName(storeFieldName);\n var variables = fieldSpec.variables || context.variables;\n var _a = context.store,\n toReference = _a.toReference,\n canRead = _a.canRead;\n return {\n args: argsFromFieldSpecifier(fieldSpec),\n field: fieldSpec.field || null,\n fieldName: fieldName,\n storeFieldName: storeFieldName,\n variables: variables,\n isReference: isReference,\n toReference: toReference,\n storage: storage,\n cache: policies.cache,\n canRead: canRead,\n readField: function () {\n return policies.readField(normalizeReadFieldOptions(arguments, objectOrReference, variables), context);\n },\n mergeObjects: makeMergeObjectsFunction(context.store)\n };\n}\nexport function normalizeReadFieldOptions(readFieldArgs, objectOrReference, variables) {\n var fieldNameOrOptions = readFieldArgs[0],\n from = readFieldArgs[1],\n argc = readFieldArgs.length;\n var options;\n if (typeof fieldNameOrOptions === \"string\") {\n options = {\n fieldName: fieldNameOrOptions,\n from: argc > 1 ? from : objectOrReference\n };\n } else {\n options = __assign({}, fieldNameOrOptions);\n if (!hasOwn.call(options, \"from\")) {\n options.from = objectOrReference;\n }\n }\n if (__DEV__ && options.from === void 0) {\n __DEV__ && invariant.warn(\"Undefined 'from' passed to readField with arguments \".concat(stringifyForDisplay(Array.from(readFieldArgs))));\n }\n if (void 0 === options.variables) {\n options.variables = variables;\n }\n return options;\n}\nfunction makeMergeObjectsFunction(store) {\n return function mergeObjects(existing, incoming) {\n if (isArray(existing) || isArray(incoming)) {\n throw __DEV__ ? new InvariantError(\"Cannot automatically merge arrays\") : new InvariantError(4);\n }\n if (isNonNullObject(existing) && isNonNullObject(incoming)) {\n var eType = store.getFieldValue(existing, \"__typename\");\n var iType = store.getFieldValue(incoming, \"__typename\");\n var typesDiffer = eType && iType && eType !== iType;\n if (typesDiffer) {\n return incoming;\n }\n if (isReference(existing) && storeValueIsStoreObject(incoming)) {\n store.merge(existing.__ref, incoming);\n return existing;\n }\n if (storeValueIsStoreObject(existing) && isReference(incoming)) {\n store.merge(existing, incoming.__ref);\n return incoming;\n }\n if (storeValueIsStoreObject(existing) && storeValueIsStoreObject(incoming)) {\n return __assign(__assign({}, existing), incoming);\n }\n }\n return incoming;\n };\n}\n","import { __assign } from \"tslib\";\nimport { invariant, InvariantError } from \"../../utilities/globals/index.js\";\nimport { equal } from '@wry/equality';\nimport { Trie } from '@wry/trie';\nimport { Kind } from 'graphql';\nimport { getFragmentFromSelection, getDefaultValues, getOperationDefinition, getTypenameFromResult, makeReference, isField, resultKeyNameFromField, isReference, shouldInclude, cloneDeep, addTypenameToDocument, isNonEmptyArray, argumentsObjectFromField } from \"../../utilities/index.js\";\nimport { isArray, makeProcessedFieldsMerger, fieldNameFromStoreName, storeValueIsStoreObject, extractFragmentContext } from \"./helpers.js\";\nimport { canonicalStringify } from \"./object-canon.js\";\nimport { normalizeReadFieldOptions } from \"./policies.js\";\n;\nfunction getContextFlavor(context, clientOnly, deferred) {\n var key = \"\".concat(clientOnly).concat(deferred);\n var flavored = context.flavors.get(key);\n if (!flavored) {\n context.flavors.set(key, flavored = context.clientOnly === clientOnly && context.deferred === deferred ? context : __assign(__assign({}, context), {\n clientOnly: clientOnly,\n deferred: deferred\n }));\n }\n return flavored;\n}\nvar StoreWriter = function () {\n function StoreWriter(cache, reader, fragments) {\n this.cache = cache;\n this.reader = reader;\n this.fragments = fragments;\n }\n StoreWriter.prototype.writeToStore = function (store, _a) {\n var _this = this;\n var query = _a.query,\n result = _a.result,\n dataId = _a.dataId,\n variables = _a.variables,\n overwrite = _a.overwrite;\n var operationDefinition = getOperationDefinition(query);\n var merger = makeProcessedFieldsMerger();\n variables = __assign(__assign({}, getDefaultValues(operationDefinition)), variables);\n var context = __assign(__assign({\n store: store,\n written: Object.create(null),\n merge: function (existing, incoming) {\n return merger.merge(existing, incoming);\n },\n variables: variables,\n varString: canonicalStringify(variables)\n }, extractFragmentContext(query, this.fragments)), {\n overwrite: !!overwrite,\n incomingById: new Map(),\n clientOnly: false,\n deferred: false,\n flavors: new Map()\n });\n var ref = this.processSelectionSet({\n result: result || Object.create(null),\n dataId: dataId,\n selectionSet: operationDefinition.selectionSet,\n mergeTree: {\n map: new Map()\n },\n context: context\n });\n if (!isReference(ref)) {\n throw __DEV__ ? new InvariantError(\"Could not identify object \".concat(JSON.stringify(result))) : new InvariantError(7);\n }\n context.incomingById.forEach(function (_a, dataId) {\n var storeObject = _a.storeObject,\n mergeTree = _a.mergeTree,\n fieldNodeSet = _a.fieldNodeSet;\n var entityRef = makeReference(dataId);\n if (mergeTree && mergeTree.map.size) {\n var applied = _this.applyMerges(mergeTree, entityRef, storeObject, context);\n if (isReference(applied)) {\n return;\n }\n storeObject = applied;\n }\n if (__DEV__ && !context.overwrite) {\n var fieldsWithSelectionSets_1 = Object.create(null);\n fieldNodeSet.forEach(function (field) {\n if (field.selectionSet) {\n fieldsWithSelectionSets_1[field.name.value] = true;\n }\n });\n var hasSelectionSet_1 = function (storeFieldName) {\n return fieldsWithSelectionSets_1[fieldNameFromStoreName(storeFieldName)] === true;\n };\n var hasMergeFunction_1 = function (storeFieldName) {\n var childTree = mergeTree && mergeTree.map.get(storeFieldName);\n return Boolean(childTree && childTree.info && childTree.info.merge);\n };\n Object.keys(storeObject).forEach(function (storeFieldName) {\n if (hasSelectionSet_1(storeFieldName) && !hasMergeFunction_1(storeFieldName)) {\n warnAboutDataLoss(entityRef, storeObject, storeFieldName, context.store);\n }\n });\n }\n store.merge(dataId, storeObject);\n });\n store.retain(ref.__ref);\n return ref;\n };\n StoreWriter.prototype.processSelectionSet = function (_a) {\n var _this = this;\n var dataId = _a.dataId,\n result = _a.result,\n selectionSet = _a.selectionSet,\n context = _a.context,\n mergeTree = _a.mergeTree;\n var policies = this.cache.policies;\n var incoming = Object.create(null);\n var typename = dataId && policies.rootTypenamesById[dataId] || getTypenameFromResult(result, selectionSet, context.fragmentMap) || dataId && context.store.get(dataId, \"__typename\");\n if (\"string\" === typeof typename) {\n incoming.__typename = typename;\n }\n var readField = function () {\n var options = normalizeReadFieldOptions(arguments, incoming, context.variables);\n if (isReference(options.from)) {\n var info = context.incomingById.get(options.from.__ref);\n if (info) {\n var result_1 = policies.readField(__assign(__assign({}, options), {\n from: info.storeObject\n }), context);\n if (result_1 !== void 0) {\n return result_1;\n }\n }\n }\n return policies.readField(options, context);\n };\n var fieldNodeSet = new Set();\n this.flattenFields(selectionSet, result, context, typename).forEach(function (context, field) {\n var _a;\n var resultFieldKey = resultKeyNameFromField(field);\n var value = result[resultFieldKey];\n fieldNodeSet.add(field);\n if (value !== void 0) {\n var storeFieldName = policies.getStoreFieldName({\n typename: typename,\n fieldName: field.name.value,\n field: field,\n variables: context.variables\n });\n var childTree = getChildMergeTree(mergeTree, storeFieldName);\n var incomingValue = _this.processFieldValue(value, field, field.selectionSet ? getContextFlavor(context, false, false) : context, childTree);\n var childTypename = void 0;\n if (field.selectionSet && (isReference(incomingValue) || storeValueIsStoreObject(incomingValue))) {\n childTypename = readField(\"__typename\", incomingValue);\n }\n var merge = policies.getMergeFunction(typename, field.name.value, childTypename);\n if (merge) {\n childTree.info = {\n field: field,\n typename: typename,\n merge: merge\n };\n } else {\n maybeRecycleChildMergeTree(mergeTree, storeFieldName);\n }\n incoming = context.merge(incoming, (_a = {}, _a[storeFieldName] = incomingValue, _a));\n } else if (__DEV__ && !context.clientOnly && !context.deferred && !addTypenameToDocument.added(field) && !policies.getReadFunction(typename, field.name.value)) {\n __DEV__ && invariant.error(\"Missing field '\".concat(resultKeyNameFromField(field), \"' while writing result \").concat(JSON.stringify(result, null, 2)).substring(0, 1000));\n }\n });\n try {\n var _b = policies.identify(result, {\n typename: typename,\n selectionSet: selectionSet,\n fragmentMap: context.fragmentMap,\n storeObject: incoming,\n readField: readField\n }),\n id = _b[0],\n keyObject = _b[1];\n dataId = dataId || id;\n if (keyObject) {\n incoming = context.merge(incoming, keyObject);\n }\n } catch (e) {\n if (!dataId) throw e;\n }\n if (\"string\" === typeof dataId) {\n var dataRef = makeReference(dataId);\n var sets = context.written[dataId] || (context.written[dataId] = []);\n if (sets.indexOf(selectionSet) >= 0) return dataRef;\n sets.push(selectionSet);\n if (this.reader && this.reader.isFresh(result, dataRef, selectionSet, context)) {\n return dataRef;\n }\n var previous_1 = context.incomingById.get(dataId);\n if (previous_1) {\n previous_1.storeObject = context.merge(previous_1.storeObject, incoming);\n previous_1.mergeTree = mergeMergeTrees(previous_1.mergeTree, mergeTree);\n fieldNodeSet.forEach(function (field) {\n return previous_1.fieldNodeSet.add(field);\n });\n } else {\n context.incomingById.set(dataId, {\n storeObject: incoming,\n mergeTree: mergeTreeIsEmpty(mergeTree) ? void 0 : mergeTree,\n fieldNodeSet: fieldNodeSet\n });\n }\n return dataRef;\n }\n return incoming;\n };\n StoreWriter.prototype.processFieldValue = function (value, field, context, mergeTree) {\n var _this = this;\n if (!field.selectionSet || value === null) {\n return __DEV__ ? cloneDeep(value) : value;\n }\n if (isArray(value)) {\n return value.map(function (item, i) {\n var value = _this.processFieldValue(item, field, context, getChildMergeTree(mergeTree, i));\n maybeRecycleChildMergeTree(mergeTree, i);\n return value;\n });\n }\n return this.processSelectionSet({\n result: value,\n selectionSet: field.selectionSet,\n context: context,\n mergeTree: mergeTree\n });\n };\n StoreWriter.prototype.flattenFields = function (selectionSet, result, context, typename) {\n if (typename === void 0) {\n typename = getTypenameFromResult(result, selectionSet, context.fragmentMap);\n }\n var fieldMap = new Map();\n var policies = this.cache.policies;\n var limitingTrie = new Trie(false);\n (function flatten(selectionSet, inheritedContext) {\n var visitedNode = limitingTrie.lookup(selectionSet, inheritedContext.clientOnly, inheritedContext.deferred);\n if (visitedNode.visited) return;\n visitedNode.visited = true;\n selectionSet.selections.forEach(function (selection) {\n if (!shouldInclude(selection, context.variables)) return;\n var clientOnly = inheritedContext.clientOnly,\n deferred = inheritedContext.deferred;\n if (!(clientOnly && deferred) && isNonEmptyArray(selection.directives)) {\n selection.directives.forEach(function (dir) {\n var name = dir.name.value;\n if (name === \"client\") clientOnly = true;\n if (name === \"defer\") {\n var args = argumentsObjectFromField(dir, context.variables);\n if (!args || args.if !== false) {\n deferred = true;\n }\n }\n });\n }\n if (isField(selection)) {\n var existing = fieldMap.get(selection);\n if (existing) {\n clientOnly = clientOnly && existing.clientOnly;\n deferred = deferred && existing.deferred;\n }\n fieldMap.set(selection, getContextFlavor(context, clientOnly, deferred));\n } else {\n var fragment = getFragmentFromSelection(selection, context.lookupFragment);\n if (!fragment && selection.kind === Kind.FRAGMENT_SPREAD) {\n throw __DEV__ ? new InvariantError(\"No fragment named \".concat(selection.name.value)) : new InvariantError(8);\n }\n if (fragment && policies.fragmentMatches(fragment, typename, result, context.variables)) {\n flatten(fragment.selectionSet, getContextFlavor(context, clientOnly, deferred));\n }\n }\n });\n })(selectionSet, context);\n return fieldMap;\n };\n StoreWriter.prototype.applyMerges = function (mergeTree, existing, incoming, context, getStorageArgs) {\n var _a;\n var _this = this;\n if (mergeTree.map.size && !isReference(incoming)) {\n var e_1 = !isArray(incoming) && (isReference(existing) || storeValueIsStoreObject(existing)) ? existing : void 0;\n var i_1 = incoming;\n if (e_1 && !getStorageArgs) {\n getStorageArgs = [isReference(e_1) ? e_1.__ref : e_1];\n }\n var changedFields_1;\n var getValue_1 = function (from, name) {\n return isArray(from) ? typeof name === \"number\" ? from[name] : void 0 : context.store.getFieldValue(from, String(name));\n };\n mergeTree.map.forEach(function (childTree, storeFieldName) {\n var eVal = getValue_1(e_1, storeFieldName);\n var iVal = getValue_1(i_1, storeFieldName);\n if (void 0 === iVal) return;\n if (getStorageArgs) {\n getStorageArgs.push(storeFieldName);\n }\n var aVal = _this.applyMerges(childTree, eVal, iVal, context, getStorageArgs);\n if (aVal !== iVal) {\n changedFields_1 = changedFields_1 || new Map();\n changedFields_1.set(storeFieldName, aVal);\n }\n if (getStorageArgs) {\n invariant(getStorageArgs.pop() === storeFieldName);\n }\n });\n if (changedFields_1) {\n incoming = isArray(i_1) ? i_1.slice(0) : __assign({}, i_1);\n changedFields_1.forEach(function (value, name) {\n incoming[name] = value;\n });\n }\n }\n if (mergeTree.info) {\n return this.cache.policies.runMergeFunction(existing, incoming, mergeTree.info, context, getStorageArgs && (_a = context.store).getStorage.apply(_a, getStorageArgs));\n }\n return incoming;\n };\n return StoreWriter;\n}();\nexport { StoreWriter };\nvar emptyMergeTreePool = [];\nfunction getChildMergeTree(_a, name) {\n var map = _a.map;\n if (!map.has(name)) {\n map.set(name, emptyMergeTreePool.pop() || {\n map: new Map()\n });\n }\n return map.get(name);\n}\nfunction mergeMergeTrees(left, right) {\n if (left === right || !right || mergeTreeIsEmpty(right)) return left;\n if (!left || mergeTreeIsEmpty(left)) return right;\n var info = left.info && right.info ? __assign(__assign({}, left.info), right.info) : left.info || right.info;\n var needToMergeMaps = left.map.size && right.map.size;\n var map = needToMergeMaps ? new Map() : left.map.size ? left.map : right.map;\n var merged = {\n info: info,\n map: map\n };\n if (needToMergeMaps) {\n var remainingRightKeys_1 = new Set(right.map.keys());\n left.map.forEach(function (leftTree, key) {\n merged.map.set(key, mergeMergeTrees(leftTree, right.map.get(key)));\n remainingRightKeys_1.delete(key);\n });\n remainingRightKeys_1.forEach(function (key) {\n merged.map.set(key, mergeMergeTrees(right.map.get(key), left.map.get(key)));\n });\n }\n return merged;\n}\nfunction mergeTreeIsEmpty(tree) {\n return !tree || !(tree.info || tree.map.size);\n}\nfunction maybeRecycleChildMergeTree(_a, name) {\n var map = _a.map;\n var childTree = map.get(name);\n if (childTree && mergeTreeIsEmpty(childTree)) {\n emptyMergeTreePool.push(childTree);\n map.delete(name);\n }\n}\nvar warnings = new Set();\nfunction warnAboutDataLoss(existingRef, incomingObj, storeFieldName, store) {\n var getChild = function (objOrRef) {\n var child = store.getFieldValue(objOrRef, storeFieldName);\n return typeof child === \"object\" && child;\n };\n var existing = getChild(existingRef);\n if (!existing) return;\n var incoming = getChild(incomingObj);\n if (!incoming) return;\n if (isReference(existing)) return;\n if (equal(existing, incoming)) return;\n if (Object.keys(existing).every(function (key) {\n return store.getFieldValue(incoming, key) !== void 0;\n })) {\n return;\n }\n var parentType = store.getFieldValue(existingRef, \"__typename\") || store.getFieldValue(incomingObj, \"__typename\");\n var fieldName = fieldNameFromStoreName(storeFieldName);\n var typeDotName = \"\".concat(parentType, \".\").concat(fieldName);\n if (warnings.has(typeDotName)) return;\n warnings.add(typeDotName);\n var childTypenames = [];\n if (!isArray(existing) && !isArray(incoming)) {\n [existing, incoming].forEach(function (child) {\n var typename = store.getFieldValue(child, \"__typename\");\n if (typeof typename === \"string\" && !childTypenames.includes(typename)) {\n childTypenames.push(typename);\n }\n });\n }\n __DEV__ && invariant.warn(\"Cache data may be lost when replacing the \".concat(fieldName, \" field of a \").concat(parentType, \" object.\\n\\nTo address this problem (which is not a bug in Apollo Client), \").concat(childTypenames.length ? \"either ensure all objects of type \" + childTypenames.join(\" and \") + \" have an ID or a custom merge function, or \" : \"\", \"define a custom merge function for the \").concat(typeDotName, \" field, so InMemoryCache can safely merge these objects:\\n\\n existing: \").concat(JSON.stringify(existing).slice(0, 1000), \"\\n incoming: \").concat(JSON.stringify(incoming).slice(0, 1000), \"\\n\\nFor more information about these options, please refer to the documentation:\\n\\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\\n\"));\n}\n","import { __assign, __extends } from \"tslib\";\nimport { invariant } from \"../../utilities/globals/index.js\";\nimport \"./fixPolyfills.js\";\nimport { wrap } from 'optimism';\nimport { equal } from '@wry/equality';\nimport { ApolloCache } from \"../core/cache.js\";\nimport { MissingFieldError } from \"../core/types/common.js\";\nimport { addTypenameToDocument, isReference } from \"../../utilities/index.js\";\nimport { StoreReader } from \"./readFromStore.js\";\nimport { StoreWriter } from \"./writeToStore.js\";\nimport { EntityStore, supportsResultCaching } from \"./entityStore.js\";\nimport { makeVar, forgetCache, recallCache } from \"./reactiveVars.js\";\nimport { Policies } from \"./policies.js\";\nimport { hasOwn, normalizeConfig, shouldCanonizeResults } from \"./helpers.js\";\nimport { canonicalStringify } from \"./object-canon.js\";\nvar InMemoryCache = function (_super) {\n __extends(InMemoryCache, _super);\n function InMemoryCache(config) {\n if (config === void 0) {\n config = {};\n }\n var _this = _super.call(this) || this;\n _this.watches = new Set();\n _this.typenameDocumentCache = new Map();\n _this.makeVar = makeVar;\n _this.txCount = 0;\n _this.config = normalizeConfig(config);\n _this.addTypename = !!_this.config.addTypename;\n _this.policies = new Policies({\n cache: _this,\n dataIdFromObject: _this.config.dataIdFromObject,\n possibleTypes: _this.config.possibleTypes,\n typePolicies: _this.config.typePolicies\n });\n _this.init();\n return _this;\n }\n InMemoryCache.prototype.init = function () {\n var rootStore = this.data = new EntityStore.Root({\n policies: this.policies,\n resultCaching: this.config.resultCaching\n });\n this.optimisticData = rootStore.stump;\n this.resetResultCache();\n };\n InMemoryCache.prototype.resetResultCache = function (resetResultIdentities) {\n var _this = this;\n var previousReader = this.storeReader;\n var fragments = this.config.fragments;\n this.storeWriter = new StoreWriter(this, this.storeReader = new StoreReader({\n cache: this,\n addTypename: this.addTypename,\n resultCacheMaxSize: this.config.resultCacheMaxSize,\n canonizeResults: shouldCanonizeResults(this.config),\n canon: resetResultIdentities ? void 0 : previousReader && previousReader.canon,\n fragments: fragments\n }), fragments);\n this.maybeBroadcastWatch = wrap(function (c, options) {\n return _this.broadcastWatch(c, options);\n }, {\n max: this.config.resultCacheMaxSize,\n makeCacheKey: function (c) {\n var store = c.optimistic ? _this.optimisticData : _this.data;\n if (supportsResultCaching(store)) {\n var optimistic = c.optimistic,\n id = c.id,\n variables = c.variables;\n return store.makeCacheKey(c.query, c.callback, canonicalStringify({\n optimistic: optimistic,\n id: id,\n variables: variables\n }));\n }\n }\n });\n new Set([this.data.group, this.optimisticData.group]).forEach(function (group) {\n return group.resetCaching();\n });\n };\n InMemoryCache.prototype.restore = function (data) {\n this.init();\n if (data) this.data.replace(data);\n return this;\n };\n InMemoryCache.prototype.extract = function (optimistic) {\n if (optimistic === void 0) {\n optimistic = false;\n }\n return (optimistic ? this.optimisticData : this.data).extract();\n };\n InMemoryCache.prototype.read = function (options) {\n var _a = options.returnPartialData,\n returnPartialData = _a === void 0 ? false : _a;\n try {\n return this.storeReader.diffQueryAgainstStore(__assign(__assign({}, options), {\n store: options.optimistic ? this.optimisticData : this.data,\n config: this.config,\n returnPartialData: returnPartialData\n })).result || null;\n } catch (e) {\n if (e instanceof MissingFieldError) {\n return null;\n }\n throw e;\n }\n };\n InMemoryCache.prototype.write = function (options) {\n try {\n ++this.txCount;\n return this.storeWriter.writeToStore(this.data, options);\n } finally {\n if (! --this.txCount && options.broadcast !== false) {\n this.broadcastWatches();\n }\n }\n };\n InMemoryCache.prototype.modify = function (options) {\n if (hasOwn.call(options, \"id\") && !options.id) {\n return false;\n }\n var store = options.optimistic ? this.optimisticData : this.data;\n try {\n ++this.txCount;\n return store.modify(options.id || \"ROOT_QUERY\", options.fields);\n } finally {\n if (! --this.txCount && options.broadcast !== false) {\n this.broadcastWatches();\n }\n }\n };\n InMemoryCache.prototype.diff = function (options) {\n return this.storeReader.diffQueryAgainstStore(__assign(__assign({}, options), {\n store: options.optimistic ? this.optimisticData : this.data,\n rootId: options.id || \"ROOT_QUERY\",\n config: this.config\n }));\n };\n InMemoryCache.prototype.watch = function (watch) {\n var _this = this;\n if (!this.watches.size) {\n recallCache(this);\n }\n this.watches.add(watch);\n if (watch.immediate) {\n this.maybeBroadcastWatch(watch);\n }\n return function () {\n if (_this.watches.delete(watch) && !_this.watches.size) {\n forgetCache(_this);\n }\n _this.maybeBroadcastWatch.forget(watch);\n };\n };\n InMemoryCache.prototype.gc = function (options) {\n canonicalStringify.reset();\n var ids = this.optimisticData.gc();\n if (options && !this.txCount) {\n if (options.resetResultCache) {\n this.resetResultCache(options.resetResultIdentities);\n } else if (options.resetResultIdentities) {\n this.storeReader.resetCanon();\n }\n }\n return ids;\n };\n InMemoryCache.prototype.retain = function (rootId, optimistic) {\n return (optimistic ? this.optimisticData : this.data).retain(rootId);\n };\n InMemoryCache.prototype.release = function (rootId, optimistic) {\n return (optimistic ? this.optimisticData : this.data).release(rootId);\n };\n InMemoryCache.prototype.identify = function (object) {\n if (isReference(object)) return object.__ref;\n try {\n return this.policies.identify(object)[0];\n } catch (e) {\n __DEV__ && invariant.warn(e);\n }\n };\n InMemoryCache.prototype.evict = function (options) {\n if (!options.id) {\n if (hasOwn.call(options, \"id\")) {\n return false;\n }\n options = __assign(__assign({}, options), {\n id: \"ROOT_QUERY\"\n });\n }\n try {\n ++this.txCount;\n return this.optimisticData.evict(options, this.data);\n } finally {\n if (! --this.txCount && options.broadcast !== false) {\n this.broadcastWatches();\n }\n }\n };\n InMemoryCache.prototype.reset = function (options) {\n var _this = this;\n this.init();\n canonicalStringify.reset();\n if (options && options.discardWatches) {\n this.watches.forEach(function (watch) {\n return _this.maybeBroadcastWatch.forget(watch);\n });\n this.watches.clear();\n forgetCache(this);\n } else {\n this.broadcastWatches();\n }\n return Promise.resolve();\n };\n InMemoryCache.prototype.removeOptimistic = function (idToRemove) {\n var newOptimisticData = this.optimisticData.removeLayer(idToRemove);\n if (newOptimisticData !== this.optimisticData) {\n this.optimisticData = newOptimisticData;\n this.broadcastWatches();\n }\n };\n InMemoryCache.prototype.batch = function (options) {\n var _this = this;\n var update = options.update,\n _a = options.optimistic,\n optimistic = _a === void 0 ? true : _a,\n removeOptimistic = options.removeOptimistic,\n onWatchUpdated = options.onWatchUpdated;\n var updateResult;\n var perform = function (layer) {\n var _a = _this,\n data = _a.data,\n optimisticData = _a.optimisticData;\n ++_this.txCount;\n if (layer) {\n _this.data = _this.optimisticData = layer;\n }\n try {\n return updateResult = update(_this);\n } finally {\n --_this.txCount;\n _this.data = data;\n _this.optimisticData = optimisticData;\n }\n };\n var alreadyDirty = new Set();\n if (onWatchUpdated && !this.txCount) {\n this.broadcastWatches(__assign(__assign({}, options), {\n onWatchUpdated: function (watch) {\n alreadyDirty.add(watch);\n return false;\n }\n }));\n }\n if (typeof optimistic === 'string') {\n this.optimisticData = this.optimisticData.addLayer(optimistic, perform);\n } else if (optimistic === false) {\n perform(this.data);\n } else {\n perform();\n }\n if (typeof removeOptimistic === \"string\") {\n this.optimisticData = this.optimisticData.removeLayer(removeOptimistic);\n }\n if (onWatchUpdated && alreadyDirty.size) {\n this.broadcastWatches(__assign(__assign({}, options), {\n onWatchUpdated: function (watch, diff) {\n var result = onWatchUpdated.call(this, watch, diff);\n if (result !== false) {\n alreadyDirty.delete(watch);\n }\n return result;\n }\n }));\n if (alreadyDirty.size) {\n alreadyDirty.forEach(function (watch) {\n return _this.maybeBroadcastWatch.dirty(watch);\n });\n }\n } else {\n this.broadcastWatches(options);\n }\n return updateResult;\n };\n InMemoryCache.prototype.performTransaction = function (update, optimisticId) {\n return this.batch({\n update: update,\n optimistic: optimisticId || optimisticId !== null\n });\n };\n InMemoryCache.prototype.transformDocument = function (document) {\n if (this.addTypename) {\n var result = this.typenameDocumentCache.get(document);\n if (!result) {\n result = addTypenameToDocument(document);\n this.typenameDocumentCache.set(document, result);\n this.typenameDocumentCache.set(result, result);\n }\n return result;\n }\n return document;\n };\n InMemoryCache.prototype.transformForLink = function (document) {\n var fragments = this.config.fragments;\n return fragments ? fragments.transform(document) : document;\n };\n InMemoryCache.prototype.broadcastWatches = function (options) {\n var _this = this;\n if (!this.txCount) {\n this.watches.forEach(function (c) {\n return _this.maybeBroadcastWatch(c, options);\n });\n }\n };\n InMemoryCache.prototype.broadcastWatch = function (c, options) {\n var lastDiff = c.lastDiff;\n var diff = this.diff(c);\n if (options) {\n if (c.optimistic && typeof options.optimistic === \"string\") {\n diff.fromOptimisticTransaction = true;\n }\n if (options.onWatchUpdated && options.onWatchUpdated.call(this, c, diff, lastDiff) === false) {\n return;\n }\n }\n if (!lastDiff || !equal(lastDiff.result, diff.result)) {\n c.callback(c.lastDiff = diff, lastDiff);\n }\n };\n return InMemoryCache;\n}(ApolloCache);\nexport { InMemoryCache };\n","import { __extends } from \"tslib\";\nimport \"../utilities/globals/index.js\";\nimport { isNonEmptyArray } from \"../utilities/index.js\";\nexport function isApolloError(err) {\n return err.hasOwnProperty('graphQLErrors');\n}\nvar generateErrorMessage = function (err) {\n var message = '';\n if (isNonEmptyArray(err.graphQLErrors) || isNonEmptyArray(err.clientErrors)) {\n var errors = (err.graphQLErrors || []).concat(err.clientErrors || []);\n errors.forEach(function (error) {\n var errorMessage = error ? error.message : 'Error message not found.';\n message += \"\".concat(errorMessage, \"\\n\");\n });\n }\n if (err.networkError) {\n message += \"\".concat(err.networkError.message, \"\\n\");\n }\n message = message.replace(/\\n$/, '');\n return message;\n};\nvar ApolloError = function (_super) {\n __extends(ApolloError, _super);\n function ApolloError(_a) {\n var graphQLErrors = _a.graphQLErrors,\n clientErrors = _a.clientErrors,\n networkError = _a.networkError,\n errorMessage = _a.errorMessage,\n extraInfo = _a.extraInfo;\n var _this = _super.call(this, errorMessage) || this;\n _this.name = 'ApolloError';\n _this.graphQLErrors = graphQLErrors || [];\n _this.clientErrors = clientErrors || [];\n _this.networkError = networkError || null;\n _this.message = errorMessage || generateErrorMessage(_this);\n _this.extraInfo = extraInfo;\n _this.__proto__ = ApolloError.prototype;\n return _this;\n }\n return ApolloError;\n}(Error);\nexport { ApolloError };\n","export var NetworkStatus = /*#__PURE__*/function (NetworkStatus) {\n NetworkStatus[NetworkStatus[\"loading\"] = 1] = \"loading\";\n NetworkStatus[NetworkStatus[\"setVariables\"] = 2] = \"setVariables\";\n NetworkStatus[NetworkStatus[\"fetchMore\"] = 3] = \"fetchMore\";\n NetworkStatus[NetworkStatus[\"refetch\"] = 4] = \"refetch\";\n NetworkStatus[NetworkStatus[\"poll\"] = 6] = \"poll\";\n NetworkStatus[NetworkStatus[\"ready\"] = 7] = \"ready\";\n NetworkStatus[NetworkStatus[\"error\"] = 8] = \"error\";\n return NetworkStatus;\n}(NetworkStatus || {});\nexport function isNetworkRequestInFlight(networkStatus) {\n return networkStatus ? networkStatus < 7 : false;\n}\n","import { __assign, __extends } from \"tslib\";\nimport { invariant } from \"../utilities/globals/index.js\";\nimport { equal } from '@wry/equality';\nimport { NetworkStatus, isNetworkRequestInFlight } from \"./networkStatus.js\";\nimport { cloneDeep, compact, getOperationDefinition, Observable, iterateObserversSafely, isNonEmptyArray, fixObservableSubclass, getQueryDefinition } from \"../utilities/index.js\";\nvar assign = Object.assign,\n hasOwnProperty = Object.hasOwnProperty;\nvar ObservableQuery = function (_super) {\n __extends(ObservableQuery, _super);\n function ObservableQuery(_a) {\n var queryManager = _a.queryManager,\n queryInfo = _a.queryInfo,\n options = _a.options;\n var _this = _super.call(this, function (observer) {\n try {\n var subObserver = observer._subscription._observer;\n if (subObserver && !subObserver.error) {\n subObserver.error = defaultSubscriptionObserverErrorCallback;\n }\n } catch (_a) {}\n var first = !_this.observers.size;\n _this.observers.add(observer);\n var last = _this.last;\n if (last && last.error) {\n observer.error && observer.error(last.error);\n } else if (last && last.result) {\n observer.next && observer.next(last.result);\n }\n if (first) {\n _this.reobserve().catch(function () {});\n }\n return function () {\n if (_this.observers.delete(observer) && !_this.observers.size) {\n _this.tearDownQuery();\n }\n };\n }) || this;\n _this.observers = new Set();\n _this.subscriptions = new Set();\n _this.queryInfo = queryInfo;\n _this.queryManager = queryManager;\n _this.isTornDown = false;\n var _b = queryManager.defaultOptions.watchQuery,\n _c = _b === void 0 ? {} : _b,\n _d = _c.fetchPolicy,\n defaultFetchPolicy = _d === void 0 ? \"cache-first\" : _d;\n var _e = options.fetchPolicy,\n fetchPolicy = _e === void 0 ? defaultFetchPolicy : _e,\n _f = options.initialFetchPolicy,\n initialFetchPolicy = _f === void 0 ? fetchPolicy === \"standby\" ? defaultFetchPolicy : fetchPolicy : _f;\n _this.options = __assign(__assign({}, options), {\n initialFetchPolicy: initialFetchPolicy,\n fetchPolicy: fetchPolicy\n });\n _this.queryId = queryInfo.queryId || queryManager.generateQueryId();\n var opDef = getOperationDefinition(_this.query);\n _this.queryName = opDef && opDef.name && opDef.name.value;\n return _this;\n }\n Object.defineProperty(ObservableQuery.prototype, \"query\", {\n get: function () {\n return this.queryManager.transform(this.options.query).document;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ObservableQuery.prototype, \"variables\", {\n get: function () {\n return this.options.variables;\n },\n enumerable: false,\n configurable: true\n });\n ObservableQuery.prototype.result = function () {\n var _this = this;\n return new Promise(function (resolve, reject) {\n var observer = {\n next: function (result) {\n resolve(result);\n _this.observers.delete(observer);\n if (!_this.observers.size) {\n _this.queryManager.removeQuery(_this.queryId);\n }\n setTimeout(function () {\n subscription.unsubscribe();\n }, 0);\n },\n error: reject\n };\n var subscription = _this.subscribe(observer);\n });\n };\n ObservableQuery.prototype.getCurrentResult = function (saveAsLastResult) {\n if (saveAsLastResult === void 0) {\n saveAsLastResult = true;\n }\n var lastResult = this.getLastResult(true);\n var networkStatus = this.queryInfo.networkStatus || lastResult && lastResult.networkStatus || NetworkStatus.ready;\n var result = __assign(__assign({}, lastResult), {\n loading: isNetworkRequestInFlight(networkStatus),\n networkStatus: networkStatus\n });\n var _a = this.options.fetchPolicy,\n fetchPolicy = _a === void 0 ? \"cache-first\" : _a;\n if (fetchPolicy === 'network-only' || fetchPolicy === 'no-cache' || fetchPolicy === 'standby' || this.queryManager.transform(this.options.query).hasForcedResolvers) {} else {\n var diff = this.queryInfo.getDiff();\n if (diff.complete || this.options.returnPartialData) {\n result.data = diff.result;\n }\n if (equal(result.data, {})) {\n result.data = void 0;\n }\n if (diff.complete) {\n delete result.partial;\n if (diff.complete && result.networkStatus === NetworkStatus.loading && (fetchPolicy === 'cache-first' || fetchPolicy === 'cache-only')) {\n result.networkStatus = NetworkStatus.ready;\n result.loading = false;\n }\n } else {\n result.partial = true;\n }\n if (__DEV__ && !diff.complete && !this.options.partialRefetch && !result.loading && !result.data && !result.error) {\n logMissingFieldErrors(diff.missing);\n }\n }\n if (saveAsLastResult) {\n this.updateLastResult(result);\n }\n return result;\n };\n ObservableQuery.prototype.isDifferentFromLastResult = function (newResult, variables) {\n return !this.last || !equal(this.last.result, newResult) || variables && !equal(this.last.variables, variables);\n };\n ObservableQuery.prototype.getLast = function (key, variablesMustMatch) {\n var last = this.last;\n if (last && last[key] && (!variablesMustMatch || equal(last.variables, this.variables))) {\n return last[key];\n }\n };\n ObservableQuery.prototype.getLastResult = function (variablesMustMatch) {\n return this.getLast(\"result\", variablesMustMatch);\n };\n ObservableQuery.prototype.getLastError = function (variablesMustMatch) {\n return this.getLast(\"error\", variablesMustMatch);\n };\n ObservableQuery.prototype.resetLastResults = function () {\n delete this.last;\n this.isTornDown = false;\n };\n ObservableQuery.prototype.resetQueryStoreErrors = function () {\n this.queryManager.resetErrors(this.queryId);\n };\n ObservableQuery.prototype.refetch = function (variables) {\n var _a;\n var reobserveOptions = {\n pollInterval: 0\n };\n var fetchPolicy = this.options.fetchPolicy;\n if (fetchPolicy === 'cache-and-network') {\n reobserveOptions.fetchPolicy = fetchPolicy;\n } else if (fetchPolicy === 'no-cache') {\n reobserveOptions.fetchPolicy = 'no-cache';\n } else {\n reobserveOptions.fetchPolicy = 'network-only';\n }\n if (__DEV__ && variables && hasOwnProperty.call(variables, \"variables\")) {\n var queryDef = getQueryDefinition(this.query);\n var vars = queryDef.variableDefinitions;\n if (!vars || !vars.some(function (v) {\n return v.variable.name.value === \"variables\";\n })) {\n __DEV__ && invariant.warn(\"Called refetch(\".concat(JSON.stringify(variables), \") for query \").concat(((_a = queryDef.name) === null || _a === void 0 ? void 0 : _a.value) || JSON.stringify(queryDef), \", which does not declare a $variables variable.\\nDid you mean to call refetch(variables) instead of refetch({ variables })?\"));\n }\n }\n if (variables && !equal(this.options.variables, variables)) {\n reobserveOptions.variables = this.options.variables = __assign(__assign({}, this.options.variables), variables);\n }\n this.queryInfo.resetLastWrite();\n return this.reobserve(reobserveOptions, NetworkStatus.refetch);\n };\n ObservableQuery.prototype.fetchMore = function (fetchMoreOptions) {\n var _this = this;\n var combinedOptions = __assign(__assign({}, fetchMoreOptions.query ? fetchMoreOptions : __assign(__assign(__assign(__assign({}, this.options), {\n query: this.query\n }), fetchMoreOptions), {\n variables: __assign(__assign({}, this.options.variables), fetchMoreOptions.variables)\n })), {\n fetchPolicy: \"no-cache\"\n });\n var qid = this.queryManager.generateQueryId();\n var queryInfo = this.queryInfo;\n var originalNetworkStatus = queryInfo.networkStatus;\n queryInfo.networkStatus = NetworkStatus.fetchMore;\n if (combinedOptions.notifyOnNetworkStatusChange) {\n this.observe();\n }\n var updatedQuerySet = new Set();\n return this.queryManager.fetchQuery(qid, combinedOptions, NetworkStatus.fetchMore).then(function (fetchMoreResult) {\n _this.queryManager.removeQuery(qid);\n if (queryInfo.networkStatus === NetworkStatus.fetchMore) {\n queryInfo.networkStatus = originalNetworkStatus;\n }\n _this.queryManager.cache.batch({\n update: function (cache) {\n var updateQuery = fetchMoreOptions.updateQuery;\n if (updateQuery) {\n cache.updateQuery({\n query: _this.query,\n variables: _this.variables,\n returnPartialData: true,\n optimistic: false\n }, function (previous) {\n return updateQuery(previous, {\n fetchMoreResult: fetchMoreResult.data,\n variables: combinedOptions.variables\n });\n });\n } else {\n cache.writeQuery({\n query: combinedOptions.query,\n variables: combinedOptions.variables,\n data: fetchMoreResult.data\n });\n }\n },\n onWatchUpdated: function (watch) {\n updatedQuerySet.add(watch.query);\n }\n });\n return fetchMoreResult;\n }).finally(function () {\n if (!updatedQuerySet.has(_this.query)) {\n reobserveCacheFirst(_this);\n }\n });\n };\n ObservableQuery.prototype.subscribeToMore = function (options) {\n var _this = this;\n var subscription = this.queryManager.startGraphQLSubscription({\n query: options.document,\n variables: options.variables,\n context: options.context\n }).subscribe({\n next: function (subscriptionData) {\n var updateQuery = options.updateQuery;\n if (updateQuery) {\n _this.updateQuery(function (previous, _a) {\n var variables = _a.variables;\n return updateQuery(previous, {\n subscriptionData: subscriptionData,\n variables: variables\n });\n });\n }\n },\n error: function (err) {\n if (options.onError) {\n options.onError(err);\n return;\n }\n __DEV__ && invariant.error('Unhandled GraphQL subscription error', err);\n }\n });\n this.subscriptions.add(subscription);\n return function () {\n if (_this.subscriptions.delete(subscription)) {\n subscription.unsubscribe();\n }\n };\n };\n ObservableQuery.prototype.setOptions = function (newOptions) {\n return this.reobserve(newOptions);\n };\n ObservableQuery.prototype.setVariables = function (variables) {\n if (equal(this.variables, variables)) {\n return this.observers.size ? this.result() : Promise.resolve();\n }\n this.options.variables = variables;\n if (!this.observers.size) {\n return Promise.resolve();\n }\n return this.reobserve({\n fetchPolicy: this.options.initialFetchPolicy,\n variables: variables\n }, NetworkStatus.setVariables);\n };\n ObservableQuery.prototype.updateQuery = function (mapFn) {\n var queryManager = this.queryManager;\n var result = queryManager.cache.diff({\n query: this.options.query,\n variables: this.variables,\n returnPartialData: true,\n optimistic: false\n }).result;\n var newResult = mapFn(result, {\n variables: this.variables\n });\n if (newResult) {\n queryManager.cache.writeQuery({\n query: this.options.query,\n data: newResult,\n variables: this.variables\n });\n queryManager.broadcastQueries();\n }\n };\n ObservableQuery.prototype.startPolling = function (pollInterval) {\n this.options.pollInterval = pollInterval;\n this.updatePolling();\n };\n ObservableQuery.prototype.stopPolling = function () {\n this.options.pollInterval = 0;\n this.updatePolling();\n };\n ObservableQuery.prototype.applyNextFetchPolicy = function (reason, options) {\n if (options.nextFetchPolicy) {\n var _a = options.fetchPolicy,\n fetchPolicy = _a === void 0 ? \"cache-first\" : _a,\n _b = options.initialFetchPolicy,\n initialFetchPolicy = _b === void 0 ? fetchPolicy : _b;\n if (fetchPolicy === \"standby\") {} else if (typeof options.nextFetchPolicy === \"function\") {\n options.fetchPolicy = options.nextFetchPolicy(fetchPolicy, {\n reason: reason,\n options: options,\n observable: this,\n initialFetchPolicy: initialFetchPolicy\n });\n } else if (reason === \"variables-changed\") {\n options.fetchPolicy = initialFetchPolicy;\n } else {\n options.fetchPolicy = options.nextFetchPolicy;\n }\n }\n return options.fetchPolicy;\n };\n ObservableQuery.prototype.fetch = function (options, newNetworkStatus) {\n this.queryManager.setObservableQuery(this);\n return this.queryManager.fetchQueryObservable(this.queryId, options, newNetworkStatus);\n };\n ObservableQuery.prototype.updatePolling = function () {\n var _this = this;\n if (this.queryManager.ssrMode) {\n return;\n }\n var _a = this,\n pollingInfo = _a.pollingInfo,\n pollInterval = _a.options.pollInterval;\n if (!pollInterval) {\n if (pollingInfo) {\n clearTimeout(pollingInfo.timeout);\n delete this.pollingInfo;\n }\n return;\n }\n if (pollingInfo && pollingInfo.interval === pollInterval) {\n return;\n }\n __DEV__ ? invariant(pollInterval, 'Attempted to start a polling query without a polling interval.') : invariant(pollInterval, 13);\n var info = pollingInfo || (this.pollingInfo = {});\n info.interval = pollInterval;\n var maybeFetch = function () {\n if (_this.pollingInfo) {\n if (!isNetworkRequestInFlight(_this.queryInfo.networkStatus)) {\n _this.reobserve({\n fetchPolicy: _this.options.initialFetchPolicy === 'no-cache' ? 'no-cache' : 'network-only'\n }, NetworkStatus.poll).then(poll, poll);\n } else {\n poll();\n }\n }\n ;\n };\n var poll = function () {\n var info = _this.pollingInfo;\n if (info) {\n clearTimeout(info.timeout);\n info.timeout = setTimeout(maybeFetch, info.interval);\n }\n };\n poll();\n };\n ObservableQuery.prototype.updateLastResult = function (newResult, variables) {\n if (variables === void 0) {\n variables = this.variables;\n }\n this.last = __assign(__assign({}, this.last), {\n result: this.queryManager.assumeImmutableResults ? newResult : cloneDeep(newResult),\n variables: variables\n });\n if (!isNonEmptyArray(newResult.errors)) {\n delete this.last.error;\n }\n return this.last;\n };\n ObservableQuery.prototype.reobserve = function (newOptions, newNetworkStatus) {\n var _this = this;\n this.isTornDown = false;\n var useDisposableConcast = newNetworkStatus === NetworkStatus.refetch || newNetworkStatus === NetworkStatus.fetchMore || newNetworkStatus === NetworkStatus.poll;\n var oldVariables = this.options.variables;\n var oldFetchPolicy = this.options.fetchPolicy;\n var mergedOptions = compact(this.options, newOptions || {});\n var options = useDisposableConcast ? mergedOptions : assign(this.options, mergedOptions);\n if (!useDisposableConcast) {\n this.updatePolling();\n if (newOptions && newOptions.variables && !equal(newOptions.variables, oldVariables) && options.fetchPolicy !== \"standby\" && options.fetchPolicy === oldFetchPolicy) {\n this.applyNextFetchPolicy(\"variables-changed\", options);\n if (newNetworkStatus === void 0) {\n newNetworkStatus = NetworkStatus.setVariables;\n }\n }\n }\n var variables = options.variables && __assign({}, options.variables);\n var concast = this.fetch(options, newNetworkStatus);\n var observer = {\n next: function (result) {\n _this.reportResult(result, variables);\n },\n error: function (error) {\n _this.reportError(error, variables);\n }\n };\n if (!useDisposableConcast) {\n if (this.concast && this.observer) {\n this.concast.removeObserver(this.observer);\n }\n this.concast = concast;\n this.observer = observer;\n }\n concast.addObserver(observer);\n return concast.promise;\n };\n ObservableQuery.prototype.observe = function () {\n this.reportResult(this.getCurrentResult(false), this.variables);\n };\n ObservableQuery.prototype.reportResult = function (result, variables) {\n var lastError = this.getLastError();\n if (lastError || this.isDifferentFromLastResult(result, variables)) {\n if (lastError || !result.partial || this.options.returnPartialData) {\n this.updateLastResult(result, variables);\n }\n iterateObserversSafely(this.observers, 'next', result);\n }\n };\n ObservableQuery.prototype.reportError = function (error, variables) {\n var errorResult = __assign(__assign({}, this.getLastResult()), {\n error: error,\n errors: error.graphQLErrors,\n networkStatus: NetworkStatus.error,\n loading: false\n });\n this.updateLastResult(errorResult, variables);\n iterateObserversSafely(this.observers, 'error', this.last.error = error);\n };\n ObservableQuery.prototype.hasObservers = function () {\n return this.observers.size > 0;\n };\n ObservableQuery.prototype.tearDownQuery = function () {\n if (this.isTornDown) return;\n if (this.concast && this.observer) {\n this.concast.removeObserver(this.observer);\n delete this.concast;\n delete this.observer;\n }\n this.stopPolling();\n this.subscriptions.forEach(function (sub) {\n return sub.unsubscribe();\n });\n this.subscriptions.clear();\n this.queryManager.stopQuery(this.queryId);\n this.observers.clear();\n this.isTornDown = true;\n };\n return ObservableQuery;\n}(Observable);\nexport { ObservableQuery };\nfixObservableSubclass(ObservableQuery);\nexport function reobserveCacheFirst(obsQuery) {\n var _a = obsQuery.options,\n fetchPolicy = _a.fetchPolicy,\n nextFetchPolicy = _a.nextFetchPolicy;\n if (fetchPolicy === \"cache-and-network\" || fetchPolicy === \"network-only\") {\n return obsQuery.reobserve({\n fetchPolicy: \"cache-first\",\n nextFetchPolicy: function () {\n this.nextFetchPolicy = nextFetchPolicy;\n if (typeof nextFetchPolicy === \"function\") {\n return nextFetchPolicy.apply(this, arguments);\n }\n return fetchPolicy;\n }\n });\n }\n return obsQuery.reobserve();\n}\nfunction defaultSubscriptionObserverErrorCallback(error) {\n __DEV__ && invariant.error('Unhandled error', error.message, error.stack);\n}\nexport function logMissingFieldErrors(missing) {\n if (__DEV__ && missing) {\n __DEV__ && invariant.debug(\"Missing cache result fields: \".concat(JSON.stringify(missing)), missing);\n }\n}\n","import { __assign, __awaiter, __generator } from \"tslib\";\nimport { invariant } from \"../utilities/globals/index.js\";\nimport { visit, BREAK, isSelectionNode } from 'graphql';\nimport { argumentsObjectFromField, buildQueryFromSelectionSet, createFragmentMap, getFragmentDefinitions, getMainDefinition, hasDirectives, isField, isInlineFragment, mergeDeep, mergeDeepArray, removeClientSetsFromDocument, resultKeyNameFromField, shouldInclude } from \"../utilities/index.js\";\nimport { cacheSlot } from \"../cache/index.js\";\nvar LocalState = function () {\n function LocalState(_a) {\n var cache = _a.cache,\n client = _a.client,\n resolvers = _a.resolvers,\n fragmentMatcher = _a.fragmentMatcher;\n this.selectionsToResolveCache = new WeakMap();\n this.cache = cache;\n if (client) {\n this.client = client;\n }\n if (resolvers) {\n this.addResolvers(resolvers);\n }\n if (fragmentMatcher) {\n this.setFragmentMatcher(fragmentMatcher);\n }\n }\n LocalState.prototype.addResolvers = function (resolvers) {\n var _this = this;\n this.resolvers = this.resolvers || {};\n if (Array.isArray(resolvers)) {\n resolvers.forEach(function (resolverGroup) {\n _this.resolvers = mergeDeep(_this.resolvers, resolverGroup);\n });\n } else {\n this.resolvers = mergeDeep(this.resolvers, resolvers);\n }\n };\n LocalState.prototype.setResolvers = function (resolvers) {\n this.resolvers = {};\n this.addResolvers(resolvers);\n };\n LocalState.prototype.getResolvers = function () {\n return this.resolvers || {};\n };\n LocalState.prototype.runResolvers = function (_a) {\n var document = _a.document,\n remoteResult = _a.remoteResult,\n context = _a.context,\n variables = _a.variables,\n _b = _a.onlyRunForcedResolvers,\n onlyRunForcedResolvers = _b === void 0 ? false : _b;\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_c) {\n if (document) {\n return [2, this.resolveDocument(document, remoteResult.data, context, variables, this.fragmentMatcher, onlyRunForcedResolvers).then(function (localResult) {\n return __assign(__assign({}, remoteResult), {\n data: localResult.result\n });\n })];\n }\n return [2, remoteResult];\n });\n });\n };\n LocalState.prototype.setFragmentMatcher = function (fragmentMatcher) {\n this.fragmentMatcher = fragmentMatcher;\n };\n LocalState.prototype.getFragmentMatcher = function () {\n return this.fragmentMatcher;\n };\n LocalState.prototype.clientQuery = function (document) {\n if (hasDirectives(['client'], document)) {\n if (this.resolvers) {\n return document;\n }\n }\n return null;\n };\n LocalState.prototype.serverQuery = function (document) {\n return removeClientSetsFromDocument(document);\n };\n LocalState.prototype.prepareContext = function (context) {\n var cache = this.cache;\n return __assign(__assign({}, context), {\n cache: cache,\n getCacheKey: function (obj) {\n return cache.identify(obj);\n }\n });\n };\n LocalState.prototype.addExportedVariables = function (document, variables, context) {\n if (variables === void 0) {\n variables = {};\n }\n if (context === void 0) {\n context = {};\n }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n if (document) {\n return [2, this.resolveDocument(document, this.buildRootValueFromCache(document, variables) || {}, this.prepareContext(context), variables).then(function (data) {\n return __assign(__assign({}, variables), data.exportedVariables);\n })];\n }\n return [2, __assign({}, variables)];\n });\n });\n };\n LocalState.prototype.shouldForceResolvers = function (document) {\n var forceResolvers = false;\n visit(document, {\n Directive: {\n enter: function (node) {\n if (node.name.value === 'client' && node.arguments) {\n forceResolvers = node.arguments.some(function (arg) {\n return arg.name.value === 'always' && arg.value.kind === 'BooleanValue' && arg.value.value === true;\n });\n if (forceResolvers) {\n return BREAK;\n }\n }\n }\n }\n });\n return forceResolvers;\n };\n LocalState.prototype.buildRootValueFromCache = function (document, variables) {\n return this.cache.diff({\n query: buildQueryFromSelectionSet(document),\n variables: variables,\n returnPartialData: true,\n optimistic: false\n }).result;\n };\n LocalState.prototype.resolveDocument = function (document, rootValue, context, variables, fragmentMatcher, onlyRunForcedResolvers) {\n if (context === void 0) {\n context = {};\n }\n if (variables === void 0) {\n variables = {};\n }\n if (fragmentMatcher === void 0) {\n fragmentMatcher = function () {\n return true;\n };\n }\n if (onlyRunForcedResolvers === void 0) {\n onlyRunForcedResolvers = false;\n }\n return __awaiter(this, void 0, void 0, function () {\n var mainDefinition, fragments, fragmentMap, selectionsToResolve, definitionOperation, defaultOperationType, _a, cache, client, execContext, isClientFieldDescendant;\n return __generator(this, function (_b) {\n mainDefinition = getMainDefinition(document);\n fragments = getFragmentDefinitions(document);\n fragmentMap = createFragmentMap(fragments);\n selectionsToResolve = this.collectSelectionsToResolve(mainDefinition, fragmentMap);\n definitionOperation = mainDefinition.operation;\n defaultOperationType = definitionOperation ? definitionOperation.charAt(0).toUpperCase() + definitionOperation.slice(1) : 'Query';\n _a = this, cache = _a.cache, client = _a.client;\n execContext = {\n fragmentMap: fragmentMap,\n context: __assign(__assign({}, context), {\n cache: cache,\n client: client\n }),\n variables: variables,\n fragmentMatcher: fragmentMatcher,\n defaultOperationType: defaultOperationType,\n exportedVariables: {},\n selectionsToResolve: selectionsToResolve,\n onlyRunForcedResolvers: onlyRunForcedResolvers\n };\n isClientFieldDescendant = false;\n return [2, this.resolveSelectionSet(mainDefinition.selectionSet, isClientFieldDescendant, rootValue, execContext).then(function (result) {\n return {\n result: result,\n exportedVariables: execContext.exportedVariables\n };\n })];\n });\n });\n };\n LocalState.prototype.resolveSelectionSet = function (selectionSet, isClientFieldDescendant, rootValue, execContext) {\n return __awaiter(this, void 0, void 0, function () {\n var fragmentMap, context, variables, resultsToMerge, execute;\n var _this = this;\n return __generator(this, function (_a) {\n fragmentMap = execContext.fragmentMap, context = execContext.context, variables = execContext.variables;\n resultsToMerge = [rootValue];\n execute = function (selection) {\n return __awaiter(_this, void 0, void 0, function () {\n var fragment, typeCondition;\n return __generator(this, function (_a) {\n if (!isClientFieldDescendant && !execContext.selectionsToResolve.has(selection)) {\n return [2];\n }\n if (!shouldInclude(selection, variables)) {\n return [2];\n }\n if (isField(selection)) {\n return [2, this.resolveField(selection, isClientFieldDescendant, rootValue, execContext).then(function (fieldResult) {\n var _a;\n if (typeof fieldResult !== 'undefined') {\n resultsToMerge.push((_a = {}, _a[resultKeyNameFromField(selection)] = fieldResult, _a));\n }\n })];\n }\n if (isInlineFragment(selection)) {\n fragment = selection;\n } else {\n fragment = fragmentMap[selection.name.value];\n __DEV__ ? invariant(fragment, \"No fragment named \".concat(selection.name.value)) : invariant(fragment, 11);\n }\n if (fragment && fragment.typeCondition) {\n typeCondition = fragment.typeCondition.name.value;\n if (execContext.fragmentMatcher(rootValue, typeCondition, context)) {\n return [2, this.resolveSelectionSet(fragment.selectionSet, isClientFieldDescendant, rootValue, execContext).then(function (fragmentResult) {\n resultsToMerge.push(fragmentResult);\n })];\n }\n }\n return [2];\n });\n });\n };\n return [2, Promise.all(selectionSet.selections.map(execute)).then(function () {\n return mergeDeepArray(resultsToMerge);\n })];\n });\n });\n };\n LocalState.prototype.resolveField = function (field, isClientFieldDescendant, rootValue, execContext) {\n return __awaiter(this, void 0, void 0, function () {\n var variables, fieldName, aliasedFieldName, aliasUsed, defaultResult, resultPromise, resolverType, resolverMap, resolve;\n var _this = this;\n return __generator(this, function (_a) {\n if (!rootValue) {\n return [2, null];\n }\n variables = execContext.variables;\n fieldName = field.name.value;\n aliasedFieldName = resultKeyNameFromField(field);\n aliasUsed = fieldName !== aliasedFieldName;\n defaultResult = rootValue[aliasedFieldName] || rootValue[fieldName];\n resultPromise = Promise.resolve(defaultResult);\n if (!execContext.onlyRunForcedResolvers || this.shouldForceResolvers(field)) {\n resolverType = rootValue.__typename || execContext.defaultOperationType;\n resolverMap = this.resolvers && this.resolvers[resolverType];\n if (resolverMap) {\n resolve = resolverMap[aliasUsed ? fieldName : aliasedFieldName];\n if (resolve) {\n resultPromise = Promise.resolve(cacheSlot.withValue(this.cache, resolve, [rootValue, argumentsObjectFromField(field, variables), execContext.context, {\n field: field,\n fragmentMap: execContext.fragmentMap\n }]));\n }\n }\n }\n return [2, resultPromise.then(function (result) {\n var _a, _b;\n if (result === void 0) {\n result = defaultResult;\n }\n if (field.directives) {\n field.directives.forEach(function (directive) {\n if (directive.name.value === 'export' && directive.arguments) {\n directive.arguments.forEach(function (arg) {\n if (arg.name.value === 'as' && arg.value.kind === 'StringValue') {\n execContext.exportedVariables[arg.value.value] = result;\n }\n });\n }\n });\n }\n if (!field.selectionSet) {\n return result;\n }\n if (result == null) {\n return result;\n }\n var isClientField = (_b = (_a = field.directives) === null || _a === void 0 ? void 0 : _a.some(function (d) {\n return d.name.value === 'client';\n })) !== null && _b !== void 0 ? _b : false;\n if (Array.isArray(result)) {\n return _this.resolveSubSelectedArray(field, isClientFieldDescendant || isClientField, result, execContext);\n }\n if (field.selectionSet) {\n return _this.resolveSelectionSet(field.selectionSet, isClientFieldDescendant || isClientField, result, execContext);\n }\n })];\n });\n });\n };\n LocalState.prototype.resolveSubSelectedArray = function (field, isClientFieldDescendant, result, execContext) {\n var _this = this;\n return Promise.all(result.map(function (item) {\n if (item === null) {\n return null;\n }\n if (Array.isArray(item)) {\n return _this.resolveSubSelectedArray(field, isClientFieldDescendant, item, execContext);\n }\n if (field.selectionSet) {\n return _this.resolveSelectionSet(field.selectionSet, isClientFieldDescendant, item, execContext);\n }\n }));\n };\n LocalState.prototype.collectSelectionsToResolve = function (mainDefinition, fragmentMap) {\n var isSingleASTNode = function (node) {\n return !Array.isArray(node);\n };\n var selectionsToResolveCache = this.selectionsToResolveCache;\n function collectByDefinition(definitionNode) {\n if (!selectionsToResolveCache.has(definitionNode)) {\n var matches_1 = new Set();\n selectionsToResolveCache.set(definitionNode, matches_1);\n visit(definitionNode, {\n Directive: function (node, _, __, ___, ancestors) {\n if (node.name.value === 'client') {\n ancestors.forEach(function (node) {\n if (isSingleASTNode(node) && isSelectionNode(node)) {\n matches_1.add(node);\n }\n });\n }\n },\n FragmentSpread: function (spread, _, __, ___, ancestors) {\n var fragment = fragmentMap[spread.name.value];\n __DEV__ ? invariant(fragment, \"No fragment named \".concat(spread.name.value)) : invariant(fragment, 12);\n var fragmentSelections = collectByDefinition(fragment);\n if (fragmentSelections.size > 0) {\n ancestors.forEach(function (node) {\n if (isSingleASTNode(node) && isSelectionNode(node)) {\n matches_1.add(node);\n }\n });\n matches_1.add(spread);\n fragmentSelections.forEach(function (selection) {\n matches_1.add(selection);\n });\n }\n }\n });\n }\n return selectionsToResolveCache.get(definitionNode);\n }\n return collectByDefinition(mainDefinition);\n };\n return LocalState;\n}();\nexport { LocalState };\n","import { __assign } from \"tslib\";\nimport { equal } from \"@wry/equality\";\nimport { DeepMerger } from \"../utilities/index.js\";\nimport { mergeIncrementalData } from \"../utilities/common/incrementalResult.js\";\nimport { reobserveCacheFirst } from \"./ObservableQuery.js\";\nimport { isNonEmptyArray, graphQLResultHasError, canUseWeakMap } from \"../utilities/index.js\";\nimport { NetworkStatus, isNetworkRequestInFlight } from \"./networkStatus.js\";\n;\nvar destructiveMethodCounts = new (canUseWeakMap ? WeakMap : Map)();\nfunction wrapDestructiveCacheMethod(cache, methodName) {\n var original = cache[methodName];\n if (typeof original === \"function\") {\n cache[methodName] = function () {\n destructiveMethodCounts.set(cache, (destructiveMethodCounts.get(cache) + 1) % 1e15);\n return original.apply(this, arguments);\n };\n }\n}\nfunction cancelNotifyTimeout(info) {\n if (info[\"notifyTimeout\"]) {\n clearTimeout(info[\"notifyTimeout\"]);\n info[\"notifyTimeout\"] = void 0;\n }\n}\nvar QueryInfo = function () {\n function QueryInfo(queryManager, queryId) {\n if (queryId === void 0) {\n queryId = queryManager.generateQueryId();\n }\n this.queryId = queryId;\n this.listeners = new Set();\n this.document = null;\n this.lastRequestId = 1;\n this.subscriptions = new Set();\n this.stopped = false;\n this.dirty = false;\n this.observableQuery = null;\n var cache = this.cache = queryManager.cache;\n if (!destructiveMethodCounts.has(cache)) {\n destructiveMethodCounts.set(cache, 0);\n wrapDestructiveCacheMethod(cache, \"evict\");\n wrapDestructiveCacheMethod(cache, \"modify\");\n wrapDestructiveCacheMethod(cache, \"reset\");\n }\n }\n QueryInfo.prototype.init = function (query) {\n var networkStatus = query.networkStatus || NetworkStatus.loading;\n if (this.variables && this.networkStatus !== NetworkStatus.loading && !equal(this.variables, query.variables)) {\n networkStatus = NetworkStatus.setVariables;\n }\n if (!equal(query.variables, this.variables)) {\n this.lastDiff = void 0;\n }\n Object.assign(this, {\n document: query.document,\n variables: query.variables,\n networkError: null,\n graphQLErrors: this.graphQLErrors || [],\n networkStatus: networkStatus\n });\n if (query.observableQuery) {\n this.setObservableQuery(query.observableQuery);\n }\n if (query.lastRequestId) {\n this.lastRequestId = query.lastRequestId;\n }\n return this;\n };\n QueryInfo.prototype.reset = function () {\n cancelNotifyTimeout(this);\n this.dirty = false;\n };\n QueryInfo.prototype.getDiff = function (variables) {\n if (variables === void 0) {\n variables = this.variables;\n }\n var options = this.getDiffOptions(variables);\n if (this.lastDiff && equal(options, this.lastDiff.options)) {\n return this.lastDiff.diff;\n }\n this.updateWatch(this.variables = variables);\n var oq = this.observableQuery;\n if (oq && oq.options.fetchPolicy === \"no-cache\") {\n return {\n complete: false\n };\n }\n var diff = this.cache.diff(options);\n this.updateLastDiff(diff, options);\n return diff;\n };\n QueryInfo.prototype.updateLastDiff = function (diff, options) {\n this.lastDiff = diff ? {\n diff: diff,\n options: options || this.getDiffOptions()\n } : void 0;\n };\n QueryInfo.prototype.getDiffOptions = function (variables) {\n var _a;\n if (variables === void 0) {\n variables = this.variables;\n }\n return {\n query: this.document,\n variables: variables,\n returnPartialData: true,\n optimistic: true,\n canonizeResults: (_a = this.observableQuery) === null || _a === void 0 ? void 0 : _a.options.canonizeResults\n };\n };\n QueryInfo.prototype.setDiff = function (diff) {\n var _this = this;\n var oldDiff = this.lastDiff && this.lastDiff.diff;\n this.updateLastDiff(diff);\n if (!this.dirty && !equal(oldDiff && oldDiff.result, diff && diff.result)) {\n this.dirty = true;\n if (!this.notifyTimeout) {\n this.notifyTimeout = setTimeout(function () {\n return _this.notify();\n }, 0);\n }\n }\n };\n QueryInfo.prototype.setObservableQuery = function (oq) {\n var _this = this;\n if (oq === this.observableQuery) return;\n if (this.oqListener) {\n this.listeners.delete(this.oqListener);\n }\n this.observableQuery = oq;\n if (oq) {\n oq[\"queryInfo\"] = this;\n this.listeners.add(this.oqListener = function () {\n var diff = _this.getDiff();\n if (diff.fromOptimisticTransaction) {\n oq[\"observe\"]();\n } else {\n reobserveCacheFirst(oq);\n }\n });\n } else {\n delete this.oqListener;\n }\n };\n QueryInfo.prototype.notify = function () {\n var _this = this;\n cancelNotifyTimeout(this);\n if (this.shouldNotify()) {\n this.listeners.forEach(function (listener) {\n return listener(_this);\n });\n }\n this.dirty = false;\n };\n QueryInfo.prototype.shouldNotify = function () {\n if (!this.dirty || !this.listeners.size) {\n return false;\n }\n if (isNetworkRequestInFlight(this.networkStatus) && this.observableQuery) {\n var fetchPolicy = this.observableQuery.options.fetchPolicy;\n if (fetchPolicy !== \"cache-only\" && fetchPolicy !== \"cache-and-network\") {\n return false;\n }\n }\n return true;\n };\n QueryInfo.prototype.stop = function () {\n if (!this.stopped) {\n this.stopped = true;\n this.reset();\n this.cancel();\n this.cancel = QueryInfo.prototype.cancel;\n this.subscriptions.forEach(function (sub) {\n return sub.unsubscribe();\n });\n var oq = this.observableQuery;\n if (oq) oq.stopPolling();\n }\n };\n QueryInfo.prototype.cancel = function () {};\n QueryInfo.prototype.updateWatch = function (variables) {\n var _this = this;\n if (variables === void 0) {\n variables = this.variables;\n }\n var oq = this.observableQuery;\n if (oq && oq.options.fetchPolicy === \"no-cache\") {\n return;\n }\n var watchOptions = __assign(__assign({}, this.getDiffOptions(variables)), {\n watcher: this,\n callback: function (diff) {\n return _this.setDiff(diff);\n }\n });\n if (!this.lastWatch || !equal(watchOptions, this.lastWatch)) {\n this.cancel();\n this.cancel = this.cache.watch(this.lastWatch = watchOptions);\n }\n };\n QueryInfo.prototype.resetLastWrite = function () {\n this.lastWrite = void 0;\n };\n QueryInfo.prototype.shouldWrite = function (result, variables) {\n var lastWrite = this.lastWrite;\n return !(lastWrite && lastWrite.dmCount === destructiveMethodCounts.get(this.cache) && equal(variables, lastWrite.variables) && equal(result.data, lastWrite.result.data));\n };\n QueryInfo.prototype.markResult = function (result, document, options, cacheWriteBehavior) {\n var _this = this;\n var merger = new DeepMerger();\n var graphQLErrors = isNonEmptyArray(result.errors) ? result.errors.slice(0) : [];\n this.reset();\n if ('incremental' in result && isNonEmptyArray(result.incremental)) {\n var mergedData = mergeIncrementalData(this.getDiff().result, result);\n result.data = mergedData;\n } else if ('hasNext' in result && result.hasNext) {\n var diff = this.getDiff();\n result.data = merger.merge(diff.result, result.data);\n }\n this.graphQLErrors = graphQLErrors;\n if (options.fetchPolicy === 'no-cache') {\n this.updateLastDiff({\n result: result.data,\n complete: true\n }, this.getDiffOptions(options.variables));\n } else if (cacheWriteBehavior !== 0) {\n if (shouldWriteResult(result, options.errorPolicy)) {\n this.cache.performTransaction(function (cache) {\n if (_this.shouldWrite(result, options.variables)) {\n cache.writeQuery({\n query: document,\n data: result.data,\n variables: options.variables,\n overwrite: cacheWriteBehavior === 1\n });\n _this.lastWrite = {\n result: result,\n variables: options.variables,\n dmCount: destructiveMethodCounts.get(_this.cache)\n };\n } else {\n if (_this.lastDiff && _this.lastDiff.diff.complete) {\n result.data = _this.lastDiff.diff.result;\n return;\n }\n }\n var diffOptions = _this.getDiffOptions(options.variables);\n var diff = cache.diff(diffOptions);\n if (!_this.stopped) {\n _this.updateWatch(options.variables);\n }\n _this.updateLastDiff(diff, diffOptions);\n if (diff.complete) {\n result.data = diff.result;\n }\n });\n } else {\n this.lastWrite = void 0;\n }\n }\n };\n QueryInfo.prototype.markReady = function () {\n this.networkError = null;\n return this.networkStatus = NetworkStatus.ready;\n };\n QueryInfo.prototype.markError = function (error) {\n this.networkStatus = NetworkStatus.error;\n this.lastWrite = void 0;\n this.reset();\n if (error.graphQLErrors) {\n this.graphQLErrors = error.graphQLErrors;\n }\n if (error.networkError) {\n this.networkError = error.networkError;\n }\n return error;\n };\n return QueryInfo;\n}();\nexport { QueryInfo };\nexport function shouldWriteResult(result, errorPolicy) {\n if (errorPolicy === void 0) {\n errorPolicy = \"none\";\n }\n var ignoreErrors = errorPolicy === \"ignore\" || errorPolicy === \"all\";\n var writeWithErrors = !graphQLResultHasError(result);\n if (!writeWithErrors && ignoreErrors && result.data) {\n writeWithErrors = true;\n }\n return writeWithErrors;\n}\n","import { __assign, __awaiter, __generator } from \"tslib\";\nimport { invariant, InvariantError } from \"../utilities/globals/index.js\";\nimport { equal } from '@wry/equality';\nimport { execute } from \"../link/core/index.js\";\nimport { isExecutionPatchIncrementalResult, isExecutionPatchResult } from \"../utilities/common/incrementalResult.js\";\nimport { canonicalStringify } from \"../cache/index.js\";\nimport { getDefaultValues, getOperationDefinition, getOperationName, hasClientExports, graphQLResultHasError, getGraphQLErrorsFromResult, removeConnectionDirectiveFromDocument, canUseWeakMap, Observable, asyncMap, isNonEmptyArray, Concast, makeUniqueId, isDocumentNode, isNonNullObject } from \"../utilities/index.js\";\nimport { mergeIncrementalData } from \"../utilities/common/incrementalResult.js\";\nimport { ApolloError, isApolloError } from \"../errors/index.js\";\nimport { ObservableQuery, logMissingFieldErrors } from \"./ObservableQuery.js\";\nimport { NetworkStatus, isNetworkRequestInFlight } from \"./networkStatus.js\";\nimport { LocalState } from \"./LocalState.js\";\nimport { QueryInfo, shouldWriteResult } from \"./QueryInfo.js\";\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar QueryManager = function () {\n function QueryManager(_a) {\n var cache = _a.cache,\n link = _a.link,\n defaultOptions = _a.defaultOptions,\n _b = _a.queryDeduplication,\n queryDeduplication = _b === void 0 ? false : _b,\n onBroadcast = _a.onBroadcast,\n _c = _a.ssrMode,\n ssrMode = _c === void 0 ? false : _c,\n _d = _a.clientAwareness,\n clientAwareness = _d === void 0 ? {} : _d,\n localState = _a.localState,\n assumeImmutableResults = _a.assumeImmutableResults;\n this.clientAwareness = {};\n this.queries = new Map();\n this.fetchCancelFns = new Map();\n this.transformCache = new (canUseWeakMap ? WeakMap : Map)();\n this.queryIdCounter = 1;\n this.requestIdCounter = 1;\n this.mutationIdCounter = 1;\n this.inFlightLinkObservables = new Map();\n this.cache = cache;\n this.link = link;\n this.defaultOptions = defaultOptions || Object.create(null);\n this.queryDeduplication = queryDeduplication;\n this.clientAwareness = clientAwareness;\n this.localState = localState || new LocalState({\n cache: cache\n });\n this.ssrMode = ssrMode;\n this.assumeImmutableResults = !!assumeImmutableResults;\n if (this.onBroadcast = onBroadcast) {\n this.mutationStore = Object.create(null);\n }\n }\n QueryManager.prototype.stop = function () {\n var _this = this;\n this.queries.forEach(function (_info, queryId) {\n _this.stopQueryNoBroadcast(queryId);\n });\n this.cancelPendingFetches(__DEV__ ? new InvariantError('QueryManager stopped while query was in flight') : new InvariantError(14));\n };\n QueryManager.prototype.cancelPendingFetches = function (error) {\n this.fetchCancelFns.forEach(function (cancel) {\n return cancel(error);\n });\n this.fetchCancelFns.clear();\n };\n QueryManager.prototype.mutate = function (_a) {\n var _b, _c;\n var mutation = _a.mutation,\n variables = _a.variables,\n optimisticResponse = _a.optimisticResponse,\n updateQueries = _a.updateQueries,\n _d = _a.refetchQueries,\n refetchQueries = _d === void 0 ? [] : _d,\n _e = _a.awaitRefetchQueries,\n awaitRefetchQueries = _e === void 0 ? false : _e,\n updateWithProxyFn = _a.update,\n onQueryUpdated = _a.onQueryUpdated,\n _f = _a.fetchPolicy,\n fetchPolicy = _f === void 0 ? ((_b = this.defaultOptions.mutate) === null || _b === void 0 ? void 0 : _b.fetchPolicy) || \"network-only\" : _f,\n _g = _a.errorPolicy,\n errorPolicy = _g === void 0 ? ((_c = this.defaultOptions.mutate) === null || _c === void 0 ? void 0 : _c.errorPolicy) || \"none\" : _g,\n keepRootFields = _a.keepRootFields,\n context = _a.context;\n return __awaiter(this, void 0, void 0, function () {\n var mutationId, _h, document, hasClientExports, mutationStoreValue, self;\n return __generator(this, function (_j) {\n switch (_j.label) {\n case 0:\n __DEV__ ? invariant(mutation, 'mutation option is required. You must specify your GraphQL document in the mutation option.') : invariant(mutation, 15);\n __DEV__ ? invariant(fetchPolicy === 'network-only' || fetchPolicy === 'no-cache', \"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write.\") : invariant(fetchPolicy === 'network-only' || fetchPolicy === 'no-cache', 16);\n mutationId = this.generateMutationId();\n _h = this.transform(mutation), document = _h.document, hasClientExports = _h.hasClientExports;\n mutation = this.cache.transformForLink(document);\n variables = this.getVariables(mutation, variables);\n if (!hasClientExports) return [3, 2];\n return [4, this.localState.addExportedVariables(mutation, variables, context)];\n case 1:\n variables = _j.sent();\n _j.label = 2;\n case 2:\n mutationStoreValue = this.mutationStore && (this.mutationStore[mutationId] = {\n mutation: mutation,\n variables: variables,\n loading: true,\n error: null\n });\n if (optimisticResponse) {\n this.markMutationOptimistic(optimisticResponse, {\n mutationId: mutationId,\n document: mutation,\n variables: variables,\n fetchPolicy: fetchPolicy,\n errorPolicy: errorPolicy,\n context: context,\n updateQueries: updateQueries,\n update: updateWithProxyFn,\n keepRootFields: keepRootFields\n });\n }\n this.broadcastQueries();\n self = this;\n return [2, new Promise(function (resolve, reject) {\n return asyncMap(self.getObservableFromLink(mutation, __assign(__assign({}, context), {\n optimisticResponse: optimisticResponse\n }), variables, false), function (result) {\n if (graphQLResultHasError(result) && errorPolicy === 'none') {\n throw new ApolloError({\n graphQLErrors: getGraphQLErrorsFromResult(result)\n });\n }\n if (mutationStoreValue) {\n mutationStoreValue.loading = false;\n mutationStoreValue.error = null;\n }\n var storeResult = __assign({}, result);\n if (typeof refetchQueries === \"function\") {\n refetchQueries = refetchQueries(storeResult);\n }\n if (errorPolicy === 'ignore' && graphQLResultHasError(storeResult)) {\n delete storeResult.errors;\n }\n return self.markMutationResult({\n mutationId: mutationId,\n result: storeResult,\n document: mutation,\n variables: variables,\n fetchPolicy: fetchPolicy,\n errorPolicy: errorPolicy,\n context: context,\n update: updateWithProxyFn,\n updateQueries: updateQueries,\n awaitRefetchQueries: awaitRefetchQueries,\n refetchQueries: refetchQueries,\n removeOptimistic: optimisticResponse ? mutationId : void 0,\n onQueryUpdated: onQueryUpdated,\n keepRootFields: keepRootFields\n });\n }).subscribe({\n next: function (storeResult) {\n self.broadcastQueries();\n if (!('hasNext' in storeResult) || storeResult.hasNext === false) {\n resolve(storeResult);\n }\n },\n error: function (err) {\n if (mutationStoreValue) {\n mutationStoreValue.loading = false;\n mutationStoreValue.error = err;\n }\n if (optimisticResponse) {\n self.cache.removeOptimistic(mutationId);\n }\n self.broadcastQueries();\n reject(err instanceof ApolloError ? err : new ApolloError({\n networkError: err\n }));\n }\n });\n })];\n }\n });\n });\n };\n QueryManager.prototype.markMutationResult = function (mutation, cache) {\n var _this = this;\n if (cache === void 0) {\n cache = this.cache;\n }\n var result = mutation.result;\n var cacheWrites = [];\n var skipCache = mutation.fetchPolicy === \"no-cache\";\n if (!skipCache && shouldWriteResult(result, mutation.errorPolicy)) {\n if (!isExecutionPatchIncrementalResult(result)) {\n cacheWrites.push({\n result: result.data,\n dataId: 'ROOT_MUTATION',\n query: mutation.document,\n variables: mutation.variables\n });\n }\n if (isExecutionPatchIncrementalResult(result) && isNonEmptyArray(result.incremental)) {\n var diff = cache.diff({\n id: \"ROOT_MUTATION\",\n query: this.transform(mutation.document).asQuery,\n variables: mutation.variables,\n optimistic: false,\n returnPartialData: true\n });\n var mergedData = void 0;\n if (diff.result) {\n mergedData = mergeIncrementalData(diff.result, result);\n }\n if (typeof mergedData !== 'undefined') {\n result.data = mergedData;\n cacheWrites.push({\n result: mergedData,\n dataId: 'ROOT_MUTATION',\n query: mutation.document,\n variables: mutation.variables\n });\n }\n }\n var updateQueries_1 = mutation.updateQueries;\n if (updateQueries_1) {\n this.queries.forEach(function (_a, queryId) {\n var observableQuery = _a.observableQuery;\n var queryName = observableQuery && observableQuery.queryName;\n if (!queryName || !hasOwnProperty.call(updateQueries_1, queryName)) {\n return;\n }\n var updater = updateQueries_1[queryName];\n var _b = _this.queries.get(queryId),\n document = _b.document,\n variables = _b.variables;\n var _c = cache.diff({\n query: document,\n variables: variables,\n returnPartialData: true,\n optimistic: false\n }),\n currentQueryResult = _c.result,\n complete = _c.complete;\n if (complete && currentQueryResult) {\n var nextQueryResult = updater(currentQueryResult, {\n mutationResult: result,\n queryName: document && getOperationName(document) || void 0,\n queryVariables: variables\n });\n if (nextQueryResult) {\n cacheWrites.push({\n result: nextQueryResult,\n dataId: 'ROOT_QUERY',\n query: document,\n variables: variables\n });\n }\n }\n });\n }\n }\n if (cacheWrites.length > 0 || mutation.refetchQueries || mutation.update || mutation.onQueryUpdated || mutation.removeOptimistic) {\n var results_1 = [];\n this.refetchQueries({\n updateCache: function (cache) {\n if (!skipCache) {\n cacheWrites.forEach(function (write) {\n return cache.write(write);\n });\n }\n var update = mutation.update;\n var isFinalResult = !isExecutionPatchResult(result) || isExecutionPatchIncrementalResult(result) && !result.hasNext;\n if (update) {\n if (!skipCache) {\n var diff = cache.diff({\n id: \"ROOT_MUTATION\",\n query: _this.transform(mutation.document).asQuery,\n variables: mutation.variables,\n optimistic: false,\n returnPartialData: true\n });\n if (diff.complete) {\n result = __assign(__assign({}, result), {\n data: diff.result\n });\n if ('incremental' in result) {\n delete result.incremental;\n }\n if ('hasNext' in result) {\n delete result.hasNext;\n }\n }\n }\n if (isFinalResult) {\n update(cache, result, {\n context: mutation.context,\n variables: mutation.variables\n });\n }\n }\n if (!skipCache && !mutation.keepRootFields && isFinalResult) {\n cache.modify({\n id: 'ROOT_MUTATION',\n fields: function (value, _a) {\n var fieldName = _a.fieldName,\n DELETE = _a.DELETE;\n return fieldName === \"__typename\" ? value : DELETE;\n }\n });\n }\n },\n include: mutation.refetchQueries,\n optimistic: false,\n removeOptimistic: mutation.removeOptimistic,\n onQueryUpdated: mutation.onQueryUpdated || null\n }).forEach(function (result) {\n return results_1.push(result);\n });\n if (mutation.awaitRefetchQueries || mutation.onQueryUpdated) {\n return Promise.all(results_1).then(function () {\n return result;\n });\n }\n }\n return Promise.resolve(result);\n };\n QueryManager.prototype.markMutationOptimistic = function (optimisticResponse, mutation) {\n var _this = this;\n var data = typeof optimisticResponse === \"function\" ? optimisticResponse(mutation.variables) : optimisticResponse;\n return this.cache.recordOptimisticTransaction(function (cache) {\n try {\n _this.markMutationResult(__assign(__assign({}, mutation), {\n result: {\n data: data\n }\n }), cache);\n } catch (error) {\n __DEV__ && invariant.error(error);\n }\n }, mutation.mutationId);\n };\n QueryManager.prototype.fetchQuery = function (queryId, options, networkStatus) {\n return this.fetchQueryObservable(queryId, options, networkStatus).promise;\n };\n QueryManager.prototype.getQueryStore = function () {\n var store = Object.create(null);\n this.queries.forEach(function (info, queryId) {\n store[queryId] = {\n variables: info.variables,\n networkStatus: info.networkStatus,\n networkError: info.networkError,\n graphQLErrors: info.graphQLErrors\n };\n });\n return store;\n };\n QueryManager.prototype.resetErrors = function (queryId) {\n var queryInfo = this.queries.get(queryId);\n if (queryInfo) {\n queryInfo.networkError = undefined;\n queryInfo.graphQLErrors = [];\n }\n };\n QueryManager.prototype.transform = function (document) {\n var transformCache = this.transformCache;\n if (!transformCache.has(document)) {\n var transformed = this.cache.transformDocument(document);\n var noConnection = removeConnectionDirectiveFromDocument(transformed);\n var clientQuery = this.localState.clientQuery(transformed);\n var serverQuery = noConnection && this.localState.serverQuery(noConnection);\n var cacheEntry_1 = {\n document: transformed,\n hasClientExports: hasClientExports(transformed),\n hasForcedResolvers: this.localState.shouldForceResolvers(transformed),\n clientQuery: clientQuery,\n serverQuery: serverQuery,\n defaultVars: getDefaultValues(getOperationDefinition(transformed)),\n asQuery: __assign(__assign({}, transformed), {\n definitions: transformed.definitions.map(function (def) {\n if (def.kind === \"OperationDefinition\" && def.operation !== \"query\") {\n return __assign(__assign({}, def), {\n operation: \"query\"\n });\n }\n return def;\n })\n })\n };\n var add = function (doc) {\n if (doc && !transformCache.has(doc)) {\n transformCache.set(doc, cacheEntry_1);\n }\n };\n add(document);\n add(transformed);\n add(clientQuery);\n add(serverQuery);\n }\n return transformCache.get(document);\n };\n QueryManager.prototype.getVariables = function (document, variables) {\n return __assign(__assign({}, this.transform(document).defaultVars), variables);\n };\n QueryManager.prototype.watchQuery = function (options) {\n options = __assign(__assign({}, options), {\n variables: this.getVariables(options.query, options.variables)\n });\n if (typeof options.notifyOnNetworkStatusChange === 'undefined') {\n options.notifyOnNetworkStatusChange = false;\n }\n var queryInfo = new QueryInfo(this);\n var observable = new ObservableQuery({\n queryManager: this,\n queryInfo: queryInfo,\n options: options\n });\n this.queries.set(observable.queryId, queryInfo);\n queryInfo.init({\n document: observable.query,\n observableQuery: observable,\n variables: observable.variables\n });\n return observable;\n };\n QueryManager.prototype.query = function (options, queryId) {\n var _this = this;\n if (queryId === void 0) {\n queryId = this.generateQueryId();\n }\n __DEV__ ? invariant(options.query, 'query option is required. You must specify your GraphQL document ' + 'in the query option.') : invariant(options.query, 17);\n __DEV__ ? invariant(options.query.kind === 'Document', 'You must wrap the query string in a \"gql\" tag.') : invariant(options.query.kind === 'Document', 18);\n __DEV__ ? invariant(!options.returnPartialData, 'returnPartialData option only supported on watchQuery.') : invariant(!options.returnPartialData, 19);\n __DEV__ ? invariant(!options.pollInterval, 'pollInterval option only supported on watchQuery.') : invariant(!options.pollInterval, 20);\n return this.fetchQuery(queryId, options).finally(function () {\n return _this.stopQuery(queryId);\n });\n };\n QueryManager.prototype.generateQueryId = function () {\n return String(this.queryIdCounter++);\n };\n QueryManager.prototype.generateRequestId = function () {\n return this.requestIdCounter++;\n };\n QueryManager.prototype.generateMutationId = function () {\n return String(this.mutationIdCounter++);\n };\n QueryManager.prototype.stopQueryInStore = function (queryId) {\n this.stopQueryInStoreNoBroadcast(queryId);\n this.broadcastQueries();\n };\n QueryManager.prototype.stopQueryInStoreNoBroadcast = function (queryId) {\n var queryInfo = this.queries.get(queryId);\n if (queryInfo) queryInfo.stop();\n };\n QueryManager.prototype.clearStore = function (options) {\n if (options === void 0) {\n options = {\n discardWatches: true\n };\n }\n this.cancelPendingFetches(__DEV__ ? new InvariantError('Store reset while query was in flight (not completed in link chain)') : new InvariantError(21));\n this.queries.forEach(function (queryInfo) {\n if (queryInfo.observableQuery) {\n queryInfo.networkStatus = NetworkStatus.loading;\n } else {\n queryInfo.stop();\n }\n });\n if (this.mutationStore) {\n this.mutationStore = Object.create(null);\n }\n return this.cache.reset(options);\n };\n QueryManager.prototype.getObservableQueries = function (include) {\n var _this = this;\n if (include === void 0) {\n include = \"active\";\n }\n var queries = new Map();\n var queryNamesAndDocs = new Map();\n var legacyQueryOptions = new Set();\n if (Array.isArray(include)) {\n include.forEach(function (desc) {\n if (typeof desc === \"string\") {\n queryNamesAndDocs.set(desc, false);\n } else if (isDocumentNode(desc)) {\n queryNamesAndDocs.set(_this.transform(desc).document, false);\n } else if (isNonNullObject(desc) && desc.query) {\n legacyQueryOptions.add(desc);\n }\n });\n }\n this.queries.forEach(function (_a, queryId) {\n var oq = _a.observableQuery,\n document = _a.document;\n if (oq) {\n if (include === \"all\") {\n queries.set(queryId, oq);\n return;\n }\n var queryName = oq.queryName,\n fetchPolicy = oq.options.fetchPolicy;\n if (fetchPolicy === \"standby\" || include === \"active\" && !oq.hasObservers()) {\n return;\n }\n if (include === \"active\" || queryName && queryNamesAndDocs.has(queryName) || document && queryNamesAndDocs.has(document)) {\n queries.set(queryId, oq);\n if (queryName) queryNamesAndDocs.set(queryName, true);\n if (document) queryNamesAndDocs.set(document, true);\n }\n }\n });\n if (legacyQueryOptions.size) {\n legacyQueryOptions.forEach(function (options) {\n var queryId = makeUniqueId(\"legacyOneTimeQuery\");\n var queryInfo = _this.getQuery(queryId).init({\n document: options.query,\n variables: options.variables\n });\n var oq = new ObservableQuery({\n queryManager: _this,\n queryInfo: queryInfo,\n options: __assign(__assign({}, options), {\n fetchPolicy: \"network-only\"\n })\n });\n invariant(oq.queryId === queryId);\n queryInfo.setObservableQuery(oq);\n queries.set(queryId, oq);\n });\n }\n if (__DEV__ && queryNamesAndDocs.size) {\n queryNamesAndDocs.forEach(function (included, nameOrDoc) {\n if (!included) {\n __DEV__ && invariant.warn(\"Unknown query \".concat(typeof nameOrDoc === \"string\" ? \"named \" : \"\").concat(JSON.stringify(nameOrDoc, null, 2), \" requested in refetchQueries options.include array\"));\n }\n });\n }\n return queries;\n };\n QueryManager.prototype.reFetchObservableQueries = function (includeStandby) {\n var _this = this;\n if (includeStandby === void 0) {\n includeStandby = false;\n }\n var observableQueryPromises = [];\n this.getObservableQueries(includeStandby ? \"all\" : \"active\").forEach(function (observableQuery, queryId) {\n var fetchPolicy = observableQuery.options.fetchPolicy;\n observableQuery.resetLastResults();\n if (includeStandby || fetchPolicy !== \"standby\" && fetchPolicy !== \"cache-only\") {\n observableQueryPromises.push(observableQuery.refetch());\n }\n _this.getQuery(queryId).setDiff(null);\n });\n this.broadcastQueries();\n return Promise.all(observableQueryPromises);\n };\n QueryManager.prototype.setObservableQuery = function (observableQuery) {\n this.getQuery(observableQuery.queryId).setObservableQuery(observableQuery);\n };\n QueryManager.prototype.startGraphQLSubscription = function (_a) {\n var _this = this;\n var query = _a.query,\n fetchPolicy = _a.fetchPolicy,\n errorPolicy = _a.errorPolicy,\n variables = _a.variables,\n _b = _a.context,\n context = _b === void 0 ? {} : _b;\n query = this.transform(query).document;\n variables = this.getVariables(query, variables);\n var makeObservable = function (variables) {\n return _this.getObservableFromLink(query, context, variables).map(function (result) {\n if (fetchPolicy !== 'no-cache') {\n if (shouldWriteResult(result, errorPolicy)) {\n _this.cache.write({\n query: query,\n result: result.data,\n dataId: 'ROOT_SUBSCRIPTION',\n variables: variables\n });\n }\n _this.broadcastQueries();\n }\n if (graphQLResultHasError(result)) {\n throw new ApolloError({\n graphQLErrors: result.errors\n });\n }\n return result;\n });\n };\n if (this.transform(query).hasClientExports) {\n var observablePromise_1 = this.localState.addExportedVariables(query, variables, context).then(makeObservable);\n return new Observable(function (observer) {\n var sub = null;\n observablePromise_1.then(function (observable) {\n return sub = observable.subscribe(observer);\n }, observer.error);\n return function () {\n return sub && sub.unsubscribe();\n };\n });\n }\n return makeObservable(variables);\n };\n QueryManager.prototype.stopQuery = function (queryId) {\n this.stopQueryNoBroadcast(queryId);\n this.broadcastQueries();\n };\n QueryManager.prototype.stopQueryNoBroadcast = function (queryId) {\n this.stopQueryInStoreNoBroadcast(queryId);\n this.removeQuery(queryId);\n };\n QueryManager.prototype.removeQuery = function (queryId) {\n this.fetchCancelFns.delete(queryId);\n if (this.queries.has(queryId)) {\n this.getQuery(queryId).stop();\n this.queries.delete(queryId);\n }\n };\n QueryManager.prototype.broadcastQueries = function () {\n if (this.onBroadcast) this.onBroadcast();\n this.queries.forEach(function (info) {\n return info.notify();\n });\n };\n QueryManager.prototype.getLocalState = function () {\n return this.localState;\n };\n QueryManager.prototype.getObservableFromLink = function (query, context, variables, deduplication) {\n var _this = this;\n var _a;\n if (deduplication === void 0) {\n deduplication = (_a = context === null || context === void 0 ? void 0 : context.queryDeduplication) !== null && _a !== void 0 ? _a : this.queryDeduplication;\n }\n var observable;\n var serverQuery = this.transform(query).serverQuery;\n if (serverQuery) {\n var _b = this,\n inFlightLinkObservables_1 = _b.inFlightLinkObservables,\n link = _b.link;\n var operation = {\n query: serverQuery,\n variables: variables,\n operationName: getOperationName(serverQuery) || void 0,\n context: this.prepareContext(__assign(__assign({}, context), {\n forceFetch: !deduplication\n }))\n };\n context = operation.context;\n if (deduplication) {\n var byVariables_1 = inFlightLinkObservables_1.get(serverQuery) || new Map();\n inFlightLinkObservables_1.set(serverQuery, byVariables_1);\n var varJson_1 = canonicalStringify(variables);\n observable = byVariables_1.get(varJson_1);\n if (!observable) {\n var concast = new Concast([execute(link, operation)]);\n byVariables_1.set(varJson_1, observable = concast);\n concast.beforeNext(function () {\n if (byVariables_1.delete(varJson_1) && byVariables_1.size < 1) {\n inFlightLinkObservables_1.delete(serverQuery);\n }\n });\n }\n } else {\n observable = new Concast([execute(link, operation)]);\n }\n } else {\n observable = new Concast([Observable.of({\n data: {}\n })]);\n context = this.prepareContext(context);\n }\n var clientQuery = this.transform(query).clientQuery;\n if (clientQuery) {\n observable = asyncMap(observable, function (result) {\n return _this.localState.runResolvers({\n document: clientQuery,\n remoteResult: result,\n context: context,\n variables: variables\n });\n });\n }\n return observable;\n };\n QueryManager.prototype.getResultsFromLink = function (queryInfo, cacheWriteBehavior, options) {\n var requestId = queryInfo.lastRequestId = this.generateRequestId();\n var linkDocument = this.cache.transformForLink(this.transform(queryInfo.document).document);\n return asyncMap(this.getObservableFromLink(linkDocument, options.context, options.variables), function (result) {\n var graphQLErrors = getGraphQLErrorsFromResult(result);\n var hasErrors = graphQLErrors.length > 0;\n if (requestId >= queryInfo.lastRequestId) {\n if (hasErrors && options.errorPolicy === \"none\") {\n throw queryInfo.markError(new ApolloError({\n graphQLErrors: graphQLErrors\n }));\n }\n queryInfo.markResult(result, linkDocument, options, cacheWriteBehavior);\n queryInfo.markReady();\n }\n var aqr = {\n data: result.data,\n loading: false,\n networkStatus: NetworkStatus.ready\n };\n if (hasErrors && options.errorPolicy !== \"ignore\") {\n aqr.errors = graphQLErrors;\n aqr.networkStatus = NetworkStatus.error;\n }\n return aqr;\n }, function (networkError) {\n var error = isApolloError(networkError) ? networkError : new ApolloError({\n networkError: networkError\n });\n if (requestId >= queryInfo.lastRequestId) {\n queryInfo.markError(error);\n }\n throw error;\n });\n };\n QueryManager.prototype.fetchQueryObservable = function (queryId, options, networkStatus) {\n var _this = this;\n if (networkStatus === void 0) {\n networkStatus = NetworkStatus.loading;\n }\n var query = this.transform(options.query).document;\n var variables = this.getVariables(query, options.variables);\n var queryInfo = this.getQuery(queryId);\n var defaults = this.defaultOptions.watchQuery;\n var _a = options.fetchPolicy,\n fetchPolicy = _a === void 0 ? defaults && defaults.fetchPolicy || \"cache-first\" : _a,\n _b = options.errorPolicy,\n errorPolicy = _b === void 0 ? defaults && defaults.errorPolicy || \"none\" : _b,\n _c = options.returnPartialData,\n returnPartialData = _c === void 0 ? false : _c,\n _d = options.notifyOnNetworkStatusChange,\n notifyOnNetworkStatusChange = _d === void 0 ? false : _d,\n _e = options.context,\n context = _e === void 0 ? {} : _e;\n var normalized = Object.assign({}, options, {\n query: query,\n variables: variables,\n fetchPolicy: fetchPolicy,\n errorPolicy: errorPolicy,\n returnPartialData: returnPartialData,\n notifyOnNetworkStatusChange: notifyOnNetworkStatusChange,\n context: context\n });\n var fromVariables = function (variables) {\n normalized.variables = variables;\n var concastSources = _this.fetchQueryByPolicy(queryInfo, normalized, networkStatus);\n if (normalized.fetchPolicy !== \"standby\" && concastSources.length > 0 && queryInfo.observableQuery) {\n queryInfo.observableQuery[\"applyNextFetchPolicy\"](\"after-fetch\", options);\n }\n return concastSources;\n };\n var cleanupCancelFn = function () {\n return _this.fetchCancelFns.delete(queryId);\n };\n this.fetchCancelFns.set(queryId, function (reason) {\n cleanupCancelFn();\n setTimeout(function () {\n return concast.cancel(reason);\n });\n });\n var concast = new Concast(this.transform(normalized.query).hasClientExports ? this.localState.addExportedVariables(normalized.query, normalized.variables, normalized.context).then(fromVariables) : fromVariables(normalized.variables));\n concast.promise.then(cleanupCancelFn, cleanupCancelFn);\n return concast;\n };\n QueryManager.prototype.refetchQueries = function (_a) {\n var _this = this;\n var updateCache = _a.updateCache,\n include = _a.include,\n _b = _a.optimistic,\n optimistic = _b === void 0 ? false : _b,\n _c = _a.removeOptimistic,\n removeOptimistic = _c === void 0 ? optimistic ? makeUniqueId(\"refetchQueries\") : void 0 : _c,\n onQueryUpdated = _a.onQueryUpdated;\n var includedQueriesById = new Map();\n if (include) {\n this.getObservableQueries(include).forEach(function (oq, queryId) {\n includedQueriesById.set(queryId, {\n oq: oq,\n lastDiff: _this.getQuery(queryId).getDiff()\n });\n });\n }\n var results = new Map();\n if (updateCache) {\n this.cache.batch({\n update: updateCache,\n optimistic: optimistic && removeOptimistic || false,\n removeOptimistic: removeOptimistic,\n onWatchUpdated: function (watch, diff, lastDiff) {\n var oq = watch.watcher instanceof QueryInfo && watch.watcher.observableQuery;\n if (oq) {\n if (onQueryUpdated) {\n includedQueriesById.delete(oq.queryId);\n var result = onQueryUpdated(oq, diff, lastDiff);\n if (result === true) {\n result = oq.refetch();\n }\n if (result !== false) {\n results.set(oq, result);\n }\n return result;\n }\n if (onQueryUpdated !== null) {\n includedQueriesById.set(oq.queryId, {\n oq: oq,\n lastDiff: lastDiff,\n diff: diff\n });\n }\n }\n }\n });\n }\n if (includedQueriesById.size) {\n includedQueriesById.forEach(function (_a, queryId) {\n var oq = _a.oq,\n lastDiff = _a.lastDiff,\n diff = _a.diff;\n var result;\n if (onQueryUpdated) {\n if (!diff) {\n var info = oq[\"queryInfo\"];\n info.reset();\n diff = info.getDiff();\n }\n result = onQueryUpdated(oq, diff, lastDiff);\n }\n if (!onQueryUpdated || result === true) {\n result = oq.refetch();\n }\n if (result !== false) {\n results.set(oq, result);\n }\n if (queryId.indexOf(\"legacyOneTimeQuery\") >= 0) {\n _this.stopQueryNoBroadcast(queryId);\n }\n });\n }\n if (removeOptimistic) {\n this.cache.removeOptimistic(removeOptimistic);\n }\n return results;\n };\n QueryManager.prototype.fetchQueryByPolicy = function (queryInfo, _a, networkStatus) {\n var _this = this;\n var query = _a.query,\n variables = _a.variables,\n fetchPolicy = _a.fetchPolicy,\n refetchWritePolicy = _a.refetchWritePolicy,\n errorPolicy = _a.errorPolicy,\n returnPartialData = _a.returnPartialData,\n context = _a.context,\n notifyOnNetworkStatusChange = _a.notifyOnNetworkStatusChange;\n var oldNetworkStatus = queryInfo.networkStatus;\n queryInfo.init({\n document: this.transform(query).document,\n variables: variables,\n networkStatus: networkStatus\n });\n var readCache = function () {\n return queryInfo.getDiff(variables);\n };\n var resultsFromCache = function (diff, networkStatus) {\n if (networkStatus === void 0) {\n networkStatus = queryInfo.networkStatus || NetworkStatus.loading;\n }\n var data = diff.result;\n if (__DEV__ && !returnPartialData && !equal(data, {})) {\n logMissingFieldErrors(diff.missing);\n }\n var fromData = function (data) {\n return Observable.of(__assign({\n data: data,\n loading: isNetworkRequestInFlight(networkStatus),\n networkStatus: networkStatus\n }, diff.complete ? null : {\n partial: true\n }));\n };\n if (data && _this.transform(query).hasForcedResolvers) {\n return _this.localState.runResolvers({\n document: query,\n remoteResult: {\n data: data\n },\n context: context,\n variables: variables,\n onlyRunForcedResolvers: true\n }).then(function (resolved) {\n return fromData(resolved.data || void 0);\n });\n }\n if (errorPolicy === 'none' && networkStatus === NetworkStatus.refetch && Array.isArray(diff.missing)) {\n return fromData(void 0);\n }\n return fromData(data);\n };\n var cacheWriteBehavior = fetchPolicy === \"no-cache\" ? 0 : networkStatus === NetworkStatus.refetch && refetchWritePolicy !== \"merge\" ? 1 : 2;\n var resultsFromLink = function () {\n return _this.getResultsFromLink(queryInfo, cacheWriteBehavior, {\n variables: variables,\n context: context,\n fetchPolicy: fetchPolicy,\n errorPolicy: errorPolicy\n });\n };\n var shouldNotify = notifyOnNetworkStatusChange && typeof oldNetworkStatus === \"number\" && oldNetworkStatus !== networkStatus && isNetworkRequestInFlight(networkStatus);\n switch (fetchPolicy) {\n default:\n case \"cache-first\":\n {\n var diff = readCache();\n if (diff.complete) {\n return [resultsFromCache(diff, queryInfo.markReady())];\n }\n if (returnPartialData || shouldNotify) {\n return [resultsFromCache(diff), resultsFromLink()];\n }\n return [resultsFromLink()];\n }\n case \"cache-and-network\":\n {\n var diff = readCache();\n if (diff.complete || returnPartialData || shouldNotify) {\n return [resultsFromCache(diff), resultsFromLink()];\n }\n return [resultsFromLink()];\n }\n case \"cache-only\":\n return [resultsFromCache(readCache(), queryInfo.markReady())];\n case \"network-only\":\n if (shouldNotify) {\n return [resultsFromCache(readCache()), resultsFromLink()];\n }\n return [resultsFromLink()];\n case \"no-cache\":\n if (shouldNotify) {\n return [resultsFromCache(queryInfo.getDiff()), resultsFromLink()];\n }\n return [resultsFromLink()];\n case \"standby\":\n return [];\n }\n };\n QueryManager.prototype.getQuery = function (queryId) {\n if (queryId && !this.queries.has(queryId)) {\n this.queries.set(queryId, new QueryInfo(this, queryId));\n }\n return this.queries.get(queryId);\n };\n QueryManager.prototype.prepareContext = function (context) {\n if (context === void 0) {\n context = {};\n }\n var newContext = this.localState.prepareContext(context);\n return __assign(__assign({}, newContext), {\n clientAwareness: this.clientAwareness\n });\n };\n return QueryManager;\n}();\nexport { QueryManager };\n","import { __assign } from \"tslib\";\nimport { invariant, InvariantError } from \"../utilities/globals/index.js\";\nimport { ApolloLink, execute } from \"../link/core/index.js\";\nimport { version } from \"../version.js\";\nimport { HttpLink } from \"../link/http/index.js\";\nimport { QueryManager } from \"./QueryManager.js\";\nimport { LocalState } from \"./LocalState.js\";\nvar hasSuggestedDevtools = false;\nimport { mergeOptions } from \"../utilities/index.js\";\nexport { mergeOptions };\nvar ApolloClient = function () {\n function ApolloClient(options) {\n var _this = this;\n this.resetStoreCallbacks = [];\n this.clearStoreCallbacks = [];\n var uri = options.uri,\n credentials = options.credentials,\n headers = options.headers,\n cache = options.cache,\n _a = options.ssrMode,\n ssrMode = _a === void 0 ? false : _a,\n _b = options.ssrForceFetchDelay,\n ssrForceFetchDelay = _b === void 0 ? 0 : _b,\n _c = options.connectToDevTools,\n connectToDevTools = _c === void 0 ? typeof window === 'object' && !window.__APOLLO_CLIENT__ && __DEV__ : _c,\n _d = options.queryDeduplication,\n queryDeduplication = _d === void 0 ? true : _d,\n defaultOptions = options.defaultOptions,\n _e = options.assumeImmutableResults,\n assumeImmutableResults = _e === void 0 ? false : _e,\n resolvers = options.resolvers,\n typeDefs = options.typeDefs,\n fragmentMatcher = options.fragmentMatcher,\n clientAwarenessName = options.name,\n clientAwarenessVersion = options.version;\n var link = options.link;\n if (!link) {\n link = uri ? new HttpLink({\n uri: uri,\n credentials: credentials,\n headers: headers\n }) : ApolloLink.empty();\n }\n if (!cache) {\n throw __DEV__ ? new InvariantError(\"To initialize Apollo Client, you must specify a 'cache' property \" + \"in the options object. \\n\" + \"For more information, please visit: https://go.apollo.dev/c/docs\") : new InvariantError(9);\n }\n this.link = link;\n this.cache = cache;\n this.disableNetworkFetches = ssrMode || ssrForceFetchDelay > 0;\n this.queryDeduplication = queryDeduplication;\n this.defaultOptions = defaultOptions || Object.create(null);\n this.typeDefs = typeDefs;\n if (ssrForceFetchDelay) {\n setTimeout(function () {\n return _this.disableNetworkFetches = false;\n }, ssrForceFetchDelay);\n }\n this.watchQuery = this.watchQuery.bind(this);\n this.query = this.query.bind(this);\n this.mutate = this.mutate.bind(this);\n this.resetStore = this.resetStore.bind(this);\n this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this);\n if (connectToDevTools && typeof window === 'object') {\n window.__APOLLO_CLIENT__ = this;\n }\n if (!hasSuggestedDevtools && connectToDevTools && __DEV__) {\n hasSuggestedDevtools = true;\n if (typeof window !== 'undefined' && window.document && window.top === window.self && !window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__) {\n var nav = window.navigator;\n var ua = nav && nav.userAgent;\n var url = void 0;\n if (typeof ua === \"string\") {\n if (ua.indexOf(\"Chrome/\") > -1) {\n url = \"https://chrome.google.com/webstore/detail/\" + \"apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm\";\n } else if (ua.indexOf(\"Firefox/\") > -1) {\n url = \"https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/\";\n }\n }\n if (url) {\n __DEV__ && invariant.log(\"Download the Apollo DevTools for a better development \" + \"experience: \" + url);\n }\n }\n }\n this.version = version;\n this.localState = new LocalState({\n cache: cache,\n client: this,\n resolvers: resolvers,\n fragmentMatcher: fragmentMatcher\n });\n this.queryManager = new QueryManager({\n cache: this.cache,\n link: this.link,\n defaultOptions: this.defaultOptions,\n queryDeduplication: queryDeduplication,\n ssrMode: ssrMode,\n clientAwareness: {\n name: clientAwarenessName,\n version: clientAwarenessVersion\n },\n localState: this.localState,\n assumeImmutableResults: assumeImmutableResults,\n onBroadcast: connectToDevTools ? function () {\n if (_this.devToolsHookCb) {\n _this.devToolsHookCb({\n action: {},\n state: {\n queries: _this.queryManager.getQueryStore(),\n mutations: _this.queryManager.mutationStore || {}\n },\n dataWithOptimisticResults: _this.cache.extract(true)\n });\n }\n } : void 0\n });\n }\n ApolloClient.prototype.stop = function () {\n this.queryManager.stop();\n };\n ApolloClient.prototype.watchQuery = function (options) {\n if (this.defaultOptions.watchQuery) {\n options = mergeOptions(this.defaultOptions.watchQuery, options);\n }\n if (this.disableNetworkFetches && (options.fetchPolicy === 'network-only' || options.fetchPolicy === 'cache-and-network')) {\n options = __assign(__assign({}, options), {\n fetchPolicy: 'cache-first'\n });\n }\n return this.queryManager.watchQuery(options);\n };\n ApolloClient.prototype.query = function (options) {\n if (this.defaultOptions.query) {\n options = mergeOptions(this.defaultOptions.query, options);\n }\n __DEV__ ? invariant(options.fetchPolicy !== 'cache-and-network', 'The cache-and-network fetchPolicy does not work with client.query, because ' + 'client.query can only return a single result. Please use client.watchQuery ' + 'to receive multiple results from the cache and the network, or consider ' + 'using a different fetchPolicy, such as cache-first or network-only.') : invariant(options.fetchPolicy !== 'cache-and-network', 10);\n if (this.disableNetworkFetches && options.fetchPolicy === 'network-only') {\n options = __assign(__assign({}, options), {\n fetchPolicy: 'cache-first'\n });\n }\n return this.queryManager.query(options);\n };\n ApolloClient.prototype.mutate = function (options) {\n if (this.defaultOptions.mutate) {\n options = mergeOptions(this.defaultOptions.mutate, options);\n }\n return this.queryManager.mutate(options);\n };\n ApolloClient.prototype.subscribe = function (options) {\n return this.queryManager.startGraphQLSubscription(options);\n };\n ApolloClient.prototype.readQuery = function (options, optimistic) {\n if (optimistic === void 0) {\n optimistic = false;\n }\n return this.cache.readQuery(options, optimistic);\n };\n ApolloClient.prototype.readFragment = function (options, optimistic) {\n if (optimistic === void 0) {\n optimistic = false;\n }\n return this.cache.readFragment(options, optimistic);\n };\n ApolloClient.prototype.writeQuery = function (options) {\n this.cache.writeQuery(options);\n this.queryManager.broadcastQueries();\n };\n ApolloClient.prototype.writeFragment = function (options) {\n this.cache.writeFragment(options);\n this.queryManager.broadcastQueries();\n };\n ApolloClient.prototype.__actionHookForDevTools = function (cb) {\n this.devToolsHookCb = cb;\n };\n ApolloClient.prototype.__requestRaw = function (payload) {\n return execute(this.link, payload);\n };\n ApolloClient.prototype.resetStore = function () {\n var _this = this;\n return Promise.resolve().then(function () {\n return _this.queryManager.clearStore({\n discardWatches: false\n });\n }).then(function () {\n return Promise.all(_this.resetStoreCallbacks.map(function (fn) {\n return fn();\n }));\n }).then(function () {\n return _this.reFetchObservableQueries();\n });\n };\n ApolloClient.prototype.clearStore = function () {\n var _this = this;\n return Promise.resolve().then(function () {\n return _this.queryManager.clearStore({\n discardWatches: true\n });\n }).then(function () {\n return Promise.all(_this.clearStoreCallbacks.map(function (fn) {\n return fn();\n }));\n });\n };\n ApolloClient.prototype.onResetStore = function (cb) {\n var _this = this;\n this.resetStoreCallbacks.push(cb);\n return function () {\n _this.resetStoreCallbacks = _this.resetStoreCallbacks.filter(function (c) {\n return c !== cb;\n });\n };\n };\n ApolloClient.prototype.onClearStore = function (cb) {\n var _this = this;\n this.clearStoreCallbacks.push(cb);\n return function () {\n _this.clearStoreCallbacks = _this.clearStoreCallbacks.filter(function (c) {\n return c !== cb;\n });\n };\n };\n ApolloClient.prototype.reFetchObservableQueries = function (includeStandby) {\n return this.queryManager.reFetchObservableQueries(includeStandby);\n };\n ApolloClient.prototype.refetchQueries = function (options) {\n var map = this.queryManager.refetchQueries(options);\n var queries = [];\n var results = [];\n map.forEach(function (result, obsQuery) {\n queries.push(obsQuery);\n results.push(result);\n });\n var result = Promise.all(results);\n result.queries = queries;\n result.results = results;\n result.catch(function (error) {\n __DEV__ && invariant.debug(\"In client.refetchQueries, Promise.all promise rejected with error \".concat(error));\n });\n return result;\n };\n ApolloClient.prototype.getObservableQueries = function (include) {\n if (include === void 0) {\n include = \"active\";\n }\n return this.queryManager.getObservableQueries(include);\n };\n ApolloClient.prototype.extract = function (optimistic) {\n return this.cache.extract(optimistic);\n };\n ApolloClient.prototype.restore = function (serializedState) {\n return this.cache.restore(serializedState);\n };\n ApolloClient.prototype.addResolvers = function (resolvers) {\n this.localState.addResolvers(resolvers);\n };\n ApolloClient.prototype.setResolvers = function (resolvers) {\n this.localState.setResolvers(resolvers);\n };\n ApolloClient.prototype.getResolvers = function () {\n return this.localState.getResolvers();\n };\n ApolloClient.prototype.setLocalStateFragmentMatcher = function (fragmentMatcher) {\n this.localState.setFragmentMatcher(fragmentMatcher);\n };\n ApolloClient.prototype.setLink = function (newLink) {\n this.link = this.queryManager.link = newLink;\n };\n return ApolloClient;\n}();\nexport { ApolloClient };\n","import { __assign } from \"tslib\";\nimport { parse } from 'graphql';\nvar docCache = new Map();\nvar fragmentSourceMap = new Map();\nvar printFragmentWarnings = true;\nvar experimentalFragmentVariables = false;\nfunction normalize(string) {\n return string.replace(/[\\s,]+/g, ' ').trim();\n}\nfunction cacheKeyFromLoc(loc) {\n return normalize(loc.source.body.substring(loc.start, loc.end));\n}\nfunction processFragments(ast) {\n var seenKeys = new Set();\n var definitions = [];\n ast.definitions.forEach(function (fragmentDefinition) {\n if (fragmentDefinition.kind === 'FragmentDefinition') {\n var fragmentName = fragmentDefinition.name.value;\n var sourceKey = cacheKeyFromLoc(fragmentDefinition.loc);\n var sourceKeySet = fragmentSourceMap.get(fragmentName);\n if (sourceKeySet && !sourceKeySet.has(sourceKey)) {\n if (printFragmentWarnings) {\n console.warn(\"Warning: fragment with name \" + fragmentName + \" already exists.\\n\" + \"graphql-tag enforces all fragment names across your application to be unique; read more about\\n\" + \"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names\");\n }\n } else if (!sourceKeySet) {\n fragmentSourceMap.set(fragmentName, sourceKeySet = new Set());\n }\n sourceKeySet.add(sourceKey);\n if (!seenKeys.has(sourceKey)) {\n seenKeys.add(sourceKey);\n definitions.push(fragmentDefinition);\n }\n } else {\n definitions.push(fragmentDefinition);\n }\n });\n return __assign(__assign({}, ast), {\n definitions: definitions\n });\n}\nfunction stripLoc(doc) {\n var workSet = new Set(doc.definitions);\n workSet.forEach(function (node) {\n if (node.loc) delete node.loc;\n Object.keys(node).forEach(function (key) {\n var value = node[key];\n if (value && typeof value === 'object') {\n workSet.add(value);\n }\n });\n });\n var loc = doc.loc;\n if (loc) {\n delete loc.startToken;\n delete loc.endToken;\n }\n return doc;\n}\nfunction parseDocument(source) {\n var cacheKey = normalize(source);\n if (!docCache.has(cacheKey)) {\n var parsed = parse(source, {\n experimentalFragmentVariables: experimentalFragmentVariables,\n allowLegacyFragmentVariables: experimentalFragmentVariables\n });\n if (!parsed || parsed.kind !== 'Document') {\n throw new Error('Not a valid GraphQL document.');\n }\n docCache.set(cacheKey, stripLoc(processFragments(parsed)));\n }\n return docCache.get(cacheKey);\n}\nexport function gql(literals) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n if (typeof literals === 'string') {\n literals = [literals];\n }\n var result = literals[0];\n args.forEach(function (arg, i) {\n if (arg && arg.kind === 'Document') {\n result += arg.loc.source.body;\n } else {\n result += arg;\n }\n result += literals[i + 1];\n });\n return parseDocument(result);\n}\nexport function resetCaches() {\n docCache.clear();\n fragmentSourceMap.clear();\n}\nexport function disableFragmentWarnings() {\n printFragmentWarnings = false;\n}\nexport function enableExperimentalFragmentVariables() {\n experimentalFragmentVariables = true;\n}\nexport function disableExperimentalFragmentVariables() {\n experimentalFragmentVariables = false;\n}\nvar extras = {\n gql: gql,\n resetCaches: resetCaches,\n disableFragmentWarnings: disableFragmentWarnings,\n enableExperimentalFragmentVariables: enableExperimentalFragmentVariables,\n disableExperimentalFragmentVariables: disableExperimentalFragmentVariables\n};\n(function (gql_1) {\n gql_1.gql = extras.gql, gql_1.resetCaches = extras.resetCaches, gql_1.disableFragmentWarnings = extras.disableFragmentWarnings, gql_1.enableExperimentalFragmentVariables = extras.enableExperimentalFragmentVariables, gql_1.disableExperimentalFragmentVariables = extras.disableExperimentalFragmentVariables;\n})(gql || (gql = {}));\ngql[\"default\"] = gql;\nexport default gql;\n","import { DEV } from \"../utilities/globals/index.js\";\nexport { ApolloClient, mergeOptions } from \"./ApolloClient.js\";\nexport { ObservableQuery } from \"./ObservableQuery.js\";\nexport { NetworkStatus } from \"./networkStatus.js\";\nexport * from \"./types.js\";\nexport { isApolloError, ApolloError } from \"../errors/index.js\";\nexport { Cache, ApolloCache, InMemoryCache, MissingFieldError, defaultDataIdFromObject, makeVar } from \"../cache/index.js\";\nexport * from \"../cache/inmemory/types.js\";\nexport * from \"../link/core/index.js\";\nexport * from \"../link/http/index.js\";\nexport { fromError, toPromise, fromPromise, throwServerError } from \"../link/utils/index.js\";\nexport { Observable, isReference, makeReference } from \"../utilities/index.js\";\nimport { setVerbosity } from \"ts-invariant\";\nexport { setVerbosity as setLogVerbosity };\nsetVerbosity(DEV ? \"log\" : \"silent\");\nexport { gql, resetCaches, disableFragmentWarnings, enableExperimentalFragmentVariables, disableExperimentalFragmentVariables } from 'graphql-tag';\n","import * as i0 from '@angular/core';\nimport { InjectionToken, Injectable, Optional, Inject, NgModule } from '@angular/core';\nimport { Observable, queueScheduler, observable, from } from 'rxjs';\nimport { NetworkStatus, ApolloClient, gql as gql$1 } from '@apollo/client/core';\nimport { map, startWith, observeOn } from 'rxjs/operators';\nfunction fromPromise(promiseFn) {\n return new Observable(subscriber => {\n promiseFn().then(result => {\n if (!subscriber.closed) {\n subscriber.next(result);\n subscriber.complete();\n }\n }, error => {\n if (!subscriber.closed) {\n subscriber.error(error);\n }\n });\n return () => subscriber.unsubscribe();\n });\n}\nfunction useMutationLoading(source, enabled) {\n if (!enabled) {\n return source.pipe(map(result => ({\n ...result,\n loading: false\n })));\n }\n return source.pipe(startWith({\n loading: true\n }), map(result => ({\n ...result,\n loading: !!result.loading\n })));\n}\nclass ZoneScheduler {\n zone;\n constructor(zone) {\n this.zone = zone;\n }\n now = Date.now ? Date.now : () => +new Date();\n schedule(work, delay = 0, state) {\n return this.zone.run(() => queueScheduler.schedule(work, delay, state));\n }\n}\nfunction fixObservable(obs) {\n obs[observable] = () => obs;\n return obs;\n}\nfunction wrapWithZone(obs, ngZone) {\n return obs.pipe(observeOn(new ZoneScheduler(ngZone)));\n}\nfunction pickFlag(flags, flag, defaultValue) {\n return flags && typeof flags[flag] !== 'undefined' ? flags[flag] : defaultValue;\n}\nfunction useInitialLoading(obsQuery) {\n return function useInitialLoadingOperator(source) {\n return new Observable(function useInitialLoadingSubscription(subscriber) {\n const currentResult = obsQuery.getCurrentResult();\n const {\n loading,\n errors,\n error,\n partial,\n data\n } = currentResult;\n const {\n partialRefetch,\n fetchPolicy\n } = obsQuery.options;\n const hasError = errors || error;\n if (partialRefetch && partial && (!data || Object.keys(data).length === 0) && fetchPolicy !== 'cache-only' && !loading && !hasError) {\n subscriber.next({\n ...currentResult,\n loading: true,\n networkStatus: NetworkStatus.loading\n });\n }\n return source.subscribe(subscriber);\n });\n };\n}\nclass QueryRef {\n obsQuery;\n valueChanges;\n queryId;\n constructor(obsQuery, ngZone, options) {\n this.obsQuery = obsQuery;\n const wrapped = wrapWithZone(from(fixObservable(this.obsQuery)), ngZone);\n this.valueChanges = options.useInitialLoading ? wrapped.pipe(useInitialLoading(this.obsQuery)) : wrapped;\n this.queryId = this.obsQuery.queryId;\n }\n // ObservableQuery's methods\n get options() {\n return this.obsQuery.options;\n }\n get variables() {\n return this.obsQuery.variables;\n }\n result() {\n return this.obsQuery.result();\n }\n getCurrentResult() {\n return this.obsQuery.getCurrentResult();\n }\n getLastResult() {\n return this.obsQuery.getLastResult();\n }\n getLastError() {\n return this.obsQuery.getLastError();\n }\n resetLastResults() {\n return this.obsQuery.resetLastResults();\n }\n refetch(variables) {\n return this.obsQuery.refetch(variables);\n }\n fetchMore(fetchMoreOptions) {\n return this.obsQuery.fetchMore(fetchMoreOptions);\n }\n subscribeToMore(options) {\n // XXX: there's a bug in apollo-client typings\n // it should not inherit types from ObservableQuery\n return this.obsQuery.subscribeToMore(options);\n }\n updateQuery(mapFn) {\n return this.obsQuery.updateQuery(mapFn);\n }\n stopPolling() {\n return this.obsQuery.stopPolling();\n }\n startPolling(pollInterval) {\n return this.obsQuery.startPolling(pollInterval);\n }\n setOptions(opts) {\n return this.obsQuery.setOptions(opts);\n }\n setVariables(variables) {\n return this.obsQuery.setVariables(variables);\n }\n}\nconst APOLLO_FLAGS = new InjectionToken('APOLLO_FLAGS');\nconst APOLLO_OPTIONS = new InjectionToken('APOLLO_OPTIONS');\nconst APOLLO_NAMED_OPTIONS = new InjectionToken('APOLLO_NAMED_OPTIONS');\nclass ApolloBase {\n ngZone;\n flags;\n _client;\n useInitialLoading;\n useMutationLoading;\n constructor(ngZone, flags, _client) {\n this.ngZone = ngZone;\n this.flags = flags;\n this._client = _client;\n this.useInitialLoading = pickFlag(flags, 'useInitialLoading', false);\n this.useMutationLoading = pickFlag(flags, 'useMutationLoading', false);\n }\n watchQuery(options) {\n return new QueryRef(this.ensureClient().watchQuery({\n ...options\n }), this.ngZone, {\n useInitialLoading: this.useInitialLoading,\n ...options\n });\n }\n query(options) {\n return fromPromise(() => this.ensureClient().query({\n ...options\n }));\n }\n mutate(options) {\n return useMutationLoading(fromPromise(() => this.ensureClient().mutate({\n ...options\n })), options.useMutationLoading ?? this.useMutationLoading);\n }\n subscribe(options, extra) {\n const obs = from(fixObservable(this.ensureClient().subscribe({\n ...options\n })));\n return extra && extra.useZone !== true ? obs : wrapWithZone(obs, this.ngZone);\n }\n /**\n * Get an instance of ApolloClient\n * @deprecated use `apollo.client` instead\n */\n getClient() {\n return this.client;\n }\n /**\n * Set a new instance of ApolloClient\n * Remember to clean up the store before setting a new client.\n * @deprecated use `apollo.client = client` instead\n *\n * @param client ApolloClient instance\n */\n setClient(client) {\n this.client = client;\n }\n /**\n * Get an instance of ApolloClient\n */\n get client() {\n return this._client;\n }\n /**\n * Set a new instance of ApolloClient\n * Remember to clean up the store before setting a new client.\n *\n * @param client ApolloClient instance\n */\n set client(client) {\n if (this._client) {\n throw new Error('Client has been already defined');\n }\n this._client = client;\n }\n ensureClient() {\n this.checkInstance();\n return this._client;\n }\n checkInstance() {\n if (!this._client) {\n throw new Error('Client has not been defined yet');\n }\n }\n}\nlet Apollo = /*#__PURE__*/(() => {\n class Apollo extends ApolloBase {\n _ngZone;\n map = new Map();\n constructor(_ngZone, apolloOptions, apolloNamedOptions, flags) {\n super(_ngZone, flags);\n this._ngZone = _ngZone;\n if (apolloOptions) {\n this.createDefault(apolloOptions);\n }\n if (apolloNamedOptions && typeof apolloNamedOptions === 'object') {\n for (let name in apolloNamedOptions) {\n if (apolloNamedOptions.hasOwnProperty(name)) {\n const options = apolloNamedOptions[name];\n this.create(options, name);\n }\n }\n }\n }\n /**\n * Create an instance of ApolloClient\n * @param options Options required to create ApolloClient\n * @param name client's name\n */\n create(options, name) {\n if (isDefault(name)) {\n this.createDefault(options);\n } else {\n this.createNamed(name, options);\n }\n }\n /**\n * Use a default ApolloClient\n */\n default() {\n return this;\n }\n /**\n * Use a named ApolloClient\n * @param name client's name\n */\n use(name) {\n if (isDefault(name)) {\n return this.default();\n }\n return this.map.get(name);\n }\n /**\n * Create a default ApolloClient, same as `apollo.create(options)`\n * @param options ApolloClient's options\n */\n createDefault(options) {\n if (this.getClient()) {\n throw new Error('Apollo has been already created.');\n }\n return this.setClient(new ApolloClient(options));\n }\n /**\n * Create a named ApolloClient, same as `apollo.create(options, name)`\n * @param name client's name\n * @param options ApolloClient's options\n */\n createNamed(name, options) {\n if (this.map.has(name)) {\n throw new Error(`Client ${name} has been already created`);\n }\n this.map.set(name, new ApolloBase(this._ngZone, this.flags, new ApolloClient(options)));\n }\n /**\n * Remember to clean up the store before removing a client\n * @param name client's name\n */\n removeClient(name) {\n if (isDefault(name)) {\n this._client = undefined;\n } else {\n this.map.delete(name);\n }\n }\n static ɵfac = function Apollo_Factory(t) {\n return new (t || Apollo)(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(APOLLO_OPTIONS, 8), i0.ɵɵinject(APOLLO_NAMED_OPTIONS, 8), i0.ɵɵinject(APOLLO_FLAGS, 8));\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: Apollo,\n factory: Apollo.ɵfac\n });\n }\n return Apollo;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction isDefault(name) {\n return !name || name === 'default';\n}\nconst PROVIDERS = [Apollo];\nlet ApolloModule = /*#__PURE__*/(() => {\n class ApolloModule {\n static ɵfac = function ApolloModule_Factory(t) {\n return new (t || ApolloModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ApolloModule\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: PROVIDERS\n });\n }\n return ApolloModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet Query = /*#__PURE__*/(() => {\n class Query {\n apollo;\n document;\n client = 'default';\n constructor(apollo) {\n this.apollo = apollo;\n }\n watch(variables, options) {\n return this.apollo.use(this.client).watchQuery({\n ...options,\n variables,\n query: this.document\n });\n }\n fetch(variables, options) {\n return this.apollo.use(this.client).query({\n ...options,\n variables,\n query: this.document\n });\n }\n static ɵfac = function Query_Factory(t) {\n return new (t || Query)(i0.ɵɵinject(Apollo));\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: Query,\n factory: Query.ɵfac\n });\n }\n return Query;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet Mutation = /*#__PURE__*/(() => {\n class Mutation {\n apollo;\n document;\n client = 'default';\n constructor(apollo) {\n this.apollo = apollo;\n }\n mutate(variables, options) {\n return this.apollo.use(this.client).mutate({\n ...options,\n variables,\n mutation: this.document\n });\n }\n static ɵfac = function Mutation_Factory(t) {\n return new (t || Mutation)(i0.ɵɵinject(Apollo));\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: Mutation,\n factory: Mutation.ɵfac\n });\n }\n return Mutation;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet Subscription = /*#__PURE__*/(() => {\n class Subscription {\n apollo;\n document;\n client = 'default';\n constructor(apollo) {\n this.apollo = apollo;\n }\n subscribe(variables, options, extra) {\n return this.apollo.use(this.client).subscribe({\n ...options,\n variables,\n query: this.document\n }, extra);\n }\n static ɵfac = function Subscription_Factory(t) {\n return new (t || Subscription)(i0.ɵɵinject(Apollo));\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: Subscription,\n factory: Subscription.ɵfac\n });\n }\n return Subscription;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction typedGQLTag(literals, ...placeholders) {\n return gql$1(literals, ...placeholders);\n}\nconst gql = typedGQLTag;\nconst graphql = typedGQLTag;\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { APOLLO_FLAGS, APOLLO_NAMED_OPTIONS, APOLLO_OPTIONS, Apollo, ApolloBase, ApolloModule, Mutation, Query, QueryRef, Subscription, gql, graphql };\n","/* eslint-disable */\r\nimport { gql } from '@apollo/client/core';\r\nimport { Injectable } from '@angular/core';\r\nimport * as Apollo from 'apollo-angular';\r\nexport type Maybe = T | null;\r\nexport type InputMaybe = Maybe;\r\nexport type Exact = { [K in keyof T]: T[K] };\r\nexport type MakeOptional = Omit & { [SubKey in K]?: Maybe };\r\nexport type MakeMaybe = Omit & { [SubKey in K]: Maybe };\r\n/** All built-in and custom scalars, mapped to their actual values */\r\nexport type Scalars = {\r\n ID: string;\r\n String: string;\r\n Boolean: boolean;\r\n Int: number;\r\n Float: number;\r\n DateTime: Date | number | string;\r\n JSON: { [key: string]: any };\r\n};\r\n\r\nexport type Abbreviated = {\r\n abbreviation: Scalars['String'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AcceptReceivingFacilityRequest = {\r\n id: Scalars['ID'];\r\n medicalFacilityUnitId: InputMaybe;\r\n note: InputMaybe;\r\n personsInvolved: InputMaybe;\r\n physicianId: InputMaybe;\r\n roomNumber: InputMaybe;\r\n time: Scalars['DateTime'];\r\n};\r\n\r\nexport type AcceptTransportOffer = {\r\n id: Scalars['ID'];\r\n manifestConfirmed: InputMaybe;\r\n};\r\n\r\nexport enum AccessControlAction {\r\n Allow = 'Allow',\r\n Deny = 'Deny',\r\n}\r\n\r\nexport type AccessibleItem = Entity &\r\n Evented & {\r\n __typename: 'AccessibleItem';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n entityId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n person: Person;\r\n personId: Scalars['ID'];\r\n type: EntityType;\r\n userRoles: Maybe>>;\r\n };\r\n\r\nexport type AccessibleItem_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type AccessibleItemCollection = {\r\n __typename: 'AccessibleItemCollection';\r\n items: Array;\r\n meta: AccessibleItemCollectionMetadata;\r\n};\r\n\r\nexport type AccessibleItemCollectionMetadata = CollectionMetadata & {\r\n __typename: 'AccessibleItemCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type AcknowledgeAlert = {\r\n acknowledgedById: InputMaybe;\r\n activeAlertId: Scalars['ID'];\r\n};\r\n\r\nexport type AcknowledgeExternalRequest = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type AcknowledgePassdownLog = {\r\n acknowledgedById: InputMaybe;\r\n passdownLogId: Scalars['ID'];\r\n};\r\n\r\nexport type AcknowledgeWebOrderLog = {\r\n webOrderLogId: Scalars['ID'];\r\n};\r\n\r\nexport type ActivateUnit = {\r\n operationId: Scalars['ID'];\r\n standbyActivationType: InputMaybe;\r\n};\r\n\r\nexport type ActivationRule = Entity &\r\n Evented & {\r\n __typename: 'ActivationRule';\r\n _events: MessageEnvelopeCollection;\r\n address: Maybe
;\r\n ageInMinutes: Maybe;\r\n alerts: Array;\r\n automatedAlertAlgorithmType: Maybe;\r\n base: Maybe;\r\n baseId: Maybe;\r\n communicationCenters: Maybe>>;\r\n companies: Maybe>>;\r\n company: Maybe;\r\n companyId: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n declineReasons: Maybe>>;\r\n id: Scalars['ID'];\r\n isShared: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n location: Maybe;\r\n locationId: Maybe;\r\n medicalFacility: Maybe;\r\n medicalFacilityId: Maybe;\r\n missionRoleTypes: Maybe>>;\r\n name: Maybe;\r\n notificationTemplates: Maybe>>;\r\n offerAlgorithms: Array;\r\n operationTypes: Maybe>>;\r\n outOfServiceReasonId: Maybe;\r\n outOfServiceType: Maybe;\r\n questionnaireSectionQuestions: Maybe>>;\r\n region: Maybe;\r\n regionId: Maybe;\r\n systemTimestampType: Maybe;\r\n timelines: Maybe>>;\r\n timestampTypeId: Maybe;\r\n unit: Maybe;\r\n unitId: Maybe;\r\n vehicle: Maybe;\r\n vehicleId: Maybe;\r\n vehicleTypes: Maybe>>;\r\n waypointTypes: Maybe>>;\r\n };\r\n\r\nexport type ActivationRule_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ActivationRuleCollection = {\r\n __typename: 'ActivationRuleCollection';\r\n items: Array;\r\n meta: ActivationRuleCollectionMetadata;\r\n};\r\n\r\nexport type ActivationRuleCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ActivationRuleCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type ActivationRuleFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type ActivationRuleQueries = {\r\n __typename: 'ActivationRuleQueries';\r\n all: ActivationRuleCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type ActivationRuleQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ActivationRuleQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type ActiveAlert = Entity &\r\n Evented & {\r\n __typename: 'ActiveAlert';\r\n _events: MessageEnvelopeCollection;\r\n acknowledgedBy: Maybe;\r\n acknowledgedById: Maybe;\r\n activationTime: Maybe;\r\n author: Maybe;\r\n authorId: Maybe;\r\n communicationCenter: Maybe;\r\n communicationCenterId: Maybe;\r\n companyId: Scalars['ID'];\r\n content: Scalars['String'];\r\n dateAcknowledged: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n definition: Maybe;\r\n definitionId: Maybe;\r\n entityId: Maybe;\r\n entityType: Maybe;\r\n escalationDurationInSeconds: Maybe;\r\n id: Scalars['ID'];\r\n isActive: Scalars['Boolean'];\r\n isGpsAlert: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n lifecycleStage: AlertLifecycleStage;\r\n lookupHash: Maybe;\r\n matchType: RuleMatchType;\r\n parentEntityId: Maybe;\r\n parentEntityType: Maybe;\r\n referenceEntityId: Maybe;\r\n referenceEntityType: Maybe;\r\n region: Maybe;\r\n regionId: Maybe;\r\n requiresAcknowledgement: Scalars['Boolean'];\r\n snoozeMaxInSeconds: Maybe;\r\n target: Maybe;\r\n targetId: Maybe;\r\n title: Maybe;\r\n urgency: AlertUrgency;\r\n visibilityType: VisibilityType;\r\n };\r\n\r\nexport type ActiveAlert_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ActiveAlertCollection = {\r\n __typename: 'ActiveAlertCollection';\r\n items: Array;\r\n meta: ActiveAlertCollectionMetadata;\r\n};\r\n\r\nexport type ActiveAlertCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ActiveAlertCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum ActiveAlertContextType {\r\n Card = 'Card',\r\n Region = 'Region',\r\n}\r\n\r\nexport type ActiveAlertFilter = {\r\n companyId: InputMaybe;\r\n contextType: InputMaybe;\r\n excludeEntityOnlyVisibilityType: InputMaybe;\r\n personId: InputMaybe;\r\n regionId: InputMaybe;\r\n titleLike: InputMaybe;\r\n unacknowledgedOnly: InputMaybe;\r\n visibilityType: InputMaybe;\r\n};\r\n\r\nexport type ActiveAlertQueries = {\r\n __typename: 'ActiveAlertQueries';\r\n all: ActiveAlertCollection;\r\n};\r\n\r\nexport type ActiveAlertQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ActiveCardUnitOffering = Entity &\r\n Evented & {\r\n __typename: 'ActiveCardUnitOffering';\r\n _events: MessageEnvelopeCollection;\r\n card: Card;\r\n cardId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n unit: Unit;\r\n unitId: Scalars['ID'];\r\n };\r\n\r\nexport type ActiveCardUnitOffering_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ActiveCardUnitOfferingCollection = {\r\n __typename: 'ActiveCardUnitOfferingCollection';\r\n items: Array;\r\n meta: ActiveCardUnitOfferingCollectionMetadata;\r\n};\r\n\r\nexport type ActiveCardUnitOfferingCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ActiveCardUnitOfferingCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type ActiveTimeline = Entity &\r\n Evented & {\r\n __typename: 'ActiveTimeline';\r\n _events: MessageEnvelopeCollection;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n entityId: Scalars['ID'];\r\n entityType: EntityType;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n matchType: RuleMatchType;\r\n timeline: Timeline;\r\n timelineId: Scalars['ID'];\r\n };\r\n\r\nexport type ActiveTimeline_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ActiveTimelineCollection = {\r\n __typename: 'ActiveTimelineCollection';\r\n items: Array;\r\n meta: ActiveTimelineCollectionMetadata;\r\n};\r\n\r\nexport type ActiveTimelineCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ActiveTimelineCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type ActiveTimelineQueries = {\r\n __typename: 'ActiveTimelineQueries';\r\n byCardId: ActiveTimelineCollection;\r\n};\r\n\r\nexport type ActiveTimelineQueriesbyCardIdArgs = {\r\n cardId: Scalars['ID'];\r\n};\r\n\r\nexport type AddAccessibleItem = {\r\n entityId: Scalars['ID'];\r\n personId: Scalars['ID'];\r\n type: EntityType;\r\n userRoles: InputMaybe>>;\r\n};\r\n\r\nexport type AddActivationRule = {\r\n address: InputMaybe;\r\n ageInMinutes: InputMaybe;\r\n automatedAlertAlgorithmType: InputMaybe;\r\n baseId: InputMaybe;\r\n communicationCenterIds: InputMaybe>>;\r\n companyId: InputMaybe;\r\n companyIds: InputMaybe>>;\r\n declineReasonIds: InputMaybe>>;\r\n isShared: InputMaybe;\r\n locationId: InputMaybe;\r\n medicalFacilityId: InputMaybe;\r\n missionRoleTypes: InputMaybe>>;\r\n name: InputMaybe;\r\n operationTypes: InputMaybe>>;\r\n outOfServiceReasonId: InputMaybe;\r\n outOfServiceType: InputMaybe;\r\n regionId: InputMaybe;\r\n systemTimestampType: InputMaybe;\r\n timestampTypeId: InputMaybe;\r\n unitId: InputMaybe;\r\n vehicleId: InputMaybe;\r\n vehicleTypes: InputMaybe>>;\r\n waypointTypes: InputMaybe>>;\r\n};\r\n\r\nexport type AddActiveAlert = {\r\n activationTime: InputMaybe;\r\n authorId: InputMaybe;\r\n communicationCenterId: InputMaybe;\r\n content: Scalars['String'];\r\n definitionId: InputMaybe;\r\n entityId: InputMaybe;\r\n entityType: InputMaybe;\r\n escalationDurationInSeconds: InputMaybe;\r\n isGpsAlert: Scalars['Boolean'];\r\n lifecycleStage: AlertLifecycleStage;\r\n lookupHash: InputMaybe;\r\n matchType: RuleMatchType;\r\n parentEntityId: InputMaybe;\r\n parentEntityType: InputMaybe;\r\n referenceEntityId: InputMaybe;\r\n referenceEntityType: InputMaybe;\r\n regionId: InputMaybe;\r\n requiresAcknowledgement: Scalars['Boolean'];\r\n snoozeMaxInSeconds: InputMaybe;\r\n title: InputMaybe;\r\n urgency: AlertUrgency;\r\n visibilityType: VisibilityType;\r\n};\r\n\r\nexport type AddAgency = {\r\n abbreviation: Scalars['String'];\r\n isCompetitor: Scalars['Boolean'];\r\n isInternallyOwned: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n notes: InputMaybe;\r\n parentCompanyId: InputMaybe;\r\n type: AgencyType;\r\n};\r\n\r\nexport type AddAgencyLocation = {\r\n address: AddressInput;\r\n agencyId: Scalars['ID'];\r\n emailAddress: InputMaybe;\r\n estimatedDepartureTimeInMinutes: InputMaybe;\r\n faxPhoneNumber: InputMaybe;\r\n name: Scalars['String'];\r\n notes: InputMaybe;\r\n primaryPhoneNumber: InputMaybe;\r\n secondaryPhoneNumber: InputMaybe;\r\n smsPhoneNumber: InputMaybe;\r\n vehicleType: InputMaybe;\r\n};\r\n\r\nexport type AddAirport = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n airportCodeType: AirportCodeType;\r\n airportType: Scalars['String'];\r\n code: Scalars['String'];\r\n name: Scalars['String'];\r\n notes: InputMaybe;\r\n preferredFboId: InputMaybe;\r\n sourceSystemId: InputMaybe;\r\n};\r\n\r\nexport type AddAlert = {\r\n activationRuleId: Scalars['ID'];\r\n content: Scalars['String'];\r\n createdById: InputMaybe;\r\n effectiveDate: InputMaybe;\r\n entityType: EntityType;\r\n expirationDate: InputMaybe;\r\n lifecycleStage: AlertLifecycleStage;\r\n paused: InputMaybe;\r\n requiresAcknowledgement: Scalars['Boolean'];\r\n target: InputMaybe;\r\n title: InputMaybe;\r\n urgency: AlertUrgency;\r\n};\r\n\r\nexport type AddApplicationNotification = {\r\n companyId: InputMaybe;\r\n dismissable: Scalars['Boolean'];\r\n displayOnBanner: Scalars['Boolean'];\r\n effectiveDate: InputMaybe;\r\n expirationDate: InputMaybe;\r\n notification: Scalars['String'];\r\n regionId: InputMaybe;\r\n title: InputMaybe;\r\n urgency: ApplicationNotificationUrgency;\r\n};\r\n\r\nexport type AddAssignmentDelayedReason = {\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddBase = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n aviationCompanyId: InputMaybe;\r\n businessModel: BusinessModel;\r\n companyId: Scalars['ID'];\r\n crewPhoneNumber1: InputMaybe;\r\n crewPhoneNumber2: InputMaybe;\r\n dateLastUpdatedFromGMRWorkday: InputMaybe;\r\n dateOfMaturity: InputMaybe;\r\n dispatchBaseId: InputMaybe;\r\n enableFlightLogDutyLog: InputMaybe;\r\n estimatedLiftoffTime: InputMaybe;\r\n gmrWorkdayLocationId: InputMaybe;\r\n hoursOfOperation: HoursOfOperationInput;\r\n licenseNumber: InputMaybe;\r\n name: Scalars['String'];\r\n operationsStarted: InputMaybe;\r\n operationsTerminated: InputMaybe;\r\n pilotPhoneNumber: InputMaybe;\r\n plannedOperationsStart: InputMaybe;\r\n primaryPhoneNumber: InputMaybe;\r\n timezoneCd: InputMaybe;\r\n};\r\n\r\nexport type AddBaseControlZone = {\r\n baseId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n controlZoneId: Scalars['ID'];\r\n};\r\n\r\nexport type AddBaseMedicalControlContact = {\r\n baseId: Scalars['ID'];\r\n id: InputMaybe;\r\n licensedStates: InputMaybe>>;\r\n personId: Scalars['ID'];\r\n rank: Scalars['Int'];\r\n specialty: InputMaybe;\r\n};\r\n\r\nexport type AddCancellation = {\r\n cancellationReasonId: Scalars['ID'];\r\n cancellationReasonNotes: InputMaybe;\r\n cancellationSecondaryReasonId: InputMaybe;\r\n crewNotified: InputMaybe;\r\n notificationAcknowledged: InputMaybe;\r\n offerTime: InputMaybe;\r\n requestId: Scalars['ID'];\r\n responseReceived: InputMaybe;\r\n transportCheckInitiated: InputMaybe;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type AddCancellationCategory = {\r\n defaultCancellationReasonId: InputMaybe;\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddCancellationReason = {\r\n abbreviation: Scalars['String'];\r\n canBeUnitCancellationReason: InputMaybe;\r\n cancellationCategoryId: InputMaybe;\r\n isTransferCenterReason: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddCancellationSecondaryReason = {\r\n cancellationReasonId: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddCapability = {\r\n abbreviation: Scalars['String'];\r\n description: Scalars['String'];\r\n entityType: EntityType;\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddCard = {\r\n apiWebhookSubscriptionId: InputMaybe;\r\n cardNumber: Scalars['String'];\r\n closeComment: InputMaybe;\r\n dateCardClosed: InputMaybe;\r\n diversionType: InputMaybe;\r\n gmrCADNumber: InputMaybe;\r\n gmrUtilizationStatus: InputMaybe;\r\n isBillable: InputMaybe;\r\n isLocked: InputMaybe;\r\n lastOperationId: InputMaybe;\r\n linkedCardId: InputMaybe;\r\n notBillableComment: InputMaybe;\r\n notBillableType: InputMaybe;\r\n operationId: InputMaybe;\r\n plannedCompletionTime: InputMaybe;\r\n postTransportDebriefCompleted: InputMaybe;\r\n reOpenComment: InputMaybe;\r\n reOpenReasonId: InputMaybe;\r\n requestId: InputMaybe;\r\n status: CardStatus;\r\n transferredFromCardId: InputMaybe;\r\n transferredToCardId: InputMaybe;\r\n};\r\n\r\nexport type AddCardLink = {\r\n fromCardId: Scalars['ID'];\r\n rendezvousRequestId: InputMaybe;\r\n toCardId: Scalars['ID'];\r\n toCardNumber: Scalars['String'];\r\n type: CardLinkType;\r\n};\r\n\r\nexport type AddCardNote = {\r\n cardId: Scalars['ID'];\r\n content: Scalars['String'];\r\n isInternal: Scalars['Boolean'];\r\n};\r\n\r\nexport type AddCardNoteArchive = {\r\n cardId: Scalars['ID'];\r\n content: Scalars['String'];\r\n isInternal: Scalars['Boolean'];\r\n isSystem: Scalars['Boolean'];\r\n noteCategory: InputMaybe;\r\n noteMetadataJson: InputMaybe;\r\n noteTime: Scalars['DateTime'];\r\n};\r\n\r\nexport type AddCardReOpenReason = {\r\n affectsTrip: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddCommunicationCenter = {\r\n companyId: Scalars['ID'];\r\n emailAddress: InputMaybe;\r\n includeCompetitors: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n playAlertForManualPositionReports: Scalars['Boolean'];\r\n primaryPhoneNumber: InputMaybe;\r\n showReferToGmrWarning: InputMaybe;\r\n states: InputMaybe>>;\r\n timezoneCd: InputMaybe;\r\n};\r\n\r\nexport type AddCommunicationCenterTransportOfferOption = {\r\n communicationCenterId: InputMaybe;\r\n includeAbortedUnit: Scalars['Boolean'];\r\n includeCompetitors: InputMaybe;\r\n minimumFlightRule: InputMaybe;\r\n requestedVehicleType: InputMaybe;\r\n requiredCapabilities: Array;\r\n transportOfferAlgorithm: InputMaybe;\r\n};\r\n\r\nexport type AddCompany = {\r\n abbreviation: Scalars['String'];\r\n callNumberPrefix: InputMaybe;\r\n companyCode: Scalars['String'];\r\n crewPatientInfoPageNotificationTemplateId: InputMaybe;\r\n enableNotificationGroupTypes: Scalars['Boolean'];\r\n flightFollowingFields: InputMaybe>>;\r\n gLCode: InputMaybe;\r\n gpsFeedResetsPositionReportTime: Scalars['Boolean'];\r\n hasPrivateUnits: Scalars['Boolean'];\r\n imageUri: InputMaybe;\r\n includeCompetitors: Scalars['Boolean'];\r\n isOemCompany: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n requireSkipReasonsForNonCompanyTransportOffers: InputMaybe;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: Scalars['Boolean'];\r\n timezoneCd: InputMaybe;\r\n transportCheckTimerDurationInMinutes: InputMaybe;\r\n unitRemainsInServiceWithNoVehicle: Scalars['Boolean'];\r\n};\r\n\r\nexport type AddCompleteFlightInstance = {\r\n apiKey: Scalars['String'];\r\n completeFlightInstanceName: Scalars['String'];\r\n isPrimary: Scalars['Boolean'];\r\n url: Scalars['String'];\r\n username: Scalars['String'];\r\n};\r\n\r\nexport type AddConfigurationSetting = {\r\n assetReassignedDeclineReasonId: InputMaybe;\r\n bugRequestEmail: InputMaybe;\r\n companyId: InputMaybe;\r\n crewGoingByGroundOutOfServiceReasonId: InputMaybe;\r\n defaultUnitCommittedDeclineReasonId: InputMaybe;\r\n defaultUnitOutOfServiceDeclineReasonId: InputMaybe;\r\n externallyCancelledCancellationReasonId: InputMaybe;\r\n featureRequestEmail: InputMaybe;\r\n pilotReportGracePeriodInMinutes: InputMaybe;\r\n requestReferredExternallyCancellationReasonId: InputMaybe;\r\n requestReferredInternallyCancellationReasonId: InputMaybe;\r\n sameDestinationWarningThresholdInMinutes: InputMaybe;\r\n};\r\n\r\nexport type AddControlZone = {\r\n companyId: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddDecline = {\r\n crewNotified: InputMaybe;\r\n declineReasonId: Scalars['ID'];\r\n declineSecondaryReasonId: InputMaybe;\r\n notes: InputMaybe;\r\n notificationAcknowledged: InputMaybe;\r\n offerTime: InputMaybe;\r\n requestId: Scalars['ID'];\r\n responseReceived: InputMaybe;\r\n transportCheckInitiated: InputMaybe;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type AddDeclineCategory = {\r\n defaultDeclineReasonId: InputMaybe;\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddDeclineReason = {\r\n abbreviation: Scalars['String'];\r\n canBeAbortReason: Scalars['Boolean'];\r\n canBeBulkSkipReason: Scalars['Boolean'];\r\n canBeOneCallSkipReason: Scalars['Boolean'];\r\n canBeSkipReason: Scalars['Boolean'];\r\n controllable: Scalars['Boolean'];\r\n declineCategoryId: Scalars['ID'];\r\n isUnitAvailableAfterAbort: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddDeclineSecondaryReason = {\r\n declineReasonId: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddDepartment = {\r\n code: Scalars['String'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddDiversionReason = {\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddEmsReport = {\r\n cardId: Scalars['ID'];\r\n note: InputMaybe;\r\n personsInvolved: InputMaybe;\r\n rendezvousRequestId: Scalars['ID'];\r\n time: Scalars['DateTime'];\r\n transportUnitNumber: InputMaybe;\r\n};\r\n\r\nexport type AddEntityCapability = {\r\n capabilityId: Scalars['ID'];\r\n entityId: Scalars['ID'];\r\n entityType: EntityType;\r\n};\r\n\r\nexport type AddEscortRequest = {\r\n escortName: Scalars['String'];\r\n escortWeightInKg: Scalars['Float'];\r\n relationship: PatientRelationshipType;\r\n requestApprovalTime: Scalars['DateTime'];\r\n requestId: Scalars['ID'];\r\n};\r\n\r\nexport type AddExistingSpecialtyTeamMember = {\r\n personId: Scalars['ID'];\r\n specialtyTeamId: Scalars['ID'];\r\n weightInKg: Scalars['Float'];\r\n};\r\n\r\nexport type AddExternalAction = {\r\n actionBodyJson: Scalars['String'];\r\n actionTypeId: Scalars['ID'];\r\n completedById: InputMaybe;\r\n dateCompleted: InputMaybe;\r\n entityId: Scalars['ID'];\r\n entityType: EntityType;\r\n notes: InputMaybe;\r\n status: ExternalActionStatus;\r\n};\r\n\r\nexport type AddExternalActionType = {\r\n actionTypeDescription: Scalars['String'];\r\n actionTypeName: Scalars['String'];\r\n priority: Scalars['Int'];\r\n};\r\n\r\nexport type AddExternalReference = {\r\n entityId: Scalars['ID'];\r\n entityType: EntityType;\r\n externalKey: Scalars['String'];\r\n externalSystem: ExternalSystem;\r\n};\r\n\r\nexport type AddFacilityNonAcceptanceReason = {\r\n facilityNonAcceptanceReasonType: NonAcceptanceType;\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddFbo = {\r\n address: AddressInput;\r\n airportId: Scalars['ID'];\r\n fboType: FboType;\r\n fuelBrand: InputMaybe;\r\n name: Scalars['String'];\r\n sourceSystemId: InputMaybe;\r\n};\r\n\r\nexport type AddFirewallRule = {\r\n action: AccessControlAction;\r\n companyId: InputMaybe;\r\n enabled: Scalars['Boolean'];\r\n ipRange: Scalars['String'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddFlightFollowingReport = {\r\n centerOfGravity: InputMaybe;\r\n confirmedFboId: InputMaybe;\r\n cruisingAltitude: InputMaybe;\r\n departureTime: InputMaybe;\r\n destination: InputMaybe;\r\n estimatedTimeEnrouteMinutes: InputMaybe;\r\n flightRule: InputMaybe;\r\n flightType: InputMaybe;\r\n fuel: InputMaybe;\r\n highestFeatureEnroute: InputMaybe;\r\n medicalCrewRA: InputMaybe;\r\n placeUnitEnRoute: InputMaybe;\r\n riskAnalysis: InputMaybe;\r\n soulsOnBoard: InputMaybe;\r\n summary: InputMaybe;\r\n takeOffWeight: InputMaybe;\r\n trackingViaGps: InputMaybe;\r\n tripId: Scalars['ID'];\r\n tripLegId: InputMaybe;\r\n};\r\n\r\nexport type AddFuelTank = {\r\n address: AddressInput;\r\n baseId: InputMaybe;\r\n code: Scalars['String'];\r\n companyId: Scalars['ID'];\r\n locationName: InputMaybe;\r\n name: Scalars['String'];\r\n operationsEnded: InputMaybe;\r\n operationsStarted: InputMaybe;\r\n sourceSystemId: InputMaybe;\r\n};\r\n\r\nexport type AddLocation = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n closedDate: InputMaybe;\r\n duplicateOfId: InputMaybe;\r\n isLandingZoneOutOfService: InputMaybe;\r\n isRotorWingLz: InputMaybe;\r\n landingZoneOutOfServiceExpirationDate: InputMaybe;\r\n landingZoneOutOfServiceNotes: InputMaybe;\r\n landingZoneOutOfServiceReasonId: InputMaybe;\r\n locationType: LocationType;\r\n name: Scalars['String'];\r\n notes: InputMaybe;\r\n sourceSystemId: InputMaybe;\r\n timezoneCd: InputMaybe;\r\n};\r\n\r\nexport type AddLocationHazard = {\r\n effectiveDate: InputMaybe;\r\n expirationDate: InputMaybe;\r\n hazard: Scalars['String'];\r\n locationId: Scalars['ID'];\r\n};\r\n\r\nexport type AddManifestEntry = {\r\n confirmedAt: InputMaybe;\r\n confirmedById: InputMaybe;\r\n passengerId: Scalars['ID'];\r\n tripLegId: Scalars['ID'];\r\n};\r\n\r\nexport type AddMedicalControlContactLogEntry = {\r\n cardId: Scalars['ID'];\r\n isSuccessful: Scalars['Boolean'];\r\n notes: InputMaybe;\r\n personId: Scalars['ID'];\r\n time: Scalars['DateTime'];\r\n};\r\n\r\nexport type AddMedicalFacility = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n closedDate: InputMaybe;\r\n defaultFixedWingLandingZoneId: InputMaybe;\r\n defaultLandingZoneId: InputMaybe;\r\n firmType: InputMaybe;\r\n hospitalSpecialization: InputMaybe;\r\n hospitalType: InputMaybe;\r\n masterDataSetId: InputMaybe;\r\n name: Scalars['String'];\r\n nemsisCode: InputMaybe;\r\n notes: InputMaybe;\r\n npi: Scalars['String'];\r\n providerNumber: InputMaybe;\r\n sourceSystemId: InputMaybe;\r\n stateFacilityName: InputMaybe;\r\n stateSourceSystemId: InputMaybe;\r\n status: InputMaybe;\r\n website: InputMaybe;\r\n};\r\n\r\nexport type AddMedicalFacilityContact = {\r\n emailAddress: InputMaybe;\r\n faxPhoneNumber: InputMaybe;\r\n medicalFacilityId: Scalars['ID'];\r\n name: Scalars['String'];\r\n notes: InputMaybe;\r\n primaryPhoneNumber: InputMaybe;\r\n secondaryPhoneNumber: InputMaybe;\r\n smsPhoneNumber: InputMaybe;\r\n};\r\n\r\nexport type AddMedicalFacilityPhysician = {\r\n medicalFacilityId: Scalars['ID'];\r\n physicianId: Scalars['ID'];\r\n};\r\n\r\nexport type AddMedicalFacilityUnit = {\r\n medicalFacilityId: Scalars['ID'];\r\n name: Scalars['String'];\r\n phoneNumber: InputMaybe;\r\n};\r\n\r\nexport type AddMessageStatusUpdate = {\r\n error: InputMaybe;\r\n metadataJson: InputMaybe;\r\n status: MessageStatus;\r\n trackedMessageId: Scalars['ID'];\r\n vendorMessage: InputMaybe;\r\n};\r\n\r\nexport type AddNextDueType = {\r\n dataType: Scalars['String'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddNonReferralReason = {\r\n associatedCancellationReasonId: InputMaybe;\r\n associatedCancellationSecondaryReasonId: InputMaybe;\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddNotification = {\r\n body: Scalars['String'];\r\n cardId: InputMaybe;\r\n entityId: InputMaybe;\r\n entityType: InputMaybe;\r\n isDraft: InputMaybe;\r\n recipients: Array;\r\n sourceTemplateId: InputMaybe;\r\n subject: InputMaybe;\r\n};\r\n\r\nexport type AddNotificationGroup = {\r\n companyId: Scalars['ID'];\r\n name: Scalars['String'];\r\n regionId: InputMaybe;\r\n type: InputMaybe;\r\n types: InputMaybe>>;\r\n unitId: InputMaybe;\r\n};\r\n\r\nexport type AddNotificationGroupMember = {\r\n name: Scalars['String'];\r\n notificationAddress: InputMaybe;\r\n notificationGroupId: Scalars['ID'];\r\n userId: InputMaybe;\r\n};\r\n\r\nexport type AddNotificationRecipient = {\r\n messageId: InputMaybe;\r\n messageStatus: InputMaybe;\r\n name: InputMaybe;\r\n notificationAddress: InputMaybe;\r\n notificationId: Scalars['ID'];\r\n userId: InputMaybe;\r\n};\r\n\r\nexport type AddNotificationRecipients = {\r\n notificationId: Scalars['ID'];\r\n recipients: Array;\r\n};\r\n\r\nexport type AddNotificationSubscription = {\r\n name: Scalars['String'];\r\n notificationGroupId: Scalars['ID'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type AddNotificationTemplate = {\r\n activationRuleId: InputMaybe;\r\n bodyTemplate: Scalars['String'];\r\n canBeManualTrigger: Scalars['Boolean'];\r\n companyId: InputMaybe;\r\n contextType: EntityType;\r\n groupTypes: InputMaybe>>;\r\n name: Scalars['String'];\r\n notificationType: InputMaybe;\r\n recipientTypes: InputMaybe>>;\r\n requiresApproval: InputMaybe;\r\n subjectTemplate: InputMaybe;\r\n triggerType: InputMaybe;\r\n triggerValue: InputMaybe;\r\n viewModelType: InputMaybe;\r\n};\r\n\r\nexport type AddOemActivity = {\r\n activityType: OemActivityType;\r\n authorId: InputMaybe;\r\n content: InputMaybe;\r\n currentStatus: InputMaybe;\r\n oemPlanChangeRequestId: InputMaybe;\r\n oemPlanId: Scalars['ID'];\r\n priorStatus: InputMaybe;\r\n time: InputMaybe;\r\n};\r\n\r\nexport type AddOemAsset = {\r\n assetDispatchCompanyId: InputMaybe;\r\n assetId: Scalars['ID'];\r\n assetType: OemAssetType;\r\n oemPlanId: Scalars['ID'];\r\n oemUnitId: InputMaybe;\r\n originalUnitId: InputMaybe;\r\n requestedBaseId: InputMaybe;\r\n requestedPlacardNumber: InputMaybe;\r\n requestedUnitAbbreviation: InputMaybe;\r\n requestedUnitName: InputMaybe;\r\n status: OemAssetStatus;\r\n};\r\n\r\nexport type AddOemPlan = {\r\n companyId: Scalars['ID'];\r\n defaultBaseId: Scalars['ID'];\r\n description: InputMaybe;\r\n name: Scalars['String'];\r\n oemCompanyId: Scalars['ID'];\r\n outOfServiceReasonId: Scalars['ID'];\r\n planStatus: OemPlanStatus;\r\n planYear: Scalars['Int'];\r\n};\r\n\r\nexport type AddOemPlanChangeRequest = {\r\n dateCancelled: InputMaybe;\r\n dateCompleted: InputMaybe;\r\n dateRequested: InputMaybe;\r\n notes: InputMaybe;\r\n oemAssetId: Scalars['ID'];\r\n oemPlanId: Scalars['ID'];\r\n originalAssetStatus: OemAssetStatus;\r\n requestedAssetStatus: OemAssetStatus;\r\n requestedById: InputMaybe;\r\n status: OemPlanChangeRequestStatus;\r\n};\r\n\r\nexport type AddOfferAlgorithm = {\r\n activationRuleId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n companyIds: InputMaybe>>;\r\n distanceCalculation: DistanceCalculation;\r\n includeCompetitors: Scalars['Boolean'];\r\n isEnabled: Scalars['Boolean'];\r\n minimumFlightRule: InputMaybe;\r\n name: Scalars['String'];\r\n oneCallAgreement: Scalars['Boolean'];\r\n preferredUnits: Array;\r\n rank: Scalars['Int'];\r\n transportOfferAlgorithm: TransportOfferAlgorithm;\r\n};\r\n\r\nexport type AddOperation = {\r\n callbackNumber: InputMaybe;\r\n caller: InputMaybe;\r\n dateOperationEnded: InputMaybe;\r\n dateOperationStarted: Scalars['DateTime'];\r\n riskAnalysisAcknowledged: Scalars['Boolean'];\r\n riskAnalysisNumber: InputMaybe;\r\n standbyActivationType: InputMaybe;\r\n status: OperationStatus;\r\n type: OperationType;\r\n unitId: InputMaybe;\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type AddOutOfComplianceCrewMember = {\r\n comment: InputMaybe;\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type AddOutOfServiceEvent = {\r\n createdById: InputMaybe;\r\n endTime: InputMaybe;\r\n estimatedEndTime: Scalars['DateTime'];\r\n notes: InputMaybe;\r\n parentOutOfServiceEventId: InputMaybe;\r\n reasonId: Scalars['ID'];\r\n scheduledStartTime: InputMaybe;\r\n secondaryReasonComment: InputMaybe;\r\n secondaryReasonId: InputMaybe;\r\n startTime: InputMaybe;\r\n type: OutOfServiceType;\r\n unitId: InputMaybe;\r\n vehicleId: InputMaybe;\r\n};\r\n\r\nexport type AddOutOfServiceEventNote = {\r\n content: Scalars['String'];\r\n outOfServiceEventId: Scalars['ID'];\r\n};\r\n\r\nexport type AddOutOfServiceReason = {\r\n controllable: Scalars['Boolean'];\r\n description: InputMaybe;\r\n isVehicleReason: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddOutOfServiceSecondaryReason = {\r\n name: Scalars['String'];\r\n outOfServiceReasonId: Scalars['ID'];\r\n};\r\n\r\nexport type AddPassdownLog = {\r\n acknowledgedById: InputMaybe;\r\n authorId: InputMaybe;\r\n body: Scalars['String'];\r\n dateAcknowledged: InputMaybe;\r\n logDate: Scalars['DateTime'];\r\n name: Scalars['String'];\r\n regionId: Scalars['ID'];\r\n requiresAcknowledgement: Scalars['Boolean'];\r\n};\r\n\r\nexport type AddPerson = {\r\n activateOktaAccount: Scalars['Boolean'];\r\n activeDirectoryId: InputMaybe;\r\n allBasesAccessible: InputMaybe;\r\n allCommunicationCentersAccessible: InputMaybe;\r\n allCompaniesAccessible: InputMaybe;\r\n allTrmProgramsAccessible: InputMaybe;\r\n applyToActiveDirectory: InputMaybe;\r\n aviationCompanyId: InputMaybe;\r\n baseId: InputMaybe;\r\n companyId: Scalars['ID'];\r\n dateLastUpdatedFromGMRWorkday: InputMaybe;\r\n departmentId: InputMaybe;\r\n dispatchCompanyId: InputMaybe;\r\n email: Scalars['String'];\r\n employeeId: InputMaybe;\r\n employeeType: EmployeeType;\r\n faaCompanyId: InputMaybe;\r\n firstName: Scalars['String'];\r\n grantTcsAccess: Scalars['Boolean'];\r\n hireDate: InputMaybe;\r\n isAviationSupervisor: Scalars['Boolean'];\r\n lastName: Scalars['String'];\r\n locationId: InputMaybe;\r\n notificationAddress: InputMaybe;\r\n primaryCommunicationCenterId: InputMaybe;\r\n programId: InputMaybe;\r\n reportsToPersonId: InputMaybe;\r\n terminationDate: InputMaybe;\r\n timeType: TimeType;\r\n title: InputMaybe;\r\n};\r\n\r\nexport type AddPhysician = {\r\n firstName: Scalars['String'];\r\n lastName: Scalars['String'];\r\n};\r\n\r\nexport type AddPositionReport = {\r\n altitude: InputMaybe;\r\n coordinates: InputMaybe;\r\n dateConfirmed: InputMaybe;\r\n estimatedMinutesEnRoute: InputMaybe;\r\n fuelRemaining: InputMaybe;\r\n heading: InputMaybe;\r\n positionTime: Scalars['DateTime'];\r\n source: PositionReportSource;\r\n speedInKnots: InputMaybe;\r\n timezoneCd: InputMaybe;\r\n tripId: Scalars['ID'];\r\n};\r\n\r\nexport type AddPositionReportAlert = {\r\n hasReceivedQualifyingReport: Scalars['Boolean'];\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type AddPreApprovedTrmUser = {\r\n additionalProgramIds: InputMaybe>>;\r\n agencyIds: InputMaybe>>;\r\n companyId: Scalars['ID'];\r\n emailAddress: Scalars['String'];\r\n firstName: Scalars['String'];\r\n lastName: Scalars['String'];\r\n medicalFacilityIds: InputMaybe>>;\r\n personId: InputMaybe;\r\n phoneNumber: Scalars['String'];\r\n preferredProgramId: Scalars['ID'];\r\n};\r\n\r\nexport type AddProgram = {\r\n abbreviation: Scalars['String'];\r\n adminId: InputMaybe;\r\n code: Scalars['String'];\r\n companyId: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddProgramBase = {\r\n baseId: Scalars['ID'];\r\n endTime: InputMaybe;\r\n programId: Scalars['ID'];\r\n startTime: InputMaybe;\r\n};\r\n\r\nexport type AddQuestion = {\r\n choices: InputMaybe>>;\r\n dataType: InputMaybe;\r\n name: Scalars['String'];\r\n question: Scalars['String'];\r\n questionType: QuestionType;\r\n};\r\n\r\nexport type AddQuestionnaire = {\r\n communicationCenterId: InputMaybe;\r\n companyId: Scalars['ID'];\r\n name: Scalars['String'];\r\n sections: InputMaybe>>;\r\n type: QuestionnaireType;\r\n};\r\n\r\nexport type AddQuestionnaireQuestionResponse = {\r\n explanation: InputMaybe;\r\n matchType: RuleMatchType;\r\n questionnaireResponseId: Scalars['ID'];\r\n questionnaireSectionQuestionId: Scalars['ID'];\r\n responseValue: InputMaybe;\r\n reviewRequired: Scalars['Boolean'];\r\n};\r\n\r\nexport type AddQuestionnaireQuestionResponseNote = {\r\n authorId: Scalars['ID'];\r\n dateAuthored: Scalars['DateTime'];\r\n note: Scalars['String'];\r\n questionnaireQuestionResponseId: Scalars['ID'];\r\n};\r\n\r\nexport type AddQuestionnaireResponse = {\r\n cardId: Scalars['ID'];\r\n communicationsReviewById: InputMaybe;\r\n companyId: Scalars['ID'];\r\n completedById: InputMaybe;\r\n currentReviewLevel: InputMaybe;\r\n dateCommunicationsReviewed: InputMaybe;\r\n dateCompleted: InputMaybe;\r\n dateManagerReviewed: InputMaybe;\r\n dateSupervisorReviewed: InputMaybe;\r\n managerReviewById: InputMaybe;\r\n questionnaireId: Scalars['ID'];\r\n status: QuestionnaireResponseStatus;\r\n supervisorReviewById: InputMaybe;\r\n};\r\n\r\nexport type AddReceivingFacilityRequestDeclineHistory = {\r\n nonAcceptanceReasonId: Scalars['ID'];\r\n nonAcceptanceType: NonAcceptanceType;\r\n note: InputMaybe;\r\n personsInvolved: InputMaybe;\r\n referredToFacilityId: InputMaybe;\r\n requestLocationId: Scalars['ID'];\r\n time: Scalars['DateTime'];\r\n};\r\n\r\nexport type AddRegion = {\r\n abbreviation: Scalars['String'];\r\n communicationCenterId: Scalars['ID'];\r\n dispatchNumber: InputMaybe;\r\n emSystemDivisionName: InputMaybe;\r\n fixedWingPreferredThresholdInNauticalMiles: InputMaybe;\r\n name: Scalars['String'];\r\n regionGroupId: Scalars['ID'];\r\n timezoneCd: InputMaybe;\r\n};\r\n\r\nexport type AddRegionBase = {\r\n baseId: Scalars['ID'];\r\n regionId: Scalars['ID'];\r\n};\r\n\r\nexport type AddRegionGroup = {\r\n abbreviation: Scalars['String'];\r\n companyId: Scalars['ID'];\r\n departmentId: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddRendezvousRequest = {\r\n agencyEta: InputMaybe;\r\n agencyLocationId: InputMaybe;\r\n arrivedDestAt: InputMaybe;\r\n arrivedLzAt: InputMaybe;\r\n cancelledAt: InputMaybe;\r\n cardIdToLink: InputMaybe;\r\n confirmedAt: InputMaybe;\r\n contactInformation: InputMaybe;\r\n departedDestAt: InputMaybe;\r\n departedLzAt: InputMaybe;\r\n notes: InputMaybe;\r\n rendezvousLocationDescription: InputMaybe;\r\n requestLocationId: Scalars['ID'];\r\n transportUnitNumber: InputMaybe;\r\n type: SupplementalLegType;\r\n utilizationStatus: AmrUtilizationStatus;\r\n};\r\n\r\nexport type AddRequestPatient = {\r\n bpDiastolic: InputMaybe;\r\n bpSystolic: InputMaybe;\r\n chiefComplaintNotes: InputMaybe;\r\n dateOfBirth: InputMaybe;\r\n estimatedAgeInHours: InputMaybe;\r\n firstName: InputMaybe;\r\n gcs: InputMaybe;\r\n gender: Gender;\r\n heartRate: InputMaybe;\r\n isIntubated: InputMaybe;\r\n isIsolette: Scalars['Boolean'];\r\n isoletteNotes: InputMaybe;\r\n isoletteType: InputMaybe;\r\n lastName: InputMaybe;\r\n medicalRecordNumber: InputMaybe;\r\n notes: InputMaybe;\r\n numberOfDrips: InputMaybe;\r\n oxygenSaturation: InputMaybe;\r\n patientId: InputMaybe;\r\n requestId: Scalars['ID'];\r\n respiratoryRate: InputMaybe;\r\n rideAlongDateOfBirth: InputMaybe;\r\n rideAlongName: InputMaybe;\r\n rideAlongRequested: InputMaybe;\r\n rideAlongWeightInKg: InputMaybe;\r\n specialtyEquipment: InputMaybe;\r\n temperatureInCelsius: InputMaybe;\r\n transferReasonId: InputMaybe;\r\n transportReasonCategory: InputMaybe;\r\n transportReasonId: InputMaybe;\r\n weightInKg: InputMaybe;\r\n};\r\n\r\nexport type AddRequesterRole = {\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddSpecialtyTeam = {\r\n affiliationId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddSpecialtyTeamMember = {\r\n emailAddress: Scalars['String'];\r\n firstName: Scalars['String'];\r\n lastName: Scalars['String'];\r\n notificationAddress: InputMaybe;\r\n specialtyTeamId: Scalars['ID'];\r\n title: InputMaybe;\r\n weightInKg: Scalars['Float'];\r\n};\r\n\r\nexport type AddSupportRequest = {\r\n companyId: Scalars['ID'];\r\n content: InputMaybe;\r\n isEmailSent: Scalars['Boolean'];\r\n personId: Scalars['ID'];\r\n subject: InputMaybe;\r\n supportRequestStatus: SupportRequestStatus;\r\n supportRequestType: SupportRequestType;\r\n};\r\n\r\nexport type AddTimeline = {\r\n activationRuleId: InputMaybe;\r\n companyId: InputMaybe;\r\n items: InputMaybe>>;\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddTimelineItem = {\r\n required: Scalars['Boolean'];\r\n sequence: Scalars['Int'];\r\n timelineId: Scalars['ID'];\r\n timestampTypeId: Scalars['ID'];\r\n};\r\n\r\nexport type AddTimestamp = {\r\n cardId: Scalars['ID'];\r\n note: InputMaybe;\r\n operationId: InputMaybe;\r\n personsInvolved: InputMaybe;\r\n requestId: InputMaybe;\r\n time: Scalars['DateTime'];\r\n typeId: Scalars['ID'];\r\n};\r\n\r\nexport type AddTimestampType = {\r\n companies: InputMaybe>>;\r\n description: InputMaybe;\r\n name: Scalars['String'];\r\n order: Scalars['Int'];\r\n systemTimestampType: InputMaybe;\r\n};\r\n\r\nexport type AddTimezone = {\r\n abbreviation: Scalars['String'];\r\n code: Scalars['String'];\r\n isDst: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n utcOffset: Scalars['Int'];\r\n};\r\n\r\nexport type AddTransferCenter = {\r\n communicationCenterId: Scalars['ID'];\r\n description: InputMaybe;\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddTransferCenterRegion = {\r\n communicationCenterId: Scalars['ID'];\r\n};\r\n\r\nexport type AddTransferReason = {\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddTransportOffer = {\r\n agencyLocationId: InputMaybe;\r\n baseId: InputMaybe;\r\n bearingInDegrees: InputMaybe;\r\n cancellationReasonId: InputMaybe;\r\n cancellationReasonNotes: InputMaybe;\r\n cancellationSecondaryReasonId: InputMaybe;\r\n crewNotified: InputMaybe;\r\n declineReasonId: InputMaybe;\r\n declineSecondaryReasonId: InputMaybe;\r\n distanceInMiles: InputMaybe;\r\n estimatedDepartureTimeInMinutes: InputMaybe;\r\n estimatedTimeEnRouteInMinutes: InputMaybe;\r\n homeBaseDistanceInMiles: InputMaybe;\r\n isInternalAgency: Scalars['Boolean'];\r\n isOnDelay: Scalars['Boolean'];\r\n isOneCallAgreement: Scalars['Boolean'];\r\n isReferral: InputMaybe;\r\n nonReferralReasonId: InputMaybe;\r\n nonReferralReasonNotes: InputMaybe;\r\n notes: InputMaybe;\r\n notificationAcknowledged: InputMaybe;\r\n offerTime: InputMaybe;\r\n onBaseETAInMinutes: InputMaybe;\r\n outOfServiceEventId: InputMaybe;\r\n patientOriginatesAtUnit: InputMaybe;\r\n preferredRank: InputMaybe;\r\n rank: Scalars['Int'];\r\n requestId: Scalars['ID'];\r\n response: TransportOfferResponse;\r\n responseReceived: InputMaybe;\r\n specialtyTeamETEInMinutes: InputMaybe;\r\n specialtyTeamETLOInMinutes: InputMaybe;\r\n status: TransportOfferStatus;\r\n transportCheckInitiated: InputMaybe;\r\n unitDescription: InputMaybe;\r\n unitId: InputMaybe;\r\n vehicleCoordinates: InputMaybe;\r\n vehicleId: InputMaybe;\r\n vehicleType: InputMaybe;\r\n wasBulkSkip: Scalars['Boolean'];\r\n};\r\n\r\nexport type AddTransportReason = {\r\n name: Scalars['String'];\r\n operationType: InputMaybe;\r\n};\r\n\r\nexport type AddTrip = {\r\n agencyId: InputMaybe;\r\n agencyLocationId: InputMaybe;\r\n calculatedLoadedMiles: InputMaybe;\r\n gpsLoadedMiles: InputMaybe;\r\n operationId: Scalars['ID'];\r\n vehicleId: InputMaybe;\r\n};\r\n\r\nexport type AddTripLegManifestEntry = {\r\n abbreviation: Scalars['String'];\r\n addToFutureLegs: InputMaybe;\r\n crewMemberId: InputMaybe;\r\n name: Scalars['String'];\r\n notificationAddress: InputMaybe;\r\n passengerId: InputMaybe;\r\n personId: InputMaybe;\r\n positionName: InputMaybe;\r\n positionType: InputMaybe;\r\n tripLegId: Scalars['ID'];\r\n type: PassengerType;\r\n weightInKg: InputMaybe;\r\n};\r\n\r\nexport type AddTripPassenger = {\r\n abbreviation: Scalars['String'];\r\n crewMemberId: InputMaybe;\r\n name: Scalars['String'];\r\n notificationAddress: InputMaybe;\r\n personId: InputMaybe;\r\n positionName: InputMaybe;\r\n positionType: InputMaybe;\r\n tripId: Scalars['ID'];\r\n type: PassengerType;\r\n weightInKg: InputMaybe;\r\n};\r\n\r\nexport type AddUnit = {\r\n abbreviation: Scalars['String'];\r\n baseId: Scalars['ID'];\r\n completeFlightInstanceId: InputMaybe;\r\n emSystemResourceId: InputMaybe;\r\n etloInMinutes: InputMaybe;\r\n integrations: Array;\r\n isAdministrative: InputMaybe;\r\n isExternallyManaged: Scalars['Boolean'];\r\n isSpare: Scalars['Boolean'];\r\n lastPilotUpdateById: InputMaybe;\r\n lastPilotUpdateTime: InputMaybe;\r\n maximumFlightRule: FlightRule;\r\n name: Scalars['String'];\r\n oemPlacardNumber: InputMaybe;\r\n onBaseETAInMinutes: InputMaybe;\r\n pilotNotes: InputMaybe;\r\n primaryOutOfServiceEventId: InputMaybe;\r\n regionId: Scalars['ID'];\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n};\r\n\r\nexport type AddUnitActivationRule = {\r\n companyId: Scalars['ID'];\r\n maximumDistanceInMiles: InputMaybe;\r\n missionRoleTypes: Array;\r\n operationTypes: Array;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type AddUnitEMSystemMapping = {\r\n divisionName: InputMaybe;\r\n resourceId: Scalars['String'];\r\n sendGps: Scalars['Boolean'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type AddUnitNote = {\r\n content: Scalars['String'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type AddUnitOutOfServiceEvent = {\r\n alertTimeInMinutes: InputMaybe;\r\n alertWhenEventEnds: Scalars['Boolean'];\r\n endTime: InputMaybe;\r\n estimatedEndTime: Scalars['DateTime'];\r\n notes: InputMaybe;\r\n reasonId: Scalars['ID'];\r\n scheduledStartTime: InputMaybe;\r\n secondaryReasonComment: InputMaybe;\r\n secondaryReasonId: InputMaybe;\r\n startTime: InputMaybe;\r\n type: OutOfServiceType;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type AddUnitPosition = {\r\n firstName: InputMaybe;\r\n isFlightCrew: Scalars['Boolean'];\r\n isNonEmployee: Scalars['Boolean'];\r\n lastName: InputMaybe;\r\n name: Scalars['String'];\r\n notificationAddress: InputMaybe;\r\n teamMemberId: InputMaybe;\r\n type: UnitPositionType;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type AddUnitShift = {\r\n endTimeInMinutes: Scalars['Int'];\r\n name: Scalars['String'];\r\n startTimeInMinutes: Scalars['Int'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type AddVehicle = {\r\n communicationCenterId: InputMaybe;\r\n companyId: Scalars['ID'];\r\n completeFlightId: InputMaybe;\r\n configurationClassId: InputMaybe;\r\n cruiseSpeed: InputMaybe;\r\n dateAcquired: InputMaybe;\r\n dispatchCompanyId: InputMaybe;\r\n faaCompanyId: InputMaybe;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: Scalars['Boolean'];\r\n isPositionTrackingEnabled: Scalars['Boolean'];\r\n isRetired: Scalars['Boolean'];\r\n isUnderLease: Scalars['Boolean'];\r\n makeId: InputMaybe;\r\n modelId: InputMaybe;\r\n phoneNumber: InputMaybe;\r\n regionId: InputMaybe;\r\n registrationNumber: Scalars['String'];\r\n role: VehicleRole;\r\n serialNumber: InputMaybe;\r\n skytracIMEI: InputMaybe;\r\n stateInspectionRequired: Scalars['Boolean'];\r\n type: VehicleType;\r\n year: InputMaybe;\r\n};\r\n\r\nexport type AddVehicleConfigurationClass = {\r\n engineCount: Scalars['Int'];\r\n engineParameters: Array;\r\n legacyName: Scalars['String'];\r\n maintenanceSystemId: Scalars['String'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddVehicleControlZone = {\r\n companyId: Scalars['ID'];\r\n controlZoneId: InputMaybe;\r\n vehicleId: InputMaybe;\r\n};\r\n\r\nexport type AddVehicleDisposition = {\r\n currentAgencyLocationId: InputMaybe;\r\n currentTripId: InputMaybe;\r\n currentTripLegId: InputMaybe;\r\n currentWaypointId: InputMaybe;\r\n latestPositionReportId: InputMaybe;\r\n status: VehicleStatus;\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type AddVehicleMaintenance = {\r\n deferralDueDates: Array;\r\n id: InputMaybe;\r\n isReleasedFromOCF: InputMaybe;\r\n nextDues: Array;\r\n notes: InputMaybe;\r\n vehicleId: InputMaybe;\r\n};\r\n\r\nexport type AddVehicleMake = {\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddVehicleModel = {\r\n cruiseSpeedInMph: InputMaybe;\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type AddVehicleOutOfServiceEvent = {\r\n alertTimeInMinutes: InputMaybe;\r\n alertWhenEventEnds: Scalars['Boolean'];\r\n endTime: InputMaybe;\r\n estimatedEndTime: Scalars['DateTime'];\r\n isAirworthy: Scalars['Boolean'];\r\n notes: InputMaybe;\r\n reasonId: Scalars['ID'];\r\n scheduledStartTime: InputMaybe;\r\n secondaryReasonComment: InputMaybe;\r\n secondaryReasonId: InputMaybe;\r\n startTime: InputMaybe;\r\n type: OutOfServiceType;\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type AddVehicleStateInspection = {\r\n inspectionDate: Scalars['DateTime'];\r\n stateAbbrevation: Scalars['String'];\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type AddWaypoint = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n arrivalTime: InputMaybe;\r\n arrivingType: InputMaybe;\r\n currentEtaId: InputMaybe;\r\n departureTime: InputMaybe;\r\n estimatedDurationId: InputMaybe;\r\n isPatientDropoff: InputMaybe;\r\n isPatientPickup: InputMaybe;\r\n isRotorWingLz: InputMaybe;\r\n locationId: InputMaybe;\r\n name: Scalars['String'];\r\n timezoneCd: InputMaybe;\r\n type: WaypointType;\r\n};\r\n\r\nexport type AddWebOrderLog = {\r\n acknowledgedById: InputMaybe;\r\n changes: InputMaybe>>;\r\n dateAcknowledged: InputMaybe;\r\n entityId: InputMaybe;\r\n entityType: InputMaybe;\r\n errors: InputMaybe;\r\n isSuccess: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n requestJson: Scalars['String'];\r\n};\r\n\r\nexport type Address = {\r\n __typename: 'Address';\r\n city: Maybe;\r\n coordinates: Maybe;\r\n country: Maybe;\r\n county: Maybe;\r\n gpsId: Maybe;\r\n postalCode: Maybe;\r\n region: Maybe;\r\n streetAddress: Maybe;\r\n};\r\n\r\nexport type AddressInput = {\r\n city: InputMaybe;\r\n coordinates: InputMaybe;\r\n country: InputMaybe;\r\n county: InputMaybe;\r\n gpsId: InputMaybe;\r\n postalCode: InputMaybe;\r\n region: InputMaybe;\r\n streetAddress: InputMaybe;\r\n};\r\n\r\nexport type AddressResult = {\r\n __typename: 'AddressResult';\r\n address: Address;\r\n hasSpecificMatch: Scalars['Boolean'];\r\n quality: GeocodeResultQuality;\r\n};\r\n\r\nexport enum AffiliationType {\r\n Agency = 'Agency',\r\n Competitor = 'Competitor',\r\n Internal = 'Internal',\r\n Other = 'Other',\r\n Psap = 'Psap',\r\n ReceivingFacility = 'ReceivingFacility',\r\n SendingFacility = 'SendingFacility',\r\n SisterCompany = 'SisterCompany',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport type Agency = Entity &\r\n Evented & {\r\n __typename: 'Agency';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isCompetitor: Scalars['Boolean'];\r\n isInternallyOwned: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n locations: Array;\r\n name: Scalars['String'];\r\n notes: Maybe;\r\n parentCompany: Maybe;\r\n parentCompanyId: Maybe;\r\n trips: Maybe>>;\r\n trmUserAgencies: Array;\r\n type: AgencyType;\r\n };\r\n\r\nexport type Agency_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type AgencyCollection = {\r\n __typename: 'AgencyCollection';\r\n items: Array;\r\n meta: AgencyCollectionMetadata;\r\n};\r\n\r\nexport type AgencyCollectionMetadata = CollectionMetadata & {\r\n __typename: 'AgencyCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type AgencyFilter = {\r\n agencyId: InputMaybe;\r\n agencyLocationNameLike: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type AgencyLocation = Entity &\r\n Evented & {\r\n __typename: 'AgencyLocation';\r\n _events: MessageEnvelopeCollection;\r\n agency: Agency;\r\n agencyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n emailAddress: Maybe;\r\n estimatedDepartureTimeInMinutes: Maybe;\r\n faxPhoneNumber: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n location: Maybe;\r\n locationId: Maybe;\r\n name: Scalars['String'];\r\n notes: Maybe;\r\n primaryPhoneNumber: Maybe;\r\n rendezvousRequests: Maybe>>;\r\n requesters: Maybe>>;\r\n secondaryPhoneNumber: Maybe;\r\n smsPhoneNumber: Maybe;\r\n transportOffers: Maybe>>;\r\n trips: Maybe>>;\r\n vehicleDispositions: Maybe>>;\r\n vehicleType: Maybe;\r\n };\r\n\r\nexport type AgencyLocation_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type AgencyLocationCollection = {\r\n __typename: 'AgencyLocationCollection';\r\n items: Array;\r\n meta: AgencyLocationCollectionMetadata;\r\n};\r\n\r\nexport type AgencyLocationCollectionMetadata = CollectionMetadata & {\r\n __typename: 'AgencyLocationCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type AgencyLocationFilter = {\r\n agencyId: InputMaybe;\r\n agencyLocationId: InputMaybe;\r\n locationId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type AgencyLocationQueries = {\r\n __typename: 'AgencyLocationQueries';\r\n all: AgencyLocationCollection;\r\n byId: Maybe;\r\n byLocationId: Maybe;\r\n};\r\n\r\nexport type AgencyLocationQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type AgencyLocationQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type AgencyLocationQueriesbyLocationIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type AgencyQueries = {\r\n __typename: 'AgencyQueries';\r\n all: AgencyCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type AgencyQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type AgencyQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum AgencyType {\r\n AirAmbulance = 'AirAmbulance',\r\n FireService = 'FireService',\r\n GroundAmbulance = 'GroundAmbulance',\r\n Other = 'Other',\r\n Psap = 'Psap',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport type Airport = Entity &\r\n Evented & {\r\n __typename: 'Airport';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n airportCodeType: AirportCodeType;\r\n airportType: Scalars['String'];\r\n code: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n fbos: Array;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n location: Maybe;\r\n locationId: Maybe;\r\n name: Scalars['String'];\r\n preferredFbo: Maybe;\r\n preferredFboId: Maybe;\r\n sourceSystemId: Maybe;\r\n };\r\n\r\nexport type Airport_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type AirportByIdOptions = {\r\n includeDeleted: InputMaybe;\r\n};\r\n\r\nexport enum AirportCodeType {\r\n FAA = 'FAA',\r\n IATA = 'IATA',\r\n ICAO = 'ICAO',\r\n}\r\n\r\nexport type AirportCollection = {\r\n __typename: 'AirportCollection';\r\n items: Array;\r\n meta: AirportCollectionMetadata;\r\n};\r\n\r\nexport type AirportCollectionMetadata = CollectionMetadata & {\r\n __typename: 'AirportCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type AirportFilter = {\r\n airportId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type AirportQueries = {\r\n __typename: 'AirportQueries';\r\n all: AirportCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type AirportQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type AirportQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n options: InputMaybe;\r\n};\r\n\r\nexport type Alert = Entity &\r\n Evented & {\r\n __typename: 'Alert';\r\n _events: MessageEnvelopeCollection;\r\n activationRule: ActivationRule;\r\n activationRuleId: Scalars['ID'];\r\n activeAlerts: Maybe>>;\r\n content: Scalars['String'];\r\n createdBy: Maybe;\r\n createdById: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n effectiveDate: Maybe;\r\n entityType: EntityType;\r\n expirationDate: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n lifecycleStage: AlertLifecycleStage;\r\n paused: Maybe;\r\n requiresAcknowledgement: Scalars['Boolean'];\r\n /** @deprecated Use definitions/entityType */\r\n target: Maybe;\r\n title: Maybe;\r\n urgency: AlertUrgency;\r\n };\r\n\r\nexport type Alert_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type AlertCollection = {\r\n __typename: 'AlertCollection';\r\n items: Array;\r\n meta: AlertCollectionMetadata;\r\n};\r\n\r\nexport type AlertCollectionMetadata = CollectionMetadata & {\r\n __typename: 'AlertCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type AlertFilter = {\r\n activationRuleNameLike: InputMaybe;\r\n countyLike: InputMaybe;\r\n locationId: InputMaybe;\r\n medicalFacilityId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport enum AlertLifecycleStage {\r\n PreAssignment = 'PreAssignment',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport type AlertQueries = {\r\n __typename: 'AlertQueries';\r\n all: AlertCollection;\r\n byActivationRuleId: Maybe;\r\n byId: Maybe;\r\n};\r\n\r\nexport type AlertQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type AlertQueriesbyActivationRuleIdArgs = {\r\n activationRuleId: Scalars['ID'];\r\n};\r\n\r\nexport type AlertQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum AlertTarget {\r\n Card = 'Card',\r\n Company = 'Company',\r\n Region = 'Region',\r\n}\r\n\r\nexport enum AlertUrgency {\r\n Critical = 'Critical',\r\n Information = 'Information',\r\n Warning = 'Warning',\r\n}\r\n\r\nexport enum AmrUtilizationStatus {\r\n NoResourcesAvailable = 'NoResourcesAvailable',\r\n NoServiceAvailable = 'NoServiceAvailable',\r\n NotConsidered = 'NotConsidered',\r\n UnsatisfactoryEta = 'UnsatisfactoryEta',\r\n Unspecified = 'Unspecified',\r\n Utilized = 'Utilized',\r\n}\r\n\r\nexport type ApplicationNotification = Entity &\r\n Evented & {\r\n __typename: 'ApplicationNotification';\r\n _events: MessageEnvelopeCollection;\r\n company: Maybe;\r\n companyId: Maybe;\r\n createdBy: Maybe;\r\n createdById: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n dismissable: Scalars['Boolean'];\r\n displayOnBanner: Scalars['Boolean'];\r\n effectiveDate: Maybe;\r\n expirationDate: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n notification: Scalars['String'];\r\n region: Maybe;\r\n regionId: Maybe;\r\n title: Maybe;\r\n urgency: ApplicationNotificationUrgency;\r\n };\r\n\r\nexport type ApplicationNotification_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ApplicationNotificationCollection = {\r\n __typename: 'ApplicationNotificationCollection';\r\n items: Array;\r\n meta: ApplicationNotificationCollectionMetadata;\r\n};\r\n\r\nexport type ApplicationNotificationCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ApplicationNotificationCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type ApplicationNotificationFilter = {\r\n applicationNotificationId: InputMaybe;\r\n};\r\n\r\nexport type ApplicationNotificationQueries = {\r\n __typename: 'ApplicationNotificationQueries';\r\n all: ApplicationNotificationCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type ApplicationNotificationQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ApplicationNotificationQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum ApplicationNotificationUrgency {\r\n Critical = 'Critical',\r\n Information = 'Information',\r\n Warning = 'Warning',\r\n}\r\n\r\nexport type ApproveMedicalFacility = {\r\n medicalFacilityId: Scalars['ID'];\r\n};\r\n\r\nexport type ApproveTrmUser = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum ArchiveEntityType {\r\n CardNote = 'CardNote',\r\n Eta = 'Eta',\r\n PositionReport = 'PositionReport',\r\n Timestamp = 'Timestamp',\r\n TransportOffer = 'TransportOffer',\r\n WebhookEventBody = 'WebhookEventBody',\r\n WebhookSubscription = 'WebhookSubscription',\r\n WebhookSubscriptionEvent = 'WebhookSubscriptionEvent',\r\n}\r\n\r\nexport type ArchiveLog = Entity &\r\n Evented & {\r\n __typename: 'ArchiveLog';\r\n _events: MessageEnvelopeCollection;\r\n archiveEntityType: ArchiveEntityType;\r\n archivedUntilDate: Scalars['DateTime'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isError: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n notes: Maybe;\r\n };\r\n\r\nexport type ArchiveLog_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ArchiveLogCollection = {\r\n __typename: 'ArchiveLogCollection';\r\n items: Array;\r\n meta: ArchiveLogCollectionMetadata;\r\n};\r\n\r\nexport type ArchiveLogCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ArchiveLogCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type ArchiveLogLatestByType = {\r\n __typename: 'ArchiveLogLatestByType';\r\n archiveEntityType: ArchiveEntityType;\r\n archivedUntilDate: Scalars['DateTime'];\r\n};\r\n\r\nexport type ArchiveLogQueries = {\r\n __typename: 'ArchiveLogQueries';\r\n latest: Maybe;\r\n latestAll: ArchiveLogCollection;\r\n};\r\n\r\nexport type ArchiveLogQuerieslatestArgs = {\r\n type: ArchiveEntityType;\r\n};\r\n\r\nexport type ArchiveMedicalFacility = {\r\n archiveNotes: InputMaybe;\r\n medicalFacilityId: Scalars['ID'];\r\n};\r\n\r\nexport type ArriveVehicle = {\r\n note: InputMaybe;\r\n odometerReading: InputMaybe;\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type AssignVehicle = {\r\n unitId: Scalars['ID'];\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type AssignmentDelayedReason = Entity &\r\n Evented & {\r\n __typename: 'AssignmentDelayedReason';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n requests: Maybe>>;\r\n };\r\n\r\nexport type AssignmentDelayedReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type AssignmentDelayedReasonCollection = {\r\n __typename: 'AssignmentDelayedReasonCollection';\r\n items: Array;\r\n meta: AssignmentDelayedReasonCollectionMetadata;\r\n};\r\n\r\nexport type AssignmentDelayedReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'AssignmentDelayedReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type AuthorizeClientSyncAccess = {\r\n optionalEmail: InputMaybe;\r\n};\r\n\r\nexport enum AutomatedAlertAlgorithmType {\r\n TimeElapsedFromTimestamp = 'TimeElapsedFromTimestamp',\r\n}\r\n\r\nexport type Base = Entity &\r\n Evented & {\r\n __typename: 'Base';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n activationRules: Maybe>>;\r\n aviationCompanyId: Maybe;\r\n baseControlZones: Array;\r\n businessModel: BusinessModel;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n crewPhoneNumber1: Maybe;\r\n crewPhoneNumber2: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n dateLastUpdatedFromGMRWorkday: Maybe;\r\n dateOfMaturity: Maybe;\r\n dispatchBaseId: Maybe;\r\n enableFlightLogDutyLog: Maybe;\r\n estimatedLiftoffTime: Maybe;\r\n fuelTanks: Maybe>>;\r\n gmrWorkdayLocationId: Maybe;\r\n hoursOfOperation: HoursOfOperation;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n licenseNumber: Maybe;\r\n location: Location;\r\n locationId: Scalars['ID'];\r\n medicalControlContacts: Array;\r\n name: Scalars['String'];\r\n oemAssets: Maybe>>;\r\n oemPlans: Array;\r\n operationsStarted: Maybe;\r\n operationsTerminated: Maybe;\r\n people: Maybe>>;\r\n pilotPhoneNumber: Maybe;\r\n plannedOperationsStart: Maybe;\r\n primaryPhoneNumber: Maybe;\r\n programs: Array;\r\n regions: Array;\r\n transportOffers: Maybe>>;\r\n unitSummaries: Array;\r\n units: Array;\r\n workdayBaseId: Maybe;\r\n };\r\n\r\nexport type Base_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type BaseCollection = {\r\n __typename: 'BaseCollection';\r\n items: Array;\r\n meta: BaseCollectionMetadata;\r\n};\r\n\r\nexport type BaseCollectionMetadata = CollectionMetadata & {\r\n __typename: 'BaseCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type BaseControlZone = Entity &\r\n Evented & {\r\n __typename: 'BaseControlZone';\r\n _events: MessageEnvelopeCollection;\r\n base: Base;\r\n baseId: Scalars['ID'];\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n controlZone: ControlZone;\r\n controlZoneId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n };\r\n\r\nexport type BaseControlZone_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type BaseControlZoneCollection = {\r\n __typename: 'BaseControlZoneCollection';\r\n items: Array;\r\n meta: BaseControlZoneCollectionMetadata;\r\n};\r\n\r\nexport type BaseControlZoneCollectionMetadata = CollectionMetadata & {\r\n __typename: 'BaseControlZoneCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type BaseControlZoneFilter = {\r\n baseId: InputMaybe;\r\n controlZoneId: InputMaybe;\r\n};\r\n\r\nexport type BaseControlZoneQueries = {\r\n __typename: 'BaseControlZoneQueries';\r\n all: BaseControlZoneCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type BaseControlZoneQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type BaseControlZoneQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type BaseFilter = {\r\n allExceptCompanyId: InputMaybe;\r\n aviationCompanyId: InputMaybe;\r\n baseId: InputMaybe;\r\n companyId: InputMaybe;\r\n companyIdList: InputMaybe>;\r\n customDispatchBaseId: InputMaybe;\r\n nameLike: InputMaybe;\r\n showAll: InputMaybe;\r\n};\r\n\r\nexport type BaseMedicalControlContact = Entity &\r\n Evented & {\r\n __typename: 'BaseMedicalControlContact';\r\n _events: MessageEnvelopeCollection;\r\n base: Base;\r\n baseId: Scalars['ID'];\r\n baseMedicalControlContactStates: Maybe>>;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n person: Person;\r\n personId: Scalars['ID'];\r\n rank: Scalars['Int'];\r\n specialty: Maybe;\r\n };\r\n\r\nexport type BaseMedicalControlContact_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type BaseMedicalControlContactCollection = {\r\n __typename: 'BaseMedicalControlContactCollection';\r\n items: Array;\r\n meta: BaseMedicalControlContactCollectionMetadata;\r\n};\r\n\r\nexport type BaseMedicalControlContactCollectionMetadata = CollectionMetadata & {\r\n __typename: 'BaseMedicalControlContactCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type BaseMedicalControlContactState = Entity &\r\n Evented & {\r\n __typename: 'BaseMedicalControlContactState';\r\n _events: MessageEnvelopeCollection;\r\n baseMedicalControlContact: Maybe;\r\n baseMedicalControlContactId: Maybe;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n stateAbbrevation: Scalars['String'];\r\n };\r\n\r\nexport type BaseMedicalControlContactState_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type BaseMedicalControlContactStateCollection = {\r\n __typename: 'BaseMedicalControlContactStateCollection';\r\n items: Array;\r\n meta: BaseMedicalControlContactStateCollectionMetadata;\r\n};\r\n\r\nexport type BaseMedicalControlContactStateCollectionMetadata = CollectionMetadata & {\r\n __typename: 'BaseMedicalControlContactStateCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type BaseQueries = {\r\n __typename: 'BaseQueries';\r\n all: BaseCollection;\r\n};\r\n\r\nexport type BaseQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type BeginAssignment = {\r\n requestId: Scalars['ID'];\r\n};\r\n\r\nexport type BeginOutOfServiceEvent = {\r\n endTime: InputMaybe;\r\n estimatedEndTime: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isAirworthy: Scalars['Boolean'];\r\n notes: InputMaybe;\r\n reasonId: Scalars['ID'];\r\n scheduledStartTime: InputMaybe;\r\n secondaryReasonComment: InputMaybe;\r\n secondaryReasonId: InputMaybe;\r\n startTime: InputMaybe;\r\n type: OutOfServiceType;\r\n};\r\n\r\nexport type BeginTransportOffer = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum BusinessModel {\r\n Community = 'Community',\r\n Ground = 'Ground',\r\n Traditional = 'Traditional',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport type CalculateEtas = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CancelOperation = {\r\n cancelRequest: Scalars['Boolean'];\r\n cancellationReasonId: Scalars['ID'];\r\n cancellationReasonNotes: InputMaybe;\r\n cancellationSecondaryReasonId: InputMaybe;\r\n externalActionId: InputMaybe;\r\n operationId: Scalars['ID'];\r\n};\r\n\r\nexport type CancelReceivingFacilityRequest = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CancelRequest = {\r\n cancellationReasonId: Scalars['ID'];\r\n cancellationReasonNotes: InputMaybe;\r\n cancellationSecondaryReasonId: InputMaybe;\r\n declineReasonId: InputMaybe;\r\n declineReasonNotes: InputMaybe;\r\n declineSecondaryReasonId: InputMaybe;\r\n externalActionId: InputMaybe;\r\n id: Scalars['ID'];\r\n nonReferralReasonId: InputMaybe;\r\n nonReferralReasonNotes: InputMaybe;\r\n transportOfferToDeclineId: InputMaybe;\r\n};\r\n\r\nexport type CancelRequestFromTransferCenter = {\r\n cancellationReasonId: Scalars['ID'];\r\n cancellationReasonNotes: InputMaybe;\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CancelTransportOffer = {\r\n cancellationReasonId: Scalars['ID'];\r\n cancellationReasonNotes: InputMaybe;\r\n cancellationSecondaryReasonId: InputMaybe;\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CancellationCategory = Entity &\r\n Evented & {\r\n __typename: 'CancellationCategory';\r\n _events: MessageEnvelopeCollection;\r\n cancellationReasons: Maybe>>;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n defaultCancellationReason: Maybe;\r\n defaultCancellationReasonId: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n };\r\n\r\nexport type CancellationCategory_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CancellationCategoryCollection = {\r\n __typename: 'CancellationCategoryCollection';\r\n items: Array;\r\n meta: CancellationCategoryCollectionMetadata;\r\n};\r\n\r\nexport type CancellationCategoryCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CancellationCategoryCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CancellationCategoryFilter = {\r\n first: InputMaybe;\r\n nameLike: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CancellationCategoryQueries = {\r\n __typename: 'CancellationCategoryQueries';\r\n all: CancellationCategoryCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type CancellationCategoryQueriesallArgs = {\r\n filter: InputMaybe;\r\n};\r\n\r\nexport type CancellationCategoryQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CancellationReason = Entity &\r\n Evented & {\r\n __typename: 'CancellationReason';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n canBeUnitCancellationReason: Maybe;\r\n cancellationCategories: Maybe>>;\r\n cancellationCategory: Maybe;\r\n cancellationCategoryId: Maybe;\r\n cancellationSecondaryReasons: Array;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isTransferCenterReason: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n nonReferralReasons: Maybe>>;\r\n requests: Maybe>>;\r\n transportOffers: Maybe>>;\r\n };\r\n\r\nexport type CancellationReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CancellationReasonCollection = {\r\n __typename: 'CancellationReasonCollection';\r\n items: Array;\r\n meta: CancellationReasonCollectionMetadata;\r\n};\r\n\r\nexport type CancellationReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CancellationReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CancellationReasonFilter = {\r\n cancellationCategoryId: InputMaybe;\r\n excludeReasonsWithSecondary: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type CancellationReasonQueries = {\r\n __typename: 'CancellationReasonQueries';\r\n all: CancellationReasonCollection;\r\n byCategoryId: CancellationReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type CancellationReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CancellationReasonQueriesbyCategoryIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CancellationReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CancellationSecondaryReason = Entity &\r\n Evented & {\r\n __typename: 'CancellationSecondaryReason';\r\n _events: MessageEnvelopeCollection;\r\n cancellationReason: CancellationReason;\r\n cancellationReasonId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n nonReferralReasons: Maybe>>;\r\n requests: Maybe>>;\r\n transportOffers: Maybe>>;\r\n };\r\n\r\nexport type CancellationSecondaryReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CancellationSecondaryReasonCollection = {\r\n __typename: 'CancellationSecondaryReasonCollection';\r\n items: Array;\r\n meta: CancellationSecondaryReasonCollectionMetadata;\r\n};\r\n\r\nexport type CancellationSecondaryReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CancellationSecondaryReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CancellationSecondaryReasonFilter = {\r\n cancellationReasonId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type CancellationSecondaryReasonQueries = {\r\n __typename: 'CancellationSecondaryReasonQueries';\r\n all: CancellationSecondaryReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type CancellationSecondaryReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n};\r\n\r\nexport type CancellationSecondaryReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type Capability = Entity &\r\n Evented & {\r\n __typename: 'Capability';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n description: Scalars['String'];\r\n entityCapabilities: Array;\r\n entityType: EntityType;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n };\r\n\r\nexport type Capability_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CapabilityCollection = {\r\n __typename: 'CapabilityCollection';\r\n items: Array;\r\n meta: CapabilityCollectionMetadata;\r\n};\r\n\r\nexport type CapabilityCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CapabilityCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CapabilityFilter = {\r\n entityType: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type CapabilityQueries = {\r\n __typename: 'CapabilityQueries';\r\n all: CapabilityCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type CapabilityQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CapabilityQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type Card = Entity &\r\n Evented & {\r\n __typename: 'Card';\r\n _events: MessageEnvelopeCollection;\r\n activeAlerts: Array;\r\n activeCardUnitOfferings: Array;\r\n activeTimelines: Array;\r\n apiWebhookSubscriptionId: Maybe;\r\n cardNumber: Scalars['String'];\r\n closeComment: Maybe;\r\n companyId: Scalars['ID'];\r\n createdById: Maybe;\r\n dateCardClosed: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n diversionType: Maybe;\r\n gmrCADNumber: Maybe;\r\n gmrUtilizationStatus: Maybe;\r\n id: Scalars['ID'];\r\n isBillable: Maybe;\r\n isLocked: Maybe;\r\n lastOperationId: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n linkedCardId: Maybe;\r\n medicalControlContactLogEntries: Array;\r\n notBillableComment: Maybe;\r\n notBillableType: Maybe;\r\n notes: Array;\r\n notifications: Maybe>>;\r\n operation: Maybe;\r\n operationId: Maybe;\r\n outOfServiceEvents: Maybe>>;\r\n plannedCompletionTime: Maybe;\r\n postTransportDebriefCompleted: Maybe;\r\n questionnaireResponses: Array;\r\n reOpenComment: Maybe;\r\n reOpenReason: Maybe;\r\n reOpenReasonId: Maybe;\r\n receivingFacilityRequests: Array;\r\n request: Maybe;\r\n requestId: Maybe;\r\n status: CardStatus;\r\n timestamps: Array;\r\n transferredFromCardId: Maybe;\r\n transferredToCardId: Maybe;\r\n vehicleSummaries: Maybe>>;\r\n };\r\n\r\nexport type Card_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport enum CardActivityType {\r\n CardClosed = 'CardClosed',\r\n}\r\n\r\nexport enum CardCallStatus {\r\n Cancelled = 'Cancelled',\r\n Completed = 'Completed',\r\n}\r\n\r\nexport type CardCollection = {\r\n __typename: 'CardCollection';\r\n items: Array;\r\n meta: CardCollectionMetadata;\r\n};\r\n\r\nexport type CardCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CardCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CardCrewPosition = {\r\n __typename: 'CardCrewPosition';\r\n employeeId: Scalars['String'];\r\n firstName: Scalars['String'];\r\n lastName: Scalars['String'];\r\n personId: Maybe;\r\n positionId: Scalars['ID'];\r\n role: Scalars['String'];\r\n};\r\n\r\nexport type CardCrewPositionInput = {\r\n employeeId: Scalars['String'];\r\n firstName: Scalars['String'];\r\n lastName: Scalars['String'];\r\n personId: InputMaybe;\r\n positionId: Scalars['ID'];\r\n role: Scalars['String'];\r\n};\r\n\r\nexport type CardFilter = {\r\n cardNumberLike: InputMaybe;\r\n cardStatus: InputMaybe;\r\n companyId: InputMaybe;\r\n excludeBasesExcept: InputMaybe>;\r\n fromLocationId: InputMaybe;\r\n includeDeleted: InputMaybe;\r\n operationStatus: InputMaybe;\r\n operationType: InputMaybe;\r\n patientNameLike: InputMaybe;\r\n requestRegionId: InputMaybe;\r\n serviceDateRange: InputMaybe;\r\n toLocationId: InputMaybe;\r\n unitAbbreviationLike: InputMaybe;\r\n unitNameLike: InputMaybe;\r\n withStatuses: InputMaybe>;\r\n withoutRequestStatuses: InputMaybe>;\r\n withoutStatuses: InputMaybe>;\r\n};\r\n\r\nexport type CardLink = Entity &\r\n Evented & {\r\n __typename: 'CardLink';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n fromCardId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n rendezvousRequest: Maybe;\r\n rendezvousRequestId: Maybe;\r\n toCardId: Scalars['ID'];\r\n toCardNumber: Scalars['String'];\r\n type: CardLinkType;\r\n };\r\n\r\nexport type CardLink_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CardLinkCollection = {\r\n __typename: 'CardLinkCollection';\r\n items: Array;\r\n meta: CardLinkCollectionMetadata;\r\n};\r\n\r\nexport type CardLinkCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CardLinkCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CardLinkFilter = {\r\n companyId: InputMaybe;\r\n fromCardId: InputMaybe;\r\n toCardId: InputMaybe;\r\n type: InputMaybe;\r\n};\r\n\r\nexport type CardLinkQueries = {\r\n __typename: 'CardLinkQueries';\r\n all: CardLinkCollection;\r\n};\r\n\r\nexport type CardLinkQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport enum CardLinkType {\r\n Referral = 'Referral',\r\n SupportLeg = 'SupportLeg',\r\n}\r\n\r\nexport type CardManualPositionReport = {\r\n __typename: 'CardManualPositionReport';\r\n altitude: Maybe;\r\n heading: Maybe;\r\n latitude: Maybe;\r\n longitude: Maybe;\r\n positionReportId: Scalars['ID'];\r\n positionTime: Scalars['DateTime'];\r\n speedInKnots: Maybe;\r\n};\r\n\r\nexport type CardManualPositionReportInput = {\r\n altitude: InputMaybe;\r\n heading: InputMaybe;\r\n latitude: InputMaybe;\r\n longitude: InputMaybe;\r\n positionReportId: Scalars['ID'];\r\n positionTime: Scalars['DateTime'];\r\n speedInKnots: InputMaybe;\r\n};\r\n\r\nexport type CardNote = Entity &\r\n Evented & {\r\n __typename: 'CardNote';\r\n _events: MessageEnvelopeCollection;\r\n author: Maybe;\r\n authorId: Maybe;\r\n card: Card;\r\n cardId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n content: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isInternal: Scalars['Boolean'];\r\n isSystem: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n noteCategory: Maybe;\r\n noteMetadataJson: Maybe;\r\n noteTime: Scalars['DateTime'];\r\n };\r\n\r\nexport type CardNote_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CardNoteArchive = Entity &\r\n Evented & {\r\n __typename: 'CardNoteArchive';\r\n _events: MessageEnvelopeCollection;\r\n author: Maybe;\r\n authorId: Maybe;\r\n cardId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n content: Scalars['String'];\r\n dateArchived: Scalars['DateTime'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isInternal: Scalars['Boolean'];\r\n isSystem: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n noteCategory: Maybe;\r\n noteMetadataJson: Maybe;\r\n noteTime: Scalars['DateTime'];\r\n };\r\n\r\nexport type CardNoteArchive_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CardNoteArchiveCollection = {\r\n __typename: 'CardNoteArchiveCollection';\r\n items: Array;\r\n meta: CardNoteArchiveCollectionMetadata;\r\n};\r\n\r\nexport type CardNoteArchiveCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CardNoteArchiveCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CardNoteArchiveQueries = {\r\n __typename: 'CardNoteArchiveQueries';\r\n byCardId: CardNoteArchiveCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type CardNoteArchiveQueriesbyCardIdArgs = {\r\n cardId: Scalars['ID'];\r\n};\r\n\r\nexport type CardNoteArchiveQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CardNoteCollection = {\r\n __typename: 'CardNoteCollection';\r\n items: Array;\r\n meta: CardNoteCollectionMetadata;\r\n};\r\n\r\nexport type CardNoteCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CardNoteCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CardNoteQueries = {\r\n __typename: 'CardNoteQueries';\r\n byId: Maybe;\r\n devNotes: DevNoteCollection;\r\n};\r\n\r\nexport type CardNoteQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CardNoteQueriesdevNotesArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CardOperation = {\r\n __typename: 'CardOperation';\r\n dateOperationStarted: Scalars['DateTime'];\r\n operationId: Scalars['ID'];\r\n status: Scalars['String'];\r\n type: Scalars['String'];\r\n};\r\n\r\nexport type CardOperationInput = {\r\n dateOperationStarted: Scalars['DateTime'];\r\n operationId: Scalars['ID'];\r\n status: Scalars['String'];\r\n type: Scalars['String'];\r\n};\r\n\r\nexport type CardQueries = {\r\n __typename: 'CardQueries';\r\n all: CardCollection;\r\n byCardNumber: Maybe;\r\n byId: Maybe;\r\n /** @deprecated Use cards.byId or cards.byCardNumber instead */\r\n cardById: Maybe;\r\n report: Maybe;\r\n reportApiUrl: Maybe;\r\n search: CardSearchResultCollection;\r\n searchv2: CardSearchResultCollection;\r\n summaries: CardSummaryCollection;\r\n summaryByCardNumber: Maybe;\r\n summaryById: Maybe;\r\n};\r\n\r\nexport type CardQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CardQueriesbyCardNumberArgs = {\r\n cardNumber: Scalars['ID'];\r\n};\r\n\r\nexport type CardQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CardQueriescardByIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CardQueriesreportArgs = {\r\n cardNumber: Scalars['ID'];\r\n};\r\n\r\nexport type CardQueriesreportApiUrlArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CardQueriessearchArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CardQueriessearchv2Args = {\r\n filter: InputMaybe;\r\n first?: Scalars['Int'];\r\n skip?: Scalars['Int'];\r\n};\r\n\r\nexport type CardQueriessummariesArgs = {\r\n fetchpolicy: InputMaybe;\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CardQueriessummaryByCardNumberArgs = {\r\n cardNumber: Scalars['ID'];\r\n};\r\n\r\nexport type CardQueriessummaryByIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CardReOpenReason = Entity &\r\n Evented & {\r\n __typename: 'CardReOpenReason';\r\n _events: MessageEnvelopeCollection;\r\n affectsTrip: Scalars['Boolean'];\r\n cards: Maybe>>;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n };\r\n\r\nexport type CardReOpenReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CardReOpenReasonCollection = {\r\n __typename: 'CardReOpenReasonCollection';\r\n items: Array;\r\n meta: CardReOpenReasonCollectionMetadata;\r\n};\r\n\r\nexport type CardReOpenReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CardReOpenReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CardReopenReasonFilter = {\r\n affectsTrip: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type CardReopenReasonQueries = {\r\n __typename: 'CardReopenReasonQueries';\r\n all: CardReOpenReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type CardReopenReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CardReopenReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CardRequest = {\r\n __typename: 'CardRequest';\r\n cancellationReasonId: Maybe;\r\n cancellationReasonName: Maybe;\r\n cancellationSecondaryReasonId: Maybe;\r\n cancellationSecondaryReasonName: Maybe;\r\n cardSafetyQuestions: CardSafetyQuestions;\r\n isStandby: Scalars['Boolean'];\r\n requestId: Scalars['ID'];\r\n requestedOperationType: OperationType;\r\n status: Scalars['String'];\r\n};\r\n\r\nexport type CardRequestInput = {\r\n cancellationReasonId: InputMaybe;\r\n cancellationReasonName: InputMaybe;\r\n cancellationSecondaryReasonId: InputMaybe;\r\n cancellationSecondaryReasonName: InputMaybe;\r\n cardSafetyQuestions: CardSafetyQuestionsInput;\r\n isStandby: Scalars['Boolean'];\r\n requestId: Scalars['ID'];\r\n requestedOperationType: OperationType;\r\n status: Scalars['String'];\r\n};\r\n\r\nexport type CardSafetyQuestions = {\r\n __typename: 'CardSafetyQuestions';\r\n otherServiceDeclined: Maybe;\r\n otherServiceDescription: Maybe;\r\n otherServiceResponseDescription: Maybe;\r\n otherServicesAreRespondingToTransferring: Maybe;\r\n};\r\n\r\nexport type CardSafetyQuestionsInput = {\r\n otherServiceDeclined: InputMaybe;\r\n otherServiceDescription: InputMaybe;\r\n otherServiceResponseDescription: InputMaybe;\r\n otherServicesAreRespondingToTransferring: InputMaybe;\r\n};\r\n\r\nexport type CardSearchFilter = {\r\n cardNumberLike: InputMaybe;\r\n cardStatus: InputMaybe;\r\n companyId: InputMaybe;\r\n fromLocationId: InputMaybe;\r\n includeDeleted: InputMaybe;\r\n operationStatus: InputMaybe;\r\n operationType: InputMaybe;\r\n requestStatus: InputMaybe;\r\n serviceDateRange: InputMaybe;\r\n toLocationId: InputMaybe;\r\n unitNameLike: InputMaybe;\r\n};\r\n\r\nexport type CardSearchFilterV2 = {\r\n agencyLocationId: InputMaybe;\r\n cardNumberLike: InputMaybe;\r\n cardStatus: InputMaybe;\r\n cityNameLike: InputMaybe;\r\n communicationCenterId: InputMaybe;\r\n companyId: InputMaybe;\r\n countyNameLike: InputMaybe;\r\n createdBy: InputMaybe;\r\n createdById: InputMaybe;\r\n dropoffLocationId: InputMaybe;\r\n includeDeleted: InputMaybe;\r\n manifest: InputMaybe;\r\n operationStatus: InputMaybe;\r\n operationType: InputMaybe;\r\n pickupLocationId: InputMaybe;\r\n query: InputMaybe;\r\n requestStatus: InputMaybe;\r\n serviceDateRange: InputMaybe;\r\n stateNameLike: InputMaybe;\r\n unitNameLike: InputMaybe;\r\n};\r\n\r\nexport type CardSearchResult = {\r\n __typename: 'CardSearchResult';\r\n callStatus: Maybe;\r\n cardNumber: Scalars['ID'];\r\n companyCode: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n createdBy: Maybe;\r\n createdById: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n id: Scalars['ID'];\r\n isBillable: Scalars['Boolean'];\r\n isLocked: Maybe;\r\n lastOfferedUnit: Maybe;\r\n operation: Maybe;\r\n region: Maybe;\r\n request: Maybe;\r\n status: Maybe;\r\n};\r\n\r\nexport type CardSearchResultCollection = {\r\n __typename: 'CardSearchResultCollection';\r\n items: Array;\r\n meta: CardCollectionMetadata;\r\n};\r\n\r\nexport type CardSearchResultCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CardSearchResultCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CardSearchResultCommunicationCenter = {\r\n __typename: 'CardSearchResultCommunicationCenter';\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type CardSearchResultOperation = {\r\n __typename: 'CardSearchResultOperation';\r\n id: Scalars['ID'];\r\n status: OperationStatus;\r\n type: OperationType;\r\n unit: Maybe;\r\n vehicle: Maybe;\r\n};\r\n\r\nexport type CardSearchResultRegion = {\r\n __typename: 'CardSearchResultRegion';\r\n communicationCenter: Maybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type CardSearchResultRequest = {\r\n __typename: 'CardSearchResultRequest';\r\n dropoffLocation: Maybe;\r\n id: Scalars['ID'];\r\n pickupLocation: Maybe;\r\n requestedOperationType: OperationType;\r\n status: RequestStatus;\r\n};\r\n\r\nexport type CardSearchResultRequestLocation = {\r\n __typename: 'CardSearchResultRequestLocation';\r\n id: Scalars['ID'];\r\n locationId: Maybe;\r\n name: Scalars['String'];\r\n type: WaypointType;\r\n};\r\n\r\nexport type CardSearchResultUnit = {\r\n __typename: 'CardSearchResultUnit';\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type CardSearchResultVehicle = {\r\n __typename: 'CardSearchResultVehicle';\r\n id: Scalars['ID'];\r\n registrationNumber: Scalars['String'];\r\n};\r\n\r\nexport enum CardStatus {\r\n AwaitingAssignment = 'AwaitingAssignment',\r\n AwaitingLaunch = 'AwaitingLaunch',\r\n Closed = 'Closed',\r\n Completed = 'Completed',\r\n Underway = 'Underway',\r\n}\r\n\r\nexport type CardSummary = Entity &\r\n Evented & {\r\n __typename: 'CardSummary';\r\n _events: MessageEnvelopeCollection;\r\n apiWebhookSubscriptionId: Maybe;\r\n cardNumber: Scalars['String'];\r\n communicationCenter: Maybe;\r\n communicationCenterId: Maybe;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n diversionType: Maybe;\r\n gmrCADNumber: Maybe;\r\n gmrUtilizationStatus: Maybe;\r\n id: Scalars['ID'];\r\n operation: Maybe;\r\n operationType: OperationType;\r\n patients: Maybe>>;\r\n region: Region;\r\n regionId: Scalars['ID'];\r\n request: Maybe;\r\n status: CardStatus;\r\n unit: Maybe;\r\n unitId: Maybe;\r\n unitSummary: Maybe;\r\n unitSummaryId: Maybe;\r\n vehicle: Maybe;\r\n vehicleId: Maybe;\r\n vehicleSummary: Maybe;\r\n vehicleSummaryId: Maybe;\r\n webOrderAcknowledgedTime: Maybe;\r\n };\r\n\r\nexport type CardSummary_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport enum CardSummaryActivityType {\r\n Acknowledged = 'Acknowledged',\r\n Cancelled = 'Cancelled',\r\n Created = 'Created',\r\n OperationTypeChanged = 'OperationTypeChanged',\r\n RequestAssignmentDelayed = 'RequestAssignmentDelayed',\r\n RequestLocationChanged = 'RequestLocationChanged',\r\n RequestStandbyActivated = 'RequestStandbyActivated',\r\n RequestStandbyChanged = 'RequestStandbyChanged',\r\n RequesterChanged = 'RequesterChanged',\r\n}\r\n\r\nexport type CardSummaryCollection = {\r\n __typename: 'CardSummaryCollection';\r\n items: Array;\r\n meta: CardSummaryCollectionMetadata;\r\n};\r\n\r\nexport type CardSummaryCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CardSummaryCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CardSummaryFilter = {\r\n afterDate: InputMaybe;\r\n communicationCenterId: InputMaybe;\r\n companyId: InputMaybe;\r\n controlZoneCompanyId: InputMaybe;\r\n controlZoneId: InputMaybe;\r\n regionId: InputMaybe;\r\n weatherDeclinedCardsOnly: InputMaybe;\r\n weatherDelayedCardsOnly: InputMaybe;\r\n};\r\n\r\nexport type CardTimestamp = {\r\n __typename: 'CardTimestamp';\r\n description: Maybe;\r\n time: Scalars['DateTime'];\r\n timestampId: Scalars['ID'];\r\n type: Scalars['String'];\r\n};\r\n\r\nexport type CardTimestampInput = {\r\n description: InputMaybe;\r\n time: Scalars['DateTime'];\r\n timestampId: Scalars['ID'];\r\n type: Scalars['String'];\r\n};\r\n\r\nexport type CardUnit = {\r\n __typename: 'CardUnit';\r\n abbreviation: Scalars['String'];\r\n cardVehicle: Maybe;\r\n completeFlightInstanceId: Maybe;\r\n name: Scalars['String'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type CardUnitInput = {\r\n abbreviation: Scalars['String'];\r\n cardVehicle: InputMaybe;\r\n completeFlightInstanceId: InputMaybe;\r\n name: Scalars['String'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type CardVehicle = {\r\n __typename: 'CardVehicle';\r\n registrationNumber: Maybe;\r\n type: Maybe;\r\n vehicleId: Maybe;\r\n};\r\n\r\nexport type CardVehicleInput = {\r\n registrationNumber: InputMaybe;\r\n type: InputMaybe;\r\n vehicleId: InputMaybe;\r\n};\r\n\r\nexport type CardWaypoint = {\r\n __typename: 'CardWaypoint';\r\n abbreviation: Scalars['String'];\r\n address: Address;\r\n name: Scalars['String'];\r\n type: WaypointType;\r\n waypointId: Scalars['ID'];\r\n};\r\n\r\nexport type CardWaypointInput = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n name: Scalars['String'];\r\n type: WaypointType;\r\n waypointId: Scalars['ID'];\r\n};\r\n\r\nexport type CardWaypointV2 = {\r\n __typename: 'CardWaypointV2';\r\n abbreviation: Scalars['String'];\r\n address: Address;\r\n arrivalTime: Maybe;\r\n departureTime: Maybe;\r\n eta: Maybe;\r\n eteInMinutes: Maybe;\r\n etlo: Maybe;\r\n etloInMinutes: Maybe;\r\n name: Scalars['String'];\r\n type: WaypointType;\r\n waypointId: Scalars['ID'];\r\n};\r\n\r\nexport type CardWaypointV2Input = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n arrivalTime: InputMaybe;\r\n departureTime: InputMaybe;\r\n eta: InputMaybe;\r\n eteInMinutes: InputMaybe;\r\n etlo: InputMaybe;\r\n etloInMinutes: InputMaybe;\r\n name: Scalars['String'];\r\n type: WaypointType;\r\n waypointId: Scalars['ID'];\r\n};\r\n\r\nexport type CardsForSameDestination = {\r\n __typename: 'CardsForSameDestination';\r\n cardId: Scalars['ID'];\r\n latitude: Scalars['Float'];\r\n longitude: Scalars['Float'];\r\n};\r\n\r\nexport type CardsForSameDestinationInput = {\r\n cardId: Scalars['ID'];\r\n latitude: Scalars['Float'];\r\n longitude: Scalars['Float'];\r\n};\r\n\r\nexport enum CareLevel {\r\n ALS = 'ALS',\r\n BLS = 'BLS',\r\n CCT = 'CCT',\r\n}\r\n\r\nexport type ChangeCallType = {\r\n requestId: Scalars['ID'];\r\n requestedOperationType: OperationType;\r\n};\r\n\r\nexport type ChangeCardCallStatus = {\r\n id: Scalars['ID'];\r\n status: CardCallStatus;\r\n};\r\n\r\nexport type ChangeRequestCancellationReason = {\r\n cancellationReasonId: Scalars['ID'];\r\n cancellationReasonNotes: InputMaybe;\r\n cancellationSecondaryReasonId: InputMaybe;\r\n requestId: Scalars['ID'];\r\n};\r\n\r\nexport type ChangeRequestType = {\r\n requestId: Scalars['ID'];\r\n requestedOperationType: OperationType;\r\n};\r\n\r\nexport type ChangeUnit = {\r\n cardId: Scalars['ID'];\r\n newUnitId: Scalars['ID'];\r\n};\r\n\r\nexport type ChangeVehicle = {\r\n operationId: Scalars['ID'];\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type ChangeVehicleFlightLogProcess = {\r\n flightLogProcess: FlightLogProcess;\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CleanupActiveAlerts = {\r\n companyCodes: Array;\r\n};\r\n\r\nexport type CleanupCardActiveAlerts = {\r\n cardId: Scalars['ID'];\r\n};\r\n\r\nexport type CleanupCards = {\r\n cardNumberFilter: InputMaybe>>;\r\n companyCode: InputMaybe;\r\n excludeCardNumberFilter: InputMaybe>>;\r\n};\r\n\r\nexport type CleanupPendingExternalActions = {\r\n entityId: Scalars['ID'];\r\n};\r\n\r\nexport type ClearPendingArchiveMedicalFacility = {\r\n medicalFacilityId: Scalars['ID'];\r\n};\r\n\r\nexport type CloseCard = {\r\n cardId: Scalars['ID'];\r\n closeComment: InputMaybe;\r\n confirmPatient: InputMaybe;\r\n overrideMissingAMRCADNumberValidation: InputMaybe;\r\n overrideMissingTimestampsValidation: InputMaybe;\r\n postTransportDebriefCompleted: InputMaybe;\r\n};\r\n\r\nexport type CollectionMetadata = {\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CommandExecutionOptions = {\r\n includeEntities: Scalars['Boolean'];\r\n includeEvents: Scalars['Boolean'];\r\n includeViews: Scalars['Boolean'];\r\n};\r\n\r\nexport type CommandResult = {\r\n __typename: 'CommandResult';\r\n command: Maybe;\r\n data: Scalars['JSON'];\r\n emittedEvents: Array;\r\n entities: Maybe;\r\n errors: Array;\r\n status: CommandResultStatus;\r\n};\r\n\r\nexport enum CommandResultStatus {\r\n Failed = 'Failed',\r\n PartiallySucceeded = 'PartiallySucceeded',\r\n Succeeded = 'Succeeded',\r\n}\r\n\r\nexport type CommunicationCenter = Entity &\r\n Evented & {\r\n __typename: 'CommunicationCenter';\r\n _events: MessageEnvelopeCollection;\r\n activeAlerts: Maybe>>;\r\n cardSummaries: Maybe>>;\r\n communicationCenterTransportOfferOption: CommunicationCenterTransportOfferOption;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n emailAddress: Maybe;\r\n id: Scalars['ID'];\r\n includeCompetitors: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n people: Maybe>>;\r\n playAlertForManualPositionReports: Scalars['Boolean'];\r\n primaryPhoneNumber: Maybe;\r\n regions: Array;\r\n showReferToGmrWarning: Maybe;\r\n states: Maybe>>;\r\n timezoneCd: Maybe;\r\n transferCenterRegion: Maybe;\r\n transferCenters: Array;\r\n unitSummaries: Maybe>>;\r\n vehicleSummaries: Maybe>>;\r\n vehicles: Maybe>>;\r\n };\r\n\r\nexport type CommunicationCenter_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CommunicationCenterCollection = {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array;\r\n meta: CommunicationCenterCollectionMetadata;\r\n};\r\n\r\nexport type CommunicationCenterCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CommunicationCenterCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CommunicationCenterFilter = {\r\n companyId: InputMaybe;\r\n companyIdList: InputMaybe>;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type CommunicationCenterQueries = {\r\n __typename: 'CommunicationCenterQueries';\r\n all: CommunicationCenterCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type CommunicationCenterQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CommunicationCenterQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CommunicationCenterTransportOfferOption = Entity &\r\n Evented & {\r\n __typename: 'CommunicationCenterTransportOfferOption';\r\n _events: MessageEnvelopeCollection;\r\n communicationCenter: Maybe;\r\n communicationCenterId: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n includeAbortedUnit: Scalars['Boolean'];\r\n includeCompetitors: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n minimumFlightRule: Maybe;\r\n requestedVehicleType: Maybe;\r\n requiredCapabilities: Array;\r\n transportOfferAlgorithm: Maybe;\r\n };\r\n\r\nexport type CommunicationCenterTransportOfferOption_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CommunicationCenterTransportOfferOptionCollection = {\r\n __typename: 'CommunicationCenterTransportOfferOptionCollection';\r\n items: Array;\r\n meta: CommunicationCenterTransportOfferOptionCollectionMetadata;\r\n};\r\n\r\nexport type CommunicationCenterTransportOfferOptionCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CommunicationCenterTransportOfferOptionCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type Company = Entity &\r\n Evented & {\r\n __typename: 'Company';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n activationRules: Maybe>>;\r\n activeTimelines: Array;\r\n agencies: Maybe>>;\r\n applicationNotifications: Maybe>>;\r\n baseControlZones: Array;\r\n bases: Array;\r\n callNumberPrefix: Maybe;\r\n communicationCenters: Array;\r\n companyCode: Scalars['String'];\r\n configurationSettings: Maybe>>;\r\n controlZones: Array;\r\n crewPatientInfoPageNotificationTemplateId: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n enableNotificationGroupTypes: Scalars['Boolean'];\r\n externalActions: Array;\r\n flightFollowingFields: Maybe>>;\r\n fuelTanks: Array;\r\n gLCode: Maybe;\r\n gpsFeedResetsPositionReportTime: Scalars['Boolean'];\r\n hasPrivateUnits: Scalars['Boolean'];\r\n id: Scalars['ID'];\r\n imageUri: Maybe;\r\n includeCompetitors: Scalars['Boolean'];\r\n isOemCompany: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n notificationGroups: Array;\r\n notificationTemplates: Maybe>>;\r\n oemAssets: Maybe>>;\r\n oemPlans: Array;\r\n offerAlgorithms: Array;\r\n people: Array;\r\n programs: Array;\r\n questionnaireResponses: Array;\r\n questionnaires: Array;\r\n regionGroups: Array;\r\n requesters: Maybe>>;\r\n requireSkipReasonsForNonCompanyTransportOffers: Maybe;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: Scalars['Boolean'];\r\n specialtyTeamMembers: Array;\r\n specialtyTeams: Array;\r\n timelines: Maybe>>;\r\n timezoneCd: Maybe;\r\n transferCenters: Array;\r\n transportCheckTimerDurationInMinutes: Maybe;\r\n trmUserAgencies: Array;\r\n trmUserMedicalFacilities: Array;\r\n trmUserPrograms: Array;\r\n trmUsers: Array;\r\n unitActivationRules: Array;\r\n unitRemainsInServiceWithNoVehicle: Scalars['Boolean'];\r\n vehicleControlZones: Array;\r\n vehicles: Array;\r\n };\r\n\r\nexport type Company_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CompanyCollection = {\r\n __typename: 'CompanyCollection';\r\n items: Array;\r\n meta: CompanyCollectionMetadata;\r\n};\r\n\r\nexport type CompanyCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CompanyCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CompanyFilter = {\r\n name: InputMaybe;\r\n};\r\n\r\nexport type CompanyQueries = {\r\n __typename: 'CompanyQueries';\r\n all: CompanyCollection;\r\n byCompanyCode: Maybe;\r\n byId: Maybe;\r\n};\r\n\r\nexport type CompanyQueriesallArgs = {\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CompanyQueriesbyCompanyCodeArgs = {\r\n companyCode: Scalars['ID'];\r\n};\r\n\r\nexport type CompanyQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type CompleteFlightInstance = Entity &\r\n Evented & {\r\n __typename: 'CompleteFlightInstance';\r\n _events: MessageEnvelopeCollection;\r\n apiKey: Scalars['String'];\r\n completeFlightInstanceName: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isPrimary: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n units: Maybe>>;\r\n url: Scalars['String'];\r\n username: Scalars['String'];\r\n };\r\n\r\nexport type CompleteFlightInstance_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type CompleteFlightInstanceCollection = {\r\n __typename: 'CompleteFlightInstanceCollection';\r\n items: Array;\r\n meta: CompleteFlightInstanceCollectionMetadata;\r\n};\r\n\r\nexport type CompleteFlightInstanceCollectionMetadata = CollectionMetadata & {\r\n __typename: 'CompleteFlightInstanceCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type CompleteFlightInstanceQueries = {\r\n __typename: 'CompleteFlightInstanceQueries';\r\n all: CompleteFlightInstanceCollection;\r\n};\r\n\r\nexport type CompleteFlightInstanceQueriesallArgs = {\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ConfigurationSetting = Entity &\r\n Evented & {\r\n __typename: 'ConfigurationSetting';\r\n _events: MessageEnvelopeCollection;\r\n assetReassignedDeclineReasonId: Maybe;\r\n bugRequestEmail: Maybe;\r\n company: Maybe;\r\n companyId: Maybe;\r\n crewGoingByGroundOutOfServiceReason: Maybe;\r\n crewGoingByGroundOutOfServiceReasonId: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n defaultUnitCommittedDeclineReason: Maybe;\r\n defaultUnitCommittedDeclineReasonId: Maybe;\r\n defaultUnitOutOfServiceDeclineReasonId: Maybe;\r\n externallyCancelledCancellationReasonId: Maybe;\r\n featureRequestEmail: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n pilotReportGracePeriodInMinutes: Maybe;\r\n requestReferredExternallyCancellationReasonId: Maybe;\r\n requestReferredInternallyCancellationReasonId: Maybe;\r\n sameDestinationWarningThresholdInMinutes: Maybe;\r\n };\r\n\r\nexport type ConfigurationSetting_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ConfigurationSettingCollection = {\r\n __typename: 'ConfigurationSettingCollection';\r\n items: Array;\r\n meta: ConfigurationSettingCollectionMetadata;\r\n};\r\n\r\nexport type ConfigurationSettingCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ConfigurationSettingCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type ConfigurationSettingQueries = {\r\n __typename: 'ConfigurationSettingQueries';\r\n global: Maybe;\r\n};\r\n\r\nexport type ConfirmManifest = {\r\n tripLegId: Scalars['ID'];\r\n};\r\n\r\nexport type ConfirmPositionReport = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type ControlZone = Entity &\r\n Evented & {\r\n __typename: 'ControlZone';\r\n _events: MessageEnvelopeCollection;\r\n baseControlZones: Array;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n vehicleControlZones: Maybe>>;\r\n vehicles: Maybe>>;\r\n };\r\n\r\nexport type ControlZone_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ControlZoneCollection = {\r\n __typename: 'ControlZoneCollection';\r\n items: Array;\r\n meta: ControlZoneCollectionMetadata;\r\n};\r\n\r\nexport type ControlZoneCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ControlZoneCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type ControlZoneFilter = {\r\n companyId: Scalars['ID'];\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type ControlZoneQueries = {\r\n __typename: 'ControlZoneQueries';\r\n all: ControlZoneCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type ControlZoneQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ControlZoneQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type Coordinates = {\r\n __typename: 'Coordinates';\r\n latitude: Maybe;\r\n longitude: Maybe;\r\n};\r\n\r\nexport type CoordinatesInput = {\r\n latitude: InputMaybe;\r\n longitude: InputMaybe;\r\n};\r\n\r\nexport type CopyAlert = {\r\n alertId: Scalars['ID'];\r\n newName: Scalars['String'];\r\n};\r\n\r\nexport type CopyNotificationTemplate = {\r\n newName: Scalars['String'];\r\n notificationTemplateId: Scalars['ID'];\r\n};\r\n\r\nexport type CopyOfferAlgorithm = {\r\n id: Scalars['ID'];\r\n newName: Scalars['String'];\r\n};\r\n\r\nexport type CreateGroundRun = {\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type CreateMaintenanceOperation = {\r\n callbackNumber: InputMaybe;\r\n caller: InputMaybe;\r\n destinationAddress: AddressInput;\r\n destinationLocationId: InputMaybe;\r\n destinationTimezoneCd: InputMaybe;\r\n isRotorWingLz: InputMaybe;\r\n returnUnitToPost: InputMaybe;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type CreatePrecautionaryLanding = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n arriveVehicle: InputMaybe;\r\n isRotorWingLz: InputMaybe;\r\n locationId: InputMaybe;\r\n name: Scalars['String'];\r\n note: InputMaybe;\r\n timezoneCd: InputMaybe;\r\n tripId: Scalars['ID'];\r\n type: WaypointType;\r\n};\r\n\r\nexport type CreatePrecautionaryLandingV2 = {\r\n abbreviation: Scalars['String'];\r\n abortReasonId: InputMaybe;\r\n abortSecondaryReasonId: InputMaybe;\r\n address: AddressInput;\r\n agencyLocationId: InputMaybe;\r\n completeTransportWithThirdParty: Scalars['Boolean'];\r\n crewWillReturnToAircraft: InputMaybe;\r\n gmrCADNumber: InputMaybe;\r\n gmrUtilizationStatus: InputMaybe;\r\n isRotorWingLz: InputMaybe;\r\n locationId: InputMaybe;\r\n name: Scalars['String'];\r\n note: InputMaybe;\r\n replacementUnitId: InputMaybe;\r\n timezoneCd: InputMaybe;\r\n tripId: Scalars['ID'];\r\n type: WaypointType;\r\n};\r\n\r\nexport type CreateRequest = {\r\n atloInMinutes: InputMaybe;\r\n commitUnitToStandby: InputMaybe;\r\n etloInMinutes: InputMaybe;\r\n isStandbyRequest: Scalars['Boolean'];\r\n regionId: InputMaybe;\r\n requestedOperationType: OperationType;\r\n requestedVehicleType: InputMaybe;\r\n transportOfferAlgorithm: InputMaybe;\r\n transportTrackingLink: InputMaybe;\r\n webOrderCallType: InputMaybe;\r\n};\r\n\r\nexport type CreateSystemCrewNotification = {\r\n cardId: Scalars['ID'];\r\n notificationType: NotificationType;\r\n};\r\n\r\nexport type CreateTrainingOperation = {\r\n callbackNumber: InputMaybe;\r\n caller: InputMaybe;\r\n destinationAddress: AddressInput;\r\n destinationLocationId: InputMaybe;\r\n destinationTimezoneCd: InputMaybe;\r\n isRotorWingLz: InputMaybe;\r\n returnUnitToPost: InputMaybe;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type DateRangeFilter = {\r\n begin: InputMaybe;\r\n end: InputMaybe;\r\n};\r\n\r\nexport type DeactivateTrmUser = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeclineAndAssignNewTransportOffer = {\r\n declineReasonId: InputMaybe;\r\n declineSecondaryReasonId: InputMaybe;\r\n id: Scalars['ID'];\r\n newId: Scalars['ID'];\r\n notes: InputMaybe;\r\n};\r\n\r\nexport type DeclineCategory = Entity &\r\n Evented & {\r\n __typename: 'DeclineCategory';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n declineReasons: Array;\r\n defaultDeclineReason: Maybe;\r\n defaultDeclineReasonId: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n };\r\n\r\nexport type DeclineCategory_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type DeclineCategoryCollection = {\r\n __typename: 'DeclineCategoryCollection';\r\n items: Array;\r\n meta: DeclineCategoryCollectionMetadata;\r\n};\r\n\r\nexport type DeclineCategoryCollectionMetadata = CollectionMetadata & {\r\n __typename: 'DeclineCategoryCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type DeclineCategoryFilter = {\r\n first: InputMaybe;\r\n nameLike: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type DeclineCategoryQueries = {\r\n __typename: 'DeclineCategoryQueries';\r\n all: DeclineCategoryCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type DeclineCategoryQueriesallArgs = {\r\n filter: InputMaybe;\r\n};\r\n\r\nexport type DeclineCategoryQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeclineOrAbortOperation = {\r\n agencyLocationId: InputMaybe;\r\n cancellationRasonId: InputMaybe;\r\n cancellationReasonNotes: InputMaybe;\r\n cancellationSecondaryReasonId: InputMaybe;\r\n completeTransportWithThirdParty: InputMaybe;\r\n crewWillReturnToAircraft: InputMaybe;\r\n declineReasonId: Scalars['ID'];\r\n declineSecondaryReasonId: InputMaybe;\r\n gmrCADNumber: InputMaybe;\r\n gmrUtilizationStatus: InputMaybe;\r\n nonReferralReasonId: InputMaybe;\r\n nonReferralReasonNotes: InputMaybe;\r\n notes: InputMaybe;\r\n operationId: Scalars['ID'];\r\n replacementUnitId: InputMaybe;\r\n};\r\n\r\nexport type DeclineReason = Entity &\r\n Evented & {\r\n __typename: 'DeclineReason';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n canBeAbortReason: Scalars['Boolean'];\r\n canBeBulkSkipReason: Scalars['Boolean'];\r\n canBeOneCallSkipReason: Scalars['Boolean'];\r\n canBeSkipReason: Scalars['Boolean'];\r\n configurationSettings: Maybe>>;\r\n controllable: Scalars['Boolean'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n declineCategories: Maybe>>;\r\n declineCategory: DeclineCategory;\r\n declineCategoryId: Scalars['ID'];\r\n declineSecondaryReasons: Array;\r\n id: Scalars['ID'];\r\n isUnitAvailableAfterAbort: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n transportOffers: Maybe>>;\r\n };\r\n\r\nexport type DeclineReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type DeclineReasonCollection = {\r\n __typename: 'DeclineReasonCollection';\r\n items: Array;\r\n meta: DeclineReasonCollectionMetadata;\r\n};\r\n\r\nexport type DeclineReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'DeclineReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type DeclineReasonFilter = {\r\n abortReasonsOnly: InputMaybe;\r\n bulkSkipReasonsOnly: InputMaybe;\r\n declineCategoryId: InputMaybe;\r\n excludeReasonsWithSecondary: InputMaybe;\r\n first: InputMaybe;\r\n nameLike: InputMaybe;\r\n oneCallSkipReasonsOnly: InputMaybe;\r\n skip: InputMaybe;\r\n skipReasonsOnly: InputMaybe;\r\n};\r\n\r\nexport type DeclineReasonQueries = {\r\n __typename: 'DeclineReasonQueries';\r\n all: DeclineReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type DeclineReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n};\r\n\r\nexport type DeclineReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeclineSecondaryReason = Entity &\r\n Evented & {\r\n __typename: 'DeclineSecondaryReason';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n declineReason: DeclineReason;\r\n declineReasonId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n transportOffers: Maybe>>;\r\n };\r\n\r\nexport type DeclineSecondaryReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type DeclineSecondaryReasonCollection = {\r\n __typename: 'DeclineSecondaryReasonCollection';\r\n items: Array;\r\n meta: DeclineSecondaryReasonCollectionMetadata;\r\n};\r\n\r\nexport type DeclineSecondaryReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'DeclineSecondaryReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type DeclineSecondaryReasonFilter = {\r\n declineReasonId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type DeclineSecondaryReasonQueries = {\r\n __typename: 'DeclineSecondaryReasonQueries';\r\n all: DeclineSecondaryReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type DeclineSecondaryReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n};\r\n\r\nexport type DeclineSecondaryReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeclineTransportOffer = {\r\n agencyLocationId: InputMaybe;\r\n cancellationReasonId: InputMaybe;\r\n cancellationReasonNotes: InputMaybe;\r\n cancellationSecondaryReasonId: InputMaybe;\r\n declineReasonId: Scalars['ID'];\r\n declineSecondaryReasonId: InputMaybe;\r\n gmrCADNumber: InputMaybe;\r\n gmrUtilizationStatus: InputMaybe;\r\n id: Scalars['ID'];\r\n nonReferralReasonId: InputMaybe;\r\n nonReferralReasonNotes: InputMaybe;\r\n notes: InputMaybe;\r\n replacementUnitId: InputMaybe;\r\n useThirdPartyUnit: InputMaybe;\r\n};\r\n\r\nexport type DeclineTransportOfferAndDelayAssignment = {\r\n alertTimeInMinutesFromNow: InputMaybe;\r\n assignmentDelayedReasonId: Scalars['ID'];\r\n declineNotes: InputMaybe;\r\n declineReasonId: Scalars['ID'];\r\n declineSecondaryReasonId: InputMaybe;\r\n delayNotes: InputMaybe;\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeferralDueDate = {\r\n __typename: 'DeferralDueDate';\r\n dueDate: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n notes: Maybe;\r\n triggerValue: Maybe;\r\n};\r\n\r\nexport type DeferralDueDateInput = {\r\n dueDate: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n notes: InputMaybe;\r\n triggerValue: InputMaybe;\r\n};\r\n\r\nexport type DeferralDueDateWithOptionalId = {\r\n __typename: 'DeferralDueDateWithOptionalId';\r\n deferralDueDateId: Maybe;\r\n dueDate: Scalars['DateTime'];\r\n notes: Maybe;\r\n triggerValue: Maybe;\r\n};\r\n\r\nexport type DeferralDueDateWithOptionalIdInput = {\r\n deferralDueDateId: InputMaybe;\r\n dueDate: Scalars['DateTime'];\r\n notes: InputMaybe;\r\n triggerValue: InputMaybe;\r\n};\r\n\r\nexport type DelayAssignment = {\r\n alertTimeInMinutesFromNow: InputMaybe;\r\n assignmentDelayedReasonId: Scalars['ID'];\r\n notes: InputMaybe;\r\n requestId: Scalars['ID'];\r\n};\r\n\r\nexport type DelayUnit = {\r\n id: Scalars['ID'];\r\n plannedAvailableNotes: Scalars['String'];\r\n plannedAvailableTime: Scalars['DateTime'];\r\n};\r\n\r\nexport type DeleteAccessibleItem = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteActivationRule = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteActiveAlert = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteActiveTimeline = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteAgency = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteAgencyLocation = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteAirport = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteAlert = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteApplicationNotification = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteAssignmentDelayedReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteBase = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteBaseControlZone = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteBaseMedicalControlContact = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCancellationCategory = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCancellationReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCancellationSecondaryReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCapability = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCard = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCardLink = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCardNote = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCardNoteArchive = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCardReOpenReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCommunicationCenter = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCommunicationCenterTransportOfferOption = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCompany = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteCompleteFlightInstance = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteControlZone = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteDeclineCategory = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteDeclineReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteDeclineSecondaryReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteDepartment = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteDiversionReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteEntityCapability = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteEscortRequest = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteExternalAction = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteExternalActionType = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteExternalReference = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteFacilityNonAcceptanceReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteFbo = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteFirewallRule = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteFlightFollowingReport = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteFuelTank = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteLocation = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteLocationHazard = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteLocationHazardAttachment = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteManifestEntry = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteMedicalControlContactLogEntry = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteMedicalFacility = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteMedicalFacilityContact = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteMedicalFacilityPhysician = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteMedicalFacilityUnit = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteNextDueType = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteNonReferralReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteNotification = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteNotificationGroup = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteNotificationGroupMember = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteNotificationRecipient = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteNotificationRecipients = {\r\n recipientIds: Array;\r\n};\r\n\r\nexport type DeleteNotificationSubscription = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteNotificationTemplate = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteOemActivity = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteOemAsset = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteOemPlan = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteOemPlanChangeRequest = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteOfferAlgorithm = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteOperation = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteOutOfServiceEvent = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteOutOfServiceEventNote = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteOutOfServiceReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteOutOfServiceSecondaryReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeletePassdownLog = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeletePerson = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeletePhysician = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeletePositionReport = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeletePositionReportAlert = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteProgram = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteProgramBase = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteQuestion = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteQuestionnaire = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteQuestionnaireQuestionResponse = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteQuestionnaireQuestionResponseNote = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteQuestionnaireResponse = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteQuestionnaireSection = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteQuestionnaireSectionQuestion = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteReceivingFacilityRequest = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteRegion = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteRegionBase = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteRegionGroup = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteRendezvousRequest = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteRequestPatient = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteRequesterRole = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteSpecialtyTeam = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteSpecialtyTeamMember = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteSupportRequest = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTimeline = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTimelineItem = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTimestamp = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTimestampType = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTimezone = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTransferCenter = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTransferReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTransportOffer = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTransportReason = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTrip = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTripLegManifestEntry = {\r\n removeFromFutureLegs: InputMaybe;\r\n tripLegManifestEntryId: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTripPassenger = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteTrmUser = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteUnit = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteUnitActivationRule = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteUnitEMSystemMapping = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteUnitNote = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteUnitPosition = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteUnitShift = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteVehicle = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteVehicleConfigurationClass = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteVehicleControlZone = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteVehicleDisposition = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteVehicleMaintenance = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteVehicleMake = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteVehicleModel = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteVehicleStateInspection = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeleteWaypoint = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DeliverTrackedMessage = {\r\n trackedMessageId: Scalars['ID'];\r\n};\r\n\r\nexport type DenyReceivingFacilityRequest = {\r\n id: Scalars['ID'];\r\n nonAcceptanceReasonId: Scalars['ID'];\r\n note: InputMaybe;\r\n personsInvolved: InputMaybe;\r\n time: Scalars['DateTime'];\r\n};\r\n\r\nexport type DenyTrmUser = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DepartVehicle = {\r\n isEmergent: InputMaybe;\r\n note: InputMaybe;\r\n odometerReading: InputMaybe;\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type Department = Entity &\r\n Evented & {\r\n __typename: 'Department';\r\n _events: MessageEnvelopeCollection;\r\n code: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n people: Maybe>>;\r\n regionGroups: Array;\r\n };\r\n\r\nexport type Department_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type DepartmentCollection = {\r\n __typename: 'DepartmentCollection';\r\n items: Array;\r\n meta: DepartmentCollectionMetadata;\r\n};\r\n\r\nexport type DepartmentCollectionMetadata = CollectionMetadata & {\r\n __typename: 'DepartmentCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type DevNoteCollection = {\r\n __typename: 'DevNoteCollection';\r\n items: Array;\r\n meta: DevNoteCollectionMetadata;\r\n};\r\n\r\nexport type DevNoteCollectionMetadata = CollectionMetadata & {\r\n __typename: 'DevNoteCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type DevNoteFilter = {\r\n noteTimeFrom: InputMaybe;\r\n};\r\n\r\nexport type DevNoteResult = {\r\n __typename: 'DevNoteResult';\r\n authorId: Scalars['ID'];\r\n cardNumber: Maybe;\r\n companyName: Maybe;\r\n content: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n name: Maybe;\r\n noteTime: Maybe;\r\n};\r\n\r\nexport type DisableUnit = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type DismissApplicationNotification = {\r\n applicationNotificationId: Scalars['ID'];\r\n};\r\n\r\nexport type DisregardExternalAction = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum DistanceCalculation {\r\n FromAircraft = 'FromAircraft',\r\n FromBase = 'FromBase',\r\n}\r\n\r\nexport type DiversionReason = Entity &\r\n Evented & {\r\n __typename: 'DiversionReason';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n requests: Maybe>>;\r\n };\r\n\r\nexport type DiversionReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type DiversionReasonCollection = {\r\n __typename: 'DiversionReasonCollection';\r\n items: Array;\r\n meta: DiversionReasonCollectionMetadata;\r\n};\r\n\r\nexport type DiversionReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'DiversionReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type DiversionReasonFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type DiversionReasonQueries = {\r\n __typename: 'DiversionReasonQueries';\r\n all: DiversionReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type DiversionReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type DiversionReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum DiversionType {\r\n Diversion = 'Diversion',\r\n FollowOn = 'FollowOn',\r\n}\r\n\r\nexport type DivertReceivingFacilityRequest = {\r\n divertedToFacilityId: Scalars['ID'];\r\n nonAcceptanceReasonId: Scalars['ID'];\r\n note: InputMaybe;\r\n personsInvolved: InputMaybe;\r\n previousFacilityId: Scalars['ID'];\r\n requestId: Scalars['ID'];\r\n time: Scalars['DateTime'];\r\n};\r\n\r\nexport type DuplicateRequest = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum EmployeeType {\r\n Contingent = 'Contingent',\r\n NonEmployee = 'NonEmployee',\r\n Prn = 'Prn',\r\n Regular = 'Regular',\r\n Temporary = 'Temporary',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport type EnableUnit = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type EndOutOfServiceEvent = {\r\n endTime: InputMaybe;\r\n estimatedEndTime: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isAirworthy: Scalars['Boolean'];\r\n notes: InputMaybe;\r\n reasonId: Scalars['ID'];\r\n scheduledStartTime: InputMaybe;\r\n secondaryReasonComment: InputMaybe;\r\n secondaryReasonId: InputMaybe;\r\n startTime: InputMaybe;\r\n type: OutOfServiceType;\r\n unitRemainsOutOfServiceNotes: InputMaybe;\r\n unitRemainsOutOfServiceReasonId: InputMaybe;\r\n unitRemainsOutOfServiceSecondaryReasonId: InputMaybe;\r\n};\r\n\r\nexport type EngineParameters = {\r\n __typename: 'EngineParameters';\r\n starts: Maybe;\r\n time: Maybe;\r\n};\r\n\r\nexport type EngineParametersInput = {\r\n starts: InputMaybe;\r\n time: InputMaybe;\r\n};\r\n\r\nexport type EnsureThirdPartyUnit = {\r\n unitId: Scalars['ID'];\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type EnsureThirdPartyUnits = {\r\n companyId: InputMaybe;\r\n unitIds: InputMaybe>>;\r\n};\r\n\r\nexport type EnsureThirdPartyVehicleAndUnit = {\r\n companyId: Scalars['ID'];\r\n unitAbbreviation: Scalars['String'];\r\n unitId: Scalars['ID'];\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type Entity = {\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type EntityCapability = Entity &\r\n Evented & {\r\n __typename: 'EntityCapability';\r\n _events: MessageEnvelopeCollection;\r\n capability: Capability;\r\n capabilityId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n entityId: Scalars['ID'];\r\n entityType: EntityType;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n };\r\n\r\nexport type EntityCapability_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type EntityCapabilityCollection = {\r\n __typename: 'EntityCapabilityCollection';\r\n items: Array;\r\n meta: EntityCapabilityCollectionMetadata;\r\n};\r\n\r\nexport type EntityCapabilityCollectionMetadata = CollectionMetadata & {\r\n __typename: 'EntityCapabilityCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type EntityCapabilityFilter = {\r\n capabilityEntityType: InputMaybe;\r\n entityId: InputMaybe;\r\n};\r\n\r\nexport type EntityCapabilityQueries = {\r\n __typename: 'EntityCapabilityQueries';\r\n all: EntityCapabilityCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type EntityCapabilityQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type EntityCapabilityQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type EntityQueries = {\r\n __typename: 'EntityQueries';\r\n byId: Maybe;\r\n byIds: Array;\r\n};\r\n\r\nexport type EntityQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n type: TcsEntityType;\r\n};\r\n\r\nexport type EntityQueriesbyIdsArgs = {\r\n ids: Array;\r\n type: TcsEntityType;\r\n};\r\n\r\nexport type EntityRef = {\r\n __typename: 'EntityRef';\r\n entityId: Scalars['ID'];\r\n entityType: EntityType;\r\n};\r\n\r\nexport type EntityRefInput = {\r\n entityId: Scalars['ID'];\r\n entityType: EntityType;\r\n};\r\n\r\nexport type EntityReference = {\r\n __typename: 'EntityReference';\r\n entityId: Scalars['ID'];\r\n entityPath: Scalars['String'];\r\n};\r\n\r\nexport type EntityReferenceInput = {\r\n entityId: Scalars['ID'];\r\n entityPath: Scalars['String'];\r\n};\r\n\r\nexport enum EntityType {\r\n Airport = 'Airport',\r\n Base = 'Base',\r\n Card = 'Card',\r\n CommunicationCenter = 'CommunicationCenter',\r\n Company = 'Company',\r\n ControlZone = 'ControlZone',\r\n Location = 'Location',\r\n MedicalFacility = 'MedicalFacility',\r\n OutOfServiceEvent = 'OutOfServiceEvent',\r\n Person = 'Person',\r\n Program = 'Program',\r\n Region = 'Region',\r\n Timer = 'Timer',\r\n Unit = 'Unit',\r\n Unspecified = 'Unspecified',\r\n Vehicle = 'Vehicle',\r\n}\r\n\r\nexport type Error = {\r\n __typename: 'Error';\r\n code: Scalars['Int'];\r\n message: Scalars['String'];\r\n};\r\n\r\nexport type EscortRequest = Entity &\r\n Evented & {\r\n __typename: 'EscortRequest';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n escortName: Scalars['String'];\r\n escortWeightInKg: Scalars['Float'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n relationship: PatientRelationshipType;\r\n request: Request;\r\n requestApprovalTime: Scalars['DateTime'];\r\n requestId: Scalars['ID'];\r\n };\r\n\r\nexport type EscortRequest_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type EscortRequestCollection = {\r\n __typename: 'EscortRequestCollection';\r\n items: Array;\r\n meta: EscortRequestCollectionMetadata;\r\n};\r\n\r\nexport type EscortRequestCollectionMetadata = CollectionMetadata & {\r\n __typename: 'EscortRequestCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type EstimatedDuration = Entity &\r\n Evented & {\r\n __typename: 'EstimatedDuration';\r\n _events: MessageEnvelopeCollection;\r\n asOfTime: Scalars['DateTime'];\r\n calculatedTripLeg: Maybe;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n durationInMinutes: Scalars['Int'];\r\n durationType: EstimatedDurationType;\r\n estimateSource: EstimatedDurationSource;\r\n id: Scalars['ID'];\r\n isOfficial: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n ownerId: Scalars['ID'];\r\n positionReport: Maybe;\r\n positionReportId: Maybe;\r\n trip: Trip;\r\n tripId: Scalars['ID'];\r\n tripLeg: Maybe;\r\n waypoint: Maybe;\r\n };\r\n\r\nexport type EstimatedDuration_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type EstimatedDurationCollection = {\r\n __typename: 'EstimatedDurationCollection';\r\n items: Array;\r\n meta: EstimatedDurationCollectionMetadata;\r\n};\r\n\r\nexport type EstimatedDurationCollectionMetadata = CollectionMetadata & {\r\n __typename: 'EstimatedDurationCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum EstimatedDurationSource {\r\n Gps = 'Gps',\r\n Pilot = 'Pilot',\r\n}\r\n\r\nexport enum EstimatedDurationType {\r\n TripLeg = 'TripLeg',\r\n Waypoint = 'Waypoint',\r\n}\r\n\r\nexport type Eta = Entity &\r\n Evented & {\r\n __typename: 'Eta';\r\n _events: MessageEnvelopeCollection;\r\n asOfTime: Scalars['DateTime'];\r\n calculatedArrivalTime: Scalars['DateTime'];\r\n companyId: Scalars['ID'];\r\n currentTrip: Trip;\r\n currentTripId: Scalars['ID'];\r\n currentWaypoint: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n estimatedArrivalTime: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n waypoint: Waypoint;\r\n waypointId: Scalars['ID'];\r\n };\r\n\r\nexport type Eta_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type EtaCollection = {\r\n __typename: 'EtaCollection';\r\n items: Array;\r\n meta: EtaCollectionMetadata;\r\n};\r\n\r\nexport type EtaCollectionMetadata = CollectionMetadata & {\r\n __typename: 'EtaCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type Evented = {\r\n _events: MessageEnvelopeCollection;\r\n};\r\n\r\nexport type Evented_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type EventedFilter = {\r\n userOnly: InputMaybe;\r\n};\r\n\r\nexport type ExternalAction = Entity &\r\n Evented & {\r\n __typename: 'ExternalAction';\r\n _events: MessageEnvelopeCollection;\r\n actionBodyJson: Scalars['String'];\r\n actionType: ExternalActionType;\r\n actionTypeId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n completedById: Maybe;\r\n dateCompleted: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n entityId: Scalars['ID'];\r\n entityType: EntityType;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n notes: Maybe;\r\n status: ExternalActionStatus;\r\n };\r\n\r\nexport type ExternalAction_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ExternalActionAcceptReferralRequest = {\r\n __typename: 'ExternalActionAcceptReferralRequest';\r\n cardId: Scalars['ID'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type ExternalActionAcceptReferralRequestInput = {\r\n cardId: Scalars['ID'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type ExternalActionActivateUnit = {\r\n __typename: 'ExternalActionActivateUnit';\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type ExternalActionActivateUnitInput = {\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type ExternalActionCancelRequest = {\r\n __typename: 'ExternalActionCancelRequest';\r\n cancellationReasonId: Scalars['ID'];\r\n cancellationReasonNotes: Maybe;\r\n cancellationSecondaryReasonId: Maybe;\r\n};\r\n\r\nexport type ExternalActionCancelRequestInput = {\r\n cancellationReasonId: Scalars['ID'];\r\n cancellationReasonNotes: InputMaybe;\r\n cancellationSecondaryReasonId: InputMaybe;\r\n};\r\n\r\nexport type ExternalActionCollection = {\r\n __typename: 'ExternalActionCollection';\r\n items: Array;\r\n meta: ExternalActionCollectionMetadata;\r\n};\r\n\r\nexport type ExternalActionCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ExternalActionCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type ExternalActionDeclineReferralRequest = {\r\n __typename: 'ExternalActionDeclineReferralRequest';\r\n cardId: Scalars['ID'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type ExternalActionDeclineReferralRequestInput = {\r\n cardId: Scalars['ID'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type ExternalActionFilter = {\r\n companyId: InputMaybe;\r\n includeCompleted: InputMaybe;\r\n};\r\n\r\nexport type ExternalActionQueries = {\r\n __typename: 'ExternalActionQueries';\r\n all: ExternalActionCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type ExternalActionQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ExternalActionQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type ExternalActionRemoveStandby = {\r\n __typename: 'ExternalActionRemoveStandby';\r\n requestId: Scalars['ID'];\r\n unitId: Maybe;\r\n};\r\n\r\nexport type ExternalActionRemoveStandbyInput = {\r\n requestId: Scalars['ID'];\r\n unitId: InputMaybe;\r\n};\r\n\r\nexport type ExternalActionRequestSceneLocationChange = {\r\n __typename: 'ExternalActionRequestSceneLocationChange';\r\n address: Address;\r\n groundContact: Maybe;\r\n notes: Maybe;\r\n};\r\n\r\nexport type ExternalActionRequestSceneLocationChangeInput = {\r\n address: AddressInput;\r\n groundContact: InputMaybe;\r\n notes: InputMaybe;\r\n};\r\n\r\nexport enum ExternalActionStatus {\r\n Completed = 'Completed',\r\n Disregarded = 'Disregarded',\r\n Requested = 'Requested',\r\n Unknown = 'Unknown',\r\n}\r\n\r\nexport type ExternalActionType = Entity &\r\n Evented & {\r\n __typename: 'ExternalActionType';\r\n _events: MessageEnvelopeCollection;\r\n actionTypeDescription: Scalars['String'];\r\n actionTypeName: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n externalActions: Array;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n priority: Scalars['Int'];\r\n };\r\n\r\nexport type ExternalActionType_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ExternalActionTypeCollection = {\r\n __typename: 'ExternalActionTypeCollection';\r\n items: Array;\r\n meta: ExternalActionTypeCollectionMetadata;\r\n};\r\n\r\nexport type ExternalActionTypeCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ExternalActionTypeCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type ExternalActionTypeQueries = {\r\n __typename: 'ExternalActionTypeQueries';\r\n all: ExternalActionTypeCollection;\r\n};\r\n\r\nexport type ExternalReference = Entity &\r\n Evented & {\r\n __typename: 'ExternalReference';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n entityId: Scalars['ID'];\r\n entityType: EntityType;\r\n externalKey: Scalars['String'];\r\n externalSystem: ExternalSystem;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n };\r\n\r\nexport type ExternalReference_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ExternalReferenceCollection = {\r\n __typename: 'ExternalReferenceCollection';\r\n items: Array;\r\n meta: ExternalReferenceCollectionMetadata;\r\n};\r\n\r\nexport type ExternalReferenceCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ExternalReferenceCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type ExternalReferenceFilter = {\r\n entityId: InputMaybe;\r\n};\r\n\r\nexport type ExternalReferenceQueries = {\r\n __typename: 'ExternalReferenceQueries';\r\n all: ExternalReferenceCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type ExternalReferenceQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ExternalReferenceQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum ExternalSystem {\r\n FlightVector = 'FlightVector',\r\n GoldenHour = 'GoldenHour',\r\n K2 = 'K2',\r\n SkyTrac = 'SkyTrac',\r\n Workday = 'Workday',\r\n}\r\n\r\nexport type ExternalSystemUnit = Entity &\r\n Evented & {\r\n __typename: 'ExternalSystemUnit';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n baseId: Maybe;\r\n companyId: Scalars['ID'];\r\n currentCardNumber: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastKnownCoordinates: Maybe;\r\n lastKnownLocationName: Maybe;\r\n lastQualifyingPositionReportTime: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n modelName: Maybe;\r\n name: Scalars['String'];\r\n outOfServiceEvents: Array;\r\n regionId: Scalars['ID'];\r\n registrationNumber: Scalars['String'];\r\n unitId: Scalars['ID'];\r\n unitStatus: UnitStatus;\r\n vehicleId: Scalars['ID'];\r\n vehicleStatus: VehicleStatus;\r\n vehicleStatusDescription: Scalars['String'];\r\n vehicleType: VehicleType;\r\n };\r\n\r\nexport type ExternalSystemUnit_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ExternalSystemUnitCollection = {\r\n __typename: 'ExternalSystemUnitCollection';\r\n items: Array;\r\n meta: ExternalSystemUnitCollectionMetadata;\r\n};\r\n\r\nexport type ExternalSystemUnitCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ExternalSystemUnitCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type FacilityNonAcceptanceReason = Entity &\r\n Evented & {\r\n __typename: 'FacilityNonAcceptanceReason';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n facilityNonAcceptanceReasonType: NonAcceptanceType;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n receivingFacilityRequests: Maybe>>;\r\n };\r\n\r\nexport type FacilityNonAcceptanceReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type FacilityNonAcceptanceReasonCollection = {\r\n __typename: 'FacilityNonAcceptanceReasonCollection';\r\n items: Array;\r\n meta: FacilityNonAcceptanceReasonCollectionMetadata;\r\n};\r\n\r\nexport type FacilityNonAcceptanceReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'FacilityNonAcceptanceReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type FacilityNonAcceptanceReasonFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type FacilityNonAcceptanceReasonQueries = {\r\n __typename: 'FacilityNonAcceptanceReasonQueries';\r\n all: FacilityNonAcceptanceReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type FacilityNonAcceptanceReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type FacilityNonAcceptanceReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type Fbo = Entity &\r\n Evented & {\r\n __typename: 'Fbo';\r\n _events: MessageEnvelopeCollection;\r\n airport: Airport;\r\n airportId: Scalars['ID'];\r\n airports: Maybe>>;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n fboType: FboType;\r\n flightFollowingReports: Maybe>>;\r\n fuelBrand: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n location: Maybe;\r\n locationId: Maybe;\r\n name: Scalars['String'];\r\n requests: Maybe>>;\r\n sourceSystemId: Maybe;\r\n };\r\n\r\nexport type Fbo_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type FboCollection = {\r\n __typename: 'FboCollection';\r\n items: Array;\r\n meta: FboCollectionMetadata;\r\n};\r\n\r\nexport type FboCollectionMetadata = CollectionMetadata & {\r\n __typename: 'FboCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type FboFilter = {\r\n airportId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type FboQueries = {\r\n __typename: 'FboQueries';\r\n all: FboCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type FboQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type FboQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum FboType {\r\n FBO = 'FBO',\r\n FlightSupportOrganisation = 'FlightSupportOrganisation',\r\n FuelOnly = 'FuelOnly',\r\n Handler = 'Handler',\r\n LineRampEngineering = 'LineRampEngineering',\r\n SupervisingAgent = 'SupervisingAgent',\r\n}\r\n\r\nexport enum FetchPolicy {\r\n Cache = 'Cache',\r\n CacheThenDatabase = 'CacheThenDatabase',\r\n Database = 'Database',\r\n}\r\n\r\nexport type FirewallRule = Entity &\r\n Evented & {\r\n __typename: 'FirewallRule';\r\n _events: MessageEnvelopeCollection;\r\n action: AccessControlAction;\r\n companyId: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n enabled: Scalars['Boolean'];\r\n id: Scalars['ID'];\r\n ipRange: Scalars['String'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n };\r\n\r\nexport type FirewallRule_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type FirewallRuleCollection = {\r\n __typename: 'FirewallRuleCollection';\r\n items: Array;\r\n meta: FirewallRuleCollectionMetadata;\r\n};\r\n\r\nexport type FirewallRuleCollectionMetadata = CollectionMetadata & {\r\n __typename: 'FirewallRuleCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type FirewallRuleFilter = {\r\n companyId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type FirewallRuleQueries = {\r\n __typename: 'FirewallRuleQueries';\r\n all: FirewallRuleCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type FirewallRuleQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type FirewallRuleQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum FlightFollowingField {\r\n CenterOfGravity = 'CenterOfGravity',\r\n CruisingAltitude = 'CruisingAltitude',\r\n EstimatedTimeEnRouteMinutes = 'EstimatedTimeEnRouteMinutes',\r\n FlightRule = 'FlightRule',\r\n FlightType = 'FlightType',\r\n Fuel = 'Fuel',\r\n HighestFeatureEnRoute = 'HighestFeatureEnRoute',\r\n MedicalCrewRA = 'MedicalCrewRA',\r\n RiskAnalysis = 'RiskAnalysis',\r\n SoulsOnBoard = 'SoulsOnBoard',\r\n TakeOffWeight = 'TakeOffWeight',\r\n TrackingViaGps = 'TrackingViaGps',\r\n}\r\n\r\nexport type FlightFollowingReport = Entity &\r\n Evented & {\r\n __typename: 'FlightFollowingReport';\r\n _events: MessageEnvelopeCollection;\r\n centerOfGravity: Maybe;\r\n companyId: Scalars['ID'];\r\n confirmedFbo: Maybe;\r\n confirmedFboId: Maybe;\r\n cruisingAltitude: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n destination: Maybe;\r\n estimatedTimeEnrouteMinutes: Maybe;\r\n flightRule: Maybe;\r\n flightType: Maybe;\r\n fuel: Maybe;\r\n highestFeatureEnroute: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n medicalCrewRA: Maybe;\r\n riskAnalysis: Maybe;\r\n soulsOnBoard: Maybe;\r\n summary: Maybe;\r\n takeOffWeight: Maybe;\r\n trackingViaGps: Maybe;\r\n trip: Trip;\r\n tripId: Scalars['ID'];\r\n tripLeg: Maybe;\r\n tripLegId: Maybe;\r\n vehicleDisposition: Maybe;\r\n };\r\n\r\nexport type FlightFollowingReport_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type FlightFollowingReportCollection = {\r\n __typename: 'FlightFollowingReportCollection';\r\n items: Array;\r\n meta: FlightFollowingReportCollectionMetadata;\r\n};\r\n\r\nexport type FlightFollowingReportCollectionMetadata = CollectionMetadata & {\r\n __typename: 'FlightFollowingReportCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum FlightLogProcess {\r\n External = 'External',\r\n FlightLogDynamic = 'FlightLogDynamic',\r\n FlightLogStatic = 'FlightLogStatic',\r\n PstStatic = 'PstStatic',\r\n}\r\n\r\nexport enum FlightRule {\r\n Ifr = 'Ifr',\r\n None = 'None',\r\n Vfr = 'Vfr',\r\n}\r\n\r\nexport enum FlightType {\r\n Pt91 = 'Pt91',\r\n Pt133 = 'Pt133',\r\n Pt135 = 'Pt135',\r\n}\r\n\r\nexport type FuelTank = Entity &\r\n Evented & {\r\n __typename: 'FuelTank';\r\n _events: MessageEnvelopeCollection;\r\n base: Maybe;\r\n baseId: Maybe;\r\n code: Scalars['String'];\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n location: Location;\r\n locationId: Scalars['ID'];\r\n locationName: Maybe;\r\n name: Scalars['String'];\r\n operationsEnded: Maybe;\r\n operationsStarted: Maybe;\r\n sourceSystemId: Maybe;\r\n };\r\n\r\nexport type FuelTank_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type FuelTankCollection = {\r\n __typename: 'FuelTankCollection';\r\n items: Array;\r\n meta: FuelTankCollectionMetadata;\r\n};\r\n\r\nexport type FuelTankCollectionMetadata = CollectionMetadata & {\r\n __typename: 'FuelTankCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type FuelTankFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type FuelTankQueries = {\r\n __typename: 'FuelTankQueries';\r\n all: FuelTankCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type FuelTankQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type FuelTankQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum Gender {\r\n Female = 'Female',\r\n Male = 'Male',\r\n Other = 'Other',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport type GenerateCardReport = {\r\n cardId: Scalars['ID'];\r\n};\r\n\r\nexport type GenerateCardSummaryChange = {\r\n cardId: Scalars['ID'];\r\n};\r\n\r\nexport type GenerateCardSummaryChangeV2 = {\r\n cardId: Scalars['ID'];\r\n};\r\n\r\nexport type GenerateLocationHazardAttachmentUrl = {\r\n attachmentId: Scalars['ID'];\r\n};\r\n\r\nexport type GeocodeResponse = {\r\n __typename: 'GeocodeResponse';\r\n candidates: Array;\r\n};\r\n\r\nexport type GeocodeResponseWithTimezone = {\r\n __typename: 'GeocodeResponseWithTimezone';\r\n candidates: Array;\r\n timezoneResult: TimezoneResponse;\r\n};\r\n\r\nexport enum GeocodeResultQuality {\r\n Address = 'Address',\r\n City = 'City',\r\n County = 'County',\r\n Intersection = 'Intersection',\r\n Neighborhood = 'Neighborhood',\r\n Point = 'Point',\r\n State = 'State',\r\n Street = 'Street',\r\n Unknown = 'Unknown',\r\n Zip = 'Zip',\r\n}\r\n\r\nexport type GisQueries = {\r\n __typename: 'GisQueries';\r\n _allTimezonesMeta: QueryMeta;\r\n allTimezones: Array;\r\n geocodeByAddress: GeocodeResponse;\r\n reverseGeocode: GeocodeResponse;\r\n reverseGeocodeWithTimezone: GeocodeResponseWithTimezone;\r\n timezoneByCode: Maybe;\r\n timezoneByCoordinates: TimezoneResponse;\r\n};\r\n\r\nexport type GisQueriesallTimezonesArgs = {\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type GisQueriesgeocodeByAddressArgs = {\r\n address: AddressInput;\r\n};\r\n\r\nexport type GisQueriesreverseGeocodeArgs = {\r\n coordinates: CoordinatesInput;\r\n};\r\n\r\nexport type GisQueriesreverseGeocodeWithTimezoneArgs = {\r\n coordinates: CoordinatesInput;\r\n};\r\n\r\nexport type GisQueriestimezoneByCodeArgs = {\r\n code: Scalars['String'];\r\n};\r\n\r\nexport type GisQueriestimezoneByCoordinatesArgs = {\r\n coordinates: CoordinatesInput;\r\n};\r\n\r\nexport type HideUnit = {\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type HideVehicle = {\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type HoursOfOperation = {\r\n __typename: 'HoursOfOperation';\r\n endTime: Maybe;\r\n is24Hours: Maybe;\r\n startTime: Maybe;\r\n};\r\n\r\nexport type HoursOfOperationInput = {\r\n endTime: InputMaybe;\r\n is24Hours: InputMaybe;\r\n startTime: InputMaybe;\r\n};\r\n\r\nexport type IdListItem = {\r\n __typename: 'IdListItem';\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type IdListItemInput = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum ImageSize {\r\n Large = 'Large',\r\n Medium = 'Medium',\r\n Small = 'Small',\r\n}\r\n\r\nexport type InitiateTransportCheck = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type InsertWaypoint = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n insertAfterWaypointId: Scalars['ID'];\r\n isRotorWingLz: InputMaybe;\r\n locationId: InputMaybe;\r\n name: Scalars['String'];\r\n timezoneCd: InputMaybe;\r\n tripId: Scalars['ID'];\r\n type: WaypointType;\r\n};\r\n\r\nexport enum IntegrationSystem {\r\n EmSystem = 'EmSystem',\r\n Reddinet = 'Reddinet',\r\n STrac = 'STrac',\r\n}\r\n\r\nexport enum IsoletteType {\r\n DraegerIsolette = 'DraegerIsolette',\r\n LifeportDeck = 'LifeportDeck',\r\n MetroPallet = 'MetroPallet',\r\n SpectrumSled = 'SpectrumSled',\r\n Unconfirmed = 'Unconfirmed',\r\n Unspecified = 'Unspecified',\r\n VoyagerIsolette = 'VoyagerIsolette',\r\n VoyagerIsolette1 = 'VoyagerIsolette1',\r\n VoyagerIsolette2 = 'VoyagerIsolette2',\r\n VoyagerIsolette4 = 'VoyagerIsolette4',\r\n VoyagerIsolette6 = 'VoyagerIsolette6',\r\n}\r\n\r\nexport type LandingZoneOutOfServiceReason = Entity &\r\n Evented & {\r\n __typename: 'LandingZoneOutOfServiceReason';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n locations: Maybe>>;\r\n name: Scalars['String'];\r\n };\r\n\r\nexport type LandingZoneOutOfServiceReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type LandingZoneOutOfServiceReasonCollection = {\r\n __typename: 'LandingZoneOutOfServiceReasonCollection';\r\n items: Array;\r\n meta: LandingZoneOutOfServiceReasonCollectionMetadata;\r\n};\r\n\r\nexport type LandingZoneOutOfServiceReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'LandingZoneOutOfServiceReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type LandingZoneOutOfServiceReasonFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type LandingZoneOutOfServiceReasonQueries = {\r\n __typename: 'LandingZoneOutOfServiceReasonQueries';\r\n all: LandingZoneOutOfServiceReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type LandingZoneOutOfServiceReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type LandingZoneOutOfServiceReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type LinkCards = {\r\n cardId1: Scalars['ID'];\r\n cardId2: Scalars['ID'];\r\n};\r\n\r\nexport type Location = Entity &\r\n Evented & {\r\n __typename: 'Location';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n activationRules: Maybe>>;\r\n address: Address;\r\n agencyLocation: Maybe;\r\n airport: Maybe;\r\n bases: Array;\r\n closedDate: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n distanceToReceiving: Maybe;\r\n distanceToReceivingMiles: Maybe;\r\n distanceToReceivingNauticaMiles: Maybe;\r\n duplicateOfId: Maybe;\r\n entityCapabilities: Array;\r\n fbo: Maybe;\r\n fuelTanks: Array;\r\n id: Scalars['ID'];\r\n isLandingZoneOutOfService: Maybe;\r\n isRotorWingLz: Maybe;\r\n landingZoneOutOfServiceExpirationDate: Maybe;\r\n landingZoneOutOfServiceNotes: Maybe;\r\n landingZoneOutOfServiceReason: Maybe;\r\n landingZoneOutOfServiceReasonId: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n locationHazards: Array;\r\n locationType: LocationType;\r\n medicalFacilities: Maybe>>;\r\n medicalFacility: Maybe;\r\n name: Scalars['String'];\r\n notes: Maybe;\r\n people: Maybe>>;\r\n sourceSystemId: Maybe;\r\n specialtyTeams: Array;\r\n timezoneCd: Maybe;\r\n waypoints: Maybe>>;\r\n };\r\n\r\nexport type Location_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type LocationByIdOptions = {\r\n includeDeleted: InputMaybe;\r\n};\r\n\r\nexport type LocationCollection = {\r\n __typename: 'LocationCollection';\r\n items: Array;\r\n meta: LocationCollectionMetadata;\r\n};\r\n\r\nexport type LocationCollectionMetadata = CollectionMetadata & {\r\n __typename: 'LocationCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type LocationFilter = {\r\n locationId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type LocationHazard = Entity &\r\n Evented & {\r\n __typename: 'LocationHazard';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n effectiveDate: Maybe;\r\n expirationDate: Maybe;\r\n hazard: Scalars['String'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n location: Location;\r\n locationHazardAttachments: Array;\r\n locationId: Scalars['ID'];\r\n };\r\n\r\nexport type LocationHazard_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type LocationHazardAttachment = Entity &\r\n Evented & {\r\n __typename: 'LocationHazardAttachment';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n contentType: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n fileName: Scalars['String'];\r\n fileSizeInBytes: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n locationHazard: LocationHazard;\r\n locationHazardId: Scalars['ID'];\r\n };\r\n\r\nexport type LocationHazardAttachment_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type LocationHazardAttachmentCollection = {\r\n __typename: 'LocationHazardAttachmentCollection';\r\n items: Array;\r\n meta: LocationHazardAttachmentCollectionMetadata;\r\n};\r\n\r\nexport type LocationHazardAttachmentCollectionMetadata = CollectionMetadata & {\r\n __typename: 'LocationHazardAttachmentCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type LocationHazardCollection = {\r\n __typename: 'LocationHazardCollection';\r\n items: Array;\r\n meta: LocationHazardCollectionMetadata;\r\n};\r\n\r\nexport type LocationHazardCollectionMetadata = CollectionMetadata & {\r\n __typename: 'LocationHazardCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type LocationHazardFilter = {\r\n includeDeleted: InputMaybe;\r\n locationId: InputMaybe;\r\n};\r\n\r\nexport type LocationHazardQueries = {\r\n __typename: 'LocationHazardQueries';\r\n all: LocationHazardCollection;\r\n byId: Maybe;\r\n byLocationId: LocationHazardCollection;\r\n};\r\n\r\nexport type LocationHazardQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type LocationHazardQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type LocationHazardQueriesbyLocationIdArgs = {\r\n locationId: Scalars['ID'];\r\n};\r\n\r\nexport type LocationQueries = {\r\n __typename: 'LocationQueries';\r\n all: LocationCollection;\r\n byId: Maybe;\r\n byIds: Array;\r\n};\r\n\r\nexport type LocationQueriesallArgs = {\r\n filter: InputMaybe;\r\n};\r\n\r\nexport type LocationQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n options: InputMaybe;\r\n};\r\n\r\nexport type LocationQueriesbyIdsArgs = {\r\n ids: Array;\r\n options: InputMaybe;\r\n};\r\n\r\nexport type LocationQueryFilter = {\r\n abbreviationLike: InputMaybe;\r\n capabilityIds: InputMaybe>;\r\n cityLike: InputMaybe;\r\n coordinates: InputMaybe;\r\n countyLike: InputMaybe;\r\n first: InputMaybe;\r\n includeDeleted: InputMaybe;\r\n locationId: InputMaybe;\r\n locationTypes: InputMaybe>;\r\n maxDistanceInMiles: InputMaybe;\r\n nameLike: InputMaybe;\r\n skip: InputMaybe;\r\n stateLike: InputMaybe;\r\n};\r\n\r\nexport enum LocationType {\r\n Agency = 'Agency',\r\n Airport = 'Airport',\r\n Base = 'Base',\r\n CommunicationsCenter = 'CommunicationsCenter',\r\n CorporateOffice = 'CorporateOffice',\r\n Fbo = 'Fbo',\r\n FuelTank = 'FuelTank',\r\n Hangar = 'Hangar',\r\n LandingZone = 'LandingZone',\r\n MaintenanceFacility = 'MaintenanceFacility',\r\n MedicalFacility = 'MedicalFacility',\r\n RadioTower = 'RadioTower',\r\n RemoteMaintenanceFacility = 'RemoteMaintenanceFacility',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport type Lookup = {\r\n code: Scalars['String'];\r\n};\r\n\r\nexport type MaintenanceParameters = {\r\n __typename: 'MaintenanceParameters';\r\n airframeTime: Maybe;\r\n endingHobbs: Maybe;\r\n engine1: Maybe;\r\n engine2: Maybe;\r\n totalLandings: Maybe;\r\n};\r\n\r\nexport type MaintenanceParametersInput = {\r\n airframeTime: InputMaybe;\r\n endingHobbs: InputMaybe;\r\n engine1: InputMaybe;\r\n engine2: InputMaybe;\r\n totalLandings: InputMaybe;\r\n};\r\n\r\nexport type MakeEstimatedDurationOfficial = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type ManifestEntry = Entity &\r\n Evented & {\r\n __typename: 'ManifestEntry';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n confirmedAt: Maybe;\r\n confirmedBy: Maybe;\r\n confirmedById: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n passenger: TripPassenger;\r\n passengerId: Scalars['ID'];\r\n tripLeg: TripLeg;\r\n tripLegId: Scalars['ID'];\r\n };\r\n\r\nexport type ManifestEntry_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ManifestEntryCollection = {\r\n __typename: 'ManifestEntryCollection';\r\n items: Array;\r\n meta: ManifestEntryCollectionMetadata;\r\n};\r\n\r\nexport type ManifestEntryCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ManifestEntryCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type MarkAsPilotUpdated = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type MedicalControlContactLogEntry = Entity &\r\n Evented & {\r\n __typename: 'MedicalControlContactLogEntry';\r\n _events: MessageEnvelopeCollection;\r\n card: Card;\r\n cardId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isSuccessful: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n person: Person;\r\n personId: Scalars['ID'];\r\n timestamp: Timestamp;\r\n timestampId: Scalars['ID'];\r\n };\r\n\r\nexport type MedicalControlContactLogEntry_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type MedicalControlContactLogEntryCollection = {\r\n __typename: 'MedicalControlContactLogEntryCollection';\r\n items: Array;\r\n meta: MedicalControlContactLogEntryCollectionMetadata;\r\n};\r\n\r\nexport type MedicalControlContactLogEntryCollectionMetadata = CollectionMetadata & {\r\n __typename: 'MedicalControlContactLogEntryCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type MedicalFacility = Entity &\r\n Evented & {\r\n __typename: 'MedicalFacility';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n activationRules: Maybe>>;\r\n archiveClearedDate: Maybe;\r\n archiveNotes: Maybe;\r\n associatedPhysicians: Array;\r\n contacts: Array;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n defaultFixedWingLandingZone: Maybe;\r\n defaultFixedWingLandingZoneId: Maybe;\r\n defaultLandingZone: Maybe;\r\n defaultLandingZoneId: Maybe;\r\n firmType: Maybe;\r\n hospitalSpecialization: Maybe;\r\n hospitalType: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n location: Maybe;\r\n locationId: Maybe;\r\n masterDataSetId: Maybe;\r\n name: Scalars['String'];\r\n nemsisCode: Maybe;\r\n notes: Maybe;\r\n npi: Scalars['String'];\r\n providerNumber: Maybe;\r\n receivingFacilityRequests: Array;\r\n requesters: Maybe>>;\r\n requests: Maybe>>;\r\n sourceSystemId: Maybe;\r\n stateFacilityName: Maybe;\r\n stateSourceSystemId: Maybe;\r\n status: Maybe;\r\n trmUserMedicalFacilities: Array;\r\n units: Array;\r\n website: Maybe;\r\n };\r\n\r\nexport type MedicalFacility_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type MedicalFacilityCollection = {\r\n __typename: 'MedicalFacilityCollection';\r\n items: Array;\r\n meta: MedicalFacilityCollectionMetadata;\r\n};\r\n\r\nexport type MedicalFacilityCollectionMetadata = CollectionMetadata & {\r\n __typename: 'MedicalFacilityCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type MedicalFacilityContact = Entity &\r\n Evented & {\r\n __typename: 'MedicalFacilityContact';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n emailAddress: Maybe;\r\n faxPhoneNumber: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n medicalFacility: MedicalFacility;\r\n medicalFacilityId: Scalars['ID'];\r\n name: Scalars['String'];\r\n notes: Maybe;\r\n primaryPhoneNumber: Maybe;\r\n secondaryPhoneNumber: Maybe;\r\n smsPhoneNumber: Maybe;\r\n };\r\n\r\nexport type MedicalFacilityContact_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type MedicalFacilityContactCollection = {\r\n __typename: 'MedicalFacilityContactCollection';\r\n items: Array;\r\n meta: MedicalFacilityContactCollectionMetadata;\r\n};\r\n\r\nexport type MedicalFacilityContactCollectionMetadata = CollectionMetadata & {\r\n __typename: 'MedicalFacilityContactCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type MedicalFacilityContactFilter = {\r\n medicalFacilityContactId: InputMaybe;\r\n medicalFacilityId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type MedicalFacilityContactQueries = {\r\n __typename: 'MedicalFacilityContactQueries';\r\n all: MedicalFacilityContactCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type MedicalFacilityContactQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type MedicalFacilityContactQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type MedicalFacilityFilter = {\r\n cityLike: InputMaybe;\r\n countyLike: InputMaybe;\r\n includeDeleted: InputMaybe;\r\n medicalFacilityId: InputMaybe;\r\n nameLike: InputMaybe;\r\n stateLike: InputMaybe;\r\n status: InputMaybe;\r\n streetAddressLike: InputMaybe;\r\n};\r\n\r\nexport type MedicalFacilityPhysician = Entity &\r\n Evented & {\r\n __typename: 'MedicalFacilityPhysician';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n medicalFacility: MedicalFacility;\r\n medicalFacilityId: Scalars['ID'];\r\n physician: Physician;\r\n physicianId: Scalars['ID'];\r\n };\r\n\r\nexport type MedicalFacilityPhysician_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type MedicalFacilityPhysicianCollection = {\r\n __typename: 'MedicalFacilityPhysicianCollection';\r\n items: Array;\r\n meta: MedicalFacilityPhysicianCollectionMetadata;\r\n};\r\n\r\nexport type MedicalFacilityPhysicianCollectionMetadata = CollectionMetadata & {\r\n __typename: 'MedicalFacilityPhysicianCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type MedicalFacilityQueries = {\r\n __typename: 'MedicalFacilityQueries';\r\n all: MedicalFacilityCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type MedicalFacilityQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type MedicalFacilityQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum MedicalFacilityStatus {\r\n Approved = 'Approved',\r\n Archived = 'Archived',\r\n Duplicate = 'Duplicate',\r\n PendingApproval = 'PendingApproval',\r\n PendingArchive = 'PendingArchive',\r\n}\r\n\r\nexport type MedicalFacilityUnit = Entity &\r\n Evented & {\r\n __typename: 'MedicalFacilityUnit';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n medicalFacility: MedicalFacility;\r\n medicalFacilityId: Scalars['ID'];\r\n name: Scalars['String'];\r\n phoneNumber: Maybe;\r\n requests: Maybe>>;\r\n };\r\n\r\nexport type MedicalFacilityUnit_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type MedicalFacilityUnitCollection = {\r\n __typename: 'MedicalFacilityUnitCollection';\r\n items: Array;\r\n meta: MedicalFacilityUnitCollectionMetadata;\r\n};\r\n\r\nexport type MedicalFacilityUnitCollectionMetadata = CollectionMetadata & {\r\n __typename: 'MedicalFacilityUnitCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type MedicalUnit = Entity &\r\n Evented & {\r\n __typename: 'MedicalUnit';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n requests: Maybe>>;\r\n };\r\n\r\nexport type MedicalUnit_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type MedicalUnitCollection = {\r\n __typename: 'MedicalUnitCollection';\r\n items: Array;\r\n meta: MedicalUnitCollectionMetadata;\r\n};\r\n\r\nexport type MedicalUnitCollectionMetadata = CollectionMetadata & {\r\n __typename: 'MedicalUnitCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type MergeMedicalFacilities = {\r\n duplicateOfMedicalFacilityId: Scalars['ID'];\r\n medicalFacilityId: Scalars['ID'];\r\n};\r\n\r\nexport type MergePostAndDropoffWaypoints = {\r\n tripId: Scalars['ID'];\r\n};\r\n\r\nexport type MergeUnitOriginAndPickupWaypoints = {\r\n tripId: Scalars['ID'];\r\n};\r\n\r\nexport type Message = {\r\n __typename: 'Message';\r\n messageData: Scalars['JSON'];\r\n messageType: Scalars['String'];\r\n messageVersion: Scalars['String'];\r\n};\r\n\r\nexport type MessageEnvelope = {\r\n __typename: 'MessageEnvelope';\r\n correlationId: Maybe;\r\n headers: Scalars['JSON'];\r\n message: Message;\r\n messageId: Scalars['ID'];\r\n person: Maybe;\r\n personId: Maybe;\r\n timestamp: Scalars['DateTime'];\r\n};\r\n\r\nexport type MessageEnvelopeCollection = {\r\n __typename: 'MessageEnvelopeCollection';\r\n items: Array;\r\n meta: MessageEnvelopeCollectionMetadata;\r\n};\r\n\r\nexport type MessageEnvelopeCollectionMetadata = CollectionMetadata & {\r\n __typename: 'MessageEnvelopeCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum MessageStatus {\r\n Created = 'Created',\r\n Failed = 'Failed',\r\n ReceivedByRecipient = 'ReceivedByRecipient',\r\n SentToProvider = 'SentToProvider',\r\n SentToRecipient = 'SentToRecipient',\r\n}\r\n\r\nexport type MessageStatusUpdate = Entity &\r\n Evented & {\r\n __typename: 'MessageStatusUpdate';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n error: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n metadataJson: Maybe;\r\n status: MessageStatus;\r\n trackedMessage: TrackedMessage;\r\n trackedMessageId: Scalars['ID'];\r\n vendorMessage: Maybe;\r\n };\r\n\r\nexport type MessageStatusUpdate_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type MessageStatusUpdateCollection = {\r\n __typename: 'MessageStatusUpdateCollection';\r\n items: Array;\r\n meta: MessageStatusUpdateCollectionMetadata;\r\n};\r\n\r\nexport type MessageStatusUpdateCollectionMetadata = CollectionMetadata & {\r\n __typename: 'MessageStatusUpdateCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum MessageTransport {\r\n Email = 'Email',\r\n Sms = 'Sms',\r\n}\r\n\r\nexport enum MissionConfiguration {\r\n CommunityRequest = 'CommunityRequest',\r\n ContractServices = 'ContractServices',\r\n GovernmentIncident = 'GovernmentIncident',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport enum MissionProfile {\r\n AerialOperation = 'AerialOperation',\r\n FireSuppression = 'FireSuppression',\r\n HoistRescue = 'HoistRescue',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport enum MissionRoleType {\r\n ANMC = 'ANMC',\r\n Charter = 'Charter',\r\n FlightFollowing = 'FlightFollowing',\r\n FullService = 'FullService',\r\n Hospice = 'Hospice',\r\n MassCasualty = 'MassCasualty',\r\n PrecautionaryEvacuation = 'PrecautionaryEvacuation',\r\n Quote = 'Quote',\r\n SEARHC = 'SEARHC',\r\n Supplemental = 'Supplemental',\r\n TeamFlight = 'TeamFlight',\r\n}\r\n\r\nexport type ModifyWaypoint = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n id: Scalars['ID'];\r\n isRotorWingLz: InputMaybe;\r\n locationId: InputMaybe;\r\n name: Scalars['String'];\r\n timezoneCd: InputMaybe;\r\n tripId: Scalars['ID'];\r\n type: WaypointType;\r\n};\r\n\r\nexport type Mutation = {\r\n __typename: 'Mutation';\r\n acceptReceivingFacilityRequest: CommandResult;\r\n acceptTransportOffer: CommandResult;\r\n acknowledgeAlert: CommandResult;\r\n acknowledgeExternalRequest: CommandResult;\r\n acknowledgePassdownLog: CommandResult;\r\n acknowledgeWebOrderLog: CommandResult;\r\n activateUnit: CommandResult;\r\n addAccessibleItem: CommandResult;\r\n addActivationRule: CommandResult;\r\n addActiveAlert: CommandResult;\r\n addAgency: CommandResult;\r\n addAgencyLocation: CommandResult;\r\n addAirport: CommandResult;\r\n addAlert: CommandResult;\r\n addApplicationNotification: CommandResult;\r\n addAssignmentDelayedReason: CommandResult;\r\n addBase: CommandResult;\r\n addBaseControlZone: CommandResult;\r\n addBaseMedicalControlContact: CommandResult;\r\n addCancellation: CommandResult;\r\n addCancellationCategory: CommandResult;\r\n addCancellationReason: CommandResult;\r\n addCancellationSecondaryReason: CommandResult;\r\n addCapability: CommandResult;\r\n addCard: CommandResult;\r\n addCardLink: CommandResult;\r\n addCardNote: CommandResult;\r\n addCardNoteArchive: CommandResult;\r\n addCardReOpenReason: CommandResult;\r\n addCommunicationCenter: CommandResult;\r\n addCommunicationCenterTransportOfferOption: CommandResult;\r\n addCompany: CommandResult;\r\n addCompleteFlightInstance: CommandResult;\r\n addConfigurationSetting: CommandResult;\r\n addControlZone: CommandResult;\r\n addDecline: CommandResult;\r\n addDeclineCategory: CommandResult;\r\n addDeclineReason: CommandResult;\r\n addDeclineSecondaryReason: CommandResult;\r\n addDepartment: CommandResult;\r\n addDiversionReason: CommandResult;\r\n addEmsReport: CommandResult;\r\n addEntityCapability: CommandResult;\r\n addEscortRequest: CommandResult;\r\n addExistingSpecialtyTeamMember: CommandResult;\r\n addExternalAction: CommandResult;\r\n addExternalActionType: CommandResult;\r\n addExternalReference: CommandResult;\r\n addFacilityNonAcceptanceReason: CommandResult;\r\n addFbo: CommandResult;\r\n addFirewallRule: CommandResult;\r\n addFlightFollowingReport: CommandResult;\r\n addFuelTank: CommandResult;\r\n addLocation: CommandResult;\r\n addLocationHazard: CommandResult;\r\n addManifestEntry: CommandResult;\r\n addMedicalControlContactLogEntry: CommandResult;\r\n addMedicalFacility: CommandResult;\r\n addMedicalFacilityContact: CommandResult;\r\n addMedicalFacilityPhysician: CommandResult;\r\n addMedicalFacilityUnit: CommandResult;\r\n addMessageStatusUpdate: CommandResult;\r\n addNextDueType: CommandResult;\r\n addNonReferralReason: CommandResult;\r\n addNotification: CommandResult;\r\n addNotificationGroup: CommandResult;\r\n addNotificationGroupMember: CommandResult;\r\n addNotificationRecipient: CommandResult;\r\n addNotificationRecipients: CommandResult;\r\n addNotificationSubscription: CommandResult;\r\n addNotificationTemplate: CommandResult;\r\n addOemActivity: CommandResult;\r\n addOemAsset: CommandResult;\r\n addOemPlan: CommandResult;\r\n addOemPlanChangeRequest: CommandResult;\r\n addOfferAlgorithm: CommandResult;\r\n addOperation: CommandResult;\r\n addOutOfComplianceCrewMember: CommandResult;\r\n addOutOfServiceEvent: CommandResult;\r\n addOutOfServiceEventNote: CommandResult;\r\n addOutOfServiceReason: CommandResult;\r\n addOutOfServiceSecondaryReason: CommandResult;\r\n addPassdownLog: CommandResult;\r\n addPerson: CommandResult;\r\n addPhysician: CommandResult;\r\n addPositionReport: CommandResult;\r\n addPositionReportAlert: CommandResult;\r\n addPreApprovedTrmUser: CommandResult;\r\n addProgram: CommandResult;\r\n addProgramBase: CommandResult;\r\n addQuestion: CommandResult;\r\n addQuestionnaire: CommandResult;\r\n addQuestionnaireQuestionResponse: CommandResult;\r\n addQuestionnaireQuestionResponseNote: CommandResult;\r\n addQuestionnaireResponse: CommandResult;\r\n addReceivingFacilityRequestDeclineHistory: CommandResult;\r\n addRegion: CommandResult;\r\n addRegionBase: CommandResult;\r\n addRegionGroup: CommandResult;\r\n addRendezvousRequest: CommandResult;\r\n addRequestPatient: CommandResult;\r\n addRequesterRole: CommandResult;\r\n addSpecialtyTeam: CommandResult;\r\n addSpecialtyTeamMember: CommandResult;\r\n addSupportRequest: CommandResult;\r\n addTimeline: CommandResult;\r\n addTimelineItem: CommandResult;\r\n addTimestamp: CommandResult;\r\n addTimestampType: CommandResult;\r\n addTimezone: CommandResult;\r\n addTransferCenter: CommandResult;\r\n addTransferCenterRegion: CommandResult;\r\n addTransferReason: CommandResult;\r\n addTransportOffer: CommandResult;\r\n addTransportReason: CommandResult;\r\n addTrip: CommandResult;\r\n addTripLegManifestEntry: CommandResult;\r\n addTripPassenger: CommandResult;\r\n addUnit: CommandResult;\r\n addUnitActivationRule: CommandResult;\r\n addUnitEMSystemMapping: CommandResult;\r\n addUnitNote: CommandResult;\r\n addUnitOutOfServiceEvent: CommandResult;\r\n addUnitPosition: CommandResult;\r\n addUnitShift: CommandResult;\r\n addVehicle: CommandResult;\r\n addVehicleConfigurationClass: CommandResult;\r\n addVehicleControlZone: CommandResult;\r\n addVehicleDisposition: CommandResult;\r\n addVehicleMaintenance: CommandResult;\r\n addVehicleMake: CommandResult;\r\n addVehicleModel: CommandResult;\r\n addVehicleOutOfServiceEvent: CommandResult;\r\n addVehicleStateInspection: CommandResult;\r\n addWaypoint: CommandResult;\r\n addWebOrderLog: CommandResult;\r\n approveMedicalFacility: CommandResult;\r\n approveTrmUser: CommandResult;\r\n archiveMedicalFacility: CommandResult;\r\n arriveVehicle: CommandResult;\r\n assignVehicle: CommandResult;\r\n authorizeClientSyncAccess: CommandResult;\r\n beginAssignment: CommandResult;\r\n beginOutOfServiceEvent: CommandResult;\r\n beginTransportOffer: CommandResult;\r\n calculateEtas: CommandResult;\r\n cancelOperation: CommandResult;\r\n cancelReceivingFacilityRequest: CommandResult;\r\n cancelRequest: CommandResult;\r\n cancelRequestFromTransferCenter: CommandResult;\r\n cancelTransportOffer: CommandResult;\r\n changeCallType: CommandResult;\r\n changeCardCallStatus: CommandResult;\r\n changeRequestCancellationReason: CommandResult;\r\n changeRequestType: CommandResult;\r\n changeUnit: CommandResult;\r\n changeVehicle: CommandResult;\r\n changeVehicleFlightLogProcess: CommandResult;\r\n cleanupActiveAlerts: CommandResult;\r\n cleanupCardActiveAlerts: CommandResult;\r\n cleanupCards: CommandResult;\r\n cleanupPendingExternalActions: CommandResult;\r\n clearPendingArchiveMedicalFacility: CommandResult;\r\n closeCard: CommandResult;\r\n confirmManifest: CommandResult;\r\n confirmPositionReport: CommandResult;\r\n copyAlert: CommandResult;\r\n copyNotificationTemplate: CommandResult;\r\n copyOfferAlgorithm: CommandResult;\r\n createGroundRun: CommandResult;\r\n createMaintenanceOperation: CommandResult;\r\n createPrecautionaryLanding: CommandResult;\r\n createPrecautionaryLandingV2: CommandResult;\r\n createRequest: CommandResult;\r\n createSystemCrewNotification: CommandResult;\r\n createTrainingOperation: CommandResult;\r\n deactivateTrmUser: CommandResult;\r\n declineAndAssignNewTransportOffer: CommandResult;\r\n declineOrAbortOperation: CommandResult;\r\n declineTransportOffer: CommandResult;\r\n declineTransportOfferAndDelayAssignment: CommandResult;\r\n delayAssignment: CommandResult;\r\n delayUnit: CommandResult;\r\n deleteAccessibleItem: CommandResult;\r\n deleteActivationRule: CommandResult;\r\n deleteActiveAlert: CommandResult;\r\n deleteActiveTimeline: CommandResult;\r\n deleteAgency: CommandResult;\r\n deleteAgencyLocation: CommandResult;\r\n deleteAirport: CommandResult;\r\n deleteAlert: CommandResult;\r\n deleteApplicationNotification: CommandResult;\r\n deleteAssignmentDelayedReason: CommandResult;\r\n deleteBase: CommandResult;\r\n deleteBaseControlZone: CommandResult;\r\n deleteBaseMedicalControlContact: CommandResult;\r\n deleteCancellationCategory: CommandResult;\r\n deleteCancellationReason: CommandResult;\r\n deleteCancellationSecondaryReason: CommandResult;\r\n deleteCapability: CommandResult;\r\n deleteCard: CommandResult;\r\n deleteCardLink: CommandResult;\r\n deleteCardNote: CommandResult;\r\n deleteCardNoteArchive: CommandResult;\r\n deleteCardReOpenReason: CommandResult;\r\n deleteCommunicationCenter: CommandResult;\r\n deleteCommunicationCenterTransportOfferOption: CommandResult;\r\n deleteCompany: CommandResult;\r\n deleteCompleteFlightInstance: CommandResult;\r\n deleteControlZone: CommandResult;\r\n deleteDeclineCategory: CommandResult;\r\n deleteDeclineReason: CommandResult;\r\n deleteDeclineSecondaryReason: CommandResult;\r\n deleteDepartment: CommandResult;\r\n deleteDiversionReason: CommandResult;\r\n deleteEntityCapability: CommandResult;\r\n deleteEscortRequest: CommandResult;\r\n deleteExternalAction: CommandResult;\r\n deleteExternalActionType: CommandResult;\r\n deleteExternalReference: CommandResult;\r\n deleteFacilityNonAcceptanceReason: CommandResult;\r\n deleteFbo: CommandResult;\r\n deleteFirewallRule: CommandResult;\r\n deleteFlightFollowingReport: CommandResult;\r\n deleteFuelTank: CommandResult;\r\n deleteLocation: CommandResult;\r\n deleteLocationHazard: CommandResult;\r\n deleteLocationHazardAttachment: CommandResult;\r\n deleteManifestEntry: CommandResult;\r\n deleteMedicalControlContactLogEntry: CommandResult;\r\n deleteMedicalFacility: CommandResult;\r\n deleteMedicalFacilityContact: CommandResult;\r\n deleteMedicalFacilityPhysician: CommandResult;\r\n deleteMedicalFacilityUnit: CommandResult;\r\n deleteNextDueType: CommandResult;\r\n deleteNonReferralReason: CommandResult;\r\n deleteNotification: CommandResult;\r\n deleteNotificationGroup: CommandResult;\r\n deleteNotificationGroupMember: CommandResult;\r\n deleteNotificationRecipient: CommandResult;\r\n deleteNotificationRecipients: CommandResult;\r\n deleteNotificationSubscription: CommandResult;\r\n deleteNotificationTemplate: CommandResult;\r\n deleteOemActivity: CommandResult;\r\n deleteOemAsset: CommandResult;\r\n deleteOemPlan: CommandResult;\r\n deleteOemPlanChangeRequest: CommandResult;\r\n deleteOfferAlgorithm: CommandResult;\r\n deleteOperation: CommandResult;\r\n deleteOutOfServiceEvent: CommandResult;\r\n deleteOutOfServiceEventNote: CommandResult;\r\n deleteOutOfServiceReason: CommandResult;\r\n deleteOutOfServiceSecondaryReason: CommandResult;\r\n deletePassdownLog: CommandResult;\r\n deletePerson: CommandResult;\r\n deletePhysician: CommandResult;\r\n deletePositionReport: CommandResult;\r\n deletePositionReportAlert: CommandResult;\r\n deleteProgram: CommandResult;\r\n deleteProgramBase: CommandResult;\r\n deleteQuestion: CommandResult;\r\n deleteQuestionnaire: CommandResult;\r\n deleteQuestionnaireQuestionResponse: CommandResult;\r\n deleteQuestionnaireQuestionResponseNote: CommandResult;\r\n deleteQuestionnaireResponse: CommandResult;\r\n deleteQuestionnaireSection: CommandResult;\r\n deleteQuestionnaireSectionQuestion: CommandResult;\r\n deleteReceivingFacilityRequest: CommandResult;\r\n deleteRegion: CommandResult;\r\n deleteRegionBase: CommandResult;\r\n deleteRegionGroup: CommandResult;\r\n deleteRendezvousRequest: CommandResult;\r\n deleteRequestPatient: CommandResult;\r\n deleteRequesterRole: CommandResult;\r\n deleteSpecialtyTeam: CommandResult;\r\n deleteSpecialtyTeamMember: CommandResult;\r\n deleteSupportRequest: CommandResult;\r\n deleteTimeline: CommandResult;\r\n deleteTimelineItem: CommandResult;\r\n deleteTimestamp: CommandResult;\r\n deleteTimestampType: CommandResult;\r\n deleteTimezone: CommandResult;\r\n deleteTransferCenter: CommandResult;\r\n deleteTransferReason: CommandResult;\r\n deleteTransportOffer: CommandResult;\r\n deleteTransportReason: CommandResult;\r\n deleteTrip: CommandResult;\r\n deleteTripLegManifestEntry: CommandResult;\r\n deleteTripPassenger: CommandResult;\r\n deleteTrmUser: CommandResult;\r\n deleteUnit: CommandResult;\r\n deleteUnitActivationRule: CommandResult;\r\n deleteUnitEMSystemMapping: CommandResult;\r\n deleteUnitNote: CommandResult;\r\n deleteUnitPosition: CommandResult;\r\n deleteUnitShift: CommandResult;\r\n deleteVehicle: CommandResult;\r\n deleteVehicleConfigurationClass: CommandResult;\r\n deleteVehicleControlZone: CommandResult;\r\n deleteVehicleDisposition: CommandResult;\r\n deleteVehicleMaintenance: CommandResult;\r\n deleteVehicleMake: CommandResult;\r\n deleteVehicleModel: CommandResult;\r\n deleteVehicleStateInspection: CommandResult;\r\n deleteWaypoint: CommandResult;\r\n deliverTrackedMessage: CommandResult;\r\n denyReceivingFacilityRequest: CommandResult;\r\n denyTrmUser: CommandResult;\r\n departVehicle: CommandResult;\r\n disableUnit: CommandResult;\r\n dismissApplicationNotification: CommandResult;\r\n disregardExternalAction: CommandResult;\r\n divertReceivingFacilityRequest: CommandResult;\r\n duplicateRequest: CommandResult;\r\n enableUnit: CommandResult;\r\n endOutOfServiceEvent: CommandResult;\r\n ensureThirdPartyUnit: CommandResult;\r\n ensureThirdPartyUnits: CommandResult;\r\n ensureThirdPartyVehicleAndUnit: CommandResult;\r\n generateCardReport: CommandResult;\r\n generateCardSummaryChange: CommandResult;\r\n generateCardSummaryChangeV2: CommandResult;\r\n generateLocationHazardAttachmentUrl: CommandResult;\r\n hideUnit: CommandResult;\r\n hideVehicle: CommandResult;\r\n initiateTransportCheck: CommandResult;\r\n insertWaypoint: CommandResult;\r\n linkCards: CommandResult;\r\n makeEstimatedDurationOfficial: CommandResult;\r\n markAsPilotUpdated: CommandResult;\r\n mergeMedicalFacilities: CommandResult;\r\n mergePostAndDropoffWaypoints: CommandResult;\r\n mergeUnitOriginAndPickupWaypoints: CommandResult;\r\n modifyWaypoint: CommandResult;\r\n offerWithBulkSkip: CommandResult;\r\n placeUnitOnStandby: CommandResult;\r\n reOpenCard: CommandResult;\r\n reSendToDataWarehouse: CommandResult;\r\n reactivateRequest: CommandResult;\r\n reactivateRequestFromTransferCenter: CommandResult;\r\n reassignVehicle: CommandResult;\r\n recalculateCandidates: CommandResult;\r\n recalculateTripMileage: CommandResult;\r\n referReceivingFacilityRequest: CommandResult;\r\n referTransportOffer: CommandResult;\r\n refreshLocationsFromGMRWorkday: CommandResult;\r\n refreshPeopleFromGMRWorkdayV2: CommandResult;\r\n registerTrmUser: CommandResult;\r\n reloadSummaryViews: CommandResult;\r\n removeCrewMemberFromOutOfCompliance: CommandResult;\r\n removeDelayFromUnit: CommandResult;\r\n removeTeamMemberFromUnitPosition: CommandResult;\r\n removeVehicleFromUnit: CommandResult;\r\n removeWaypoint: CommandResult;\r\n repositionUnit: CommandResult;\r\n requestAdditionalUnits: CommandResult;\r\n resetPassword: CommandResult;\r\n returnUnitToService: CommandResult;\r\n sendMessage: CommandResult;\r\n sendNotification: CommandResult;\r\n sendPatientInfo: CommandResult;\r\n sendToImageTrend: CommandResult;\r\n setCardLockStatus: CommandResult;\r\n setRoleScope: CommandResult;\r\n setVehicleControlZoneId: CommandResult;\r\n skipTransportOffer: CommandResult;\r\n snoozeAlert: CommandResult;\r\n splitUnitOriginAndPickupWaypoints: CommandResult;\r\n splitUnitPostAndDropoffWaypoints: CommandResult;\r\n submitMedicalFacilityForApproval: CommandResult;\r\n submitQuestionnaireResponse: CommandResult;\r\n submitSupportRequest: CommandResult;\r\n swapUnitVehicles: CommandResult;\r\n swapWaypoint: CommandResult;\r\n takeUnitOutOfService: CommandResult;\r\n teleportUnit: CommandResult;\r\n unDeleteCard: CommandResult;\r\n undeleteExternalReference: CommandResult;\r\n undeleteVehicle: CommandResult;\r\n undoArriveVehicle: CommandResult;\r\n undoDepartVehicle: CommandResult;\r\n unhideUnit: CommandResult;\r\n unhideVehicle: CommandResult;\r\n unmarkMedicalFacilityAsDuplicate: CommandResult;\r\n updateAccessibleItem: CommandResult;\r\n updateActivationRule: CommandResult;\r\n updateActiveAlert: CommandResult;\r\n updateActiveTimeline: CommandResult;\r\n updateAgency: CommandResult;\r\n updateAgencyLocation: CommandResult;\r\n updateAirport: CommandResult;\r\n updateAlert: CommandResult;\r\n updateApplicationNotification: CommandResult;\r\n updateAssignmentDelayedReason: CommandResult;\r\n updateBase: CommandResult;\r\n updateBaseControlZone: CommandResult;\r\n updateBaseMedicalControlContact: CommandResult;\r\n updateCancellation: CommandResult;\r\n updateCancellationCategory: CommandResult;\r\n updateCancellationReason: CommandResult;\r\n updateCancellationSecondaryReason: CommandResult;\r\n updateCapability: CommandResult;\r\n updateCard: CommandResult;\r\n updateCardBillable: CommandResult;\r\n updateCardDiversionType: CommandResult;\r\n updateCardLink: CommandResult;\r\n updateCardNote: CommandResult;\r\n updateCardNoteArchive: CommandResult;\r\n updateCardReOpenReason: CommandResult;\r\n updateCardSearchIndex: CommandResult;\r\n updateChiefComplaint: CommandResult;\r\n updateCommunicationCenter: CommandResult;\r\n updateCommunicationCenterTransportOfferOption: CommandResult;\r\n updateCompany: CommandResult;\r\n updateCompleteFlightInstance: CommandResult;\r\n updateConfigurationSetting: CommandResult;\r\n updateControlZone: CommandResult;\r\n updateDecline: CommandResult;\r\n updateDeclineCategory: CommandResult;\r\n updateDeclineReason: CommandResult;\r\n updateDeclineSecondaryReason: CommandResult;\r\n updateDepartment: CommandResult;\r\n updateDiversionReason: CommandResult;\r\n updateEmsReport: CommandResult;\r\n updateEscortRequest: CommandResult;\r\n updateEstimatedDurations: CommandResult;\r\n updateExternalAction: CommandResult;\r\n updateExternalActionType: CommandResult;\r\n updateExternalReference: CommandResult;\r\n updateFacilityNonAcceptanceReason: CommandResult;\r\n updateFbo: CommandResult;\r\n updateFirewallRule: CommandResult;\r\n updateFlightFollowingReport: CommandResult;\r\n updateFuelTank: CommandResult;\r\n updateGmrCadNumber: CommandResult;\r\n updateLocation: CommandResult;\r\n updateLocationHazard: CommandResult;\r\n updateManifestEntry: CommandResult;\r\n updateMedicalControlContactLogEntry: CommandResult;\r\n updateMedicalFacility: CommandResult;\r\n updateMedicalFacilityContact: CommandResult;\r\n updateMedicalFacilityPhysician: CommandResult;\r\n updateMedicalFacilityUnit: CommandResult;\r\n updateNextDueType: CommandResult;\r\n updateNonReferralReason: CommandResult;\r\n updateNotification: CommandResult;\r\n updateNotificationGroup: CommandResult;\r\n updateNotificationGroupMember: CommandResult;\r\n updateNotificationRecipient: CommandResult;\r\n updateNotificationSubscription: CommandResult;\r\n updateNotificationTemplate: CommandResult;\r\n updateOdometerReadings: CommandResult;\r\n updateOemActivity: CommandResult;\r\n updateOemAsset: CommandResult;\r\n updateOemPlan: CommandResult;\r\n updateOemPlanChangeRequest: CommandResult;\r\n updateOfferAlgorithm: CommandResult;\r\n updateOfferRank: CommandResult;\r\n updateOperation: CommandResult;\r\n updateOperationContactInfo: CommandResult;\r\n updateOutOfComplianceCrewMember: CommandResult;\r\n updateOutOfServiceEvent: CommandResult;\r\n updateOutOfServiceEventNote: CommandResult;\r\n updateOutOfServiceReason: CommandResult;\r\n updateOutOfServiceSecondaryReason: CommandResult;\r\n updatePassdownLog: CommandResult;\r\n updatePatientClinicalInfo: CommandResult;\r\n updatePatientInfo: CommandResult;\r\n updatePerson: CommandResult;\r\n updatePhysician: CommandResult;\r\n updatePilotUnitConfiguration: CommandResult;\r\n updatePlannedCardCompletionTime: CommandResult;\r\n updatePositionReport: CommandResult;\r\n updatePositionReportAlert: CommandResult;\r\n updateProgram: CommandResult;\r\n updateProgramBase: CommandResult;\r\n updateQuestion: CommandResult;\r\n updateQuestionnaire: CommandResult;\r\n updateQuestionnaireQuestionResponse: CommandResult;\r\n updateQuestionnaireQuestionResponseDeep: CommandResult;\r\n updateQuestionnaireQuestionResponseNote: CommandResult;\r\n updateQuestionnaireResponse: CommandResult;\r\n updateQuestionnaireResponseDeep: CommandResult;\r\n updateReceivingFacilityAutoAcceptance: CommandResult;\r\n updateRecipientMessageStatus: CommandResult;\r\n updateRegion: CommandResult;\r\n updateRegionBase: CommandResult;\r\n updateRegionGroup: CommandResult;\r\n updateRendezvousRequest: CommandResult;\r\n updateRequest: CommandResult;\r\n updateRequestAtlo: CommandResult;\r\n updateRequestLocation: CommandResult;\r\n updateRequestPatient: CommandResult;\r\n updateRequestPublicUtilityInfo: CommandResult;\r\n updateRequestRegion: CommandResult;\r\n updateRequestSafetyQuestions: CommandResult;\r\n updateRequestStandbyStatus: CommandResult;\r\n updateRequester: CommandResult;\r\n updateRequesterRole: CommandResult;\r\n updateRequesterSpecialtyTeam: CommandResult;\r\n updateRiskAnalysis: CommandResult;\r\n updateSkip: CommandResult;\r\n updateSpecialtyTeam: CommandResult;\r\n updateSpecialtyTeamMember: CommandResult;\r\n updateSupportRequest: CommandResult;\r\n updateTcsRealtimeTrackingTab: CommandResult;\r\n updateTimeline: CommandResult;\r\n updateTimelineItem: CommandResult;\r\n updateTimestamp: CommandResult;\r\n updateTimestampType: CommandResult;\r\n updateTimezone: CommandResult;\r\n updateTrackedMessage: CommandResult;\r\n updateTransferCenter: CommandResult;\r\n updateTransferCenterCallInfo: CommandResult;\r\n updateTransferReason: CommandResult;\r\n updateTransportOffer: CommandResult;\r\n updateTransportOfferEta: CommandResult;\r\n updateTransportOfferOption: CommandResult;\r\n updateTransportReason: CommandResult;\r\n updateTrip: CommandResult;\r\n updateTripLegDuration: CommandResult;\r\n updateTripPassenger: CommandResult;\r\n updateTrmUser: CommandResult;\r\n updateUnit: CommandResult;\r\n updateUnitActivationRule: CommandResult;\r\n updateUnitConfiguration: CommandResult;\r\n updateUnitEMSystemMapping: CommandResult;\r\n updateUnitNote: CommandResult;\r\n updateUnitPosition: CommandResult;\r\n updateUnitShift: CommandResult;\r\n updateVehicle: CommandResult;\r\n updateVehicleConfigurationClass: CommandResult;\r\n updateVehicleControlZone: CommandResult;\r\n updateVehicleDisposition: CommandResult;\r\n updateVehicleMaintenance: CommandResult;\r\n updateVehicleMake: CommandResult;\r\n updateVehicleModel: CommandResult;\r\n updateVehicleStateInspection: CommandResult;\r\n updateWaypoint: CommandResult;\r\n updateWaypointDuration: CommandResult;\r\n upsertPersonNotificationGroups: CommandResult;\r\n upsertQuestionChoice: CommandResult;\r\n upsertQuestionnaireQuestionResponseNote: CommandResult;\r\n upsertQuestionnaireSection: CommandResult;\r\n upsertQuestionnaireSectionQuestion: CommandResult;\r\n upsertTimelineItem: CommandResult;\r\n upsertUnitPosition: CommandResult;\r\n upsertVehicleMaintenanceParameters: CommandResult;\r\n};\r\n\r\nexport type MutationacceptReceivingFacilityRequestArgs = {\r\n command: AcceptReceivingFacilityRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationacceptTransportOfferArgs = {\r\n command: AcceptTransportOffer;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationacknowledgeAlertArgs = {\r\n command: AcknowledgeAlert;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationacknowledgeExternalRequestArgs = {\r\n command: AcknowledgeExternalRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationacknowledgePassdownLogArgs = {\r\n command: AcknowledgePassdownLog;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationacknowledgeWebOrderLogArgs = {\r\n command: AcknowledgeWebOrderLog;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationactivateUnitArgs = {\r\n command: ActivateUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddAccessibleItemArgs = {\r\n command: AddAccessibleItem;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddActivationRuleArgs = {\r\n command: AddActivationRule;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddActiveAlertArgs = {\r\n command: AddActiveAlert;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddAgencyArgs = {\r\n command: AddAgency;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddAgencyLocationArgs = {\r\n command: AddAgencyLocation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddAirportArgs = {\r\n command: AddAirport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddAlertArgs = {\r\n command: AddAlert;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddApplicationNotificationArgs = {\r\n command: AddApplicationNotification;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddAssignmentDelayedReasonArgs = {\r\n command: AddAssignmentDelayedReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddBaseArgs = {\r\n command: AddBase;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddBaseControlZoneArgs = {\r\n command: AddBaseControlZone;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddBaseMedicalControlContactArgs = {\r\n command: AddBaseMedicalControlContact;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCancellationArgs = {\r\n command: AddCancellation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCancellationCategoryArgs = {\r\n command: AddCancellationCategory;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCancellationReasonArgs = {\r\n command: AddCancellationReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCancellationSecondaryReasonArgs = {\r\n command: AddCancellationSecondaryReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCapabilityArgs = {\r\n command: AddCapability;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCardArgs = {\r\n command: AddCard;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCardLinkArgs = {\r\n command: AddCardLink;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCardNoteArgs = {\r\n command: AddCardNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCardNoteArchiveArgs = {\r\n command: AddCardNoteArchive;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCardReOpenReasonArgs = {\r\n command: AddCardReOpenReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCommunicationCenterArgs = {\r\n command: AddCommunicationCenter;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCommunicationCenterTransportOfferOptionArgs = {\r\n command: AddCommunicationCenterTransportOfferOption;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCompanyArgs = {\r\n command: AddCompany;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddCompleteFlightInstanceArgs = {\r\n command: AddCompleteFlightInstance;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddConfigurationSettingArgs = {\r\n command: AddConfigurationSetting;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddControlZoneArgs = {\r\n command: AddControlZone;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddDeclineArgs = {\r\n command: AddDecline;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddDeclineCategoryArgs = {\r\n command: AddDeclineCategory;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddDeclineReasonArgs = {\r\n command: AddDeclineReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddDeclineSecondaryReasonArgs = {\r\n command: AddDeclineSecondaryReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddDepartmentArgs = {\r\n command: AddDepartment;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddDiversionReasonArgs = {\r\n command: AddDiversionReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddEmsReportArgs = {\r\n command: AddEmsReport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddEntityCapabilityArgs = {\r\n command: AddEntityCapability;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddEscortRequestArgs = {\r\n command: AddEscortRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddExistingSpecialtyTeamMemberArgs = {\r\n command: AddExistingSpecialtyTeamMember;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddExternalActionArgs = {\r\n command: AddExternalAction;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddExternalActionTypeArgs = {\r\n command: AddExternalActionType;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddExternalReferenceArgs = {\r\n command: AddExternalReference;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddFacilityNonAcceptanceReasonArgs = {\r\n command: AddFacilityNonAcceptanceReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddFboArgs = {\r\n command: AddFbo;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddFirewallRuleArgs = {\r\n command: AddFirewallRule;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddFlightFollowingReportArgs = {\r\n command: AddFlightFollowingReport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddFuelTankArgs = {\r\n command: AddFuelTank;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddLocationArgs = {\r\n command: AddLocation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddLocationHazardArgs = {\r\n command: AddLocationHazard;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddManifestEntryArgs = {\r\n command: AddManifestEntry;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddMedicalControlContactLogEntryArgs = {\r\n command: AddMedicalControlContactLogEntry;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddMedicalFacilityArgs = {\r\n command: AddMedicalFacility;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddMedicalFacilityContactArgs = {\r\n command: AddMedicalFacilityContact;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddMedicalFacilityPhysicianArgs = {\r\n command: AddMedicalFacilityPhysician;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddMedicalFacilityUnitArgs = {\r\n command: AddMedicalFacilityUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddMessageStatusUpdateArgs = {\r\n command: AddMessageStatusUpdate;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddNextDueTypeArgs = {\r\n command: AddNextDueType;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddNonReferralReasonArgs = {\r\n command: AddNonReferralReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddNotificationArgs = {\r\n command: AddNotification;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddNotificationGroupArgs = {\r\n command: AddNotificationGroup;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddNotificationGroupMemberArgs = {\r\n command: AddNotificationGroupMember;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddNotificationRecipientArgs = {\r\n command: AddNotificationRecipient;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddNotificationRecipientsArgs = {\r\n command: AddNotificationRecipients;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddNotificationSubscriptionArgs = {\r\n command: AddNotificationSubscription;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddNotificationTemplateArgs = {\r\n command: AddNotificationTemplate;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddOemActivityArgs = {\r\n command: AddOemActivity;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddOemAssetArgs = {\r\n command: AddOemAsset;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddOemPlanArgs = {\r\n command: AddOemPlan;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddOemPlanChangeRequestArgs = {\r\n command: AddOemPlanChangeRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddOfferAlgorithmArgs = {\r\n command: AddOfferAlgorithm;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddOperationArgs = {\r\n command: AddOperation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddOutOfComplianceCrewMemberArgs = {\r\n command: AddOutOfComplianceCrewMember;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddOutOfServiceEventArgs = {\r\n command: AddOutOfServiceEvent;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddOutOfServiceEventNoteArgs = {\r\n command: AddOutOfServiceEventNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddOutOfServiceReasonArgs = {\r\n command: AddOutOfServiceReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddOutOfServiceSecondaryReasonArgs = {\r\n command: AddOutOfServiceSecondaryReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddPassdownLogArgs = {\r\n command: AddPassdownLog;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddPersonArgs = {\r\n command: AddPerson;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddPhysicianArgs = {\r\n command: AddPhysician;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddPositionReportArgs = {\r\n command: AddPositionReport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddPositionReportAlertArgs = {\r\n command: AddPositionReportAlert;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddPreApprovedTrmUserArgs = {\r\n command: AddPreApprovedTrmUser;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddProgramArgs = {\r\n command: AddProgram;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddProgramBaseArgs = {\r\n command: AddProgramBase;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddQuestionArgs = {\r\n command: AddQuestion;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddQuestionnaireArgs = {\r\n command: AddQuestionnaire;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddQuestionnaireQuestionResponseArgs = {\r\n command: AddQuestionnaireQuestionResponse;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddQuestionnaireQuestionResponseNoteArgs = {\r\n command: AddQuestionnaireQuestionResponseNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddQuestionnaireResponseArgs = {\r\n command: AddQuestionnaireResponse;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddReceivingFacilityRequestDeclineHistoryArgs = {\r\n command: AddReceivingFacilityRequestDeclineHistory;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddRegionArgs = {\r\n command: AddRegion;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddRegionBaseArgs = {\r\n command: AddRegionBase;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddRegionGroupArgs = {\r\n command: AddRegionGroup;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddRendezvousRequestArgs = {\r\n command: AddRendezvousRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddRequestPatientArgs = {\r\n command: AddRequestPatient;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddRequesterRoleArgs = {\r\n command: AddRequesterRole;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddSpecialtyTeamArgs = {\r\n command: AddSpecialtyTeam;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddSpecialtyTeamMemberArgs = {\r\n command: AddSpecialtyTeamMember;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddSupportRequestArgs = {\r\n command: AddSupportRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTimelineArgs = {\r\n command: AddTimeline;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTimelineItemArgs = {\r\n command: AddTimelineItem;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTimestampArgs = {\r\n command: AddTimestamp;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTimestampTypeArgs = {\r\n command: AddTimestampType;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTimezoneArgs = {\r\n command: AddTimezone;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTransferCenterArgs = {\r\n command: AddTransferCenter;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTransferCenterRegionArgs = {\r\n command: AddTransferCenterRegion;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTransferReasonArgs = {\r\n command: AddTransferReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTransportOfferArgs = {\r\n command: AddTransportOffer;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTransportReasonArgs = {\r\n command: AddTransportReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTripArgs = {\r\n command: AddTrip;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTripLegManifestEntryArgs = {\r\n command: AddTripLegManifestEntry;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddTripPassengerArgs = {\r\n command: AddTripPassenger;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddUnitArgs = {\r\n command: AddUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddUnitActivationRuleArgs = {\r\n command: AddUnitActivationRule;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddUnitEMSystemMappingArgs = {\r\n command: AddUnitEMSystemMapping;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddUnitNoteArgs = {\r\n command: AddUnitNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddUnitOutOfServiceEventArgs = {\r\n command: AddUnitOutOfServiceEvent;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddUnitPositionArgs = {\r\n command: AddUnitPosition;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddUnitShiftArgs = {\r\n command: AddUnitShift;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddVehicleArgs = {\r\n command: AddVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddVehicleConfigurationClassArgs = {\r\n command: AddVehicleConfigurationClass;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddVehicleControlZoneArgs = {\r\n command: AddVehicleControlZone;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddVehicleDispositionArgs = {\r\n command: AddVehicleDisposition;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddVehicleMaintenanceArgs = {\r\n command: AddVehicleMaintenance;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddVehicleMakeArgs = {\r\n command: AddVehicleMake;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddVehicleModelArgs = {\r\n command: AddVehicleModel;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddVehicleOutOfServiceEventArgs = {\r\n command: AddVehicleOutOfServiceEvent;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddVehicleStateInspectionArgs = {\r\n command: AddVehicleStateInspection;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddWaypointArgs = {\r\n command: AddWaypoint;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationaddWebOrderLogArgs = {\r\n command: AddWebOrderLog;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationapproveMedicalFacilityArgs = {\r\n command: ApproveMedicalFacility;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationapproveTrmUserArgs = {\r\n command: ApproveTrmUser;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationarchiveMedicalFacilityArgs = {\r\n command: ArchiveMedicalFacility;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationarriveVehicleArgs = {\r\n command: ArriveVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationassignVehicleArgs = {\r\n command: AssignVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationauthorizeClientSyncAccessArgs = {\r\n command: AuthorizeClientSyncAccess;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationbeginAssignmentArgs = {\r\n command: BeginAssignment;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationbeginOutOfServiceEventArgs = {\r\n command: BeginOutOfServiceEvent;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationbeginTransportOfferArgs = {\r\n command: BeginTransportOffer;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcalculateEtasArgs = {\r\n command: CalculateEtas;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcancelOperationArgs = {\r\n command: CancelOperation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcancelReceivingFacilityRequestArgs = {\r\n command: CancelReceivingFacilityRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcancelRequestArgs = {\r\n command: CancelRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcancelRequestFromTransferCenterArgs = {\r\n command: CancelRequestFromTransferCenter;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcancelTransportOfferArgs = {\r\n command: CancelTransportOffer;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationchangeCallTypeArgs = {\r\n command: ChangeCallType;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationchangeCardCallStatusArgs = {\r\n command: ChangeCardCallStatus;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationchangeRequestCancellationReasonArgs = {\r\n command: ChangeRequestCancellationReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationchangeRequestTypeArgs = {\r\n command: ChangeRequestType;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationchangeUnitArgs = {\r\n command: ChangeUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationchangeVehicleArgs = {\r\n command: ChangeVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationchangeVehicleFlightLogProcessArgs = {\r\n command: ChangeVehicleFlightLogProcess;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcleanupActiveAlertsArgs = {\r\n command: CleanupActiveAlerts;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcleanupCardActiveAlertsArgs = {\r\n command: CleanupCardActiveAlerts;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcleanupCardsArgs = {\r\n command: CleanupCards;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcleanupPendingExternalActionsArgs = {\r\n command: CleanupPendingExternalActions;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationclearPendingArchiveMedicalFacilityArgs = {\r\n command: ClearPendingArchiveMedicalFacility;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcloseCardArgs = {\r\n command: CloseCard;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationconfirmManifestArgs = {\r\n command: ConfirmManifest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationconfirmPositionReportArgs = {\r\n command: ConfirmPositionReport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcopyAlertArgs = {\r\n command: CopyAlert;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcopyNotificationTemplateArgs = {\r\n command: CopyNotificationTemplate;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcopyOfferAlgorithmArgs = {\r\n command: CopyOfferAlgorithm;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcreateGroundRunArgs = {\r\n command: CreateGroundRun;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcreateMaintenanceOperationArgs = {\r\n command: CreateMaintenanceOperation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcreatePrecautionaryLandingArgs = {\r\n command: CreatePrecautionaryLanding;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcreatePrecautionaryLandingV2Args = {\r\n command: CreatePrecautionaryLandingV2;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcreateRequestArgs = {\r\n command: CreateRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcreateSystemCrewNotificationArgs = {\r\n command: CreateSystemCrewNotification;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationcreateTrainingOperationArgs = {\r\n command: CreateTrainingOperation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeactivateTrmUserArgs = {\r\n command: DeactivateTrmUser;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeclineAndAssignNewTransportOfferArgs = {\r\n command: DeclineAndAssignNewTransportOffer;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeclineOrAbortOperationArgs = {\r\n command: DeclineOrAbortOperation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeclineTransportOfferArgs = {\r\n command: DeclineTransportOffer;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeclineTransportOfferAndDelayAssignmentArgs = {\r\n command: DeclineTransportOfferAndDelayAssignment;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdelayAssignmentArgs = {\r\n command: DelayAssignment;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdelayUnitArgs = {\r\n command: DelayUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteAccessibleItemArgs = {\r\n command: DeleteAccessibleItem;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteActivationRuleArgs = {\r\n command: DeleteActivationRule;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteActiveAlertArgs = {\r\n command: DeleteActiveAlert;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteActiveTimelineArgs = {\r\n command: DeleteActiveTimeline;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteAgencyArgs = {\r\n command: DeleteAgency;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteAgencyLocationArgs = {\r\n command: DeleteAgencyLocation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteAirportArgs = {\r\n command: DeleteAirport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteAlertArgs = {\r\n command: DeleteAlert;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteApplicationNotificationArgs = {\r\n command: DeleteApplicationNotification;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteAssignmentDelayedReasonArgs = {\r\n command: DeleteAssignmentDelayedReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteBaseArgs = {\r\n command: DeleteBase;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteBaseControlZoneArgs = {\r\n command: DeleteBaseControlZone;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteBaseMedicalControlContactArgs = {\r\n command: DeleteBaseMedicalControlContact;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCancellationCategoryArgs = {\r\n command: DeleteCancellationCategory;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCancellationReasonArgs = {\r\n command: DeleteCancellationReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCancellationSecondaryReasonArgs = {\r\n command: DeleteCancellationSecondaryReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCapabilityArgs = {\r\n command: DeleteCapability;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCardArgs = {\r\n command: DeleteCard;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCardLinkArgs = {\r\n command: DeleteCardLink;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCardNoteArgs = {\r\n command: DeleteCardNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCardNoteArchiveArgs = {\r\n command: DeleteCardNoteArchive;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCardReOpenReasonArgs = {\r\n command: DeleteCardReOpenReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCommunicationCenterArgs = {\r\n command: DeleteCommunicationCenter;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCommunicationCenterTransportOfferOptionArgs = {\r\n command: DeleteCommunicationCenterTransportOfferOption;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCompanyArgs = {\r\n command: DeleteCompany;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteCompleteFlightInstanceArgs = {\r\n command: DeleteCompleteFlightInstance;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteControlZoneArgs = {\r\n command: DeleteControlZone;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteDeclineCategoryArgs = {\r\n command: DeleteDeclineCategory;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteDeclineReasonArgs = {\r\n command: DeleteDeclineReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteDeclineSecondaryReasonArgs = {\r\n command: DeleteDeclineSecondaryReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteDepartmentArgs = {\r\n command: DeleteDepartment;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteDiversionReasonArgs = {\r\n command: DeleteDiversionReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteEntityCapabilityArgs = {\r\n command: DeleteEntityCapability;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteEscortRequestArgs = {\r\n command: DeleteEscortRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteExternalActionArgs = {\r\n command: DeleteExternalAction;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteExternalActionTypeArgs = {\r\n command: DeleteExternalActionType;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteExternalReferenceArgs = {\r\n command: DeleteExternalReference;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteFacilityNonAcceptanceReasonArgs = {\r\n command: DeleteFacilityNonAcceptanceReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteFboArgs = {\r\n command: DeleteFbo;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteFirewallRuleArgs = {\r\n command: DeleteFirewallRule;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteFlightFollowingReportArgs = {\r\n command: DeleteFlightFollowingReport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteFuelTankArgs = {\r\n command: DeleteFuelTank;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteLocationArgs = {\r\n command: DeleteLocation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteLocationHazardArgs = {\r\n command: DeleteLocationHazard;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteLocationHazardAttachmentArgs = {\r\n command: DeleteLocationHazardAttachment;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteManifestEntryArgs = {\r\n command: DeleteManifestEntry;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteMedicalControlContactLogEntryArgs = {\r\n command: DeleteMedicalControlContactLogEntry;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteMedicalFacilityArgs = {\r\n command: DeleteMedicalFacility;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteMedicalFacilityContactArgs = {\r\n command: DeleteMedicalFacilityContact;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteMedicalFacilityPhysicianArgs = {\r\n command: DeleteMedicalFacilityPhysician;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteMedicalFacilityUnitArgs = {\r\n command: DeleteMedicalFacilityUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteNextDueTypeArgs = {\r\n command: DeleteNextDueType;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteNonReferralReasonArgs = {\r\n command: DeleteNonReferralReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteNotificationArgs = {\r\n command: DeleteNotification;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteNotificationGroupArgs = {\r\n command: DeleteNotificationGroup;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteNotificationGroupMemberArgs = {\r\n command: DeleteNotificationGroupMember;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteNotificationRecipientArgs = {\r\n command: DeleteNotificationRecipient;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteNotificationRecipientsArgs = {\r\n command: DeleteNotificationRecipients;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteNotificationSubscriptionArgs = {\r\n command: DeleteNotificationSubscription;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteNotificationTemplateArgs = {\r\n command: DeleteNotificationTemplate;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteOemActivityArgs = {\r\n command: DeleteOemActivity;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteOemAssetArgs = {\r\n command: DeleteOemAsset;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteOemPlanArgs = {\r\n command: DeleteOemPlan;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteOemPlanChangeRequestArgs = {\r\n command: DeleteOemPlanChangeRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteOfferAlgorithmArgs = {\r\n command: DeleteOfferAlgorithm;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteOperationArgs = {\r\n command: DeleteOperation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteOutOfServiceEventArgs = {\r\n command: DeleteOutOfServiceEvent;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteOutOfServiceEventNoteArgs = {\r\n command: DeleteOutOfServiceEventNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteOutOfServiceReasonArgs = {\r\n command: DeleteOutOfServiceReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteOutOfServiceSecondaryReasonArgs = {\r\n command: DeleteOutOfServiceSecondaryReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeletePassdownLogArgs = {\r\n command: DeletePassdownLog;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeletePersonArgs = {\r\n command: DeletePerson;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeletePhysicianArgs = {\r\n command: DeletePhysician;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeletePositionReportArgs = {\r\n command: DeletePositionReport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeletePositionReportAlertArgs = {\r\n command: DeletePositionReportAlert;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteProgramArgs = {\r\n command: DeleteProgram;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteProgramBaseArgs = {\r\n command: DeleteProgramBase;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteQuestionArgs = {\r\n command: DeleteQuestion;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteQuestionnaireArgs = {\r\n command: DeleteQuestionnaire;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteQuestionnaireQuestionResponseArgs = {\r\n command: DeleteQuestionnaireQuestionResponse;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteQuestionnaireQuestionResponseNoteArgs = {\r\n command: DeleteQuestionnaireQuestionResponseNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteQuestionnaireResponseArgs = {\r\n command: DeleteQuestionnaireResponse;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteQuestionnaireSectionArgs = {\r\n command: DeleteQuestionnaireSection;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteQuestionnaireSectionQuestionArgs = {\r\n command: DeleteQuestionnaireSectionQuestion;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteReceivingFacilityRequestArgs = {\r\n command: DeleteReceivingFacilityRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteRegionArgs = {\r\n command: DeleteRegion;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteRegionBaseArgs = {\r\n command: DeleteRegionBase;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteRegionGroupArgs = {\r\n command: DeleteRegionGroup;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteRendezvousRequestArgs = {\r\n command: DeleteRendezvousRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteRequestPatientArgs = {\r\n command: DeleteRequestPatient;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteRequesterRoleArgs = {\r\n command: DeleteRequesterRole;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteSpecialtyTeamArgs = {\r\n command: DeleteSpecialtyTeam;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteSpecialtyTeamMemberArgs = {\r\n command: DeleteSpecialtyTeamMember;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteSupportRequestArgs = {\r\n command: DeleteSupportRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTimelineArgs = {\r\n command: DeleteTimeline;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTimelineItemArgs = {\r\n command: DeleteTimelineItem;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTimestampArgs = {\r\n command: DeleteTimestamp;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTimestampTypeArgs = {\r\n command: DeleteTimestampType;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTimezoneArgs = {\r\n command: DeleteTimezone;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTransferCenterArgs = {\r\n command: DeleteTransferCenter;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTransferReasonArgs = {\r\n command: DeleteTransferReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTransportOfferArgs = {\r\n command: DeleteTransportOffer;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTransportReasonArgs = {\r\n command: DeleteTransportReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTripArgs = {\r\n command: DeleteTrip;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTripLegManifestEntryArgs = {\r\n command: DeleteTripLegManifestEntry;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTripPassengerArgs = {\r\n command: DeleteTripPassenger;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteTrmUserArgs = {\r\n command: DeleteTrmUser;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteUnitArgs = {\r\n command: DeleteUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteUnitActivationRuleArgs = {\r\n command: DeleteUnitActivationRule;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteUnitEMSystemMappingArgs = {\r\n command: DeleteUnitEMSystemMapping;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteUnitNoteArgs = {\r\n command: DeleteUnitNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteUnitPositionArgs = {\r\n command: DeleteUnitPosition;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteUnitShiftArgs = {\r\n command: DeleteUnitShift;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteVehicleArgs = {\r\n command: DeleteVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteVehicleConfigurationClassArgs = {\r\n command: DeleteVehicleConfigurationClass;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteVehicleControlZoneArgs = {\r\n command: DeleteVehicleControlZone;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteVehicleDispositionArgs = {\r\n command: DeleteVehicleDisposition;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteVehicleMaintenanceArgs = {\r\n command: DeleteVehicleMaintenance;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteVehicleMakeArgs = {\r\n command: DeleteVehicleMake;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteVehicleModelArgs = {\r\n command: DeleteVehicleModel;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteVehicleStateInspectionArgs = {\r\n command: DeleteVehicleStateInspection;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeleteWaypointArgs = {\r\n command: DeleteWaypoint;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdeliverTrackedMessageArgs = {\r\n command: DeliverTrackedMessage;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdenyReceivingFacilityRequestArgs = {\r\n command: DenyReceivingFacilityRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdenyTrmUserArgs = {\r\n command: DenyTrmUser;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdepartVehicleArgs = {\r\n command: DepartVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdisableUnitArgs = {\r\n command: DisableUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdismissApplicationNotificationArgs = {\r\n command: DismissApplicationNotification;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdisregardExternalActionArgs = {\r\n command: DisregardExternalAction;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationdivertReceivingFacilityRequestArgs = {\r\n command: DivertReceivingFacilityRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationduplicateRequestArgs = {\r\n command: DuplicateRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationenableUnitArgs = {\r\n command: EnableUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationendOutOfServiceEventArgs = {\r\n command: EndOutOfServiceEvent;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationensureThirdPartyUnitArgs = {\r\n command: EnsureThirdPartyUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationensureThirdPartyUnitsArgs = {\r\n command: EnsureThirdPartyUnits;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationensureThirdPartyVehicleAndUnitArgs = {\r\n command: EnsureThirdPartyVehicleAndUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationgenerateCardReportArgs = {\r\n command: GenerateCardReport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationgenerateCardSummaryChangeArgs = {\r\n command: GenerateCardSummaryChange;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationgenerateCardSummaryChangeV2Args = {\r\n command: GenerateCardSummaryChangeV2;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationgenerateLocationHazardAttachmentUrlArgs = {\r\n command: GenerateLocationHazardAttachmentUrl;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationhideUnitArgs = {\r\n command: HideUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationhideVehicleArgs = {\r\n command: HideVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationinitiateTransportCheckArgs = {\r\n command: InitiateTransportCheck;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationinsertWaypointArgs = {\r\n command: InsertWaypoint;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationlinkCardsArgs = {\r\n command: LinkCards;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationmakeEstimatedDurationOfficialArgs = {\r\n command: MakeEstimatedDurationOfficial;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationmarkAsPilotUpdatedArgs = {\r\n command: MarkAsPilotUpdated;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationmergeMedicalFacilitiesArgs = {\r\n command: MergeMedicalFacilities;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationmergePostAndDropoffWaypointsArgs = {\r\n command: MergePostAndDropoffWaypoints;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationmergeUnitOriginAndPickupWaypointsArgs = {\r\n command: MergeUnitOriginAndPickupWaypoints;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationmodifyWaypointArgs = {\r\n command: ModifyWaypoint;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationofferWithBulkSkipArgs = {\r\n command: OfferWithBulkSkip;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationplaceUnitOnStandbyArgs = {\r\n command: PlaceUnitOnStandby;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationreOpenCardArgs = {\r\n command: ReOpenCard;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationreSendToDataWarehouseArgs = {\r\n command: ReSendToDataWarehouse;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationreactivateRequestArgs = {\r\n command: ReactivateRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationreactivateRequestFromTransferCenterArgs = {\r\n command: ReactivateRequestFromTransferCenter;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationreassignVehicleArgs = {\r\n command: ReassignVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationrecalculateCandidatesArgs = {\r\n command: RecalculateCandidates;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationrecalculateTripMileageArgs = {\r\n command: RecalculateTripMileage;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationreferReceivingFacilityRequestArgs = {\r\n command: ReferReceivingFacilityRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationreferTransportOfferArgs = {\r\n command: ReferTransportOffer;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationrefreshLocationsFromGMRWorkdayArgs = {\r\n command: RefreshLocationsFromGMRWorkday;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationrefreshPeopleFromGMRWorkdayV2Args = {\r\n command: RefreshPeopleFromGMRWorkdayV2;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationregisterTrmUserArgs = {\r\n command: RegisterTrmUser;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationreloadSummaryViewsArgs = {\r\n command?: ReloadSummaryViews;\r\n};\r\n\r\nexport type MutationremoveCrewMemberFromOutOfComplianceArgs = {\r\n command: RemoveCrewMemberFromOutOfCompliance;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationremoveDelayFromUnitArgs = {\r\n command: RemoveDelayFromUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationremoveTeamMemberFromUnitPositionArgs = {\r\n command: RemoveTeamMemberFromUnitPosition;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationremoveVehicleFromUnitArgs = {\r\n command: RemoveVehicleFromUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationremoveWaypointArgs = {\r\n command: RemoveWaypoint;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationrepositionUnitArgs = {\r\n command: RepositionUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationrequestAdditionalUnitsArgs = {\r\n command: RequestAdditionalUnits;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationresetPasswordArgs = {\r\n command: ResetPassword;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationreturnUnitToServiceArgs = {\r\n command: ReturnUnitToService;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsendMessageArgs = {\r\n command: SendMessage;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsendNotificationArgs = {\r\n command: SendNotification;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsendPatientInfoArgs = {\r\n command: SendPatientInfo;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsendToImageTrendArgs = {\r\n command: SendToImageTrend;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsetCardLockStatusArgs = {\r\n command: SetCardLockStatus;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsetRoleScopeArgs = {\r\n command: SetRoleScope;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsetVehicleControlZoneIdArgs = {\r\n command: SetVehicleControlZoneId;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationskipTransportOfferArgs = {\r\n command: SkipTransportOffer;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsnoozeAlertArgs = {\r\n command: SnoozeAlert;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsplitUnitOriginAndPickupWaypointsArgs = {\r\n command: SplitUnitOriginAndPickupWaypoints;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsplitUnitPostAndDropoffWaypointsArgs = {\r\n command: SplitUnitPostAndDropoffWaypoints;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsubmitMedicalFacilityForApprovalArgs = {\r\n command: SubmitMedicalFacilityForApproval;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsubmitQuestionnaireResponseArgs = {\r\n command: SubmitQuestionnaireResponse;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationsubmitSupportRequestArgs = {\r\n command: SubmitSupportRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationswapUnitVehiclesArgs = {\r\n command: SwapUnitVehicles;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationswapWaypointArgs = {\r\n command: SwapWaypoint;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationtakeUnitOutOfServiceArgs = {\r\n command: TakeUnitOutOfService;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationteleportUnitArgs = {\r\n command: TeleportUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationunDeleteCardArgs = {\r\n command: UnDeleteCard;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationundeleteExternalReferenceArgs = {\r\n command: UndeleteExternalReference;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationundeleteVehicleArgs = {\r\n command: UndeleteVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationundoArriveVehicleArgs = {\r\n command: UndoArriveVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationundoDepartVehicleArgs = {\r\n command: UndoDepartVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationunhideUnitArgs = {\r\n command: UnhideUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationunhideVehicleArgs = {\r\n command: UnhideVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationunmarkMedicalFacilityAsDuplicateArgs = {\r\n command: UnmarkMedicalFacilityAsDuplicate;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateAccessibleItemArgs = {\r\n command: UpdateAccessibleItem;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateActivationRuleArgs = {\r\n command: UpdateActivationRule;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateActiveAlertArgs = {\r\n command: UpdateActiveAlert;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateActiveTimelineArgs = {\r\n command: UpdateActiveTimeline;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateAgencyArgs = {\r\n command: UpdateAgency;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateAgencyLocationArgs = {\r\n command: UpdateAgencyLocation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateAirportArgs = {\r\n command: UpdateAirport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateAlertArgs = {\r\n command: UpdateAlert;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateApplicationNotificationArgs = {\r\n command: UpdateApplicationNotification;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateAssignmentDelayedReasonArgs = {\r\n command: UpdateAssignmentDelayedReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateBaseArgs = {\r\n command: UpdateBase;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateBaseControlZoneArgs = {\r\n command: UpdateBaseControlZone;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateBaseMedicalControlContactArgs = {\r\n command: UpdateBaseMedicalControlContact;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCancellationArgs = {\r\n command: UpdateCancellation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCancellationCategoryArgs = {\r\n command: UpdateCancellationCategory;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCancellationReasonArgs = {\r\n command: UpdateCancellationReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCancellationSecondaryReasonArgs = {\r\n command: UpdateCancellationSecondaryReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCapabilityArgs = {\r\n command: UpdateCapability;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCardArgs = {\r\n command: UpdateCard;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCardBillableArgs = {\r\n command: UpdateCardBillable;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCardDiversionTypeArgs = {\r\n command: UpdateCardDiversionType;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCardLinkArgs = {\r\n command: UpdateCardLink;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCardNoteArgs = {\r\n command: UpdateCardNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCardNoteArchiveArgs = {\r\n command: UpdateCardNoteArchive;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCardReOpenReasonArgs = {\r\n command: UpdateCardReOpenReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCardSearchIndexArgs = {\r\n command: UpdateCardSearchIndex;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateChiefComplaintArgs = {\r\n command: UpdateChiefComplaint;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCommunicationCenterArgs = {\r\n command: UpdateCommunicationCenter;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCommunicationCenterTransportOfferOptionArgs = {\r\n command: UpdateCommunicationCenterTransportOfferOption;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCompanyArgs = {\r\n command: UpdateCompany;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateCompleteFlightInstanceArgs = {\r\n command: UpdateCompleteFlightInstance;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateConfigurationSettingArgs = {\r\n command: UpdateConfigurationSetting;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateControlZoneArgs = {\r\n command: UpdateControlZone;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateDeclineArgs = {\r\n command: UpdateDecline;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateDeclineCategoryArgs = {\r\n command: UpdateDeclineCategory;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateDeclineReasonArgs = {\r\n command: UpdateDeclineReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateDeclineSecondaryReasonArgs = {\r\n command: UpdateDeclineSecondaryReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateDepartmentArgs = {\r\n command: UpdateDepartment;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateDiversionReasonArgs = {\r\n command: UpdateDiversionReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateEmsReportArgs = {\r\n command: UpdateEmsReport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateEscortRequestArgs = {\r\n command: UpdateEscortRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateEstimatedDurationsArgs = {\r\n command: UpdateEstimatedDurations;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateExternalActionArgs = {\r\n command: UpdateExternalAction;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateExternalActionTypeArgs = {\r\n command: UpdateExternalActionType;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateExternalReferenceArgs = {\r\n command: UpdateExternalReference;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateFacilityNonAcceptanceReasonArgs = {\r\n command: UpdateFacilityNonAcceptanceReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateFboArgs = {\r\n command: UpdateFbo;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateFirewallRuleArgs = {\r\n command: UpdateFirewallRule;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateFlightFollowingReportArgs = {\r\n command: UpdateFlightFollowingReport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateFuelTankArgs = {\r\n command: UpdateFuelTank;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateGmrCadNumberArgs = {\r\n command: UpdateGmrCadNumber;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateLocationArgs = {\r\n command: UpdateLocation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateLocationHazardArgs = {\r\n command: UpdateLocationHazard;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateManifestEntryArgs = {\r\n command: UpdateManifestEntry;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateMedicalControlContactLogEntryArgs = {\r\n command: UpdateMedicalControlContactLogEntry;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateMedicalFacilityArgs = {\r\n command: UpdateMedicalFacility;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateMedicalFacilityContactArgs = {\r\n command: UpdateMedicalFacilityContact;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateMedicalFacilityPhysicianArgs = {\r\n command: UpdateMedicalFacilityPhysician;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateMedicalFacilityUnitArgs = {\r\n command: UpdateMedicalFacilityUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateNextDueTypeArgs = {\r\n command: UpdateNextDueType;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateNonReferralReasonArgs = {\r\n command: UpdateNonReferralReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateNotificationArgs = {\r\n command: UpdateNotification;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateNotificationGroupArgs = {\r\n command: UpdateNotificationGroup;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateNotificationGroupMemberArgs = {\r\n command: UpdateNotificationGroupMember;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateNotificationRecipientArgs = {\r\n command: UpdateNotificationRecipient;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateNotificationSubscriptionArgs = {\r\n command: UpdateNotificationSubscription;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateNotificationTemplateArgs = {\r\n command: UpdateNotificationTemplate;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOdometerReadingsArgs = {\r\n command: UpdateOdometerReadings;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOemActivityArgs = {\r\n command: UpdateOemActivity;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOemAssetArgs = {\r\n command: UpdateOemAsset;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOemPlanArgs = {\r\n command: UpdateOemPlan;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOemPlanChangeRequestArgs = {\r\n command: UpdateOemPlanChangeRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOfferAlgorithmArgs = {\r\n command: UpdateOfferAlgorithm;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOfferRankArgs = {\r\n command: UpdateOfferRank;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOperationArgs = {\r\n command: UpdateOperation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOperationContactInfoArgs = {\r\n command: UpdateOperationContactInfo;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOutOfComplianceCrewMemberArgs = {\r\n command: UpdateOutOfComplianceCrewMember;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOutOfServiceEventArgs = {\r\n command: UpdateOutOfServiceEvent;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOutOfServiceEventNoteArgs = {\r\n command: UpdateOutOfServiceEventNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOutOfServiceReasonArgs = {\r\n command: UpdateOutOfServiceReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateOutOfServiceSecondaryReasonArgs = {\r\n command: UpdateOutOfServiceSecondaryReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdatePassdownLogArgs = {\r\n command: UpdatePassdownLog;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdatePatientClinicalInfoArgs = {\r\n command: UpdatePatientClinicalInfo;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdatePatientInfoArgs = {\r\n command: UpdatePatientInfo;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdatePersonArgs = {\r\n command: UpdatePerson;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdatePhysicianArgs = {\r\n command: UpdatePhysician;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdatePilotUnitConfigurationArgs = {\r\n command: UpdatePilotUnitConfiguration;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdatePlannedCardCompletionTimeArgs = {\r\n command: UpdatePlannedCardCompletionTime;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdatePositionReportArgs = {\r\n command: UpdatePositionReport;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdatePositionReportAlertArgs = {\r\n command: UpdatePositionReportAlert;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateProgramArgs = {\r\n command: UpdateProgram;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateProgramBaseArgs = {\r\n command: UpdateProgramBase;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateQuestionArgs = {\r\n command: UpdateQuestion;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateQuestionnaireArgs = {\r\n command: UpdateQuestionnaire;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateQuestionnaireQuestionResponseArgs = {\r\n command: UpdateQuestionnaireQuestionResponse;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateQuestionnaireQuestionResponseDeepArgs = {\r\n command: UpdateQuestionnaireQuestionResponseDeep;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateQuestionnaireQuestionResponseNoteArgs = {\r\n command: UpdateQuestionnaireQuestionResponseNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateQuestionnaireResponseArgs = {\r\n command: UpdateQuestionnaireResponse;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateQuestionnaireResponseDeepArgs = {\r\n command: UpdateQuestionnaireResponseDeep;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateReceivingFacilityAutoAcceptanceArgs = {\r\n command: UpdateReceivingFacilityAutoAcceptance;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRecipientMessageStatusArgs = {\r\n command: UpdateRecipientMessageStatus;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRegionArgs = {\r\n command: UpdateRegion;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRegionBaseArgs = {\r\n command: UpdateRegionBase;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRegionGroupArgs = {\r\n command: UpdateRegionGroup;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRendezvousRequestArgs = {\r\n command: UpdateRendezvousRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRequestArgs = {\r\n command: UpdateRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRequestAtloArgs = {\r\n command: UpdateRequestAtlo;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRequestLocationArgs = {\r\n command: UpdateRequestLocation;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRequestPatientArgs = {\r\n command: UpdateRequestPatient;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRequestPublicUtilityInfoArgs = {\r\n command: UpdateRequestPublicUtilityInfo;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRequestRegionArgs = {\r\n command: UpdateRequestRegion;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRequestSafetyQuestionsArgs = {\r\n command: UpdateRequestSafetyQuestions;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRequestStandbyStatusArgs = {\r\n command: UpdateRequestStandbyStatus;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRequesterArgs = {\r\n command: UpdateRequester;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRequesterRoleArgs = {\r\n command: UpdateRequesterRole;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRequesterSpecialtyTeamArgs = {\r\n command: UpdateRequesterSpecialtyTeam;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateRiskAnalysisArgs = {\r\n command: UpdateRiskAnalysis;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateSkipArgs = {\r\n command: UpdateSkip;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateSpecialtyTeamArgs = {\r\n command: UpdateSpecialtyTeam;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateSpecialtyTeamMemberArgs = {\r\n command: UpdateSpecialtyTeamMember;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateSupportRequestArgs = {\r\n command: UpdateSupportRequest;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTcsRealtimeTrackingTabArgs = {\r\n command: UpdateTcsRealtimeTrackingTab;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTimelineArgs = {\r\n command: UpdateTimeline;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTimelineItemArgs = {\r\n command: UpdateTimelineItem;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTimestampArgs = {\r\n command: UpdateTimestamp;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTimestampTypeArgs = {\r\n command: UpdateTimestampType;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTimezoneArgs = {\r\n command: UpdateTimezone;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTrackedMessageArgs = {\r\n command: UpdateTrackedMessage;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTransferCenterArgs = {\r\n command: UpdateTransferCenter;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTransferCenterCallInfoArgs = {\r\n command: UpdateTransferCenterCallInfo;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTransferReasonArgs = {\r\n command: UpdateTransferReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTransportOfferArgs = {\r\n command: UpdateTransportOffer;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTransportOfferEtaArgs = {\r\n command: UpdateTransportOfferEta;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTransportOfferOptionArgs = {\r\n command: UpdateTransportOfferOption;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTransportReasonArgs = {\r\n command: UpdateTransportReason;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTripArgs = {\r\n command: UpdateTrip;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTripLegDurationArgs = {\r\n command: UpdateTripLegDuration;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTripPassengerArgs = {\r\n command: UpdateTripPassenger;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateTrmUserArgs = {\r\n command: UpdateTrmUser;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateUnitArgs = {\r\n command: UpdateUnit;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateUnitActivationRuleArgs = {\r\n command: UpdateUnitActivationRule;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateUnitConfigurationArgs = {\r\n command: UpdateUnitConfiguration;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateUnitEMSystemMappingArgs = {\r\n command: UpdateUnitEMSystemMapping;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateUnitNoteArgs = {\r\n command: UpdateUnitNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateUnitPositionArgs = {\r\n command: UpdateUnitPosition;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateUnitShiftArgs = {\r\n command: UpdateUnitShift;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateVehicleArgs = {\r\n command: UpdateVehicle;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateVehicleConfigurationClassArgs = {\r\n command: UpdateVehicleConfigurationClass;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateVehicleControlZoneArgs = {\r\n command: UpdateVehicleControlZone;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateVehicleDispositionArgs = {\r\n command: UpdateVehicleDisposition;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateVehicleMaintenanceArgs = {\r\n command: UpdateVehicleMaintenance;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateVehicleMakeArgs = {\r\n command: UpdateVehicleMake;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateVehicleModelArgs = {\r\n command: UpdateVehicleModel;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateVehicleStateInspectionArgs = {\r\n command: UpdateVehicleStateInspection;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateWaypointArgs = {\r\n command: UpdateWaypoint;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupdateWaypointDurationArgs = {\r\n command: UpdateWaypointDuration;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupsertPersonNotificationGroupsArgs = {\r\n command: UpsertPersonNotificationGroups;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupsertQuestionChoiceArgs = {\r\n command: UpsertQuestionChoice;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupsertQuestionnaireQuestionResponseNoteArgs = {\r\n command: UpsertQuestionnaireQuestionResponseNote;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupsertQuestionnaireSectionArgs = {\r\n command: UpsertQuestionnaireSection;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupsertQuestionnaireSectionQuestionArgs = {\r\n command: UpsertQuestionnaireSectionQuestion;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupsertTimelineItemArgs = {\r\n command: UpsertTimelineItem;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupsertUnitPositionArgs = {\r\n command: UpsertUnitPosition;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type MutationupsertVehicleMaintenanceParametersArgs = {\r\n command: UpsertVehicleMaintenanceParameters;\r\n options?: CommandExecutionOptions;\r\n};\r\n\r\nexport type NextDue = {\r\n __typename: 'NextDue';\r\n cycleType: NextDueCycleType;\r\n id: Scalars['ID'];\r\n inTolerance: Maybe;\r\n notes: Maybe;\r\n triggerValue: Scalars['Int'];\r\n typeId: Scalars['ID'];\r\n value: Scalars['String'];\r\n};\r\n\r\nexport enum NextDueCycleType {\r\n AF = 'AF',\r\n E1 = 'E1',\r\n E2 = 'E2',\r\n}\r\n\r\nexport type NextDueInput = {\r\n cycleType: NextDueCycleType;\r\n id: Scalars['ID'];\r\n inTolerance: InputMaybe;\r\n notes: InputMaybe;\r\n triggerValue: Scalars['Int'];\r\n typeId: Scalars['ID'];\r\n value: Scalars['String'];\r\n};\r\n\r\nexport type NextDueType = Entity &\r\n Evented & {\r\n __typename: 'NextDueType';\r\n _events: MessageEnvelopeCollection;\r\n dataType: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n };\r\n\r\nexport type NextDueType_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NextDueTypeCollection = {\r\n __typename: 'NextDueTypeCollection';\r\n items: Array;\r\n meta: NextDueTypeCollectionMetadata;\r\n};\r\n\r\nexport type NextDueTypeCollectionMetadata = CollectionMetadata & {\r\n __typename: 'NextDueTypeCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type NextDueTypeFilter = {\r\n dataTypeLike: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type NextDueTypeQueries = {\r\n __typename: 'NextDueTypeQueries';\r\n all: NextDueTypeCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type NextDueTypeQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NextDueTypeQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type NextDueWithOptionalId = {\r\n __typename: 'NextDueWithOptionalId';\r\n cycleType: NextDueCycleType;\r\n inTolerance: Maybe;\r\n nextDueId: Maybe;\r\n notes: Maybe;\r\n triggerValue: Scalars['Int'];\r\n typeId: Scalars['ID'];\r\n value: Scalars['String'];\r\n};\r\n\r\nexport type NextDueWithOptionalIdInput = {\r\n cycleType: NextDueCycleType;\r\n inTolerance: InputMaybe;\r\n nextDueId: InputMaybe;\r\n notes: InputMaybe;\r\n triggerValue: Scalars['Int'];\r\n typeId: Scalars['ID'];\r\n value: Scalars['String'];\r\n};\r\n\r\nexport enum NonAcceptanceType {\r\n Cancelled = 'Cancelled',\r\n Denied = 'Denied',\r\n Diverted = 'Diverted',\r\n Referred = 'Referred',\r\n}\r\n\r\nexport type NonReferralReason = Entity &\r\n Evented & {\r\n __typename: 'NonReferralReason';\r\n _events: MessageEnvelopeCollection;\r\n associatedCancellationReason: Maybe;\r\n associatedCancellationReasonId: Maybe;\r\n associatedCancellationSecondaryReason: Maybe;\r\n associatedCancellationSecondaryReasonId: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n transportOffers: Maybe>>;\r\n };\r\n\r\nexport type NonReferralReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NonReferralReasonCollection = {\r\n __typename: 'NonReferralReasonCollection';\r\n items: Array;\r\n meta: NonReferralReasonCollectionMetadata;\r\n};\r\n\r\nexport type NonReferralReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'NonReferralReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type NonReferralReasonFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type NonReferralReasonQueries = {\r\n __typename: 'NonReferralReasonQueries';\r\n all: NonReferralReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type NonReferralReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NonReferralReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum NotBillableType {\r\n MechanicalAbort = 'MechanicalAbort',\r\n Other = 'Other',\r\n PatientCondition = 'PatientCondition',\r\n PatientExpiredOrQL = 'PatientExpiredOrQL',\r\n PatientWentByGround = 'PatientWentByGround',\r\n WeatherAbort = 'WeatherAbort',\r\n}\r\n\r\nexport type Notification = Entity &\r\n Evented & {\r\n __typename: 'Notification';\r\n _events: MessageEnvelopeCollection;\r\n body: Scalars['String'];\r\n card: Maybe;\r\n cardId: Maybe;\r\n companyId: Scalars['ID'];\r\n createdById: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n entityId: Maybe;\r\n entityType: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n recipients: Array;\r\n sourceTemplate: Maybe;\r\n sourceTemplateId: Maybe;\r\n status: NotificationStatus;\r\n subject: Maybe;\r\n };\r\n\r\nexport type Notification_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NotificationCollection = {\r\n __typename: 'NotificationCollection';\r\n items: Array;\r\n meta: NotificationCollectionMetadata;\r\n};\r\n\r\nexport type NotificationCollectionMetadata = CollectionMetadata & {\r\n __typename: 'NotificationCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type NotificationFilter = {\r\n companyId: InputMaybe;\r\n entityId: InputMaybe;\r\n entityTypes: InputMaybe>;\r\n exceptCardStatuses: InputMaybe>;\r\n excludeNotificationStatuses: InputMaybe>;\r\n notificationStatuses: InputMaybe>;\r\n personId: InputMaybe;\r\n regionId: InputMaybe;\r\n sourceTemplateId: InputMaybe;\r\n};\r\n\r\nexport type NotificationGroup = Entity &\r\n Evented & {\r\n __typename: 'NotificationGroup';\r\n _events: MessageEnvelopeCollection;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n members: Array;\r\n name: Scalars['String'];\r\n notificationSubscriptions: Array;\r\n region: Maybe;\r\n regionId: Maybe;\r\n type: Maybe;\r\n types: Maybe>>;\r\n unit: Maybe;\r\n unitId: Maybe;\r\n };\r\n\r\nexport type NotificationGroup_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NotificationGroupCollection = {\r\n __typename: 'NotificationGroupCollection';\r\n items: Array;\r\n meta: NotificationGroupCollectionMetadata;\r\n};\r\n\r\nexport type NotificationGroupCollectionMetadata = CollectionMetadata & {\r\n __typename: 'NotificationGroupCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type NotificationGroupFilter = {\r\n companyId: InputMaybe;\r\n excludeRegionsExcept: InputMaybe>;\r\n excludeUnitsExcept: InputMaybe>;\r\n nameLike: InputMaybe;\r\n regionId: InputMaybe;\r\n type: InputMaybe;\r\n unitId: InputMaybe;\r\n};\r\n\r\nexport type NotificationGroupMember = Entity &\r\n Evented & {\r\n __typename: 'NotificationGroupMember';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n notificationAddress: Maybe;\r\n notificationGroup: NotificationGroup;\r\n notificationGroupId: Scalars['ID'];\r\n user: Maybe;\r\n userId: Maybe;\r\n };\r\n\r\nexport type NotificationGroupMember_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NotificationGroupMemberCollection = {\r\n __typename: 'NotificationGroupMemberCollection';\r\n items: Array;\r\n meta: NotificationGroupMemberCollectionMetadata;\r\n};\r\n\r\nexport type NotificationGroupMemberCollectionMetadata = CollectionMetadata & {\r\n __typename: 'NotificationGroupMemberCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type NotificationGroupMemberFilter = {\r\n nameLike: InputMaybe;\r\n notificationGroupId: InputMaybe;\r\n};\r\n\r\nexport type NotificationGroupMemberQueries = {\r\n __typename: 'NotificationGroupMemberQueries';\r\n all: NotificationGroupMemberCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type NotificationGroupMemberQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NotificationGroupMemberQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type NotificationGroupQueries = {\r\n __typename: 'NotificationGroupQueries';\r\n all: NotificationGroupCollection;\r\n byId: Maybe;\r\n byPerson: Array;\r\n};\r\n\r\nexport type NotificationGroupQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NotificationGroupQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type NotificationGroupQueriesbyPersonArgs = {\r\n personId: Scalars['ID'];\r\n};\r\n\r\nexport enum NotificationGroupType {\r\n AviationGroup = 'AviationGroup',\r\n ClinicalGroup = 'ClinicalGroup',\r\n MaintenanceController = 'MaintenanceController',\r\n OccGroup = 'OccGroup',\r\n OnlyCrew = 'OnlyCrew',\r\n OnlyPilots = 'OnlyPilots',\r\n OperationsGroup = 'OperationsGroup',\r\n SpecialityGroup = 'SpecialityGroup',\r\n}\r\n\r\nexport type NotificationQueries = {\r\n __typename: 'NotificationQueries';\r\n all: NotificationCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type NotificationQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NotificationQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type NotificationRecipient = Entity &\r\n Evented & {\r\n __typename: 'NotificationRecipient';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n message: Maybe;\r\n messageId: Maybe;\r\n messageStatus: Maybe;\r\n name: Maybe;\r\n notification: Notification;\r\n notificationAddress: Maybe;\r\n notificationId: Scalars['ID'];\r\n user: Maybe;\r\n userId: Maybe;\r\n };\r\n\r\nexport type NotificationRecipient_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NotificationRecipientCollection = {\r\n __typename: 'NotificationRecipientCollection';\r\n items: Array;\r\n meta: NotificationRecipientCollectionMetadata;\r\n};\r\n\r\nexport type NotificationRecipientCollectionMetadata = CollectionMetadata & {\r\n __typename: 'NotificationRecipientCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum NotificationRecipientType {\r\n Groups = 'Groups',\r\n MedicalCrew = 'MedicalCrew',\r\n Pilot = 'Pilot',\r\n}\r\n\r\nexport enum NotificationStatus {\r\n AwaitingApproval = 'AwaitingApproval',\r\n Cancelled = 'Cancelled',\r\n Draft = 'Draft',\r\n Failed = 'Failed',\r\n PartiallyFailed = 'PartiallyFailed',\r\n Sending = 'Sending',\r\n Sent = 'Sent',\r\n}\r\n\r\nexport type NotificationSubscription = Entity &\r\n Evented & {\r\n __typename: 'NotificationSubscription';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n notificationGroup: NotificationGroup;\r\n notificationGroupId: Scalars['ID'];\r\n unit: Unit;\r\n unitId: Scalars['ID'];\r\n };\r\n\r\nexport type NotificationSubscription_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NotificationSubscriptionCollection = {\r\n __typename: 'NotificationSubscriptionCollection';\r\n items: Array;\r\n meta: NotificationSubscriptionCollectionMetadata;\r\n};\r\n\r\nexport type NotificationSubscriptionCollectionMetadata = CollectionMetadata & {\r\n __typename: 'NotificationSubscriptionCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type NotificationSubscriptionFilter = {\r\n nameLike: InputMaybe;\r\n unitId: InputMaybe;\r\n};\r\n\r\nexport type NotificationSubscriptionQueries = {\r\n __typename: 'NotificationSubscriptionQueries';\r\n all: NotificationSubscriptionCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type NotificationSubscriptionQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NotificationSubscriptionQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type NotificationTemplate = Entity &\r\n Evented & {\r\n __typename: 'NotificationTemplate';\r\n _events: MessageEnvelopeCollection;\r\n activationRule: Maybe;\r\n activationRuleId: Maybe;\r\n bodyTemplate: Scalars['String'];\r\n canBeManualTrigger: Scalars['Boolean'];\r\n company: Maybe;\r\n companyId: Maybe;\r\n contextType: EntityType;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n groupTypes: Maybe>>;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n /** @deprecated use triggerType and triggerValue */\r\n notificationType: Maybe;\r\n notifications: Maybe>>;\r\n recipientTypes: Maybe>>;\r\n requiresApproval: Maybe;\r\n subjectTemplate: Maybe;\r\n triggerType: Maybe;\r\n triggerValue: Maybe;\r\n /** @deprecated use contextType */\r\n viewModelType: Maybe;\r\n };\r\n\r\nexport type NotificationTemplate_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NotificationTemplateCollection = {\r\n __typename: 'NotificationTemplateCollection';\r\n items: Array;\r\n meta: NotificationTemplateCollectionMetadata;\r\n};\r\n\r\nexport type NotificationTemplateCollectionMetadata = CollectionMetadata & {\r\n __typename: 'NotificationTemplateCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type NotificationTemplateData = {\r\n __typename: 'NotificationTemplateData';\r\n body: Maybe;\r\n recipients: Maybe>>;\r\n subject: Maybe;\r\n};\r\n\r\nexport type NotificationTemplateFilter = {\r\n allowAllCompanyAccess: InputMaybe;\r\n canBeManualTrigger: InputMaybe;\r\n companyId: InputMaybe;\r\n contextType: InputMaybe;\r\n excludeNonGlobalExceptCompanyId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type NotificationTemplateQueries = {\r\n __typename: 'NotificationTemplateQueries';\r\n all: NotificationTemplateCollection;\r\n byId: Maybe;\r\n deriveOOSTemplate: NotificationTemplateResponse;\r\n templateDetails: NotificationTemplateResponse;\r\n};\r\n\r\nexport type NotificationTemplateQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type NotificationTemplateQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type NotificationTemplateQueriesderiveOOSTemplateArgs = {\r\n outOfServiceEventId: Scalars['ID'];\r\n templateId: Scalars['ID'];\r\n};\r\n\r\nexport type NotificationTemplateQueriestemplateDetailsArgs = {\r\n notificationRequest: InputMaybe;\r\n};\r\n\r\nexport type NotificationTemplateRequest = {\r\n cardId: Scalars['ID'];\r\n offerId: InputMaybe;\r\n templateId: Scalars['ID'];\r\n};\r\n\r\nexport type NotificationTemplateResponse = {\r\n __typename: 'NotificationTemplateResponse';\r\n activityId: Maybe;\r\n data: Maybe;\r\n errors: Maybe>>;\r\n responseCode: Maybe;\r\n};\r\n\r\nexport enum NotificationTriggerType {\r\n Activity = 'Activity',\r\n Manual = 'Manual',\r\n}\r\n\r\nexport enum NotificationType {\r\n Custom = 'Custom',\r\n UnitActivatedCrewPage = 'UnitActivatedCrewPage',\r\n UnitAssignedCrewPage = 'UnitAssignedCrewPage',\r\n UnitOfferedCrewPage = 'UnitOfferedCrewPage',\r\n}\r\n\r\nexport type OemActivity = Entity &\r\n Evented & {\r\n __typename: 'OemActivity';\r\n _events: MessageEnvelopeCollection;\r\n activityType: OemActivityType;\r\n author: Maybe;\r\n authorId: Maybe;\r\n content: Maybe;\r\n currentStatus: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n oemPlan: OemPlan;\r\n oemPlanChangeRequest: Maybe;\r\n oemPlanChangeRequestId: Maybe;\r\n oemPlanId: Scalars['ID'];\r\n priorStatus: Maybe;\r\n time: Maybe;\r\n };\r\n\r\nexport type OemActivity_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OemActivityCollection = {\r\n __typename: 'OemActivityCollection';\r\n items: Array;\r\n meta: OemActivityCollectionMetadata;\r\n};\r\n\r\nexport type OemActivityCollectionMetadata = CollectionMetadata & {\r\n __typename: 'OemActivityCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum OemActivityType {\r\n AssetChangeNote = 'AssetChangeNote',\r\n PlanChangeNote = 'PlanChangeNote',\r\n UserNote = 'UserNote',\r\n}\r\n\r\nexport type OemAsset = Entity &\r\n Evented & {\r\n __typename: 'OemAsset';\r\n _events: MessageEnvelopeCollection;\r\n assetDispatchCompany: Maybe;\r\n assetDispatchCompanyId: Maybe;\r\n assetId: Scalars['ID'];\r\n assetType: OemAssetType;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n oemPlan: OemPlan;\r\n oemPlanChangeRequests: Array;\r\n oemPlanId: Scalars['ID'];\r\n oemUnitId: Maybe;\r\n originalUnit: Maybe;\r\n originalUnitId: Maybe;\r\n requestedBase: Maybe;\r\n requestedBaseId: Maybe;\r\n requestedPlacardNumber: Maybe;\r\n requestedUnitAbbreviation: Maybe;\r\n requestedUnitName: Maybe;\r\n status: OemAssetStatus;\r\n };\r\n\r\nexport type OemAsset_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OemAssetCollection = {\r\n __typename: 'OemAssetCollection';\r\n items: Array;\r\n meta: OemAssetCollectionMetadata;\r\n};\r\n\r\nexport type OemAssetCollectionMetadata = CollectionMetadata & {\r\n __typename: 'OemAssetCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum OemAssetStatus {\r\n Activated = 'Activated',\r\n Demobilized = 'Demobilized',\r\n Standby = 'Standby',\r\n}\r\n\r\nexport enum OemAssetType {\r\n Personal = 'Personal',\r\n Vehicle = 'Vehicle',\r\n}\r\n\r\nexport type OemPlan = Entity &\r\n Evented & {\r\n __typename: 'OemPlan';\r\n _events: MessageEnvelopeCollection;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n defaultBase: Base;\r\n defaultBaseId: Scalars['ID'];\r\n description: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n oemActivities: Array;\r\n oemAssets: Array;\r\n oemCompany: Company;\r\n oemCompanyId: Scalars['ID'];\r\n oemPlanChangeRequests: Array;\r\n outOfServiceReason: OutOfServiceReason;\r\n outOfServiceReasonId: Scalars['ID'];\r\n planStatus: OemPlanStatus;\r\n planYear: Scalars['Int'];\r\n };\r\n\r\nexport type OemPlan_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OemPlanChangeRequest = Entity &\r\n Evented & {\r\n __typename: 'OemPlanChangeRequest';\r\n _events: MessageEnvelopeCollection;\r\n dateCancelled: Maybe;\r\n dateCompleted: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n dateRequested: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n notes: Maybe;\r\n oemActivities: Maybe>>;\r\n oemAsset: OemAsset;\r\n oemAssetId: Scalars['ID'];\r\n oemPlan: OemPlan;\r\n oemPlanId: Scalars['ID'];\r\n originalAssetStatus: OemAssetStatus;\r\n requestedAssetStatus: OemAssetStatus;\r\n requestedBy: Maybe;\r\n requestedById: Maybe;\r\n status: OemPlanChangeRequestStatus;\r\n };\r\n\r\nexport type OemPlanChangeRequest_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OemPlanChangeRequestCollection = {\r\n __typename: 'OemPlanChangeRequestCollection';\r\n items: Array;\r\n meta: OemPlanChangeRequestCollectionMetadata;\r\n};\r\n\r\nexport type OemPlanChangeRequestCollectionMetadata = CollectionMetadata & {\r\n __typename: 'OemPlanChangeRequestCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum OemPlanChangeRequestStatus {\r\n Cancelled = 'Cancelled',\r\n Completed = 'Completed',\r\n Draft = 'Draft',\r\n Requested = 'Requested',\r\n}\r\n\r\nexport type OemPlanCollection = {\r\n __typename: 'OemPlanCollection';\r\n items: Array;\r\n meta: OemPlanCollectionMetadata;\r\n};\r\n\r\nexport type OemPlanCollectionMetadata = CollectionMetadata & {\r\n __typename: 'OemPlanCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum OemPlanStatus {\r\n Cancelled = 'Cancelled',\r\n Demobilized = 'Demobilized',\r\n Demobilizing = 'Demobilizing',\r\n Deployed = 'Deployed',\r\n Draft = 'Draft',\r\n}\r\n\r\nexport type OfferAlgorithm = Entity &\r\n Evented & {\r\n __typename: 'OfferAlgorithm';\r\n _events: MessageEnvelopeCollection;\r\n activationRule: ActivationRule;\r\n activationRuleId: Scalars['ID'];\r\n companies: Maybe>>;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n distanceCalculation: DistanceCalculation;\r\n id: Scalars['ID'];\r\n includeCompetitors: Scalars['Boolean'];\r\n isEnabled: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n minimumFlightRule: Maybe;\r\n name: Scalars['String'];\r\n oneCallAgreement: Scalars['Boolean'];\r\n preferredUnits: Array;\r\n rank: Scalars['Int'];\r\n transportOfferAlgorithm: TransportOfferAlgorithm;\r\n };\r\n\r\nexport type OfferAlgorithm_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OfferAlgorithmCollection = {\r\n __typename: 'OfferAlgorithmCollection';\r\n items: Array;\r\n meta: OfferAlgorithmCollectionMetadata;\r\n};\r\n\r\nexport type OfferAlgorithmCollectionMetadata = CollectionMetadata & {\r\n __typename: 'OfferAlgorithmCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type OfferAlgorithmFilter = {\r\n companyId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type OfferAlgorithmQueries = {\r\n __typename: 'OfferAlgorithmQueries';\r\n all: OfferAlgorithmCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type OfferAlgorithmQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OfferAlgorithmQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type OfferWithBulkSkip = {\r\n declineReasonId: Scalars['ID'];\r\n declineSecondaryReasonId: InputMaybe;\r\n id: Scalars['ID'];\r\n notes: InputMaybe;\r\n skipOfferIds: InputMaybe>>;\r\n};\r\n\r\nexport type OktaQueries = {\r\n __typename: 'OktaQueries';\r\n allUsers: OktaUserCollection;\r\n user: Maybe;\r\n};\r\n\r\nexport type OktaQueriesallUsersArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n};\r\n\r\nexport type OktaQueriesuserArgs = {\r\n idOrLogin: Scalars['ID'];\r\n};\r\n\r\nexport type OktaUser = {\r\n __typename: 'OktaUser';\r\n created: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdated: Scalars['DateTime'];\r\n profile: OktaUserProfile;\r\n status: Scalars['String'];\r\n};\r\n\r\nexport type OktaUserCollection = {\r\n __typename: 'OktaUserCollection';\r\n items: Array;\r\n};\r\n\r\nexport type OktaUserFilter = {\r\n filter: InputMaybe;\r\n query: InputMaybe;\r\n};\r\n\r\nexport type OktaUserProfile = {\r\n __typename: 'OktaUserProfile';\r\n email: Scalars['String'];\r\n employeeNumber: Maybe;\r\n firstName: Scalars['String'];\r\n lastName: Scalars['String'];\r\n login: Scalars['String'];\r\n};\r\n\r\nexport enum OosActivityType {\r\n Ended = 'Ended',\r\n Started = 'Started',\r\n}\r\n\r\nexport type Operation = Entity &\r\n Evented & {\r\n __typename: 'Operation';\r\n _events: MessageEnvelopeCollection;\r\n callbackNumber: Maybe;\r\n caller: Maybe;\r\n card: Card;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n dateOperationEnded: Maybe;\r\n dateOperationStarted: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n initialOperationType: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n riskAnalysisAcknowledged: Scalars['Boolean'];\r\n riskAnalysisNumber: Maybe;\r\n standbyActivationType: Maybe;\r\n status: OperationStatus;\r\n timestamps: Maybe>>;\r\n trips: Array;\r\n type: OperationType;\r\n unit: Maybe;\r\n unitActivationTime: Maybe;\r\n unitId: Maybe;\r\n vehicle: Vehicle;\r\n vehicleId: Scalars['ID'];\r\n };\r\n\r\nexport type Operation_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OperationCollection = {\r\n __typename: 'OperationCollection';\r\n items: Array;\r\n meta: OperationCollectionMetadata;\r\n};\r\n\r\nexport type OperationCollectionMetadata = CollectionMetadata & {\r\n __typename: 'OperationCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum OperationStatus {\r\n Aborted = 'Aborted',\r\n Cancelled = 'Cancelled',\r\n Completed = 'Completed',\r\n CrewAccepted = 'CrewAccepted',\r\n OnStandby = 'OnStandby',\r\n Scheduled = 'Scheduled',\r\n Underway = 'Underway',\r\n UnitActivated = 'UnitActivated',\r\n}\r\n\r\nexport type OperationSummary = {\r\n __typename: 'OperationSummary';\r\n id: Scalars['ID'];\r\n riskAnalysisAcknowledged: Maybe;\r\n riskAnalysisNumber: Maybe;\r\n status: OperationStatus;\r\n tripId: Maybe;\r\n unitId: Maybe;\r\n vehicleId: Maybe;\r\n};\r\n\r\nexport type OperationSummaryInput = {\r\n id: Scalars['ID'];\r\n riskAnalysisAcknowledged: InputMaybe;\r\n riskAnalysisNumber: InputMaybe;\r\n status: OperationStatus;\r\n tripId: InputMaybe;\r\n unitId: InputMaybe;\r\n vehicleId: InputMaybe;\r\n};\r\n\r\nexport enum OperationType {\r\n GroundRun = 'GroundRun',\r\n Maintenance = 'Maintenance',\r\n NonPatientShuttle = 'NonPatientShuttle',\r\n PatientShuttle = 'PatientShuttle',\r\n PublicRelations = 'PublicRelations',\r\n PublicUtility = 'PublicUtility',\r\n Reposition = 'Reposition',\r\n Residence = 'Residence',\r\n SceneCall = 'SceneCall',\r\n SearchAndAssist = 'SearchAndAssist',\r\n Training = 'Training',\r\n Transfer = 'Transfer',\r\n TransferCenter = 'TransferCenter',\r\n}\r\n\r\nexport type OutOfServiceEvent = Entity &\r\n Evented & {\r\n __typename: 'OutOfServiceEvent';\r\n _events: MessageEnvelopeCollection;\r\n alertTimeInMinutes: Maybe;\r\n alertWhenEventEnds: Scalars['Boolean'];\r\n companyId: Scalars['ID'];\r\n copiedFromId: Maybe;\r\n createdById: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n endTime: Maybe;\r\n endedById: Maybe;\r\n estimatedEndTime: Scalars['DateTime'];\r\n eventNumber: Scalars['String'];\r\n id: Scalars['ID'];\r\n initialEstimatedEndTime: Scalars['DateTime'];\r\n isAirworthy: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n linkedCard: Maybe;\r\n linkedCardId: Maybe;\r\n notes: Maybe;\r\n outOfServiceEventNotes: Array;\r\n parentOutOfServiceEventId: Maybe;\r\n reason: OutOfServiceReason;\r\n reasonId: Scalars['ID'];\r\n scheduledStartTime: Maybe;\r\n secondaryReason: Maybe;\r\n secondaryReasonComment: Maybe;\r\n secondaryReasonId: Maybe;\r\n startTime: Maybe;\r\n transportOffers: Maybe>>;\r\n type: OutOfServiceType;\r\n unit: Maybe;\r\n unitId: Maybe;\r\n units: Maybe>>;\r\n vehicle: Maybe;\r\n vehicleId: Maybe;\r\n };\r\n\r\nexport type OutOfServiceEvent_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceEventCollection = {\r\n __typename: 'OutOfServiceEventCollection';\r\n items: Array;\r\n meta: OutOfServiceEventCollectionMetadata;\r\n};\r\n\r\nexport type OutOfServiceEventCollectionMetadata = CollectionMetadata & {\r\n __typename: 'OutOfServiceEventCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type OutOfServiceEventDashboardData = {\r\n __typename: 'OutOfServiceEventDashboardData';\r\n baseName: Maybe;\r\n communicationCenterId: Maybe;\r\n communicationCenterName: Maybe;\r\n companyId: Scalars['ID'];\r\n endTime: Maybe;\r\n entityType: Maybe;\r\n estimatedEndTime: Scalars['DateTime'];\r\n eventNumber: Scalars['String'];\r\n id: Scalars['ID'];\r\n initialEstimatedEndTime: Scalars['DateTime'];\r\n isAirworthy: Scalars['Boolean'];\r\n notes: Maybe;\r\n reasonId: Scalars['ID'];\r\n reasonName: Scalars['String'];\r\n registrationNumber: Maybe;\r\n scheduledStartTime: Maybe;\r\n secondaryReasonId: Maybe;\r\n secondaryReasonName: Maybe;\r\n startTime: Maybe;\r\n typeCd: Scalars['String'];\r\n typeName: Scalars['String'];\r\n unitAbbreviation: Maybe;\r\n unitId: Maybe;\r\n unitName: Maybe;\r\n unitVehicleTailNumber: Maybe;\r\n vehicleId: Maybe;\r\n};\r\n\r\nexport type OutOfServiceEventDashboardDataCollection = {\r\n __typename: 'OutOfServiceEventDashboardDataCollection';\r\n items: Array;\r\n meta: OutOfServiceEventDashboardDataMetadata;\r\n};\r\n\r\nexport type OutOfServiceEventDashboardDataFilter = {\r\n communicationCenters: Array;\r\n companyId: InputMaybe;\r\n dispatchCompanyId: InputMaybe;\r\n endDateEnd: InputMaybe;\r\n endDateStart: InputMaybe;\r\n includeInactive: InputMaybe;\r\n oosEventNumberLike: InputMaybe;\r\n registrationNumberLike: InputMaybe;\r\n unitNameLike: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceEventDashboardDataMetadata = CollectionMetadata & {\r\n __typename: 'OutOfServiceEventDashboardDataMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type OutOfServiceEventFilter = {\r\n active: InputMaybe;\r\n afterDate: InputMaybe;\r\n companyId: InputMaybe;\r\n dispatchCompanyId: InputMaybe;\r\n oosEventNumberLike: InputMaybe;\r\n unitId: InputMaybe;\r\n vehicleId: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceEventNote = Entity &\r\n Evented & {\r\n __typename: 'OutOfServiceEventNote';\r\n _events: MessageEnvelopeCollection;\r\n author: Maybe;\r\n authorId: Maybe;\r\n companyId: Scalars['ID'];\r\n content: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isSystem: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n noteCategory: Maybe;\r\n noteMetadataJson: Maybe;\r\n noteTime: Scalars['DateTime'];\r\n outOfServiceEvent: OutOfServiceEvent;\r\n outOfServiceEventId: Scalars['ID'];\r\n };\r\n\r\nexport type OutOfServiceEventNote_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceEventNoteCollection = {\r\n __typename: 'OutOfServiceEventNoteCollection';\r\n items: Array;\r\n meta: OutOfServiceEventNoteCollectionMetadata;\r\n};\r\n\r\nexport type OutOfServiceEventNoteCollectionMetadata = CollectionMetadata & {\r\n __typename: 'OutOfServiceEventNoteCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type OutOfServiceEventNoteFilter = {\r\n authorId: InputMaybe;\r\n contentLike: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceEventNoteQueries = {\r\n __typename: 'OutOfServiceEventNoteQueries';\r\n byId: Maybe;\r\n byOutOfServiceEventId: OutOfServiceEventNoteCollection;\r\n};\r\n\r\nexport type OutOfServiceEventNoteQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type OutOfServiceEventNoteQueriesbyOutOfServiceEventIdArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n outOfServiceEventId: Scalars['ID'];\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceEventQueries = {\r\n __typename: 'OutOfServiceEventQueries';\r\n all: OutOfServiceEventCollection;\r\n byId: Maybe;\r\n dashboard: OutOfServiceEventDashboardDataCollection;\r\n};\r\n\r\nexport type OutOfServiceEventQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceEventQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type OutOfServiceEventQueriesdashboardArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceEventSummary = {\r\n __typename: 'OutOfServiceEventSummary';\r\n estimatedEndTime: Scalars['DateTime'];\r\n eventNumber: Scalars['String'];\r\n id: Scalars['ID'];\r\n notes: Maybe;\r\n reasonId: Scalars['ID'];\r\n reasonName: Scalars['String'];\r\n startTime: Maybe;\r\n type: OutOfServiceType;\r\n};\r\n\r\nexport type OutOfServiceEventSummaryInput = {\r\n estimatedEndTime: Scalars['DateTime'];\r\n eventNumber: Scalars['String'];\r\n id: Scalars['ID'];\r\n notes: InputMaybe;\r\n reasonId: Scalars['ID'];\r\n reasonName: Scalars['String'];\r\n startTime: InputMaybe;\r\n type: OutOfServiceType;\r\n};\r\n\r\nexport type OutOfServiceReason = Entity &\r\n Evented & {\r\n __typename: 'OutOfServiceReason';\r\n _events: MessageEnvelopeCollection;\r\n configurationSettings: Maybe>>;\r\n controllable: Scalars['Boolean'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n description: Maybe;\r\n id: Scalars['ID'];\r\n isVehicleReason: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n oemPlans: Array;\r\n outOfServiceEvents: Array;\r\n outOfServiceSecondaryReasons: Array;\r\n };\r\n\r\nexport type OutOfServiceReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceReasonCollection = {\r\n __typename: 'OutOfServiceReasonCollection';\r\n items: Array;\r\n meta: OutOfServiceReasonCollectionMetadata;\r\n};\r\n\r\nexport type OutOfServiceReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'OutOfServiceReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type OutOfServiceReasonFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceReasonQueries = {\r\n __typename: 'OutOfServiceReasonQueries';\r\n all: OutOfServiceReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type OutOfServiceReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type OutOfServiceSecondaryReason = Entity &\r\n Evented & {\r\n __typename: 'OutOfServiceSecondaryReason';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n outOfServiceEvents: Maybe>>;\r\n outOfServiceReason: OutOfServiceReason;\r\n outOfServiceReasonId: Scalars['ID'];\r\n };\r\n\r\nexport type OutOfServiceSecondaryReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceSecondaryReasonCollection = {\r\n __typename: 'OutOfServiceSecondaryReasonCollection';\r\n items: Array;\r\n meta: OutOfServiceSecondaryReasonCollectionMetadata;\r\n};\r\n\r\nexport type OutOfServiceSecondaryReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'OutOfServiceSecondaryReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type OutOfServiceSecondaryReasonFilter = {\r\n nameLike: InputMaybe;\r\n outOfServiceReasonId: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceSecondaryReasonQueries = {\r\n __typename: 'OutOfServiceSecondaryReasonQueries';\r\n all: OutOfServiceSecondaryReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type OutOfServiceSecondaryReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type OutOfServiceSecondaryReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum OutOfServiceType {\r\n Opportunistic = 'Opportunistic',\r\n Scheduled = 'Scheduled',\r\n Unscheduled = 'Unscheduled',\r\n}\r\n\r\nexport type PassdownLog = Entity &\r\n Evented & {\r\n __typename: 'PassdownLog';\r\n _events: MessageEnvelopeCollection;\r\n acknowledgedBy: Maybe;\r\n acknowledgedById: Maybe;\r\n author: Maybe;\r\n authorId: Maybe;\r\n body: Scalars['String'];\r\n companyId: Scalars['ID'];\r\n dateAcknowledged: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n logDate: Scalars['DateTime'];\r\n name: Scalars['String'];\r\n passdownLogAcknowledgements: Array;\r\n region: Region;\r\n regionId: Scalars['ID'];\r\n requiresAcknowledgement: Scalars['Boolean'];\r\n };\r\n\r\nexport type PassdownLog_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type PassdownLogAcknowledgement = Entity &\r\n Evented & {\r\n __typename: 'PassdownLogAcknowledgement';\r\n _events: MessageEnvelopeCollection;\r\n acknowledgedBy: Person;\r\n acknowledgedById: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n dateAcknowledged: Scalars['DateTime'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n passdownLog: PassdownLog;\r\n passdownLogId: Scalars['ID'];\r\n };\r\n\r\nexport type PassdownLogAcknowledgement_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type PassdownLogAcknowledgementCollection = {\r\n __typename: 'PassdownLogAcknowledgementCollection';\r\n items: Array;\r\n meta: PassdownLogAcknowledgementCollectionMetadata;\r\n};\r\n\r\nexport type PassdownLogAcknowledgementCollectionMetadata = CollectionMetadata & {\r\n __typename: 'PassdownLogAcknowledgementCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type PassdownLogCollection = {\r\n __typename: 'PassdownLogCollection';\r\n items: Array;\r\n meta: PassdownLogCollectionMetadata;\r\n};\r\n\r\nexport type PassdownLogCollectionMetadata = CollectionMetadata & {\r\n __typename: 'PassdownLogCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type PassdownLogFilter = {\r\n logDateRange: InputMaybe;\r\n nameLike: InputMaybe;\r\n regionId: InputMaybe;\r\n unacknowledgedOnly: InputMaybe;\r\n};\r\n\r\nexport type PassdownLogQueries = {\r\n __typename: 'PassdownLogQueries';\r\n all: PassdownLogCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type PassdownLogQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type PassdownLogQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type PassengerFilter = {\r\n nameLike: InputMaybe;\r\n passengerType: InputMaybe;\r\n personId: InputMaybe;\r\n positionType: InputMaybe;\r\n};\r\n\r\nexport enum PassengerType {\r\n CoPilot = 'CoPilot',\r\n CrewMember = 'CrewMember',\r\n Driver = 'Driver',\r\n Escort = 'Escort',\r\n Guard = 'Guard',\r\n Other = 'Other',\r\n Patient = 'Patient',\r\n PilotInCommand = 'PilotInCommand',\r\n RideAlong = 'RideAlong',\r\n SpecialyTeamMember = 'SpecialyTeamMember',\r\n}\r\n\r\nexport type Patient = Entity &\r\n Evented & {\r\n __typename: 'Patient';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n dateOfBirth: Maybe;\r\n firstName: Maybe;\r\n gender: Gender;\r\n id: Scalars['ID'];\r\n lastName: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n requests: Maybe>>;\r\n };\r\n\r\nexport type Patient_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport enum PatientActivityType {\r\n Created = 'Created',\r\n Deleted = 'Deleted',\r\n Updated = 'Updated',\r\n}\r\n\r\nexport type PatientCollection = {\r\n __typename: 'PatientCollection';\r\n items: Array;\r\n meta: PatientCollectionMetadata;\r\n};\r\n\r\nexport type PatientCollectionMetadata = CollectionMetadata & {\r\n __typename: 'PatientCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum PatientRelationshipType {\r\n Other = 'Other',\r\n ParentOrGuardian = 'ParentOrGuardian',\r\n Spouse = 'Spouse',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport type Person = Entity &\r\n Evented & {\r\n __typename: 'Person';\r\n _events: MessageEnvelopeCollection;\r\n accessibleItems: Array;\r\n activateOktaAccount: Scalars['Boolean'];\r\n activeAlerts: Maybe>>;\r\n activeDirectoryId: Maybe;\r\n alerts: Maybe>>;\r\n allBasesAccessible: Maybe;\r\n allCommunicationCentersAccessible: Maybe;\r\n allCompaniesAccessible: Maybe;\r\n allTrmProgramsAccessible: Maybe;\r\n appSettings: Maybe;\r\n applicationNotifications: Maybe>>;\r\n aviationCompanyId: Maybe;\r\n base: Maybe;\r\n baseId: Maybe;\r\n cardNoteArchives: Maybe>>;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n dateLastUpdatedFromGMRWorkday: Maybe;\r\n department: Maybe;\r\n departmentId: Maybe;\r\n dispatchCompanyId: Maybe;\r\n email: Scalars['String'];\r\n employeeId: Maybe;\r\n employeeType: EmployeeType;\r\n faaCompanyId: Maybe;\r\n firstName: Scalars['String'];\r\n grantTcsAccess: Scalars['Boolean'];\r\n hireDate: Maybe;\r\n id: Scalars['ID'];\r\n /** @deprecated This was a temporary fix for a lack of a permissions system and may be removed */\r\n isAviationSupervisor: Scalars['Boolean'];\r\n isOutOfFlightCompliance: Scalars['Boolean'];\r\n lastName: Scalars['String'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n location: Maybe;\r\n locationId: Maybe;\r\n manifestEntries: Maybe>>;\r\n medicalControlContactLogEntries: Array;\r\n medicalControlContacts: Array;\r\n members: Maybe>>;\r\n notes: Maybe>>;\r\n notificationAddress: Maybe;\r\n oemActivities: Maybe>>;\r\n oemPlanChangeRequests: Maybe>>;\r\n outOfFlightComplianceComment: Maybe;\r\n outOfServiceEventNotes: Maybe>>;\r\n passdownLogAcknowledgements: Array;\r\n passdownLogs: Maybe>>;\r\n primaryCommunicationCenter: Maybe;\r\n primaryCommunicationCenterId: Maybe;\r\n program: Maybe;\r\n programId: Maybe;\r\n programs: Maybe>>;\r\n recipients: Maybe>>;\r\n reportsToPersonId: Maybe;\r\n specialtyTeamMembers: Array;\r\n terminationDate: Maybe;\r\n timeType: TimeType;\r\n timestamps: Maybe>>;\r\n title: Maybe;\r\n trips: Maybe>>;\r\n trmUsers: Maybe>>;\r\n units: Maybe>>;\r\n userRoles: Maybe>>;\r\n webOrderLogs: Maybe>>;\r\n };\r\n\r\nexport type Person_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type PersonCollection = {\r\n __typename: 'PersonCollection';\r\n items: Array;\r\n meta: PersonCollectionMetadata;\r\n};\r\n\r\nexport type PersonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'PersonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type PersonFilter = {\r\n allUserRoles: InputMaybe>;\r\n anyUserRoles: InputMaybe>;\r\n aviationCompanyId: InputMaybe;\r\n companyId: InputMaybe;\r\n dispatchCompanyId: InputMaybe;\r\n includeAllCompanies: InputMaybe;\r\n includeTerminated: InputMaybe;\r\n includeTerminatedAfter: InputMaybe;\r\n isOutOfFlightCompliance: InputMaybe;\r\n nameLike: InputMaybe;\r\n personId: InputMaybe;\r\n withoutAllUserRoles: InputMaybe>;\r\n withoutAnyUserRoles: InputMaybe>;\r\n};\r\n\r\nexport type PersonQueries = {\r\n __typename: 'PersonQueries';\r\n all: PersonCollection;\r\n byEmail: Maybe;\r\n byId: Maybe;\r\n current: Maybe;\r\n};\r\n\r\nexport type PersonQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type PersonQueriesbyEmailArgs = {\r\n email: Scalars['String'];\r\n};\r\n\r\nexport type PersonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum PhoneNumberType {\r\n Home = 'Home',\r\n Mobile = 'Mobile',\r\n Other = 'Other',\r\n Work = 'Work',\r\n}\r\n\r\nexport type Physician = Entity &\r\n Evented & {\r\n __typename: 'Physician';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n firstName: Scalars['String'];\r\n id: Scalars['ID'];\r\n lastName: Scalars['String'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n medicalFacilities: Array;\r\n requests: Maybe>>;\r\n };\r\n\r\nexport type Physician_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type PhysicianCollection = {\r\n __typename: 'PhysicianCollection';\r\n items: Array;\r\n meta: PhysicianCollectionMetadata;\r\n};\r\n\r\nexport type PhysicianCollectionMetadata = CollectionMetadata & {\r\n __typename: 'PhysicianCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type PhysicianFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type PhysicianQueries = {\r\n __typename: 'PhysicianQueries';\r\n all: PhysicianCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type PhysicianQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type PhysicianQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type PlaceUnitOnStandby = {\r\n commitUnit: InputMaybe;\r\n operationId: Scalars['ID'];\r\n};\r\n\r\nexport type PositionReport = Entity &\r\n Evented & {\r\n __typename: 'PositionReport';\r\n _events: MessageEnvelopeCollection;\r\n altitude: Maybe;\r\n companyId: Scalars['ID'];\r\n coordinates: Maybe;\r\n dateConfirmed: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n estimatedDuration: Maybe;\r\n estimatedMinutesEnRoute: Maybe;\r\n fuelRemaining: Maybe;\r\n heading: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n positionTime: Scalars['DateTime'];\r\n source: PositionReportSource;\r\n speedInKnots: Maybe;\r\n timezoneCd: Maybe;\r\n trip: Trip;\r\n tripId: Scalars['ID'];\r\n vehicleDisposition: Maybe;\r\n };\r\n\r\nexport type PositionReport_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type PositionReportAlert = Entity &\r\n Evented & {\r\n __typename: 'PositionReportAlert';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n hasReceivedQualifyingReport: Scalars['Boolean'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n vehicle: Vehicle;\r\n vehicleId: Scalars['ID'];\r\n };\r\n\r\nexport type PositionReportAlert_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type PositionReportAlertCollection = {\r\n __typename: 'PositionReportAlertCollection';\r\n items: Array;\r\n meta: PositionReportAlertCollectionMetadata;\r\n};\r\n\r\nexport type PositionReportAlertCollectionMetadata = CollectionMetadata & {\r\n __typename: 'PositionReportAlertCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type PositionReportAlertFilter = {\r\n companyId: InputMaybe;\r\n includeOnlyNoQualifiedReportAlerts: InputMaybe;\r\n};\r\n\r\nexport type PositionReportAlertQueries = {\r\n __typename: 'PositionReportAlertQueries';\r\n all: PositionReportAlertCollection;\r\n byId: Maybe;\r\n byVehicleId: Maybe;\r\n};\r\n\r\nexport type PositionReportAlertQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type PositionReportAlertQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type PositionReportAlertQueriesbyVehicleIdArgs = {\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type PositionReportArchive = Entity &\r\n Evented & {\r\n __typename: 'PositionReportArchive';\r\n _events: MessageEnvelopeCollection;\r\n altitude: Maybe;\r\n companyId: Scalars['ID'];\r\n coordinates: Maybe;\r\n dateArchived: Scalars['DateTime'];\r\n dateConfirmed: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n estimatedMinutesEnRoute: Maybe;\r\n fuelRemaining: Maybe;\r\n heading: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n positionTime: Scalars['DateTime'];\r\n source: PositionReportSource;\r\n speedInKnots: Maybe;\r\n timezoneCd: Maybe;\r\n tripId: Scalars['ID'];\r\n };\r\n\r\nexport type PositionReportArchive_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type PositionReportArchiveCollection = {\r\n __typename: 'PositionReportArchiveCollection';\r\n items: Array;\r\n meta: PositionReportArchiveCollectionMetadata;\r\n};\r\n\r\nexport type PositionReportArchiveCollectionMetadata = CollectionMetadata & {\r\n __typename: 'PositionReportArchiveCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type PositionReportArchiveQueries = {\r\n __typename: 'PositionReportArchiveQueries';\r\n byId: Maybe;\r\n byTripId: PositionReportArchiveCollection;\r\n};\r\n\r\nexport type PositionReportArchiveQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type PositionReportArchiveQueriesbyTripIdArgs = {\r\n tripId: Scalars['ID'];\r\n};\r\n\r\nexport type PositionReportCollection = {\r\n __typename: 'PositionReportCollection';\r\n items: Array;\r\n meta: PositionReportCollectionMetadata;\r\n};\r\n\r\nexport type PositionReportCollectionMetadata = CollectionMetadata & {\r\n __typename: 'PositionReportCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum PositionReportSource {\r\n GpsAuto = 'GpsAuto',\r\n GpsManual = 'GpsManual',\r\n Pilot = 'Pilot',\r\n TCS = 'TCS',\r\n}\r\n\r\nexport type PositionReportSummary = {\r\n __typename: 'PositionReportSummary';\r\n id: Scalars['ID'];\r\n positionTime: Scalars['DateTime'];\r\n source: PositionReportSource;\r\n};\r\n\r\nexport type PositionReportSummaryInput = {\r\n id: Scalars['ID'];\r\n positionTime: Scalars['DateTime'];\r\n source: PositionReportSource;\r\n};\r\n\r\nexport type PreferredUnit = {\r\n __typename: 'PreferredUnit';\r\n id: Scalars['ID'];\r\n rank: Scalars['Int'];\r\n type: PreferredUnitType;\r\n unitAbbreviation: Scalars['String'];\r\n};\r\n\r\nexport type PreferredUnitInput = {\r\n id: Scalars['ID'];\r\n rank: Scalars['Int'];\r\n type: PreferredUnitType;\r\n unitAbbreviation: Scalars['String'];\r\n};\r\n\r\nexport enum PreferredUnitType {\r\n AgencyLocation = 'AgencyLocation',\r\n Unit = 'Unit',\r\n}\r\n\r\nexport type Program = Entity &\r\n Evented & {\r\n __typename: 'Program';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n admin: Maybe;\r\n adminId: Maybe;\r\n bases: Array;\r\n code: Scalars['String'];\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n people: Maybe>>;\r\n trmUserPrograms: Array;\r\n };\r\n\r\nexport type Program_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ProgramBase = Entity &\r\n Evented & {\r\n __typename: 'ProgramBase';\r\n _events: MessageEnvelopeCollection;\r\n base: Base;\r\n baseId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n endTime: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n program: Program;\r\n programId: Scalars['ID'];\r\n startTime: Maybe;\r\n };\r\n\r\nexport type ProgramBase_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ProgramBaseCollection = {\r\n __typename: 'ProgramBaseCollection';\r\n items: Array;\r\n meta: ProgramBaseCollectionMetadata;\r\n};\r\n\r\nexport type ProgramBaseCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ProgramBaseCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type ProgramBaseFilter = {\r\n baseId: InputMaybe;\r\n programId: InputMaybe;\r\n};\r\n\r\nexport type ProgramCollection = {\r\n __typename: 'ProgramCollection';\r\n items: Array;\r\n meta: ProgramCollectionMetadata;\r\n};\r\n\r\nexport type ProgramCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ProgramCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type ProgramFilter = {\r\n companyId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type ProgramQueries = {\r\n __typename: 'ProgramQueries';\r\n all: ProgramCollection;\r\n};\r\n\r\nexport type ProgramQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type PublicConfiguration = {\r\n __typename: 'PublicConfiguration';\r\n okta: Maybe;\r\n};\r\n\r\nexport type PublicOktaConfiguration = {\r\n __typename: 'PublicOktaConfiguration';\r\n clientId: Scalars['String'];\r\n tenantUrl: Scalars['String'];\r\n};\r\n\r\nexport type Query = {\r\n __typename: 'Query';\r\n /** @deprecated Use regionGroups.all.meta instead */\r\n _allRegionGroupsMeta: QueryMeta;\r\n /** @deprecated Use regions.all.meta instead */\r\n _allRegionsMeta: QueryMeta;\r\n activationRules: ActivationRuleQueries;\r\n activeAlerts: ActiveAlertQueries;\r\n activeTimelines: ActiveTimelineQueries;\r\n agencies: AgencyQueries;\r\n agencyLocations: AgencyLocationQueries;\r\n /** @deprecated Use airports.byId instead */\r\n airportById: Maybe;\r\n airports: AirportQueries;\r\n alerts: AlertQueries;\r\n /** @deprecated Use bases.all.items instead */\r\n allBases: Array;\r\n /** @deprecated Use companies.all.items instead */\r\n allCompanies: Array;\r\n /** @deprecated Use departments.all instead */\r\n allDepartments: Array;\r\n /** @deprecated Use locations.all instead */\r\n allLocations: Array;\r\n /** @deprecated Use programBases.all instead */\r\n allProgramBases: Array;\r\n /** @deprecated Use regionGroups.all instead */\r\n allRegionGroups: Array;\r\n /** @deprecated Use regions.all instead */\r\n allRegions: Array;\r\n /** @deprecated Use vehicleMakes.all instead */\r\n allVehicleMakes: Array;\r\n applicationNotifications: ApplicationNotificationQueries;\r\n archiveLogs: ArchiveLogQueries;\r\n authenticatedIdentity: Person;\r\n baseControlZones: BaseControlZoneQueries;\r\n bases: BaseQueries;\r\n cancellationCategories: CancellationCategoryQueries;\r\n cancellationReasons: CancellationReasonQueries;\r\n cancellationSecondaryReasons: CancellationSecondaryReasonQueries;\r\n capabilities: CapabilityQueries;\r\n cardLinks: CardLinkQueries;\r\n cardNoteArchives: CardNoteArchiveQueries;\r\n cardNotes: CardNoteQueries;\r\n cardReopenReasons: CardReopenReasonQueries;\r\n cards: CardQueries;\r\n communicationCenters: CommunicationCenterQueries;\r\n companies: CompanyQueries;\r\n completeFlightInstances: CompleteFlightInstanceQueries;\r\n configuration: PublicConfiguration;\r\n configurationSettings: ConfigurationSettingQueries;\r\n controlZones: ControlZoneQueries;\r\n declineCategories: DeclineCategoryQueries;\r\n declineReasons: DeclineReasonQueries;\r\n declineSecondaryReasons: DeclineSecondaryReasonQueries;\r\n diversionReasons: DiversionReasonQueries;\r\n entities: EntityQueries;\r\n entityCapabilities: EntityCapabilityQueries;\r\n externalActionTypes: ExternalActionTypeQueries;\r\n externalActions: ExternalActionQueries;\r\n externalReferences: ExternalReferenceQueries;\r\n facilityNonAcceptanceReasons: FacilityNonAcceptanceReasonQueries;\r\n fbos: FboQueries;\r\n firewallRules: FirewallRuleQueries;\r\n fueltanks: FuelTankQueries;\r\n gis: GisQueries;\r\n landingZoneOutOfServiceReasons: LandingZoneOutOfServiceReasonQueries;\r\n locationHazards: LocationHazardQueries;\r\n locations: LocationQueries;\r\n medicalFacilities: MedicalFacilityQueries;\r\n medicalFacilityContacts: MedicalFacilityContactQueries;\r\n nextDueTypes: NextDueTypeQueries;\r\n nonReferralReasons: NonReferralReasonQueries;\r\n notificationGroupMembers: NotificationGroupMemberQueries;\r\n notificationGroups: NotificationGroupQueries;\r\n notificationSubscriptions: NotificationSubscriptionQueries;\r\n notificationTemplates: NotificationTemplateQueries;\r\n notifications: NotificationQueries;\r\n offerAlgorithms: OfferAlgorithmQueries;\r\n okta: OktaQueries;\r\n /** @deprecated Use regionGroups.all instead */\r\n operationsRegionGroupByCompany: Maybe;\r\n outOfServiceEventNotes: OutOfServiceEventNoteQueries;\r\n outOfServiceEvents: OutOfServiceEventQueries;\r\n outOfServiceReasons: OutOfServiceReasonQueries;\r\n outOfServiceSecondaryReasons: OutOfServiceSecondaryReasonQueries;\r\n passdownLogs: PassdownLogQueries;\r\n people: PersonQueries;\r\n physicians: PhysicianQueries;\r\n positionReportAlerts: PositionReportAlertQueries;\r\n positionReportArchives: PositionReportArchiveQueries;\r\n /** @deprecated Use programs.byId instead */\r\n programById: Maybe;\r\n programs: ProgramQueries;\r\n questionnaireResponses: QuestionnaireResponseQueries;\r\n questionnaires: QuestionnaireQueries;\r\n questions: QuestionQueries;\r\n ramcoVehicleConfigurations: RamcoVehicleConfigurationQueries;\r\n /** @deprecated Use regions.byId instead */\r\n regionById: Maybe;\r\n /** @deprecated Use regionGroups.byId instead */\r\n regionGroupById: Maybe;\r\n regionGroups: RegionGroupQueries;\r\n regions: RegionQueries;\r\n requestLocations: RequestLocationQueries;\r\n requesterReferralReasons: RequesterReferralReasonQueries;\r\n requests: RequestQueries;\r\n specialtyTeamMembers: SpectialtyTeamMemberQueries;\r\n specialtyTeams: SpecialtyTeamQueries;\r\n supportRequests: SupportRequestQueries;\r\n timelineItems: TimelineItemQueries;\r\n timelines: TimelineQueries;\r\n timestampTypes: TimestampTypeQueries;\r\n timestamps: TimestampQueries;\r\n transferCenters: TransferCenterQueries;\r\n transferReasons: TransferReasonQueries;\r\n transportReasons: TransportReasonQueries;\r\n trmUsers: TrmUserQueries;\r\n unitActivationRules: UnitActivationRuleQueries;\r\n unitEMSystemMappings: UnitEMSystemMappingQueries;\r\n unitNotes: UnitNoteQueries;\r\n unitPositions: UnitPositionQueries;\r\n unitShifts: UnitShiftQueries;\r\n units: UnitQueries;\r\n userIdentity: Person;\r\n /** @deprecated Use vehicles.byId instead */\r\n vehicleById: Maybe;\r\n vehicleConfigurationClasses: VehicleConfigurationClassQueries;\r\n vehicleControlZones: VehicleControlZoneQueries;\r\n vehicleModels: VehicleModelQueries;\r\n vehiclePositionSummary: vehcilePositionSummaryQueries;\r\n vehicles: VehicleQueries;\r\n webOrderLogs: webOrderLogQueries;\r\n};\r\n\r\nexport type QueryairportByIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type QueryallBasesArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QueryallCompaniesArgs = {\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QueryallDepartmentsArgs = {\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QueryallLocationsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QueryallProgramBasesArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QueryallRegionGroupsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QueryallRegionsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QueryallVehicleMakesArgs = {\r\n filter: InputMaybe;\r\n};\r\n\r\nexport type QueryoperationsRegionGroupByCompanyArgs = {\r\n companyId: Scalars['ID'];\r\n};\r\n\r\nexport type QueryprogramByIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type QueryregionByIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type QueryregionGroupByIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type QueryvehicleByIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type QueryMeta = {\r\n __typename: 'QueryMeta';\r\n count: Scalars['Int'];\r\n};\r\n\r\nexport type Question = Entity &\r\n Evented & {\r\n __typename: 'Question';\r\n _events: MessageEnvelopeCollection;\r\n choices: Array;\r\n dataType: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n question: Scalars['String'];\r\n questionType: QuestionType;\r\n questionnaireSectionQuestions: Array;\r\n };\r\n\r\nexport type Question_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QuestionChoice = Entity &\r\n Evented & {\r\n __typename: 'QuestionChoice';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n label: Scalars['String'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n question: Question;\r\n questionId: Scalars['ID'];\r\n value: Scalars['String'];\r\n };\r\n\r\nexport type QuestionChoice_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QuestionChoiceCollection = {\r\n __typename: 'QuestionChoiceCollection';\r\n items: Array;\r\n meta: QuestionChoiceCollectionMetadata;\r\n};\r\n\r\nexport type QuestionChoiceCollectionMetadata = CollectionMetadata & {\r\n __typename: 'QuestionChoiceCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type QuestionCollection = {\r\n __typename: 'QuestionCollection';\r\n items: Array;\r\n meta: QuestionCollectionMetadata;\r\n};\r\n\r\nexport type QuestionCollectionMetadata = CollectionMetadata & {\r\n __typename: 'QuestionCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum QuestionDataType {\r\n Boolean = 'Boolean',\r\n Decimal = 'Decimal',\r\n Integer = 'Integer',\r\n String = 'String',\r\n}\r\n\r\nexport type QuestionFilter = {\r\n nameLike: InputMaybe;\r\n questionLike: InputMaybe;\r\n};\r\n\r\nexport type QuestionQueries = {\r\n __typename: 'QuestionQueries';\r\n all: QuestionCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type QuestionQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QuestionQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type QuestionResponseValueContainer = {\r\n __typename: 'QuestionResponseValueContainer';\r\n type: QuestionDataType;\r\n value: Scalars['String'];\r\n};\r\n\r\nexport type QuestionResponseValueContainerInput = {\r\n type: QuestionDataType;\r\n value: Scalars['String'];\r\n};\r\n\r\nexport enum QuestionType {\r\n Choice = 'Choice',\r\n FreeText = 'FreeText',\r\n YesNo = 'YesNo',\r\n}\r\n\r\nexport type Questionnaire = Entity &\r\n Evented & {\r\n __typename: 'Questionnaire';\r\n _events: MessageEnvelopeCollection;\r\n communicationCenterId: Maybe;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n questionnaireResponses: Array;\r\n questionnaireSections: Array;\r\n type: QuestionnaireType;\r\n };\r\n\r\nexport type Questionnaire_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QuestionnaireCollection = {\r\n __typename: 'QuestionnaireCollection';\r\n items: Array;\r\n meta: QuestionnaireCollectionMetadata;\r\n};\r\n\r\nexport type QuestionnaireCollectionMetadata = CollectionMetadata & {\r\n __typename: 'QuestionnaireCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type QuestionnaireFilter = {\r\n companyId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type QuestionnaireQueries = {\r\n __typename: 'QuestionnaireQueries';\r\n all: QuestionnaireCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type QuestionnaireQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QuestionnaireQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type QuestionnaireQuestionResponse = Entity &\r\n Evented & {\r\n __typename: 'QuestionnaireQuestionResponse';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n explanation: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n matchType: RuleMatchType;\r\n questionnaireQuestionResponseNotes: Array;\r\n questionnaireResponse: QuestionnaireResponse;\r\n questionnaireResponseId: Scalars['ID'];\r\n questionnaireSectionQuestion: QuestionnaireSectionQuestion;\r\n questionnaireSectionQuestionId: Scalars['ID'];\r\n responseValue: Maybe;\r\n reviewRequired: Scalars['Boolean'];\r\n };\r\n\r\nexport type QuestionnaireQuestionResponse_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QuestionnaireQuestionResponseCollection = {\r\n __typename: 'QuestionnaireQuestionResponseCollection';\r\n items: Array;\r\n meta: QuestionnaireQuestionResponseCollectionMetadata;\r\n};\r\n\r\nexport type QuestionnaireQuestionResponseCollectionMetadata = CollectionMetadata & {\r\n __typename: 'QuestionnaireQuestionResponseCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type QuestionnaireQuestionResponseNote = Entity &\r\n Evented & {\r\n __typename: 'QuestionnaireQuestionResponseNote';\r\n _events: MessageEnvelopeCollection;\r\n authorId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n dateAuthored: Scalars['DateTime'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n note: Scalars['String'];\r\n questionnaireQuestionResponse: QuestionnaireQuestionResponse;\r\n questionnaireQuestionResponseId: Scalars['ID'];\r\n };\r\n\r\nexport type QuestionnaireQuestionResponseNote_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QuestionnaireQuestionResponseNoteCollection = {\r\n __typename: 'QuestionnaireQuestionResponseNoteCollection';\r\n items: Array;\r\n meta: QuestionnaireQuestionResponseNoteCollectionMetadata;\r\n};\r\n\r\nexport type QuestionnaireQuestionResponseNoteCollectionMetadata = CollectionMetadata & {\r\n __typename: 'QuestionnaireQuestionResponseNoteCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type QuestionnaireResponse = Entity &\r\n Evented & {\r\n __typename: 'QuestionnaireResponse';\r\n _events: MessageEnvelopeCollection;\r\n card: Card;\r\n cardId: Scalars['ID'];\r\n communicationsReviewById: Maybe;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n completedById: Maybe;\r\n currentReviewLevel: Maybe;\r\n dateCommunicationsReviewed: Maybe;\r\n dateCompleted: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n dateManagerReviewed: Maybe;\r\n dateSupervisorReviewed: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n managerReviewById: Maybe;\r\n questionnaire: Questionnaire;\r\n questionnaireId: Scalars['ID'];\r\n questionnaireQuestionResponses: Array;\r\n status: QuestionnaireResponseStatus;\r\n supervisorReviewById: Maybe;\r\n };\r\n\r\nexport type QuestionnaireResponse_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QuestionnaireResponseCollection = {\r\n __typename: 'QuestionnaireResponseCollection';\r\n items: Array;\r\n meta: QuestionnaireResponseCollectionMetadata;\r\n};\r\n\r\nexport type QuestionnaireResponseCollectionMetadata = CollectionMetadata & {\r\n __typename: 'QuestionnaireResponseCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type QuestionnaireResponseFilter = {\r\n companyId: InputMaybe;\r\n questionnaireResponseStatuses: InputMaybe>;\r\n userRoles: InputMaybe>;\r\n};\r\n\r\nexport type QuestionnaireResponseQueries = {\r\n __typename: 'QuestionnaireResponseQueries';\r\n all: QuestionnaireResponseCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type QuestionnaireResponseQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QuestionnaireResponseQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum QuestionnaireResponseStatus {\r\n AwaitingReview = 'AwaitingReview',\r\n Completed = 'Completed',\r\n Draft = 'Draft',\r\n NotStarted = 'NotStarted',\r\n}\r\n\r\nexport type QuestionnaireSection = Entity &\r\n Evented & {\r\n __typename: 'QuestionnaireSection';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n questionnaire: Questionnaire;\r\n questionnaireId: Scalars['ID'];\r\n questionnaireSectionQuestions: Array;\r\n sequence: Scalars['Int'];\r\n };\r\n\r\nexport type QuestionnaireSection_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QuestionnaireSectionCollection = {\r\n __typename: 'QuestionnaireSectionCollection';\r\n items: Array;\r\n meta: QuestionnaireSectionCollectionMetadata;\r\n};\r\n\r\nexport type QuestionnaireSectionCollectionMetadata = CollectionMetadata & {\r\n __typename: 'QuestionnaireSectionCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type QuestionnaireSectionQuestion = Entity &\r\n Evented & {\r\n __typename: 'QuestionnaireSectionQuestion';\r\n _events: MessageEnvelopeCollection;\r\n activationRule: Maybe;\r\n activationRuleId: Maybe;\r\n activityType: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n explanationRequiredChoices: Maybe>>;\r\n id: Scalars['ID'];\r\n isDisabled: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n question: Question;\r\n questionId: Scalars['ID'];\r\n questionnaireQuestionResponses: Array;\r\n questionnaireSection: QuestionnaireSection;\r\n questionnaireSectionId: Scalars['ID'];\r\n responsibleRole: UserRole;\r\n reviewRequiredChoices: Maybe>>;\r\n sequence: Scalars['Int'];\r\n };\r\n\r\nexport type QuestionnaireSectionQuestion_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type QuestionnaireSectionQuestionCollection = {\r\n __typename: 'QuestionnaireSectionQuestionCollection';\r\n items: Array;\r\n meta: QuestionnaireSectionQuestionCollectionMetadata;\r\n};\r\n\r\nexport type QuestionnaireSectionQuestionCollectionMetadata = CollectionMetadata & {\r\n __typename: 'QuestionnaireSectionQuestionCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum QuestionnaireType {\r\n QualityAssurance = 'QualityAssurance',\r\n}\r\n\r\nexport type RamcoVehicleConfiguration = Entity &\r\n Evented & {\r\n __typename: 'RamcoVehicleConfiguration';\r\n _events: MessageEnvelopeCollection;\r\n companyCode: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n maintenanceSystemId: Scalars['String'];\r\n modelNumber: Scalars['String'];\r\n tailNumber: Scalars['String'];\r\n };\r\n\r\nexport type RamcoVehicleConfiguration_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RamcoVehicleConfigurationCollection = {\r\n __typename: 'RamcoVehicleConfigurationCollection';\r\n items: Array;\r\n meta: RamcoVehicleConfigurationCollectionMetadata;\r\n};\r\n\r\nexport type RamcoVehicleConfigurationCollectionMetadata = CollectionMetadata & {\r\n __typename: 'RamcoVehicleConfigurationCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type RamcoVehicleConfigurationQueries = {\r\n __typename: 'RamcoVehicleConfigurationQueries';\r\n byTailNumber: Maybe;\r\n};\r\n\r\nexport type RamcoVehicleConfigurationQueriesbyTailNumberArgs = {\r\n tailNumber: Scalars['String'];\r\n};\r\n\r\nexport type ReOpenCard = {\r\n cardId: Scalars['ID'];\r\n reOpenComment: Scalars['String'];\r\n reOpenReasonId: InputMaybe;\r\n};\r\n\r\nexport type ReSendToDataWarehouse = {\r\n cardId: Scalars['ID'];\r\n};\r\n\r\nexport type ReactivateRequest = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type ReactivateRequestFromTransferCenter = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type ReassignVehicle = {\r\n newUnitId: Scalars['ID'];\r\n oldUnitId: Scalars['ID'];\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type RecalculateCandidates = {\r\n referralUnitId: InputMaybe;\r\n requestId: Scalars['ID'];\r\n};\r\n\r\nexport type RecalculateTripMileage = {\r\n tripId: Scalars['ID'];\r\n};\r\n\r\nexport type ReceivingFacilityRequest = Entity &\r\n Evented & {\r\n __typename: 'ReceivingFacilityRequest';\r\n _events: MessageEnvelopeCollection;\r\n card: Card;\r\n cardId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n medicalFacility: MedicalFacility;\r\n medicalFacilityId: Scalars['ID'];\r\n nonAcceptanceReason: Maybe;\r\n nonAcceptanceReasonId: Maybe;\r\n nonAcceptanceType: Maybe;\r\n referredToFacility: Maybe;\r\n referredToFacilityId: Maybe;\r\n request: Request;\r\n requestId: Scalars['ID'];\r\n requestLocation: RequestLocation;\r\n requestLocationId: Scalars['ID'];\r\n status: ReceivingFacilityRequestStatus;\r\n };\r\n\r\nexport type ReceivingFacilityRequest_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type ReceivingFacilityRequestCollection = {\r\n __typename: 'ReceivingFacilityRequestCollection';\r\n items: Array;\r\n meta: ReceivingFacilityRequestCollectionMetadata;\r\n};\r\n\r\nexport type ReceivingFacilityRequestCollectionMetadata = CollectionMetadata & {\r\n __typename: 'ReceivingFacilityRequestCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum ReceivingFacilityRequestStatus {\r\n Accepted = 'Accepted',\r\n Cancelled = 'Cancelled',\r\n Denied = 'Denied',\r\n Diverted = 'Diverted',\r\n Pending = 'Pending',\r\n}\r\n\r\nexport type Recipient = {\r\n __typename: 'Recipient';\r\n address: Scalars['String'];\r\n groupTypes: Maybe>>;\r\n name: Maybe;\r\n notificationRecipientId: Maybe;\r\n positionType: Maybe;\r\n userId: Maybe;\r\n};\r\n\r\nexport type RecipientInput = {\r\n address: Scalars['String'];\r\n groupTypes: InputMaybe>>;\r\n name: InputMaybe;\r\n notificationRecipientId: InputMaybe;\r\n positionType: InputMaybe;\r\n userId: InputMaybe;\r\n};\r\n\r\nexport type ReferReceivingFacilityRequest = {\r\n id: Scalars['ID'];\r\n nonAcceptanceReasonId: Scalars['ID'];\r\n note: InputMaybe;\r\n personsInvolved: InputMaybe;\r\n referredToFacilityId: Scalars['ID'];\r\n time: Scalars['DateTime'];\r\n};\r\n\r\nexport type ReferTransportOffer = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type RefreshLocationsFromGMRWorkday = {\r\n changesOnly: InputMaybe;\r\n locationFilter: InputMaybe>>;\r\n};\r\n\r\nexport type RefreshPeopleFromGMRWorkdayV2 = {\r\n changesOnly: InputMaybe;\r\n employeeIdFilter: InputMaybe>>;\r\n excludeEmployeeIdFilter: InputMaybe>>;\r\n};\r\n\r\nexport type Region = Entity &\r\n Evented & {\r\n __typename: 'Region';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n activationRules: Maybe>>;\r\n activeAlerts: Maybe>>;\r\n applicationNotifications: Maybe>>;\r\n bases: Array;\r\n cardSummaries: Array;\r\n communicationCenter: CommunicationCenter;\r\n communicationCenterId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n dispatchNumber: Maybe;\r\n emSystemDivisionName: Maybe;\r\n fixedWingPreferredThresholdInNauticalMiles: Maybe;\r\n id: Scalars['ID'];\r\n isTransferCenterRegion: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n notificationGroups: Maybe>>;\r\n passdownLogs: Array;\r\n regionGroup: RegionGroup;\r\n regionGroupId: Scalars['ID'];\r\n requests: Maybe>>;\r\n timezoneCd: Maybe;\r\n unitSummaries: Array;\r\n units: Array;\r\n };\r\n\r\nexport type Region_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RegionBase = Entity &\r\n Evented & {\r\n __typename: 'RegionBase';\r\n _events: MessageEnvelopeCollection;\r\n base: Base;\r\n baseId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n region: Region;\r\n regionId: Scalars['ID'];\r\n };\r\n\r\nexport type RegionBase_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RegionBaseCollection = {\r\n __typename: 'RegionBaseCollection';\r\n items: Array;\r\n meta: RegionBaseCollectionMetadata;\r\n};\r\n\r\nexport type RegionBaseCollectionMetadata = CollectionMetadata & {\r\n __typename: 'RegionBaseCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type RegionCollection = {\r\n __typename: 'RegionCollection';\r\n items: Array;\r\n meta: RegionCollectionMetadata;\r\n};\r\n\r\nexport type RegionCollectionMetadata = CollectionMetadata & {\r\n __typename: 'RegionCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type RegionFilter = {\r\n companyId: InputMaybe;\r\n companyIdList: InputMaybe>;\r\n regionGroupId: InputMaybe;\r\n};\r\n\r\nexport type RegionGroup = Entity &\r\n Evented & {\r\n __typename: 'RegionGroup';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n department: Department;\r\n departmentId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n regions: Array;\r\n };\r\n\r\nexport type RegionGroup_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RegionGroupCollection = {\r\n __typename: 'RegionGroupCollection';\r\n items: Array;\r\n meta: RegionGroupCollectionMetadata;\r\n};\r\n\r\nexport type RegionGroupCollectionMetadata = CollectionMetadata & {\r\n __typename: 'RegionGroupCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type RegionGroupFilter = {\r\n companyId: InputMaybe;\r\n};\r\n\r\nexport type RegionGroupQueries = {\r\n __typename: 'RegionGroupQueries';\r\n all: RegionGroupCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type RegionGroupQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RegionGroupQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type RegionQueries = {\r\n __typename: 'RegionQueries';\r\n all: RegionCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type RegionQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RegionQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type RegisterTrmUser = {\r\n additionalProgramIds: InputMaybe>>;\r\n agencyIds: InputMaybe>>;\r\n companyId: Scalars['ID'];\r\n emailAddress: Scalars['String'];\r\n firstName: Scalars['String'];\r\n id: Scalars['ID'];\r\n lastName: Scalars['String'];\r\n medicalFacilityIds: InputMaybe>>;\r\n phoneNumber: Scalars['String'];\r\n preferredProgramId: Scalars['ID'];\r\n};\r\n\r\nexport type ReloadSummaryViews = {\r\n view: SummaryView;\r\n};\r\n\r\nexport type RemoveCrewMemberFromOutOfCompliance = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type RemoveDelayFromUnit = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type RemoveTeamMemberFromUnitPosition = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type RemoveVehicleFromUnit = {\r\n id: Scalars['ID'];\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type RemoveWaypoint = {\r\n tripId: Scalars['ID'];\r\n waypointId: Scalars['ID'];\r\n};\r\n\r\nexport type RendezvousRequest = Entity &\r\n Evented & {\r\n __typename: 'RendezvousRequest';\r\n _events: MessageEnvelopeCollection;\r\n agencyEta: Maybe;\r\n agencyLocation: Maybe;\r\n agencyLocationId: Maybe;\r\n arrivedDestAt: Maybe;\r\n arrivedLzAt: Maybe;\r\n cancelledAt: Maybe;\r\n cardLinks: Maybe>>;\r\n companyId: Scalars['ID'];\r\n confirmedAt: Maybe;\r\n contactInformation: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n departedDestAt: Maybe;\r\n departedLzAt: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n notes: Maybe;\r\n rendezvousLocationDescription: Maybe;\r\n requestLocation: RequestLocation;\r\n requestLocationId: Scalars['ID'];\r\n transportUnitNumber: Maybe;\r\n type: SupplementalLegType;\r\n utilizationStatus: AmrUtilizationStatus;\r\n };\r\n\r\nexport type RendezvousRequest_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RendezvousRequestCollection = {\r\n __typename: 'RendezvousRequestCollection';\r\n items: Array;\r\n meta: RendezvousRequestCollectionMetadata;\r\n};\r\n\r\nexport type RendezvousRequestCollectionMetadata = CollectionMetadata & {\r\n __typename: 'RendezvousRequestCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type RepositionUnit = {\r\n callbackNumber: InputMaybe;\r\n caller: InputMaybe;\r\n destinationAddress: AddressInput;\r\n destinationLocationId: InputMaybe;\r\n destinationTimezoneCd: InputMaybe;\r\n isRotorWingLz: InputMaybe;\r\n returnUnitToPost: InputMaybe;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type Request = Entity &\r\n Evented & {\r\n __typename: 'Request';\r\n _events: MessageEnvelopeCollection;\r\n assignmentDelayedReason: Maybe;\r\n assignmentDelayedReasonId: Maybe;\r\n assignmentDelayedTime: Maybe;\r\n atloInMinutes: Maybe;\r\n cancellationReason: Maybe;\r\n cancellationReasonId: Maybe;\r\n cancellationReasonNotes: Maybe;\r\n cancellationSecondaryReason: Maybe;\r\n cancellationSecondaryReasonId: Maybe;\r\n card: Card;\r\n commitUnitToStandby: Maybe;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n escortRequests: Array;\r\n etloInMinutes: Maybe;\r\n id: Scalars['ID'];\r\n includeCompetitors: Maybe;\r\n isStandbyRequest: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n latestWeatherDeclineReasonId: Maybe;\r\n latestWeatherDeclineSecondaryReasonId: Maybe;\r\n latestWeatherDeclineTime: Maybe;\r\n latestWeatherDeclineUnitId: Maybe;\r\n locations: Array;\r\n minimumFlightRule: Maybe;\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n patients: Array;\r\n primaryUnitServiceArea: Maybe;\r\n primaryUnitServiceAreaId: Maybe;\r\n receivingFacilityRequests: Array;\r\n region: Maybe;\r\n regionId: Maybe;\r\n requestedOperationType: OperationType;\r\n requestedVehicleType: Maybe;\r\n requester: Maybe;\r\n requiredCapabilities: Array;\r\n safetyQuestions: SafetyQuestions;\r\n standbyActivationRequested: Scalars['Boolean'];\r\n status: RequestStatus;\r\n timestamps: Maybe>>;\r\n transportOfferAlgorithm: Maybe;\r\n transportOfferAlgorithmId: Maybe;\r\n transportOfferOptions: Array;\r\n transportOffers: Array;\r\n transportTrackingLink: Maybe;\r\n webOrderCallType: Maybe;\r\n };\r\n\r\nexport type Request_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RequestAdditionalUnits = {\r\n cardId: Scalars['ID'];\r\n unitCount: Scalars['Int'];\r\n};\r\n\r\nexport type RequestCollection = {\r\n __typename: 'RequestCollection';\r\n items: Array;\r\n meta: RequestCollectionMetadata;\r\n};\r\n\r\nexport type RequestCollectionMetadata = CollectionMetadata & {\r\n __typename: 'RequestCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type RequestLocation = Entity &\r\n Evented & {\r\n __typename: 'RequestLocation';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n address: Address;\r\n /** @deprecated No longer used */\r\n bedNumber: Maybe;\r\n companyId: Scalars['ID'];\r\n confirmedByUserId: Maybe;\r\n dateConfirmed: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n diversionReason: Maybe;\r\n diversionReasonId: Maybe;\r\n diversionReasonOtherNotes: Maybe;\r\n estimatedGroundTimeInMinutes: Maybe;\r\n estimatedRendezvousTimeInMinutes: Maybe;\r\n fbo: Maybe;\r\n fboId: Maybe;\r\n groundContact: Maybe;\r\n id: Scalars['ID'];\r\n isAutoAccepted: Maybe;\r\n isRotorWingLz: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n locationId: Maybe;\r\n medicalFacility: Maybe;\r\n medicalFacilityId: Maybe;\r\n medicalFacilityUnit: Maybe;\r\n medicalFacilityUnitId: Maybe;\r\n /** @deprecated Use medicalFacilityUnit */\r\n medicalUnit: Maybe;\r\n /** @deprecated Use medicalFacilityUnit */\r\n medicalUnitId: Maybe;\r\n /** @deprecated Use medicalFacilityUnit */\r\n medicalUnitName: Maybe;\r\n name: Scalars['String'];\r\n notes: Maybe;\r\n physician: Maybe;\r\n physicianId: Maybe;\r\n receivingFacilityRequests: Array;\r\n rendezvousRequests: Array;\r\n request: Request;\r\n requestId: Scalars['ID'];\r\n roomNumber: Maybe;\r\n timezoneCd: Maybe;\r\n type: WaypointType;\r\n unConfirmed: Maybe;\r\n };\r\n\r\nexport type RequestLocation_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RequestLocationCollection = {\r\n __typename: 'RequestLocationCollection';\r\n items: Array;\r\n meta: RequestLocationCollectionMetadata;\r\n};\r\n\r\nexport type RequestLocationCollectionMetadata = CollectionMetadata & {\r\n __typename: 'RequestLocationCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type RequestLocationFilter = {\r\n companyId: InputMaybe;\r\n requestId: InputMaybe;\r\n};\r\n\r\nexport type RequestLocationQueries = {\r\n __typename: 'RequestLocationQueries';\r\n all: RequestLocationCollection;\r\n};\r\n\r\nexport type RequestLocationQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RequestLocationSummary = {\r\n __typename: 'RequestLocationSummary';\r\n abbreviation: Scalars['String'];\r\n address: Maybe
;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n type: WaypointType;\r\n};\r\n\r\nexport type RequestLocationSummaryInput = {\r\n abbreviation: Scalars['String'];\r\n address: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n type: WaypointType;\r\n};\r\n\r\nexport type RequestPatient = Entity &\r\n Evented & {\r\n __typename: 'RequestPatient';\r\n _events: MessageEnvelopeCollection;\r\n bpDiastolic: Maybe;\r\n bpSystolic: Maybe;\r\n chiefComplaintNotes: Maybe;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n dateOfBirth: Maybe;\r\n estimatedAgeInHours: Maybe;\r\n firstName: Maybe;\r\n gcs: Maybe;\r\n gender: Gender;\r\n heartRate: Maybe;\r\n id: Scalars['ID'];\r\n isIntubated: Maybe;\r\n isIsolette: Scalars['Boolean'];\r\n isoletteNotes: Maybe;\r\n isoletteType: Maybe;\r\n lastName: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n medicalRecordNumber: Maybe;\r\n notes: Maybe;\r\n numberOfDrips: Maybe;\r\n oxygenSaturation: Maybe;\r\n patient: Maybe;\r\n patientId: Maybe;\r\n request: Request;\r\n requestId: Scalars['ID'];\r\n respiratoryRate: Maybe;\r\n rideAlongDateOfBirth: Maybe;\r\n rideAlongName: Maybe;\r\n rideAlongRequested: Maybe;\r\n rideAlongWeightInKg: Maybe;\r\n specialtyEquipment: Maybe;\r\n temperatureInCelsius: Maybe;\r\n transferReason: Maybe;\r\n transferReasonId: Maybe;\r\n transportReason: Maybe;\r\n transportReasonCategory: Maybe;\r\n transportReasonId: Maybe;\r\n weightInKg: Maybe;\r\n };\r\n\r\nexport type RequestPatient_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RequestPatientCollection = {\r\n __typename: 'RequestPatientCollection';\r\n items: Array;\r\n meta: RequestPatientCollectionMetadata;\r\n};\r\n\r\nexport type RequestPatientCollectionMetadata = CollectionMetadata & {\r\n __typename: 'RequestPatientCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type RequestPatientSummary = {\r\n __typename: 'RequestPatientSummary';\r\n dateCreated: Maybe;\r\n dateOfBirth: Maybe;\r\n id: Scalars['ID'];\r\n weightInKg: Maybe;\r\n};\r\n\r\nexport type RequestPatientSummaryInput = {\r\n dateCreated: InputMaybe;\r\n dateOfBirth: InputMaybe;\r\n id: Scalars['ID'];\r\n weightInKg: InputMaybe;\r\n};\r\n\r\nexport type RequestQueries = {\r\n __typename: 'RequestQueries';\r\n allAssignmentDelayedReasons: Array;\r\n /** @deprecated Use cancellationReasons.all.items instead */\r\n allCancellationReasons: Array;\r\n allUnitCancellationReasons: Array;\r\n};\r\n\r\nexport type RequestQueriesallAssignmentDelayedReasonsArgs = {\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RequestQueriesallCancellationReasonsArgs = {\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RequestQueriesallUnitCancellationReasonsArgs = {\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport enum RequestStatus {\r\n Assigned = 'Assigned',\r\n AssignmentDelayed = 'AssignmentDelayed',\r\n CallReceived = 'CallReceived',\r\n Cancelled = 'Cancelled',\r\n Offered = 'Offered',\r\n Offering = 'Offering',\r\n}\r\n\r\nexport type RequestSummary = {\r\n __typename: 'RequestSummary';\r\n assignmentDelayedReason: Maybe;\r\n assignmentDelayedTime: Maybe;\r\n from: Maybe;\r\n id: Scalars['ID'];\r\n isSisterCompanyReferral: Scalars['Boolean'];\r\n isStandbyRequest: Scalars['Boolean'];\r\n latestWeatherDeclineReasonId: Maybe;\r\n latestWeatherDeclineSecondaryReasonId: Maybe;\r\n latestWeatherDeclineTime: Maybe;\r\n latestWeatherDeclineUnitId: Maybe;\r\n requester: Maybe;\r\n standbyActivationRequested: Scalars['Boolean'];\r\n status: RequestStatus;\r\n to: Maybe;\r\n transportTrackingLink: Maybe;\r\n};\r\n\r\nexport type RequestSummaryInput = {\r\n assignmentDelayedReason: InputMaybe;\r\n assignmentDelayedTime: InputMaybe;\r\n from: InputMaybe;\r\n id: Scalars['ID'];\r\n isSisterCompanyReferral: Scalars['Boolean'];\r\n isStandbyRequest: Scalars['Boolean'];\r\n latestWeatherDeclineReasonId: InputMaybe;\r\n latestWeatherDeclineSecondaryReasonId: InputMaybe;\r\n latestWeatherDeclineTime: InputMaybe;\r\n latestWeatherDeclineUnitId: InputMaybe;\r\n requester: InputMaybe;\r\n standbyActivationRequested: Scalars['Boolean'];\r\n status: RequestStatus;\r\n to: InputMaybe;\r\n transportTrackingLink: InputMaybe;\r\n};\r\n\r\nexport type Requester = Entity &\r\n Evented & {\r\n __typename: 'Requester';\r\n _events: MessageEnvelopeCollection;\r\n affiliationType: Maybe;\r\n agencyLocation: Maybe;\r\n agencyLocationId: Maybe;\r\n callbackNumber: Maybe;\r\n caller: Maybe;\r\n careLevelRequested: Maybe;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n email: Maybe;\r\n facility: Maybe;\r\n facilityId: Maybe;\r\n id: Scalars['ID'];\r\n isDoublePatient: Maybe;\r\n isWingToWing: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n missionRole: Maybe;\r\n referralReason: Maybe;\r\n referralReasonId: Maybe;\r\n referringAgencyLocation: Maybe;\r\n referringAgencyLocationId: Maybe;\r\n referringCompany: Maybe;\r\n referringCompanyId: Maybe;\r\n referringRecordNumber: Maybe;\r\n request: Maybe;\r\n requestId: Maybe;\r\n role: Maybe;\r\n roleId: Maybe;\r\n specialtyTeam: Maybe;\r\n specialtyTeamId: Maybe;\r\n specialtyTeamMembers: Array;\r\n specialtyTeamNotes: Maybe;\r\n transferCenter: Maybe;\r\n transferCenterId: Maybe;\r\n transferCenterNotes: Maybe;\r\n transportingAgencyLocation: Maybe;\r\n transportingAgencyLocationId: Maybe;\r\n };\r\n\r\nexport type Requester_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RequesterCollection = {\r\n __typename: 'RequesterCollection';\r\n items: Array;\r\n meta: RequesterCollectionMetadata;\r\n};\r\n\r\nexport type RequesterCollectionMetadata = CollectionMetadata & {\r\n __typename: 'RequesterCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type RequesterReferralReason = Entity &\r\n Evented & {\r\n __typename: 'RequesterReferralReason';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n requesters: Maybe>>;\r\n };\r\n\r\nexport type RequesterReferralReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RequesterReferralReasonCollection = {\r\n __typename: 'RequesterReferralReasonCollection';\r\n items: Array;\r\n meta: RequesterReferralReasonCollectionMetadata;\r\n};\r\n\r\nexport type RequesterReferralReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'RequesterReferralReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type RequesterReferralReasonQueries = {\r\n __typename: 'RequesterReferralReasonQueries';\r\n all: RequesterReferralReasonCollection;\r\n};\r\n\r\nexport type RequesterRole = Entity &\r\n Evented & {\r\n __typename: 'RequesterRole';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n requesters: Maybe>>;\r\n };\r\n\r\nexport type RequesterRole_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type RequesterRoleCollection = {\r\n __typename: 'RequesterRoleCollection';\r\n items: Array;\r\n meta: RequesterRoleCollectionMetadata;\r\n};\r\n\r\nexport type RequesterRoleCollectionMetadata = CollectionMetadata & {\r\n __typename: 'RequesterRoleCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type RequesterSummary = {\r\n __typename: 'RequesterSummary';\r\n id: Scalars['ID'];\r\n missionRole: MissionRoleType;\r\n};\r\n\r\nexport type RequesterSummaryInput = {\r\n id: Scalars['ID'];\r\n missionRole: MissionRoleType;\r\n};\r\n\r\nexport type RequiredCapability = {\r\n __typename: 'RequiredCapability';\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type RequiredCapabilityIdList = {\r\n __typename: 'RequiredCapabilityIdList';\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type RequiredCapabilityIdListInput = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type RequiredCapabilityInput = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type ResetPassword = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type ReturnUnitToService = {\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport enum RuleMatchType {\r\n DropoffLocation = 'DropoffLocation',\r\n PickupLocation = 'PickupLocation',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport type SafetyQuestions = {\r\n __typename: 'SafetyQuestions';\r\n otherServiceDeclined: Maybe;\r\n otherServiceDescription: Maybe;\r\n otherServiceResponseDescription: Maybe;\r\n otherServicesAreRespondingToTransferring: Maybe;\r\n};\r\n\r\nexport type SafetyQuestionsInput = {\r\n otherServiceDeclined: InputMaybe;\r\n otherServiceDescription: InputMaybe;\r\n otherServiceResponseDescription: InputMaybe;\r\n otherServicesAreRespondingToTransferring: InputMaybe;\r\n};\r\n\r\nexport type SendMessage = {\r\n body: Scalars['String'];\r\n doNotDivert: InputMaybe;\r\n fromAddress: InputMaybe;\r\n fromName: InputMaybe;\r\n medium: InputMaybe;\r\n recipientAddress: Scalars['String'];\r\n recipientName: InputMaybe;\r\n referenceNumber: InputMaybe;\r\n subject: InputMaybe;\r\n};\r\n\r\nexport type SendNotification = {\r\n notificationId: Scalars['ID'];\r\n};\r\n\r\nexport type SendPatientInfo = {\r\n cardId: Scalars['ID'];\r\n};\r\n\r\nexport type SendToImageTrend = {\r\n cardId: Scalars['ID'];\r\n};\r\n\r\nexport type SetCardLockStatus = {\r\n cardId: Scalars['ID'];\r\n isLocked: Scalars['Boolean'];\r\n};\r\n\r\nexport type SetRoleScope = {\r\n entities: Array;\r\n global: Scalars['Boolean'];\r\n personId: Scalars['ID'];\r\n userRole: UserRole;\r\n};\r\n\r\nexport type SetVehicleControlZoneId = {\r\n controlZoneId: InputMaybe;\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type SkipTransportOffer = {\r\n id: Scalars['ID'];\r\n notes: InputMaybe;\r\n skipReasonId: InputMaybe;\r\n skipSecondaryReasonId: InputMaybe;\r\n};\r\n\r\nexport type SnoozeAlert = {\r\n activeAlertId: Scalars['ID'];\r\n};\r\n\r\nexport type SpecialityTeam = {\r\n __typename: 'SpecialityTeam';\r\n specialityTeamId: Scalars['ID'];\r\n specialityTeamNotes: Maybe;\r\n};\r\n\r\nexport type SpecialityTeamInput = {\r\n specialityTeamId: Scalars['ID'];\r\n specialityTeamNotes: InputMaybe;\r\n};\r\n\r\nexport type SpecialtyTeam = Entity &\r\n Evented & {\r\n __typename: 'SpecialtyTeam';\r\n _events: MessageEnvelopeCollection;\r\n affiliation: Location;\r\n affiliationId: Scalars['ID'];\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n requesters: Maybe>>;\r\n specialtyTeamMembers: Array;\r\n };\r\n\r\nexport type SpecialtyTeam_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type SpecialtyTeamCollection = {\r\n __typename: 'SpecialtyTeamCollection';\r\n items: Array;\r\n meta: SpecialtyTeamCollectionMetadata;\r\n};\r\n\r\nexport type SpecialtyTeamCollectionMetadata = CollectionMetadata & {\r\n __typename: 'SpecialtyTeamCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type SpecialtyTeamFilter = {\r\n companyId: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type SpecialtyTeamMember = Entity &\r\n Evented & {\r\n __typename: 'SpecialtyTeamMember';\r\n _events: MessageEnvelopeCollection;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n specialtyTeam: SpecialtyTeam;\r\n specialtyTeamId: Scalars['ID'];\r\n teamMember: Person;\r\n teamMemberId: Scalars['ID'];\r\n weightInKg: Maybe;\r\n };\r\n\r\nexport type SpecialtyTeamMember_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type SpecialtyTeamMemberCollection = {\r\n __typename: 'SpecialtyTeamMemberCollection';\r\n items: Array;\r\n meta: SpecialtyTeamMemberCollectionMetadata;\r\n};\r\n\r\nexport type SpecialtyTeamMemberCollectionMetadata = CollectionMetadata & {\r\n __typename: 'SpecialtyTeamMemberCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type SpecialtyTeamMemberFilter = {\r\n companyId: InputMaybe;\r\n emailLike: InputMaybe;\r\n nameLike: InputMaybe;\r\n specialtyTeamId: InputMaybe;\r\n};\r\n\r\nexport type SpecialtyTeamQueries = {\r\n __typename: 'SpecialtyTeamQueries';\r\n all: SpecialtyTeamCollection;\r\n};\r\n\r\nexport type SpecialtyTeamQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type SpectialtyTeamMemberQueries = {\r\n __typename: 'SpectialtyTeamMemberQueries';\r\n all: SpecialtyTeamMemberCollection;\r\n};\r\n\r\nexport type SpectialtyTeamMemberQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type SplitUnitOriginAndPickupWaypoints = {\r\n tripId: Scalars['ID'];\r\n};\r\n\r\nexport type SplitUnitPostAndDropoffWaypoints = {\r\n tripId: Scalars['ID'];\r\n};\r\n\r\nexport enum StandbyActivationType {\r\n AutoLaunch = 'AutoLaunch',\r\n CustomerActivation = 'CustomerActivation',\r\n}\r\n\r\nexport type SubmitMedicalFacilityForApproval = {\r\n medicalFacilityId: Scalars['ID'];\r\n};\r\n\r\nexport type SubmitQuestionnaireResponse = {\r\n cardId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n currentReviewLevel: InputMaybe;\r\n id: Scalars['ID'];\r\n questionResponses: Array;\r\n questionnaireId: Scalars['ID'];\r\n status: QuestionnaireResponseStatus;\r\n};\r\n\r\nexport type SubmitSupportRequest = {\r\n supportRequestId: Scalars['ID'];\r\n};\r\n\r\nexport enum SummaryView {\r\n All = 'All',\r\n Card = 'Card',\r\n Unit = 'Unit',\r\n Vehicle = 'Vehicle',\r\n}\r\n\r\nexport enum SupplementalLegType {\r\n CompanyUnit = 'CompanyUnit',\r\n ExternalAgency = 'ExternalAgency',\r\n SisterCompanyUnit = 'SisterCompanyUnit',\r\n}\r\n\r\nexport type SupportRequest = Entity &\r\n Evented & {\r\n __typename: 'SupportRequest';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n content: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isEmailSent: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n personId: Scalars['ID'];\r\n subject: Maybe;\r\n supportRequestStatus: SupportRequestStatus;\r\n supportRequestType: SupportRequestType;\r\n };\r\n\r\nexport type SupportRequest_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type SupportRequestCollection = {\r\n __typename: 'SupportRequestCollection';\r\n items: Array;\r\n meta: SupportRequestCollectionMetadata;\r\n};\r\n\r\nexport type SupportRequestCollectionMetadata = CollectionMetadata & {\r\n __typename: 'SupportRequestCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type SupportRequestFilter = {\r\n subjectLike: InputMaybe;\r\n supportRequestId: InputMaybe;\r\n};\r\n\r\nexport type SupportRequestQueries = {\r\n __typename: 'SupportRequestQueries';\r\n all: SupportRequestCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type SupportRequestQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type SupportRequestQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum SupportRequestStatus {\r\n Created = 'Created',\r\n Submitted = 'Submitted',\r\n}\r\n\r\nexport enum SupportRequestType {\r\n Bug = 'Bug',\r\n Feature = 'Feature',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport type SwapUnitVehicles = {\r\n firstUnitId: Scalars['ID'];\r\n secondUnitId: Scalars['ID'];\r\n};\r\n\r\nexport type SwapWaypoint = {\r\n insertAfterWaypointId: Scalars['ID'];\r\n swapWaypointId: Scalars['ID'];\r\n tripId: Scalars['ID'];\r\n};\r\n\r\nexport type SystemTimer = Entity &\r\n Evented & {\r\n __typename: 'SystemTimer';\r\n _events: MessageEnvelopeCollection;\r\n commandName: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n description: Scalars['String'];\r\n hasRunCondition: Scalars['Boolean'];\r\n id: Scalars['ID'];\r\n isEnqueued: Scalars['Boolean'];\r\n lastRunDate: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n runIntervalInSeconds: Scalars['Int'];\r\n };\r\n\r\nexport type SystemTimer_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type SystemTimerCollection = {\r\n __typename: 'SystemTimerCollection';\r\n items: Array;\r\n meta: SystemTimerCollectionMetadata;\r\n};\r\n\r\nexport type SystemTimerCollectionMetadata = CollectionMetadata & {\r\n __typename: 'SystemTimerCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum SystemTimestampType {\r\n ArriveBase = 'ArriveBase',\r\n ArriveBedsideReceiving = 'ArriveBedsideReceiving',\r\n ArriveDropoff = 'ArriveDropoff',\r\n ArriveDropoffLzViaGround = 'ArriveDropoffLzViaGround',\r\n ArrivePatient = 'ArrivePatient',\r\n ArrivePickup = 'ArrivePickup',\r\n ArrivePickupLzViaGround = 'ArrivePickupLzViaGround',\r\n ArriveReceivingViaGround = 'ArriveReceivingViaGround',\r\n ArriveSendingViaGround = 'ArriveSendingViaGround',\r\n ArriveWaypoint = 'ArriveWaypoint',\r\n AssignmentStarted = 'AssignmentStarted',\r\n CardClosed = 'CardClosed',\r\n ConfirmedDropoffGround = 'ConfirmedDropoffGround',\r\n ConfirmedPickupGround = 'ConfirmedPickupGround',\r\n CrewNotificationReceived = 'CrewNotificationReceived',\r\n CrewNotified = 'CrewNotified',\r\n Custom = 'Custom',\r\n DepartBase = 'DepartBase',\r\n DepartBedsideReceiving = 'DepartBedsideReceiving',\r\n DepartDropoff = 'DepartDropoff',\r\n DepartDropoffLzViaGround = 'DepartDropoffLzViaGround',\r\n DepartPickup = 'DepartPickup',\r\n DepartPickupLzViaGround = 'DepartPickupLzViaGround',\r\n DepartReceivingViaGround = 'DepartReceivingViaGround',\r\n DepartSendingViaGround = 'DepartSendingViaGround',\r\n DepartWaypoint = 'DepartWaypoint',\r\n DepartWithPatient = 'DepartWithPatient',\r\n EmsReport = 'EmsReport',\r\n EnRouteToPatient = 'EnRouteToPatient',\r\n EnRouteToPickup = 'EnRouteToPickup',\r\n EtaProvided = 'EtaProvided',\r\n ExternalActionCancellationRequested = 'ExternalActionCancellationRequested',\r\n ExternalActionRemoveStandby = 'ExternalActionRemoveStandby',\r\n ExternalRequestDisregarded = 'ExternalRequestDisregarded',\r\n FboConfirmed = 'FboConfirmed',\r\n InitialDeparture = 'InitialDeparture',\r\n ManifestConfirmed = 'ManifestConfirmed',\r\n MedicalControlContactAttempted = 'MedicalControlContactAttempted',\r\n OperationCancelled = 'OperationCancelled',\r\n OperationCompleted = 'OperationCompleted',\r\n OverheadDropoff = 'OverheadDropoff',\r\n OverheadPickup = 'OverheadPickup',\r\n PaipEvent = 'PaipEvent',\r\n PatientInfoMessageSent = 'PatientInfoMessageSent',\r\n PlacedOnStandby = 'PlacedOnStandby',\r\n ReceivingFacilityRequestAccepted = 'ReceivingFacilityRequestAccepted',\r\n ReceivingFacilityRequestCancelled = 'ReceivingFacilityRequestCancelled',\r\n ReceivingFacilityRequestDenied = 'ReceivingFacilityRequestDenied',\r\n ReceivingFacilityRequestDiverted = 'ReceivingFacilityRequestDiverted',\r\n ReceivingFacilityRequestReferred = 'ReceivingFacilityRequestReferred',\r\n ReferRequest = 'ReferRequest',\r\n RequestCancelled = 'RequestCancelled',\r\n RequestReactivated = 'RequestReactivated',\r\n RequestReceived = 'RequestReceived',\r\n ResendToDW = 'ResendToDW',\r\n SentToImageTrend = 'SentToImageTrend',\r\n StandbyRemoved = 'StandbyRemoved',\r\n TransportCheckInitiated = 'TransportCheckInitiated',\r\n UnitAborted = 'UnitAborted',\r\n UnitActivated = 'UnitActivated',\r\n UnitAssigned = 'UnitAssigned',\r\n UnitOffered = 'UnitOffered',\r\n WebOrderAcknowledged = 'WebOrderAcknowledged',\r\n}\r\n\r\nexport type TakeUnitOutOfService = {\r\n primaryOosEventId: Scalars['ID'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type TcsEntity =\r\n | AccessibleItem\r\n | ActivationRule\r\n | ActiveAlert\r\n | ActiveCardUnitOffering\r\n | ActiveTimeline\r\n | Agency\r\n | AgencyLocation\r\n | Airport\r\n | Alert\r\n | ApplicationNotification\r\n | ArchiveLog\r\n | AssignmentDelayedReason\r\n | Base\r\n | BaseControlZone\r\n | BaseMedicalControlContact\r\n | BaseMedicalControlContactState\r\n | CancellationCategory\r\n | CancellationReason\r\n | CancellationSecondaryReason\r\n | Capability\r\n | Card\r\n | CardLink\r\n | CardNote\r\n | CardNoteArchive\r\n | CardReOpenReason\r\n | CardSummary\r\n | CommunicationCenter\r\n | CommunicationCenterTransportOfferOption\r\n | Company\r\n | CompleteFlightInstance\r\n | ConfigurationSetting\r\n | ControlZone\r\n | DeclineCategory\r\n | DeclineReason\r\n | DeclineSecondaryReason\r\n | Department\r\n | DiversionReason\r\n | EntityCapability\r\n | EscortRequest\r\n | EstimatedDuration\r\n | Eta\r\n | ExternalAction\r\n | ExternalActionType\r\n | ExternalReference\r\n | ExternalSystemUnit\r\n | FacilityNonAcceptanceReason\r\n | Fbo\r\n | FirewallRule\r\n | FlightFollowingReport\r\n | FuelTank\r\n | LandingZoneOutOfServiceReason\r\n | Location\r\n | LocationHazard\r\n | LocationHazardAttachment\r\n | ManifestEntry\r\n | MedicalControlContactLogEntry\r\n | MedicalFacility\r\n | MedicalFacilityContact\r\n | MedicalFacilityPhysician\r\n | MedicalFacilityUnit\r\n | MedicalUnit\r\n | MessageStatusUpdate\r\n | NextDueType\r\n | NonReferralReason\r\n | Notification\r\n | NotificationGroup\r\n | NotificationGroupMember\r\n | NotificationRecipient\r\n | NotificationSubscription\r\n | NotificationTemplate\r\n | OemActivity\r\n | OemAsset\r\n | OemPlan\r\n | OemPlanChangeRequest\r\n | OfferAlgorithm\r\n | Operation\r\n | OutOfServiceEvent\r\n | OutOfServiceEventNote\r\n | OutOfServiceReason\r\n | OutOfServiceSecondaryReason\r\n | PassdownLog\r\n | PassdownLogAcknowledgement\r\n | Patient\r\n | Person\r\n | Physician\r\n | PositionReport\r\n | PositionReportAlert\r\n | PositionReportArchive\r\n | Program\r\n | ProgramBase\r\n | Question\r\n | QuestionChoice\r\n | Questionnaire\r\n | QuestionnaireQuestionResponse\r\n | QuestionnaireQuestionResponseNote\r\n | QuestionnaireResponse\r\n | QuestionnaireSection\r\n | QuestionnaireSectionQuestion\r\n | RamcoVehicleConfiguration\r\n | ReceivingFacilityRequest\r\n | Region\r\n | RegionBase\r\n | RegionGroup\r\n | RendezvousRequest\r\n | Request\r\n | RequestLocation\r\n | RequestPatient\r\n | Requester\r\n | RequesterReferralReason\r\n | RequesterRole\r\n | SpecialtyTeam\r\n | SpecialtyTeamMember\r\n | SupportRequest\r\n | SystemTimer\r\n | Timeline\r\n | TimelineItem\r\n | Timestamp\r\n | TimestampType\r\n | Timezone\r\n | TrackedMessage\r\n | TransferCenter\r\n | TransferReason\r\n | TransportOffer\r\n | TransportOfferOption\r\n | TransportReason\r\n | Trip\r\n | TripLeg\r\n | TripPassenger\r\n | TrmUser\r\n | TrmUserAgency\r\n | TrmUserMedicalFacility\r\n | TrmUserProgram\r\n | Unit\r\n | UnitActivationRule\r\n | UnitEMSystemMapping\r\n | UnitNote\r\n | UnitPosition\r\n | UnitShift\r\n | UnitStatusHistoryEntry\r\n | UnitSummary\r\n | Vehicle\r\n | VehicleConfigurationClass\r\n | VehicleControlZone\r\n | VehicleDisposition\r\n | VehicleMaintenance\r\n | VehicleMake\r\n | VehicleModel\r\n | VehiclePositionSummary\r\n | VehicleStateInspection\r\n | VehicleSummary\r\n | Waypoint\r\n | WebOrderLog;\r\n\r\nexport enum TcsEntityType {\r\n AccessibleItem = 'AccessibleItem',\r\n ActivationRule = 'ActivationRule',\r\n ActiveAlert = 'ActiveAlert',\r\n ActiveCardUnitOffering = 'ActiveCardUnitOffering',\r\n ActiveTimeline = 'ActiveTimeline',\r\n Agency = 'Agency',\r\n AgencyLocation = 'AgencyLocation',\r\n Airport = 'Airport',\r\n Alert = 'Alert',\r\n ApplicationNotification = 'ApplicationNotification',\r\n ArchiveLog = 'ArchiveLog',\r\n AssignmentDelayedReason = 'AssignmentDelayedReason',\r\n Base = 'Base',\r\n BaseControlZone = 'BaseControlZone',\r\n BaseMedicalControlContact = 'BaseMedicalControlContact',\r\n BaseMedicalControlContactState = 'BaseMedicalControlContactState',\r\n CancellationCategory = 'CancellationCategory',\r\n CancellationReason = 'CancellationReason',\r\n CancellationSecondaryReason = 'CancellationSecondaryReason',\r\n Capability = 'Capability',\r\n Card = 'Card',\r\n CardLink = 'CardLink',\r\n CardNote = 'CardNote',\r\n CardNoteArchive = 'CardNoteArchive',\r\n CardReOpenReason = 'CardReOpenReason',\r\n CardSummary = 'CardSummary',\r\n CommunicationCenter = 'CommunicationCenter',\r\n CommunicationCenterTransportOfferOption = 'CommunicationCenterTransportOfferOption',\r\n Company = 'Company',\r\n CompleteFlightInstance = 'CompleteFlightInstance',\r\n ConfigurationSetting = 'ConfigurationSetting',\r\n ControlZone = 'ControlZone',\r\n DeclineCategory = 'DeclineCategory',\r\n DeclineReason = 'DeclineReason',\r\n DeclineSecondaryReason = 'DeclineSecondaryReason',\r\n Department = 'Department',\r\n DiversionReason = 'DiversionReason',\r\n EntityCapability = 'EntityCapability',\r\n EscortRequest = 'EscortRequest',\r\n EstimatedDuration = 'EstimatedDuration',\r\n Eta = 'Eta',\r\n ExternalAction = 'ExternalAction',\r\n ExternalActionType = 'ExternalActionType',\r\n ExternalReference = 'ExternalReference',\r\n ExternalSystemUnit = 'ExternalSystemUnit',\r\n FacilityNonAcceptanceReason = 'FacilityNonAcceptanceReason',\r\n Fbo = 'Fbo',\r\n FirewallRule = 'FirewallRule',\r\n FlightFollowingReport = 'FlightFollowingReport',\r\n FuelTank = 'FuelTank',\r\n LandingZoneOutOfServiceReason = 'LandingZoneOutOfServiceReason',\r\n Location = 'Location',\r\n LocationHazard = 'LocationHazard',\r\n LocationHazardAttachment = 'LocationHazardAttachment',\r\n ManifestEntry = 'ManifestEntry',\r\n MedicalControlContactLogEntry = 'MedicalControlContactLogEntry',\r\n MedicalFacility = 'MedicalFacility',\r\n MedicalFacilityContact = 'MedicalFacilityContact',\r\n MedicalFacilityPhysician = 'MedicalFacilityPhysician',\r\n MedicalFacilityUnit = 'MedicalFacilityUnit',\r\n MedicalUnit = 'MedicalUnit',\r\n MessageStatusUpdate = 'MessageStatusUpdate',\r\n NextDueType = 'NextDueType',\r\n NonReferralReason = 'NonReferralReason',\r\n Notification = 'Notification',\r\n NotificationGroup = 'NotificationGroup',\r\n NotificationGroupMember = 'NotificationGroupMember',\r\n NotificationRecipient = 'NotificationRecipient',\r\n NotificationSubscription = 'NotificationSubscription',\r\n NotificationTemplate = 'NotificationTemplate',\r\n OemActivity = 'OemActivity',\r\n OemAsset = 'OemAsset',\r\n OemPlan = 'OemPlan',\r\n OemPlanChangeRequest = 'OemPlanChangeRequest',\r\n OfferAlgorithm = 'OfferAlgorithm',\r\n Operation = 'Operation',\r\n OutOfServiceEvent = 'OutOfServiceEvent',\r\n OutOfServiceEventNote = 'OutOfServiceEventNote',\r\n OutOfServiceReason = 'OutOfServiceReason',\r\n OutOfServiceSecondaryReason = 'OutOfServiceSecondaryReason',\r\n PassdownLog = 'PassdownLog',\r\n PassdownLogAcknowledgement = 'PassdownLogAcknowledgement',\r\n Patient = 'Patient',\r\n Person = 'Person',\r\n Physician = 'Physician',\r\n PositionReport = 'PositionReport',\r\n PositionReportAlert = 'PositionReportAlert',\r\n PositionReportArchive = 'PositionReportArchive',\r\n Program = 'Program',\r\n ProgramBase = 'ProgramBase',\r\n Question = 'Question',\r\n QuestionChoice = 'QuestionChoice',\r\n Questionnaire = 'Questionnaire',\r\n QuestionnaireQuestionResponse = 'QuestionnaireQuestionResponse',\r\n QuestionnaireQuestionResponseNote = 'QuestionnaireQuestionResponseNote',\r\n QuestionnaireResponse = 'QuestionnaireResponse',\r\n QuestionnaireSection = 'QuestionnaireSection',\r\n QuestionnaireSectionQuestion = 'QuestionnaireSectionQuestion',\r\n RamcoVehicleConfiguration = 'RamcoVehicleConfiguration',\r\n ReceivingFacilityRequest = 'ReceivingFacilityRequest',\r\n Region = 'Region',\r\n RegionBase = 'RegionBase',\r\n RegionGroup = 'RegionGroup',\r\n RendezvousRequest = 'RendezvousRequest',\r\n Request = 'Request',\r\n RequestLocation = 'RequestLocation',\r\n RequestPatient = 'RequestPatient',\r\n Requester = 'Requester',\r\n RequesterReferralReason = 'RequesterReferralReason',\r\n RequesterRole = 'RequesterRole',\r\n SpecialtyTeam = 'SpecialtyTeam',\r\n SpecialtyTeamMember = 'SpecialtyTeamMember',\r\n SupportRequest = 'SupportRequest',\r\n SystemTimer = 'SystemTimer',\r\n Timeline = 'Timeline',\r\n TimelineItem = 'TimelineItem',\r\n Timestamp = 'Timestamp',\r\n TimestampType = 'TimestampType',\r\n Timezone = 'Timezone',\r\n TrackedMessage = 'TrackedMessage',\r\n TransferCenter = 'TransferCenter',\r\n TransferReason = 'TransferReason',\r\n TransportOffer = 'TransportOffer',\r\n TransportOfferOption = 'TransportOfferOption',\r\n TransportReason = 'TransportReason',\r\n Trip = 'Trip',\r\n TripLeg = 'TripLeg',\r\n TripPassenger = 'TripPassenger',\r\n TrmUser = 'TrmUser',\r\n TrmUserAgency = 'TrmUserAgency',\r\n TrmUserMedicalFacility = 'TrmUserMedicalFacility',\r\n TrmUserProgram = 'TrmUserProgram',\r\n Unit = 'Unit',\r\n UnitActivationRule = 'UnitActivationRule',\r\n UnitEMSystemMapping = 'UnitEMSystemMapping',\r\n UnitNote = 'UnitNote',\r\n UnitPosition = 'UnitPosition',\r\n UnitShift = 'UnitShift',\r\n UnitStatusHistoryEntry = 'UnitStatusHistoryEntry',\r\n UnitSummary = 'UnitSummary',\r\n Vehicle = 'Vehicle',\r\n VehicleConfigurationClass = 'VehicleConfigurationClass',\r\n VehicleControlZone = 'VehicleControlZone',\r\n VehicleDisposition = 'VehicleDisposition',\r\n VehicleMaintenance = 'VehicleMaintenance',\r\n VehicleMake = 'VehicleMake',\r\n VehicleModel = 'VehicleModel',\r\n VehiclePositionSummary = 'VehiclePositionSummary',\r\n VehicleStateInspection = 'VehicleStateInspection',\r\n VehicleSummary = 'VehicleSummary',\r\n Waypoint = 'Waypoint',\r\n WebOrderLog = 'WebOrderLog',\r\n}\r\n\r\nexport enum TcsOperationsEntityType {\r\n ActivationRule = 'ActivationRule',\r\n ActiveAlert = 'ActiveAlert',\r\n ActiveCardUnitOffering = 'ActiveCardUnitOffering',\r\n ActiveTimeline = 'ActiveTimeline',\r\n Alert = 'Alert',\r\n ApplicationNotification = 'ApplicationNotification',\r\n AssignmentDelayedReason = 'AssignmentDelayedReason',\r\n CancellationCategory = 'CancellationCategory',\r\n CancellationReason = 'CancellationReason',\r\n CancellationSecondaryReason = 'CancellationSecondaryReason',\r\n Card = 'Card',\r\n CardLink = 'CardLink',\r\n CardNote = 'CardNote',\r\n CardNoteArchive = 'CardNoteArchive',\r\n CardReOpenReason = 'CardReOpenReason',\r\n CardSummary = 'CardSummary',\r\n ConfigurationSetting = 'ConfigurationSetting',\r\n DeclineCategory = 'DeclineCategory',\r\n DeclineReason = 'DeclineReason',\r\n DeclineSecondaryReason = 'DeclineSecondaryReason',\r\n DiversionReason = 'DiversionReason',\r\n EscortRequest = 'EscortRequest',\r\n EstimatedDuration = 'EstimatedDuration',\r\n Eta = 'Eta',\r\n ExternalAction = 'ExternalAction',\r\n ExternalActionType = 'ExternalActionType',\r\n ExternalSystemUnit = 'ExternalSystemUnit',\r\n FacilityNonAcceptanceReason = 'FacilityNonAcceptanceReason',\r\n FirewallRule = 'FirewallRule',\r\n FlightFollowingReport = 'FlightFollowingReport',\r\n LandingZoneOutOfServiceReason = 'LandingZoneOutOfServiceReason',\r\n LocationHazard = 'LocationHazard',\r\n LocationHazardAttachment = 'LocationHazardAttachment',\r\n ManifestEntry = 'ManifestEntry',\r\n MedicalControlContactLogEntry = 'MedicalControlContactLogEntry',\r\n MessageStatusUpdate = 'MessageStatusUpdate',\r\n NextDueType = 'NextDueType',\r\n NonReferralReason = 'NonReferralReason',\r\n Notification = 'Notification',\r\n NotificationGroup = 'NotificationGroup',\r\n NotificationGroupMember = 'NotificationGroupMember',\r\n NotificationRecipient = 'NotificationRecipient',\r\n NotificationSubscription = 'NotificationSubscription',\r\n NotificationTemplate = 'NotificationTemplate',\r\n OemActivity = 'OemActivity',\r\n OemAsset = 'OemAsset',\r\n OemPlan = 'OemPlan',\r\n OemPlanChangeRequest = 'OemPlanChangeRequest',\r\n OfferAlgorithm = 'OfferAlgorithm',\r\n Operation = 'Operation',\r\n OutOfServiceEvent = 'OutOfServiceEvent',\r\n OutOfServiceEventNote = 'OutOfServiceEventNote',\r\n OutOfServiceReason = 'OutOfServiceReason',\r\n OutOfServiceSecondaryReason = 'OutOfServiceSecondaryReason',\r\n PassdownLog = 'PassdownLog',\r\n PassdownLogAcknowledgement = 'PassdownLogAcknowledgement',\r\n Patient = 'Patient',\r\n PositionReport = 'PositionReport',\r\n PositionReportAlert = 'PositionReportAlert',\r\n PositionReportArchive = 'PositionReportArchive',\r\n Question = 'Question',\r\n QuestionChoice = 'QuestionChoice',\r\n Questionnaire = 'Questionnaire',\r\n QuestionnaireQuestionResponse = 'QuestionnaireQuestionResponse',\r\n QuestionnaireQuestionResponseNote = 'QuestionnaireQuestionResponseNote',\r\n QuestionnaireResponse = 'QuestionnaireResponse',\r\n QuestionnaireSection = 'QuestionnaireSection',\r\n QuestionnaireSectionQuestion = 'QuestionnaireSectionQuestion',\r\n ReceivingFacilityRequest = 'ReceivingFacilityRequest',\r\n RendezvousRequest = 'RendezvousRequest',\r\n Request = 'Request',\r\n RequestLocation = 'RequestLocation',\r\n RequestPatient = 'RequestPatient',\r\n Requester = 'Requester',\r\n RequesterReferralReason = 'RequesterReferralReason',\r\n RequesterRole = 'RequesterRole',\r\n SystemTimer = 'SystemTimer',\r\n Timeline = 'Timeline',\r\n TimelineItem = 'TimelineItem',\r\n Timestamp = 'Timestamp',\r\n TimestampType = 'TimestampType',\r\n TrackedMessage = 'TrackedMessage',\r\n TransferReason = 'TransferReason',\r\n TransportOffer = 'TransportOffer',\r\n TransportOfferOption = 'TransportOfferOption',\r\n TransportReason = 'TransportReason',\r\n Trip = 'Trip',\r\n TripLeg = 'TripLeg',\r\n TripPassenger = 'TripPassenger',\r\n Unit = 'Unit',\r\n UnitActivationRule = 'UnitActivationRule',\r\n UnitEMSystemMapping = 'UnitEMSystemMapping',\r\n UnitNote = 'UnitNote',\r\n UnitPosition = 'UnitPosition',\r\n UnitShift = 'UnitShift',\r\n UnitStatusHistoryEntry = 'UnitStatusHistoryEntry',\r\n UnitSummary = 'UnitSummary',\r\n VehicleDisposition = 'VehicleDisposition',\r\n VehiclePositionSummary = 'VehiclePositionSummary',\r\n VehicleSummary = 'VehicleSummary',\r\n Waypoint = 'Waypoint',\r\n WebOrderLog = 'WebOrderLog',\r\n}\r\n\r\nexport enum TcsOrganizationEntityType {\r\n AccessibleItem = 'AccessibleItem',\r\n Agency = 'Agency',\r\n AgencyLocation = 'AgencyLocation',\r\n Airport = 'Airport',\r\n ArchiveLog = 'ArchiveLog',\r\n Base = 'Base',\r\n BaseControlZone = 'BaseControlZone',\r\n BaseMedicalControlContact = 'BaseMedicalControlContact',\r\n BaseMedicalControlContactState = 'BaseMedicalControlContactState',\r\n Capability = 'Capability',\r\n CommunicationCenter = 'CommunicationCenter',\r\n CommunicationCenterTransportOfferOption = 'CommunicationCenterTransportOfferOption',\r\n Company = 'Company',\r\n CompleteFlightInstance = 'CompleteFlightInstance',\r\n ControlZone = 'ControlZone',\r\n Department = 'Department',\r\n EntityCapability = 'EntityCapability',\r\n ExternalReference = 'ExternalReference',\r\n Fbo = 'Fbo',\r\n FuelTank = 'FuelTank',\r\n Location = 'Location',\r\n MedicalFacility = 'MedicalFacility',\r\n MedicalFacilityContact = 'MedicalFacilityContact',\r\n MedicalFacilityPhysician = 'MedicalFacilityPhysician',\r\n MedicalFacilityUnit = 'MedicalFacilityUnit',\r\n MedicalUnit = 'MedicalUnit',\r\n Person = 'Person',\r\n Physician = 'Physician',\r\n Program = 'Program',\r\n ProgramBase = 'ProgramBase',\r\n RamcoVehicleConfiguration = 'RamcoVehicleConfiguration',\r\n Region = 'Region',\r\n RegionBase = 'RegionBase',\r\n RegionGroup = 'RegionGroup',\r\n SpecialtyTeam = 'SpecialtyTeam',\r\n SpecialtyTeamMember = 'SpecialtyTeamMember',\r\n SupportRequest = 'SupportRequest',\r\n Timezone = 'Timezone',\r\n TransferCenter = 'TransferCenter',\r\n TrmUser = 'TrmUser',\r\n TrmUserAgency = 'TrmUserAgency',\r\n TrmUserMedicalFacility = 'TrmUserMedicalFacility',\r\n TrmUserProgram = 'TrmUserProgram',\r\n Vehicle = 'Vehicle',\r\n VehicleConfigurationClass = 'VehicleConfigurationClass',\r\n VehicleControlZone = 'VehicleControlZone',\r\n VehicleMaintenance = 'VehicleMaintenance',\r\n VehicleMake = 'VehicleMake',\r\n VehicleModel = 'VehicleModel',\r\n VehicleStateInspection = 'VehicleStateInspection',\r\n}\r\n\r\nexport type TcsRealtimeTracking = {\r\n __typename: 'TcsRealtimeTracking';\r\n tabDate: Maybe;\r\n tabId: Maybe;\r\n};\r\n\r\nexport type TcsRealtimeTrackingInput = {\r\n tabDate: InputMaybe;\r\n tabId: InputMaybe;\r\n};\r\n\r\nexport type TeleportUnit = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum TimeType {\r\n FullTime = 'FullTime',\r\n PartTime = 'PartTime',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport type Timeline = Entity &\r\n Evented & {\r\n __typename: 'Timeline';\r\n _events: MessageEnvelopeCollection;\r\n activationRule: Maybe;\r\n activationRuleId: Maybe;\r\n activeTimelines: Array;\r\n company: Maybe;\r\n companyId: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n items: Array;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n };\r\n\r\nexport type Timeline_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TimelineCollection = {\r\n __typename: 'TimelineCollection';\r\n items: Array;\r\n meta: TimelineCollectionMetadata;\r\n};\r\n\r\nexport type TimelineCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TimelineCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TimelineFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type TimelineItem = Entity &\r\n Evented & {\r\n __typename: 'TimelineItem';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n required: Scalars['Boolean'];\r\n sequence: Scalars['Int'];\r\n timeline: Timeline;\r\n timelineId: Scalars['ID'];\r\n timestampType: TimestampType;\r\n timestampTypeId: Scalars['ID'];\r\n };\r\n\r\nexport type TimelineItem_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TimelineItemCollection = {\r\n __typename: 'TimelineItemCollection';\r\n items: Array;\r\n meta: TimelineItemCollectionMetadata;\r\n};\r\n\r\nexport type TimelineItemCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TimelineItemCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TimelineItemFilter = {\r\n cardId: InputMaybe;\r\n};\r\n\r\nexport type TimelineItemQueries = {\r\n __typename: 'TimelineItemQueries';\r\n all: TimelineItemCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type TimelineItemQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TimelineItemQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type TimelineQueries = {\r\n __typename: 'TimelineQueries';\r\n all: TimelineCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type TimelineQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TimelineQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type Timestamp = Entity &\r\n Evented & {\r\n __typename: 'Timestamp';\r\n _events: MessageEnvelopeCollection;\r\n card: Card;\r\n cardId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n medicalControlContactLogEntries: Array;\r\n note: Maybe;\r\n operation: Maybe;\r\n operationId: Maybe;\r\n personsInvolved: Maybe;\r\n request: Maybe;\r\n requestId: Maybe;\r\n time: Scalars['DateTime'];\r\n type: TimestampType;\r\n typeId: Scalars['ID'];\r\n user: Maybe;\r\n userId: Maybe;\r\n };\r\n\r\nexport type Timestamp_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TimestampCollection = {\r\n __typename: 'TimestampCollection';\r\n items: Array;\r\n meta: TimestampCollectionMetadata;\r\n};\r\n\r\nexport type TimestampCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TimestampCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TimestampQueries = {\r\n __typename: 'TimestampQueries';\r\n byCardId: TimestampCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type TimestampQueriesbyCardIdArgs = {\r\n cardId: Scalars['ID'];\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TimestampQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type TimestampType = Entity &\r\n Evented & {\r\n __typename: 'TimestampType';\r\n _events: MessageEnvelopeCollection;\r\n companies: Maybe>>;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n description: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n order: Scalars['Int'];\r\n systemTimestampType: Maybe;\r\n timelines: Array;\r\n timestamps: Array;\r\n };\r\n\r\nexport type TimestampType_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TimestampTypeCollection = {\r\n __typename: 'TimestampTypeCollection';\r\n items: Array;\r\n meta: TimestampTypeCollectionMetadata;\r\n};\r\n\r\nexport type TimestampTypeCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TimestampTypeCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TimestampTypeFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type TimestampTypeQueries = {\r\n __typename: 'TimestampTypeQueries';\r\n all: TimestampTypeCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type TimestampTypeQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TimestampTypeQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type TimestampsByCardFilter = {\r\n companyId: InputMaybe;\r\n distinctFields: InputMaybe>>;\r\n includeDistinct: InputMaybe;\r\n typeId: InputMaybe;\r\n userId: InputMaybe;\r\n};\r\n\r\nexport type Timezone = Entity &\r\n Evented & {\r\n __typename: 'Timezone';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n code: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isDst: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n utcOffset: Scalars['Int'];\r\n };\r\n\r\nexport type Timezone_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TimezoneCollection = {\r\n __typename: 'TimezoneCollection';\r\n items: Array;\r\n meta: TimezoneCollectionMetadata;\r\n};\r\n\r\nexport type TimezoneCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TimezoneCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TimezoneResponse = {\r\n __typename: 'TimezoneResponse';\r\n code: Scalars['String'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type TrackedMessage = Entity &\r\n Evented & {\r\n __typename: 'TrackedMessage';\r\n _events: MessageEnvelopeCollection;\r\n body: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n doNotDivert: Maybe;\r\n fromAddress: Maybe;\r\n fromName: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n medium: Maybe;\r\n messageStatusUpdates: Array;\r\n recipientAddress: Scalars['String'];\r\n recipientName: Maybe;\r\n recipients: Maybe>>;\r\n referenceNumber: Maybe;\r\n status: MessageStatus;\r\n subject: Maybe;\r\n vendorId: Maybe;\r\n vendorMessageId: Maybe;\r\n };\r\n\r\nexport type TrackedMessage_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TrackedMessageCollection = {\r\n __typename: 'TrackedMessageCollection';\r\n items: Array;\r\n meta: TrackedMessageCollectionMetadata;\r\n};\r\n\r\nexport type TrackedMessageCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TrackedMessageCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TransferCenter = Entity &\r\n Evented & {\r\n __typename: 'TransferCenter';\r\n _events: MessageEnvelopeCollection;\r\n communicationCenter: CommunicationCenter;\r\n communicationCenterId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n description: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n requesters: Maybe>>;\r\n };\r\n\r\nexport type TransferCenter_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TransferCenterCollection = {\r\n __typename: 'TransferCenterCollection';\r\n items: Array;\r\n meta: TransferCenterCollectionMetadata;\r\n};\r\n\r\nexport type TransferCenterCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TransferCenterCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TransferCenterFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type TransferCenterQueries = {\r\n __typename: 'TransferCenterQueries';\r\n all: TransferCenterCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type TransferCenterQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TransferCenterQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type TransferReason = Entity &\r\n Evented & {\r\n __typename: 'TransferReason';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n requests: Maybe>>;\r\n };\r\n\r\nexport type TransferReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TransferReasonCollection = {\r\n __typename: 'TransferReasonCollection';\r\n items: Array;\r\n meta: TransferReasonCollectionMetadata;\r\n};\r\n\r\nexport type TransferReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TransferReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TransferReasonFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type TransferReasonQueries = {\r\n __typename: 'TransferReasonQueries';\r\n all: TransferReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type TransferReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TransferReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type TransportOffer = Entity &\r\n Evented & {\r\n __typename: 'TransportOffer';\r\n _events: MessageEnvelopeCollection;\r\n agencyLocation: Maybe;\r\n agencyLocationId: Maybe;\r\n base: Maybe;\r\n baseId: Maybe;\r\n bearingInDegrees: Maybe;\r\n cancellationReason: Maybe;\r\n cancellationReasonId: Maybe;\r\n cancellationReasonNotes: Maybe;\r\n cancellationSecondaryReason: Maybe;\r\n cancellationSecondaryReasonId: Maybe;\r\n companyId: Scalars['ID'];\r\n crewNotified: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n declineReason: Maybe;\r\n declineReasonId: Maybe;\r\n declineSecondaryReason: Maybe;\r\n declineSecondaryReasonId: Maybe;\r\n distanceInMiles: Maybe;\r\n estimatedDepartureTimeInMinutes: Maybe;\r\n estimatedTimeEnRouteInMinutes: Maybe;\r\n homeBaseDistanceInMiles: Maybe;\r\n id: Scalars['ID'];\r\n isInternalAgency: Scalars['Boolean'];\r\n isOnDelay: Scalars['Boolean'];\r\n isOneCallAgreement: Scalars['Boolean'];\r\n isReferral: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n nonReferralReason: Maybe;\r\n nonReferralReasonId: Maybe;\r\n nonReferralReasonNotes: Maybe;\r\n notes: Maybe;\r\n notificationAcknowledged: Maybe;\r\n offerTime: Maybe;\r\n onBaseETAInMinutes: Maybe;\r\n outOfServiceEvent: Maybe;\r\n outOfServiceEventId: Maybe;\r\n patientOriginatesAtUnit: Maybe;\r\n preferredRank: Maybe;\r\n rank: Scalars['Int'];\r\n request: Request;\r\n requestId: Scalars['ID'];\r\n response: TransportOfferResponse;\r\n responseReceived: Maybe;\r\n specialtyTeamETEInMinutes: Maybe;\r\n specialtyTeamETLOInMinutes: Maybe;\r\n status: TransportOfferStatus;\r\n transportCheckInitiated: Maybe;\r\n unit: Maybe;\r\n unitDescription: Maybe;\r\n unitId: Maybe;\r\n vehicle: Maybe;\r\n vehicleCoordinates: Maybe;\r\n vehicleId: Maybe;\r\n vehicleType: Maybe;\r\n wasBulkSkip: Scalars['Boolean'];\r\n };\r\n\r\nexport type TransportOffer_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport enum TransportOfferAlgorithm {\r\n ShortestDistance = 'ShortestDistance',\r\n ShortestEta = 'ShortestEta',\r\n}\r\n\r\nexport type TransportOfferCollection = {\r\n __typename: 'TransportOfferCollection';\r\n items: Array;\r\n meta: TransportOfferCollectionMetadata;\r\n};\r\n\r\nexport type TransportOfferCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TransportOfferCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TransportOfferOption = Entity &\r\n Evented & {\r\n __typename: 'TransportOfferOption';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n includeAbortedUnit: Scalars['Boolean'];\r\n includeCompetitors: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n minimumFlightRule: Maybe;\r\n request: Request;\r\n requestId: Scalars['ID'];\r\n requestedVehicleType: Maybe;\r\n requiredCapabilities: Array;\r\n transportOfferAlgorithm: Maybe;\r\n type: TransportOfferOptionType;\r\n };\r\n\r\nexport type TransportOfferOption_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TransportOfferOptionCollection = {\r\n __typename: 'TransportOfferOptionCollection';\r\n items: Array;\r\n meta: TransportOfferOptionCollectionMetadata;\r\n};\r\n\r\nexport type TransportOfferOptionCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TransportOfferOptionCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum TransportOfferOptionType {\r\n Applied = 'Applied',\r\n User = 'User',\r\n}\r\n\r\nexport enum TransportOfferResponse {\r\n Aborted = 'Aborted',\r\n Accepted = 'Accepted',\r\n Declined = 'Declined',\r\n Pending = 'Pending',\r\n}\r\n\r\nexport enum TransportOfferStatus {\r\n Cancelled = 'Cancelled',\r\n Candidate = 'Candidate',\r\n Offered = 'Offered',\r\n Responded = 'Responded',\r\n Skipped = 'Skipped',\r\n}\r\n\r\nexport type TransportReason = Entity &\r\n Evented & {\r\n __typename: 'TransportReason';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n operationType: Maybe;\r\n requests: Maybe>>;\r\n };\r\n\r\nexport type TransportReason_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport enum TransportReasonCategory {\r\n Endocrine = 'Endocrine',\r\n OB = 'OB',\r\n Surgery = 'Surgery',\r\n}\r\n\r\nexport type TransportReasonCollection = {\r\n __typename: 'TransportReasonCollection';\r\n items: Array;\r\n meta: TransportReasonCollectionMetadata;\r\n};\r\n\r\nexport type TransportReasonCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TransportReasonCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TransportReasonFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type TransportReasonQueries = {\r\n __typename: 'TransportReasonQueries';\r\n all: TransportReasonCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type TransportReasonQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TransportReasonQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type Trip = Entity &\r\n Evented & {\r\n __typename: 'Trip';\r\n _events: MessageEnvelopeCollection;\r\n agency: Maybe;\r\n agencyId: Maybe;\r\n agencyLocation: Maybe;\r\n agencyLocationId: Maybe;\r\n calculatedLoadedMiles: Maybe;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n estimatedDurations: Array;\r\n etas: Array;\r\n flightFollowingReports: Array;\r\n gpsLoadedMiles: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n legs: Array;\r\n operation: Operation;\r\n operationId: Scalars['ID'];\r\n passengers: Array;\r\n positionReports: Array;\r\n vehicle: Maybe;\r\n vehicleDispositions: Maybe>>;\r\n vehicleId: Maybe;\r\n };\r\n\r\nexport type Trip_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TripCollection = {\r\n __typename: 'TripCollection';\r\n items: Array;\r\n meta: TripCollectionMetadata;\r\n};\r\n\r\nexport type TripCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TripCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TripLeg = Entity &\r\n Evented & {\r\n __typename: 'TripLeg';\r\n _events: MessageEnvelopeCollection;\r\n arrivingNote: Maybe;\r\n arrivingOdometerReading: Maybe;\r\n calculatedEte: Maybe;\r\n calculatedEteId: Maybe;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n departingNote: Maybe;\r\n departingOdometerReading: Maybe;\r\n endingWaypoint: Maybe;\r\n endingWaypointId: Maybe;\r\n estimatedDistanceInMiles: Maybe;\r\n flightFollowingReports: Maybe>>;\r\n id: Scalars['ID'];\r\n isEmergent: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n manifestEntries: Array;\r\n officialEte: Maybe;\r\n officialEteId: Maybe;\r\n sequence: Scalars['Int'];\r\n startingWaypoint: Maybe;\r\n startingWaypointId: Maybe;\r\n status: TripLegStatus;\r\n trip: Trip;\r\n tripId: Scalars['ID'];\r\n vehicleDispositions: Maybe>>;\r\n };\r\n\r\nexport type TripLeg_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TripLegCollection = {\r\n __typename: 'TripLegCollection';\r\n items: Array;\r\n meta: TripLegCollectionMetadata;\r\n};\r\n\r\nexport type TripLegCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TripLegCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum TripLegStatus {\r\n Cancelled = 'Cancelled',\r\n Complete = 'Complete',\r\n EnRoute = 'EnRoute',\r\n Planned = 'Planned',\r\n}\r\n\r\nexport type TripPassenger = Entity &\r\n Evented & {\r\n __typename: 'TripPassenger';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n companyId: Scalars['ID'];\r\n crewMember: Maybe;\r\n crewMemberId: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n manifestEntries: Array;\r\n name: Scalars['String'];\r\n notificationAddress: Maybe;\r\n person: Maybe;\r\n personId: Maybe;\r\n positionName: Maybe;\r\n positionType: Maybe;\r\n trip: Trip;\r\n tripId: Scalars['ID'];\r\n type: PassengerType;\r\n weightInKg: Maybe;\r\n };\r\n\r\nexport type TripPassenger_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TripPassengerCollection = {\r\n __typename: 'TripPassengerCollection';\r\n items: Array;\r\n meta: TripPassengerCollectionMetadata;\r\n};\r\n\r\nexport type TripPassengerCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TripPassengerCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TrmUser = Entity &\r\n Evented & {\r\n __typename: 'TrmUser';\r\n _events: MessageEnvelopeCollection;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n emailAddress: Scalars['String'];\r\n firstName: Scalars['String'];\r\n id: Scalars['ID'];\r\n lastName: Scalars['String'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n person: Maybe;\r\n personId: Maybe;\r\n phoneNumber: Scalars['String'];\r\n trmUserAgencies: Array;\r\n trmUserMedicalFacilities: Array;\r\n trmUserPrograms: Array;\r\n userStatus: TrmUserStatus;\r\n };\r\n\r\nexport type TrmUser_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TrmUserAgency = Entity &\r\n Evented & {\r\n __typename: 'TrmUserAgency';\r\n _events: MessageEnvelopeCollection;\r\n agency: Agency;\r\n agencyId: Scalars['ID'];\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n trmUser: TrmUser;\r\n trmUserId: Scalars['ID'];\r\n };\r\n\r\nexport type TrmUserAgency_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TrmUserAgencyCollection = {\r\n __typename: 'TrmUserAgencyCollection';\r\n items: Array;\r\n meta: TrmUserAgencyCollectionMetadata;\r\n};\r\n\r\nexport type TrmUserAgencyCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TrmUserAgencyCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TrmUserCollection = {\r\n __typename: 'TrmUserCollection';\r\n items: Array;\r\n meta: TrmUserCollectionMetadata;\r\n};\r\n\r\nexport type TrmUserCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TrmUserCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TrmUserFilter = {\r\n agencyId: InputMaybe;\r\n companyId: Scalars['ID'];\r\n medicalfacilityId: InputMaybe;\r\n prefProgramId: InputMaybe;\r\n userStatus: InputMaybe;\r\n usernameLike: InputMaybe;\r\n};\r\n\r\nexport type TrmUserMedicalFacility = Entity &\r\n Evented & {\r\n __typename: 'TrmUserMedicalFacility';\r\n _events: MessageEnvelopeCollection;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n medicalFacility: MedicalFacility;\r\n medicalFacilityId: Scalars['ID'];\r\n trmUser: TrmUser;\r\n trmUserId: Scalars['ID'];\r\n };\r\n\r\nexport type TrmUserMedicalFacility_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TrmUserMedicalFacilityCollection = {\r\n __typename: 'TrmUserMedicalFacilityCollection';\r\n items: Array;\r\n meta: TrmUserMedicalFacilityCollectionMetadata;\r\n};\r\n\r\nexport type TrmUserMedicalFacilityCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TrmUserMedicalFacilityCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TrmUserProgram = Entity &\r\n Evented & {\r\n __typename: 'TrmUserProgram';\r\n _events: MessageEnvelopeCollection;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isPreferred: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n program: Program;\r\n programId: Scalars['ID'];\r\n trmUser: TrmUser;\r\n trmUserId: Scalars['ID'];\r\n };\r\n\r\nexport type TrmUserProgram_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type TrmUserProgramCollection = {\r\n __typename: 'TrmUserProgramCollection';\r\n items: Array;\r\n meta: TrmUserProgramCollectionMetadata;\r\n};\r\n\r\nexport type TrmUserProgramCollectionMetadata = CollectionMetadata & {\r\n __typename: 'TrmUserProgramCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type TrmUserQueries = {\r\n __typename: 'TrmUserQueries';\r\n all: TrmUserCollection;\r\n};\r\n\r\nexport type TrmUserQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport enum TrmUserStatus {\r\n Approved = 'Approved',\r\n Deactivated = 'Deactivated',\r\n Denied = 'Denied',\r\n Pending = 'Pending',\r\n Unverified = 'Unverified',\r\n}\r\n\r\nexport type UnDeleteCard = {\r\n cardId: Scalars['ID'];\r\n};\r\n\r\nexport type UndeleteExternalReference = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type UndeleteVehicle = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type UndoArriveVehicle = {\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type UndoDepartVehicle = {\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type UnhideUnit = {\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type UnhideVehicle = {\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type Unit = Entity &\r\n Evented & {\r\n __typename: 'Unit';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n activationRules: Maybe>>;\r\n activeCardUnitOfferings: Array;\r\n base: Base;\r\n baseId: Scalars['ID'];\r\n cardSummaries: Maybe>>;\r\n companyId: Scalars['ID'];\r\n completeFlightInstance: Maybe;\r\n completeFlightInstanceId: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n emSystemMappings: Array;\r\n emSystemResourceId: Maybe;\r\n etloInMinutes: Maybe;\r\n id: Scalars['ID'];\r\n integrations: Array;\r\n isAdministrative: Maybe;\r\n isEnabled: Scalars['Boolean'];\r\n isExternallyManaged: Scalars['Boolean'];\r\n isHidden: Maybe;\r\n isOnDelay: Scalars['Boolean'];\r\n isSpare: Scalars['Boolean'];\r\n isThirdPartyUnit: Maybe;\r\n lastPilotUpdateById: Maybe;\r\n lastPilotUpdateTime: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n maximumFlightRule: FlightRule;\r\n name: Scalars['String'];\r\n notes: Array;\r\n notificationGroups: Maybe>>;\r\n notificationSubscriptions: Array;\r\n oemAssets: Maybe>>;\r\n oemPlacardNumber: Maybe;\r\n onBaseETAInMinutes: Maybe;\r\n operations: Maybe>>;\r\n outOfServiceEvents: Maybe>>;\r\n parentUnit: Maybe;\r\n parentUnitId: Maybe;\r\n pilotNotes: Maybe;\r\n plannedAvailableNotes: Maybe;\r\n plannedAvailableTime: Maybe;\r\n positions: Array;\r\n primaryOutOfServiceEvent: Maybe;\r\n primaryOutOfServiceEventId: Maybe;\r\n region: Region;\r\n regionId: Scalars['ID'];\r\n requests: Maybe>>;\r\n shifts: Array;\r\n status: UnitStatus;\r\n statusHistoryEntries: Array;\r\n thirdPartyUnit: Maybe;\r\n transportOffers: Maybe>>;\r\n unitActivationRules: Array;\r\n vehicle: Maybe;\r\n vehicleId: Maybe;\r\n vehicleSummaries: Array;\r\n weatherStatus: WeatherStatus;\r\n };\r\n\r\nexport type Unit_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitActivationRule = Entity &\r\n Evented & {\r\n __typename: 'UnitActivationRule';\r\n _events: MessageEnvelopeCollection;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n maximumDistanceInMiles: Maybe;\r\n missionRoleTypes: Array;\r\n operationTypes: Array;\r\n unit: Unit;\r\n unitId: Scalars['ID'];\r\n };\r\n\r\nexport type UnitActivationRule_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitActivationRuleCollection = {\r\n __typename: 'UnitActivationRuleCollection';\r\n items: Array;\r\n meta: UnitActivationRuleCollectionMetadata;\r\n};\r\n\r\nexport type UnitActivationRuleCollectionMetadata = CollectionMetadata & {\r\n __typename: 'UnitActivationRuleCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type UnitActivationRuleFilter = {\r\n unitId: InputMaybe;\r\n};\r\n\r\nexport type UnitActivationRuleQueries = {\r\n __typename: 'UnitActivationRuleQueries';\r\n all: UnitActivationRuleCollection;\r\n byId: Maybe;\r\n byUnitId: Maybe;\r\n};\r\n\r\nexport type UnitActivationRuleQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitActivationRuleQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type UnitActivationRuleQueriesbyUnitIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type UnitCollection = {\r\n __typename: 'UnitCollection';\r\n items: Array;\r\n meta: UnitCollectionMetadata;\r\n};\r\n\r\nexport type UnitCollectionMetadata = CollectionMetadata & {\r\n __typename: 'UnitCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type UnitEMSystemMapping = Entity &\r\n Evented & {\r\n __typename: 'UnitEMSystemMapping';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n divisionName: Maybe;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n resourceId: Scalars['String'];\r\n sendGps: Scalars['Boolean'];\r\n unit: Unit;\r\n unitId: Scalars['ID'];\r\n };\r\n\r\nexport type UnitEMSystemMapping_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitEMSystemMappingCollection = {\r\n __typename: 'UnitEMSystemMappingCollection';\r\n items: Array;\r\n meta: UnitEMSystemMappingCollectionMetadata;\r\n};\r\n\r\nexport type UnitEMSystemMappingCollectionMetadata = CollectionMetadata & {\r\n __typename: 'UnitEMSystemMappingCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type UnitEMSystemMappingFilter = {\r\n nameLike: InputMaybe;\r\n unitId: InputMaybe;\r\n};\r\n\r\nexport type UnitEMSystemMappingQueries = {\r\n __typename: 'UnitEMSystemMappingQueries';\r\n all: UnitEMSystemMappingCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type UnitEMSystemMappingQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitEMSystemMappingQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type UnitFilter = {\r\n abbreviationLike: InputMaybe;\r\n allCompanies: InputMaybe;\r\n aviationCompanyId: InputMaybe;\r\n baseId: InputMaybe;\r\n companyId: InputMaybe;\r\n excludeDisabled: InputMaybe;\r\n includeHidden: InputMaybe;\r\n includeSpare: InputMaybe;\r\n nameLike: InputMaybe;\r\n nameOrAbbreviationLike: InputMaybe;\r\n regionId: InputMaybe;\r\n};\r\n\r\nexport type UnitNote = Entity &\r\n Evented & {\r\n __typename: 'UnitNote';\r\n _events: MessageEnvelopeCollection;\r\n author: Maybe;\r\n authorId: Maybe;\r\n companyId: Scalars['ID'];\r\n content: Scalars['String'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n noteCategory: Maybe;\r\n noteMetadataJson: Maybe;\r\n noteTime: Scalars['DateTime'];\r\n unit: Unit;\r\n unitId: Scalars['ID'];\r\n };\r\n\r\nexport type UnitNote_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitNoteCollection = {\r\n __typename: 'UnitNoteCollection';\r\n items: Array;\r\n meta: UnitNoteCollectionMetadata;\r\n};\r\n\r\nexport type UnitNoteCollectionMetadata = CollectionMetadata & {\r\n __typename: 'UnitNoteCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type UnitNoteFilter = {\r\n categoryLike: InputMaybe;\r\n contentLike: InputMaybe;\r\n noteTimeFrom: InputMaybe;\r\n unitId: Scalars['String'];\r\n};\r\n\r\nexport type UnitNoteQueries = {\r\n __typename: 'UnitNoteQueries';\r\n all: UnitNoteCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type UnitNoteQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitNoteQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type UnitNoteResult = {\r\n __typename: 'UnitNoteResult';\r\n authorId: Scalars['ID'];\r\n companyId: Maybe;\r\n content: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n noteTime: Maybe;\r\n unitId: Maybe;\r\n};\r\n\r\nexport type UnitNoteResultCollection = {\r\n __typename: 'UnitNoteResultCollection';\r\n items: Array;\r\n meta: UnitNoteResultCollectionMetadata;\r\n};\r\n\r\nexport type UnitNoteResultCollectionMetadata = CollectionMetadata & {\r\n __typename: 'UnitNoteResultCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type UnitPosition = Entity &\r\n Evented & {\r\n __typename: 'UnitPosition';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n firstName: Maybe;\r\n id: Scalars['ID'];\r\n isFlightCrew: Scalars['Boolean'];\r\n isNonEmployee: Scalars['Boolean'];\r\n lastName: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n notificationAddress: Maybe;\r\n teamMember: Maybe;\r\n teamMemberId: Maybe;\r\n trips: Maybe>>;\r\n type: UnitPositionType;\r\n unit: Unit;\r\n unitId: Scalars['ID'];\r\n };\r\n\r\nexport type UnitPosition_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitPositionCollection = {\r\n __typename: 'UnitPositionCollection';\r\n items: Array;\r\n meta: UnitPositionCollectionMetadata;\r\n};\r\n\r\nexport type UnitPositionCollectionMetadata = CollectionMetadata & {\r\n __typename: 'UnitPositionCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type UnitPositionFilter = {\r\n unitId: InputMaybe;\r\n};\r\n\r\nexport type UnitPositionQueries = {\r\n __typename: 'UnitPositionQueries';\r\n all: Array;\r\n};\r\n\r\nexport type UnitPositionQueriesallArgs = {\r\n filter: InputMaybe;\r\n};\r\n\r\nexport type UnitPositionSummary = {\r\n __typename: 'UnitPositionSummary';\r\n id: Scalars['ID'];\r\n isFlightCrew: Scalars['Boolean'];\r\n isNonCompliant: Scalars['Boolean'];\r\n isNonEmployee: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n nonComplianceReason: Maybe;\r\n notificationAddress: Maybe;\r\n teamMemberFirstName: Maybe;\r\n teamMemberId: Maybe;\r\n teamMemberLastName: Maybe;\r\n type: UnitPositionType;\r\n};\r\n\r\nexport type UnitPositionSummaryInput = {\r\n id: Scalars['ID'];\r\n isFlightCrew: Scalars['Boolean'];\r\n isNonCompliant: Scalars['Boolean'];\r\n isNonEmployee: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n nonComplianceReason: InputMaybe;\r\n notificationAddress: InputMaybe;\r\n teamMemberFirstName: InputMaybe;\r\n teamMemberId: InputMaybe;\r\n teamMemberLastName: InputMaybe;\r\n type: UnitPositionType;\r\n};\r\n\r\nexport enum UnitPositionType {\r\n Clinician = 'Clinician',\r\n ClinicianTrainee = 'ClinicianTrainee',\r\n CoPilot = 'CoPilot',\r\n Driver = 'Driver',\r\n Mechanic = 'Mechanic',\r\n Nurse = 'Nurse',\r\n Observer = 'Observer',\r\n Other = 'Other',\r\n Paramedic = 'Paramedic',\r\n Pilot = 'Pilot',\r\n PilotTrainee = 'PilotTrainee',\r\n}\r\n\r\nexport type UnitQueries = {\r\n __typename: 'UnitQueries';\r\n all: UnitCollection;\r\n byId: Maybe;\r\n byVehicleId: Maybe;\r\n summaries: UnitSummaryCollection;\r\n summaryById: Maybe;\r\n};\r\n\r\nexport type UnitQueriesallArgs = {\r\n filter: InputMaybe;\r\n};\r\n\r\nexport type UnitQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type UnitQueriesbyVehicleIdArgs = {\r\n vehicleId: InputMaybe;\r\n};\r\n\r\nexport type UnitQueriessummariesArgs = {\r\n fetchpolicy: InputMaybe;\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitQueriessummaryByIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum UnitResponse {\r\n Aborted = 'Aborted',\r\n Assigned = 'Assigned',\r\n Declined = 'Declined',\r\n Offered = 'Offered',\r\n TransportCheckInitiated = 'TransportCheckInitiated',\r\n}\r\n\r\nexport type UnitShift = Entity &\r\n Evented & {\r\n __typename: 'UnitShift';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n endTimeInMinutes: Scalars['Int'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n startTimeInMinutes: Scalars['Int'];\r\n unit: Unit;\r\n unitId: Scalars['ID'];\r\n };\r\n\r\nexport type UnitShift_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitShiftCollection = {\r\n __typename: 'UnitShiftCollection';\r\n items: Array;\r\n meta: UnitShiftCollectionMetadata;\r\n};\r\n\r\nexport type UnitShiftCollectionMetadata = CollectionMetadata & {\r\n __typename: 'UnitShiftCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type UnitShiftFilter = {\r\n nameLike: InputMaybe;\r\n unitId: InputMaybe;\r\n};\r\n\r\nexport type UnitShiftQueries = {\r\n __typename: 'UnitShiftQueries';\r\n all: UnitShiftCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type UnitShiftQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitShiftQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type UnitShiftSummary = {\r\n __typename: 'UnitShiftSummary';\r\n endTimeInMinutes: Scalars['Int'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n startTimeInMinutes: Scalars['Int'];\r\n};\r\n\r\nexport type UnitShiftSummaryInput = {\r\n endTimeInMinutes: Scalars['Int'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n startTimeInMinutes: Scalars['Int'];\r\n};\r\n\r\nexport enum UnitStatus {\r\n Available = 'Available',\r\n Committed = 'Committed',\r\n OnStandby = 'OnStandby',\r\n OutOfService = 'OutOfService',\r\n PartiallyAvailable = 'PartiallyAvailable',\r\n}\r\n\r\nexport type UnitStatusHistoryEntry = Entity &\r\n Evented & {\r\n __typename: 'UnitStatusHistoryEntry';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n endTime: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n startTime: Scalars['DateTime'];\r\n status: UnitStatus;\r\n unit: Unit;\r\n unitId: Scalars['ID'];\r\n };\r\n\r\nexport type UnitStatusHistoryEntry_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitStatusHistoryEntryCollection = {\r\n __typename: 'UnitStatusHistoryEntryCollection';\r\n items: Array;\r\n meta: UnitStatusHistoryEntryCollectionMetadata;\r\n};\r\n\r\nexport type UnitStatusHistoryEntryCollectionMetadata = CollectionMetadata & {\r\n __typename: 'UnitStatusHistoryEntryCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type UnitSummary = Entity &\r\n Evented & {\r\n __typename: 'UnitSummary';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n base: Base;\r\n baseId: Scalars['ID'];\r\n baseTimezoneCd: Maybe;\r\n cardSummaries: Maybe>>;\r\n communicationCenter: Maybe;\r\n communicationCenterId: Maybe;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n etloInMinutes: Maybe;\r\n id: Scalars['ID'];\r\n isAdministrative: Maybe;\r\n isEnabled: Scalars['Boolean'];\r\n isExternallyManaged: Scalars['Boolean'];\r\n isHidden: Maybe;\r\n isOnDelay: Scalars['Boolean'];\r\n isSpare: Scalars['Boolean'];\r\n isThirdPartyUnit: Maybe;\r\n lastPilotUpdateById: Maybe;\r\n lastPilotUpdateName: Maybe;\r\n lastPilotUpdateTime: Maybe;\r\n maximumFlightRule: FlightRule;\r\n name: Scalars['String'];\r\n outOfServiceEvents: Array;\r\n pilotNotes: Maybe;\r\n plannedAvailableNotes: Maybe;\r\n plannedAvailableTime: Maybe;\r\n positions: Array;\r\n region: Region;\r\n regionId: Scalars['ID'];\r\n shifts: Array;\r\n status: UnitStatus;\r\n vehicle: Maybe;\r\n vehicleId: Maybe;\r\n vehicleSummary: Maybe;\r\n vehicleSummaryId: Maybe;\r\n weatherStatus: WeatherStatus;\r\n };\r\n\r\nexport type UnitSummary_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type UnitSummaryCollection = {\r\n __typename: 'UnitSummaryCollection';\r\n items: Array;\r\n meta: UnitSummaryCollectionMetadata;\r\n};\r\n\r\nexport type UnitSummaryCollectionMetadata = CollectionMetadata & {\r\n __typename: 'UnitSummaryCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type UnitSummaryFilter = {\r\n afterDate: InputMaybe;\r\n communicationCenterId: InputMaybe;\r\n companyId: InputMaybe;\r\n controlZoneCompanyId: InputMaybe;\r\n controlZoneId: InputMaybe;\r\n includeExternalSystem: InputMaybe;\r\n includeHidden: InputMaybe;\r\n includeSpare: InputMaybe;\r\n includeThirdParty: InputMaybe;\r\n regionId: InputMaybe;\r\n tcsManagedUnits: InputMaybe;\r\n};\r\n\r\nexport type UnmarkMedicalFacilityAsDuplicate = {\r\n medicalFacilityId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateAccessibleItem = {\r\n entityId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n personId: Scalars['ID'];\r\n type: EntityType;\r\n userRoles: InputMaybe>>;\r\n};\r\n\r\nexport type UpdateActivationRule = {\r\n address: InputMaybe;\r\n ageInMinutes: InputMaybe;\r\n automatedAlertAlgorithmType: InputMaybe;\r\n baseId: InputMaybe;\r\n communicationCenterIds: InputMaybe>>;\r\n companyId: InputMaybe;\r\n companyIds: InputMaybe>>;\r\n declineReasonIds: InputMaybe>>;\r\n id: Scalars['ID'];\r\n isShared: InputMaybe;\r\n locationId: InputMaybe;\r\n medicalFacilityId: InputMaybe;\r\n missionRoleTypes: InputMaybe>>;\r\n name: InputMaybe;\r\n operationTypes: InputMaybe>>;\r\n outOfServiceReasonId: InputMaybe;\r\n outOfServiceType: InputMaybe;\r\n regionId: InputMaybe;\r\n systemTimestampType: InputMaybe;\r\n timestampTypeId: InputMaybe;\r\n unitId: InputMaybe;\r\n vehicleId: InputMaybe;\r\n vehicleTypes: InputMaybe>>;\r\n waypointTypes: InputMaybe>>;\r\n};\r\n\r\nexport type UpdateActiveAlert = {\r\n activationTime: InputMaybe;\r\n authorId: InputMaybe;\r\n communicationCenterId: InputMaybe;\r\n content: Scalars['String'];\r\n definitionId: InputMaybe;\r\n entityId: InputMaybe;\r\n entityType: InputMaybe;\r\n escalationDurationInSeconds: InputMaybe;\r\n id: Scalars['ID'];\r\n isGpsAlert: Scalars['Boolean'];\r\n lifecycleStage: AlertLifecycleStage;\r\n lookupHash: InputMaybe;\r\n matchType: RuleMatchType;\r\n regionId: InputMaybe;\r\n requiresAcknowledgement: Scalars['Boolean'];\r\n snoozeMaxInSeconds: InputMaybe;\r\n title: InputMaybe;\r\n urgency: AlertUrgency;\r\n visibilityType: VisibilityType;\r\n};\r\n\r\nexport type UpdateActiveTimeline = {\r\n companyId: Scalars['ID'];\r\n entityId: Scalars['ID'];\r\n entityType: EntityType;\r\n id: Scalars['ID'];\r\n matchType: RuleMatchType;\r\n timelineId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateAgency = {\r\n abbreviation: Scalars['String'];\r\n id: Scalars['ID'];\r\n isCompetitor: Scalars['Boolean'];\r\n isInternallyOwned: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n notes: InputMaybe;\r\n parentCompanyId: InputMaybe;\r\n type: AgencyType;\r\n};\r\n\r\nexport type UpdateAgencyLocation = {\r\n address: AddressInput;\r\n agencyId: Scalars['ID'];\r\n emailAddress: InputMaybe;\r\n estimatedDepartureTimeInMinutes: InputMaybe;\r\n faxPhoneNumber: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n notes: InputMaybe;\r\n primaryPhoneNumber: InputMaybe;\r\n secondaryPhoneNumber: InputMaybe;\r\n smsPhoneNumber: InputMaybe;\r\n vehicleType: InputMaybe;\r\n};\r\n\r\nexport type UpdateAirport = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n airportCodeType: AirportCodeType;\r\n airportType: Scalars['String'];\r\n code: Scalars['String'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n notes: InputMaybe;\r\n preferredFboId: InputMaybe;\r\n sourceSystemId: InputMaybe;\r\n};\r\n\r\nexport type UpdateAlert = {\r\n activationRuleId: Scalars['ID'];\r\n content: Scalars['String'];\r\n createdById: InputMaybe;\r\n effectiveDate: InputMaybe;\r\n entityType: EntityType;\r\n expirationDate: InputMaybe;\r\n id: Scalars['ID'];\r\n lifecycleStage: AlertLifecycleStage;\r\n paused: InputMaybe;\r\n requiresAcknowledgement: Scalars['Boolean'];\r\n target: InputMaybe;\r\n title: InputMaybe;\r\n urgency: AlertUrgency;\r\n};\r\n\r\nexport type UpdateApplicationNotification = {\r\n companyId: InputMaybe;\r\n createdById: InputMaybe;\r\n dismissable: Scalars['Boolean'];\r\n displayOnBanner: Scalars['Boolean'];\r\n effectiveDate: InputMaybe;\r\n expirationDate: InputMaybe;\r\n id: Scalars['ID'];\r\n notification: Scalars['String'];\r\n regionId: InputMaybe;\r\n title: InputMaybe;\r\n urgency: ApplicationNotificationUrgency;\r\n};\r\n\r\nexport type UpdateAssignmentDelayedReason = {\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateBase = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n aviationCompanyId: InputMaybe;\r\n businessModel: BusinessModel;\r\n companyId: Scalars['ID'];\r\n crewPhoneNumber1: InputMaybe;\r\n crewPhoneNumber2: InputMaybe;\r\n dateLastUpdatedFromGMRWorkday: InputMaybe;\r\n dateOfMaturity: InputMaybe;\r\n dispatchBaseId: InputMaybe;\r\n enableFlightLogDutyLog: InputMaybe;\r\n estimatedLiftoffTime: InputMaybe;\r\n gmrWorkdayLocationId: InputMaybe;\r\n hoursOfOperation: HoursOfOperationInput;\r\n id: Scalars['ID'];\r\n licenseNumber: InputMaybe;\r\n name: Scalars['String'];\r\n operationsStarted: InputMaybe;\r\n operationsTerminated: InputMaybe;\r\n pilotPhoneNumber: InputMaybe;\r\n plannedOperationsStart: InputMaybe;\r\n primaryPhoneNumber: InputMaybe;\r\n timezoneCd: InputMaybe;\r\n};\r\n\r\nexport type UpdateBaseControlZone = {\r\n baseId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n controlZoneId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateBaseMedicalControlContact = {\r\n baseId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n licensedStates: InputMaybe>>;\r\n personId: Scalars['ID'];\r\n rank: Scalars['Int'];\r\n specialty: InputMaybe;\r\n};\r\n\r\nexport type UpdateCancellation = {\r\n cancellationReasonId: Scalars['ID'];\r\n cancellationReasonNotes: InputMaybe;\r\n cancellationSecondaryReasonId: InputMaybe;\r\n crewNotified: InputMaybe;\r\n id: Scalars['ID'];\r\n notificationAcknowledged: InputMaybe;\r\n offerTime: InputMaybe;\r\n responseReceived: InputMaybe;\r\n transportCheckInitiated: InputMaybe;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateCancellationCategory = {\r\n defaultCancellationReasonId: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateCancellationReason = {\r\n abbreviation: Scalars['String'];\r\n canBeUnitCancellationReason: InputMaybe;\r\n cancellationCategoryId: InputMaybe;\r\n id: Scalars['ID'];\r\n isTransferCenterReason: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateCancellationSecondaryReason = {\r\n cancellationReasonId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateCapability = {\r\n abbreviation: Scalars['String'];\r\n description: Scalars['String'];\r\n entityType: EntityType;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateCard = {\r\n apiWebhookSubscriptionId: InputMaybe;\r\n cardNumber: Scalars['String'];\r\n closeComment: InputMaybe;\r\n dateCardClosed: InputMaybe;\r\n diversionType: InputMaybe;\r\n gmrCADNumber: InputMaybe;\r\n gmrUtilizationStatus: InputMaybe;\r\n id: Scalars['ID'];\r\n isBillable: InputMaybe;\r\n isLocked: InputMaybe;\r\n lastOperationId: InputMaybe;\r\n linkedCardId: InputMaybe;\r\n notBillableComment: InputMaybe;\r\n notBillableType: InputMaybe;\r\n operationId: InputMaybe;\r\n plannedCompletionTime: InputMaybe;\r\n postTransportDebriefCompleted: InputMaybe;\r\n reOpenComment: InputMaybe;\r\n reOpenReasonId: InputMaybe;\r\n requestId: InputMaybe;\r\n status: CardStatus;\r\n transferredFromCardId: InputMaybe;\r\n transferredToCardId: InputMaybe;\r\n};\r\n\r\nexport type UpdateCardBillable = {\r\n cardId: Scalars['ID'];\r\n isBillable: Scalars['Boolean'];\r\n notBillableComment: InputMaybe;\r\n notBillableType: InputMaybe;\r\n};\r\n\r\nexport type UpdateCardDiversionType = {\r\n cardId: Scalars['ID'];\r\n diversionType: InputMaybe;\r\n};\r\n\r\nexport type UpdateCardLink = {\r\n fromCardId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n rendezvousRequestId: InputMaybe;\r\n toCardId: Scalars['ID'];\r\n toCardNumber: Scalars['String'];\r\n type: CardLinkType;\r\n};\r\n\r\nexport type UpdateCardNote = {\r\n content: Scalars['String'];\r\n id: Scalars['ID'];\r\n noteTime: Scalars['DateTime'];\r\n};\r\n\r\nexport type UpdateCardNoteArchive = {\r\n cardId: Scalars['ID'];\r\n content: Scalars['String'];\r\n id: Scalars['ID'];\r\n isInternal: Scalars['Boolean'];\r\n isSystem: Scalars['Boolean'];\r\n noteCategory: InputMaybe;\r\n noteMetadataJson: InputMaybe;\r\n noteTime: Scalars['DateTime'];\r\n};\r\n\r\nexport type UpdateCardReOpenReason = {\r\n affectsTrip: Scalars['Boolean'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateCardSearchIndex = {\r\n cardId: Scalars['ID'];\r\n ifOlderThan: InputMaybe;\r\n};\r\n\r\nexport type UpdateChiefComplaint = {\r\n notes: InputMaybe;\r\n requestPatientId: Scalars['ID'];\r\n transportReasonCategory: InputMaybe;\r\n transportReasonId: InputMaybe;\r\n};\r\n\r\nexport type UpdateCommunicationCenter = {\r\n companyId: Scalars['ID'];\r\n emailAddress: InputMaybe;\r\n id: Scalars['ID'];\r\n includeCompetitors: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n playAlertForManualPositionReports: Scalars['Boolean'];\r\n primaryPhoneNumber: InputMaybe;\r\n showReferToGmrWarning: InputMaybe;\r\n states: InputMaybe>>;\r\n timezoneCd: InputMaybe;\r\n};\r\n\r\nexport type UpdateCommunicationCenterTransportOfferOption = {\r\n communicationCenterId: InputMaybe;\r\n id: Scalars['ID'];\r\n includeAbortedUnit: Scalars['Boolean'];\r\n includeCompetitors: InputMaybe;\r\n minimumFlightRule: InputMaybe;\r\n requestedVehicleType: InputMaybe;\r\n requiredCapabilities: Array;\r\n transportOfferAlgorithm: InputMaybe;\r\n};\r\n\r\nexport type UpdateCompany = {\r\n abbreviation: Scalars['String'];\r\n callNumberPrefix: InputMaybe;\r\n companyCode: Scalars['String'];\r\n crewPatientInfoPageNotificationTemplateId: InputMaybe;\r\n enableNotificationGroupTypes: Scalars['Boolean'];\r\n flightFollowingFields: InputMaybe>>;\r\n gLCode: InputMaybe;\r\n gpsFeedResetsPositionReportTime: Scalars['Boolean'];\r\n hasPrivateUnits: Scalars['Boolean'];\r\n id: Scalars['ID'];\r\n imageUri: InputMaybe;\r\n includeCompetitors: Scalars['Boolean'];\r\n isOemCompany: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n requireSkipReasonsForNonCompanyTransportOffers: InputMaybe;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: Scalars['Boolean'];\r\n timezoneCd: InputMaybe;\r\n transportCheckTimerDurationInMinutes: InputMaybe;\r\n unitRemainsInServiceWithNoVehicle: Scalars['Boolean'];\r\n};\r\n\r\nexport type UpdateCompleteFlightInstance = {\r\n apiKey: Scalars['String'];\r\n completeFlightInstanceName: Scalars['String'];\r\n id: Scalars['ID'];\r\n isPrimary: Scalars['Boolean'];\r\n url: Scalars['String'];\r\n username: Scalars['String'];\r\n};\r\n\r\nexport type UpdateConfigurationSetting = {\r\n assetReassignedDeclineReasonId: InputMaybe;\r\n bugRequestEmail: InputMaybe;\r\n companyId: InputMaybe;\r\n crewGoingByGroundOutOfServiceReasonId: InputMaybe;\r\n defaultUnitCommittedDeclineReasonId: InputMaybe;\r\n defaultUnitOutOfServiceDeclineReasonId: InputMaybe;\r\n externallyCancelledCancellationReasonId: InputMaybe;\r\n featureRequestEmail: InputMaybe;\r\n id: Scalars['ID'];\r\n pilotReportGracePeriodInMinutes: InputMaybe;\r\n requestReferredExternallyCancellationReasonId: InputMaybe;\r\n requestReferredInternallyCancellationReasonId: InputMaybe;\r\n sameDestinationWarningThresholdInMinutes: InputMaybe;\r\n};\r\n\r\nexport type UpdateControlZone = {\r\n companyId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateDecline = {\r\n crewNotified: InputMaybe;\r\n declineReasonId: Scalars['ID'];\r\n declineSecondaryReasonId: InputMaybe;\r\n id: Scalars['ID'];\r\n notes: InputMaybe;\r\n notificationAcknowledged: InputMaybe;\r\n offerTime: InputMaybe;\r\n responseReceived: InputMaybe;\r\n transportCheckInitiated: InputMaybe;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateDeclineCategory = {\r\n defaultDeclineReasonId: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateDeclineReason = {\r\n abbreviation: Scalars['String'];\r\n canBeAbortReason: Scalars['Boolean'];\r\n canBeBulkSkipReason: Scalars['Boolean'];\r\n canBeOneCallSkipReason: Scalars['Boolean'];\r\n canBeSkipReason: Scalars['Boolean'];\r\n controllable: Scalars['Boolean'];\r\n declineCategoryId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n isUnitAvailableAfterAbort: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateDeclineSecondaryReason = {\r\n declineReasonId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateDepartment = {\r\n code: Scalars['String'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateDiversionReason = {\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateEmsReport = {\r\n cardId: Scalars['ID'];\r\n note: InputMaybe;\r\n personsInvolved: InputMaybe;\r\n rendezvousRequestId: Scalars['ID'];\r\n time: Scalars['DateTime'];\r\n transportUnitNumber: InputMaybe;\r\n};\r\n\r\nexport type UpdateEscortRequest = {\r\n escortName: Scalars['String'];\r\n escortWeightInKg: Scalars['Float'];\r\n id: Scalars['ID'];\r\n relationship: PatientRelationshipType;\r\n requestApprovalTime: Scalars['DateTime'];\r\n requestId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateEstimatedDurations = {\r\n asOfTime: Scalars['DateTime'];\r\n currentOrNextTripLegId: Scalars['ID'];\r\n estimateSource: EstimatedDurationSource;\r\n estimatedDepartureTimeInMinutes: InputMaybe;\r\n estimatedEnRouteTimeInMinutes: InputMaybe;\r\n};\r\n\r\nexport type UpdateExternalAction = {\r\n actionBodyJson: Scalars['String'];\r\n actionTypeId: Scalars['ID'];\r\n completedById: InputMaybe;\r\n dateCompleted: InputMaybe;\r\n entityId: Scalars['ID'];\r\n entityType: EntityType;\r\n id: Scalars['ID'];\r\n notes: InputMaybe;\r\n status: ExternalActionStatus;\r\n};\r\n\r\nexport type UpdateExternalActionType = {\r\n actionTypeDescription: Scalars['String'];\r\n actionTypeName: Scalars['String'];\r\n id: Scalars['ID'];\r\n priority: Scalars['Int'];\r\n};\r\n\r\nexport type UpdateExternalReference = {\r\n entityId: Scalars['ID'];\r\n entityType: EntityType;\r\n externalKey: Scalars['String'];\r\n externalSystem: ExternalSystem;\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateFacilityNonAcceptanceReason = {\r\n facilityNonAcceptanceReasonType: NonAcceptanceType;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateFbo = {\r\n address: AddressInput;\r\n airportId: Scalars['ID'];\r\n fboType: FboType;\r\n fuelBrand: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n sourceSystemId: InputMaybe;\r\n};\r\n\r\nexport type UpdateFirewallRule = {\r\n action: AccessControlAction;\r\n companyId: InputMaybe;\r\n enabled: Scalars['Boolean'];\r\n id: Scalars['ID'];\r\n ipRange: Scalars['String'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateFlightFollowingReport = {\r\n centerOfGravity: InputMaybe;\r\n confirmedFboId: InputMaybe;\r\n cruisingAltitude: InputMaybe;\r\n departureTime: InputMaybe;\r\n destination: InputMaybe;\r\n estimatedTimeEnrouteMinutes: InputMaybe;\r\n flightRule: InputMaybe;\r\n flightType: InputMaybe;\r\n fuel: InputMaybe;\r\n highestFeatureEnroute: InputMaybe;\r\n id: Scalars['ID'];\r\n medicalCrewRA: InputMaybe;\r\n placeUnitEnRoute: InputMaybe;\r\n riskAnalysis: InputMaybe;\r\n soulsOnBoard: InputMaybe;\r\n summary: InputMaybe;\r\n takeOffWeight: InputMaybe;\r\n trackingViaGps: InputMaybe;\r\n tripId: Scalars['ID'];\r\n tripLegId: InputMaybe;\r\n};\r\n\r\nexport type UpdateFuelTank = {\r\n address: AddressInput;\r\n baseId: InputMaybe;\r\n code: Scalars['String'];\r\n companyId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n locationName: InputMaybe;\r\n name: Scalars['String'];\r\n operationsEnded: InputMaybe;\r\n operationsStarted: InputMaybe;\r\n sourceSystemId: InputMaybe;\r\n};\r\n\r\nexport type UpdateGmrCadNumber = {\r\n cardId: Scalars['ID'];\r\n gmrCADNumber: InputMaybe;\r\n};\r\n\r\nexport type UpdateLocation = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n closedDate: InputMaybe;\r\n duplicateOfId: InputMaybe;\r\n id: Scalars['ID'];\r\n isLandingZoneOutOfService: InputMaybe;\r\n isRotorWingLz: InputMaybe;\r\n landingZoneOutOfServiceExpirationDate: InputMaybe;\r\n landingZoneOutOfServiceNotes: InputMaybe;\r\n landingZoneOutOfServiceReasonId: InputMaybe;\r\n locationType: LocationType;\r\n name: Scalars['String'];\r\n notes: InputMaybe;\r\n sourceSystemId: InputMaybe;\r\n timezoneCd: InputMaybe;\r\n};\r\n\r\nexport type UpdateLocationHazard = {\r\n effectiveDate: InputMaybe;\r\n expirationDate: InputMaybe;\r\n hazard: Scalars['String'];\r\n id: Scalars['ID'];\r\n locationId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateManifestEntry = {\r\n confirmedAt: InputMaybe;\r\n confirmedById: InputMaybe;\r\n id: Scalars['ID'];\r\n passengerId: Scalars['ID'];\r\n tripLegId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateMedicalControlContactLogEntry = {\r\n cardId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n isSuccessful: Scalars['Boolean'];\r\n notes: InputMaybe;\r\n personId: Scalars['ID'];\r\n time: Scalars['DateTime'];\r\n};\r\n\r\nexport type UpdateMedicalFacility = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n closedDate: InputMaybe;\r\n defaultFixedWingLandingZoneId: InputMaybe;\r\n defaultLandingZoneId: InputMaybe;\r\n firmType: InputMaybe;\r\n hospitalSpecialization: InputMaybe;\r\n hospitalType: InputMaybe;\r\n id: Scalars['ID'];\r\n masterDataSetId: InputMaybe;\r\n name: Scalars['String'];\r\n nemsisCode: InputMaybe;\r\n notes: InputMaybe;\r\n npi: Scalars['String'];\r\n providerNumber: InputMaybe;\r\n sourceSystemId: InputMaybe;\r\n stateFacilityName: InputMaybe;\r\n stateSourceSystemId: InputMaybe;\r\n status: InputMaybe;\r\n website: InputMaybe;\r\n};\r\n\r\nexport type UpdateMedicalFacilityContact = {\r\n emailAddress: InputMaybe;\r\n faxPhoneNumber: InputMaybe;\r\n id: Scalars['ID'];\r\n medicalFacilityId: Scalars['ID'];\r\n name: Scalars['String'];\r\n notes: InputMaybe;\r\n primaryPhoneNumber: InputMaybe;\r\n secondaryPhoneNumber: InputMaybe;\r\n smsPhoneNumber: InputMaybe;\r\n};\r\n\r\nexport type UpdateMedicalFacilityPhysician = {\r\n id: Scalars['ID'];\r\n medicalFacilityId: Scalars['ID'];\r\n physicianId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateMedicalFacilityUnit = {\r\n id: Scalars['ID'];\r\n medicalFacilityId: Scalars['ID'];\r\n name: Scalars['String'];\r\n phoneNumber: InputMaybe;\r\n};\r\n\r\nexport type UpdateNextDueType = {\r\n dataType: Scalars['String'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateNonReferralReason = {\r\n associatedCancellationReasonId: InputMaybe;\r\n associatedCancellationSecondaryReasonId: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateNotification = {\r\n body: Scalars['String'];\r\n cardId: InputMaybe;\r\n entityId: InputMaybe;\r\n entityType: InputMaybe;\r\n id: Scalars['ID'];\r\n sourceTemplateId: InputMaybe;\r\n status: NotificationStatus;\r\n subject: InputMaybe;\r\n};\r\n\r\nexport type UpdateNotificationGroup = {\r\n companyId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n regionId: InputMaybe;\r\n type: InputMaybe;\r\n types: InputMaybe>>;\r\n unitId: InputMaybe;\r\n};\r\n\r\nexport type UpdateNotificationGroupMember = {\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n notificationAddress: InputMaybe;\r\n notificationGroupId: Scalars['ID'];\r\n userId: InputMaybe;\r\n};\r\n\r\nexport type UpdateNotificationRecipient = {\r\n id: Scalars['ID'];\r\n messageId: InputMaybe;\r\n messageStatus: InputMaybe;\r\n name: InputMaybe;\r\n notificationAddress: InputMaybe;\r\n notificationId: Scalars['ID'];\r\n userId: InputMaybe;\r\n};\r\n\r\nexport type UpdateNotificationSubscription = {\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n notificationGroupId: Scalars['ID'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateNotificationTemplate = {\r\n activationRuleId: InputMaybe;\r\n bodyTemplate: Scalars['String'];\r\n canBeManualTrigger: Scalars['Boolean'];\r\n companyId: InputMaybe;\r\n contextType: EntityType;\r\n groupTypes: InputMaybe>>;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n notificationType: InputMaybe;\r\n recipientTypes: InputMaybe>>;\r\n requiresApproval: InputMaybe;\r\n subjectTemplate: InputMaybe;\r\n triggerType: InputMaybe;\r\n triggerValue: InputMaybe;\r\n viewModelType: InputMaybe;\r\n};\r\n\r\nexport type UpdateOdometerReadings = {\r\n arrivingNote: InputMaybe;\r\n arrivingOdometerReading: InputMaybe;\r\n departingNote: InputMaybe;\r\n departingOdometerReading: InputMaybe;\r\n tripLegId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateOemActivity = {\r\n activityType: OemActivityType;\r\n authorId: InputMaybe;\r\n content: InputMaybe;\r\n currentStatus: InputMaybe;\r\n id: Scalars['ID'];\r\n oemPlanChangeRequestId: InputMaybe;\r\n oemPlanId: Scalars['ID'];\r\n priorStatus: InputMaybe;\r\n time: InputMaybe;\r\n};\r\n\r\nexport type UpdateOemAsset = {\r\n assetDispatchCompanyId: InputMaybe;\r\n assetId: Scalars['ID'];\r\n assetType: OemAssetType;\r\n id: Scalars['ID'];\r\n oemPlanId: Scalars['ID'];\r\n oemUnitId: InputMaybe;\r\n originalUnitId: InputMaybe;\r\n requestedBaseId: InputMaybe;\r\n requestedPlacardNumber: InputMaybe;\r\n requestedUnitAbbreviation: InputMaybe;\r\n requestedUnitName: InputMaybe;\r\n status: OemAssetStatus;\r\n};\r\n\r\nexport type UpdateOemPlan = {\r\n companyId: Scalars['ID'];\r\n defaultBaseId: Scalars['ID'];\r\n description: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n oemCompanyId: Scalars['ID'];\r\n outOfServiceReasonId: Scalars['ID'];\r\n planStatus: OemPlanStatus;\r\n planYear: Scalars['Int'];\r\n};\r\n\r\nexport type UpdateOemPlanChangeRequest = {\r\n dateCancelled: InputMaybe;\r\n dateCompleted: InputMaybe;\r\n dateRequested: InputMaybe;\r\n id: Scalars['ID'];\r\n notes: InputMaybe;\r\n oemAssetId: Scalars['ID'];\r\n oemPlanId: Scalars['ID'];\r\n originalAssetStatus: OemAssetStatus;\r\n requestedAssetStatus: OemAssetStatus;\r\n requestedById: InputMaybe;\r\n status: OemPlanChangeRequestStatus;\r\n};\r\n\r\nexport type UpdateOfferAlgorithm = {\r\n activationRuleId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n companyIds: InputMaybe>>;\r\n distanceCalculation: DistanceCalculation;\r\n id: Scalars['ID'];\r\n includeCompetitors: Scalars['Boolean'];\r\n isEnabled: Scalars['Boolean'];\r\n minimumFlightRule: InputMaybe;\r\n name: Scalars['String'];\r\n oneCallAgreement: Scalars['Boolean'];\r\n preferredUnits: Array;\r\n rank: Scalars['Int'];\r\n transportOfferAlgorithm: TransportOfferAlgorithm;\r\n};\r\n\r\nexport type UpdateOfferRank = {\r\n id: Scalars['ID'];\r\n insertAfterId: InputMaybe;\r\n insertBeforeId: InputMaybe;\r\n notes: InputMaybe;\r\n};\r\n\r\nexport type UpdateOperation = {\r\n callbackNumber: InputMaybe;\r\n caller: InputMaybe;\r\n dateOperationEnded: InputMaybe;\r\n dateOperationStarted: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n riskAnalysisAcknowledged: Scalars['Boolean'];\r\n riskAnalysisNumber: InputMaybe;\r\n standbyActivationType: InputMaybe;\r\n status: OperationStatus;\r\n type: OperationType;\r\n unitId: InputMaybe;\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateOperationContactInfo = {\r\n callbackNumber: InputMaybe;\r\n caller: InputMaybe;\r\n operationId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateOutOfComplianceCrewMember = {\r\n comment: InputMaybe;\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateOutOfServiceEvent = {\r\n alertTimeInMinutes: InputMaybe;\r\n alertWhenEventEnds: Scalars['Boolean'];\r\n endTime: InputMaybe;\r\n estimatedEndTime: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n isAirworthy: Scalars['Boolean'];\r\n notes: InputMaybe;\r\n reasonId: Scalars['ID'];\r\n scheduledStartTime: InputMaybe;\r\n secondaryReasonComment: InputMaybe;\r\n secondaryReasonId: InputMaybe;\r\n startTime: InputMaybe;\r\n type: OutOfServiceType;\r\n unitRemainsOutOfServiceNotes: InputMaybe;\r\n unitRemainsOutOfServiceReasonId: InputMaybe;\r\n unitRemainsOutOfServiceSecondaryReasonId: InputMaybe;\r\n};\r\n\r\nexport type UpdateOutOfServiceEventNote = {\r\n content: Scalars['String'];\r\n id: Scalars['ID'];\r\n noteTime: Scalars['DateTime'];\r\n outOfServiceEventId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateOutOfServiceReason = {\r\n controllable: Scalars['Boolean'];\r\n description: InputMaybe;\r\n id: Scalars['ID'];\r\n isVehicleReason: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateOutOfServiceSecondaryReason = {\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n outOfServiceReasonId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdatePassdownLog = {\r\n acknowledgedById: InputMaybe;\r\n authorId: InputMaybe;\r\n body: Scalars['String'];\r\n dateAcknowledged: InputMaybe;\r\n id: Scalars['ID'];\r\n logDate: Scalars['DateTime'];\r\n name: Scalars['String'];\r\n regionId: Scalars['ID'];\r\n requiresAcknowledgement: Scalars['Boolean'];\r\n};\r\n\r\nexport type UpdatePatientClinicalInfo = {\r\n bpDiastolic: InputMaybe;\r\n bpSystolic: InputMaybe;\r\n gcs: InputMaybe;\r\n heartRate: InputMaybe;\r\n medicalRecordNumber: InputMaybe;\r\n oxygenSaturation: InputMaybe;\r\n requestPatientId: Scalars['ID'];\r\n respiratoryRate: InputMaybe;\r\n temperatureInCelsius: InputMaybe;\r\n transferReasonId: InputMaybe;\r\n};\r\n\r\nexport type UpdatePatientInfo = {\r\n dateOfBirth: InputMaybe;\r\n estimatedAgeInHours: InputMaybe;\r\n firstName: InputMaybe;\r\n gender: Gender;\r\n isIntubated: InputMaybe;\r\n isIsolette: Scalars['Boolean'];\r\n isoletteNotes: InputMaybe;\r\n isoletteType: InputMaybe;\r\n lastName: InputMaybe;\r\n medicalRecordNumber: InputMaybe;\r\n notes: InputMaybe;\r\n numberOfDrips: InputMaybe;\r\n patientId: InputMaybe;\r\n requestId: Scalars['ID'];\r\n requestPatientId: Scalars['ID'];\r\n rideAlongDateOfBirth: InputMaybe;\r\n rideAlongName: InputMaybe;\r\n rideAlongRequested: InputMaybe;\r\n rideAlongWeightInKg: InputMaybe;\r\n specialtyEquipment: InputMaybe;\r\n weightInKg: InputMaybe;\r\n};\r\n\r\nexport type UpdatePerson = {\r\n activateOktaAccount: Scalars['Boolean'];\r\n activeDirectoryId: InputMaybe;\r\n allBasesAccessible: InputMaybe;\r\n allCommunicationCentersAccessible: InputMaybe;\r\n allCompaniesAccessible: InputMaybe;\r\n allTrmProgramsAccessible: InputMaybe;\r\n applyToActiveDirectory: InputMaybe;\r\n aviationCompanyId: InputMaybe;\r\n baseId: InputMaybe;\r\n companyId: Scalars['ID'];\r\n dateLastUpdatedFromGMRWorkday: InputMaybe;\r\n departmentId: InputMaybe;\r\n dispatchCompanyId: InputMaybe;\r\n email: Scalars['String'];\r\n employeeId: InputMaybe;\r\n employeeType: EmployeeType;\r\n faaCompanyId: InputMaybe;\r\n firstName: Scalars['String'];\r\n grantTcsAccess: Scalars['Boolean'];\r\n hireDate: InputMaybe;\r\n id: Scalars['ID'];\r\n isAviationSupervisor: Scalars['Boolean'];\r\n lastName: Scalars['String'];\r\n locationId: InputMaybe;\r\n notificationAddress: InputMaybe;\r\n primaryCommunicationCenterId: InputMaybe;\r\n programId: InputMaybe;\r\n reportsToPersonId: InputMaybe;\r\n terminationDate: InputMaybe;\r\n timeType: TimeType;\r\n title: InputMaybe;\r\n};\r\n\r\nexport type UpdatePhysician = {\r\n firstName: Scalars['String'];\r\n id: Scalars['ID'];\r\n lastName: Scalars['String'];\r\n};\r\n\r\nexport type UpdatePilotUnitConfiguration = {\r\n etloInMinutes: InputMaybe;\r\n id: Scalars['ID'];\r\n lastPilotUpdateById: InputMaybe;\r\n lastPilotUpdateTime: InputMaybe;\r\n maximumFlightRule: FlightRule;\r\n pilotNotes: InputMaybe;\r\n positions: Array;\r\n weatherStatus: WeatherStatus;\r\n};\r\n\r\nexport type UpdatePlannedCardCompletionTime = {\r\n id: Scalars['ID'];\r\n plannedCompletionTime: Scalars['DateTime'];\r\n};\r\n\r\nexport type UpdatePositionReport = {\r\n altitude: InputMaybe;\r\n coordinates: InputMaybe;\r\n dateConfirmed: InputMaybe;\r\n estimatedMinutesEnRoute: InputMaybe;\r\n fuelRemaining: InputMaybe;\r\n heading: InputMaybe;\r\n id: Scalars['ID'];\r\n positionTime: Scalars['DateTime'];\r\n source: PositionReportSource;\r\n speedInKnots: InputMaybe;\r\n timezoneCd: InputMaybe;\r\n tripId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdatePositionReportAlert = {\r\n hasReceivedQualifyingReport: Scalars['Boolean'];\r\n id: Scalars['ID'];\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateProgram = {\r\n abbreviation: Scalars['String'];\r\n adminId: InputMaybe;\r\n code: Scalars['String'];\r\n companyId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateProgramBase = {\r\n baseId: Scalars['ID'];\r\n endTime: InputMaybe;\r\n id: Scalars['ID'];\r\n programId: Scalars['ID'];\r\n startTime: InputMaybe;\r\n};\r\n\r\nexport type UpdateQuestion = {\r\n choices: InputMaybe>>;\r\n dataType: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n question: Scalars['String'];\r\n questionType: QuestionType;\r\n};\r\n\r\nexport type UpdateQuestionnaire = {\r\n communicationCenterId: InputMaybe;\r\n companyId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n sections: InputMaybe>>;\r\n type: QuestionnaireType;\r\n};\r\n\r\nexport type UpdateQuestionnaireQuestionResponse = {\r\n explanation: InputMaybe;\r\n id: Scalars['ID'];\r\n matchType: RuleMatchType;\r\n questionnaireResponseId: Scalars['ID'];\r\n questionnaireSectionQuestionId: Scalars['ID'];\r\n responseValue: InputMaybe;\r\n reviewRequired: Scalars['Boolean'];\r\n};\r\n\r\nexport type UpdateQuestionnaireQuestionResponseDeep = {\r\n explanation: InputMaybe;\r\n id: Scalars['ID'];\r\n matchType: RuleMatchType;\r\n notes: Array;\r\n questionnaireResponseId: Scalars['ID'];\r\n questionnaireSectionQuestionId: Scalars['ID'];\r\n responseValue: InputMaybe;\r\n reviewRequired: Scalars['Boolean'];\r\n};\r\n\r\nexport type UpdateQuestionnaireQuestionResponseNote = {\r\n authorId: Scalars['ID'];\r\n dateAuthored: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n note: Scalars['String'];\r\n questionnaireQuestionResponseId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateQuestionnaireResponse = {\r\n cardId: Scalars['ID'];\r\n communicationsReviewById: InputMaybe;\r\n companyId: Scalars['ID'];\r\n completedById: InputMaybe;\r\n currentReviewLevel: InputMaybe;\r\n dateCommunicationsReviewed: InputMaybe;\r\n dateCompleted: InputMaybe;\r\n dateManagerReviewed: InputMaybe;\r\n dateSupervisorReviewed: InputMaybe;\r\n id: Scalars['ID'];\r\n managerReviewById: InputMaybe;\r\n questionnaireId: Scalars['ID'];\r\n status: QuestionnaireResponseStatus;\r\n supervisorReviewById: InputMaybe;\r\n};\r\n\r\nexport type UpdateQuestionnaireResponseDeep = {\r\n cardId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n currentReviewLevel: InputMaybe;\r\n id: Scalars['ID'];\r\n questionResponses: Array;\r\n questionnaireId: Scalars['ID'];\r\n status: QuestionnaireResponseStatus;\r\n};\r\n\r\nexport type UpdateReceivingFacilityAutoAcceptance = {\r\n isAutoAccept: Scalars['Boolean'];\r\n requestLocationId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateRecipientMessageStatus = {\r\n notificationRecipientId: InputMaybe;\r\n trackedMessageId: InputMaybe;\r\n};\r\n\r\nexport type UpdateRegion = {\r\n abbreviation: Scalars['String'];\r\n communicationCenterId: Scalars['ID'];\r\n dispatchNumber: InputMaybe;\r\n emSystemDivisionName: InputMaybe;\r\n fixedWingPreferredThresholdInNauticalMiles: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n regionGroupId: Scalars['ID'];\r\n timezoneCd: InputMaybe;\r\n};\r\n\r\nexport type UpdateRegionBase = {\r\n baseId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n regionId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateRegionGroup = {\r\n abbreviation: Scalars['String'];\r\n companyId: Scalars['ID'];\r\n departmentId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateRendezvousRequest = {\r\n agencyEta: InputMaybe;\r\n agencyLocationId: InputMaybe;\r\n arrivedDestAt: InputMaybe;\r\n arrivedLzAt: InputMaybe;\r\n cancelledAt: InputMaybe;\r\n confirmedAt: InputMaybe;\r\n contactInformation: InputMaybe;\r\n departedDestAt: InputMaybe;\r\n departedLzAt: InputMaybe;\r\n id: Scalars['ID'];\r\n notes: InputMaybe;\r\n rendezvousLocationDescription: InputMaybe;\r\n requestLocationId: Scalars['ID'];\r\n transportUnitNumber: InputMaybe;\r\n utilizationStatus: AmrUtilizationStatus;\r\n};\r\n\r\nexport type UpdateRequest = {\r\n commitUnitToStandby: InputMaybe;\r\n id: Scalars['ID'];\r\n includeCompetitors: InputMaybe;\r\n isStandbyRequest: Scalars['Boolean'];\r\n minimumFlightRule: InputMaybe;\r\n requestedVehicleType: InputMaybe;\r\n requiredCapabilityIds: InputMaybe>>;\r\n safetyQuestions: SafetyQuestionsInput;\r\n transportOfferAlgorithm: InputMaybe;\r\n};\r\n\r\nexport type UpdateRequestAtlo = {\r\n atloInMinutes: Scalars['Int'];\r\n etloInMinutes: Scalars['Int'];\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateRequestLocation = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n bedNumber: InputMaybe;\r\n diversionReasonId: InputMaybe;\r\n diversionReasonOtherNotes: InputMaybe;\r\n estimatedGroundTimeInMinutes: InputMaybe;\r\n estimatedRendezvousTimeInMinutes: InputMaybe;\r\n externalActionId: InputMaybe;\r\n fboId: InputMaybe;\r\n groundContact: InputMaybe;\r\n id: Scalars['ID'];\r\n isRotorWingLz: InputMaybe;\r\n locationId: InputMaybe;\r\n medicalFacilityId: InputMaybe;\r\n medicalFacilityUnitId: InputMaybe;\r\n medicalUnitId: InputMaybe;\r\n medicalUnitName: InputMaybe;\r\n name: Scalars['String'];\r\n notes: InputMaybe;\r\n physicianId: InputMaybe;\r\n requestId: Scalars['ID'];\r\n roomNumber: InputMaybe;\r\n timezoneCd: InputMaybe;\r\n type: WaypointType;\r\n unConfirmed: InputMaybe;\r\n};\r\n\r\nexport type UpdateRequestPatient = {\r\n bpDiastolic: InputMaybe;\r\n bpSystolic: InputMaybe;\r\n chiefComplaintNotes: InputMaybe;\r\n dateOfBirth: InputMaybe;\r\n estimatedAgeInHours: InputMaybe;\r\n firstName: InputMaybe;\r\n gcs: InputMaybe;\r\n gender: Gender;\r\n heartRate: InputMaybe;\r\n id: Scalars['ID'];\r\n isIntubated: InputMaybe;\r\n isIsolette: Scalars['Boolean'];\r\n isoletteNotes: InputMaybe;\r\n isoletteType: InputMaybe;\r\n lastName: InputMaybe;\r\n medicalRecordNumber: InputMaybe;\r\n notes: InputMaybe;\r\n numberOfDrips: InputMaybe;\r\n oxygenSaturation: InputMaybe;\r\n patientId: InputMaybe;\r\n requestId: Scalars['ID'];\r\n respiratoryRate: InputMaybe;\r\n rideAlongDateOfBirth: InputMaybe;\r\n rideAlongName: InputMaybe;\r\n rideAlongRequested: InputMaybe;\r\n rideAlongWeightInKg: InputMaybe;\r\n specialtyEquipment: InputMaybe;\r\n temperatureInCelsius: InputMaybe;\r\n transferReasonId: InputMaybe;\r\n transportReasonCategory: InputMaybe;\r\n transportReasonId: InputMaybe;\r\n weightInKg: InputMaybe;\r\n};\r\n\r\nexport type UpdateRequestPublicUtilityInfo = {\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n requestId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateRequestRegion = {\r\n regionId: Scalars['ID'];\r\n requestId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateRequestSafetyQuestions = {\r\n otherServiceDeclined: InputMaybe;\r\n otherServiceDescription: InputMaybe;\r\n otherServiceResponseDescription: InputMaybe;\r\n otherServicesAreRespondingToTransferring: InputMaybe;\r\n requestId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateRequestStandbyStatus = {\r\n commitUnitToStandby: Scalars['Boolean'];\r\n isStandbyRequest: Scalars['Boolean'];\r\n requestId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateRequester = {\r\n affiliationType: InputMaybe;\r\n agencyLocationId: InputMaybe;\r\n callbackNumber: InputMaybe;\r\n caller: InputMaybe;\r\n email: InputMaybe;\r\n facilityId: InputMaybe;\r\n id: Scalars['ID'];\r\n isDoublePatient: InputMaybe;\r\n isStandbyRequest: InputMaybe;\r\n isWingToWing: InputMaybe;\r\n missionRole: InputMaybe;\r\n referralReasonId: InputMaybe;\r\n referringAgencyLocationId: InputMaybe;\r\n referringCompanyId: InputMaybe;\r\n referringRecordNumber: InputMaybe;\r\n requestId: InputMaybe;\r\n requestedVehicleType: InputMaybe;\r\n roleId: InputMaybe;\r\n};\r\n\r\nexport type UpdateRequesterRole = {\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateRequesterSpecialtyTeam = {\r\n requesterId: Scalars['ID'];\r\n specialtyTeamId: InputMaybe;\r\n specialtyTeamMemberIds: Array;\r\n specialtyTeamNotes: InputMaybe;\r\n};\r\n\r\nexport type UpdateRiskAnalysis = {\r\n operationId: Scalars['ID'];\r\n riskAnalysisAcknowledged: Scalars['Boolean'];\r\n riskAnalysisNumber: InputMaybe;\r\n};\r\n\r\nexport type UpdateSkip = {\r\n convertToDecline: InputMaybe;\r\n crewNotified: InputMaybe;\r\n declineReasonId: Scalars['ID'];\r\n declineSecondaryReasonId: InputMaybe;\r\n id: Scalars['ID'];\r\n notes: InputMaybe;\r\n notificationAcknowledged: InputMaybe;\r\n offerTime: InputMaybe;\r\n responseReceived: InputMaybe;\r\n transportCheckInitiated: InputMaybe;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateSpecialtyTeam = {\r\n affiliationId: Scalars['ID'];\r\n companyId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateSpecialtyTeamMember = {\r\n id: Scalars['ID'];\r\n weightInKg: InputMaybe;\r\n};\r\n\r\nexport type UpdateSupportRequest = {\r\n companyId: Scalars['ID'];\r\n content: InputMaybe;\r\n id: Scalars['ID'];\r\n isEmailSent: Scalars['Boolean'];\r\n personId: Scalars['ID'];\r\n subject: InputMaybe;\r\n supportRequestStatus: SupportRequestStatus;\r\n supportRequestType: SupportRequestType;\r\n};\r\n\r\nexport type UpdateTcsRealtimeTrackingTab = {\r\n personId: Scalars['ID'];\r\n tabId: Scalars['String'];\r\n};\r\n\r\nexport type UpdateTimeline = {\r\n activationRuleId: InputMaybe;\r\n companyId: InputMaybe;\r\n id: Scalars['ID'];\r\n items: InputMaybe>>;\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateTimelineItem = {\r\n id: Scalars['ID'];\r\n required: Scalars['Boolean'];\r\n sequence: Scalars['Int'];\r\n timelineId: Scalars['ID'];\r\n timestampTypeId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateTimestamp = {\r\n cardId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n note: InputMaybe;\r\n operationId: InputMaybe;\r\n personsInvolved: InputMaybe;\r\n requestId: InputMaybe;\r\n time: Scalars['DateTime'];\r\n typeId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateTimestampType = {\r\n companies: InputMaybe>>;\r\n description: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n order: Scalars['Int'];\r\n systemTimestampType: InputMaybe;\r\n};\r\n\r\nexport type UpdateTimezone = {\r\n abbreviation: Scalars['String'];\r\n code: Scalars['String'];\r\n id: Scalars['ID'];\r\n isDst: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n utcOffset: Scalars['Int'];\r\n};\r\n\r\nexport type UpdateTrackedMessage = {\r\n body: Scalars['String'];\r\n doNotDivert: InputMaybe;\r\n fromAddress: InputMaybe;\r\n fromName: InputMaybe;\r\n id: Scalars['ID'];\r\n medium: InputMaybe;\r\n recipientAddress: Scalars['String'];\r\n recipientName: InputMaybe;\r\n referenceNumber: InputMaybe;\r\n status: MessageStatus;\r\n subject: InputMaybe;\r\n vendorId: InputMaybe;\r\n vendorMessageId: InputMaybe;\r\n};\r\n\r\nexport type UpdateTransferCenter = {\r\n communicationCenterId: Scalars['ID'];\r\n description: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateTransferCenterCallInfo = {\r\n careLevelRequested: InputMaybe;\r\n requesterId: Scalars['ID'];\r\n transferCenterId: InputMaybe;\r\n transferCenterNotes: InputMaybe;\r\n transportingAgencyLocationId: InputMaybe;\r\n};\r\n\r\nexport type UpdateTransferReason = {\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateTransportOffer = {\r\n agencyLocationId: InputMaybe;\r\n baseId: InputMaybe;\r\n bearingInDegrees: InputMaybe;\r\n cancellationReasonId: InputMaybe;\r\n cancellationReasonNotes: InputMaybe;\r\n cancellationSecondaryReasonId: InputMaybe;\r\n crewNotified: InputMaybe;\r\n declineReasonId: InputMaybe;\r\n declineSecondaryReasonId: InputMaybe;\r\n distanceInMiles: InputMaybe;\r\n estimatedDepartureTimeInMinutes: InputMaybe;\r\n estimatedTimeEnRouteInMinutes: InputMaybe;\r\n homeBaseDistanceInMiles: InputMaybe;\r\n id: Scalars['ID'];\r\n isInternalAgency: Scalars['Boolean'];\r\n isOnDelay: Scalars['Boolean'];\r\n isOneCallAgreement: Scalars['Boolean'];\r\n isReferral: InputMaybe;\r\n nonReferralReasonId: InputMaybe;\r\n nonReferralReasonNotes: InputMaybe;\r\n notes: InputMaybe;\r\n notificationAcknowledged: InputMaybe;\r\n offerTime: InputMaybe;\r\n onBaseETAInMinutes: InputMaybe;\r\n outOfServiceEventId: InputMaybe;\r\n patientOriginatesAtUnit: InputMaybe;\r\n preferredRank: InputMaybe;\r\n rank: Scalars['Int'];\r\n requestId: Scalars['ID'];\r\n response: TransportOfferResponse;\r\n responseReceived: InputMaybe;\r\n specialtyTeamETEInMinutes: InputMaybe;\r\n specialtyTeamETLOInMinutes: InputMaybe;\r\n status: TransportOfferStatus;\r\n transportCheckInitiated: InputMaybe;\r\n unitDescription: InputMaybe;\r\n unitId: InputMaybe;\r\n vehicleCoordinates: InputMaybe;\r\n vehicleId: InputMaybe;\r\n vehicleType: InputMaybe;\r\n wasBulkSkip: Scalars['Boolean'];\r\n};\r\n\r\nexport type UpdateTransportOfferEta = {\r\n estimatedDepartureTimeInMinutes: InputMaybe;\r\n estimatedTimeEnRouteInMinutes: InputMaybe;\r\n id: Scalars['ID'];\r\n patientOriginatesAtUnit: InputMaybe;\r\n};\r\n\r\nexport type UpdateTransportOfferOption = {\r\n includeAbortedUnit: Scalars['Boolean'];\r\n includeCompetitors: InputMaybe;\r\n minimumFlightRule: InputMaybe;\r\n requestId: Scalars['ID'];\r\n requestedVehicleType: InputMaybe;\r\n requiredCapabilities: Array;\r\n transportOfferAlgorithm: InputMaybe;\r\n};\r\n\r\nexport type UpdateTransportReason = {\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n operationType: InputMaybe;\r\n};\r\n\r\nexport type UpdateTrip = {\r\n agencyId: InputMaybe;\r\n agencyLocationId: InputMaybe;\r\n calculatedLoadedMiles: InputMaybe;\r\n gpsLoadedMiles: InputMaybe;\r\n id: Scalars['ID'];\r\n operationId: Scalars['ID'];\r\n vehicleId: InputMaybe;\r\n};\r\n\r\nexport type UpdateTripLegDuration = {\r\n asOfTime: Scalars['DateTime'];\r\n durationInMinutes: Scalars['Int'];\r\n estimateSource: EstimatedDurationSource;\r\n positionReportId: InputMaybe;\r\n tripId: Scalars['ID'];\r\n tripLegId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateTripPassenger = {\r\n abbreviation: Scalars['String'];\r\n crewMemberId: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n notificationAddress: InputMaybe;\r\n personId: InputMaybe;\r\n positionName: InputMaybe;\r\n positionType: InputMaybe;\r\n tripId: Scalars['ID'];\r\n type: PassengerType;\r\n weightInKg: InputMaybe;\r\n};\r\n\r\nexport type UpdateTrmUser = {\r\n additionalProgramIds: InputMaybe>>;\r\n agencyIds: InputMaybe>>;\r\n companyId: Scalars['ID'];\r\n emailAddress: Scalars['String'];\r\n firstName: Scalars['String'];\r\n id: Scalars['ID'];\r\n lastName: Scalars['String'];\r\n medicalFacilityIds: InputMaybe>>;\r\n personId: InputMaybe;\r\n phoneNumber: Scalars['String'];\r\n preferredProgramId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateUnit = {\r\n abbreviation: Scalars['String'];\r\n baseId: Scalars['ID'];\r\n completeFlightInstanceId: InputMaybe;\r\n emSystemResourceId: InputMaybe;\r\n etloInMinutes: InputMaybe;\r\n id: Scalars['ID'];\r\n integrations: Array;\r\n isAdministrative: InputMaybe;\r\n isExternallyManaged: Scalars['Boolean'];\r\n isSpare: Scalars['Boolean'];\r\n lastPilotUpdateById: InputMaybe;\r\n lastPilotUpdateTime: InputMaybe;\r\n maximumFlightRule: FlightRule;\r\n name: Scalars['String'];\r\n oemPlacardNumber: InputMaybe;\r\n onBaseETAInMinutes: InputMaybe;\r\n pilotNotes: InputMaybe;\r\n primaryOutOfServiceEventId: InputMaybe;\r\n regionId: Scalars['ID'];\r\n weatherStatus: WeatherStatus;\r\n};\r\n\r\nexport type UpdateUnitActivationRule = {\r\n companyId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n maximumDistanceInMiles: InputMaybe;\r\n missionRoleTypes: Array;\r\n operationTypes: Array;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateUnitConfiguration = {\r\n abbreviation: Scalars['String'];\r\n baseId: Scalars['ID'];\r\n completeFlightInstanceId: InputMaybe;\r\n emSystemResourceId: InputMaybe;\r\n etloInMinutes: InputMaybe;\r\n id: Scalars['ID'];\r\n integrations: Array;\r\n isAdministrative: InputMaybe;\r\n isExternallyManaged: Scalars['Boolean'];\r\n isSpare: Scalars['Boolean'];\r\n lastPilotUpdateById: InputMaybe;\r\n lastPilotUpdateTime: InputMaybe;\r\n maximumFlightRule: FlightRule;\r\n name: Scalars['String'];\r\n onBaseETAInMinutes: InputMaybe;\r\n pilotNotes: InputMaybe;\r\n positions: Array;\r\n primaryOutOfServiceEventId: InputMaybe;\r\n regionId: Scalars['ID'];\r\n weatherStatus: WeatherStatus;\r\n};\r\n\r\nexport type UpdateUnitEMSystemMapping = {\r\n divisionName: InputMaybe;\r\n id: Scalars['ID'];\r\n resourceId: Scalars['String'];\r\n sendGps: Scalars['Boolean'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateUnitNote = {\r\n content: Scalars['String'];\r\n id: Scalars['ID'];\r\n noteTime: Scalars['DateTime'];\r\n};\r\n\r\nexport type UpdateUnitPosition = {\r\n firstName: InputMaybe;\r\n id: Scalars['ID'];\r\n isFlightCrew: Scalars['Boolean'];\r\n isNonEmployee: Scalars['Boolean'];\r\n lastName: InputMaybe;\r\n name: Scalars['String'];\r\n notificationAddress: InputMaybe;\r\n teamMemberId: InputMaybe;\r\n type: UnitPositionType;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateUnitShift = {\r\n endTimeInMinutes: Scalars['Int'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n startTimeInMinutes: Scalars['Int'];\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateVehicle = {\r\n communicationCenterId: InputMaybe;\r\n companyId: Scalars['ID'];\r\n completeFlightId: InputMaybe;\r\n configurationClassId: InputMaybe;\r\n cruiseSpeed: InputMaybe;\r\n dateAcquired: InputMaybe;\r\n dispatchCompanyId: InputMaybe;\r\n faaCompanyId: InputMaybe;\r\n flightLogProcess: FlightLogProcess;\r\n id: Scalars['ID'];\r\n isPlaceholder: Scalars['Boolean'];\r\n isPositionTrackingEnabled: Scalars['Boolean'];\r\n isRetired: Scalars['Boolean'];\r\n isUnderLease: Scalars['Boolean'];\r\n makeId: InputMaybe;\r\n modelId: InputMaybe;\r\n phoneNumber: InputMaybe;\r\n regionId: InputMaybe;\r\n registrationNumber: Scalars['String'];\r\n role: VehicleRole;\r\n serialNumber: InputMaybe;\r\n skytracIMEI: InputMaybe;\r\n stateInspectionRequired: Scalars['Boolean'];\r\n type: VehicleType;\r\n year: InputMaybe;\r\n};\r\n\r\nexport type UpdateVehicleConfigurationClass = {\r\n engineCount: Scalars['Int'];\r\n engineParameters: Array;\r\n id: Scalars['ID'];\r\n legacyName: Scalars['String'];\r\n maintenanceSystemId: Scalars['String'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateVehicleControlZone = {\r\n companyId: Scalars['ID'];\r\n controlZoneId: InputMaybe;\r\n id: Scalars['ID'];\r\n vehicleId: InputMaybe;\r\n};\r\n\r\nexport type UpdateVehicleDisposition = {\r\n currentAgencyLocationId: InputMaybe;\r\n currentTripId: InputMaybe;\r\n currentTripLegId: InputMaybe;\r\n currentWaypointId: InputMaybe;\r\n id: Scalars['ID'];\r\n latestPositionReportId: InputMaybe;\r\n status: VehicleStatus;\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateVehicleMaintenance = {\r\n deferralDueDates: Array;\r\n id: Scalars['ID'];\r\n isReleasedFromOCF: InputMaybe;\r\n nextDues: Array;\r\n notes: InputMaybe;\r\n vehicleId: InputMaybe;\r\n};\r\n\r\nexport type UpdateVehicleMake = {\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateVehicleModel = {\r\n cruiseSpeedInMph: InputMaybe;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n};\r\n\r\nexport type UpdateVehicleStateInspection = {\r\n id: Scalars['ID'];\r\n inspectionDate: Scalars['DateTime'];\r\n stateAbbrevation: Scalars['String'];\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type UpdateWaypoint = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n arrivalTime: InputMaybe;\r\n arrivingType: InputMaybe;\r\n currentEtaId: InputMaybe;\r\n departureTime: InputMaybe;\r\n estimatedDurationId: InputMaybe;\r\n id: Scalars['ID'];\r\n isPatientDropoff: InputMaybe;\r\n isPatientPickup: InputMaybe;\r\n isRotorWingLz: InputMaybe;\r\n locationId: InputMaybe;\r\n name: Scalars['String'];\r\n timezoneCd: InputMaybe;\r\n type: WaypointType;\r\n};\r\n\r\nexport type UpdateWaypointDuration = {\r\n asOfTime: Scalars['DateTime'];\r\n durationInMinutes: Scalars['Int'];\r\n estimateSource: EstimatedDurationSource;\r\n positionReportId: InputMaybe;\r\n tripId: Scalars['ID'];\r\n waypointId: Scalars['ID'];\r\n};\r\n\r\nexport type UpsertPersonNotificationGroups = {\r\n notificationGroupIds: Array;\r\n personId: Scalars['ID'];\r\n};\r\n\r\nexport type UpsertQuestionChoice = {\r\n id: InputMaybe;\r\n label: Scalars['String'];\r\n questionId: InputMaybe;\r\n value: Scalars['String'];\r\n};\r\n\r\nexport type UpsertQuestionnaireQuestionResponseNote = {\r\n authorId: Scalars['ID'];\r\n dateAuthored: Scalars['DateTime'];\r\n note: Scalars['String'];\r\n questionnaireQuestionResponseId: Scalars['ID'];\r\n questionnaireQuestionResponseNoteId: InputMaybe;\r\n};\r\n\r\nexport type UpsertQuestionnaireSection = {\r\n id: InputMaybe;\r\n name: Scalars['String'];\r\n questionnaireId: InputMaybe;\r\n questions: InputMaybe>>;\r\n sequence: Scalars['Int'];\r\n};\r\n\r\nexport type UpsertQuestionnaireSectionQuestion = {\r\n activationRuleId: InputMaybe;\r\n activityType: InputMaybe;\r\n explanationRequiredChoices: InputMaybe>>;\r\n id: InputMaybe;\r\n isDisabled: Scalars['Boolean'];\r\n questionId: Scalars['ID'];\r\n questionnaireSectionId: InputMaybe;\r\n responsibleRole: UserRole;\r\n reviewRequiredChoices: InputMaybe>>;\r\n sequence: Scalars['Int'];\r\n};\r\n\r\nexport type UpsertTimelineItem = {\r\n id: InputMaybe;\r\n required: Scalars['Boolean'];\r\n sequence: Scalars['Int'];\r\n timelineId: InputMaybe;\r\n timestampTypeId: Scalars['ID'];\r\n};\r\n\r\nexport type UpsertUnitPosition = {\r\n firstName: InputMaybe;\r\n id: InputMaybe;\r\n isFlightCrew: Scalars['Boolean'];\r\n isNonEmployee: Scalars['Boolean'];\r\n lastName: InputMaybe;\r\n name: Scalars['String'];\r\n notificationAddress: InputMaybe;\r\n teamMemberId: InputMaybe;\r\n type: UnitPositionType;\r\n unitId: Scalars['ID'];\r\n};\r\n\r\nexport type UpsertVehicleMaintenanceParameters = {\r\n id: Scalars['ID'];\r\n isReleasedFromOCF: InputMaybe;\r\n maintenanceParams: InputMaybe;\r\n};\r\n\r\nexport type UserApplicationSettings = {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: TcsRealtimeTracking;\r\n};\r\n\r\nexport type UserApplicationSettingsInput = {\r\n tcsRealtimeTracking: TcsRealtimeTrackingInput;\r\n};\r\n\r\nexport enum UserRole {\r\n AsbDataManager = 'AsbDataManager',\r\n AsbViewer = 'AsbViewer',\r\n AviationDataManager = 'AviationDataManager',\r\n AviationPermissionsManager = 'AviationPermissionsManager',\r\n AviationSupervisor = 'AviationSupervisor',\r\n Biller = 'Biller',\r\n BillerCorrectionsTeam = 'BillerCorrectionsTeam',\r\n Clinical = 'Clinical',\r\n Communications = 'Communications',\r\n CommunicationsSupervisor = 'CommunicationsSupervisor',\r\n ComplianceManager = 'ComplianceManager',\r\n Developer = 'Developer',\r\n Executive = 'Executive',\r\n External = 'External',\r\n FixedWingCoordinator = 'FixedWingCoordinator',\r\n FleetStatusOperations = 'FleetStatusOperations',\r\n FleetStatusViewer = 'FleetStatusViewer',\r\n FlightLogViewer = 'FlightLogViewer',\r\n GlobalDataManager = 'GlobalDataManager',\r\n GlobalPermissionsManager = 'GlobalPermissionsManager',\r\n ImageTrend = 'ImageTrend',\r\n OCC = 'OCC',\r\n OccReader = 'OccReader',\r\n OosMaintenanceController = 'OosMaintenanceController',\r\n OosViewer = 'OosViewer',\r\n OperationsDataManager = 'OperationsDataManager',\r\n OperationsPermissionsManager = 'OperationsPermissionsManager',\r\n OpsReader = 'OpsReader',\r\n Pilot = 'Pilot',\r\n PrdAdmin = 'PrdAdmin',\r\n PrdUser = 'PrdUser',\r\n ProgramManager = 'ProgramManager',\r\n QaManager = 'QaManager',\r\n QaSupervisor = 'QaSupervisor',\r\n RemoteUser = 'RemoteUser',\r\n Stakeholder = 'Stakeholder',\r\n TrmProgramAdmin = 'TrmProgramAdmin',\r\n}\r\n\r\nexport type Vehicle = Entity &\r\n Evented & {\r\n __typename: 'Vehicle';\r\n _events: MessageEnvelopeCollection;\r\n activationRules: Maybe>>;\r\n cardSummaries: Maybe>>;\r\n communicationCenter: Maybe;\r\n communicationCenterId: Maybe;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n completeFlightId: Maybe;\r\n configurationClass: Maybe;\r\n configurationClassId: Maybe;\r\n controlZone: Maybe;\r\n controlZoneId: Maybe;\r\n cruiseSpeed: Maybe;\r\n dateAcquired: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n dispatchCompany: Maybe;\r\n dispatchCompanyId: Maybe;\r\n faaCompanyId: Maybe;\r\n flightLogProcess: FlightLogProcess;\r\n id: Scalars['ID'];\r\n isHidden: Maybe;\r\n isPlaceholder: Scalars['Boolean'];\r\n isPositionTrackingEnabled: Scalars['Boolean'];\r\n isRetired: Scalars['Boolean'];\r\n isThirdPartyVehicle: Maybe;\r\n isUnderLease: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n make: Maybe;\r\n makeId: Maybe;\r\n model: Maybe;\r\n modelId: Maybe;\r\n operations: Array;\r\n outOfServiceEvents: Maybe>>;\r\n parentUnitId: Maybe;\r\n phoneNumber: Maybe;\r\n positionReportAlerts: Array;\r\n ramco: Maybe;\r\n regionId: Maybe;\r\n registrationNumber: Scalars['String'];\r\n role: VehicleRole;\r\n serialNumber: Maybe;\r\n skytracIMEI: Maybe;\r\n stateInspectionRequired: Scalars['Boolean'];\r\n transportOffers: Maybe>>;\r\n trips: Maybe>>;\r\n type: VehicleType;\r\n unitSummaries: Maybe>>;\r\n units: Maybe>>;\r\n vehicleControlZones: Maybe>>;\r\n vehicleDispositions: Array;\r\n vehicleMaintenances: Maybe>>;\r\n vehiclePositionSummaries: Array;\r\n vehicleStateInspections: Array;\r\n year: Maybe;\r\n };\r\n\r\nexport type Vehicle_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleCollection = {\r\n __typename: 'VehicleCollection';\r\n items: Array;\r\n meta: VehicleCollectionMetadata;\r\n};\r\n\r\nexport type VehicleCollectionMetadata = CollectionMetadata & {\r\n __typename: 'VehicleCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type VehicleConfigurationClass = Entity &\r\n Evented & {\r\n __typename: 'VehicleConfigurationClass';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n engineCount: Scalars['Int'];\r\n engineParameters: Array;\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n legacyName: Scalars['String'];\r\n maintenanceSystemId: Scalars['String'];\r\n name: Scalars['String'];\r\n vehicles: Maybe>>;\r\n };\r\n\r\nexport type VehicleConfigurationClass_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleConfigurationClassCollection = {\r\n __typename: 'VehicleConfigurationClassCollection';\r\n items: Array;\r\n meta: VehicleConfigurationClassCollectionMetadata;\r\n};\r\n\r\nexport type VehicleConfigurationClassCollectionMetadata = CollectionMetadata & {\r\n __typename: 'VehicleConfigurationClassCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type VehicleConfigurationClassFilter = {\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type VehicleConfigurationClassQueries = {\r\n __typename: 'VehicleConfigurationClassQueries';\r\n all: VehicleConfigurationClassCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type VehicleConfigurationClassQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleConfigurationClassQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type VehicleControlZone = Entity &\r\n Evented & {\r\n __typename: 'VehicleControlZone';\r\n _events: MessageEnvelopeCollection;\r\n company: Company;\r\n companyId: Scalars['ID'];\r\n controlZone: Maybe;\r\n controlZoneId: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n vehicle: Maybe;\r\n vehicleId: Maybe;\r\n };\r\n\r\nexport type VehicleControlZone_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleControlZoneCollection = {\r\n __typename: 'VehicleControlZoneCollection';\r\n items: Array;\r\n meta: VehicleControlZoneCollectionMetadata;\r\n};\r\n\r\nexport type VehicleControlZoneCollectionMetadata = CollectionMetadata & {\r\n __typename: 'VehicleControlZoneCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type VehicleControlZoneFilter = {\r\n controlZoneId: InputMaybe;\r\n vehicleId: InputMaybe;\r\n};\r\n\r\nexport type VehicleControlZoneQueries = {\r\n __typename: 'VehicleControlZoneQueries';\r\n all: VehicleControlZoneCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type VehicleControlZoneQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleControlZoneQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type VehicleDisposition = Entity &\r\n Evented & {\r\n __typename: 'VehicleDisposition';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n currentAgencyLocation: Maybe;\r\n currentAgencyLocationId: Maybe;\r\n currentTrip: Maybe;\r\n currentTripId: Maybe;\r\n currentTripLeg: Maybe;\r\n currentTripLegId: Maybe;\r\n currentWaypoint: Maybe;\r\n currentWaypointId: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n etlo: Maybe;\r\n from: Maybe;\r\n id: Scalars['ID'];\r\n isAssetOutOfService: Maybe;\r\n lastQualifyingPositionReportTime: Maybe;\r\n lastTripId: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n latestFlightFollowingReport: Maybe;\r\n latestFlightFollowingReportId: Maybe;\r\n latestPositionReport: Maybe;\r\n latestPositionReportId: Maybe;\r\n latitude: Maybe;\r\n longitude: Maybe;\r\n notes: Maybe;\r\n positionSource: Maybe;\r\n positionTime: Maybe;\r\n status: VehicleStatus;\r\n statusDescription: Maybe;\r\n to: Maybe;\r\n vehicle: Vehicle;\r\n vehicleId: Scalars['ID'];\r\n vehicleSummaries: Array;\r\n };\r\n\r\nexport type VehicleDisposition_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleDispositionCollection = {\r\n __typename: 'VehicleDispositionCollection';\r\n items: Array;\r\n meta: VehicleDispositionCollectionMetadata;\r\n};\r\n\r\nexport type VehicleDispositionCollectionMetadata = CollectionMetadata & {\r\n __typename: 'VehicleDispositionCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type VehicleDispositionFilter = {\r\n companyId: InputMaybe;\r\n status: InputMaybe;\r\n};\r\n\r\nexport type VehicleFilter = {\r\n companyId: InputMaybe;\r\n companyIdList: InputMaybe>;\r\n controlZoneCompanyId: InputMaybe;\r\n controlZoneId: InputMaybe;\r\n dispatchCompanyId: InputMaybe;\r\n excludeGround: InputMaybe;\r\n excludeRetired: InputMaybe;\r\n includeHidden: InputMaybe;\r\n registrationNumberLike: InputMaybe;\r\n};\r\n\r\nexport type VehicleMaintenance = Entity &\r\n Evented & {\r\n __typename: 'VehicleMaintenance';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n deferralDueDates: Array;\r\n id: Scalars['ID'];\r\n isReleasedFromOCF: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n maintenanceParams: Maybe;\r\n nextDues: Array;\r\n notes: Maybe;\r\n vehicle: Maybe;\r\n vehicleId: Maybe;\r\n };\r\n\r\nexport type VehicleMaintenance_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleMaintenanceCollection = {\r\n __typename: 'VehicleMaintenanceCollection';\r\n items: Array;\r\n meta: VehicleMaintenanceCollectionMetadata;\r\n};\r\n\r\nexport type VehicleMaintenanceCollectionMetadata = CollectionMetadata & {\r\n __typename: 'VehicleMaintenanceCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type VehicleMake = Entity &\r\n Evented & {\r\n __typename: 'VehicleMake';\r\n _events: MessageEnvelopeCollection;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n vehicles: Maybe>>;\r\n };\r\n\r\nexport type VehicleMake_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleMakeCollection = {\r\n __typename: 'VehicleMakeCollection';\r\n items: Array;\r\n meta: VehicleMakeCollectionMetadata;\r\n};\r\n\r\nexport type VehicleMakeCollectionMetadata = CollectionMetadata & {\r\n __typename: 'VehicleMakeCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type VehicleModel = Entity &\r\n Evented & {\r\n __typename: 'VehicleModel';\r\n _events: MessageEnvelopeCollection;\r\n cruiseSpeedInMph: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n vehicles: Maybe>>;\r\n };\r\n\r\nexport type VehicleModel_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleModelCollection = {\r\n __typename: 'VehicleModelCollection';\r\n items: Array;\r\n meta: VehicleModelCollectionMetadata;\r\n};\r\n\r\nexport type VehicleModelCollectionMetadata = CollectionMetadata & {\r\n __typename: 'VehicleModelCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type VehicleModelFilter = {\r\n id: InputMaybe;\r\n nameLike: InputMaybe;\r\n};\r\n\r\nexport type VehicleModelQueries = {\r\n __typename: 'VehicleModelQueries';\r\n all: VehicleModelCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type VehicleModelQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleModelQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type VehiclePositionSummary = Entity &\r\n Evented & {\r\n __typename: 'VehiclePositionSummary';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n etlo: Maybe;\r\n id: Scalars['ID'];\r\n lastGpsAutoPositionTime: Maybe;\r\n lastPositionReportId: Maybe;\r\n lastQualifyingPositionReportTime: Maybe;\r\n latitude: Scalars['Float'];\r\n longitude: Scalars['Float'];\r\n positionSource: PositionReportSource;\r\n positionTime: Scalars['DateTime'];\r\n vehicle: Vehicle;\r\n vehicleId: Scalars['ID'];\r\n };\r\n\r\nexport type VehiclePositionSummary_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehiclePositionSummaryCollection = {\r\n __typename: 'VehiclePositionSummaryCollection';\r\n items: Array;\r\n meta: VehiclePositionSummaryCollectionMetadata;\r\n};\r\n\r\nexport type VehiclePositionSummaryCollectionMetadata = CollectionMetadata & {\r\n __typename: 'VehiclePositionSummaryCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type VehiclePositionSummaryFilter = {\r\n afterDate: InputMaybe;\r\n companyIdList: InputMaybe>;\r\n positionReportSource: InputMaybe;\r\n};\r\n\r\nexport type VehicleQueries = {\r\n __typename: 'VehicleQueries';\r\n _allVehicleModelsMeta: QueryMeta;\r\n all: VehicleCollection;\r\n allVehicleModels: Array;\r\n byId: Maybe;\r\n dispositions: VehicleDispositionCollection;\r\n summaries: VehicleSummaryCollection;\r\n summaryById: Maybe;\r\n vehicleModelById: Maybe;\r\n};\r\n\r\nexport type VehicleQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleQueriesallVehicleModelsArgs = {\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type VehicleQueriesdispositionsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleQueriessummariesArgs = {\r\n fetchpolicy: InputMaybe;\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleQueriessummaryByIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type VehicleQueriesvehicleModelByIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport enum VehicleRole {\r\n Primary = 'Primary',\r\n Spare = 'Spare',\r\n Support = 'Support',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport type VehicleStateInspection = Entity &\r\n Evented & {\r\n __typename: 'VehicleStateInspection';\r\n _events: MessageEnvelopeCollection;\r\n companyId: Scalars['ID'];\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n inspectionDate: Scalars['DateTime'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n stateAbbrevation: Scalars['String'];\r\n vehicle: Vehicle;\r\n vehicleId: Scalars['ID'];\r\n };\r\n\r\nexport type VehicleStateInspection_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleStateInspectionCollection = {\r\n __typename: 'VehicleStateInspectionCollection';\r\n items: Array;\r\n meta: VehicleStateInspectionCollectionMetadata;\r\n};\r\n\r\nexport type VehicleStateInspectionCollectionMetadata = CollectionMetadata & {\r\n __typename: 'VehicleStateInspectionCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport enum VehicleStatus {\r\n AtWaypoint = 'AtWaypoint',\r\n EnRoute = 'EnRoute',\r\n}\r\n\r\nexport type VehicleSummary = Entity &\r\n Evented & {\r\n __typename: 'VehicleSummary';\r\n _events: MessageEnvelopeCollection;\r\n cardSummaries: Maybe>>;\r\n communicationCenter: Maybe;\r\n communicationCenterId: Maybe;\r\n companyId: Scalars['ID'];\r\n currentCard: Maybe;\r\n currentCardId: Maybe;\r\n currentCardNumber: Maybe;\r\n currentCardSummary: Maybe;\r\n currentCardSummaryId: Maybe;\r\n currentOrNextLegSequence: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n dispatchCompanyId: Maybe;\r\n eta: Maybe;\r\n etlo: Maybe;\r\n from: Maybe;\r\n id: Scalars['ID'];\r\n lastKnownCoordinates: Maybe;\r\n lastQualifyingPositionReportTime: Maybe;\r\n latestPositionReportSummary: Maybe;\r\n makeName: Maybe;\r\n modelName: Maybe;\r\n regionId: Scalars['ID'];\r\n registrationNumber: Scalars['String'];\r\n serialNumber: Maybe;\r\n status: VehicleStatus;\r\n statusDescription: Scalars['String'];\r\n to: Maybe;\r\n totalLegCount: Maybe;\r\n type: VehicleType;\r\n unit: Unit;\r\n unitId: Scalars['ID'];\r\n unitSummaryId: Scalars['ID'];\r\n vehicleDisposition: VehicleDisposition;\r\n vehicleDispositionId: Scalars['ID'];\r\n };\r\n\r\nexport type VehicleSummary_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type VehicleSummaryCollection = {\r\n __typename: 'VehicleSummaryCollection';\r\n items: Array;\r\n meta: VehicleSummaryCollectionMetadata;\r\n};\r\n\r\nexport type VehicleSummaryCollectionMetadata = CollectionMetadata & {\r\n __typename: 'VehicleSummaryCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type VehicleSummaryFilter = {\r\n afterDate: InputMaybe;\r\n communicationCenterId: InputMaybe;\r\n companyId: InputMaybe;\r\n controlZoneCompanyId: InputMaybe;\r\n controlZoneId: InputMaybe;\r\n excludeCurrentDispatchCompany: InputMaybe;\r\n regionId: InputMaybe;\r\n};\r\n\r\nexport enum VehicleType {\r\n FixedWing = 'FixedWing',\r\n Ground = 'Ground',\r\n RotorWing = 'RotorWing',\r\n Unspecified = 'Unspecified',\r\n}\r\n\r\nexport enum VisibilityType {\r\n Author = 'Author',\r\n CommunicationsCenter = 'CommunicationsCenter',\r\n EntityOnly = 'EntityOnly',\r\n Region = 'Region',\r\n}\r\n\r\nexport type Waypoint = Entity &\r\n Evented & {\r\n __typename: 'Waypoint';\r\n _events: MessageEnvelopeCollection;\r\n abbreviation: Scalars['String'];\r\n address: Address;\r\n arrivalTime: Maybe;\r\n arrivingLeg: Maybe;\r\n arrivingType: Maybe;\r\n companyId: Scalars['ID'];\r\n currentEta: Maybe;\r\n currentEtaId: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n departingLeg: Maybe;\r\n departureTime: Maybe;\r\n estimatedDuration: Maybe;\r\n estimatedDurationId: Maybe;\r\n etas: Array;\r\n id: Scalars['ID'];\r\n isPatientDropoff: Maybe;\r\n isPatientPickup: Maybe;\r\n isRotorWingLz: Maybe;\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n location: Maybe;\r\n locationId: Maybe;\r\n name: Scalars['String'];\r\n timezoneCd: Maybe;\r\n type: WaypointType;\r\n vehicleDispositions: Maybe>>;\r\n };\r\n\r\nexport type Waypoint_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type WaypointCollection = {\r\n __typename: 'WaypointCollection';\r\n items: Array;\r\n meta: WaypointCollectionMetadata;\r\n};\r\n\r\nexport type WaypointCollectionMetadata = CollectionMetadata & {\r\n __typename: 'WaypointCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type WaypointSpec = {\r\n __typename: 'WaypointSpec';\r\n abbreviation: Scalars['String'];\r\n address: Address;\r\n isRotorWingLz: Maybe;\r\n locationId: Maybe;\r\n name: Scalars['String'];\r\n timezoneCd: Maybe;\r\n type: WaypointType;\r\n};\r\n\r\nexport type WaypointSpecInput = {\r\n abbreviation: Scalars['String'];\r\n address: AddressInput;\r\n isRotorWingLz: InputMaybe;\r\n locationId: InputMaybe;\r\n name: Scalars['String'];\r\n timezoneCd: InputMaybe;\r\n type: WaypointType;\r\n};\r\n\r\nexport type WaypointSummary = {\r\n __typename: 'WaypointSummary';\r\n abbreviation: Scalars['String'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n type: WaypointType;\r\n};\r\n\r\nexport type WaypointSummaryInput = {\r\n abbreviation: Scalars['String'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n type: WaypointType;\r\n};\r\n\r\nexport enum WaypointType {\r\n DropoffTeam = 'DropoffTeam',\r\n EnRouteDiversion = 'EnRouteDiversion',\r\n FuelLocation = 'FuelLocation',\r\n Other = 'Other',\r\n PatientDropoffRendezvous = 'PatientDropoffRendezvous',\r\n PatientPickupRendezvous = 'PatientPickupRendezvous',\r\n PickupTeam = 'PickupTeam',\r\n Post = 'Post',\r\n PublicRelationsSite = 'PublicRelationsSite',\r\n ReceivingFacility = 'ReceivingFacility',\r\n RendezvousPoint = 'RendezvousPoint',\r\n SceneLocation = 'SceneLocation',\r\n SendingFacility = 'SendingFacility',\r\n}\r\n\r\nexport enum WeatherStatus {\r\n Green = 'Green',\r\n Red = 'Red',\r\n Unspecified = 'Unspecified',\r\n Yellow = 'Yellow',\r\n}\r\n\r\nexport enum WebOrderCallType {\r\n RapidCall = 'RapidCall',\r\n WebOrder = 'WebOrder',\r\n}\r\n\r\nexport type WebOrderLog = Entity &\r\n Evented & {\r\n __typename: 'WebOrderLog';\r\n _events: MessageEnvelopeCollection;\r\n acknowledgedBy: Maybe;\r\n acknowledgedById: Maybe;\r\n changes: Maybe>>;\r\n dateAcknowledged: Maybe;\r\n dateCreated: Scalars['DateTime'];\r\n dateDeleted: Maybe;\r\n dateLastUpdated: Scalars['DateTime'];\r\n entityId: Maybe;\r\n entityType: Maybe;\r\n errors: Maybe;\r\n id: Scalars['ID'];\r\n isSuccess: Scalars['Boolean'];\r\n lastUpdatedBy: Maybe;\r\n lastUpdatedById: Maybe;\r\n name: Scalars['String'];\r\n requestJson: Scalars['String'];\r\n };\r\n\r\nexport type WebOrderLog_eventsArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type WebOrderLogCollection = {\r\n __typename: 'WebOrderLogCollection';\r\n items: Array;\r\n meta: WebOrderLogCollectionMetadata;\r\n};\r\n\r\nexport type WebOrderLogCollectionMetadata = CollectionMetadata & {\r\n __typename: 'WebOrderLogCollectionMetadata';\r\n total: Scalars['Int'];\r\n};\r\n\r\nexport type WebOrderLogEntityChanges = {\r\n __typename: 'WebOrderLogEntityChanges';\r\n entityType: Scalars['String'];\r\n fieldName: Scalars['String'];\r\n id: Scalars['ID'];\r\n newValue: Maybe;\r\n oldValue: Maybe;\r\n};\r\n\r\nexport type WebOrderLogEntityChangesInput = {\r\n entityType: Scalars['String'];\r\n fieldName: Scalars['String'];\r\n id: Scalars['ID'];\r\n newValue: InputMaybe;\r\n oldValue: InputMaybe;\r\n};\r\n\r\nexport enum WebhookSendStatus {\r\n Failed = 'Failed',\r\n Queued = 'Queued',\r\n Retrying = 'Retrying',\r\n Success = 'Success',\r\n}\r\n\r\nexport enum YesNoType {\r\n No = 'No',\r\n Unspecified = 'Unspecified',\r\n Yes = 'Yes',\r\n}\r\n\r\nexport type vehcilePositionSummaryQueries = {\r\n __typename: 'vehcilePositionSummaryQueries';\r\n all: VehiclePositionSummaryCollection;\r\n byVehicleId: Maybe;\r\n};\r\n\r\nexport type vehcilePositionSummaryQueriesallArgs = {\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n};\r\n\r\nexport type vehcilePositionSummaryQueriesbyVehicleIdArgs = {\r\n vehicleId: Scalars['ID'];\r\n};\r\n\r\nexport type webOrderLogQueries = {\r\n __typename: 'webOrderLogQueries';\r\n byActiveCards: WebOrderLogCollection;\r\n byEntityId: WebOrderLogCollection;\r\n byId: Maybe;\r\n};\r\n\r\nexport type webOrderLogQueriesbyEntityIdArgs = {\r\n entityId: Scalars['ID'];\r\n};\r\n\r\nexport type webOrderLogQueriesbyIdArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\nexport type AsbPageComponent_FetchAllVehiclesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type AsbPageComponent_FetchAllVehiclesQuery = {\r\n __typename: 'Query';\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n all: {\r\n __typename: 'VehicleCollection';\r\n items: Array<{\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n vehicleMaintenances: Array<{\r\n __typename: 'VehicleMaintenance';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n notes: string | null;\r\n isReleasedFromOCF: boolean | null;\r\n vehicleId: string | null;\r\n deferralDueDates: Array<{\r\n __typename: 'DeferralDueDate';\r\n id: string;\r\n dueDate: Date | number | string;\r\n triggerValue: number | null;\r\n notes: string | null;\r\n }>;\r\n nextDues: Array<{\r\n __typename: 'NextDue';\r\n id: string;\r\n typeId: string;\r\n cycleType: NextDueCycleType;\r\n value: string;\r\n triggerValue: number;\r\n notes: string | null;\r\n inTolerance: boolean | null;\r\n }>;\r\n maintenanceParams: {\r\n __typename: 'MaintenanceParameters';\r\n endingHobbs: number | null;\r\n airframeTime: number | null;\r\n totalLandings: number | null;\r\n engine1: {\r\n __typename: 'EngineParameters';\r\n time: number | null;\r\n starts: number | null;\r\n } | null;\r\n engine2: {\r\n __typename: 'EngineParameters';\r\n time: number | null;\r\n starts: number | null;\r\n } | null;\r\n } | null;\r\n } | null> | null;\r\n vehicleStateInspections: Array<{\r\n __typename: 'VehicleStateInspection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: Date | number | string;\r\n vehicleId: string;\r\n companyId: string;\r\n }>;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type AsbPageComponent_FetchAllNextDueTypesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type AsbPageComponent_FetchAllNextDueTypesQuery = {\r\n __typename: 'Query';\r\n nextDueTypes: {\r\n __typename: 'NextDueTypeQueries';\r\n all: {\r\n __typename: 'NextDueTypeCollection';\r\n items: Array<{ __typename: 'NextDueType'; id: string; name: string; dataType: string }>;\r\n };\r\n };\r\n};\r\n\r\nexport type AsbPageComponent_FetchAllVehicleModelsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type AsbPageComponent_FetchAllVehicleModelsQuery = {\r\n __typename: 'Query';\r\n vehicleModels: {\r\n __typename: 'VehicleModelQueries';\r\n all: {\r\n __typename: 'VehicleModelCollection';\r\n items: Array<{\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type GlobalDataContextService_FetchQueryVariables = Exact<{ [key: string]: never }>;\r\n\r\nexport type GlobalDataContextService_FetchQuery = {\r\n __typename: 'Query';\r\n units: {\r\n __typename: 'UnitQueries';\r\n summaries: {\r\n __typename: 'UnitSummaryCollection';\r\n items: Array<{\r\n __typename: 'UnitSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n lastPilotUpdateName: string | null;\r\n baseTimezoneCd: string | null;\r\n vehicleSummaryId: string | null;\r\n vehicleId: string | null;\r\n communicationCenterId: string | null;\r\n shifts: Array<{\r\n __typename: 'UnitShiftSummary';\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n }>;\r\n outOfServiceEvents: Array<{\r\n __typename: 'OutOfServiceEventSummary';\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonName: string;\r\n reasonId: string;\r\n startTime: Date | number | string | null;\r\n notes: string | null;\r\n }>;\r\n positions: Array<{\r\n __typename: 'UnitPositionSummary';\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n isNonCompliant: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n teamMemberFirstName: string | null;\r\n teamMemberLastName: string | null;\r\n nonComplianceReason: string | null;\r\n }>;\r\n }>;\r\n meta: { __typename: 'UnitSummaryCollectionMetadata'; total: number };\r\n };\r\n };\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n summaries: {\r\n __typename: 'VehicleSummaryCollection';\r\n items: Array<{\r\n __typename: 'VehicleSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n unitSummaryId: string;\r\n regionId: string;\r\n status: VehicleStatus;\r\n statusDescription: string;\r\n vehicleDispositionId: string;\r\n unitId: string;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n makeName: string | null;\r\n modelName: string | null;\r\n etlo: Date | number | string | null;\r\n eta: Date | number | string | null;\r\n currentCardNumber: string | null;\r\n currentCardSummaryId: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n currentOrNextLegSequence: number | null;\r\n totalLegCount: number | null;\r\n communicationCenterId: string | null;\r\n currentCardId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n latestPositionReportSummary: {\r\n __typename: 'PositionReportSummary';\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n } | null;\r\n lastKnownCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'VehicleSummaryCollectionMetadata'; total: number };\r\n };\r\n };\r\n requesterReferralReasons: {\r\n __typename: 'RequesterReferralReasonQueries';\r\n all: {\r\n __typename: 'RequesterReferralReasonCollection';\r\n items: Array<{\r\n __typename: 'RequesterReferralReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }>;\r\n };\r\n };\r\n outOfServiceReasons: {\r\n __typename: 'OutOfServiceReasonQueries';\r\n all: {\r\n __typename: 'OutOfServiceReasonCollection';\r\n items: Array<{\r\n __typename: 'OutOfServiceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n controllable: boolean;\r\n isVehicleReason: boolean;\r\n description: string | null;\r\n }>;\r\n meta: { __typename: 'OutOfServiceReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n outOfServiceSecondaryReasons: {\r\n __typename: 'OutOfServiceSecondaryReasonQueries';\r\n all: {\r\n __typename: 'OutOfServiceSecondaryReasonCollection';\r\n items: Array<{\r\n __typename: 'OutOfServiceSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n outOfServiceReasonId: string;\r\n }>;\r\n meta: { __typename: 'OutOfServiceSecondaryReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n companies: {\r\n __typename: 'CompanyQueries';\r\n all: {\r\n __typename: 'CompanyCollection';\r\n items: Array<{\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n }>;\r\n meta: { __typename: 'CompanyCollectionMetadata'; total: number };\r\n };\r\n };\r\n regionGroups: {\r\n __typename: 'RegionGroupQueries';\r\n all: {\r\n __typename: 'RegionGroupCollection';\r\n items: Array<{\r\n __typename: 'RegionGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n departmentId: string;\r\n companyId: string;\r\n }>;\r\n meta: { __typename: 'RegionGroupCollectionMetadata'; total: number };\r\n };\r\n };\r\n regions: {\r\n __typename: 'RegionQueries';\r\n all: {\r\n __typename: 'RegionCollection';\r\n items: Array<{\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n }>;\r\n meta: { __typename: 'RegionCollectionMetadata'; total: number };\r\n };\r\n };\r\n applicationNotifications: {\r\n __typename: 'ApplicationNotificationQueries';\r\n all: {\r\n __typename: 'ApplicationNotificationCollection';\r\n items: Array<{\r\n __typename: 'ApplicationNotification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n urgency: ApplicationNotificationUrgency;\r\n displayOnBanner: boolean;\r\n dismissable: boolean;\r\n notification: string;\r\n title: string | null;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n createdById: string | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n }>;\r\n meta: { __typename: 'ApplicationNotificationCollectionMetadata'; total: number };\r\n };\r\n };\r\n configurationSettings: {\r\n __typename: 'ConfigurationSettingQueries';\r\n global: {\r\n __typename: 'ConfigurationSetting';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string | null;\r\n defaultUnitCommittedDeclineReasonId: string | null;\r\n defaultUnitOutOfServiceDeclineReasonId: string | null;\r\n requestReferredInternallyCancellationReasonId: string | null;\r\n requestReferredExternallyCancellationReasonId: string | null;\r\n crewGoingByGroundOutOfServiceReasonId: string | null;\r\n assetReassignedDeclineReasonId: string | null;\r\n externallyCancelledCancellationReasonId: string | null;\r\n pilotReportGracePeriodInMinutes: number | null;\r\n sameDestinationWarningThresholdInMinutes: number | null;\r\n bugRequestEmail: string | null;\r\n featureRequestEmail: string | null;\r\n } | null;\r\n };\r\n gis: {\r\n __typename: 'GisQueries';\r\n allTimezones: Array<{\r\n __typename: 'Timezone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n isDst: boolean;\r\n utcOffset: number;\r\n }>;\r\n };\r\n declineReasons: {\r\n __typename: 'DeclineReasonQueries';\r\n all: {\r\n __typename: 'DeclineReasonCollection';\r\n items: Array<{\r\n __typename: 'DeclineReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n declineCategoryId: string;\r\n controllable: boolean;\r\n canBeSkipReason: boolean;\r\n canBeAbortReason: boolean;\r\n canBeBulkSkipReason: boolean;\r\n canBeOneCallSkipReason: boolean;\r\n isUnitAvailableAfterAbort: boolean;\r\n }>;\r\n meta: { __typename: 'DeclineReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n declineSecondaryReasons: {\r\n __typename: 'DeclineSecondaryReasonQueries';\r\n all: {\r\n __typename: 'DeclineSecondaryReasonCollection';\r\n items: Array<{\r\n __typename: 'DeclineSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n declineReasonId: string;\r\n }>;\r\n meta: { __typename: 'DeclineSecondaryReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n declineCategories: {\r\n __typename: 'DeclineCategoryQueries';\r\n all: {\r\n __typename: 'DeclineCategoryCollection';\r\n items: Array<{\r\n __typename: 'DeclineCategory';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n defaultDeclineReasonId: string | null;\r\n }>;\r\n meta: { __typename: 'DeclineCategoryCollectionMetadata'; total: number };\r\n };\r\n };\r\n cancellationReasons: {\r\n __typename: 'CancellationReasonQueries';\r\n all: {\r\n __typename: 'CancellationReasonCollection';\r\n items: Array<{\r\n __typename: 'CancellationReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n isTransferCenterReason: boolean;\r\n canBeUnitCancellationReason: boolean | null;\r\n cancellationCategoryId: string | null;\r\n }>;\r\n meta: { __typename: 'CancellationReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n cancellationSecondaryReasons: {\r\n __typename: 'CancellationSecondaryReasonQueries';\r\n all: {\r\n __typename: 'CancellationSecondaryReasonCollection';\r\n items: Array<{\r\n __typename: 'CancellationSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cancellationReasonId: string;\r\n }>;\r\n meta: { __typename: 'CancellationSecondaryReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n capabilities: {\r\n __typename: 'CapabilityQueries';\r\n all: {\r\n __typename: 'CapabilityCollection';\r\n items: Array<{\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n }>;\r\n meta: { __typename: 'CapabilityCollectionMetadata'; total: number };\r\n };\r\n };\r\n timestampTypes: {\r\n __typename: 'TimestampTypeQueries';\r\n all: {\r\n __typename: 'TimestampTypeCollection';\r\n items: Array<{\r\n __typename: 'TimestampType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n order: number;\r\n systemTimestampType: SystemTimestampType | null;\r\n description: string | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }>;\r\n meta: { __typename: 'TimestampTypeCollectionMetadata'; total: number };\r\n };\r\n };\r\n transportReasons: {\r\n __typename: 'TransportReasonQueries';\r\n all: {\r\n __typename: 'TransportReasonCollection';\r\n items: Array<{\r\n __typename: 'TransportReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n operationType: OperationType | null;\r\n }>;\r\n meta: { __typename: 'TransportReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n transferReasons: {\r\n __typename: 'TransferReasonQueries';\r\n all: {\r\n __typename: 'TransferReasonCollection';\r\n items: Array<{\r\n __typename: 'TransferReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }>;\r\n meta: { __typename: 'TransferReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n diversionReasons: {\r\n __typename: 'DiversionReasonQueries';\r\n all: {\r\n __typename: 'DiversionReasonCollection';\r\n items: Array<{\r\n __typename: 'DiversionReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }>;\r\n meta: { __typename: 'DiversionReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n nonReferralReasons: {\r\n __typename: 'NonReferralReasonQueries';\r\n all: {\r\n __typename: 'NonReferralReasonCollection';\r\n items: Array<{\r\n __typename: 'NonReferralReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n associatedCancellationReasonId: string | null;\r\n associatedCancellationSecondaryReasonId: string | null;\r\n }>;\r\n meta: { __typename: 'NonReferralReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n facilityNonAcceptanceReasons: {\r\n __typename: 'FacilityNonAcceptanceReasonQueries';\r\n all: {\r\n __typename: 'FacilityNonAcceptanceReasonCollection';\r\n items: Array<{\r\n __typename: 'FacilityNonAcceptanceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n facilityNonAcceptanceReasonType: NonAcceptanceType;\r\n }>;\r\n meta: { __typename: 'FacilityNonAcceptanceReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n externalActionTypes: {\r\n __typename: 'ExternalActionTypeQueries';\r\n all: {\r\n __typename: 'ExternalActionTypeCollection';\r\n items: Array<{\r\n __typename: 'ExternalActionType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n actionTypeName: string;\r\n actionTypeDescription: string;\r\n priority: number;\r\n }>;\r\n meta: { __typename: 'ExternalActionTypeCollectionMetadata'; total: number };\r\n };\r\n };\r\n archiveLogs: {\r\n __typename: 'ArchiveLogQueries';\r\n latestAll: {\r\n __typename: 'ArchiveLogCollection';\r\n items: Array<{\r\n __typename: 'ArchiveLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n archiveEntityType: ArchiveEntityType;\r\n archivedUntilDate: Date | number | string;\r\n isError: boolean;\r\n notes: string | null;\r\n }>;\r\n };\r\n };\r\n authenticatedIdentity: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n };\r\n userIdentity: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n accessibleItems: Array<{\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }>;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n };\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n all: {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array<{\r\n __typename: 'CommunicationCenter';\r\n states: Array | null;\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n }>;\r\n };\r\n };\r\n controlZones: {\r\n __typename: 'ControlZoneQueries';\r\n all: {\r\n __typename: 'ControlZoneCollection';\r\n items: Array<{\r\n __typename: 'ControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n }>;\r\n };\r\n };\r\n vehicleControlZones: {\r\n __typename: 'VehicleControlZoneQueries';\r\n all: {\r\n __typename: 'VehicleControlZoneCollection';\r\n items: Array<{\r\n __typename: 'VehicleControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n controlZoneId: string | null;\r\n vehicleId: string | null;\r\n }>;\r\n };\r\n };\r\n baseControlZones: {\r\n __typename: 'BaseControlZoneQueries';\r\n all: {\r\n __typename: 'BaseControlZoneCollection';\r\n items: Array<{\r\n __typename: 'BaseControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n controlZoneId: string;\r\n baseId: string;\r\n companyId: string;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type CardSearchComponent_SearchForCardsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type CardSearchComponent_SearchForCardsQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n search: {\r\n __typename: 'CardSearchResultCollection';\r\n meta: { __typename: 'CardCollectionMetadata'; total: number };\r\n items: Array<{\r\n __typename: 'CardSearchResult';\r\n id: string;\r\n cardNumber: string;\r\n companyId: string;\r\n companyCode: string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n status: CardStatus | null;\r\n callStatus: CardCallStatus | null;\r\n isBillable: boolean;\r\n isLocked: boolean | null;\r\n lastOfferedUnit: { __typename: 'CardSearchResultUnit'; id: string; name: string } | null;\r\n operation: {\r\n __typename: 'CardSearchResultOperation';\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n unit: { __typename: 'CardSearchResultUnit'; id: string; name: string } | null;\r\n vehicle: {\r\n __typename: 'CardSearchResultVehicle';\r\n id: string;\r\n registrationNumber: string;\r\n } | null;\r\n } | null;\r\n request: {\r\n __typename: 'CardSearchResultRequest';\r\n id: string;\r\n status: RequestStatus;\r\n requestedOperationType: OperationType;\r\n pickupLocation: {\r\n __typename: 'CardSearchResultRequestLocation';\r\n id: string;\r\n name: string;\r\n type: WaypointType;\r\n locationId: string | null;\r\n } | null;\r\n dropoffLocation: {\r\n __typename: 'CardSearchResultRequestLocation';\r\n id: string;\r\n name: string;\r\n type: WaypointType;\r\n locationId: string | null;\r\n } | null;\r\n } | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type NewCardSearchComponent_SearchForCardsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type NewCardSearchComponent_SearchForCardsQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n searchv2: {\r\n __typename: 'CardSearchResultCollection';\r\n meta: { __typename: 'CardCollectionMetadata'; total: number };\r\n items: Array<{\r\n __typename: 'CardSearchResult';\r\n id: string;\r\n cardNumber: string;\r\n createdById: string | null;\r\n createdBy: string | null;\r\n companyId: string;\r\n companyCode: string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n status: CardStatus | null;\r\n callStatus: CardCallStatus | null;\r\n isBillable: boolean;\r\n isLocked: boolean | null;\r\n lastOfferedUnit: { __typename: 'CardSearchResultUnit'; id: string; name: string } | null;\r\n operation: {\r\n __typename: 'CardSearchResultOperation';\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n unit: { __typename: 'CardSearchResultUnit'; id: string; name: string } | null;\r\n vehicle: {\r\n __typename: 'CardSearchResultVehicle';\r\n id: string;\r\n registrationNumber: string;\r\n } | null;\r\n } | null;\r\n request: {\r\n __typename: 'CardSearchResultRequest';\r\n id: string;\r\n status: RequestStatus;\r\n requestedOperationType: OperationType;\r\n pickupLocation: {\r\n __typename: 'CardSearchResultRequestLocation';\r\n id: string;\r\n name: string;\r\n type: WaypointType;\r\n locationId: string | null;\r\n } | null;\r\n dropoffLocation: {\r\n __typename: 'CardSearchResultRequestLocation';\r\n id: string;\r\n name: string;\r\n type: WaypointType;\r\n locationId: string | null;\r\n } | null;\r\n } | null;\r\n region: {\r\n __typename: 'CardSearchResultRegion';\r\n id: string;\r\n name: string;\r\n communicationCenter: {\r\n __typename: 'CardSearchResultCommunicationCenter';\r\n id: string;\r\n name: string;\r\n } | null;\r\n } | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type NewCardSearchComponent_FetchAllPeopleQueryVariables = Exact<{\r\n nameLike: InputMaybe;\r\n personId: InputMaybe;\r\n companyId: InputMaybe;\r\n}>;\r\n\r\nexport type NewCardSearchComponent_FetchAllPeopleQuery = {\r\n __typename: 'Query';\r\n people: {\r\n __typename: 'PersonQueries';\r\n all: {\r\n __typename: 'PersonCollection';\r\n items: Array<{\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n }>;\r\n meta: { __typename: 'PersonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type NewCardSearchComponent_FetchAllAgencyLocationsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type NewCardSearchComponent_FetchAllAgencyLocationsQuery = {\r\n __typename: 'Query';\r\n agencyLocations: {\r\n __typename: 'AgencyLocationQueries';\r\n all: {\r\n __typename: 'AgencyLocationCollection';\r\n items: Array<{\r\n __typename: 'AgencyLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n agencyId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n }>;\r\n meta: { __typename: 'AgencyLocationCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type NewCardSearchComponent_FetchAllCommunicationCentersQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type NewCardSearchComponent_FetchAllCommunicationCentersQuery = {\r\n __typename: 'Query';\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n all: {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array<{\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n }>;\r\n meta: { __typename: 'CommunicationCenterCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type OosRumEventsComponent_FetchOosDashboardEventsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type OosRumEventsComponent_FetchOosDashboardEventsQuery = {\r\n __typename: 'Query';\r\n outOfServiceEvents: {\r\n __typename: 'OutOfServiceEventQueries';\r\n dashboard: {\r\n __typename: 'OutOfServiceEventDashboardDataCollection';\r\n items: Array<{\r\n __typename: 'OutOfServiceEventDashboardData';\r\n id: string;\r\n eventNumber: string;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n registrationNumber: string | null;\r\n unitVehicleTailNumber: string | null;\r\n companyId: string;\r\n communicationCenterName: string | null;\r\n reasonId: string;\r\n reasonName: string;\r\n secondaryReasonId: string | null;\r\n secondaryReasonName: string | null;\r\n unitName: string | null;\r\n baseName: string | null;\r\n estimatedEndTime: Date | number | string;\r\n vehicleId: string | null;\r\n typeName: string;\r\n entityType: string | null;\r\n communicationCenterId: string | null;\r\n }>;\r\n meta: { __typename: 'OutOfServiceEventDashboardDataMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type OosRumNotificationAddDialogComponent_FetchAllNotificationTemplatesQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n }>;\r\n\r\nexport type OosRumNotificationAddDialogComponent_FetchAllNotificationTemplatesQuery = {\r\n __typename: 'Query';\r\n notificationTemplates: {\r\n __typename: 'NotificationTemplateQueries';\r\n all: {\r\n __typename: 'NotificationTemplateCollection';\r\n items: Array<{\r\n __typename: 'NotificationTemplate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n contextType: EntityType;\r\n bodyTemplate: string;\r\n canBeManualTrigger: boolean;\r\n companyId: string | null;\r\n triggerType: NotificationTriggerType | null;\r\n triggerValue: string | null;\r\n activationRuleId: string | null;\r\n recipientTypes: Array | null;\r\n subjectTemplate: string | null;\r\n requiresApproval: boolean | null;\r\n groupTypes: Array | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type OosRumNotificationAddDialogComponent_DeriveOosTemplateQueryVariables = Exact<{\r\n outOfServiceEventId: Scalars['ID'];\r\n templateId: Scalars['ID'];\r\n}>;\r\n\r\nexport type OosRumNotificationAddDialogComponent_DeriveOosTemplateQuery = {\r\n __typename: 'Query';\r\n notificationTemplates: {\r\n __typename: 'NotificationTemplateQueries';\r\n deriveOOSTemplate: {\r\n __typename: 'NotificationTemplateResponse';\r\n activityId: string | null;\r\n responseCode: string | null;\r\n errors: Array | null;\r\n data: {\r\n __typename: 'NotificationTemplateData';\r\n subject: string | null;\r\n body: string | null;\r\n recipients: Array<{\r\n __typename: 'Recipient';\r\n name: string | null;\r\n address: string;\r\n } | null> | null;\r\n } | null;\r\n };\r\n };\r\n};\r\n\r\nexport type OosRumAddDialogComponent_FetchOosEventsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type OosRumAddDialogComponent_FetchOosEventsQuery = {\r\n __typename: 'Query';\r\n outOfServiceEvents: {\r\n __typename: 'OutOfServiceEventQueries';\r\n dashboard: {\r\n __typename: 'OutOfServiceEventDashboardDataCollection';\r\n items: Array<{\r\n __typename: 'OutOfServiceEventDashboardData';\r\n id: string;\r\n eventNumber: string;\r\n }>;\r\n meta: { __typename: 'OutOfServiceEventDashboardDataMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type OosRumAddDialogComponent_FetchUnitPositionsByUnitIdQueryVariables = Exact<{\r\n unitId: Scalars['ID'];\r\n}>;\r\n\r\nexport type OosRumAddDialogComponent_FetchUnitPositionsByUnitIdQuery = {\r\n __typename: 'Query';\r\n units: {\r\n __typename: 'UnitQueries';\r\n byId: {\r\n __typename: 'Unit';\r\n id: string;\r\n positions: Array<{\r\n __typename: 'UnitPosition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n unitId: string;\r\n companyId: string;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type OosRumAddDialogComponent_FetchVehiclesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type OosRumAddDialogComponent_FetchVehiclesQuery = {\r\n __typename: 'Query';\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n all: {\r\n __typename: 'VehicleCollection';\r\n items: Array<{ __typename: 'Vehicle'; id: string; registrationNumber: string }>;\r\n };\r\n };\r\n};\r\n\r\nexport type OosRumNotificationsComponent_FetchOosDashboardNotificationsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type OosRumNotificationsComponent_FetchOosDashboardNotificationsQuery = {\r\n __typename: 'Query';\r\n notifications: {\r\n __typename: 'NotificationQueries';\r\n all: {\r\n __typename: 'NotificationCollection';\r\n items: Array<{\r\n __typename: 'Notification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: NotificationStatus;\r\n body: string;\r\n companyId: string;\r\n cardId: string | null;\r\n subject: string | null;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n }>;\r\n meta: { __typename: 'NotificationCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type OosRumNotificationsComponent_FetchAllNotificationTemplatesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type OosRumNotificationsComponent_FetchAllNotificationTemplatesQuery = {\r\n __typename: 'Query';\r\n notificationTemplates: {\r\n __typename: 'NotificationTemplateQueries';\r\n all: {\r\n __typename: 'NotificationTemplateCollection';\r\n items: Array<{\r\n __typename: 'NotificationTemplate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n contextType: EntityType;\r\n bodyTemplate: string;\r\n canBeManualTrigger: boolean;\r\n companyId: string | null;\r\n triggerType: NotificationTriggerType | null;\r\n triggerValue: string | null;\r\n activationRuleId: string | null;\r\n recipientTypes: Array | null;\r\n subjectTemplate: string | null;\r\n requiresApproval: boolean | null;\r\n groupTypes: Array | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type CardTimelineComponent_FetchTimelineItemsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type CardTimelineComponent_FetchTimelineItemsQuery = {\r\n __typename: 'Query';\r\n timelineItems: {\r\n __typename: 'TimelineItemQueries';\r\n all: {\r\n __typename: 'TimelineItemCollection';\r\n items: Array<{\r\n __typename: 'TimelineItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n timestampTypeId: string;\r\n required: boolean;\r\n sequence: number;\r\n timelineId: string;\r\n timeline: {\r\n __typename: 'Timeline';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n activationRuleId: string | null;\r\n };\r\n }>;\r\n meta: { __typename: 'TimelineItemCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type RequestLocationFormComponent_FetchMedicalFacilityEntitiesQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type RequestLocationFormComponent_FetchMedicalFacilityEntitiesQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n byId: {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n defaultLandingZone: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n defaultFixedWingLandingZone: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n units: Array<{\r\n __typename: 'MedicalFacilityUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n medicalFacilityId: string;\r\n phoneNumber: string | null;\r\n }>;\r\n associatedPhysicians: Array<{\r\n __typename: 'MedicalFacilityPhysician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n physicianId: string;\r\n medicalFacilityId: string;\r\n physician: {\r\n __typename: 'Physician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n };\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type Card_FetchNotificationEntitiesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n includeItems?: Scalars['Boolean'];\r\n includeCount?: Scalars['Boolean'];\r\n}>;\r\n\r\nexport type Card_FetchNotificationEntitiesQuery = {\r\n __typename: 'Query';\r\n notifications: {\r\n __typename: 'NotificationQueries';\r\n all: {\r\n __typename: 'NotificationCollection';\r\n items?: Array<{\r\n __typename: 'Notification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: NotificationStatus;\r\n body: string;\r\n companyId: string;\r\n cardId: string | null;\r\n subject: string | null;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n recipients: Array<{\r\n __typename: 'NotificationRecipient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n notificationId: string;\r\n companyId: string;\r\n name: string | null;\r\n notificationAddress: string | null;\r\n userId: string | null;\r\n messageId: string | null;\r\n messageStatus: MessageStatus | null;\r\n message: {\r\n __typename: 'TrackedMessage';\r\n messageStatusUpdates: Array<{\r\n __typename: 'MessageStatusUpdate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: MessageStatus;\r\n trackedMessageId: string;\r\n error: string | null;\r\n vendorMessage: string | null;\r\n metadataJson: string | null;\r\n }>;\r\n } | null;\r\n }>;\r\n }>;\r\n meta?: { __typename: 'NotificationCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type Card_FetchTimeEntitiesQueryVariables = Exact<{\r\n cardId: Scalars['ID'];\r\n timestampsFilter: InputMaybe;\r\n timestampsUsersfilter: InputMaybe;\r\n includeTimestamps?: Scalars['Boolean'];\r\n includeTimestampDistinctUsers?: Scalars['Boolean'];\r\n includeActiveTimelines?: Scalars['Boolean'];\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type Card_FetchTimeEntitiesQuery = {\r\n __typename: 'Query';\r\n timestampsByCard: {\r\n __typename: 'TimestampQueries';\r\n byCardId: {\r\n __typename: 'TimestampCollection';\r\n items: Array<{\r\n __typename: 'Timestamp';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n time: Date | number | string;\r\n typeId: string;\r\n cardId: string;\r\n companyId: string;\r\n userId: string | null;\r\n note: string | null;\r\n requestId: string | null;\r\n operationId: string | null;\r\n personsInvolved: string | null;\r\n }>;\r\n meta: { __typename: 'TimestampCollectionMetadata'; total: number };\r\n };\r\n };\r\n timestampUsersByCard: {\r\n __typename: 'TimestampQueries';\r\n byCardId: {\r\n __typename: 'TimestampCollection';\r\n items: Array<{\r\n __typename: 'Timestamp';\r\n user: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'TimestampCollectionMetadata'; total: number };\r\n };\r\n };\r\n activeTimelines?: {\r\n __typename: 'ActiveTimelineQueries';\r\n byCardId: {\r\n __typename: 'ActiveTimelineCollection';\r\n items: Array<{\r\n __typename: 'ActiveTimeline';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n timelineId: string;\r\n companyId: string;\r\n matchType: RuleMatchType;\r\n entityType: EntityType;\r\n entityId: string;\r\n }>;\r\n meta: { __typename: 'ActiveTimelineCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type QuestionnaireResponseContextResolver_FetchQuestionnaireResponseQueryVariables = Exact<{\r\n cardNumber: Scalars['ID'];\r\n}>;\r\n\r\nexport type QuestionnaireResponseContextResolver_FetchQuestionnaireResponseQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n byCardNumber: {\r\n __typename: 'Card';\r\n questionnaireResponses: Array<{\r\n __typename: 'QuestionnaireResponse';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: QuestionnaireResponseStatus;\r\n questionnaireId: string;\r\n companyId: string;\r\n cardId: string;\r\n currentReviewLevel: UserRole | null;\r\n completedById: string | null;\r\n dateCompleted: Date | number | string | null;\r\n communicationsReviewById: string | null;\r\n dateCommunicationsReviewed: Date | number | string | null;\r\n supervisorReviewById: string | null;\r\n dateSupervisorReviewed: Date | number | string | null;\r\n managerReviewById: string | null;\r\n dateManagerReviewed: Date | number | string | null;\r\n questionnaireQuestionResponses: Array<{\r\n __typename: 'QuestionnaireQuestionResponse';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireResponseId: string;\r\n questionnaireSectionQuestionId: string;\r\n matchType: RuleMatchType;\r\n reviewRequired: boolean;\r\n companyId: string;\r\n responseValue: string | null;\r\n explanation: string | null;\r\n questionnaireQuestionResponseNotes: Array<{\r\n __typename: 'QuestionnaireQuestionResponseNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireQuestionResponseId: string;\r\n authorId: string;\r\n dateAuthored: Date | number | string;\r\n note: string;\r\n companyId: string;\r\n }>;\r\n }>;\r\n questionnaire: {\r\n __typename: 'Questionnaire';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n type: QuestionnaireType;\r\n communicationCenterId: string | null;\r\n questionnaireSections: Array<{\r\n __typename: 'QuestionnaireSection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n questionnaireId: string;\r\n sequence: number;\r\n questionnaireSectionQuestions: Array<{\r\n __typename: 'QuestionnaireSectionQuestion';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireSectionId: string;\r\n questionId: string;\r\n responsibleRole: UserRole;\r\n sequence: number;\r\n isDisabled: boolean;\r\n activationRuleId: string | null;\r\n activityType: string | null;\r\n question: {\r\n __typename: 'Question';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n question: string;\r\n questionType: QuestionType;\r\n dataType: QuestionDataType | null;\r\n choices: Array<{\r\n __typename: 'QuestionChoice';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n label: string;\r\n value: string;\r\n questionId: string;\r\n }>;\r\n };\r\n explanationRequiredChoices: Array<{\r\n __typename: 'IdListItem';\r\n id: string;\r\n } | null> | null;\r\n reviewRequiredChoices: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }>;\r\n }>;\r\n };\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type CommunicationCenterInfoComponent_FetchCommunicationCenterQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type CommunicationCenterInfoComponent_FetchCommunicationCenterQuery = {\r\n __typename: 'Query';\r\n units: {\r\n __typename: 'UnitQueries';\r\n byId: {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n region: {\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n communicationCenter: {\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n };\r\n };\r\n } | null;\r\n };\r\n};\r\n\r\nexport type ExternalAgencyInfoComponent_FetchExternalAgencyLocationQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type ExternalAgencyInfoComponent_FetchExternalAgencyLocationQuery = {\r\n __typename: 'Query';\r\n agencyLocations: {\r\n __typename: 'AgencyLocationQueries';\r\n byId: {\r\n __typename: 'AgencyLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n agencyId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type FetchRequestCandidateUnitContextQueryVariables = Exact<{\r\n unitId: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequestCandidateUnitContextQuery = {\r\n __typename: 'Query';\r\n units: {\r\n __typename: 'UnitQueries';\r\n byId: {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n positions: Array<{\r\n __typename: 'UnitPosition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n unitId: string;\r\n companyId: string;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n teamMember: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n }>;\r\n shifts: Array<{\r\n __typename: 'UnitShift';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n companyId: string;\r\n }>;\r\n vehicle: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n vehicleDispositions: Array<{\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n }>;\r\n model: {\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n } | null;\r\n vehicleStateInspections: Array<{\r\n __typename: 'VehicleStateInspection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: Date | number | string;\r\n vehicleId: string;\r\n companyId: string;\r\n }>;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type RequestRequesterSpecialtyTeamFormComponent_FetchAllSpecialtyTeamsQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n }>;\r\n\r\nexport type RequestRequesterSpecialtyTeamFormComponent_FetchAllSpecialtyTeamsQuery = {\r\n __typename: 'Query';\r\n specialtyTeams: {\r\n __typename: 'SpecialtyTeamQueries';\r\n all: {\r\n __typename: 'SpecialtyTeamCollection';\r\n items: Array<{\r\n __typename: 'SpecialtyTeam';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n affiliationId: string;\r\n companyId: string;\r\n }>;\r\n meta: { __typename: 'SpecialtyTeamCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type RequestViewComponent_FetchAllSpecialtyTeamMembersQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type RequestViewComponent_FetchAllSpecialtyTeamMembersQuery = {\r\n __typename: 'Query';\r\n specialtyTeamMembers: {\r\n __typename: 'SpectialtyTeamMemberQueries';\r\n all: {\r\n __typename: 'SpecialtyTeamMemberCollection';\r\n items: Array<{\r\n __typename: 'SpecialtyTeamMember';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n specialtyTeamId: string;\r\n teamMemberId: string;\r\n companyId: string;\r\n weightInKg: number | null;\r\n teamMember: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n };\r\n }>;\r\n meta: { __typename: 'SpecialtyTeamMemberCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type SpecialtyTeamMemberSelectorComponent_FetchAllSpecialtyTeamMembersQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n }>;\r\n\r\nexport type SpecialtyTeamMemberSelectorComponent_FetchAllSpecialtyTeamMembersQuery = {\r\n __typename: 'Query';\r\n specialtyTeamMembers: {\r\n __typename: 'SpectialtyTeamMemberQueries';\r\n all: {\r\n __typename: 'SpecialtyTeamMemberCollection';\r\n items: Array<{\r\n __typename: 'SpecialtyTeamMember';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n specialtyTeamId: string;\r\n teamMemberId: string;\r\n companyId: string;\r\n weightInKg: number | null;\r\n teamMember: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n };\r\n }>;\r\n meta: { __typename: 'SpecialtyTeamMemberCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type FetchTransportOfferUnitContextQueryVariables = Exact<{\r\n unitId: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTransportOfferUnitContextQuery = {\r\n __typename: 'Query';\r\n units: {\r\n __typename: 'UnitQueries';\r\n byId: {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n positions: Array<{\r\n __typename: 'UnitPosition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n unitId: string;\r\n companyId: string;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n teamMember: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n }>;\r\n shifts: Array<{\r\n __typename: 'UnitShift';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n companyId: string;\r\n }>;\r\n vehicle: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n vehicleDispositions: Array<{\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n }>;\r\n model: {\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n } | null;\r\n vehicleStateInspections: Array<{\r\n __typename: 'VehicleStateInspection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: Date | number | string;\r\n vehicleId: string;\r\n companyId: string;\r\n }>;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type FetchTransportOffersForCardQueryVariables = Exact<{\r\n cardNumber: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTransportOffersForCardQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n byCardNumber: {\r\n __typename: 'Card';\r\n request: {\r\n __typename: 'Request';\r\n transportOffers: Array<{\r\n __typename: 'TransportOffer';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: TransportOfferStatus;\r\n rank: number;\r\n response: TransportOfferResponse;\r\n wasBulkSkip: boolean;\r\n isOnDelay: boolean;\r\n isOneCallAgreement: boolean;\r\n isInternalAgency: boolean;\r\n requestId: string;\r\n companyId: string;\r\n distanceInMiles: number | null;\r\n bearingInDegrees: number | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n estimatedTimeEnRouteInMinutes: number | null;\r\n offerTime: Date | number | string | null;\r\n crewNotified: Date | number | string | null;\r\n transportCheckInitiated: Date | number | string | null;\r\n notificationAcknowledged: Date | number | string | null;\r\n responseReceived: Date | number | string | null;\r\n declineReasonId: string | null;\r\n declineSecondaryReasonId: string | null;\r\n nonReferralReasonId: string | null;\r\n nonReferralReasonNotes: string | null;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n outOfServiceEventId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n agencyLocationId: string | null;\r\n unitDescription: string | null;\r\n isReferral: boolean | null;\r\n vehicleType: VehicleType | null;\r\n patientOriginatesAtUnit: boolean | null;\r\n homeBaseDistanceInMiles: number | null;\r\n baseId: string | null;\r\n preferredRank: number | null;\r\n notes: string | null;\r\n onBaseETAInMinutes: number | null;\r\n specialtyTeamETLOInMinutes: number | null;\r\n specialtyTeamETEInMinutes: number | null;\r\n vehicleCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }>;\r\n transportOfferOptions: Array<{\r\n __typename: 'TransportOfferOption';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n includeAbortedUnit: boolean;\r\n type: TransportOfferOptionType;\r\n requestId: string;\r\n companyId: string;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n }>;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type PatientInfoComponent_FetchCardByCardIdQueryVariables = Exact<{\r\n cardId: Scalars['ID'];\r\n}>;\r\n\r\nexport type PatientInfoComponent_FetchCardByCardIdQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n byId: {\r\n __typename: 'Card';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n companyId: string;\r\n dateCardClosed: Date | number | string | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: Date | number | string | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n request: {\r\n __typename: 'Request';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: RequestStatus;\r\n requestedOperationType: OperationType;\r\n isStandbyRequest: boolean;\r\n standbyActivationRequested: boolean;\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n companyId: string;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n requestedVehicleType: VehicleType | null;\r\n primaryUnitServiceAreaId: string | null;\r\n commitUnitToStandby: boolean | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n assignmentDelayedReasonId: string | null;\r\n regionId: string | null;\r\n includeCompetitors: boolean | null;\r\n transportOfferAlgorithmId: string | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n webOrderCallType: WebOrderCallType | null;\r\n etloInMinutes: number | null;\r\n atloInMinutes: number | null;\r\n requester: {\r\n __typename: 'Requester';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n affiliationType: AffiliationType | null;\r\n caller: string | null;\r\n roleId: string | null;\r\n missionRole: MissionRoleType | null;\r\n callbackNumber: string | null;\r\n email: string | null;\r\n facilityId: string | null;\r\n agencyLocationId: string | null;\r\n referringCompanyId: string | null;\r\n referringAgencyLocationId: string | null;\r\n referralReasonId: string | null;\r\n referringRecordNumber: string | null;\r\n specialtyTeamNotes: string | null;\r\n specialtyTeamId: string | null;\r\n careLevelRequested: CareLevel | null;\r\n transferCenterId: string | null;\r\n transferCenterNotes: string | null;\r\n transportingAgencyLocationId: string | null;\r\n isDoublePatient: boolean | null;\r\n isWingToWing: boolean | null;\r\n requestId: string | null;\r\n specialtyTeamMembers: Array<{ __typename: 'IdListItem'; id: string }>;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n gender: Gender;\r\n isIsolette: boolean;\r\n requestId: string;\r\n companyId: string;\r\n patientId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n transportReasonId: string | null;\r\n notes: string | null;\r\n chiefComplaintNotes: string | null;\r\n transportReasonCategory: TransportReasonCategory | null;\r\n isIntubated: boolean | null;\r\n numberOfDrips: number | null;\r\n specialtyEquipment: string | null;\r\n rideAlongRequested: YesNoType | null;\r\n isoletteType: IsoletteType | null;\r\n isoletteNotes: string | null;\r\n transferReasonId: string | null;\r\n estimatedAgeInHours: number | null;\r\n gcs: number | null;\r\n bpSystolic: number | null;\r\n bpDiastolic: number | null;\r\n heartRate: number | null;\r\n oxygenSaturation: number | null;\r\n respiratoryRate: number | null;\r\n temperatureInCelsius: number | null;\r\n rideAlongWeightInKg: number | null;\r\n medicalRecordNumber: string | null;\r\n rideAlongName: string | null;\r\n rideAlongDateOfBirth: Date | number | string | null;\r\n }>;\r\n safetyQuestions: {\r\n __typename: 'SafetyQuestions';\r\n otherServiceDeclined: boolean | null;\r\n otherServiceDescription: string | null;\r\n otherServicesAreRespondingToTransferring: boolean | null;\r\n otherServiceResponseDescription: string | null;\r\n };\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type QuestionnaireResponseCards_FetchQuestionnaireResponseEntitiesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type QuestionnaireResponseCards_FetchQuestionnaireResponseEntitiesQuery = {\r\n __typename: 'Query';\r\n questionnaireResponses: {\r\n __typename: 'QuestionnaireResponseQueries';\r\n all: {\r\n __typename: 'QuestionnaireResponseCollection';\r\n items: Array<{\r\n __typename: 'QuestionnaireResponse';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: QuestionnaireResponseStatus;\r\n questionnaireId: string;\r\n companyId: string;\r\n cardId: string;\r\n currentReviewLevel: UserRole | null;\r\n completedById: string | null;\r\n dateCompleted: Date | number | string | null;\r\n communicationsReviewById: string | null;\r\n dateCommunicationsReviewed: Date | number | string | null;\r\n supervisorReviewById: string | null;\r\n dateSupervisorReviewed: Date | number | string | null;\r\n managerReviewById: string | null;\r\n dateManagerReviewed: Date | number | string | null;\r\n card: {\r\n __typename: 'Card';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n companyId: string;\r\n dateCardClosed: Date | number | string | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: Date | number | string | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n operation: {\r\n __typename: 'Operation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n vehicleId: string;\r\n dateOperationStarted: Date | number | string;\r\n riskAnalysisAcknowledged: boolean;\r\n companyId: string;\r\n unitId: string | null;\r\n dateOperationEnded: Date | number | string | null;\r\n unitActivationTime: Date | number | string | null;\r\n riskAnalysisNumber: string | null;\r\n standbyActivationType: StandbyActivationType | null;\r\n caller: string | null;\r\n callbackNumber: string | null;\r\n initialOperationType: OperationType | null;\r\n unit: {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n } | null;\r\n } | null;\r\n request: {\r\n __typename: 'Request';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: RequestStatus;\r\n requestedOperationType: OperationType;\r\n isStandbyRequest: boolean;\r\n standbyActivationRequested: boolean;\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n companyId: string;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n requestedVehicleType: VehicleType | null;\r\n primaryUnitServiceAreaId: string | null;\r\n commitUnitToStandby: boolean | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n assignmentDelayedReasonId: string | null;\r\n regionId: string | null;\r\n includeCompetitors: boolean | null;\r\n transportOfferAlgorithmId: string | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n webOrderCallType: WebOrderCallType | null;\r\n etloInMinutes: number | null;\r\n atloInMinutes: number | null;\r\n safetyQuestions: {\r\n __typename: 'SafetyQuestions';\r\n otherServiceDeclined: boolean | null;\r\n otherServiceDescription: string | null;\r\n otherServicesAreRespondingToTransferring: boolean | null;\r\n otherServiceResponseDescription: string | null;\r\n };\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n } | null;\r\n };\r\n questionnaire: {\r\n __typename: 'Questionnaire';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n type: QuestionnaireType;\r\n communicationCenterId: string | null;\r\n };\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type RegionBoardAllPage_FetchCardsByPatientNameQueryVariables = Exact<{\r\n patientNameLike: Scalars['String'];\r\n}>;\r\n\r\nexport type RegionBoardAllPage_FetchCardsByPatientNameQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n all: {\r\n __typename: 'CardCollection';\r\n items: Array<{\r\n __typename: 'Card';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n companyId: string;\r\n dateCardClosed: Date | number | string | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: Date | number | string | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n request: {\r\n __typename: 'Request';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: RequestStatus;\r\n requestedOperationType: OperationType;\r\n isStandbyRequest: boolean;\r\n standbyActivationRequested: boolean;\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n companyId: string;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n requestedVehicleType: VehicleType | null;\r\n primaryUnitServiceAreaId: string | null;\r\n commitUnitToStandby: boolean | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n assignmentDelayedReasonId: string | null;\r\n regionId: string | null;\r\n includeCompetitors: boolean | null;\r\n transportOfferAlgorithmId: string | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n webOrderCallType: WebOrderCallType | null;\r\n etloInMinutes: number | null;\r\n atloInMinutes: number | null;\r\n patients: Array<{\r\n __typename: 'RequestPatient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n gender: Gender;\r\n isIsolette: boolean;\r\n requestId: string;\r\n companyId: string;\r\n patientId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n transportReasonId: string | null;\r\n notes: string | null;\r\n chiefComplaintNotes: string | null;\r\n transportReasonCategory: TransportReasonCategory | null;\r\n isIntubated: boolean | null;\r\n numberOfDrips: number | null;\r\n specialtyEquipment: string | null;\r\n rideAlongRequested: YesNoType | null;\r\n isoletteType: IsoletteType | null;\r\n isoletteNotes: string | null;\r\n transferReasonId: string | null;\r\n estimatedAgeInHours: number | null;\r\n gcs: number | null;\r\n bpSystolic: number | null;\r\n bpDiastolic: number | null;\r\n heartRate: number | null;\r\n oxygenSaturation: number | null;\r\n respiratoryRate: number | null;\r\n temperatureInCelsius: number | null;\r\n rideAlongWeightInKg: number | null;\r\n medicalRecordNumber: string | null;\r\n rideAlongName: string | null;\r\n rideAlongDateOfBirth: Date | number | string | null;\r\n }>;\r\n safetyQuestions: {\r\n __typename: 'SafetyQuestions';\r\n otherServiceDeclined: boolean | null;\r\n otherServiceDescription: string | null;\r\n otherServicesAreRespondingToTransferring: boolean | null;\r\n otherServiceResponseDescription: string | null;\r\n };\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n } | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type RegionBoardVehiclesPageComponent_FetchAllVehiclesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type RegionBoardVehiclesPageComponent_FetchAllVehiclesQuery = {\r\n __typename: 'Query';\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n all: {\r\n __typename: 'VehicleCollection';\r\n items: Array<{\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type TransferCenterRegionBoardComponent_FetchQueryVariables = Exact<{\r\n regionId: Scalars['ID'];\r\n}>;\r\n\r\nexport type TransferCenterRegionBoardComponent_FetchQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n all: {\r\n __typename: 'CardCollection';\r\n items: Array<{\r\n __typename: 'Card';\r\n id: string;\r\n cardNumber: string;\r\n request: {\r\n __typename: 'Request';\r\n transportOfferOptions: Array<{\r\n __typename: 'TransportOfferOption';\r\n requestedVehicleType: VehicleType | null;\r\n }>;\r\n requester: {\r\n __typename: 'Requester';\r\n transferCenterId: string | null;\r\n transferCenterNotes: string | null;\r\n careLevelRequested: CareLevel | null;\r\n transferCenter: { __typename: 'TransferCenter'; name: string } | null;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatient';\r\n firstName: string | null;\r\n lastName: string | null;\r\n }>;\r\n locations: Array<{\r\n __typename: 'RequestLocation';\r\n physician: { __typename: 'Physician'; firstName: string; lastName: string } | null;\r\n }>;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'CardCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type OpsCompanyDataContextService_FetchQueryVariables = Exact<{\r\n dispatchCompanyId: Scalars['ID'];\r\n}>;\r\n\r\nexport type OpsCompanyDataContextService_FetchQuery = {\r\n __typename: 'Query';\r\n companies: {\r\n __typename: 'CompanyQueries';\r\n byId: {\r\n __typename: 'Company';\r\n transferCenters: Array<{\r\n __typename: 'TransferCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n communicationCenterId: string;\r\n companyId: string;\r\n description: string | null;\r\n }>;\r\n regionGroups: Array<{\r\n __typename: 'RegionGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n departmentId: string;\r\n companyId: string;\r\n department: {\r\n __typename: 'Department';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n code: string;\r\n };\r\n regions: Array<{\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n }>;\r\n }>;\r\n externalActions: Array<{\r\n __typename: 'ExternalAction';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n entityId: string;\r\n status: ExternalActionStatus;\r\n entityType: EntityType;\r\n actionTypeId: string;\r\n actionBodyJson: string;\r\n companyId: string;\r\n completedById: string | null;\r\n dateCompleted: Date | number | string | null;\r\n notes: string | null;\r\n }>;\r\n } | null;\r\n };\r\n activeAlerts: {\r\n __typename: 'ActiveAlertQueries';\r\n all: {\r\n __typename: 'ActiveAlertCollection';\r\n items: Array<{\r\n __typename: 'ActiveAlert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n urgency: AlertUrgency;\r\n content: string;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n matchType: RuleMatchType;\r\n visibilityType: VisibilityType;\r\n isGpsAlert: boolean;\r\n isActive: boolean;\r\n companyId: string;\r\n target: AlertTarget | null;\r\n targetId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n title: string | null;\r\n definitionId: string | null;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n parentEntityType: EntityType | null;\r\n parentEntityId: string | null;\r\n activationTime: Date | number | string | null;\r\n escalationDurationInSeconds: number | null;\r\n snoozeMaxInSeconds: number | null;\r\n authorId: string | null;\r\n regionId: string | null;\r\n communicationCenterId: string | null;\r\n lookupHash: string | null;\r\n referenceEntityType: EntityType | null;\r\n referenceEntityId: string | null;\r\n }>;\r\n meta: { __typename: 'ActiveAlertCollectionMetadata'; total: number };\r\n };\r\n };\r\n positionReportAlerts: {\r\n __typename: 'PositionReportAlertQueries';\r\n all: {\r\n __typename: 'PositionReportAlertCollection';\r\n items: Array<{\r\n __typename: 'PositionReportAlert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n hasReceivedQualifyingReport: boolean;\r\n companyId: string;\r\n }>;\r\n };\r\n };\r\n webOrderLogs: {\r\n __typename: 'webOrderLogQueries';\r\n byActiveCards: {\r\n __typename: 'WebOrderLogCollection';\r\n items: Array<{\r\n __typename: 'WebOrderLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n requestJson: string;\r\n name: string;\r\n isSuccess: boolean;\r\n errors: string | null;\r\n entityId: string | null;\r\n entityType: EntityType | null;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n changes: Array<{\r\n __typename: 'WebOrderLogEntityChanges';\r\n id: string;\r\n entityType: string;\r\n fieldName: string;\r\n oldValue: string | null;\r\n newValue: string | null;\r\n } | null> | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type ScheduledAlertsListDialogComponent_FetchActiveAlertsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type ScheduledAlertsListDialogComponent_FetchActiveAlertsQuery = {\r\n __typename: 'Query';\r\n activeAlerts: {\r\n __typename: 'ActiveAlertQueries';\r\n all: {\r\n __typename: 'ActiveAlertCollection';\r\n items: Array<{\r\n __typename: 'ActiveAlert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n urgency: AlertUrgency;\r\n content: string;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n matchType: RuleMatchType;\r\n visibilityType: VisibilityType;\r\n isGpsAlert: boolean;\r\n isActive: boolean;\r\n companyId: string;\r\n target: AlertTarget | null;\r\n targetId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n title: string | null;\r\n definitionId: string | null;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n parentEntityType: EntityType | null;\r\n parentEntityId: string | null;\r\n activationTime: Date | number | string | null;\r\n escalationDurationInSeconds: number | null;\r\n snoozeMaxInSeconds: number | null;\r\n authorId: string | null;\r\n regionId: string | null;\r\n communicationCenterId: string | null;\r\n lookupHash: string | null;\r\n referenceEntityType: EntityType | null;\r\n referenceEntityId: string | null;\r\n author: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n region: {\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n } | null;\r\n communicationCenter: {\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'ActiveAlertCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type oosEventNotesComponent_FetchOosEventNotesQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type oosEventNotesComponent_FetchOosEventNotesQuery = {\r\n __typename: 'Query';\r\n outOfServiceEventNotes: {\r\n __typename: 'OutOfServiceEventNoteQueries';\r\n byOutOfServiceEventId: {\r\n __typename: 'OutOfServiceEventNoteCollection';\r\n items: Array<{\r\n __typename: 'OutOfServiceEventNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n outOfServiceEventId: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isSystem: boolean;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type OosEventNotifications_FetchNotificationsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type OosEventNotifications_FetchNotificationsQuery = {\r\n __typename: 'Query';\r\n notifications: {\r\n __typename: 'NotificationQueries';\r\n all: {\r\n __typename: 'NotificationCollection';\r\n items: Array<{\r\n __typename: 'Notification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: NotificationStatus;\r\n body: string;\r\n companyId: string;\r\n cardId: string | null;\r\n subject: string | null;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n recipients: Array<{\r\n __typename: 'NotificationRecipient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n notificationId: string;\r\n companyId: string;\r\n name: string | null;\r\n notificationAddress: string | null;\r\n userId: string | null;\r\n messageId: string | null;\r\n messageStatus: MessageStatus | null;\r\n message: {\r\n __typename: 'TrackedMessage';\r\n messageStatusUpdates: Array<{\r\n __typename: 'MessageStatusUpdate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: MessageStatus;\r\n trackedMessageId: string;\r\n error: string | null;\r\n vendorMessage: string | null;\r\n metadataJson: string | null;\r\n }>;\r\n } | null;\r\n }>;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type OosHistoryComponent_FetchHistoryQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type OosHistoryComponent_FetchHistoryQuery = {\r\n __typename: 'Query';\r\n outOfServiceEvents: {\r\n __typename: 'OutOfServiceEventQueries';\r\n all: {\r\n __typename: 'OutOfServiceEventCollection';\r\n meta: { __typename: 'OutOfServiceEventCollectionMetadata'; total: number };\r\n items: Array<{\r\n __typename: 'OutOfServiceEvent';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonId: string;\r\n isAirworthy: boolean;\r\n initialEstimatedEndTime: Date | number | string;\r\n alertWhenEventEnds: boolean;\r\n companyId: string;\r\n startTime: Date | number | string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n secondaryReasonId: string | null;\r\n scheduledStartTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n notes: string | null;\r\n linkedCardId: string | null;\r\n createdById: string | null;\r\n endedById: string | null;\r\n secondaryReasonComment: string | null;\r\n parentOutOfServiceEventId: string | null;\r\n copiedFromId: string | null;\r\n alertTimeInMinutes: number | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type OosService_LoadOosManagerDialagDataQueryVariables = Exact<{ [key: string]: never }>;\r\n\r\nexport type OosService_LoadOosManagerDialagDataQuery = {\r\n __typename: 'Query';\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n all: {\r\n __typename: 'VehicleCollection';\r\n items: Array<{\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type CardNoteEditHistoryDialogComponent_FetchCardNoteQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type CardNoteEditHistoryDialogComponent_FetchCardNoteQuery = {\r\n __typename: 'Query';\r\n cardNotes: {\r\n __typename: 'CardNoteQueries';\r\n byId: {\r\n __typename: 'CardNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isInternal: boolean;\r\n isSystem: boolean;\r\n cardId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n _events: {\r\n __typename: 'MessageEnvelopeCollection';\r\n meta: { __typename: 'MessageEnvelopeCollectionMetadata'; total: number };\r\n items: Array<{\r\n __typename: 'MessageEnvelope';\r\n messageId: string;\r\n timestamp: Date | number | string;\r\n personId: string | null;\r\n message: { __typename: 'Message'; messageData: { [key: string]: any } };\r\n person: { __typename: 'Person'; firstName: string; lastName: string } | null;\r\n }>;\r\n };\r\n } | null;\r\n };\r\n};\r\n\r\nexport type GroundLegFormComponent_FetchAllLocationsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type GroundLegFormComponent_FetchAllLocationsQuery = {\r\n __typename: 'Query';\r\n locations: {\r\n __typename: 'LocationQueries';\r\n all: {\r\n __typename: 'LocationCollection';\r\n items: Array<{\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'LocationCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type MedicalControlContactsDialogComponent_FetchBaseMedicalControlContactsQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n }>;\r\n\r\nexport type MedicalControlContactsDialogComponent_FetchBaseMedicalControlContactsQuery = {\r\n __typename: 'Query';\r\n bases: {\r\n __typename: 'BaseQueries';\r\n all: {\r\n __typename: 'BaseCollection';\r\n items: Array<{\r\n __typename: 'Base';\r\n medicalControlContacts: Array<{\r\n __typename: 'BaseMedicalControlContact';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n personId: string;\r\n rank: number;\r\n baseId: string;\r\n companyId: string;\r\n specialty: string | null;\r\n person: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n };\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n baseMedicalControlContactStates: Array<{\r\n __typename: 'BaseMedicalControlContactState';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n companyId: string;\r\n baseMedicalControlContactId: string | null;\r\n } | null> | null;\r\n }>;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type MileageCalculatorDialogComponent_FetchMedicalFacilityEntitiesQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type MileageCalculatorDialogComponent_FetchMedicalFacilityEntitiesQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n byId: {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n defaultLandingZone: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n defaultFixedWingLandingZone: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n units: Array<{\r\n __typename: 'MedicalFacilityUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n medicalFacilityId: string;\r\n phoneNumber: string | null;\r\n }>;\r\n associatedPhysicians: Array<{\r\n __typename: 'MedicalFacilityPhysician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n physicianId: string;\r\n medicalFacilityId: string;\r\n physician: {\r\n __typename: 'Physician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n };\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type MileageCalculatorDialogComponent_FetchAllBasesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type MileageCalculatorDialogComponent_FetchAllBasesQuery = {\r\n __typename: 'Query';\r\n bases: {\r\n __typename: 'BaseQueries';\r\n all: {\r\n __typename: 'BaseCollection';\r\n items: Array<{\r\n __typename: 'Base';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n businessModel: BusinessModel;\r\n companyId: string;\r\n plannedOperationsStart: Date | number | string | null;\r\n operationsStarted: Date | number | string | null;\r\n operationsTerminated: Date | number | string | null;\r\n dateOfMaturity: Date | number | string | null;\r\n primaryPhoneNumber: string | null;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n hoursOfOperation: {\r\n __typename: 'HoursOfOperation';\r\n is24Hours: boolean | null;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n };\r\n }>;\r\n meta: { __typename: 'BaseCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type MileageCalculatorDialogComponent_FetchAllVehicleModelsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type MileageCalculatorDialogComponent_FetchAllVehicleModelsQuery = {\r\n __typename: 'Query';\r\n vehicleModels: {\r\n __typename: 'VehicleModelQueries';\r\n all: {\r\n __typename: 'VehicleModelCollection';\r\n items: Array<{\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n }>;\r\n meta: { __typename: 'VehicleModelCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type NotificationAddDialogComponent_FetchAllNotificationTemplatesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type NotificationAddDialogComponent_FetchAllNotificationTemplatesQuery = {\r\n __typename: 'Query';\r\n notificationTemplates: {\r\n __typename: 'NotificationTemplateQueries';\r\n all: {\r\n __typename: 'NotificationTemplateCollection';\r\n items: Array<{\r\n __typename: 'NotificationTemplate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n contextType: EntityType;\r\n bodyTemplate: string;\r\n canBeManualTrigger: boolean;\r\n companyId: string | null;\r\n triggerType: NotificationTriggerType | null;\r\n triggerValue: string | null;\r\n activationRuleId: string | null;\r\n recipientTypes: Array | null;\r\n subjectTemplate: string | null;\r\n requiresApproval: boolean | null;\r\n groupTypes: Array | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type NotificationAddDialogComponent_FetchNotificationTemplateDetailsQueryVariables = Exact<{\r\n args: InputMaybe;\r\n}>;\r\n\r\nexport type NotificationAddDialogComponent_FetchNotificationTemplateDetailsQuery = {\r\n __typename: 'Query';\r\n notificationTemplates: {\r\n __typename: 'NotificationTemplateQueries';\r\n templateDetails: {\r\n __typename: 'NotificationTemplateResponse';\r\n activityId: string | null;\r\n responseCode: string | null;\r\n errors: Array | null;\r\n data: {\r\n __typename: 'NotificationTemplateData';\r\n subject: string | null;\r\n body: string | null;\r\n recipients: Array<{\r\n __typename: 'Recipient';\r\n name: string | null;\r\n address: string;\r\n } | null> | null;\r\n } | null;\r\n };\r\n };\r\n};\r\n\r\nexport type NotificationsEditDialogComponent_FetchNotificationQueryVariables = Exact<{\r\n notificationId: Scalars['ID'];\r\n}>;\r\n\r\nexport type NotificationsEditDialogComponent_FetchNotificationQuery = {\r\n __typename: 'Query';\r\n notifications: {\r\n __typename: 'NotificationQueries';\r\n byId: {\r\n __typename: 'Notification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: NotificationStatus;\r\n body: string;\r\n companyId: string;\r\n cardId: string | null;\r\n subject: string | null;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n recipients: Array<{\r\n __typename: 'NotificationRecipient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n notificationId: string;\r\n companyId: string;\r\n name: string | null;\r\n notificationAddress: string | null;\r\n userId: string | null;\r\n messageId: string | null;\r\n messageStatus: MessageStatus | null;\r\n message: {\r\n __typename: 'TrackedMessage';\r\n messageStatusUpdates: Array<{\r\n __typename: 'MessageStatusUpdate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: MessageStatus;\r\n trackedMessageId: string;\r\n error: string | null;\r\n vendorMessage: string | null;\r\n metadataJson: string | null;\r\n }>;\r\n } | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type NotificationsManageDialogComponent_FetchNotificationQueryVariables = Exact<{\r\n notificationId: Scalars['ID'];\r\n}>;\r\n\r\nexport type NotificationsManageDialogComponent_FetchNotificationQuery = {\r\n __typename: 'Query';\r\n notifications: {\r\n __typename: 'NotificationQueries';\r\n byId: {\r\n __typename: 'Notification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: NotificationStatus;\r\n body: string;\r\n companyId: string;\r\n cardId: string | null;\r\n subject: string | null;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n recipients: Array<{\r\n __typename: 'NotificationRecipient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n notificationId: string;\r\n companyId: string;\r\n name: string | null;\r\n notificationAddress: string | null;\r\n userId: string | null;\r\n messageId: string | null;\r\n messageStatus: MessageStatus | null;\r\n message: {\r\n __typename: 'TrackedMessage';\r\n messageStatusUpdates: Array<{\r\n __typename: 'MessageStatusUpdate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: MessageStatus;\r\n trackedMessageId: string;\r\n error: string | null;\r\n vendorMessage: string | null;\r\n metadataJson: string | null;\r\n }>;\r\n } | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type NotificationsListDialogComponent_FetchNotificationsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type NotificationsListDialogComponent_FetchNotificationsQuery = {\r\n __typename: 'Query';\r\n notifications: {\r\n __typename: 'NotificationQueries';\r\n all: {\r\n __typename: 'NotificationCollection';\r\n items: Array<{\r\n __typename: 'Notification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: NotificationStatus;\r\n body: string;\r\n companyId: string;\r\n cardId: string | null;\r\n subject: string | null;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n recipients: Array<{\r\n __typename: 'NotificationRecipient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n notificationId: string;\r\n companyId: string;\r\n name: string | null;\r\n notificationAddress: string | null;\r\n userId: string | null;\r\n messageId: string | null;\r\n messageStatus: MessageStatus | null;\r\n message: {\r\n __typename: 'TrackedMessage';\r\n messageStatusUpdates: Array<{\r\n __typename: 'MessageStatusUpdate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: MessageStatus;\r\n trackedMessageId: string;\r\n error: string | null;\r\n vendorMessage: string | null;\r\n metadataJson: string | null;\r\n }>;\r\n } | null;\r\n }>;\r\n }>;\r\n meta: { __typename: 'NotificationCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type RecipientGroupManageDialogComponent_FetchAllNotificationGroupsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type RecipientGroupManageDialogComponent_FetchAllNotificationGroupsQuery = {\r\n __typename: 'Query';\r\n notificationGroups: {\r\n __typename: 'NotificationGroupQueries';\r\n all: {\r\n __typename: 'NotificationGroupCollection';\r\n items: Array<{\r\n __typename: 'NotificationGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n unitId: string | null;\r\n regionId: string | null;\r\n type: NotificationGroupType | null;\r\n types: Array | null;\r\n }>;\r\n meta: { __typename: 'NotificationGroupCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type RecipientGroupManageDialogComponent_FetchAllNotificationGroupMembersQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n }>;\r\n\r\nexport type RecipientGroupManageDialogComponent_FetchAllNotificationGroupMembersQuery = {\r\n __typename: 'Query';\r\n notificationGroupMembers: {\r\n __typename: 'NotificationGroupMemberQueries';\r\n all: {\r\n __typename: 'NotificationGroupMemberCollection';\r\n items: Array<{\r\n __typename: 'NotificationGroupMember';\r\n id: string;\r\n notificationGroupId: string;\r\n name: string;\r\n userId: string | null;\r\n notificationAddress: string | null;\r\n user: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n isAviationSupervisor: boolean;\r\n notificationAddress: string | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'NotificationGroupMemberCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type TransportAbortDialogComponent_FetchAllVehiclesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type TransportAbortDialogComponent_FetchAllVehiclesQuery = {\r\n __typename: 'Query';\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n all: {\r\n __typename: 'VehicleCollection';\r\n items: Array<{\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type TransportAbortDialogComponent_FetchTransportOffersByCardNumberQueryVariables = Exact<{\r\n cardNumber: Scalars['ID'];\r\n}>;\r\n\r\nexport type TransportAbortDialogComponent_FetchTransportOffersByCardNumberQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n byCardNumber: {\r\n __typename: 'Card';\r\n request: {\r\n __typename: 'Request';\r\n transportOffers: Array<{\r\n __typename: 'TransportOffer';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: TransportOfferStatus;\r\n rank: number;\r\n response: TransportOfferResponse;\r\n wasBulkSkip: boolean;\r\n isOnDelay: boolean;\r\n isOneCallAgreement: boolean;\r\n isInternalAgency: boolean;\r\n requestId: string;\r\n companyId: string;\r\n distanceInMiles: number | null;\r\n bearingInDegrees: number | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n estimatedTimeEnRouteInMinutes: number | null;\r\n offerTime: Date | number | string | null;\r\n crewNotified: Date | number | string | null;\r\n transportCheckInitiated: Date | number | string | null;\r\n notificationAcknowledged: Date | number | string | null;\r\n responseReceived: Date | number | string | null;\r\n declineReasonId: string | null;\r\n declineSecondaryReasonId: string | null;\r\n nonReferralReasonId: string | null;\r\n nonReferralReasonNotes: string | null;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n outOfServiceEventId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n agencyLocationId: string | null;\r\n unitDescription: string | null;\r\n isReferral: boolean | null;\r\n vehicleType: VehicleType | null;\r\n patientOriginatesAtUnit: boolean | null;\r\n homeBaseDistanceInMiles: number | null;\r\n baseId: string | null;\r\n preferredRank: number | null;\r\n notes: string | null;\r\n onBaseETAInMinutes: number | null;\r\n specialtyTeamETLOInMinutes: number | null;\r\n specialtyTeamETEInMinutes: number | null;\r\n vehicleCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }>;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type UnitNoteListComponent_FetchUnitNotesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type UnitNoteListComponent_FetchUnitNotesQuery = {\r\n __typename: 'Query';\r\n unitNotes: {\r\n __typename: 'UnitNoteQueries';\r\n all: {\r\n __typename: 'UnitNoteCollection';\r\n items: Array<{\r\n __typename: 'UnitNote';\r\n id: string;\r\n authorId: string | null;\r\n companyId: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n unitId: string;\r\n unit: { __typename: 'Unit'; name: string; abbreviation: string };\r\n author: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'UnitNoteCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type UnitShiftListComponent_FetchUnitShiftsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type UnitShiftListComponent_FetchUnitShiftsQuery = {\r\n __typename: 'Query';\r\n unitShifts: {\r\n __typename: 'UnitShiftQueries';\r\n all: {\r\n __typename: 'UnitShiftCollection';\r\n items: Array<{\r\n __typename: 'UnitShift';\r\n id: string;\r\n companyId: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n unit: { __typename: 'Unit'; name: string; abbreviation: string };\r\n }>;\r\n meta: { __typename: 'UnitShiftCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type PassdownLogDetailsComponent_FetchPassdownLogQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type PassdownLogDetailsComponent_FetchPassdownLogQuery = {\r\n __typename: 'Query';\r\n passdownLogs: {\r\n __typename: 'PassdownLogQueries';\r\n byId: {\r\n __typename: 'PassdownLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n regionId: string;\r\n logDate: Date | number | string;\r\n body: string;\r\n requiresAcknowledgement: boolean;\r\n companyId: string;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n authorId: string | null;\r\n passdownLogAcknowledgements: Array<{\r\n __typename: 'PassdownLogAcknowledgement';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n passdownLogId: string;\r\n dateAcknowledged: Date | number | string;\r\n acknowledgedById: string;\r\n companyId: string;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type PassdownLogDialogComponent_FetchAllPassdownLogsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type PassdownLogDialogComponent_FetchAllPassdownLogsQuery = {\r\n __typename: 'Query';\r\n passdownLogs: {\r\n __typename: 'PassdownLogQueries';\r\n all: {\r\n __typename: 'PassdownLogCollection';\r\n items: Array<{\r\n __typename: 'PassdownLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n regionId: string;\r\n logDate: Date | number | string;\r\n body: string;\r\n requiresAcknowledgement: boolean;\r\n companyId: string;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n authorId: string | null;\r\n author: { __typename: 'Person'; firstName: string; lastName: string } | null;\r\n acknowledgedBy: { __typename: 'Person'; firstName: string; lastName: string } | null;\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n passdownLogAcknowledgements: Array<{\r\n __typename: 'PassdownLogAcknowledgement';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n passdownLogId: string;\r\n dateAcknowledged: Date | number | string;\r\n acknowledgedById: string;\r\n companyId: string;\r\n }>;\r\n }>;\r\n meta: { __typename: 'PassdownLogCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type PassdownLogEditHistoryDialogComponent_FetchPassdownLogQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type PassdownLogEditHistoryDialogComponent_FetchPassdownLogQuery = {\r\n __typename: 'Query';\r\n passdownLogs: {\r\n __typename: 'PassdownLogQueries';\r\n byId: {\r\n __typename: 'PassdownLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n regionId: string;\r\n logDate: Date | number | string;\r\n body: string;\r\n requiresAcknowledgement: boolean;\r\n companyId: string;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n authorId: string | null;\r\n _events: {\r\n __typename: 'MessageEnvelopeCollection';\r\n meta: { __typename: 'MessageEnvelopeCollectionMetadata'; total: number };\r\n items: Array<{\r\n __typename: 'MessageEnvelope';\r\n messageId: string;\r\n timestamp: Date | number | string;\r\n personId: string | null;\r\n message: { __typename: 'Message'; messageData: { [key: string]: any } };\r\n person: { __typename: 'Person'; firstName: string; lastName: string } | null;\r\n }>;\r\n };\r\n } | null;\r\n };\r\n};\r\n\r\nexport type ReceivingFacilityRequestAcceptDialog_FetchMedicalFacilityUnitsByMedicalFacilityIdQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type ReceivingFacilityRequestAcceptDialog_FetchMedicalFacilityUnitsByMedicalFacilityIdQuery =\r\n {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n byId: {\r\n __typename: 'MedicalFacility';\r\n units: Array<{\r\n __typename: 'MedicalFacilityUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n medicalFacilityId: string;\r\n phoneNumber: string | null;\r\n }>;\r\n } | null;\r\n };\r\n };\r\n\r\nexport type ReceivingFacilityRequestAcceptDialog_FetchPhysiciansByMedicalFacilityIdQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type ReceivingFacilityRequestAcceptDialog_FetchPhysiciansByMedicalFacilityIdQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n byId: {\r\n __typename: 'MedicalFacility';\r\n associatedPhysicians: Array<{\r\n __typename: 'MedicalFacilityPhysician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n physicianId: string;\r\n medicalFacilityId: string;\r\n physician: {\r\n __typename: 'Physician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n };\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type ReceivingFacilityRequestDivertDialogComponent_FetchMedicalFacilitiesQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n }>;\r\n\r\nexport type ReceivingFacilityRequestDivertDialogComponent_FetchMedicalFacilitiesQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n all: {\r\n __typename: 'MedicalFacilityCollection';\r\n items: Array<{\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type ReceivingFacilityRequestHistoryAddDialogComponent_FetchMedicalFacilitiesQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n }>;\r\n\r\nexport type ReceivingFacilityRequestHistoryAddDialogComponent_FetchMedicalFacilitiesQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n all: {\r\n __typename: 'MedicalFacilityCollection';\r\n items: Array<{\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type ReceivingFacilityRequestReferDialogComponent_FetchMedicalFacilitiesQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n }>;\r\n\r\nexport type ReceivingFacilityRequestReferDialogComponent_FetchMedicalFacilitiesQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n all: {\r\n __typename: 'MedicalFacilityCollection';\r\n items: Array<{\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type TransportOfferDeclineComponent_FetchTransportOffersByCardNumberQueryVariables = Exact<{\r\n cardNumber: Scalars['ID'];\r\n}>;\r\n\r\nexport type TransportOfferDeclineComponent_FetchTransportOffersByCardNumberQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n byCardNumber: {\r\n __typename: 'Card';\r\n request: {\r\n __typename: 'Request';\r\n transportOffers: Array<{\r\n __typename: 'TransportOffer';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: TransportOfferStatus;\r\n rank: number;\r\n response: TransportOfferResponse;\r\n wasBulkSkip: boolean;\r\n isOnDelay: boolean;\r\n isOneCallAgreement: boolean;\r\n isInternalAgency: boolean;\r\n requestId: string;\r\n companyId: string;\r\n distanceInMiles: number | null;\r\n bearingInDegrees: number | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n estimatedTimeEnRouteInMinutes: number | null;\r\n offerTime: Date | number | string | null;\r\n crewNotified: Date | number | string | null;\r\n transportCheckInitiated: Date | number | string | null;\r\n notificationAcknowledged: Date | number | string | null;\r\n responseReceived: Date | number | string | null;\r\n declineReasonId: string | null;\r\n declineSecondaryReasonId: string | null;\r\n nonReferralReasonId: string | null;\r\n nonReferralReasonNotes: string | null;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n outOfServiceEventId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n agencyLocationId: string | null;\r\n unitDescription: string | null;\r\n isReferral: boolean | null;\r\n vehicleType: VehicleType | null;\r\n patientOriginatesAtUnit: boolean | null;\r\n homeBaseDistanceInMiles: number | null;\r\n baseId: string | null;\r\n preferredRank: number | null;\r\n notes: string | null;\r\n onBaseETAInMinutes: number | null;\r\n specialtyTeamETLOInMinutes: number | null;\r\n specialtyTeamETEInMinutes: number | null;\r\n vehicleCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }>;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type TransportOfferDeclineComponent_FetchAllDelayReasonsQueryVariables = Exact<{\r\n [key: string]: never;\r\n}>;\r\n\r\nexport type TransportOfferDeclineComponent_FetchAllDelayReasonsQuery = {\r\n __typename: 'Query';\r\n requests: {\r\n __typename: 'RequestQueries';\r\n allAssignmentDelayedReasons: Array<{\r\n __typename: 'AssignmentDelayedReason';\r\n id: string;\r\n name: string;\r\n }>;\r\n };\r\n};\r\n\r\nexport type UnitEditDialogComponent_FetchUnitActivationRuleByUnitIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type UnitEditDialogComponent_FetchUnitActivationRuleByUnitIdQuery = {\r\n __typename: 'Query';\r\n unitActivationRules: {\r\n __typename: 'UnitActivationRuleQueries';\r\n byUnitId: {\r\n __typename: 'UnitActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n unitId: string;\r\n operationTypes: Array;\r\n missionRoleTypes: Array;\r\n maximumDistanceInMiles: number | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type UnitEditDialogComponent_FetchUnitEMSystemMappingsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type UnitEditDialogComponent_FetchUnitEMSystemMappingsQuery = {\r\n __typename: 'Query';\r\n unitEMSystemMappings: {\r\n __typename: 'UnitEMSystemMappingQueries';\r\n all: {\r\n __typename: 'UnitEMSystemMappingCollection';\r\n meta: { __typename: 'UnitEMSystemMappingCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type UnitFormComponent_FetchAllCompleteFlightInstancesQueryVariables = Exact<{\r\n [key: string]: never;\r\n}>;\r\n\r\nexport type UnitFormComponent_FetchAllCompleteFlightInstancesQuery = {\r\n __typename: 'Query';\r\n completeFlightInstances: {\r\n __typename: 'CompleteFlightInstanceQueries';\r\n all: {\r\n __typename: 'CompleteFlightInstanceCollection';\r\n items: Array<{\r\n __typename: 'CompleteFlightInstance';\r\n completeFlightInstanceName: string;\r\n id: string;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type UnitRepositionDialogComponent_FetchVehiclePositionSummaryQueryVariables = Exact<{\r\n vehicleId: Scalars['ID'];\r\n}>;\r\n\r\nexport type UnitRepositionDialogComponent_FetchVehiclePositionSummaryQuery = {\r\n __typename: 'Query';\r\n vehiclePositionSummary: {\r\n __typename: 'vehcilePositionSummaryQueries';\r\n byVehicleId: {\r\n __typename: 'VehiclePositionSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n vehicleId: string;\r\n latitude: number;\r\n longitude: number;\r\n positionSource: PositionReportSource;\r\n positionTime: Date | number | string;\r\n companyId: string;\r\n lastPositionReportId: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n etlo: Date | number | string | null;\r\n lastGpsAutoPositionTime: Date | number | string | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type FetchUnitEditContextQueryVariables = Exact<{\r\n unitId: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitEditContextQuery = {\r\n __typename: 'Query';\r\n units: {\r\n __typename: 'UnitQueries';\r\n byId: {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n positions: Array<{\r\n __typename: 'UnitPosition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n unitId: string;\r\n companyId: string;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n teamMember: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n }>;\r\n shifts: Array<{\r\n __typename: 'UnitShift';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n companyId: string;\r\n }>;\r\n vehicle: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n vehicleDispositions: Array<{\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n }>;\r\n model: {\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n } | null;\r\n vehicleStateInspections: Array<{\r\n __typename: 'VehicleStateInspection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: Date | number | string;\r\n vehicleId: string;\r\n companyId: string;\r\n }>;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type UnitContextFragment = {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n positions: Array<{\r\n __typename: 'UnitPosition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n unitId: string;\r\n companyId: string;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n teamMember: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n }>;\r\n shifts: Array<{\r\n __typename: 'UnitShift';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n companyId: string;\r\n }>;\r\n vehicle: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n vehicleDispositions: Array<{\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n }>;\r\n model: {\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n } | null;\r\n vehicleStateInspections: Array<{\r\n __typename: 'VehicleStateInspection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: Date | number | string;\r\n vehicleId: string;\r\n companyId: string;\r\n }>;\r\n } | null;\r\n};\r\n\r\nexport type WebOrderLogsDialog_FetchWebOrderLogsByEntityIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type WebOrderLogsDialog_FetchWebOrderLogsByEntityIdQuery = {\r\n __typename: 'Query';\r\n webOrderLogs: {\r\n __typename: 'webOrderLogQueries';\r\n byEntityId: {\r\n __typename: 'WebOrderLogCollection';\r\n items: Array<{\r\n __typename: 'WebOrderLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n requestJson: string;\r\n name: string;\r\n isSuccess: boolean;\r\n errors: string | null;\r\n entityId: string | null;\r\n entityType: EntityType | null;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n changes: Array<{\r\n __typename: 'WebOrderLogEntityChanges';\r\n id: string;\r\n entityType: string;\r\n fieldName: string;\r\n oldValue: string | null;\r\n newValue: string | null;\r\n } | null> | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type CardArchivedRecordsFetchService_FetchArchivedCardNotesQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type CardArchivedRecordsFetchService_FetchArchivedCardNotesQuery = {\r\n __typename: 'Query';\r\n cardNoteArchives: {\r\n __typename: 'CardNoteArchiveQueries';\r\n byCardId: {\r\n __typename: 'CardNoteArchiveCollection';\r\n items: Array<{\r\n __typename: 'CardNoteArchive';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isInternal: boolean;\r\n isSystem: boolean;\r\n dateArchived: Date | number | string;\r\n cardId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type CardArchivedRecordsFetchService_FetchArchivedPositionReportsQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type CardArchivedRecordsFetchService_FetchArchivedPositionReportsQuery = {\r\n __typename: 'Query';\r\n positionReportArchives: {\r\n __typename: 'PositionReportArchiveQueries';\r\n byTripId: {\r\n __typename: 'PositionReportArchiveCollection';\r\n items: Array<{\r\n __typename: 'PositionReportArchive';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n dateArchived: Date | number | string;\r\n tripId: string;\r\n companyId: string;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: Date | number | string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type ActivationRuleDetailsComponent_FetchActivationRuleByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type ActivationRuleDetailsComponent_FetchActivationRuleByIdQuery = {\r\n __typename: 'Query';\r\n activationRules: {\r\n __typename: 'ActivationRuleQueries';\r\n byId: {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n } | null;\r\n region: {\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n } | null;\r\n base: {\r\n __typename: 'Base';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n businessModel: BusinessModel;\r\n companyId: string;\r\n plannedOperationsStart: Date | number | string | null;\r\n operationsStarted: Date | number | string | null;\r\n operationsTerminated: Date | number | string | null;\r\n dateOfMaturity: Date | number | string | null;\r\n primaryPhoneNumber: string | null;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n hoursOfOperation: {\r\n __typename: 'HoursOfOperation';\r\n is24Hours: boolean | null;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n };\r\n } | null;\r\n vehicle: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n } | null;\r\n unit: {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n } | null;\r\n medicalFacility: {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n } | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n alerts: Array<{\r\n __typename: 'Alert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n entityType: EntityType;\r\n activationRuleId: string;\r\n urgency: AlertUrgency;\r\n content: string;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n title: string | null;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n paused: boolean | null;\r\n createdById: string | null;\r\n }>;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type ActivationRuleForm_GetRegionsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type ActivationRuleForm_GetRegionsQuery = {\r\n __typename: 'Query';\r\n regions: {\r\n __typename: 'RegionQueries';\r\n all: {\r\n __typename: 'RegionCollection';\r\n items: Array<{\r\n __typename: 'Region';\r\n id: string;\r\n name: string;\r\n communicationCenter: { __typename: 'CommunicationCenter'; id: string; name: string };\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type ActivationRuleForm_GetCommunicationCentersQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type ActivationRuleForm_GetCommunicationCentersQuery = {\r\n __typename: 'Query';\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n all: {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array<{ __typename: 'CommunicationCenter'; id: string; name: string }>;\r\n };\r\n };\r\n};\r\n\r\nexport type ActivationRuleForm_GetActivationRuleIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type ActivationRuleForm_GetActivationRuleIdQuery = {\r\n __typename: 'Query';\r\n activationRules: {\r\n __typename: 'ActivationRuleQueries';\r\n byId: {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n medicalFacility: {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n requesters: Array<{ __typename: 'Requester'; id: string } | null> | null;\r\n requests: Array<{ __typename: 'RequestLocation'; id: string } | null> | null;\r\n } | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type ActivationRuleForm_GetDeclineReasonsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type ActivationRuleForm_GetDeclineReasonsQuery = {\r\n __typename: 'Query';\r\n declineReasons: {\r\n __typename: 'DeclineReasonQueries';\r\n all: {\r\n __typename: 'DeclineReasonCollection';\r\n items: Array<{\r\n __typename: 'DeclineReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n declineCategoryId: string;\r\n controllable: boolean;\r\n canBeSkipReason: boolean;\r\n canBeAbortReason: boolean;\r\n canBeBulkSkipReason: boolean;\r\n canBeOneCallSkipReason: boolean;\r\n isUnitAvailableAfterAbort: boolean;\r\n }>;\r\n meta: { __typename: 'DeclineReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type AgencyListPageComponent_FetchAgenciesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type AgencyListPageComponent_FetchAgenciesQuery = {\r\n __typename: 'Query';\r\n agencies: {\r\n __typename: 'AgencyQueries';\r\n all: {\r\n __typename: 'AgencyCollection';\r\n items: Array<{\r\n __typename: 'Agency';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: AgencyType;\r\n isCompetitor: boolean;\r\n isInternallyOwned: boolean;\r\n parentCompanyId: string | null;\r\n notes: string | null;\r\n locations: Array<{\r\n __typename: 'AgencyLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n agencyId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n }>;\r\n }>;\r\n meta: { __typename: 'AgencyCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type AgencyLocationListComponent_FetchAllAgencyLocationsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type AgencyLocationListComponent_FetchAllAgencyLocationsQuery = {\r\n __typename: 'Query';\r\n agencyLocations: {\r\n __typename: 'AgencyLocationQueries';\r\n all: {\r\n __typename: 'AgencyLocationCollection';\r\n items: Array<{\r\n __typename: 'AgencyLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n agencyId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n }>;\r\n meta: { __typename: 'AgencyLocationCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type AgencyLocationManagePageComponent_FetchAgencyLocationByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type AgencyLocationManagePageComponent_FetchAgencyLocationByIdQuery = {\r\n __typename: 'Query';\r\n agencyLocations: {\r\n __typename: 'AgencyLocationQueries';\r\n byId: {\r\n __typename: 'AgencyLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n agencyId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type FboListPageComponent_FetchAllFbosQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type FboListPageComponent_FetchAllFbosQuery = {\r\n __typename: 'Query';\r\n fbos: {\r\n __typename: 'FboQueries';\r\n all: {\r\n __typename: 'FboCollection';\r\n items: Array<{\r\n __typename: 'Fbo';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n airportId: string;\r\n fboType: FboType;\r\n fuelBrand: string | null;\r\n sourceSystemId: number | null;\r\n locationId: string | null;\r\n airports: Array<{\r\n __typename: 'Airport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n airportType: string;\r\n airportCodeType: AirportCodeType;\r\n sourceSystemId: number | null;\r\n preferredFboId: string | null;\r\n locationId: string | null;\r\n } | null> | null;\r\n }>;\r\n meta: { __typename: 'FboCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type AirportListPageComponent_FetchAllAirportsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type AirportListPageComponent_FetchAllAirportsQuery = {\r\n __typename: 'Query';\r\n airports: {\r\n __typename: 'AirportQueries';\r\n all: {\r\n __typename: 'AirportCollection';\r\n items: Array<{\r\n __typename: 'Airport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n airportType: string;\r\n airportCodeType: AirportCodeType;\r\n sourceSystemId: number | null;\r\n preferredFboId: string | null;\r\n locationId: string | null;\r\n preferredFbo: {\r\n __typename: 'Fbo';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n airportId: string;\r\n fboType: FboType;\r\n fuelBrand: string | null;\r\n sourceSystemId: number | null;\r\n locationId: string | null;\r\n } | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n }>;\r\n meta: { __typename: 'AirportCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type AlertListPageQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type AlertListPageQuery = {\r\n __typename: 'Query';\r\n alerts: {\r\n __typename: 'AlertQueries';\r\n all: {\r\n __typename: 'AlertCollection';\r\n items: Array<{\r\n __typename: 'Alert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n entityType: EntityType;\r\n activationRuleId: string;\r\n urgency: AlertUrgency;\r\n content: string;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n title: string | null;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n paused: boolean | null;\r\n createdById: string | null;\r\n activationRule: {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n medicalFacility: {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n } | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n };\r\n }>;\r\n meta: { __typename: 'AlertCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type ApplicationNotificationFormComponent_FetchAllRegionsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type ApplicationNotificationFormComponent_FetchAllRegionsQuery = {\r\n __typename: 'Query';\r\n regions: {\r\n __typename: 'RegionQueries';\r\n all: {\r\n __typename: 'RegionCollection';\r\n items: Array<{\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n regionGroup: {\r\n __typename: 'RegionGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n departmentId: string;\r\n companyId: string;\r\n };\r\n }>;\r\n meta: { __typename: 'RegionCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type ApplicationNotificationListPageComponent_FetchAllApplicationNotificationsQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n }>;\r\n\r\nexport type ApplicationNotificationListPageComponent_FetchAllApplicationNotificationsQuery = {\r\n __typename: 'Query';\r\n applicationNotifications: {\r\n __typename: 'ApplicationNotificationQueries';\r\n all: {\r\n __typename: 'ApplicationNotificationCollection';\r\n items: Array<{\r\n __typename: 'ApplicationNotification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n urgency: ApplicationNotificationUrgency;\r\n displayOnBanner: boolean;\r\n dismissable: boolean;\r\n notification: string;\r\n title: string | null;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n createdById: string | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n }>;\r\n meta: { __typename: 'ApplicationNotificationCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type CancellationCategoryFormComponent_FetchAllCancellationReasonsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type CancellationCategoryFormComponent_FetchAllCancellationReasonsQuery = {\r\n __typename: 'Query';\r\n cancellationReasons: {\r\n __typename: 'CancellationReasonQueries';\r\n all: {\r\n __typename: 'CancellationReasonCollection';\r\n items: Array<{\r\n __typename: 'CancellationReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n isTransferCenterReason: boolean;\r\n canBeUnitCancellationReason: boolean | null;\r\n cancellationCategoryId: string | null;\r\n }>;\r\n meta: { __typename: 'CancellationReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type CancellationCategoryListPageComponent_FetchAllCancellationCategoriesQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n }>;\r\n\r\nexport type CancellationCategoryListPageComponent_FetchAllCancellationCategoriesQuery = {\r\n __typename: 'Query';\r\n cancellationCategories: {\r\n __typename: 'CancellationCategoryQueries';\r\n all: {\r\n __typename: 'CancellationCategoryCollection';\r\n items: Array<{\r\n __typename: 'CancellationCategory';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n defaultCancellationReasonId: string | null;\r\n defaultCancellationReason: {\r\n __typename: 'CancellationReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n isTransferCenterReason: boolean;\r\n canBeUnitCancellationReason: boolean | null;\r\n cancellationCategoryId: string | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'CancellationCategoryCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type CancellationReasonFormComponent_FetchSecondaryReasonsByCancellationReasonIdQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type CancellationReasonFormComponent_FetchSecondaryReasonsByCancellationReasonIdQuery = {\r\n __typename: 'Query';\r\n cancellationReasons: {\r\n __typename: 'CancellationReasonQueries';\r\n byId: {\r\n __typename: 'CancellationReason';\r\n cancellationSecondaryReasons: Array<{\r\n __typename: 'CancellationSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cancellationReasonId: string;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type CancellationReasonListPageComponent_FetchAllCancellationReasonsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type CancellationReasonListPageComponent_FetchAllCancellationReasonsQuery = {\r\n __typename: 'Query';\r\n cancellationReasons: {\r\n __typename: 'CancellationReasonQueries';\r\n all: {\r\n __typename: 'CancellationReasonCollection';\r\n items: Array<{\r\n __typename: 'CancellationReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n isTransferCenterReason: boolean;\r\n canBeUnitCancellationReason: boolean | null;\r\n cancellationCategoryId: string | null;\r\n }>;\r\n meta: { __typename: 'CancellationReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type CancellationSeconadaryReasonListComponent_FetchSecondaryReasonsByCancellationReasonIdQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type CancellationSeconadaryReasonListComponent_FetchSecondaryReasonsByCancellationReasonIdQuery =\r\n {\r\n __typename: 'Query';\r\n cancellationReasons: {\r\n __typename: 'CancellationReasonQueries';\r\n byId: {\r\n __typename: 'CancellationReason';\r\n cancellationSecondaryReasons: Array<{\r\n __typename: 'CancellationSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cancellationReasonId: string;\r\n }>;\r\n } | null;\r\n };\r\n };\r\n\r\nexport type CapabilityListPageComponent_FetchAllCapabilitiesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type CapabilityListPageComponent_FetchAllCapabilitiesQuery = {\r\n __typename: 'Query';\r\n capabilities: {\r\n __typename: 'CapabilityQueries';\r\n all: {\r\n __typename: 'CapabilityCollection';\r\n items: Array<{\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n }>;\r\n meta: { __typename: 'CapabilityCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type CardReOpenReasonListPageComponent_FetchAllCardReOpenReasonsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type CardReOpenReasonListPageComponent_FetchAllCardReOpenReasonsQuery = {\r\n __typename: 'Query';\r\n cardReopenReasons: {\r\n __typename: 'CardReopenReasonQueries';\r\n all: {\r\n __typename: 'CardReOpenReasonCollection';\r\n items: Array<{\r\n __typename: 'CardReOpenReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n affectsTrip: boolean;\r\n }>;\r\n meta: { __typename: 'CardReOpenReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type CommunicationCenterDetailPageComponent_FetchCommunicationCenterByIdQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type CommunicationCenterDetailPageComponent_FetchCommunicationCenterByIdQuery = {\r\n __typename: 'Query';\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n byId: {\r\n __typename: 'CommunicationCenter';\r\n states: Array | null;\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n };\r\n transferCenterRegion: {\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type CommunicationCenterListPageComponent_FetchAllCommunicationCentersQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n }>;\r\n\r\nexport type CommunicationCenterListPageComponent_FetchAllCommunicationCentersQuery = {\r\n __typename: 'Query';\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n all: {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array<{\r\n __typename: 'CommunicationCenter';\r\n states: Array | null;\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n };\r\n transferCenterRegion: {\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'CommunicationCenterCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type CommunicationCenterRegionsListComponent_FetchRegionsQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type CommunicationCenterRegionsListComponent_FetchRegionsQuery = {\r\n __typename: 'Query';\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n byId: {\r\n __typename: 'CommunicationCenter';\r\n regions: Array<{\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type CommunicationCenterTransferCentersListComponent_FetchTransferCentersQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type CommunicationCenterTransferCentersListComponent_FetchTransferCentersQuery = {\r\n __typename: 'Query';\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n byId: {\r\n __typename: 'CommunicationCenter';\r\n transferCenters: Array<{\r\n __typename: 'TransferCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n communicationCenterId: string;\r\n companyId: string;\r\n description: string | null;\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type CommunicationCenterTransportOffersOptionsDialog_FetchCommunicationCenterTransportOffersOptionsQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type CommunicationCenterTransportOffersOptionsDialog_FetchCommunicationCenterTransportOffersOptionsQuery =\r\n {\r\n __typename: 'Query';\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n byId: {\r\n __typename: 'CommunicationCenter';\r\n communicationCenterTransportOfferOption: {\r\n __typename: 'CommunicationCenterTransportOfferOption';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n includeAbortedUnit: boolean;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n communicationCenterId: string | null;\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapabilityIdList'; id: string }>;\r\n };\r\n } | null;\r\n };\r\n };\r\n\r\nexport type ControlZoneBasesListComponent_FetchBasesQueryVariables = Exact<{\r\n controlZoneId: Scalars['ID'];\r\n}>;\r\n\r\nexport type ControlZoneBasesListComponent_FetchBasesQuery = {\r\n __typename: 'Query';\r\n baseControlZones: {\r\n __typename: 'BaseControlZoneQueries';\r\n all: {\r\n __typename: 'BaseControlZoneCollection';\r\n items: Array<{\r\n __typename: 'BaseControlZone';\r\n id: string;\r\n base: {\r\n __typename: 'Base';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n businessModel: BusinessModel;\r\n companyId: string;\r\n plannedOperationsStart: Date | number | string | null;\r\n operationsStarted: Date | number | string | null;\r\n operationsTerminated: Date | number | string | null;\r\n dateOfMaturity: Date | number | string | null;\r\n primaryPhoneNumber: string | null;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n hoursOfOperation: {\r\n __typename: 'HoursOfOperation';\r\n is24Hours: boolean | null;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n };\r\n };\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n };\r\n controlZone: {\r\n __typename: 'ControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n };\r\n }>;\r\n meta: { __typename: 'BaseControlZoneCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type ControlZoneListPageComponent_FetchAllControlZonesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type ControlZoneListPageComponent_FetchAllControlZonesQuery = {\r\n __typename: 'Query';\r\n controlZones: {\r\n __typename: 'ControlZoneQueries';\r\n all: {\r\n __typename: 'ControlZoneCollection';\r\n items: Array<{\r\n __typename: 'ControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n };\r\n }>;\r\n meta: { __typename: 'ControlZoneCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type ControlZoneVehiclesListComponent_FetchVehiclesQueryVariables = Exact<{\r\n controlZoneId: Scalars['ID'];\r\n}>;\r\n\r\nexport type ControlZoneVehiclesListComponent_FetchVehiclesQuery = {\r\n __typename: 'Query';\r\n vehicleControlZones: {\r\n __typename: 'VehicleControlZoneQueries';\r\n all: {\r\n __typename: 'VehicleControlZoneCollection';\r\n items: Array<{\r\n __typename: 'VehicleControlZone';\r\n id: string;\r\n vehicle: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n } | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n };\r\n controlZone: {\r\n __typename: 'ControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'VehicleControlZoneCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type DeclineCategoryFormComponent_FetchAllDeclineReasonsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type DeclineCategoryFormComponent_FetchAllDeclineReasonsQuery = {\r\n __typename: 'Query';\r\n declineReasons: {\r\n __typename: 'DeclineReasonQueries';\r\n all: {\r\n __typename: 'DeclineReasonCollection';\r\n items: Array<{\r\n __typename: 'DeclineReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n declineCategoryId: string;\r\n controllable: boolean;\r\n canBeSkipReason: boolean;\r\n canBeAbortReason: boolean;\r\n canBeBulkSkipReason: boolean;\r\n canBeOneCallSkipReason: boolean;\r\n isUnitAvailableAfterAbort: boolean;\r\n }>;\r\n meta: { __typename: 'DeclineReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type DeclineCategoryListPageComponent_FetchAllDeclineCategoriesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type DeclineCategoryListPageComponent_FetchAllDeclineCategoriesQuery = {\r\n __typename: 'Query';\r\n declineCategories: {\r\n __typename: 'DeclineCategoryQueries';\r\n all: {\r\n __typename: 'DeclineCategoryCollection';\r\n items: Array<{\r\n __typename: 'DeclineCategory';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n defaultDeclineReasonId: string | null;\r\n defaultDeclineReason: {\r\n __typename: 'DeclineReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n declineCategoryId: string;\r\n controllable: boolean;\r\n canBeSkipReason: boolean;\r\n canBeAbortReason: boolean;\r\n canBeBulkSkipReason: boolean;\r\n canBeOneCallSkipReason: boolean;\r\n isUnitAvailableAfterAbort: boolean;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'DeclineCategoryCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type DeclineReasonFormComponent_FetchAllDeclineCategoriesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type DeclineReasonFormComponent_FetchAllDeclineCategoriesQuery = {\r\n __typename: 'Query';\r\n declineCategories: {\r\n __typename: 'DeclineCategoryQueries';\r\n all: {\r\n __typename: 'DeclineCategoryCollection';\r\n items: Array<{\r\n __typename: 'DeclineCategory';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n defaultDeclineReasonId: string | null;\r\n }>;\r\n meta: { __typename: 'DeclineCategoryCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type DeclineReasonListPageComponent_FetchAllDeclineReasonsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type DeclineReasonListPageComponent_FetchAllDeclineReasonsQuery = {\r\n __typename: 'Query';\r\n declineReasons: {\r\n __typename: 'DeclineReasonQueries';\r\n all: {\r\n __typename: 'DeclineReasonCollection';\r\n items: Array<{\r\n __typename: 'DeclineReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n declineCategoryId: string;\r\n controllable: boolean;\r\n canBeSkipReason: boolean;\r\n canBeAbortReason: boolean;\r\n canBeBulkSkipReason: boolean;\r\n canBeOneCallSkipReason: boolean;\r\n isUnitAvailableAfterAbort: boolean;\r\n }>;\r\n meta: { __typename: 'DeclineReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type DeclineSeconadaryReasonListComponent_FetchSecondaryReasonsByDeclineReasonIdQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type DeclineSeconadaryReasonListComponent_FetchSecondaryReasonsByDeclineReasonIdQuery = {\r\n __typename: 'Query';\r\n declineReasons: {\r\n __typename: 'DeclineReasonQueries';\r\n byId: {\r\n __typename: 'DeclineReason';\r\n declineSecondaryReasons: Array<{\r\n __typename: 'DeclineSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n declineReasonId: string;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type DiversionReasonListPageComponent_FetchAllDiversionReasonsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type DiversionReasonListPageComponent_FetchAllDiversionReasonsQuery = {\r\n __typename: 'Query';\r\n diversionReasons: {\r\n __typename: 'DiversionReasonQueries';\r\n all: {\r\n __typename: 'DiversionReasonCollection';\r\n items: Array<{\r\n __typename: 'DiversionReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }>;\r\n meta: { __typename: 'DiversionReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type FacilityNonAcceptanceReasonListPageComponent_FetchAllFacilityNonAcceptanceReasonsQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n }>;\r\n\r\nexport type FacilityNonAcceptanceReasonListPageComponent_FetchAllFacilityNonAcceptanceReasonsQuery =\r\n {\r\n __typename: 'Query';\r\n facilityNonAcceptanceReasons: {\r\n __typename: 'FacilityNonAcceptanceReasonQueries';\r\n all: {\r\n __typename: 'FacilityNonAcceptanceReasonCollection';\r\n items: Array<{\r\n __typename: 'FacilityNonAcceptanceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n facilityNonAcceptanceReasonType: NonAcceptanceType;\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'FacilityNonAcceptanceReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n };\r\n\r\nexport type FirewallRuleListPageComponent_FetchAllFirewallRulesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type FirewallRuleListPageComponent_FetchAllFirewallRulesQuery = {\r\n __typename: 'Query';\r\n firewallRules: {\r\n __typename: 'FirewallRuleQueries';\r\n all: {\r\n __typename: 'FirewallRuleCollection';\r\n items: Array<{\r\n __typename: 'FirewallRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n action: AccessControlAction;\r\n ipRange: string;\r\n enabled: boolean;\r\n companyId: string | null;\r\n }>;\r\n meta: { __typename: 'FirewallRuleCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type FuelTankListPageComponent_FetchAllFuelTanksQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type FuelTankListPageComponent_FetchAllFuelTanksQuery = {\r\n __typename: 'Query';\r\n fueltanks: {\r\n __typename: 'FuelTankQueries';\r\n all: {\r\n __typename: 'FuelTankCollection';\r\n items: Array<{\r\n __typename: 'FuelTank';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n code: string;\r\n name: string;\r\n locationId: string;\r\n companyId: string;\r\n operationsStarted: Date | number | string | null;\r\n operationsEnded: Date | number | string | null;\r\n sourceSystemId: number | null;\r\n baseId: string | null;\r\n locationName: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n };\r\n }>;\r\n meta: { __typename: 'FuelTankCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type FuelTankManagePageComponent_FetchFuelTankByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FuelTankManagePageComponent_FetchFuelTankByIdQuery = {\r\n __typename: 'Query';\r\n fueltanks: {\r\n __typename: 'FuelTankQueries';\r\n byId: {\r\n __typename: 'FuelTank';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n code: string;\r\n name: string;\r\n locationId: string;\r\n companyId: string;\r\n operationsStarted: Date | number | string | null;\r\n operationsEnded: Date | number | string | null;\r\n sourceSystemId: number | null;\r\n baseId: string | null;\r\n locationName: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n };\r\n } | null;\r\n };\r\n};\r\n\r\nexport type GlobalSettingsFormComponent_FetchAllDeclineReasonsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type GlobalSettingsFormComponent_FetchAllDeclineReasonsQuery = {\r\n __typename: 'Query';\r\n declineReasons: {\r\n __typename: 'DeclineReasonQueries';\r\n all: {\r\n __typename: 'DeclineReasonCollection';\r\n items: Array<{\r\n __typename: 'DeclineReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n declineCategoryId: string;\r\n controllable: boolean;\r\n canBeSkipReason: boolean;\r\n canBeAbortReason: boolean;\r\n canBeBulkSkipReason: boolean;\r\n canBeOneCallSkipReason: boolean;\r\n isUnitAvailableAfterAbort: boolean;\r\n }>;\r\n meta: { __typename: 'DeclineReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type GlobalSettingsFormComponent_FetchAllCancellationReasonsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type GlobalSettingsFormComponent_FetchAllCancellationReasonsQuery = {\r\n __typename: 'Query';\r\n cancellationReasons: {\r\n __typename: 'CancellationReasonQueries';\r\n all: {\r\n __typename: 'CancellationReasonCollection';\r\n items: Array<{\r\n __typename: 'CancellationReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n isTransferCenterReason: boolean;\r\n canBeUnitCancellationReason: boolean | null;\r\n cancellationCategoryId: string | null;\r\n }>;\r\n meta: { __typename: 'CancellationReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type GlobalSettingsListPageComponent_FetchConfiguredRequestActionReasonsQueryVariables =\r\n Exact<{ [key: string]: never }>;\r\n\r\nexport type GlobalSettingsListPageComponent_FetchConfiguredRequestActionReasonsQuery = {\r\n __typename: 'Query';\r\n declineReasons: {\r\n __typename: 'DeclineReasonQueries';\r\n all: {\r\n __typename: 'DeclineReasonCollection';\r\n items: Array<{ __typename: 'DeclineReason'; id: string; name: string }>;\r\n };\r\n };\r\n requests: {\r\n __typename: 'RequestQueries';\r\n allCancellationReasons: Array<{ __typename: 'CancellationReason'; id: string; name: string }>;\r\n };\r\n configurationSettings: {\r\n __typename: 'ConfigurationSettingQueries';\r\n global: {\r\n __typename: 'ConfigurationSetting';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string | null;\r\n defaultUnitCommittedDeclineReasonId: string | null;\r\n defaultUnitOutOfServiceDeclineReasonId: string | null;\r\n requestReferredInternallyCancellationReasonId: string | null;\r\n requestReferredExternallyCancellationReasonId: string | null;\r\n crewGoingByGroundOutOfServiceReasonId: string | null;\r\n assetReassignedDeclineReasonId: string | null;\r\n externallyCancelledCancellationReasonId: string | null;\r\n pilotReportGracePeriodInMinutes: number | null;\r\n sameDestinationWarningThresholdInMinutes: number | null;\r\n bugRequestEmail: string | null;\r\n featureRequestEmail: string | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type GlobalSettingsManagePageComponent_FetchConfigurationSettingsQueryVariables = Exact<{\r\n [key: string]: never;\r\n}>;\r\n\r\nexport type GlobalSettingsManagePageComponent_FetchConfigurationSettingsQuery = {\r\n __typename: 'Query';\r\n configurationSettings: {\r\n __typename: 'ConfigurationSettingQueries';\r\n global: {\r\n __typename: 'ConfigurationSetting';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string | null;\r\n defaultUnitCommittedDeclineReasonId: string | null;\r\n defaultUnitOutOfServiceDeclineReasonId: string | null;\r\n requestReferredInternallyCancellationReasonId: string | null;\r\n requestReferredExternallyCancellationReasonId: string | null;\r\n crewGoingByGroundOutOfServiceReasonId: string | null;\r\n assetReassignedDeclineReasonId: string | null;\r\n externallyCancelledCancellationReasonId: string | null;\r\n pilotReportGracePeriodInMinutes: number | null;\r\n sameDestinationWarningThresholdInMinutes: number | null;\r\n bugRequestEmail: string | null;\r\n featureRequestEmail: string | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type HazardListComponent_FetchAllLocationHazardsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type HazardListComponent_FetchAllLocationHazardsQuery = {\r\n __typename: 'Query';\r\n locationHazards: {\r\n __typename: 'LocationHazardQueries';\r\n all: {\r\n __typename: 'LocationHazardCollection';\r\n items: Array<{\r\n __typename: 'LocationHazard';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n locationId: string;\r\n hazard: string;\r\n companyId: string;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'LocationHazardCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type LandingZoneFormComponent_FetchAllLandingZoneOutOfServiceReasonsQueryVariables = Exact<{\r\n [key: string]: never;\r\n}>;\r\n\r\nexport type LandingZoneFormComponent_FetchAllLandingZoneOutOfServiceReasonsQuery = {\r\n __typename: 'Query';\r\n landingZoneOutOfServiceReasons: {\r\n __typename: 'LandingZoneOutOfServiceReasonQueries';\r\n all: {\r\n __typename: 'LandingZoneOutOfServiceReasonCollection';\r\n items: Array<{\r\n __typename: 'LandingZoneOutOfServiceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type LandingZoneListPageComponent_FetchAllLandingZonesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type LandingZoneListPageComponent_FetchAllLandingZonesQuery = {\r\n __typename: 'Query';\r\n locations: {\r\n __typename: 'LocationQueries';\r\n all: {\r\n __typename: 'LocationCollection';\r\n items: Array<{\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'LocationCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type MedicalFacilitiesListPageComponent_FetchMedicalFacilitiesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type MedicalFacilitiesListPageComponent_FetchMedicalFacilitiesQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n all: {\r\n __typename: 'MedicalFacilityCollection';\r\n items: Array<{\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'MedicalFacilityCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type MedicaFacilityContactListComponent_FetchMedicalFacilityContactsQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type MedicaFacilityContactListComponent_FetchMedicalFacilityContactsQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n byId: {\r\n __typename: 'MedicalFacility';\r\n contacts: Array<{\r\n __typename: 'MedicalFacilityContact';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n medicalFacilityId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type MedicalFacilitiesDetailPageComponent_FetchMedicalFacilityDetailEntitiesQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type MedicalFacilitiesDetailPageComponent_FetchMedicalFacilityDetailEntitiesQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n byId: {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n defaultLandingZone: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n defaultFixedWingLandingZone: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type MedicalFacilitiesDetailPageComponent_FetchAllEntityCapabilitiesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type MedicalFacilitiesDetailPageComponent_FetchAllEntityCapabilitiesQuery = {\r\n __typename: 'Query';\r\n entityCapabilities: {\r\n __typename: 'EntityCapabilityQueries';\r\n all: {\r\n __typename: 'EntityCapabilityCollection';\r\n items: Array<{\r\n __typename: 'EntityCapability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n capabilityId: string;\r\n entityId: string;\r\n entityType: EntityType;\r\n capability: {\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n };\r\n }>;\r\n meta: { __typename: 'EntityCapabilityCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type MedicalFacilityEditPageComponent_FetchMedicalFacilityEntitiesQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type MedicalFacilityEditPageComponent_FetchMedicalFacilityEntitiesQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n byId: {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n defaultLandingZone: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n defaultFixedWingLandingZone: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type MedicalFacilityFormComponent_FetchAllCapabilitiesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type MedicalFacilityFormComponent_FetchAllCapabilitiesQuery = {\r\n __typename: 'Query';\r\n capabilities: {\r\n __typename: 'CapabilityQueries';\r\n all: {\r\n __typename: 'CapabilityCollection';\r\n items: Array<{\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n }>;\r\n meta: { __typename: 'CapabilityCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type MedicalFacilityFormComponent_FetchAllEntityCapabilitiesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type MedicalFacilityFormComponent_FetchAllEntityCapabilitiesQuery = {\r\n __typename: 'Query';\r\n entityCapabilities: {\r\n __typename: 'EntityCapabilityQueries';\r\n all: {\r\n __typename: 'EntityCapabilityCollection';\r\n items: Array<{\r\n __typename: 'EntityCapability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n capabilityId: string;\r\n entityId: string;\r\n entityType: EntityType;\r\n capability: {\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n };\r\n }>;\r\n meta: { __typename: 'EntityCapabilityCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type MedicalFacilityFormComponent_FetchMedicalFacilitiesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type MedicalFacilityFormComponent_FetchMedicalFacilitiesQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n all: {\r\n __typename: 'MedicalFacilityCollection';\r\n items: Array<{\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'MedicalFacilityCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type MergeMedicalFacilityDialogComponent_FetchMedicalFacilityInfoQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type MergeMedicalFacilityDialogComponent_FetchMedicalFacilityInfoQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n byId: {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n contacts: Array<{ __typename: 'MedicalFacilityContact'; id: string }>;\r\n location: {\r\n __typename: 'Location';\r\n locationHazards: Array<{ __typename: 'LocationHazard'; id: string }>;\r\n } | null;\r\n activationRules: Array<{ __typename: 'ActivationRule'; id: string } | null> | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type MedicaFacilityPhysiciansListComponent_FetchMedicalFacilityPhysiciansQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type MedicaFacilityPhysiciansListComponent_FetchMedicalFacilityPhysiciansQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n byId: {\r\n __typename: 'MedicalFacility';\r\n associatedPhysicians: Array<{\r\n __typename: 'MedicalFacilityPhysician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n physicianId: string;\r\n medicalFacilityId: string;\r\n physician: {\r\n __typename: 'Physician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n };\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type MedicaFacilityUnitsListComponent_FetchMedicalFacilityUnitsQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type MedicaFacilityUnitsListComponent_FetchMedicalFacilityUnitsQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n byId: {\r\n __typename: 'MedicalFacility';\r\n units: Array<{\r\n __typename: 'MedicalFacilityUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n medicalFacilityId: string;\r\n phoneNumber: string | null;\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type NonReferralReasonListPageComponent_FetchAllNonReferralReasonsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type NonReferralReasonListPageComponent_FetchAllNonReferralReasonsQuery = {\r\n __typename: 'Query';\r\n nonReferralReasons: {\r\n __typename: 'NonReferralReasonQueries';\r\n all: {\r\n __typename: 'NonReferralReasonCollection';\r\n items: Array<{\r\n __typename: 'NonReferralReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n associatedCancellationReasonId: string | null;\r\n associatedCancellationSecondaryReasonId: string | null;\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'NonReferralReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type NotificationTemplateListPageComponent_FetchAllNotificationTemplatesQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n }>;\r\n\r\nexport type NotificationTemplateListPageComponent_FetchAllNotificationTemplatesQuery = {\r\n __typename: 'Query';\r\n notificationTemplates: {\r\n __typename: 'NotificationTemplateQueries';\r\n all: {\r\n __typename: 'NotificationTemplateCollection';\r\n items: Array<{\r\n __typename: 'NotificationTemplate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n contextType: EntityType;\r\n bodyTemplate: string;\r\n canBeManualTrigger: boolean;\r\n companyId: string | null;\r\n triggerType: NotificationTriggerType | null;\r\n triggerValue: string | null;\r\n activationRuleId: string | null;\r\n recipientTypes: Array | null;\r\n subjectTemplate: string | null;\r\n requiresApproval: boolean | null;\r\n groupTypes: Array | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n } | null;\r\n activationRule: {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n medicalFacility: {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n } | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'NotificationTemplateCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type OfferAlgorithmFormComponent_FetchAgencyLocationsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type OfferAlgorithmFormComponent_FetchAgencyLocationsQuery = {\r\n __typename: 'Query';\r\n agencyLocations: {\r\n __typename: 'AgencyLocationQueries';\r\n all: {\r\n __typename: 'AgencyLocationCollection';\r\n items: Array<{\r\n __typename: 'AgencyLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n agencyId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n }>;\r\n meta: { __typename: 'AgencyLocationCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type OfferAlgorithmListPageComponent_FetchAllOfferAlgorithmsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type OfferAlgorithmListPageComponent_FetchAllOfferAlgorithmsQuery = {\r\n __typename: 'Query';\r\n offerAlgorithms: {\r\n __typename: 'OfferAlgorithmQueries';\r\n all: {\r\n __typename: 'OfferAlgorithmCollection';\r\n items: Array<{\r\n __typename: 'OfferAlgorithm';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n oneCallAgreement: boolean;\r\n rank: number;\r\n transportOfferAlgorithm: TransportOfferAlgorithm;\r\n distanceCalculation: DistanceCalculation;\r\n activationRuleId: string;\r\n companyId: string;\r\n isEnabled: boolean;\r\n minimumFlightRule: FlightRule | null;\r\n activationRule: {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n medicalFacility: {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n } | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n };\r\n preferredUnits: Array<{\r\n __typename: 'PreferredUnit';\r\n id: string;\r\n unitAbbreviation: string;\r\n rank: number;\r\n type: PreferredUnitType;\r\n }>;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }>;\r\n meta: { __typename: 'OfferAlgorithmCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type OktaDirectoryListComponent_FetchOktaUsersQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type OktaDirectoryListComponent_FetchOktaUsersQuery = {\r\n __typename: 'Query';\r\n okta: {\r\n __typename: 'OktaQueries';\r\n allUsers: {\r\n __typename: 'OktaUserCollection';\r\n items: Array<{\r\n __typename: 'OktaUser';\r\n id: string;\r\n profile: {\r\n __typename: 'OktaUserProfile';\r\n login: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeNumber: string | null;\r\n };\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type OktaProfileDetailPageComponent_FetchOktaDetailEntitiesByIdQueryVariables = Exact<{\r\n idOrLogin: Scalars['ID'];\r\n}>;\r\n\r\nexport type OktaProfileDetailPageComponent_FetchOktaDetailEntitiesByIdQuery = {\r\n __typename: 'Query';\r\n okta: {\r\n __typename: 'OktaQueries';\r\n user: {\r\n __typename: 'OktaUser';\r\n id: string;\r\n status: string;\r\n lastUpdated: Date | number | string;\r\n created: Date | number | string;\r\n profile: {\r\n __typename: 'OktaUserProfile';\r\n login: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeNumber: string | null;\r\n };\r\n } | null;\r\n };\r\n};\r\n\r\nexport type ActivationRuleManageDialog_GetActivationRuleIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type ActivationRuleManageDialog_GetActivationRuleIdQuery = {\r\n __typename: 'Query';\r\n activationRules: {\r\n __typename: 'ActivationRuleQueries';\r\n byId: {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n medicalFacility: {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n requesters: Array<{ __typename: 'Requester'; id: string } | null> | null;\r\n requests: Array<{ __typename: 'RequestLocation'; id: string } | null> | null;\r\n } | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type CommunicationCenterRegionDialog_FetchUnitsByRegionIdQueryVariables = Exact<{\r\n regionId: InputMaybe;\r\n includeHidden: InputMaybe;\r\n}>;\r\n\r\nexport type CommunicationCenterRegionDialog_FetchUnitsByRegionIdQuery = {\r\n __typename: 'Query';\r\n units: {\r\n __typename: 'UnitQueries';\r\n all: {\r\n __typename: 'UnitCollection';\r\n items: Array<{\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type CommunicationCenterRegionFormComponent_FetchAllCommunicationCentersQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n }>;\r\n\r\nexport type CommunicationCenterRegionFormComponent_FetchAllCommunicationCentersQuery = {\r\n __typename: 'Query';\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n all: {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array<{\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n }>;\r\n meta: { __typename: 'CommunicationCenterCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type ControlZoneBaseForm_GetBasesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type ControlZoneBaseForm_GetBasesQuery = {\r\n __typename: 'Query';\r\n bases: {\r\n __typename: 'BaseQueries';\r\n all: {\r\n __typename: 'BaseCollection';\r\n items: Array<{\r\n __typename: 'Base';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n businessModel: BusinessModel;\r\n companyId: string;\r\n plannedOperationsStart: Date | number | string | null;\r\n operationsStarted: Date | number | string | null;\r\n operationsTerminated: Date | number | string | null;\r\n dateOfMaturity: Date | number | string | null;\r\n primaryPhoneNumber: string | null;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n company: { __typename: 'Company'; companyCode: string };\r\n hoursOfOperation: {\r\n __typename: 'HoursOfOperation';\r\n is24Hours: boolean | null;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n };\r\n }>;\r\n meta: { __typename: 'BaseCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type ControlZoneVehicleForm_GetVehiclesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type ControlZoneVehicleForm_GetVehiclesQuery = {\r\n __typename: 'Query';\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n all: {\r\n __typename: 'VehicleCollection';\r\n items: Array<{\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n company: { __typename: 'Company'; companyCode: string };\r\n }>;\r\n meta: { __typename: 'VehicleCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type HazardEditDialogComponent_FetchLocationHazardAttachmentsQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type HazardEditDialogComponent_FetchLocationHazardAttachmentsQuery = {\r\n __typename: 'Query';\r\n locationHazards: {\r\n __typename: 'LocationHazardQueries';\r\n byId: {\r\n __typename: 'LocationHazard';\r\n locationHazardAttachments: Array<{\r\n __typename: 'LocationHazardAttachment';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n locationHazardId: string;\r\n fileName: string;\r\n companyId: string;\r\n fileSizeInBytes: number | null;\r\n contentType: string | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type MedicalFacilityAssociatedPhysicianFormComponent_FetchAllPhysiciansQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n }>;\r\n\r\nexport type MedicalFacilityAssociatedPhysicianFormComponent_FetchAllPhysiciansQuery = {\r\n __typename: 'Query';\r\n physicians: {\r\n __typename: 'PhysicianQueries';\r\n all: {\r\n __typename: 'PhysicianCollection';\r\n items: Array<{\r\n __typename: 'Physician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n }>;\r\n meta: { __typename: 'PhysicianCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type NotificationGroupListDialogComponent_FetchAllNotificationGroupsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type NotificationGroupListDialogComponent_FetchAllNotificationGroupsQuery = {\r\n __typename: 'Query';\r\n notificationGroups: {\r\n __typename: 'NotificationGroupQueries';\r\n all: {\r\n __typename: 'NotificationGroupCollection';\r\n items: Array<{\r\n __typename: 'NotificationGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n unitId: string | null;\r\n regionId: string | null;\r\n type: NotificationGroupType | null;\r\n types: Array | null;\r\n }>;\r\n meta: { __typename: 'NotificationGroupCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type NotificationGroupMemberListDialogComponent_FetchAllNotificationGroupMembersQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n }>;\r\n\r\nexport type NotificationGroupMemberListDialogComponent_FetchAllNotificationGroupMembersQuery = {\r\n __typename: 'Query';\r\n notificationGroupMembers: {\r\n __typename: 'NotificationGroupMemberQueries';\r\n all: {\r\n __typename: 'NotificationGroupMemberCollection';\r\n items: Array<{\r\n __typename: 'NotificationGroupMember';\r\n id: string;\r\n notificationGroupId: string;\r\n name: string;\r\n userId: string | null;\r\n notificationAddress: string | null;\r\n user: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n isAviationSupervisor: boolean;\r\n notificationAddress: string | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'NotificationGroupMemberCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type UserNotificationGroupsDialogComponent_FetchAllNotificationGroupsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type UserNotificationGroupsDialogComponent_FetchAllNotificationGroupsQuery = {\r\n __typename: 'Query';\r\n notificationGroups: {\r\n __typename: 'NotificationGroupQueries';\r\n all: {\r\n __typename: 'NotificationGroupCollection';\r\n items: Array<{\r\n __typename: 'NotificationGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n unitId: string | null;\r\n regionId: string | null;\r\n type: NotificationGroupType | null;\r\n types: Array | null;\r\n }>;\r\n meta: { __typename: 'NotificationGroupCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type UserNotificationGroupsDialogComponent_FetchUserNotificationGroupsQueryVariables =\r\n Exact<{\r\n personId: Scalars['ID'];\r\n }>;\r\n\r\nexport type UserNotificationGroupsDialogComponent_FetchUserNotificationGroupsQuery = {\r\n __typename: 'Query';\r\n notificationGroups: {\r\n __typename: 'NotificationGroupQueries';\r\n byPerson: Array<{ __typename: 'NotificationGroup'; id: string }>;\r\n };\r\n};\r\n\r\nexport type VehicleMaintenanceFormComponent_FetchAllNextDueTypesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type VehicleMaintenanceFormComponent_FetchAllNextDueTypesQuery = {\r\n __typename: 'Query';\r\n nextDueTypes: {\r\n __typename: 'NextDueTypeQueries';\r\n all: {\r\n __typename: 'NextDueTypeCollection';\r\n items: Array<{ __typename: 'NextDueType'; id: string; name: string; dataType: string }>;\r\n };\r\n };\r\n};\r\n\r\nexport type OutOfServiceReasonListPageComponent_FetchAllOutOfServiceReasonsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type OutOfServiceReasonListPageComponent_FetchAllOutOfServiceReasonsQuery = {\r\n __typename: 'Query';\r\n outOfServiceReasons: {\r\n __typename: 'OutOfServiceReasonQueries';\r\n all: {\r\n __typename: 'OutOfServiceReasonCollection';\r\n items: Array<{\r\n __typename: 'OutOfServiceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n controllable: boolean;\r\n isVehicleReason: boolean;\r\n description: string | null;\r\n }>;\r\n meta: { __typename: 'OutOfServiceReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type OutOfServiceSeconadaryReasonListComponent_FetchSecondaryReasonsByPrimaryReasonIdQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type OutOfServiceSeconadaryReasonListComponent_FetchSecondaryReasonsByPrimaryReasonIdQuery =\r\n {\r\n __typename: 'Query';\r\n outOfServiceReasons: {\r\n __typename: 'OutOfServiceReasonQueries';\r\n byId: {\r\n __typename: 'OutOfServiceReason';\r\n outOfServiceSecondaryReasons: Array<{\r\n __typename: 'OutOfServiceSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n outOfServiceReasonId: string;\r\n }>;\r\n } | null;\r\n };\r\n };\r\n\r\nexport type PhysicianListPageComponent_FetchAllPhysiciansQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type PhysicianListPageComponent_FetchAllPhysiciansQuery = {\r\n __typename: 'Query';\r\n physicians: {\r\n __typename: 'PhysicianQueries';\r\n all: {\r\n __typename: 'PhysicianCollection';\r\n items: Array<{\r\n __typename: 'Physician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'PhysicianCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type PhysicianMedicalFacilitiesListComponent_FetchPhysicianMedicalFacilitiesQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type PhysicianMedicalFacilitiesListComponent_FetchPhysicianMedicalFacilitiesQuery = {\r\n __typename: 'Query';\r\n physicians: {\r\n __typename: 'PhysicianQueries';\r\n byId: {\r\n __typename: 'Physician';\r\n medicalFacilities: Array<{\r\n __typename: 'MedicalFacilityPhysician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n physicianId: string;\r\n medicalFacilityId: string;\r\n medicalFacility: {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n };\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type QuestionnaireDetailPageComponent_FetchQuestionnaireByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type QuestionnaireDetailPageComponent_FetchQuestionnaireByIdQuery = {\r\n __typename: 'Query';\r\n questionnaires: {\r\n __typename: 'QuestionnaireQueries';\r\n byId: {\r\n __typename: 'Questionnaire';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n type: QuestionnaireType;\r\n communicationCenterId: string | null;\r\n questionnaireSections: Array<{\r\n __typename: 'QuestionnaireSection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n questionnaireId: string;\r\n sequence: number;\r\n questionnaireSectionQuestions: Array<{\r\n __typename: 'QuestionnaireSectionQuestion';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireSectionId: string;\r\n questionId: string;\r\n responsibleRole: UserRole;\r\n sequence: number;\r\n isDisabled: boolean;\r\n activationRuleId: string | null;\r\n activityType: string | null;\r\n question: {\r\n __typename: 'Question';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n question: string;\r\n questionType: QuestionType;\r\n dataType: QuestionDataType | null;\r\n choices: Array<{\r\n __typename: 'QuestionChoice';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n label: string;\r\n value: string;\r\n questionId: string;\r\n }>;\r\n };\r\n activationRule: {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n } | null;\r\n explanationRequiredChoices: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n reviewRequiredChoices: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }>;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type QuestionnaireFormComponent_FetchAllCommunicationCentersQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type QuestionnaireFormComponent_FetchAllCommunicationCentersQuery = {\r\n __typename: 'Query';\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n all: {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array<{\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n };\r\n }>;\r\n meta: { __typename: 'CommunicationCenterCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type QuestionnaireListPageComponent_FetchQuestionnairesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type QuestionnaireListPageComponent_FetchQuestionnairesQuery = {\r\n __typename: 'Query';\r\n questionnaires: {\r\n __typename: 'QuestionnaireQueries';\r\n all: {\r\n __typename: 'QuestionnaireCollection';\r\n items: Array<{\r\n __typename: 'Questionnaire';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n type: QuestionnaireType;\r\n communicationCenterId: string | null;\r\n }>;\r\n meta: { __typename: 'QuestionnaireCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type QuestionnaireManagePageComponent_FetchQuestionnaireByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type QuestionnaireManagePageComponent_FetchQuestionnaireByIdQuery = {\r\n __typename: 'Query';\r\n questionnaires: {\r\n __typename: 'QuestionnaireQueries';\r\n byId: {\r\n __typename: 'Questionnaire';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n type: QuestionnaireType;\r\n communicationCenterId: string | null;\r\n questionnaireSections: Array<{\r\n __typename: 'QuestionnaireSection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n questionnaireId: string;\r\n sequence: number;\r\n questionnaireSectionQuestions: Array<{\r\n __typename: 'QuestionnaireSectionQuestion';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireSectionId: string;\r\n questionId: string;\r\n responsibleRole: UserRole;\r\n sequence: number;\r\n isDisabled: boolean;\r\n activationRuleId: string | null;\r\n activityType: string | null;\r\n explanationRequiredChoices: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n reviewRequiredChoices: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }>;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type QuestionnaireSectionQuestionFormComponent_FetchActivationRuleByIdQueryVariables =\r\n Exact<{\r\n id: Scalars['ID'];\r\n }>;\r\n\r\nexport type QuestionnaireSectionQuestionFormComponent_FetchActivationRuleByIdQuery = {\r\n __typename: 'Query';\r\n activationRules: {\r\n __typename: 'ActivationRuleQueries';\r\n byId: {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type QuestionnaireContextResolverService_FetchQuestionsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type QuestionnaireContextResolverService_FetchQuestionsQuery = {\r\n __typename: 'Query';\r\n questions: {\r\n __typename: 'QuestionQueries';\r\n all: {\r\n __typename: 'QuestionCollection';\r\n items: Array<{\r\n __typename: 'Question';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n question: string;\r\n questionType: QuestionType;\r\n dataType: QuestionDataType | null;\r\n choices: Array<{\r\n __typename: 'QuestionChoice';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n label: string;\r\n value: string;\r\n questionId: string;\r\n }>;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type QuestionDetailPageComponent_FetchQuestionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type QuestionDetailPageComponent_FetchQuestionByIdQuery = {\r\n __typename: 'Query';\r\n questions: {\r\n __typename: 'QuestionQueries';\r\n byId: {\r\n __typename: 'Question';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n question: string;\r\n questionType: QuestionType;\r\n dataType: QuestionDataType | null;\r\n choices: Array<{\r\n __typename: 'QuestionChoice';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n label: string;\r\n value: string;\r\n questionId: string;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type QuestionListPageComponent_FetchQuestionsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type QuestionListPageComponent_FetchQuestionsQuery = {\r\n __typename: 'Query';\r\n questions: {\r\n __typename: 'QuestionQueries';\r\n all: {\r\n __typename: 'QuestionCollection';\r\n items: Array<{\r\n __typename: 'Question';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n question: string;\r\n questionType: QuestionType;\r\n dataType: QuestionDataType | null;\r\n choices: Array<{\r\n __typename: 'QuestionChoice';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n label: string;\r\n value: string;\r\n questionId: string;\r\n }>;\r\n }>;\r\n meta: { __typename: 'QuestionCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type QuestionManagePageComponent_FetchQuestionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type QuestionManagePageComponent_FetchQuestionByIdQuery = {\r\n __typename: 'Query';\r\n questions: {\r\n __typename: 'QuestionQueries';\r\n byId: {\r\n __typename: 'Question';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n question: string;\r\n questionType: QuestionType;\r\n dataType: QuestionDataType | null;\r\n choices: Array<{\r\n __typename: 'QuestionChoice';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n label: string;\r\n value: string;\r\n questionId: string;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type TimelineDetailPageComponent_FetchTimelineByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type TimelineDetailPageComponent_FetchTimelineByIdQuery = {\r\n __typename: 'Query';\r\n timelines: {\r\n __typename: 'TimelineQueries';\r\n byId: {\r\n __typename: 'Timeline';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n activationRuleId: string | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n } | null;\r\n activationRule: {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n } | null;\r\n items: Array<{\r\n __typename: 'TimelineItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n timestampTypeId: string;\r\n required: boolean;\r\n sequence: number;\r\n timelineId: string;\r\n timestampType: {\r\n __typename: 'TimestampType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n order: number;\r\n systemTimestampType: SystemTimestampType | null;\r\n description: string | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n };\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type TimelineFormComponent_FetchActivationRuleByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type TimelineFormComponent_FetchActivationRuleByIdQuery = {\r\n __typename: 'Query';\r\n activationRules: {\r\n __typename: 'ActivationRuleQueries';\r\n byId: {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type TimelineListPageComponent_FetchTimelinesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type TimelineListPageComponent_FetchTimelinesQuery = {\r\n __typename: 'Query';\r\n timelines: {\r\n __typename: 'TimelineQueries';\r\n all: {\r\n __typename: 'TimelineCollection';\r\n items: Array<{\r\n __typename: 'Timeline';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n activationRuleId: string | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n } | null;\r\n activationRule: {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'TimelineCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type TimelineManagePageComponent_FetchTimelineByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type TimelineManagePageComponent_FetchTimelineByIdQuery = {\r\n __typename: 'Query';\r\n timelines: {\r\n __typename: 'TimelineQueries';\r\n byId: {\r\n __typename: 'Timeline';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n activationRuleId: string | null;\r\n items: Array<{\r\n __typename: 'TimelineItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n timestampTypeId: string;\r\n required: boolean;\r\n sequence: number;\r\n timelineId: string;\r\n timestampType: {\r\n __typename: 'TimestampType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n order: number;\r\n systemTimestampType: SystemTimestampType | null;\r\n description: string | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n };\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type TimelinesContextResolverService_FetchTimelinesContextQueryVariables = Exact<{\r\n [key: string]: never;\r\n}>;\r\n\r\nexport type TimelinesContextResolverService_FetchTimelinesContextQuery = {\r\n __typename: 'Query';\r\n timestampTypes: {\r\n __typename: 'TimestampTypeQueries';\r\n all: {\r\n __typename: 'TimestampTypeCollection';\r\n items: Array<{\r\n __typename: 'TimestampType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n order: number;\r\n systemTimestampType: SystemTimestampType | null;\r\n description: string | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type TimestampTypeListPageComponent_FetchAllTimestampTypesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type TimestampTypeListPageComponent_FetchAllTimestampTypesQuery = {\r\n __typename: 'Query';\r\n timestampTypes: {\r\n __typename: 'TimestampTypeQueries';\r\n all: {\r\n __typename: 'TimestampTypeCollection';\r\n items: Array<{\r\n __typename: 'TimestampType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n order: number;\r\n systemTimestampType: SystemTimestampType | null;\r\n description: string | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }>;\r\n meta: { __typename: 'TimestampTypeCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type TransferReasonListPageComponent_FetchAllTransferReasonsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type TransferReasonListPageComponent_FetchAllTransferReasonsQuery = {\r\n __typename: 'Query';\r\n transferReasons: {\r\n __typename: 'TransferReasonQueries';\r\n all: {\r\n __typename: 'TransferReasonCollection';\r\n items: Array<{\r\n __typename: 'TransferReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }>;\r\n meta: { __typename: 'TransferReasonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type TrmUserListPageComponent_FetchTrmUsersQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type TrmUserListPageComponent_FetchTrmUsersQuery = {\r\n __typename: 'Query';\r\n trmUsers: {\r\n __typename: 'TrmUserQueries';\r\n all: {\r\n __typename: 'TrmUserCollection';\r\n items: Array<{\r\n __typename: 'TrmUser';\r\n firstName: string;\r\n lastName: string;\r\n emailAddress: string;\r\n phoneNumber: string;\r\n dateCreated: Date | number | string;\r\n userStatus: TrmUserStatus;\r\n trmUserAgencies: Array<{\r\n __typename: 'TrmUserAgency';\r\n agency: { __typename: 'Agency'; name: string };\r\n }>;\r\n trmUserPrograms: Array<{\r\n __typename: 'TrmUserProgram';\r\n isPreferred: boolean;\r\n trmUserId: string;\r\n programId: string;\r\n program: { __typename: 'Program'; id: string; name: string; abbreviation: string };\r\n }>;\r\n trmUserMedicalFacilities: Array<{\r\n __typename: 'TrmUserMedicalFacility';\r\n medicalFacility: { __typename: 'MedicalFacility'; name: string };\r\n }>;\r\n }>;\r\n meta: { __typename: 'TrmUserCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type TrmUserListPageComponent_FetchAllAgenciesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type TrmUserListPageComponent_FetchAllAgenciesQuery = {\r\n __typename: 'Query';\r\n agencies: {\r\n __typename: 'AgencyQueries';\r\n all: {\r\n __typename: 'AgencyCollection';\r\n items: Array<{ __typename: 'Agency'; name: string; id: string }>;\r\n meta: { __typename: 'AgencyCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type TrmUserListPageComponent_FetchAllMedicalFacilitiesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type TrmUserListPageComponent_FetchAllMedicalFacilitiesQuery = {\r\n __typename: 'Query';\r\n medicalFacilities: {\r\n __typename: 'MedicalFacilityQueries';\r\n all: {\r\n __typename: 'MedicalFacilityCollection';\r\n items: Array<{ __typename: 'MedicalFacility'; name: string; id: string }>;\r\n meta: { __typename: 'MedicalFacilityCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type VehicleModelsListPageComponent_FetchAllVehicleModelsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type VehicleModelsListPageComponent_FetchAllVehicleModelsQuery = {\r\n __typename: 'Query';\r\n vehicleModels: {\r\n __typename: 'VehicleModelQueries';\r\n all: {\r\n __typename: 'VehicleModelCollection';\r\n items: Array<{\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n }>;\r\n meta: { __typename: 'VehicleModelCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type BasesFormComponent_FetchAllBasesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type BasesFormComponent_FetchAllBasesQuery = {\r\n __typename: 'Query';\r\n bases: {\r\n __typename: 'BaseQueries';\r\n all: {\r\n __typename: 'BaseCollection';\r\n items: Array<{\r\n __typename: 'Base';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n businessModel: BusinessModel;\r\n companyId: string;\r\n plannedOperationsStart: Date | number | string | null;\r\n operationsStarted: Date | number | string | null;\r\n operationsTerminated: Date | number | string | null;\r\n dateOfMaturity: Date | number | string | null;\r\n primaryPhoneNumber: string | null;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n hoursOfOperation: {\r\n __typename: 'HoursOfOperation';\r\n is24Hours: boolean | null;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n };\r\n }>;\r\n meta: { __typename: 'BaseCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type BaseMedicalControlContactListComponent_FetchBaseMedicalControlContactsQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n }>;\r\n\r\nexport type BaseMedicalControlContactListComponent_FetchBaseMedicalControlContactsQuery = {\r\n __typename: 'Query';\r\n bases: {\r\n __typename: 'BaseQueries';\r\n all: {\r\n __typename: 'BaseCollection';\r\n items: Array<{\r\n __typename: 'Base';\r\n medicalControlContacts: Array<{\r\n __typename: 'BaseMedicalControlContact';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n personId: string;\r\n rank: number;\r\n baseId: string;\r\n companyId: string;\r\n specialty: string | null;\r\n person: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n };\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n baseMedicalControlContactStates: Array<{\r\n __typename: 'BaseMedicalControlContactState';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n companyId: string;\r\n baseMedicalControlContactId: string | null;\r\n } | null> | null;\r\n }>;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type BasesListPageComponent_FetchAllBasesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type BasesListPageComponent_FetchAllBasesQuery = {\r\n __typename: 'Query';\r\n bases: {\r\n __typename: 'BaseQueries';\r\n all: {\r\n __typename: 'BaseCollection';\r\n items: Array<{\r\n __typename: 'Base';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n businessModel: BusinessModel;\r\n companyId: string;\r\n plannedOperationsStart: Date | number | string | null;\r\n operationsStarted: Date | number | string | null;\r\n operationsTerminated: Date | number | string | null;\r\n dateOfMaturity: Date | number | string | null;\r\n primaryPhoneNumber: string | null;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n hoursOfOperation: {\r\n __typename: 'HoursOfOperation';\r\n is24Hours: boolean | null;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n };\r\n }>;\r\n meta: { __typename: 'BaseCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type ComplianceListPageComponent_FetchAllPeopleQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type ComplianceListPageComponent_FetchAllPeopleQuery = {\r\n __typename: 'Query';\r\n people: {\r\n __typename: 'PersonQueries';\r\n all: {\r\n __typename: 'PersonCollection';\r\n items: Array<{\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n };\r\n department: {\r\n __typename: 'Department';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n code: string;\r\n } | null;\r\n accessibleItems: Array<{\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }>;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n }>;\r\n meta: { __typename: 'PersonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type NotificationGroupListPageComponent_FetchAllNotificationGroupsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type NotificationGroupListPageComponent_FetchAllNotificationGroupsQuery = {\r\n __typename: 'Query';\r\n notificationGroups: {\r\n __typename: 'NotificationGroupQueries';\r\n all: {\r\n __typename: 'NotificationGroupCollection';\r\n items: Array<{\r\n __typename: 'NotificationGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n unitId: string | null;\r\n regionId: string | null;\r\n type: NotificationGroupType | null;\r\n types: Array | null;\r\n }>;\r\n meta: { __typename: 'NotificationGroupCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type ManageCommunicationCenterRoleResolverService_ResolveQueryVariables = Exact<{\r\n personId: Scalars['ID'];\r\n}>;\r\n\r\nexport type ManageCommunicationCenterRoleResolverService_ResolveQuery = {\r\n __typename: 'Query';\r\n people: {\r\n __typename: 'PersonQueries';\r\n byId: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n accessibleItems: Array<{\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }>;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n };\r\n companies: {\r\n __typename: 'CompanyQueries';\r\n all: {\r\n __typename: 'CompanyCollection';\r\n items: Array<{\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n }>;\r\n };\r\n };\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n all: {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array<{\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type PersonListPageComponent_FetchAllPeopleQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type PersonListPageComponent_FetchAllPeopleQuery = {\r\n __typename: 'Query';\r\n people: {\r\n __typename: 'PersonQueries';\r\n all: {\r\n __typename: 'PersonCollection';\r\n items: Array<{\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n };\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n }>;\r\n meta: { __typename: 'PersonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type UserDetailPageComponent_FetchOktaPersonEntitiesByIdQueryVariables = Exact<{\r\n idOrLogin: Scalars['ID'];\r\n}>;\r\n\r\nexport type UserDetailPageComponent_FetchOktaPersonEntitiesByIdQuery = {\r\n __typename: 'Query';\r\n okta: {\r\n __typename: 'OktaQueries';\r\n user: {\r\n __typename: 'OktaUser';\r\n id: string;\r\n lastUpdated: Date | number | string;\r\n created: Date | number | string;\r\n profile: {\r\n __typename: 'OktaUserProfile';\r\n login: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeNumber: string | null;\r\n };\r\n } | null;\r\n };\r\n};\r\n\r\nexport type UserFormComponent_FetchAccessibleItemsQueryVariables = Exact<{\r\n personId: Scalars['ID'];\r\n}>;\r\n\r\nexport type UserFormComponent_FetchAccessibleItemsQuery = {\r\n __typename: 'Query';\r\n people: {\r\n __typename: 'PersonQueries';\r\n byId: {\r\n __typename: 'Person';\r\n accessibleItems: Array<{\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type UserFormComponent_FetchAllCommunicationCentersQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type UserFormComponent_FetchAllCommunicationCentersQuery = {\r\n __typename: 'Query';\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n all: {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array<{\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n }>;\r\n meta: { __typename: 'CommunicationCenterCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type UserFormComponent_FetchAllProgramsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type UserFormComponent_FetchAllProgramsQuery = {\r\n __typename: 'Query';\r\n programs: {\r\n __typename: 'ProgramQueries';\r\n all: {\r\n __typename: 'ProgramCollection';\r\n items: Array<{\r\n __typename: 'Program';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n companyId: string;\r\n adminId: string | null;\r\n }>;\r\n meta: { __typename: 'ProgramCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type UserFormComponent_FetchAllBasesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type UserFormComponent_FetchAllBasesQuery = {\r\n __typename: 'Query';\r\n bases: {\r\n __typename: 'BaseQueries';\r\n all: {\r\n __typename: 'BaseCollection';\r\n items: Array<{\r\n __typename: 'Base';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n businessModel: BusinessModel;\r\n companyId: string;\r\n plannedOperationsStart: Date | number | string | null;\r\n operationsStarted: Date | number | string | null;\r\n operationsTerminated: Date | number | string | null;\r\n dateOfMaturity: Date | number | string | null;\r\n primaryPhoneNumber: string | null;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n hoursOfOperation: {\r\n __typename: 'HoursOfOperation';\r\n is24Hours: boolean | null;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n };\r\n }>;\r\n meta: { __typename: 'BaseCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type ManageOccRolePageResolver_ResolveQueryVariables = Exact<{\r\n personId: Scalars['ID'];\r\n}>;\r\n\r\nexport type ManageOccRolePageResolver_ResolveQuery = {\r\n __typename: 'Query';\r\n people: {\r\n __typename: 'PersonQueries';\r\n byId: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n accessibleItems: Array<{\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }>;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n };\r\n companies: {\r\n __typename: 'CompanyQueries';\r\n all: {\r\n __typename: 'CompanyCollection';\r\n items: Array<{\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n }>;\r\n };\r\n };\r\n controlZones: {\r\n __typename: 'ControlZoneQueries';\r\n all: {\r\n __typename: 'ControlZoneCollection';\r\n items: Array<{\r\n __typename: 'ControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type ManageOccRolePage_ResolverQueryVariables = Exact<{\r\n personId: Scalars['ID'];\r\n}>;\r\n\r\nexport type ManageOccRolePage_ResolverQuery = {\r\n __typename: 'Query';\r\n people: {\r\n __typename: 'PersonQueries';\r\n byId: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n accessibleItems: Array<{\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }>;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n };\r\n companies: {\r\n __typename: 'CompanyQueries';\r\n all: {\r\n __typename: 'CompanyCollection';\r\n items: Array<{\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n }>;\r\n };\r\n };\r\n controlZones: {\r\n __typename: 'ControlZoneQueries';\r\n all: {\r\n __typename: 'ControlZoneCollection';\r\n items: Array<{\r\n __typename: 'ControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type RegionGroupsFormComponent_FetchAllDepartmentsQueryVariables = Exact<{\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type RegionGroupsFormComponent_FetchAllDepartmentsQuery = {\r\n __typename: 'Query';\r\n allDepartments: Array<{ __typename: 'Department'; id: string; name: string; code: string }>;\r\n};\r\n\r\nexport type RegionGroupsListPageComponent_FetchAllRegionGroupsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type RegionGroupsListPageComponent_FetchAllRegionGroupsQuery = {\r\n __typename: 'Query';\r\n regionGroups: {\r\n __typename: 'RegionGroupQueries';\r\n all: {\r\n __typename: 'RegionGroupCollection';\r\n items: Array<{\r\n __typename: 'RegionGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n departmentId: string;\r\n companyId: string;\r\n }>;\r\n meta: { __typename: 'RegionGroupCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type RegionFormComponent_FetchAllCommunicationCentersQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type RegionFormComponent_FetchAllCommunicationCentersQuery = {\r\n __typename: 'Query';\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n all: {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array<{\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n }>;\r\n meta: { __typename: 'CommunicationCenterCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type RegionFormComponent_FetchAllRegionGroupsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type RegionFormComponent_FetchAllRegionGroupsQuery = {\r\n __typename: 'Query';\r\n regionGroups: {\r\n __typename: 'RegionGroupQueries';\r\n all: {\r\n __typename: 'RegionGroupCollection';\r\n items: Array<{\r\n __typename: 'RegionGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n departmentId: string;\r\n companyId: string;\r\n }>;\r\n meta: { __typename: 'RegionGroupCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type RegionsListPageComponent_FetchAllRegionsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type RegionsListPageComponent_FetchAllRegionsQuery = {\r\n __typename: 'Query';\r\n regions: {\r\n __typename: 'RegionQueries';\r\n all: {\r\n __typename: 'RegionCollection';\r\n items: Array<{\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n regionGroup: {\r\n __typename: 'RegionGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n departmentId: string;\r\n companyId: string;\r\n };\r\n communicationCenter: {\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n };\r\n }>;\r\n meta: { __typename: 'RegionCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type SpecialtyTeamListPageComponent_FetchAllSpecialtyTeamsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type SpecialtyTeamListPageComponent_FetchAllSpecialtyTeamsQuery = {\r\n __typename: 'Query';\r\n specialtyTeams: {\r\n __typename: 'SpecialtyTeamQueries';\r\n all: {\r\n __typename: 'SpecialtyTeamCollection';\r\n items: Array<{\r\n __typename: 'SpecialtyTeam';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n affiliationId: string;\r\n companyId: string;\r\n }>;\r\n meta: { __typename: 'SpecialtyTeamCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type SpecialtyTeamMemberListPageComponent_FetchAllSpecialtyTeamMembersQueryVariables =\r\n Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n }>;\r\n\r\nexport type SpecialtyTeamMemberListPageComponent_FetchAllSpecialtyTeamMembersQuery = {\r\n __typename: 'Query';\r\n specialtyTeamMembers: {\r\n __typename: 'SpectialtyTeamMemberQueries';\r\n all: {\r\n __typename: 'SpecialtyTeamMemberCollection';\r\n items: Array<{\r\n __typename: 'SpecialtyTeamMember';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n specialtyTeamId: string;\r\n teamMemberId: string;\r\n companyId: string;\r\n weightInKg: number | null;\r\n teamMember: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n };\r\n }>;\r\n meta: { __typename: 'SpecialtyTeamMemberCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type VehicleDetailPageComponent_FetchVehicleByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type VehicleDetailPageComponent_FetchVehicleByIdQuery = {\r\n __typename: 'Query';\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n byId: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n };\r\n configurationClass: {\r\n __typename: 'VehicleConfigurationClass';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n legacyName: string;\r\n engineCount: number;\r\n maintenanceSystemId: string;\r\n } | null;\r\n make: {\r\n __typename: 'VehicleMake';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n } | null;\r\n model: {\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type VehicleFormComponent_FetchAllVehicleMakesQueryVariables = Exact<{\r\n [key: string]: never;\r\n}>;\r\n\r\nexport type VehicleFormComponent_FetchAllVehicleMakesQuery = {\r\n __typename: 'Query';\r\n allVehicleMakes: Array<{ __typename: 'VehicleMake'; id: string; name: string }>;\r\n};\r\n\r\nexport type VehicleFormComponent_FetchAllCapabilitiesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type VehicleFormComponent_FetchAllCapabilitiesQuery = {\r\n __typename: 'Query';\r\n capabilities: {\r\n __typename: 'CapabilityQueries';\r\n all: {\r\n __typename: 'CapabilityCollection';\r\n items: Array<{\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n }>;\r\n meta: { __typename: 'CapabilityCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type VehicleFormComponent_FetchAllEntityCapabilitiesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type VehicleFormComponent_FetchAllEntityCapabilitiesQuery = {\r\n __typename: 'Query';\r\n entityCapabilities: {\r\n __typename: 'EntityCapabilityQueries';\r\n all: {\r\n __typename: 'EntityCapabilityCollection';\r\n items: Array<{\r\n __typename: 'EntityCapability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n capabilityId: string;\r\n entityId: string;\r\n entityType: EntityType;\r\n capability: {\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n };\r\n }>;\r\n meta: { __typename: 'EntityCapabilityCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type VehicleFormComponent_FetchAllCommunicationCentersQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type VehicleFormComponent_FetchAllCommunicationCentersQuery = {\r\n __typename: 'Query';\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n all: {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array<{ __typename: 'CommunicationCenter'; id: string; name: string }>;\r\n };\r\n };\r\n};\r\n\r\nexport type VehicleMaintenanceListComponent_FetchVehicleMaintenanceQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type VehicleMaintenanceListComponent_FetchVehicleMaintenanceQuery = {\r\n __typename: 'Query';\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n byId: {\r\n __typename: 'Vehicle';\r\n vehicleMaintenances: Array<{\r\n __typename: 'VehicleMaintenance';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n notes: string | null;\r\n isReleasedFromOCF: boolean | null;\r\n vehicleId: string | null;\r\n deferralDueDates: Array<{\r\n __typename: 'DeferralDueDate';\r\n id: string;\r\n dueDate: Date | number | string;\r\n triggerValue: number | null;\r\n notes: string | null;\r\n }>;\r\n nextDues: Array<{\r\n __typename: 'NextDue';\r\n id: string;\r\n typeId: string;\r\n cycleType: NextDueCycleType;\r\n value: string;\r\n triggerValue: number;\r\n notes: string | null;\r\n inTolerance: boolean | null;\r\n }>;\r\n maintenanceParams: {\r\n __typename: 'MaintenanceParameters';\r\n endingHobbs: number | null;\r\n airframeTime: number | null;\r\n totalLandings: number | null;\r\n engine1: {\r\n __typename: 'EngineParameters';\r\n time: number | null;\r\n starts: number | null;\r\n } | null;\r\n engine2: {\r\n __typename: 'EngineParameters';\r\n time: number | null;\r\n starts: number | null;\r\n } | null;\r\n } | null;\r\n } | null> | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type VehicleStateInspectionListComponent_FetchVehicleStateInspectionsQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type VehicleStateInspectionListComponent_FetchVehicleStateInspectionsQuery = {\r\n __typename: 'Query';\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n byId: {\r\n __typename: 'Vehicle';\r\n vehicleStateInspections: Array<{\r\n __typename: 'VehicleStateInspection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: Date | number | string;\r\n vehicleId: string;\r\n companyId: string;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type VehiclesListPageComponent_FetchAllVehiclesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type VehiclesListPageComponent_FetchAllVehiclesQuery = {\r\n __typename: 'Query';\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n all: {\r\n __typename: 'VehicleCollection';\r\n items: Array<{\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n };\r\n configurationClass: {\r\n __typename: 'VehicleConfigurationClass';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n legacyName: string;\r\n engineCount: number;\r\n maintenanceSystemId: string;\r\n } | null;\r\n make: {\r\n __typename: 'VehicleMake';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n } | null;\r\n model: {\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'VehicleCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type GetRttCardByCardNumberQueryVariables = Exact<{\r\n cardNumber: Scalars['ID'];\r\n}>;\r\n\r\nexport type GetRttCardByCardNumberQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n byCardNumber: {\r\n __typename: 'Card';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n companyId: string;\r\n dateCardClosed: Date | number | string | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: Date | number | string | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n operation: {\r\n __typename: 'Operation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n vehicleId: string;\r\n dateOperationStarted: Date | number | string;\r\n riskAnalysisAcknowledged: boolean;\r\n companyId: string;\r\n unitId: string | null;\r\n dateOperationEnded: Date | number | string | null;\r\n unitActivationTime: Date | number | string | null;\r\n riskAnalysisNumber: string | null;\r\n standbyActivationType: StandbyActivationType | null;\r\n caller: string | null;\r\n callbackNumber: string | null;\r\n initialOperationType: OperationType | null;\r\n unit: {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n region: {\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n communicationCenter: {\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n };\r\n };\r\n positions: Array<{\r\n __typename: 'UnitPosition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n unitId: string;\r\n companyId: string;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n teamMember: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n }>;\r\n shifts: Array<{\r\n __typename: 'UnitShift';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n companyId: string;\r\n }>;\r\n vehicle: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n vehicleDispositions: Array<{\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n }>;\r\n model: {\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n } | null;\r\n vehicleStateInspections: Array<{\r\n __typename: 'VehicleStateInspection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: Date | number | string;\r\n vehicleId: string;\r\n companyId: string;\r\n }>;\r\n } | null;\r\n } | null;\r\n trips: Array<{\r\n __typename: 'Trip';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n operationId: string;\r\n companyId: string;\r\n vehicleId: string | null;\r\n agencyId: string | null;\r\n agencyLocationId: string | null;\r\n calculatedLoadedMiles: number | null;\r\n gpsLoadedMiles: number | null;\r\n estimatedDurations: Array<{\r\n __typename: 'EstimatedDuration';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n asOfTime: Date | number | string;\r\n durationInMinutes: number;\r\n isOfficial: boolean;\r\n estimateSource: EstimatedDurationSource;\r\n durationType: EstimatedDurationType;\r\n ownerId: string;\r\n tripId: string;\r\n companyId: string;\r\n positionReportId: string | null;\r\n }>;\r\n vehicle: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n vehicleDispositions: Array<{\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n }>;\r\n } | null;\r\n positionReports: Array<{\r\n __typename: 'PositionReport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n tripId: string;\r\n companyId: string;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: Date | number | string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }>;\r\n legs: Array<{\r\n __typename: 'TripLeg';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: TripLegStatus;\r\n sequence: number;\r\n tripId: string;\r\n companyId: string;\r\n estimatedDistanceInMiles: number | null;\r\n departingOdometerReading: number | null;\r\n departingNote: string | null;\r\n arrivingOdometerReading: number | null;\r\n arrivingNote: string | null;\r\n isEmergent: boolean | null;\r\n officialEteId: string | null;\r\n calculatedEteId: string | null;\r\n endingWaypointId: string | null;\r\n startingWaypointId: string | null;\r\n startingWaypoint: {\r\n __typename: 'Waypoint';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n arrivalTime: Date | number | string | null;\r\n departureTime: Date | number | string | null;\r\n locationId: string | null;\r\n isPatientPickup: boolean | null;\r\n isPatientDropoff: boolean | null;\r\n arrivingType: WaypointType | null;\r\n estimatedDurationId: string | null;\r\n currentEtaId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n location: {\r\n __typename: 'Location';\r\n id: string;\r\n locationType: LocationType;\r\n name: string;\r\n abbreviation: string;\r\n notes: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n } | null;\r\n endingWaypoint: {\r\n __typename: 'Waypoint';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n arrivalTime: Date | number | string | null;\r\n departureTime: Date | number | string | null;\r\n locationId: string | null;\r\n isPatientPickup: boolean | null;\r\n isPatientDropoff: boolean | null;\r\n arrivingType: WaypointType | null;\r\n estimatedDurationId: string | null;\r\n currentEtaId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n location: {\r\n __typename: 'Location';\r\n id: string;\r\n locationType: LocationType;\r\n name: string;\r\n abbreviation: string;\r\n notes: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n } | null;\r\n }>;\r\n }>;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type GetRttCardSummariesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type GetRttCardSummariesQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n summaries: {\r\n __typename: 'CardSummaryCollection';\r\n items: Array<{\r\n __typename: 'CardSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operationType: OperationType;\r\n regionId: string;\r\n companyId: string;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: Date | number | string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n operation: {\r\n __typename: 'OperationSummary';\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n } | null;\r\n request: {\r\n __typename: 'RequestSummary';\r\n id: string;\r\n status: RequestStatus;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n requester: {\r\n __typename: 'RequesterSummary';\r\n id: string;\r\n missionRole: MissionRoleType;\r\n } | null;\r\n from: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n to: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatientSummary';\r\n id: string;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n dateCreated: Date | number | string | null;\r\n } | null> | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type LocationSearchDialogComponent_FetchAllLocationsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type LocationSearchDialogComponent_FetchAllLocationsQuery = {\r\n __typename: 'Query';\r\n locations: {\r\n __typename: 'LocationQueries';\r\n all: {\r\n __typename: 'LocationCollection';\r\n items: Array<{\r\n __typename: 'Location';\r\n distanceToReceivingMiles: number | null;\r\n distanceToReceivingNauticaMiles: number | null;\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n entityCapabilities: Array<{\r\n __typename: 'EntityCapability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n capabilityId: string;\r\n entityId: string;\r\n entityType: EntityType;\r\n capability: {\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n };\r\n }>;\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'LocationCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type LocationSearchDialogComponent_FetchAllCapabilitiesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type LocationSearchDialogComponent_FetchAllCapabilitiesQuery = {\r\n __typename: 'Query';\r\n capabilities: {\r\n __typename: 'CapabilityQueries';\r\n all: {\r\n __typename: 'CapabilityCollection';\r\n items: Array<{\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n }>;\r\n meta: { __typename: 'CapabilityCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type LocationSearchComponent_FetchAllLocationsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type LocationSearchComponent_FetchAllLocationsQuery = {\r\n __typename: 'Query';\r\n locations: {\r\n __typename: 'LocationQueries';\r\n all: {\r\n __typename: 'LocationCollection';\r\n items: Array<{\r\n __typename: 'Location';\r\n distanceToReceivingMiles: number | null;\r\n distanceToReceivingNauticaMiles: number | null;\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n entityCapabilities: Array<{\r\n __typename: 'EntityCapability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n capabilityId: string;\r\n entityId: string;\r\n entityType: EntityType;\r\n capability: {\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n };\r\n }>;\r\n lastUpdatedBy: {\r\n __typename: 'Person';\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'LocationCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type OmnisearchCardResultsComponent_SearchForCardsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type OmnisearchCardResultsComponent_SearchForCardsQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n searchv2: {\r\n __typename: 'CardSearchResultCollection';\r\n meta: { __typename: 'CardCollectionMetadata'; total: number };\r\n items: Array<{\r\n __typename: 'CardSearchResult';\r\n id: string;\r\n cardNumber: string;\r\n createdById: string | null;\r\n createdBy: string | null;\r\n companyId: string;\r\n companyCode: string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n status: CardStatus | null;\r\n callStatus: CardCallStatus | null;\r\n isBillable: boolean;\r\n isLocked: boolean | null;\r\n lastOfferedUnit: { __typename: 'CardSearchResultUnit'; id: string; name: string } | null;\r\n operation: {\r\n __typename: 'CardSearchResultOperation';\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n unit: { __typename: 'CardSearchResultUnit'; id: string; name: string } | null;\r\n vehicle: {\r\n __typename: 'CardSearchResultVehicle';\r\n id: string;\r\n registrationNumber: string;\r\n } | null;\r\n } | null;\r\n request: {\r\n __typename: 'CardSearchResultRequest';\r\n id: string;\r\n status: RequestStatus;\r\n requestedOperationType: OperationType;\r\n pickupLocation: {\r\n __typename: 'CardSearchResultRequestLocation';\r\n id: string;\r\n name: string;\r\n type: WaypointType;\r\n locationId: string | null;\r\n } | null;\r\n dropoffLocation: {\r\n __typename: 'CardSearchResultRequestLocation';\r\n id: string;\r\n name: string;\r\n type: WaypointType;\r\n locationId: string | null;\r\n } | null;\r\n } | null;\r\n region: {\r\n __typename: 'CardSearchResultRegion';\r\n id: string;\r\n name: string;\r\n communicationCenter: {\r\n __typename: 'CardSearchResultCommunicationCenter';\r\n id: string;\r\n name: string;\r\n } | null;\r\n } | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type PeopleFetchService_FetchAllPeopleQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type PeopleFetchService_FetchAllPeopleQuery = {\r\n __typename: 'Query';\r\n people: {\r\n __typename: 'PersonQueries';\r\n all: {\r\n __typename: 'PersonCollection';\r\n items: Array<{\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n };\r\n department: {\r\n __typename: 'Department';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n code: string;\r\n } | null;\r\n accessibleItems: Array<{\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }>;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n }>;\r\n meta: { __typename: 'PersonCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type SupportRequestListComponent_FetchAllSupportRequestsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type SupportRequestListComponent_FetchAllSupportRequestsQuery = {\r\n __typename: 'Query';\r\n supportRequests: {\r\n __typename: 'SupportRequestQueries';\r\n all: {\r\n __typename: 'SupportRequestCollection';\r\n items: Array<{\r\n __typename: 'SupportRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n supportRequestType: SupportRequestType;\r\n isEmailSent: boolean;\r\n supportRequestStatus: SupportRequestStatus;\r\n personId: string;\r\n companyId: string;\r\n subject: string | null;\r\n content: string | null;\r\n }>;\r\n meta: { __typename: 'SupportRequestCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type DeveloperNotesPageComponent_FetchDevNotesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type DeveloperNotesPageComponent_FetchDevNotesQuery = {\r\n __typename: 'Query';\r\n cardNotes: {\r\n __typename: 'CardNoteQueries';\r\n devNotes: {\r\n __typename: 'DevNoteCollection';\r\n items: Array<{\r\n __typename: 'DevNoteResult';\r\n content: string | null;\r\n noteTime: Date | number | string | null;\r\n authorId: string;\r\n dateCreated: Date | number | string;\r\n cardNumber: string | null;\r\n companyName: string | null;\r\n name: string | null;\r\n }>;\r\n meta: { __typename: 'DevNoteCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type GetFleetStatusQueryVariables = Exact<{ [key: string]: never }>;\r\n\r\nexport type GetFleetStatusQuery = {\r\n __typename: 'Query';\r\n units: {\r\n __typename: 'UnitQueries';\r\n all: {\r\n __typename: 'UnitCollection';\r\n items: Array<{\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n vehicle: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n make: {\r\n __typename: 'VehicleMake';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n } | null;\r\n model: {\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n } | null;\r\n vehicleDispositions: Array<{\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n currentWaypoint: {\r\n __typename: 'Waypoint';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n arrivalTime: Date | number | string | null;\r\n departureTime: Date | number | string | null;\r\n locationId: string | null;\r\n isPatientPickup: boolean | null;\r\n isPatientDropoff: boolean | null;\r\n arrivingType: WaypointType | null;\r\n estimatedDurationId: string | null;\r\n currentEtaId: string | null;\r\n location: {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n } | null;\r\n latestPositionReport: {\r\n __typename: 'PositionReport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n tripId: string;\r\n companyId: string;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: Date | number | string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n latestFlightFollowingReport: {\r\n __typename: 'FlightFollowingReport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n tripId: string;\r\n companyId: string;\r\n summary: string | null;\r\n fuel: string | null;\r\n estimatedTimeEnrouteMinutes: number | null;\r\n riskAnalysis: string | null;\r\n flightType: FlightType | null;\r\n soulsOnBoard: number | null;\r\n highestFeatureEnroute: number | null;\r\n takeOffWeight: number | null;\r\n centerOfGravity: number | null;\r\n destination: string | null;\r\n trackingViaGps: boolean | null;\r\n flightRule: FlightRule | null;\r\n tripLegId: string | null;\r\n confirmedFboId: string | null;\r\n cruisingAltitude: number | null;\r\n medicalCrewRA: number | null;\r\n } | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n }>;\r\n } | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type GetFleetStatusCardSummariesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n}>;\r\n\r\nexport type GetFleetStatusCardSummariesQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n summaries: {\r\n __typename: 'CardSummaryCollection';\r\n items: Array<{\r\n __typename: 'CardSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operationType: OperationType;\r\n regionId: string;\r\n companyId: string;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: Date | number | string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n operation: {\r\n __typename: 'OperationSummary';\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n } | null;\r\n request: {\r\n __typename: 'RequestSummary';\r\n id: string;\r\n status: RequestStatus;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n requester: {\r\n __typename: 'RequesterSummary';\r\n id: string;\r\n missionRole: MissionRoleType;\r\n } | null;\r\n from: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n to: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatientSummary';\r\n id: string;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n dateCreated: Date | number | string | null;\r\n } | null> | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type GetAccessibleItemsQueryVariables = Exact<{\r\n personId: Scalars['ID'];\r\n}>;\r\n\r\nexport type GetAccessibleItemsQuery = {\r\n __typename: 'Query';\r\n people: {\r\n __typename: 'PersonQueries';\r\n byId: {\r\n __typename: 'Person';\r\n accessibleItems: Array<{\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type GetCardActiveAlertsByCardIdQueryVariables = Exact<{\r\n cardId: Scalars['ID'];\r\n}>;\r\n\r\nexport type GetCardActiveAlertsByCardIdQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n byId: {\r\n __typename: 'Card';\r\n activeAlerts: Array<{\r\n __typename: 'ActiveAlert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n urgency: AlertUrgency;\r\n content: string;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n matchType: RuleMatchType;\r\n visibilityType: VisibilityType;\r\n isGpsAlert: boolean;\r\n isActive: boolean;\r\n companyId: string;\r\n target: AlertTarget | null;\r\n targetId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n title: string | null;\r\n definitionId: string | null;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n parentEntityType: EntityType | null;\r\n parentEntityId: string | null;\r\n activationTime: Date | number | string | null;\r\n escalationDurationInSeconds: number | null;\r\n snoozeMaxInSeconds: number | null;\r\n authorId: string | null;\r\n regionId: string | null;\r\n communicationCenterId: string | null;\r\n lookupHash: string | null;\r\n referenceEntityType: EntityType | null;\r\n referenceEntityId: string | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type CardLocationInfoLocationFieldsFragment = {\r\n __typename: 'Location';\r\n id: string;\r\n locationType: LocationType;\r\n name: string;\r\n abbreviation: string;\r\n notes: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n locationHazards: Array<{ __typename: 'LocationHazard'; id: string; hazard: string }>;\r\n};\r\n\r\nexport type GetCardLocationInfoByCardNumberQueryVariables = Exact<{\r\n cardNumber: Scalars['ID'];\r\n}>;\r\n\r\nexport type GetCardLocationInfoByCardNumberQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n byCardNumber: {\r\n __typename: 'Card';\r\n id: string;\r\n cardNumber: string;\r\n operationId: string | null;\r\n requestId: string | null;\r\n activeAlerts: Array<{\r\n __typename: 'ActiveAlert';\r\n id: string;\r\n matchType: RuleMatchType;\r\n urgency: AlertUrgency;\r\n content: string;\r\n }>;\r\n operation: {\r\n __typename: 'Operation';\r\n id: string;\r\n trips: Array<{\r\n __typename: 'Trip';\r\n id: string;\r\n legs: Array<{\r\n __typename: 'TripLeg';\r\n id: string;\r\n sequence: number;\r\n startingWaypointId: string | null;\r\n endingWaypointId: string | null;\r\n startingWaypoint: {\r\n __typename: 'Waypoint';\r\n id: string;\r\n type: WaypointType;\r\n locationId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n location: {\r\n __typename: 'Location';\r\n id: string;\r\n locationType: LocationType;\r\n name: string;\r\n abbreviation: string;\r\n notes: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n locationHazards: Array<{\r\n __typename: 'LocationHazard';\r\n id: string;\r\n hazard: string;\r\n }>;\r\n } | null;\r\n } | null;\r\n endingWaypoint: {\r\n __typename: 'Waypoint';\r\n id: string;\r\n type: WaypointType;\r\n locationId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n location: {\r\n __typename: 'Location';\r\n id: string;\r\n locationType: LocationType;\r\n name: string;\r\n abbreviation: string;\r\n notes: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n locationHazards: Array<{\r\n __typename: 'LocationHazard';\r\n id: string;\r\n hazard: string;\r\n }>;\r\n } | null;\r\n } | null;\r\n }>;\r\n }>;\r\n } | null;\r\n request: {\r\n __typename: 'Request';\r\n id: string;\r\n locations: Array<{\r\n __typename: 'RequestLocation';\r\n id: string;\r\n locationId: string | null;\r\n requestId: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n notes: string | null;\r\n groundContact: string | null;\r\n medicalFacilityId: string | null;\r\n fboId: string | null;\r\n request: {\r\n __typename: 'Request';\r\n requester: { __typename: 'Requester'; callbackNumber: string | null } | null;\r\n };\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n medicalFacility: {\r\n __typename: 'MedicalFacility';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n notes: string | null;\r\n locationId: string | null;\r\n contacts: Array<{\r\n __typename: 'MedicalFacilityContact';\r\n id: string;\r\n name: string;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n }>;\r\n location: {\r\n __typename: 'Location';\r\n id: string;\r\n locationType: LocationType;\r\n name: string;\r\n abbreviation: string;\r\n notes: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n locationHazards: Array<{ __typename: 'LocationHazard'; id: string; hazard: string }>;\r\n } | null;\r\n } | null;\r\n fbo: { __typename: 'Fbo'; id: string; name: string } | null;\r\n rendezvousRequests: Array<{\r\n __typename: 'RendezvousRequest';\r\n id: string;\r\n requestLocationId: string;\r\n agencyEta: Date | number | string | null;\r\n notes: string | null;\r\n agencyLocation: {\r\n __typename: 'AgencyLocation';\r\n id: string;\r\n agencyId: string;\r\n name: string;\r\n } | null;\r\n }>;\r\n }>;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type GetCardNotesByCardQueryVariables = Exact<{\r\n cardId: Scalars['ID'];\r\n}>;\r\n\r\nexport type GetCardNotesByCardQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n byId: {\r\n __typename: 'Card';\r\n notes: Array<{\r\n __typename: 'CardNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isInternal: boolean;\r\n isSystem: boolean;\r\n cardId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n author: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type AddressFieldsFragment = {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n};\r\n\r\nexport type ActivationRuleFieldsFragment = {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n};\r\n\r\nexport type FetchActivationRuleByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchActivationRuleByIdQuery = {\r\n __typename: 'Query';\r\n activationRule: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchActivationRuleByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchActivationRuleByIdsQuery = {\r\n __typename: 'Query';\r\n activationRule: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | {\r\n __typename: 'ActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Array | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n operationTypes: Array | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Array | null;\r\n missionRoleTypes: Array | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n declineReasons: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n communicationCenters: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ActiveAlertFieldsFragment = {\r\n __typename: 'ActiveAlert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n urgency: AlertUrgency;\r\n content: string;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n matchType: RuleMatchType;\r\n visibilityType: VisibilityType;\r\n isGpsAlert: boolean;\r\n isActive: boolean;\r\n companyId: string;\r\n target: AlertTarget | null;\r\n targetId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n title: string | null;\r\n definitionId: string | null;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n parentEntityType: EntityType | null;\r\n parentEntityId: string | null;\r\n activationTime: Date | number | string | null;\r\n escalationDurationInSeconds: number | null;\r\n snoozeMaxInSeconds: number | null;\r\n authorId: string | null;\r\n regionId: string | null;\r\n communicationCenterId: string | null;\r\n lookupHash: string | null;\r\n referenceEntityType: EntityType | null;\r\n referenceEntityId: string | null;\r\n};\r\n\r\nexport type FetchActiveAlertByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchActiveAlertByIdQuery = {\r\n __typename: 'Query';\r\n activeAlert: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | {\r\n __typename: 'ActiveAlert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n urgency: AlertUrgency;\r\n content: string;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n matchType: RuleMatchType;\r\n visibilityType: VisibilityType;\r\n isGpsAlert: boolean;\r\n isActive: boolean;\r\n companyId: string;\r\n target: AlertTarget | null;\r\n targetId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n title: string | null;\r\n definitionId: string | null;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n parentEntityType: EntityType | null;\r\n parentEntityId: string | null;\r\n activationTime: Date | number | string | null;\r\n escalationDurationInSeconds: number | null;\r\n snoozeMaxInSeconds: number | null;\r\n authorId: string | null;\r\n regionId: string | null;\r\n communicationCenterId: string | null;\r\n lookupHash: string | null;\r\n referenceEntityType: EntityType | null;\r\n referenceEntityId: string | null;\r\n }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchActiveAlertByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchActiveAlertByIdsQuery = {\r\n __typename: 'Query';\r\n activeAlert: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | {\r\n __typename: 'ActiveAlert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n urgency: AlertUrgency;\r\n content: string;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n matchType: RuleMatchType;\r\n visibilityType: VisibilityType;\r\n isGpsAlert: boolean;\r\n isActive: boolean;\r\n companyId: string;\r\n target: AlertTarget | null;\r\n targetId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n title: string | null;\r\n definitionId: string | null;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n parentEntityType: EntityType | null;\r\n parentEntityId: string | null;\r\n activationTime: Date | number | string | null;\r\n escalationDurationInSeconds: number | null;\r\n snoozeMaxInSeconds: number | null;\r\n authorId: string | null;\r\n regionId: string | null;\r\n communicationCenterId: string | null;\r\n lookupHash: string | null;\r\n referenceEntityType: EntityType | null;\r\n referenceEntityId: string | null;\r\n }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ActiveCardUnitOfferingFieldsFragment = {\r\n __typename: 'ActiveCardUnitOffering';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n cardId: string;\r\n unitId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchActiveCardUnitOfferingByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchActiveCardUnitOfferingByIdQuery = {\r\n __typename: 'Query';\r\n activeCardUnitOffering: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | {\r\n __typename: 'ActiveCardUnitOffering';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n cardId: string;\r\n unitId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchActiveCardUnitOfferingByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchActiveCardUnitOfferingByIdsQuery = {\r\n __typename: 'Query';\r\n activeCardUnitOffering: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | {\r\n __typename: 'ActiveCardUnitOffering';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n cardId: string;\r\n unitId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ActiveTimelineFieldsFragment = {\r\n __typename: 'ActiveTimeline';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n timelineId: string;\r\n companyId: string;\r\n matchType: RuleMatchType;\r\n entityType: EntityType;\r\n entityId: string;\r\n};\r\n\r\nexport type FetchActiveTimelineByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchActiveTimelineByIdQuery = {\r\n __typename: 'Query';\r\n activeTimeline: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | {\r\n __typename: 'ActiveTimeline';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n timelineId: string;\r\n companyId: string;\r\n matchType: RuleMatchType;\r\n entityType: EntityType;\r\n entityId: string;\r\n }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchActiveTimelineByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchActiveTimelineByIdsQuery = {\r\n __typename: 'Query';\r\n activeTimeline: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | {\r\n __typename: 'ActiveTimeline';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n timelineId: string;\r\n companyId: string;\r\n matchType: RuleMatchType;\r\n entityType: EntityType;\r\n entityId: string;\r\n }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type AlertFieldsFragment = {\r\n __typename: 'Alert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n entityType: EntityType;\r\n activationRuleId: string;\r\n urgency: AlertUrgency;\r\n content: string;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n title: string | null;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n paused: boolean | null;\r\n createdById: string | null;\r\n};\r\n\r\nexport type FetchAlertByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchAlertByIdQuery = {\r\n __typename: 'Query';\r\n alert: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | {\r\n __typename: 'Alert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n entityType: EntityType;\r\n activationRuleId: string;\r\n urgency: AlertUrgency;\r\n content: string;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n title: string | null;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n paused: boolean | null;\r\n createdById: string | null;\r\n }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchAlertByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchAlertByIdsQuery = {\r\n __typename: 'Query';\r\n alert: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | {\r\n __typename: 'Alert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n entityType: EntityType;\r\n activationRuleId: string;\r\n urgency: AlertUrgency;\r\n content: string;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n title: string | null;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n paused: boolean | null;\r\n createdById: string | null;\r\n }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ApplicationNotificationFieldsFragment = {\r\n __typename: 'ApplicationNotification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n urgency: ApplicationNotificationUrgency;\r\n displayOnBanner: boolean;\r\n dismissable: boolean;\r\n notification: string;\r\n title: string | null;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n createdById: string | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n};\r\n\r\nexport type FetchApplicationNotificationByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchApplicationNotificationByIdQuery = {\r\n __typename: 'Query';\r\n applicationNotification: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | {\r\n __typename: 'ApplicationNotification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n urgency: ApplicationNotificationUrgency;\r\n displayOnBanner: boolean;\r\n dismissable: boolean;\r\n notification: string;\r\n title: string | null;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n createdById: string | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchApplicationNotificationByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchApplicationNotificationByIdsQuery = {\r\n __typename: 'Query';\r\n applicationNotification: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | {\r\n __typename: 'ApplicationNotification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n urgency: ApplicationNotificationUrgency;\r\n displayOnBanner: boolean;\r\n dismissable: boolean;\r\n notification: string;\r\n title: string | null;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n createdById: string | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type AssignmentDelayedReasonFieldsFragment = {\r\n __typename: 'AssignmentDelayedReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n};\r\n\r\nexport type FetchAssignmentDelayedReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchAssignmentDelayedReasonByIdQuery = {\r\n __typename: 'Query';\r\n assignmentDelayedReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | {\r\n __typename: 'AssignmentDelayedReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchAssignmentDelayedReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchAssignmentDelayedReasonByIdsQuery = {\r\n __typename: 'Query';\r\n assignmentDelayedReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | {\r\n __typename: 'AssignmentDelayedReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CancellationCategoryFieldsFragment = {\r\n __typename: 'CancellationCategory';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n defaultCancellationReasonId: string | null;\r\n};\r\n\r\nexport type FetchCancellationCategoryByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCancellationCategoryByIdQuery = {\r\n __typename: 'Query';\r\n cancellationCategory: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | {\r\n __typename: 'CancellationCategory';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n defaultCancellationReasonId: string | null;\r\n }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCancellationCategoryByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCancellationCategoryByIdsQuery = {\r\n __typename: 'Query';\r\n cancellationCategory: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | {\r\n __typename: 'CancellationCategory';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n defaultCancellationReasonId: string | null;\r\n }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CancellationReasonFieldsFragment = {\r\n __typename: 'CancellationReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n isTransferCenterReason: boolean;\r\n canBeUnitCancellationReason: boolean | null;\r\n cancellationCategoryId: string | null;\r\n};\r\n\r\nexport type FetchCancellationReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCancellationReasonByIdQuery = {\r\n __typename: 'Query';\r\n cancellationReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | {\r\n __typename: 'CancellationReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n isTransferCenterReason: boolean;\r\n canBeUnitCancellationReason: boolean | null;\r\n cancellationCategoryId: string | null;\r\n }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCancellationReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCancellationReasonByIdsQuery = {\r\n __typename: 'Query';\r\n cancellationReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | {\r\n __typename: 'CancellationReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n isTransferCenterReason: boolean;\r\n canBeUnitCancellationReason: boolean | null;\r\n cancellationCategoryId: string | null;\r\n }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CancellationSecondaryReasonFieldsFragment = {\r\n __typename: 'CancellationSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cancellationReasonId: string;\r\n};\r\n\r\nexport type FetchCancellationSecondaryReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCancellationSecondaryReasonByIdQuery = {\r\n __typename: 'Query';\r\n cancellationSecondaryReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | {\r\n __typename: 'CancellationSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cancellationReasonId: string;\r\n }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCancellationSecondaryReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCancellationSecondaryReasonByIdsQuery = {\r\n __typename: 'Query';\r\n cancellationSecondaryReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | {\r\n __typename: 'CancellationSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cancellationReasonId: string;\r\n }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CardFieldsFragment = {\r\n __typename: 'Card';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n companyId: string;\r\n dateCardClosed: Date | number | string | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: Date | number | string | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n};\r\n\r\nexport type FetchCardByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardByIdQuery = {\r\n __typename: 'Query';\r\n card: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | {\r\n __typename: 'Card';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n companyId: string;\r\n dateCardClosed: Date | number | string | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: Date | number | string | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCardByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardByIdsQuery = {\r\n __typename: 'Query';\r\n card: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | {\r\n __typename: 'Card';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n companyId: string;\r\n dateCardClosed: Date | number | string | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: Date | number | string | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CardLinkFieldsFragment = {\r\n __typename: 'CardLink';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: CardLinkType;\r\n fromCardId: string;\r\n toCardId: string;\r\n toCardNumber: string;\r\n companyId: string;\r\n rendezvousRequestId: string | null;\r\n};\r\n\r\nexport type FetchCardLinkByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardLinkByIdQuery = {\r\n __typename: 'Query';\r\n cardLink: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | {\r\n __typename: 'CardLink';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: CardLinkType;\r\n fromCardId: string;\r\n toCardId: string;\r\n toCardNumber: string;\r\n companyId: string;\r\n rendezvousRequestId: string | null;\r\n }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCardLinkByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardLinkByIdsQuery = {\r\n __typename: 'Query';\r\n cardLink: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | {\r\n __typename: 'CardLink';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: CardLinkType;\r\n fromCardId: string;\r\n toCardId: string;\r\n toCardNumber: string;\r\n companyId: string;\r\n rendezvousRequestId: string | null;\r\n }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CardNoteArchiveFieldsFragment = {\r\n __typename: 'CardNoteArchive';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isInternal: boolean;\r\n isSystem: boolean;\r\n dateArchived: Date | number | string;\r\n cardId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n};\r\n\r\nexport type FetchCardNoteArchiveByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardNoteArchiveByIdQuery = {\r\n __typename: 'Query';\r\n cardNoteArchive: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | {\r\n __typename: 'CardNoteArchive';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isInternal: boolean;\r\n isSystem: boolean;\r\n dateArchived: Date | number | string;\r\n cardId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCardNoteArchiveByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardNoteArchiveByIdsQuery = {\r\n __typename: 'Query';\r\n cardNoteArchive: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | {\r\n __typename: 'CardNoteArchive';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isInternal: boolean;\r\n isSystem: boolean;\r\n dateArchived: Date | number | string;\r\n cardId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CardNoteFieldsFragment = {\r\n __typename: 'CardNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isInternal: boolean;\r\n isSystem: boolean;\r\n cardId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n};\r\n\r\nexport type FetchCardNoteByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardNoteByIdQuery = {\r\n __typename: 'Query';\r\n cardNote: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | {\r\n __typename: 'CardNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isInternal: boolean;\r\n isSystem: boolean;\r\n cardId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCardNoteByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardNoteByIdsQuery = {\r\n __typename: 'Query';\r\n cardNote: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | {\r\n __typename: 'CardNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isInternal: boolean;\r\n isSystem: boolean;\r\n cardId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CardReOpenReasonFieldsFragment = {\r\n __typename: 'CardReOpenReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n affectsTrip: boolean;\r\n};\r\n\r\nexport type FetchCardReOpenReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardReOpenReasonByIdQuery = {\r\n __typename: 'Query';\r\n cardReOpenReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | {\r\n __typename: 'CardReOpenReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n affectsTrip: boolean;\r\n }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCardReOpenReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardReOpenReasonByIdsQuery = {\r\n __typename: 'Query';\r\n cardReOpenReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | {\r\n __typename: 'CardReOpenReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n affectsTrip: boolean;\r\n }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CardSummaryFieldsFragment = {\r\n __typename: 'CardSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operationType: OperationType;\r\n regionId: string;\r\n companyId: string;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: Date | number | string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n operation: {\r\n __typename: 'OperationSummary';\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n } | null;\r\n request: {\r\n __typename: 'RequestSummary';\r\n id: string;\r\n status: RequestStatus;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n requester: { __typename: 'RequesterSummary'; id: string; missionRole: MissionRoleType } | null;\r\n from: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n to: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatientSummary';\r\n id: string;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n dateCreated: Date | number | string | null;\r\n } | null> | null;\r\n};\r\n\r\nexport type FetchCardSummaryByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardSummaryByIdQuery = {\r\n __typename: 'Query';\r\n cardSummary: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | {\r\n __typename: 'CardSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operationType: OperationType;\r\n regionId: string;\r\n companyId: string;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: Date | number | string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n operation: {\r\n __typename: 'OperationSummary';\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n } | null;\r\n request: {\r\n __typename: 'RequestSummary';\r\n id: string;\r\n status: RequestStatus;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n requester: {\r\n __typename: 'RequesterSummary';\r\n id: string;\r\n missionRole: MissionRoleType;\r\n } | null;\r\n from: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n to: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatientSummary';\r\n id: string;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n dateCreated: Date | number | string | null;\r\n } | null> | null;\r\n }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCardSummaryByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardSummaryByIdsQuery = {\r\n __typename: 'Query';\r\n cardSummary: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | {\r\n __typename: 'CardSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operationType: OperationType;\r\n regionId: string;\r\n companyId: string;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: Date | number | string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n operation: {\r\n __typename: 'OperationSummary';\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n } | null;\r\n request: {\r\n __typename: 'RequestSummary';\r\n id: string;\r\n status: RequestStatus;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n requester: {\r\n __typename: 'RequesterSummary';\r\n id: string;\r\n missionRole: MissionRoleType;\r\n } | null;\r\n from: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n to: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatientSummary';\r\n id: string;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n dateCreated: Date | number | string | null;\r\n } | null> | null;\r\n }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ConfigurationSettingFieldsFragment = {\r\n __typename: 'ConfigurationSetting';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string | null;\r\n defaultUnitCommittedDeclineReasonId: string | null;\r\n defaultUnitOutOfServiceDeclineReasonId: string | null;\r\n requestReferredInternallyCancellationReasonId: string | null;\r\n requestReferredExternallyCancellationReasonId: string | null;\r\n crewGoingByGroundOutOfServiceReasonId: string | null;\r\n assetReassignedDeclineReasonId: string | null;\r\n externallyCancelledCancellationReasonId: string | null;\r\n pilotReportGracePeriodInMinutes: number | null;\r\n sameDestinationWarningThresholdInMinutes: number | null;\r\n bugRequestEmail: string | null;\r\n featureRequestEmail: string | null;\r\n};\r\n\r\nexport type FetchConfigurationSettingByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchConfigurationSettingByIdQuery = {\r\n __typename: 'Query';\r\n configurationSetting: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | {\r\n __typename: 'ConfigurationSetting';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string | null;\r\n defaultUnitCommittedDeclineReasonId: string | null;\r\n defaultUnitOutOfServiceDeclineReasonId: string | null;\r\n requestReferredInternallyCancellationReasonId: string | null;\r\n requestReferredExternallyCancellationReasonId: string | null;\r\n crewGoingByGroundOutOfServiceReasonId: string | null;\r\n assetReassignedDeclineReasonId: string | null;\r\n externallyCancelledCancellationReasonId: string | null;\r\n pilotReportGracePeriodInMinutes: number | null;\r\n sameDestinationWarningThresholdInMinutes: number | null;\r\n bugRequestEmail: string | null;\r\n featureRequestEmail: string | null;\r\n }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchConfigurationSettingByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchConfigurationSettingByIdsQuery = {\r\n __typename: 'Query';\r\n configurationSetting: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | {\r\n __typename: 'ConfigurationSetting';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string | null;\r\n defaultUnitCommittedDeclineReasonId: string | null;\r\n defaultUnitOutOfServiceDeclineReasonId: string | null;\r\n requestReferredInternallyCancellationReasonId: string | null;\r\n requestReferredExternallyCancellationReasonId: string | null;\r\n crewGoingByGroundOutOfServiceReasonId: string | null;\r\n assetReassignedDeclineReasonId: string | null;\r\n externallyCancelledCancellationReasonId: string | null;\r\n pilotReportGracePeriodInMinutes: number | null;\r\n sameDestinationWarningThresholdInMinutes: number | null;\r\n bugRequestEmail: string | null;\r\n featureRequestEmail: string | null;\r\n }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type DeclineCategoryFieldsFragment = {\r\n __typename: 'DeclineCategory';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n defaultDeclineReasonId: string | null;\r\n};\r\n\r\nexport type FetchDeclineCategoryByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchDeclineCategoryByIdQuery = {\r\n __typename: 'Query';\r\n declineCategory: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | {\r\n __typename: 'DeclineCategory';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n defaultDeclineReasonId: string | null;\r\n }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchDeclineCategoryByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchDeclineCategoryByIdsQuery = {\r\n __typename: 'Query';\r\n declineCategory: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | {\r\n __typename: 'DeclineCategory';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n defaultDeclineReasonId: string | null;\r\n }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type DeclineReasonFieldsFragment = {\r\n __typename: 'DeclineReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n declineCategoryId: string;\r\n controllable: boolean;\r\n canBeSkipReason: boolean;\r\n canBeAbortReason: boolean;\r\n canBeBulkSkipReason: boolean;\r\n canBeOneCallSkipReason: boolean;\r\n isUnitAvailableAfterAbort: boolean;\r\n};\r\n\r\nexport type FetchDeclineReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchDeclineReasonByIdQuery = {\r\n __typename: 'Query';\r\n declineReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | {\r\n __typename: 'DeclineReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n declineCategoryId: string;\r\n controllable: boolean;\r\n canBeSkipReason: boolean;\r\n canBeAbortReason: boolean;\r\n canBeBulkSkipReason: boolean;\r\n canBeOneCallSkipReason: boolean;\r\n isUnitAvailableAfterAbort: boolean;\r\n }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchDeclineReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchDeclineReasonByIdsQuery = {\r\n __typename: 'Query';\r\n declineReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | {\r\n __typename: 'DeclineReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n declineCategoryId: string;\r\n controllable: boolean;\r\n canBeSkipReason: boolean;\r\n canBeAbortReason: boolean;\r\n canBeBulkSkipReason: boolean;\r\n canBeOneCallSkipReason: boolean;\r\n isUnitAvailableAfterAbort: boolean;\r\n }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type DeclineSecondaryReasonFieldsFragment = {\r\n __typename: 'DeclineSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n declineReasonId: string;\r\n};\r\n\r\nexport type FetchDeclineSecondaryReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchDeclineSecondaryReasonByIdQuery = {\r\n __typename: 'Query';\r\n declineSecondaryReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | {\r\n __typename: 'DeclineSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n declineReasonId: string;\r\n }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchDeclineSecondaryReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchDeclineSecondaryReasonByIdsQuery = {\r\n __typename: 'Query';\r\n declineSecondaryReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | {\r\n __typename: 'DeclineSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n declineReasonId: string;\r\n }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type DiversionReasonFieldsFragment = {\r\n __typename: 'DiversionReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n};\r\n\r\nexport type FetchDiversionReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchDiversionReasonByIdQuery = {\r\n __typename: 'Query';\r\n diversionReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | {\r\n __typename: 'DiversionReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchDiversionReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchDiversionReasonByIdsQuery = {\r\n __typename: 'Query';\r\n diversionReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | {\r\n __typename: 'DiversionReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type EscortRequestFieldsFragment = {\r\n __typename: 'EscortRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n escortName: string;\r\n relationship: PatientRelationshipType;\r\n escortWeightInKg: number;\r\n requestApprovalTime: Date | number | string;\r\n requestId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchEscortRequestByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchEscortRequestByIdQuery = {\r\n __typename: 'Query';\r\n escortRequest: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | {\r\n __typename: 'EscortRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n escortName: string;\r\n relationship: PatientRelationshipType;\r\n escortWeightInKg: number;\r\n requestApprovalTime: Date | number | string;\r\n requestId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchEscortRequestByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchEscortRequestByIdsQuery = {\r\n __typename: 'Query';\r\n escortRequest: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | {\r\n __typename: 'EscortRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n escortName: string;\r\n relationship: PatientRelationshipType;\r\n escortWeightInKg: number;\r\n requestApprovalTime: Date | number | string;\r\n requestId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type EstimatedDurationFieldsFragment = {\r\n __typename: 'EstimatedDuration';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n asOfTime: Date | number | string;\r\n durationInMinutes: number;\r\n isOfficial: boolean;\r\n estimateSource: EstimatedDurationSource;\r\n durationType: EstimatedDurationType;\r\n ownerId: string;\r\n tripId: string;\r\n companyId: string;\r\n positionReportId: string | null;\r\n};\r\n\r\nexport type FetchEstimatedDurationByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchEstimatedDurationByIdQuery = {\r\n __typename: 'Query';\r\n estimatedDuration: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | {\r\n __typename: 'EstimatedDuration';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n asOfTime: Date | number | string;\r\n durationInMinutes: number;\r\n isOfficial: boolean;\r\n estimateSource: EstimatedDurationSource;\r\n durationType: EstimatedDurationType;\r\n ownerId: string;\r\n tripId: string;\r\n companyId: string;\r\n positionReportId: string | null;\r\n }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchEstimatedDurationByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchEstimatedDurationByIdsQuery = {\r\n __typename: 'Query';\r\n estimatedDuration: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | {\r\n __typename: 'EstimatedDuration';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n asOfTime: Date | number | string;\r\n durationInMinutes: number;\r\n isOfficial: boolean;\r\n estimateSource: EstimatedDurationSource;\r\n durationType: EstimatedDurationType;\r\n ownerId: string;\r\n tripId: string;\r\n companyId: string;\r\n positionReportId: string | null;\r\n }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type EtaFieldsFragment = {\r\n __typename: 'Eta';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n asOfTime: Date | number | string;\r\n estimatedArrivalTime: Date | number | string;\r\n calculatedArrivalTime: Date | number | string;\r\n currentTripId: string;\r\n waypointId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchEtaByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchEtaByIdQuery = {\r\n __typename: 'Query';\r\n eta: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | {\r\n __typename: 'Eta';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n asOfTime: Date | number | string;\r\n estimatedArrivalTime: Date | number | string;\r\n calculatedArrivalTime: Date | number | string;\r\n currentTripId: string;\r\n waypointId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchEtaByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchEtaByIdsQuery = {\r\n __typename: 'Query';\r\n eta: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | {\r\n __typename: 'Eta';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n asOfTime: Date | number | string;\r\n estimatedArrivalTime: Date | number | string;\r\n calculatedArrivalTime: Date | number | string;\r\n currentTripId: string;\r\n waypointId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ExternalActionFieldsFragment = {\r\n __typename: 'ExternalAction';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n entityId: string;\r\n status: ExternalActionStatus;\r\n entityType: EntityType;\r\n actionTypeId: string;\r\n actionBodyJson: string;\r\n companyId: string;\r\n completedById: string | null;\r\n dateCompleted: Date | number | string | null;\r\n notes: string | null;\r\n};\r\n\r\nexport type FetchExternalActionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchExternalActionByIdQuery = {\r\n __typename: 'Query';\r\n externalAction: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | {\r\n __typename: 'ExternalAction';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n entityId: string;\r\n status: ExternalActionStatus;\r\n entityType: EntityType;\r\n actionTypeId: string;\r\n actionBodyJson: string;\r\n companyId: string;\r\n completedById: string | null;\r\n dateCompleted: Date | number | string | null;\r\n notes: string | null;\r\n }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchExternalActionByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchExternalActionByIdsQuery = {\r\n __typename: 'Query';\r\n externalAction: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | {\r\n __typename: 'ExternalAction';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n entityId: string;\r\n status: ExternalActionStatus;\r\n entityType: EntityType;\r\n actionTypeId: string;\r\n actionBodyJson: string;\r\n companyId: string;\r\n completedById: string | null;\r\n dateCompleted: Date | number | string | null;\r\n notes: string | null;\r\n }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ExternalActionTypeFieldsFragment = {\r\n __typename: 'ExternalActionType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n actionTypeName: string;\r\n actionTypeDescription: string;\r\n priority: number;\r\n};\r\n\r\nexport type FetchExternalActionTypeByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchExternalActionTypeByIdQuery = {\r\n __typename: 'Query';\r\n externalActionType: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | {\r\n __typename: 'ExternalActionType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n actionTypeName: string;\r\n actionTypeDescription: string;\r\n priority: number;\r\n }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchExternalActionTypeByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchExternalActionTypeByIdsQuery = {\r\n __typename: 'Query';\r\n externalActionType: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | {\r\n __typename: 'ExternalActionType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n actionTypeName: string;\r\n actionTypeDescription: string;\r\n priority: number;\r\n }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ExternalSystemUnitFieldsFragment = {\r\n __typename: 'ExternalSystemUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n unitId: string;\r\n vehicleId: string;\r\n regionId: string;\r\n companyId: string;\r\n unitStatus: UnitStatus;\r\n vehicleType: VehicleType;\r\n registrationNumber: string;\r\n vehicleStatus: VehicleStatus;\r\n vehicleStatusDescription: string;\r\n currentCardNumber: string | null;\r\n lastKnownLocationName: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n baseId: string | null;\r\n modelName: string | null;\r\n outOfServiceEvents: Array<{\r\n __typename: 'OutOfServiceEventSummary';\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonName: string;\r\n reasonId: string;\r\n startTime: Date | number | string | null;\r\n notes: string | null;\r\n }>;\r\n lastKnownCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n};\r\n\r\nexport type FetchExternalSystemUnitByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchExternalSystemUnitByIdQuery = {\r\n __typename: 'Query';\r\n externalSystemUnit: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | {\r\n __typename: 'ExternalSystemUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n unitId: string;\r\n vehicleId: string;\r\n regionId: string;\r\n companyId: string;\r\n unitStatus: UnitStatus;\r\n vehicleType: VehicleType;\r\n registrationNumber: string;\r\n vehicleStatus: VehicleStatus;\r\n vehicleStatusDescription: string;\r\n currentCardNumber: string | null;\r\n lastKnownLocationName: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n baseId: string | null;\r\n modelName: string | null;\r\n outOfServiceEvents: Array<{\r\n __typename: 'OutOfServiceEventSummary';\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonName: string;\r\n reasonId: string;\r\n startTime: Date | number | string | null;\r\n notes: string | null;\r\n }>;\r\n lastKnownCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchExternalSystemUnitByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchExternalSystemUnitByIdsQuery = {\r\n __typename: 'Query';\r\n externalSystemUnit: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | {\r\n __typename: 'ExternalSystemUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n unitId: string;\r\n vehicleId: string;\r\n regionId: string;\r\n companyId: string;\r\n unitStatus: UnitStatus;\r\n vehicleType: VehicleType;\r\n registrationNumber: string;\r\n vehicleStatus: VehicleStatus;\r\n vehicleStatusDescription: string;\r\n currentCardNumber: string | null;\r\n lastKnownLocationName: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n baseId: string | null;\r\n modelName: string | null;\r\n outOfServiceEvents: Array<{\r\n __typename: 'OutOfServiceEventSummary';\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonName: string;\r\n reasonId: string;\r\n startTime: Date | number | string | null;\r\n notes: string | null;\r\n }>;\r\n lastKnownCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type FacilityNonAcceptanceReasonFieldsFragment = {\r\n __typename: 'FacilityNonAcceptanceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n facilityNonAcceptanceReasonType: NonAcceptanceType;\r\n};\r\n\r\nexport type FetchFacilityNonAcceptanceReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchFacilityNonAcceptanceReasonByIdQuery = {\r\n __typename: 'Query';\r\n facilityNonAcceptanceReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | {\r\n __typename: 'FacilityNonAcceptanceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n facilityNonAcceptanceReasonType: NonAcceptanceType;\r\n }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchFacilityNonAcceptanceReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchFacilityNonAcceptanceReasonByIdsQuery = {\r\n __typename: 'Query';\r\n facilityNonAcceptanceReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | {\r\n __typename: 'FacilityNonAcceptanceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n facilityNonAcceptanceReasonType: NonAcceptanceType;\r\n }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type FirewallRuleFieldsFragment = {\r\n __typename: 'FirewallRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n action: AccessControlAction;\r\n ipRange: string;\r\n enabled: boolean;\r\n companyId: string | null;\r\n};\r\n\r\nexport type FetchFirewallRuleByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchFirewallRuleByIdQuery = {\r\n __typename: 'Query';\r\n firewallRule: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | {\r\n __typename: 'FirewallRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n action: AccessControlAction;\r\n ipRange: string;\r\n enabled: boolean;\r\n companyId: string | null;\r\n }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchFirewallRuleByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchFirewallRuleByIdsQuery = {\r\n __typename: 'Query';\r\n firewallRule: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | {\r\n __typename: 'FirewallRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n action: AccessControlAction;\r\n ipRange: string;\r\n enabled: boolean;\r\n companyId: string | null;\r\n }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type FlightFollowingReportFieldsFragment = {\r\n __typename: 'FlightFollowingReport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n tripId: string;\r\n companyId: string;\r\n summary: string | null;\r\n fuel: string | null;\r\n estimatedTimeEnrouteMinutes: number | null;\r\n riskAnalysis: string | null;\r\n flightType: FlightType | null;\r\n soulsOnBoard: number | null;\r\n highestFeatureEnroute: number | null;\r\n takeOffWeight: number | null;\r\n centerOfGravity: number | null;\r\n destination: string | null;\r\n trackingViaGps: boolean | null;\r\n flightRule: FlightRule | null;\r\n tripLegId: string | null;\r\n confirmedFboId: string | null;\r\n cruisingAltitude: number | null;\r\n medicalCrewRA: number | null;\r\n};\r\n\r\nexport type FetchFlightFollowingReportByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchFlightFollowingReportByIdQuery = {\r\n __typename: 'Query';\r\n flightFollowingReport: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | {\r\n __typename: 'FlightFollowingReport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n tripId: string;\r\n companyId: string;\r\n summary: string | null;\r\n fuel: string | null;\r\n estimatedTimeEnrouteMinutes: number | null;\r\n riskAnalysis: string | null;\r\n flightType: FlightType | null;\r\n soulsOnBoard: number | null;\r\n highestFeatureEnroute: number | null;\r\n takeOffWeight: number | null;\r\n centerOfGravity: number | null;\r\n destination: string | null;\r\n trackingViaGps: boolean | null;\r\n flightRule: FlightRule | null;\r\n tripLegId: string | null;\r\n confirmedFboId: string | null;\r\n cruisingAltitude: number | null;\r\n medicalCrewRA: number | null;\r\n }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchFlightFollowingReportByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchFlightFollowingReportByIdsQuery = {\r\n __typename: 'Query';\r\n flightFollowingReport: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | {\r\n __typename: 'FlightFollowingReport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n tripId: string;\r\n companyId: string;\r\n summary: string | null;\r\n fuel: string | null;\r\n estimatedTimeEnrouteMinutes: number | null;\r\n riskAnalysis: string | null;\r\n flightType: FlightType | null;\r\n soulsOnBoard: number | null;\r\n highestFeatureEnroute: number | null;\r\n takeOffWeight: number | null;\r\n centerOfGravity: number | null;\r\n destination: string | null;\r\n trackingViaGps: boolean | null;\r\n flightRule: FlightRule | null;\r\n tripLegId: string | null;\r\n confirmedFboId: string | null;\r\n cruisingAltitude: number | null;\r\n medicalCrewRA: number | null;\r\n }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type LandingZoneOutOfServiceReasonFieldsFragment = {\r\n __typename: 'LandingZoneOutOfServiceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n};\r\n\r\nexport type FetchLandingZoneOutOfServiceReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchLandingZoneOutOfServiceReasonByIdQuery = {\r\n __typename: 'Query';\r\n landingZoneOutOfServiceReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | {\r\n __typename: 'LandingZoneOutOfServiceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchLandingZoneOutOfServiceReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchLandingZoneOutOfServiceReasonByIdsQuery = {\r\n __typename: 'Query';\r\n landingZoneOutOfServiceReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | {\r\n __typename: 'LandingZoneOutOfServiceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type LocationHazardAttachmentFieldsFragment = {\r\n __typename: 'LocationHazardAttachment';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n locationHazardId: string;\r\n fileName: string;\r\n companyId: string;\r\n fileSizeInBytes: number | null;\r\n contentType: string | null;\r\n};\r\n\r\nexport type FetchLocationHazardAttachmentByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchLocationHazardAttachmentByIdQuery = {\r\n __typename: 'Query';\r\n locationHazardAttachment: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | {\r\n __typename: 'LocationHazardAttachment';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n locationHazardId: string;\r\n fileName: string;\r\n companyId: string;\r\n fileSizeInBytes: number | null;\r\n contentType: string | null;\r\n }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchLocationHazardAttachmentByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchLocationHazardAttachmentByIdsQuery = {\r\n __typename: 'Query';\r\n locationHazardAttachment: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | {\r\n __typename: 'LocationHazardAttachment';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n locationHazardId: string;\r\n fileName: string;\r\n companyId: string;\r\n fileSizeInBytes: number | null;\r\n contentType: string | null;\r\n }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type LocationHazardFieldsFragment = {\r\n __typename: 'LocationHazard';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n locationId: string;\r\n hazard: string;\r\n companyId: string;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n};\r\n\r\nexport type FetchLocationHazardByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchLocationHazardByIdQuery = {\r\n __typename: 'Query';\r\n locationHazard: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | {\r\n __typename: 'LocationHazard';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n locationId: string;\r\n hazard: string;\r\n companyId: string;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchLocationHazardByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchLocationHazardByIdsQuery = {\r\n __typename: 'Query';\r\n locationHazard: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | {\r\n __typename: 'LocationHazard';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n locationId: string;\r\n hazard: string;\r\n companyId: string;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ManifestEntryFieldsFragment = {\r\n __typename: 'ManifestEntry';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n passengerId: string;\r\n tripLegId: string;\r\n companyId: string;\r\n confirmedAt: Date | number | string | null;\r\n confirmedById: string | null;\r\n};\r\n\r\nexport type FetchManifestEntryByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchManifestEntryByIdQuery = {\r\n __typename: 'Query';\r\n manifestEntry: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | {\r\n __typename: 'ManifestEntry';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n passengerId: string;\r\n tripLegId: string;\r\n companyId: string;\r\n confirmedAt: Date | number | string | null;\r\n confirmedById: string | null;\r\n }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchManifestEntryByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchManifestEntryByIdsQuery = {\r\n __typename: 'Query';\r\n manifestEntry: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | {\r\n __typename: 'ManifestEntry';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n passengerId: string;\r\n tripLegId: string;\r\n companyId: string;\r\n confirmedAt: Date | number | string | null;\r\n confirmedById: string | null;\r\n }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type MedicalControlContactLogEntryFieldsFragment = {\r\n __typename: 'MedicalControlContactLogEntry';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n cardId: string;\r\n timestampId: string;\r\n personId: string;\r\n isSuccessful: boolean;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchMedicalControlContactLogEntryByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMedicalControlContactLogEntryByIdQuery = {\r\n __typename: 'Query';\r\n medicalControlContactLogEntry: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | {\r\n __typename: 'MedicalControlContactLogEntry';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n cardId: string;\r\n timestampId: string;\r\n personId: string;\r\n isSuccessful: boolean;\r\n companyId: string;\r\n }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchMedicalControlContactLogEntryByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMedicalControlContactLogEntryByIdsQuery = {\r\n __typename: 'Query';\r\n medicalControlContactLogEntry: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | {\r\n __typename: 'MedicalControlContactLogEntry';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n cardId: string;\r\n timestampId: string;\r\n personId: string;\r\n isSuccessful: boolean;\r\n companyId: string;\r\n }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type MessageStatusUpdateFieldsFragment = {\r\n __typename: 'MessageStatusUpdate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: MessageStatus;\r\n trackedMessageId: string;\r\n error: string | null;\r\n vendorMessage: string | null;\r\n metadataJson: string | null;\r\n};\r\n\r\nexport type FetchMessageStatusUpdateByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMessageStatusUpdateByIdQuery = {\r\n __typename: 'Query';\r\n messageStatusUpdate: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | {\r\n __typename: 'MessageStatusUpdate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: MessageStatus;\r\n trackedMessageId: string;\r\n error: string | null;\r\n vendorMessage: string | null;\r\n metadataJson: string | null;\r\n }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchMessageStatusUpdateByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMessageStatusUpdateByIdsQuery = {\r\n __typename: 'Query';\r\n messageStatusUpdate: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | {\r\n __typename: 'MessageStatusUpdate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: MessageStatus;\r\n trackedMessageId: string;\r\n error: string | null;\r\n vendorMessage: string | null;\r\n metadataJson: string | null;\r\n }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type NextDueTypeFieldsFragment = {\r\n __typename: 'NextDueType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n dataType: string;\r\n};\r\n\r\nexport type FetchNextDueTypeByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNextDueTypeByIdQuery = {\r\n __typename: 'Query';\r\n nextDueType: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | {\r\n __typename: 'NextDueType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n dataType: string;\r\n }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchNextDueTypeByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNextDueTypeByIdsQuery = {\r\n __typename: 'Query';\r\n nextDueType: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | {\r\n __typename: 'NextDueType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n dataType: string;\r\n }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type NonReferralReasonFieldsFragment = {\r\n __typename: 'NonReferralReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n associatedCancellationReasonId: string | null;\r\n associatedCancellationSecondaryReasonId: string | null;\r\n};\r\n\r\nexport type FetchNonReferralReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNonReferralReasonByIdQuery = {\r\n __typename: 'Query';\r\n nonReferralReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | {\r\n __typename: 'NonReferralReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n associatedCancellationReasonId: string | null;\r\n associatedCancellationSecondaryReasonId: string | null;\r\n }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchNonReferralReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNonReferralReasonByIdsQuery = {\r\n __typename: 'Query';\r\n nonReferralReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | {\r\n __typename: 'NonReferralReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n associatedCancellationReasonId: string | null;\r\n associatedCancellationSecondaryReasonId: string | null;\r\n }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type NotificationFieldsFragment = {\r\n __typename: 'Notification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: NotificationStatus;\r\n body: string;\r\n companyId: string;\r\n cardId: string | null;\r\n subject: string | null;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n};\r\n\r\nexport type FetchNotificationByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNotificationByIdQuery = {\r\n __typename: 'Query';\r\n notification: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | {\r\n __typename: 'Notification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: NotificationStatus;\r\n body: string;\r\n companyId: string;\r\n cardId: string | null;\r\n subject: string | null;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchNotificationByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNotificationByIdsQuery = {\r\n __typename: 'Query';\r\n notification: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | {\r\n __typename: 'Notification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: NotificationStatus;\r\n body: string;\r\n companyId: string;\r\n cardId: string | null;\r\n subject: string | null;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type NotificationGroupFieldsFragment = {\r\n __typename: 'NotificationGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n unitId: string | null;\r\n regionId: string | null;\r\n type: NotificationGroupType | null;\r\n types: Array | null;\r\n};\r\n\r\nexport type FetchNotificationGroupByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNotificationGroupByIdQuery = {\r\n __typename: 'Query';\r\n notificationGroup: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | {\r\n __typename: 'NotificationGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n unitId: string | null;\r\n regionId: string | null;\r\n type: NotificationGroupType | null;\r\n types: Array | null;\r\n }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchNotificationGroupByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNotificationGroupByIdsQuery = {\r\n __typename: 'Query';\r\n notificationGroup: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | {\r\n __typename: 'NotificationGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n unitId: string | null;\r\n regionId: string | null;\r\n type: NotificationGroupType | null;\r\n types: Array | null;\r\n }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type NotificationGroupMemberFieldsFragment = {\r\n __typename: 'NotificationGroupMember';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n notificationGroupId: string;\r\n companyId: string;\r\n userId: string | null;\r\n notificationAddress: string | null;\r\n};\r\n\r\nexport type FetchNotificationGroupMemberByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNotificationGroupMemberByIdQuery = {\r\n __typename: 'Query';\r\n notificationGroupMember: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | {\r\n __typename: 'NotificationGroupMember';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n notificationGroupId: string;\r\n companyId: string;\r\n userId: string | null;\r\n notificationAddress: string | null;\r\n }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchNotificationGroupMemberByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNotificationGroupMemberByIdsQuery = {\r\n __typename: 'Query';\r\n notificationGroupMember: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | {\r\n __typename: 'NotificationGroupMember';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n notificationGroupId: string;\r\n companyId: string;\r\n userId: string | null;\r\n notificationAddress: string | null;\r\n }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type NotificationRecipientFieldsFragment = {\r\n __typename: 'NotificationRecipient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n notificationId: string;\r\n companyId: string;\r\n name: string | null;\r\n notificationAddress: string | null;\r\n userId: string | null;\r\n messageId: string | null;\r\n messageStatus: MessageStatus | null;\r\n};\r\n\r\nexport type FetchNotificationRecipientByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNotificationRecipientByIdQuery = {\r\n __typename: 'Query';\r\n notificationRecipient: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | {\r\n __typename: 'NotificationRecipient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n notificationId: string;\r\n companyId: string;\r\n name: string | null;\r\n notificationAddress: string | null;\r\n userId: string | null;\r\n messageId: string | null;\r\n messageStatus: MessageStatus | null;\r\n }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchNotificationRecipientByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNotificationRecipientByIdsQuery = {\r\n __typename: 'Query';\r\n notificationRecipient: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | {\r\n __typename: 'NotificationRecipient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n notificationId: string;\r\n companyId: string;\r\n name: string | null;\r\n notificationAddress: string | null;\r\n userId: string | null;\r\n messageId: string | null;\r\n messageStatus: MessageStatus | null;\r\n }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type NotificationSubscriptionFieldsFragment = {\r\n __typename: 'NotificationSubscription';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n unitId: string;\r\n notificationGroupId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchNotificationSubscriptionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNotificationSubscriptionByIdQuery = {\r\n __typename: 'Query';\r\n notificationSubscription: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | {\r\n __typename: 'NotificationSubscription';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n unitId: string;\r\n notificationGroupId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchNotificationSubscriptionByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNotificationSubscriptionByIdsQuery = {\r\n __typename: 'Query';\r\n notificationSubscription: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | {\r\n __typename: 'NotificationSubscription';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n unitId: string;\r\n notificationGroupId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type NotificationTemplateFieldsFragment = {\r\n __typename: 'NotificationTemplate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n contextType: EntityType;\r\n bodyTemplate: string;\r\n canBeManualTrigger: boolean;\r\n companyId: string | null;\r\n triggerType: NotificationTriggerType | null;\r\n triggerValue: string | null;\r\n activationRuleId: string | null;\r\n recipientTypes: Array | null;\r\n subjectTemplate: string | null;\r\n requiresApproval: boolean | null;\r\n groupTypes: Array | null;\r\n};\r\n\r\nexport type FetchNotificationTemplateByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNotificationTemplateByIdQuery = {\r\n __typename: 'Query';\r\n notificationTemplate: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | {\r\n __typename: 'NotificationTemplate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n contextType: EntityType;\r\n bodyTemplate: string;\r\n canBeManualTrigger: boolean;\r\n companyId: string | null;\r\n triggerType: NotificationTriggerType | null;\r\n triggerValue: string | null;\r\n activationRuleId: string | null;\r\n recipientTypes: Array | null;\r\n subjectTemplate: string | null;\r\n requiresApproval: boolean | null;\r\n groupTypes: Array | null;\r\n }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchNotificationTemplateByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchNotificationTemplateByIdsQuery = {\r\n __typename: 'Query';\r\n notificationTemplate: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | {\r\n __typename: 'NotificationTemplate';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n contextType: EntityType;\r\n bodyTemplate: string;\r\n canBeManualTrigger: boolean;\r\n companyId: string | null;\r\n triggerType: NotificationTriggerType | null;\r\n triggerValue: string | null;\r\n activationRuleId: string | null;\r\n recipientTypes: Array | null;\r\n subjectTemplate: string | null;\r\n requiresApproval: boolean | null;\r\n groupTypes: Array | null;\r\n }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type OemActivityFieldsFragment = {\r\n __typename: 'OemActivity';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n oemPlanId: string;\r\n activityType: OemActivityType;\r\n time: Date | number | string | null;\r\n authorId: string | null;\r\n content: string | null;\r\n priorStatus: string | null;\r\n currentStatus: string | null;\r\n oemPlanChangeRequestId: string | null;\r\n};\r\n\r\nexport type FetchOemActivityByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOemActivityByIdQuery = {\r\n __typename: 'Query';\r\n oemActivity: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | {\r\n __typename: 'OemActivity';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n oemPlanId: string;\r\n activityType: OemActivityType;\r\n time: Date | number | string | null;\r\n authorId: string | null;\r\n content: string | null;\r\n priorStatus: string | null;\r\n currentStatus: string | null;\r\n oemPlanChangeRequestId: string | null;\r\n }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchOemActivityByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOemActivityByIdsQuery = {\r\n __typename: 'Query';\r\n oemActivity: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | {\r\n __typename: 'OemActivity';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n oemPlanId: string;\r\n activityType: OemActivityType;\r\n time: Date | number | string | null;\r\n authorId: string | null;\r\n content: string | null;\r\n priorStatus: string | null;\r\n currentStatus: string | null;\r\n oemPlanChangeRequestId: string | null;\r\n }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type OemAssetFieldsFragment = {\r\n __typename: 'OemAsset';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n oemPlanId: string;\r\n assetId: string;\r\n assetType: OemAssetType;\r\n status: OemAssetStatus;\r\n assetDispatchCompanyId: string | null;\r\n originalUnitId: string | null;\r\n oemUnitId: string | null;\r\n requestedPlacardNumber: string | null;\r\n requestedUnitName: string | null;\r\n requestedUnitAbbreviation: string | null;\r\n requestedBaseId: string | null;\r\n};\r\n\r\nexport type FetchOemAssetByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOemAssetByIdQuery = {\r\n __typename: 'Query';\r\n oemAsset: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | {\r\n __typename: 'OemAsset';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n oemPlanId: string;\r\n assetId: string;\r\n assetType: OemAssetType;\r\n status: OemAssetStatus;\r\n assetDispatchCompanyId: string | null;\r\n originalUnitId: string | null;\r\n oemUnitId: string | null;\r\n requestedPlacardNumber: string | null;\r\n requestedUnitName: string | null;\r\n requestedUnitAbbreviation: string | null;\r\n requestedBaseId: string | null;\r\n }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchOemAssetByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOemAssetByIdsQuery = {\r\n __typename: 'Query';\r\n oemAsset: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | {\r\n __typename: 'OemAsset';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n oemPlanId: string;\r\n assetId: string;\r\n assetType: OemAssetType;\r\n status: OemAssetStatus;\r\n assetDispatchCompanyId: string | null;\r\n originalUnitId: string | null;\r\n oemUnitId: string | null;\r\n requestedPlacardNumber: string | null;\r\n requestedUnitName: string | null;\r\n requestedUnitAbbreviation: string | null;\r\n requestedBaseId: string | null;\r\n }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type OemPlanChangeRequestFieldsFragment = {\r\n __typename: 'OemPlanChangeRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n oemPlanId: string;\r\n oemAssetId: string;\r\n status: OemPlanChangeRequestStatus;\r\n originalAssetStatus: OemAssetStatus;\r\n requestedAssetStatus: OemAssetStatus;\r\n requestedById: string | null;\r\n dateRequested: Date | number | string | null;\r\n dateCompleted: Date | number | string | null;\r\n dateCancelled: Date | number | string | null;\r\n notes: string | null;\r\n};\r\n\r\nexport type FetchOemPlanChangeRequestByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOemPlanChangeRequestByIdQuery = {\r\n __typename: 'Query';\r\n oemPlanChangeRequest: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | {\r\n __typename: 'OemPlanChangeRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n oemPlanId: string;\r\n oemAssetId: string;\r\n status: OemPlanChangeRequestStatus;\r\n originalAssetStatus: OemAssetStatus;\r\n requestedAssetStatus: OemAssetStatus;\r\n requestedById: string | null;\r\n dateRequested: Date | number | string | null;\r\n dateCompleted: Date | number | string | null;\r\n dateCancelled: Date | number | string | null;\r\n notes: string | null;\r\n }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchOemPlanChangeRequestByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOemPlanChangeRequestByIdsQuery = {\r\n __typename: 'Query';\r\n oemPlanChangeRequest: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | {\r\n __typename: 'OemPlanChangeRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n oemPlanId: string;\r\n oemAssetId: string;\r\n status: OemPlanChangeRequestStatus;\r\n originalAssetStatus: OemAssetStatus;\r\n requestedAssetStatus: OemAssetStatus;\r\n requestedById: string | null;\r\n dateRequested: Date | number | string | null;\r\n dateCompleted: Date | number | string | null;\r\n dateCancelled: Date | number | string | null;\r\n notes: string | null;\r\n }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type OemPlanFieldsFragment = {\r\n __typename: 'OemPlan';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n oemCompanyId: string;\r\n outOfServiceReasonId: string;\r\n defaultBaseId: string;\r\n planStatus: OemPlanStatus;\r\n planYear: number;\r\n description: string | null;\r\n};\r\n\r\nexport type FetchOemPlanByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOemPlanByIdQuery = {\r\n __typename: 'Query';\r\n oemPlan: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | {\r\n __typename: 'OemPlan';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n oemCompanyId: string;\r\n outOfServiceReasonId: string;\r\n defaultBaseId: string;\r\n planStatus: OemPlanStatus;\r\n planYear: number;\r\n description: string | null;\r\n }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchOemPlanByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOemPlanByIdsQuery = {\r\n __typename: 'Query';\r\n oemPlan: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | {\r\n __typename: 'OemPlan';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n oemCompanyId: string;\r\n outOfServiceReasonId: string;\r\n defaultBaseId: string;\r\n planStatus: OemPlanStatus;\r\n planYear: number;\r\n description: string | null;\r\n }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type OfferAlgorithmFieldsFragment = {\r\n __typename: 'OfferAlgorithm';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n oneCallAgreement: boolean;\r\n rank: number;\r\n transportOfferAlgorithm: TransportOfferAlgorithm;\r\n distanceCalculation: DistanceCalculation;\r\n activationRuleId: string;\r\n companyId: string;\r\n isEnabled: boolean;\r\n minimumFlightRule: FlightRule | null;\r\n preferredUnits: Array<{\r\n __typename: 'PreferredUnit';\r\n id: string;\r\n unitAbbreviation: string;\r\n rank: number;\r\n type: PreferredUnitType;\r\n }>;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n};\r\n\r\nexport type FetchOfferAlgorithmByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOfferAlgorithmByIdQuery = {\r\n __typename: 'Query';\r\n offerAlgorithm: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | {\r\n __typename: 'OfferAlgorithm';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n oneCallAgreement: boolean;\r\n rank: number;\r\n transportOfferAlgorithm: TransportOfferAlgorithm;\r\n distanceCalculation: DistanceCalculation;\r\n activationRuleId: string;\r\n companyId: string;\r\n isEnabled: boolean;\r\n minimumFlightRule: FlightRule | null;\r\n preferredUnits: Array<{\r\n __typename: 'PreferredUnit';\r\n id: string;\r\n unitAbbreviation: string;\r\n rank: number;\r\n type: PreferredUnitType;\r\n }>;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchOfferAlgorithmByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOfferAlgorithmByIdsQuery = {\r\n __typename: 'Query';\r\n offerAlgorithm: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | {\r\n __typename: 'OfferAlgorithm';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n oneCallAgreement: boolean;\r\n rank: number;\r\n transportOfferAlgorithm: TransportOfferAlgorithm;\r\n distanceCalculation: DistanceCalculation;\r\n activationRuleId: string;\r\n companyId: string;\r\n isEnabled: boolean;\r\n minimumFlightRule: FlightRule | null;\r\n preferredUnits: Array<{\r\n __typename: 'PreferredUnit';\r\n id: string;\r\n unitAbbreviation: string;\r\n rank: number;\r\n type: PreferredUnitType;\r\n }>;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type OperationFieldsFragment = {\r\n __typename: 'Operation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n vehicleId: string;\r\n dateOperationStarted: Date | number | string;\r\n riskAnalysisAcknowledged: boolean;\r\n companyId: string;\r\n unitId: string | null;\r\n dateOperationEnded: Date | number | string | null;\r\n unitActivationTime: Date | number | string | null;\r\n riskAnalysisNumber: string | null;\r\n standbyActivationType: StandbyActivationType | null;\r\n caller: string | null;\r\n callbackNumber: string | null;\r\n initialOperationType: OperationType | null;\r\n};\r\n\r\nexport type FetchOperationByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOperationByIdQuery = {\r\n __typename: 'Query';\r\n operation: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | {\r\n __typename: 'Operation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n vehicleId: string;\r\n dateOperationStarted: Date | number | string;\r\n riskAnalysisAcknowledged: boolean;\r\n companyId: string;\r\n unitId: string | null;\r\n dateOperationEnded: Date | number | string | null;\r\n unitActivationTime: Date | number | string | null;\r\n riskAnalysisNumber: string | null;\r\n standbyActivationType: StandbyActivationType | null;\r\n caller: string | null;\r\n callbackNumber: string | null;\r\n initialOperationType: OperationType | null;\r\n }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchOperationByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOperationByIdsQuery = {\r\n __typename: 'Query';\r\n operation: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | {\r\n __typename: 'Operation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n vehicleId: string;\r\n dateOperationStarted: Date | number | string;\r\n riskAnalysisAcknowledged: boolean;\r\n companyId: string;\r\n unitId: string | null;\r\n dateOperationEnded: Date | number | string | null;\r\n unitActivationTime: Date | number | string | null;\r\n riskAnalysisNumber: string | null;\r\n standbyActivationType: StandbyActivationType | null;\r\n caller: string | null;\r\n callbackNumber: string | null;\r\n initialOperationType: OperationType | null;\r\n }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type OutOfServiceEventFieldsFragment = {\r\n __typename: 'OutOfServiceEvent';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonId: string;\r\n isAirworthy: boolean;\r\n initialEstimatedEndTime: Date | number | string;\r\n alertWhenEventEnds: boolean;\r\n companyId: string;\r\n startTime: Date | number | string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n secondaryReasonId: string | null;\r\n scheduledStartTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n notes: string | null;\r\n linkedCardId: string | null;\r\n createdById: string | null;\r\n endedById: string | null;\r\n secondaryReasonComment: string | null;\r\n parentOutOfServiceEventId: string | null;\r\n copiedFromId: string | null;\r\n alertTimeInMinutes: number | null;\r\n};\r\n\r\nexport type FetchOutOfServiceEventByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOutOfServiceEventByIdQuery = {\r\n __typename: 'Query';\r\n outOfServiceEvent: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | {\r\n __typename: 'OutOfServiceEvent';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonId: string;\r\n isAirworthy: boolean;\r\n initialEstimatedEndTime: Date | number | string;\r\n alertWhenEventEnds: boolean;\r\n companyId: string;\r\n startTime: Date | number | string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n secondaryReasonId: string | null;\r\n scheduledStartTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n notes: string | null;\r\n linkedCardId: string | null;\r\n createdById: string | null;\r\n endedById: string | null;\r\n secondaryReasonComment: string | null;\r\n parentOutOfServiceEventId: string | null;\r\n copiedFromId: string | null;\r\n alertTimeInMinutes: number | null;\r\n }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchOutOfServiceEventByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOutOfServiceEventByIdsQuery = {\r\n __typename: 'Query';\r\n outOfServiceEvent: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | {\r\n __typename: 'OutOfServiceEvent';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonId: string;\r\n isAirworthy: boolean;\r\n initialEstimatedEndTime: Date | number | string;\r\n alertWhenEventEnds: boolean;\r\n companyId: string;\r\n startTime: Date | number | string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n secondaryReasonId: string | null;\r\n scheduledStartTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n notes: string | null;\r\n linkedCardId: string | null;\r\n createdById: string | null;\r\n endedById: string | null;\r\n secondaryReasonComment: string | null;\r\n parentOutOfServiceEventId: string | null;\r\n copiedFromId: string | null;\r\n alertTimeInMinutes: number | null;\r\n }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type OutOfServiceEventNoteFieldsFragment = {\r\n __typename: 'OutOfServiceEventNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n outOfServiceEventId: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isSystem: boolean;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n};\r\n\r\nexport type FetchOutOfServiceEventNoteByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOutOfServiceEventNoteByIdQuery = {\r\n __typename: 'Query';\r\n outOfServiceEventNote: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | {\r\n __typename: 'OutOfServiceEventNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n outOfServiceEventId: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isSystem: boolean;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchOutOfServiceEventNoteByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOutOfServiceEventNoteByIdsQuery = {\r\n __typename: 'Query';\r\n outOfServiceEventNote: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | {\r\n __typename: 'OutOfServiceEventNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n outOfServiceEventId: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n isSystem: boolean;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type OutOfServiceReasonFieldsFragment = {\r\n __typename: 'OutOfServiceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n controllable: boolean;\r\n isVehicleReason: boolean;\r\n description: string | null;\r\n};\r\n\r\nexport type FetchOutOfServiceReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOutOfServiceReasonByIdQuery = {\r\n __typename: 'Query';\r\n outOfServiceReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | {\r\n __typename: 'OutOfServiceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n controllable: boolean;\r\n isVehicleReason: boolean;\r\n description: string | null;\r\n }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchOutOfServiceReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOutOfServiceReasonByIdsQuery = {\r\n __typename: 'Query';\r\n outOfServiceReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | {\r\n __typename: 'OutOfServiceReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n controllable: boolean;\r\n isVehicleReason: boolean;\r\n description: string | null;\r\n }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type OutOfServiceSecondaryReasonFieldsFragment = {\r\n __typename: 'OutOfServiceSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n outOfServiceReasonId: string;\r\n};\r\n\r\nexport type FetchOutOfServiceSecondaryReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOutOfServiceSecondaryReasonByIdQuery = {\r\n __typename: 'Query';\r\n outOfServiceSecondaryReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | {\r\n __typename: 'OutOfServiceSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n outOfServiceReasonId: string;\r\n }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchOutOfServiceSecondaryReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchOutOfServiceSecondaryReasonByIdsQuery = {\r\n __typename: 'Query';\r\n outOfServiceSecondaryReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | {\r\n __typename: 'OutOfServiceSecondaryReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n outOfServiceReasonId: string;\r\n }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type PassdownLogAcknowledgementFieldsFragment = {\r\n __typename: 'PassdownLogAcknowledgement';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n passdownLogId: string;\r\n dateAcknowledged: Date | number | string;\r\n acknowledgedById: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchPassdownLogAcknowledgementByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPassdownLogAcknowledgementByIdQuery = {\r\n __typename: 'Query';\r\n passdownLogAcknowledgement: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | {\r\n __typename: 'PassdownLogAcknowledgement';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n passdownLogId: string;\r\n dateAcknowledged: Date | number | string;\r\n acknowledgedById: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchPassdownLogAcknowledgementByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPassdownLogAcknowledgementByIdsQuery = {\r\n __typename: 'Query';\r\n passdownLogAcknowledgement: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | {\r\n __typename: 'PassdownLogAcknowledgement';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n passdownLogId: string;\r\n dateAcknowledged: Date | number | string;\r\n acknowledgedById: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type PassdownLogFieldsFragment = {\r\n __typename: 'PassdownLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n regionId: string;\r\n logDate: Date | number | string;\r\n body: string;\r\n requiresAcknowledgement: boolean;\r\n companyId: string;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n authorId: string | null;\r\n};\r\n\r\nexport type FetchPassdownLogByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPassdownLogByIdQuery = {\r\n __typename: 'Query';\r\n passdownLog: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | {\r\n __typename: 'PassdownLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n regionId: string;\r\n logDate: Date | number | string;\r\n body: string;\r\n requiresAcknowledgement: boolean;\r\n companyId: string;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n authorId: string | null;\r\n }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchPassdownLogByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPassdownLogByIdsQuery = {\r\n __typename: 'Query';\r\n passdownLog: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | {\r\n __typename: 'PassdownLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n regionId: string;\r\n logDate: Date | number | string;\r\n body: string;\r\n requiresAcknowledgement: boolean;\r\n companyId: string;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n authorId: string | null;\r\n }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type PatientFieldsFragment = {\r\n __typename: 'Patient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n gender: Gender;\r\n companyId: string;\r\n firstName: string | null;\r\n lastName: string | null;\r\n dateOfBirth: Date | number | string | null;\r\n};\r\n\r\nexport type FetchPatientByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPatientByIdQuery = {\r\n __typename: 'Query';\r\n patient: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | {\r\n __typename: 'Patient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n gender: Gender;\r\n companyId: string;\r\n firstName: string | null;\r\n lastName: string | null;\r\n dateOfBirth: Date | number | string | null;\r\n }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchPatientByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPatientByIdsQuery = {\r\n __typename: 'Query';\r\n patient: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | {\r\n __typename: 'Patient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n gender: Gender;\r\n companyId: string;\r\n firstName: string | null;\r\n lastName: string | null;\r\n dateOfBirth: Date | number | string | null;\r\n }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type PositionReportAlertFieldsFragment = {\r\n __typename: 'PositionReportAlert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n hasReceivedQualifyingReport: boolean;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchPositionReportAlertByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPositionReportAlertByIdQuery = {\r\n __typename: 'Query';\r\n positionReportAlert: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | {\r\n __typename: 'PositionReportAlert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n hasReceivedQualifyingReport: boolean;\r\n companyId: string;\r\n }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchPositionReportAlertByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPositionReportAlertByIdsQuery = {\r\n __typename: 'Query';\r\n positionReportAlert: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | {\r\n __typename: 'PositionReportAlert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n hasReceivedQualifyingReport: boolean;\r\n companyId: string;\r\n }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type PositionReportArchiveFieldsFragment = {\r\n __typename: 'PositionReportArchive';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n dateArchived: Date | number | string;\r\n tripId: string;\r\n companyId: string;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: Date | number | string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n};\r\n\r\nexport type FetchPositionReportArchiveByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPositionReportArchiveByIdQuery = {\r\n __typename: 'Query';\r\n positionReportArchive: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | {\r\n __typename: 'PositionReportArchive';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n dateArchived: Date | number | string;\r\n tripId: string;\r\n companyId: string;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: Date | number | string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchPositionReportArchiveByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPositionReportArchiveByIdsQuery = {\r\n __typename: 'Query';\r\n positionReportArchive: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | {\r\n __typename: 'PositionReportArchive';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n dateArchived: Date | number | string;\r\n tripId: string;\r\n companyId: string;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: Date | number | string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type PositionReportFieldsFragment = {\r\n __typename: 'PositionReport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n tripId: string;\r\n companyId: string;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: Date | number | string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n};\r\n\r\nexport type FetchPositionReportByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPositionReportByIdQuery = {\r\n __typename: 'Query';\r\n positionReport: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | {\r\n __typename: 'PositionReport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n tripId: string;\r\n companyId: string;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: Date | number | string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchPositionReportByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPositionReportByIdsQuery = {\r\n __typename: 'Query';\r\n positionReport: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | {\r\n __typename: 'PositionReport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n tripId: string;\r\n companyId: string;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: Date | number | string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type QuestionChoiceFieldsFragment = {\r\n __typename: 'QuestionChoice';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n label: string;\r\n value: string;\r\n questionId: string;\r\n};\r\n\r\nexport type FetchQuestionChoiceByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionChoiceByIdQuery = {\r\n __typename: 'Query';\r\n questionChoice: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | {\r\n __typename: 'QuestionChoice';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n label: string;\r\n value: string;\r\n questionId: string;\r\n }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchQuestionChoiceByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionChoiceByIdsQuery = {\r\n __typename: 'Query';\r\n questionChoice: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | {\r\n __typename: 'QuestionChoice';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n label: string;\r\n value: string;\r\n questionId: string;\r\n }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type QuestionFieldsFragment = {\r\n __typename: 'Question';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n question: string;\r\n questionType: QuestionType;\r\n dataType: QuestionDataType | null;\r\n};\r\n\r\nexport type FetchQuestionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionByIdQuery = {\r\n __typename: 'Query';\r\n question: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | {\r\n __typename: 'Question';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n question: string;\r\n questionType: QuestionType;\r\n dataType: QuestionDataType | null;\r\n }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchQuestionByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionByIdsQuery = {\r\n __typename: 'Query';\r\n question: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | {\r\n __typename: 'Question';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n question: string;\r\n questionType: QuestionType;\r\n dataType: QuestionDataType | null;\r\n }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type QuestionnaireFieldsFragment = {\r\n __typename: 'Questionnaire';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n type: QuestionnaireType;\r\n communicationCenterId: string | null;\r\n};\r\n\r\nexport type FetchQuestionnaireByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionnaireByIdQuery = {\r\n __typename: 'Query';\r\n questionnaire: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | {\r\n __typename: 'Questionnaire';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n type: QuestionnaireType;\r\n communicationCenterId: string | null;\r\n }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchQuestionnaireByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionnaireByIdsQuery = {\r\n __typename: 'Query';\r\n questionnaire: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | {\r\n __typename: 'Questionnaire';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n type: QuestionnaireType;\r\n communicationCenterId: string | null;\r\n }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type QuestionnaireQuestionResponseFieldsFragment = {\r\n __typename: 'QuestionnaireQuestionResponse';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireResponseId: string;\r\n questionnaireSectionQuestionId: string;\r\n matchType: RuleMatchType;\r\n reviewRequired: boolean;\r\n companyId: string;\r\n responseValue: string | null;\r\n explanation: string | null;\r\n};\r\n\r\nexport type FetchQuestionnaireQuestionResponseByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionnaireQuestionResponseByIdQuery = {\r\n __typename: 'Query';\r\n questionnaireQuestionResponse: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | {\r\n __typename: 'QuestionnaireQuestionResponse';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireResponseId: string;\r\n questionnaireSectionQuestionId: string;\r\n matchType: RuleMatchType;\r\n reviewRequired: boolean;\r\n companyId: string;\r\n responseValue: string | null;\r\n explanation: string | null;\r\n }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchQuestionnaireQuestionResponseByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionnaireQuestionResponseByIdsQuery = {\r\n __typename: 'Query';\r\n questionnaireQuestionResponse: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | {\r\n __typename: 'QuestionnaireQuestionResponse';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireResponseId: string;\r\n questionnaireSectionQuestionId: string;\r\n matchType: RuleMatchType;\r\n reviewRequired: boolean;\r\n companyId: string;\r\n responseValue: string | null;\r\n explanation: string | null;\r\n }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type QuestionnaireQuestionResponseNoteFieldsFragment = {\r\n __typename: 'QuestionnaireQuestionResponseNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireQuestionResponseId: string;\r\n authorId: string;\r\n dateAuthored: Date | number | string;\r\n note: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchQuestionnaireQuestionResponseNoteByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionnaireQuestionResponseNoteByIdQuery = {\r\n __typename: 'Query';\r\n questionnaireQuestionResponseNote: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | {\r\n __typename: 'QuestionnaireQuestionResponseNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireQuestionResponseId: string;\r\n authorId: string;\r\n dateAuthored: Date | number | string;\r\n note: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchQuestionnaireQuestionResponseNoteByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionnaireQuestionResponseNoteByIdsQuery = {\r\n __typename: 'Query';\r\n questionnaireQuestionResponseNote: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | {\r\n __typename: 'QuestionnaireQuestionResponseNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireQuestionResponseId: string;\r\n authorId: string;\r\n dateAuthored: Date | number | string;\r\n note: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type QuestionnaireResponseFieldsFragment = {\r\n __typename: 'QuestionnaireResponse';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: QuestionnaireResponseStatus;\r\n questionnaireId: string;\r\n companyId: string;\r\n cardId: string;\r\n currentReviewLevel: UserRole | null;\r\n completedById: string | null;\r\n dateCompleted: Date | number | string | null;\r\n communicationsReviewById: string | null;\r\n dateCommunicationsReviewed: Date | number | string | null;\r\n supervisorReviewById: string | null;\r\n dateSupervisorReviewed: Date | number | string | null;\r\n managerReviewById: string | null;\r\n dateManagerReviewed: Date | number | string | null;\r\n};\r\n\r\nexport type FetchQuestionnaireResponseByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionnaireResponseByIdQuery = {\r\n __typename: 'Query';\r\n questionnaireResponse: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | {\r\n __typename: 'QuestionnaireResponse';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: QuestionnaireResponseStatus;\r\n questionnaireId: string;\r\n companyId: string;\r\n cardId: string;\r\n currentReviewLevel: UserRole | null;\r\n completedById: string | null;\r\n dateCompleted: Date | number | string | null;\r\n communicationsReviewById: string | null;\r\n dateCommunicationsReviewed: Date | number | string | null;\r\n supervisorReviewById: string | null;\r\n dateSupervisorReviewed: Date | number | string | null;\r\n managerReviewById: string | null;\r\n dateManagerReviewed: Date | number | string | null;\r\n }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchQuestionnaireResponseByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionnaireResponseByIdsQuery = {\r\n __typename: 'Query';\r\n questionnaireResponse: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | {\r\n __typename: 'QuestionnaireResponse';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: QuestionnaireResponseStatus;\r\n questionnaireId: string;\r\n companyId: string;\r\n cardId: string;\r\n currentReviewLevel: UserRole | null;\r\n completedById: string | null;\r\n dateCompleted: Date | number | string | null;\r\n communicationsReviewById: string | null;\r\n dateCommunicationsReviewed: Date | number | string | null;\r\n supervisorReviewById: string | null;\r\n dateSupervisorReviewed: Date | number | string | null;\r\n managerReviewById: string | null;\r\n dateManagerReviewed: Date | number | string | null;\r\n }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type QuestionnaireSectionFieldsFragment = {\r\n __typename: 'QuestionnaireSection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n questionnaireId: string;\r\n sequence: number;\r\n};\r\n\r\nexport type FetchQuestionnaireSectionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionnaireSectionByIdQuery = {\r\n __typename: 'Query';\r\n questionnaireSection: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | {\r\n __typename: 'QuestionnaireSection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n questionnaireId: string;\r\n sequence: number;\r\n }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchQuestionnaireSectionByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionnaireSectionByIdsQuery = {\r\n __typename: 'Query';\r\n questionnaireSection: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | {\r\n __typename: 'QuestionnaireSection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n questionnaireId: string;\r\n sequence: number;\r\n }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type QuestionnaireSectionQuestionFieldsFragment = {\r\n __typename: 'QuestionnaireSectionQuestion';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireSectionId: string;\r\n questionId: string;\r\n responsibleRole: UserRole;\r\n sequence: number;\r\n isDisabled: boolean;\r\n activationRuleId: string | null;\r\n activityType: string | null;\r\n explanationRequiredChoices: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n reviewRequiredChoices: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n};\r\n\r\nexport type FetchQuestionnaireSectionQuestionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionnaireSectionQuestionByIdQuery = {\r\n __typename: 'Query';\r\n questionnaireSectionQuestion: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | {\r\n __typename: 'QuestionnaireSectionQuestion';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireSectionId: string;\r\n questionId: string;\r\n responsibleRole: UserRole;\r\n sequence: number;\r\n isDisabled: boolean;\r\n activationRuleId: string | null;\r\n activityType: string | null;\r\n explanationRequiredChoices: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n reviewRequiredChoices: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchQuestionnaireSectionQuestionByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchQuestionnaireSectionQuestionByIdsQuery = {\r\n __typename: 'Query';\r\n questionnaireSectionQuestion: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | {\r\n __typename: 'QuestionnaireSectionQuestion';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireSectionId: string;\r\n questionId: string;\r\n responsibleRole: UserRole;\r\n sequence: number;\r\n isDisabled: boolean;\r\n activationRuleId: string | null;\r\n activityType: string | null;\r\n explanationRequiredChoices: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n reviewRequiredChoices: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ReceivingFacilityRequestFieldsFragment = {\r\n __typename: 'ReceivingFacilityRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: ReceivingFacilityRequestStatus;\r\n cardId: string;\r\n requestId: string;\r\n medicalFacilityId: string;\r\n requestLocationId: string;\r\n companyId: string;\r\n nonAcceptanceType: NonAcceptanceType | null;\r\n nonAcceptanceReasonId: string | null;\r\n referredToFacilityId: string | null;\r\n};\r\n\r\nexport type FetchReceivingFacilityRequestByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchReceivingFacilityRequestByIdQuery = {\r\n __typename: 'Query';\r\n receivingFacilityRequest: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | {\r\n __typename: 'ReceivingFacilityRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: ReceivingFacilityRequestStatus;\r\n cardId: string;\r\n requestId: string;\r\n medicalFacilityId: string;\r\n requestLocationId: string;\r\n companyId: string;\r\n nonAcceptanceType: NonAcceptanceType | null;\r\n nonAcceptanceReasonId: string | null;\r\n referredToFacilityId: string | null;\r\n }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchReceivingFacilityRequestByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchReceivingFacilityRequestByIdsQuery = {\r\n __typename: 'Query';\r\n receivingFacilityRequest: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | {\r\n __typename: 'ReceivingFacilityRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: ReceivingFacilityRequestStatus;\r\n cardId: string;\r\n requestId: string;\r\n medicalFacilityId: string;\r\n requestLocationId: string;\r\n companyId: string;\r\n nonAcceptanceType: NonAcceptanceType | null;\r\n nonAcceptanceReasonId: string | null;\r\n referredToFacilityId: string | null;\r\n }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type RendezvousRequestFieldsFragment = {\r\n __typename: 'RendezvousRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: SupplementalLegType;\r\n utilizationStatus: AmrUtilizationStatus;\r\n requestLocationId: string;\r\n companyId: string;\r\n agencyLocationId: string | null;\r\n agencyEta: Date | number | string | null;\r\n rendezvousLocationDescription: string | null;\r\n contactInformation: string | null;\r\n confirmedAt: Date | number | string | null;\r\n departedLzAt: Date | number | string | null;\r\n arrivedDestAt: Date | number | string | null;\r\n departedDestAt: Date | number | string | null;\r\n arrivedLzAt: Date | number | string | null;\r\n cancelledAt: Date | number | string | null;\r\n notes: string | null;\r\n transportUnitNumber: string | null;\r\n};\r\n\r\nexport type FetchRendezvousRequestByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRendezvousRequestByIdQuery = {\r\n __typename: 'Query';\r\n rendezvousRequest: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | {\r\n __typename: 'RendezvousRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: SupplementalLegType;\r\n utilizationStatus: AmrUtilizationStatus;\r\n requestLocationId: string;\r\n companyId: string;\r\n agencyLocationId: string | null;\r\n agencyEta: Date | number | string | null;\r\n rendezvousLocationDescription: string | null;\r\n contactInformation: string | null;\r\n confirmedAt: Date | number | string | null;\r\n departedLzAt: Date | number | string | null;\r\n arrivedDestAt: Date | number | string | null;\r\n departedDestAt: Date | number | string | null;\r\n arrivedLzAt: Date | number | string | null;\r\n cancelledAt: Date | number | string | null;\r\n notes: string | null;\r\n transportUnitNumber: string | null;\r\n }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchRendezvousRequestByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRendezvousRequestByIdsQuery = {\r\n __typename: 'Query';\r\n rendezvousRequest: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | {\r\n __typename: 'RendezvousRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: SupplementalLegType;\r\n utilizationStatus: AmrUtilizationStatus;\r\n requestLocationId: string;\r\n companyId: string;\r\n agencyLocationId: string | null;\r\n agencyEta: Date | number | string | null;\r\n rendezvousLocationDescription: string | null;\r\n contactInformation: string | null;\r\n confirmedAt: Date | number | string | null;\r\n departedLzAt: Date | number | string | null;\r\n arrivedDestAt: Date | number | string | null;\r\n departedDestAt: Date | number | string | null;\r\n arrivedLzAt: Date | number | string | null;\r\n cancelledAt: Date | number | string | null;\r\n notes: string | null;\r\n transportUnitNumber: string | null;\r\n }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type RequestFieldsFragment = {\r\n __typename: 'Request';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: RequestStatus;\r\n requestedOperationType: OperationType;\r\n isStandbyRequest: boolean;\r\n standbyActivationRequested: boolean;\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n companyId: string;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n requestedVehicleType: VehicleType | null;\r\n primaryUnitServiceAreaId: string | null;\r\n commitUnitToStandby: boolean | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n assignmentDelayedReasonId: string | null;\r\n regionId: string | null;\r\n includeCompetitors: boolean | null;\r\n transportOfferAlgorithmId: string | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n webOrderCallType: WebOrderCallType | null;\r\n etloInMinutes: number | null;\r\n atloInMinutes: number | null;\r\n safetyQuestions: {\r\n __typename: 'SafetyQuestions';\r\n otherServiceDeclined: boolean | null;\r\n otherServiceDescription: string | null;\r\n otherServicesAreRespondingToTransferring: boolean | null;\r\n otherServiceResponseDescription: string | null;\r\n };\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n};\r\n\r\nexport type FetchRequestByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequestByIdQuery = {\r\n __typename: 'Query';\r\n request: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | {\r\n __typename: 'Request';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: RequestStatus;\r\n requestedOperationType: OperationType;\r\n isStandbyRequest: boolean;\r\n standbyActivationRequested: boolean;\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n companyId: string;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n requestedVehicleType: VehicleType | null;\r\n primaryUnitServiceAreaId: string | null;\r\n commitUnitToStandby: boolean | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n assignmentDelayedReasonId: string | null;\r\n regionId: string | null;\r\n includeCompetitors: boolean | null;\r\n transportOfferAlgorithmId: string | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n webOrderCallType: WebOrderCallType | null;\r\n etloInMinutes: number | null;\r\n atloInMinutes: number | null;\r\n safetyQuestions: {\r\n __typename: 'SafetyQuestions';\r\n otherServiceDeclined: boolean | null;\r\n otherServiceDescription: string | null;\r\n otherServicesAreRespondingToTransferring: boolean | null;\r\n otherServiceResponseDescription: string | null;\r\n };\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchRequestByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequestByIdsQuery = {\r\n __typename: 'Query';\r\n request: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | {\r\n __typename: 'Request';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: RequestStatus;\r\n requestedOperationType: OperationType;\r\n isStandbyRequest: boolean;\r\n standbyActivationRequested: boolean;\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n companyId: string;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n requestedVehicleType: VehicleType | null;\r\n primaryUnitServiceAreaId: string | null;\r\n commitUnitToStandby: boolean | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n assignmentDelayedReasonId: string | null;\r\n regionId: string | null;\r\n includeCompetitors: boolean | null;\r\n transportOfferAlgorithmId: string | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n webOrderCallType: WebOrderCallType | null;\r\n etloInMinutes: number | null;\r\n atloInMinutes: number | null;\r\n safetyQuestions: {\r\n __typename: 'SafetyQuestions';\r\n otherServiceDeclined: boolean | null;\r\n otherServiceDescription: string | null;\r\n otherServicesAreRespondingToTransferring: boolean | null;\r\n otherServiceResponseDescription: string | null;\r\n };\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type RequesterFieldsFragment = {\r\n __typename: 'Requester';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n affiliationType: AffiliationType | null;\r\n caller: string | null;\r\n roleId: string | null;\r\n missionRole: MissionRoleType | null;\r\n callbackNumber: string | null;\r\n email: string | null;\r\n facilityId: string | null;\r\n agencyLocationId: string | null;\r\n referringCompanyId: string | null;\r\n referringAgencyLocationId: string | null;\r\n referralReasonId: string | null;\r\n referringRecordNumber: string | null;\r\n specialtyTeamNotes: string | null;\r\n specialtyTeamId: string | null;\r\n careLevelRequested: CareLevel | null;\r\n transferCenterId: string | null;\r\n transferCenterNotes: string | null;\r\n transportingAgencyLocationId: string | null;\r\n isDoublePatient: boolean | null;\r\n isWingToWing: boolean | null;\r\n requestId: string | null;\r\n specialtyTeamMembers: Array<{ __typename: 'IdListItem'; id: string }>;\r\n};\r\n\r\nexport type FetchRequesterByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequesterByIdQuery = {\r\n __typename: 'Query';\r\n requester: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | {\r\n __typename: 'Requester';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n affiliationType: AffiliationType | null;\r\n caller: string | null;\r\n roleId: string | null;\r\n missionRole: MissionRoleType | null;\r\n callbackNumber: string | null;\r\n email: string | null;\r\n facilityId: string | null;\r\n agencyLocationId: string | null;\r\n referringCompanyId: string | null;\r\n referringAgencyLocationId: string | null;\r\n referralReasonId: string | null;\r\n referringRecordNumber: string | null;\r\n specialtyTeamNotes: string | null;\r\n specialtyTeamId: string | null;\r\n careLevelRequested: CareLevel | null;\r\n transferCenterId: string | null;\r\n transferCenterNotes: string | null;\r\n transportingAgencyLocationId: string | null;\r\n isDoublePatient: boolean | null;\r\n isWingToWing: boolean | null;\r\n requestId: string | null;\r\n specialtyTeamMembers: Array<{ __typename: 'IdListItem'; id: string }>;\r\n }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchRequesterByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequesterByIdsQuery = {\r\n __typename: 'Query';\r\n requester: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | {\r\n __typename: 'Requester';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n affiliationType: AffiliationType | null;\r\n caller: string | null;\r\n roleId: string | null;\r\n missionRole: MissionRoleType | null;\r\n callbackNumber: string | null;\r\n email: string | null;\r\n facilityId: string | null;\r\n agencyLocationId: string | null;\r\n referringCompanyId: string | null;\r\n referringAgencyLocationId: string | null;\r\n referralReasonId: string | null;\r\n referringRecordNumber: string | null;\r\n specialtyTeamNotes: string | null;\r\n specialtyTeamId: string | null;\r\n careLevelRequested: CareLevel | null;\r\n transferCenterId: string | null;\r\n transferCenterNotes: string | null;\r\n transportingAgencyLocationId: string | null;\r\n isDoublePatient: boolean | null;\r\n isWingToWing: boolean | null;\r\n requestId: string | null;\r\n specialtyTeamMembers: Array<{ __typename: 'IdListItem'; id: string }>;\r\n }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type RequesterReferralReasonFieldsFragment = {\r\n __typename: 'RequesterReferralReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n};\r\n\r\nexport type FetchRequesterReferralReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequesterReferralReasonByIdQuery = {\r\n __typename: 'Query';\r\n requesterReferralReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | {\r\n __typename: 'RequesterReferralReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchRequesterReferralReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequesterReferralReasonByIdsQuery = {\r\n __typename: 'Query';\r\n requesterReferralReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | {\r\n __typename: 'RequesterReferralReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type RequesterRoleFieldsFragment = {\r\n __typename: 'RequesterRole';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n};\r\n\r\nexport type FetchRequesterRoleByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequesterRoleByIdQuery = {\r\n __typename: 'Query';\r\n requesterRole: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | {\r\n __typename: 'RequesterRole';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchRequesterRoleByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequesterRoleByIdsQuery = {\r\n __typename: 'Query';\r\n requesterRole: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | {\r\n __typename: 'RequesterRole';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type RequestLocationFieldsFragment = {\r\n __typename: 'RequestLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n requestId: string;\r\n companyId: string;\r\n locationId: string | null;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n medicalFacilityId: string | null;\r\n roomNumber: string | null;\r\n medicalFacilityUnitId: string | null;\r\n notes: string | null;\r\n groundContact: string | null;\r\n estimatedRendezvousTimeInMinutes: number | null;\r\n estimatedGroundTimeInMinutes: number | null;\r\n fboId: string | null;\r\n physicianId: string | null;\r\n diversionReasonId: string | null;\r\n diversionReasonOtherNotes: string | null;\r\n isAutoAccepted: boolean | null;\r\n dateConfirmed: Date | number | string | null;\r\n confirmedByUserId: string | null;\r\n unConfirmed: boolean | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type FetchRequestLocationByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequestLocationByIdQuery = {\r\n __typename: 'Query';\r\n requestLocation: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | {\r\n __typename: 'RequestLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n requestId: string;\r\n companyId: string;\r\n locationId: string | null;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n medicalFacilityId: string | null;\r\n roomNumber: string | null;\r\n medicalFacilityUnitId: string | null;\r\n notes: string | null;\r\n groundContact: string | null;\r\n estimatedRendezvousTimeInMinutes: number | null;\r\n estimatedGroundTimeInMinutes: number | null;\r\n fboId: string | null;\r\n physicianId: string | null;\r\n diversionReasonId: string | null;\r\n diversionReasonOtherNotes: string | null;\r\n isAutoAccepted: boolean | null;\r\n dateConfirmed: Date | number | string | null;\r\n confirmedByUserId: string | null;\r\n unConfirmed: boolean | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchRequestLocationByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequestLocationByIdsQuery = {\r\n __typename: 'Query';\r\n requestLocation: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | {\r\n __typename: 'RequestLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n requestId: string;\r\n companyId: string;\r\n locationId: string | null;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n medicalFacilityId: string | null;\r\n roomNumber: string | null;\r\n medicalFacilityUnitId: string | null;\r\n notes: string | null;\r\n groundContact: string | null;\r\n estimatedRendezvousTimeInMinutes: number | null;\r\n estimatedGroundTimeInMinutes: number | null;\r\n fboId: string | null;\r\n physicianId: string | null;\r\n diversionReasonId: string | null;\r\n diversionReasonOtherNotes: string | null;\r\n isAutoAccepted: boolean | null;\r\n dateConfirmed: Date | number | string | null;\r\n confirmedByUserId: string | null;\r\n unConfirmed: boolean | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type RequestPatientFieldsFragment = {\r\n __typename: 'RequestPatient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n gender: Gender;\r\n isIsolette: boolean;\r\n requestId: string;\r\n companyId: string;\r\n patientId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n transportReasonId: string | null;\r\n notes: string | null;\r\n chiefComplaintNotes: string | null;\r\n transportReasonCategory: TransportReasonCategory | null;\r\n isIntubated: boolean | null;\r\n numberOfDrips: number | null;\r\n specialtyEquipment: string | null;\r\n rideAlongRequested: YesNoType | null;\r\n isoletteType: IsoletteType | null;\r\n isoletteNotes: string | null;\r\n transferReasonId: string | null;\r\n estimatedAgeInHours: number | null;\r\n gcs: number | null;\r\n bpSystolic: number | null;\r\n bpDiastolic: number | null;\r\n heartRate: number | null;\r\n oxygenSaturation: number | null;\r\n respiratoryRate: number | null;\r\n temperatureInCelsius: number | null;\r\n rideAlongWeightInKg: number | null;\r\n medicalRecordNumber: string | null;\r\n rideAlongName: string | null;\r\n rideAlongDateOfBirth: Date | number | string | null;\r\n};\r\n\r\nexport type FetchRequestPatientByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequestPatientByIdQuery = {\r\n __typename: 'Query';\r\n requestPatient: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | {\r\n __typename: 'RequestPatient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n gender: Gender;\r\n isIsolette: boolean;\r\n requestId: string;\r\n companyId: string;\r\n patientId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n transportReasonId: string | null;\r\n notes: string | null;\r\n chiefComplaintNotes: string | null;\r\n transportReasonCategory: TransportReasonCategory | null;\r\n isIntubated: boolean | null;\r\n numberOfDrips: number | null;\r\n specialtyEquipment: string | null;\r\n rideAlongRequested: YesNoType | null;\r\n isoletteType: IsoletteType | null;\r\n isoletteNotes: string | null;\r\n transferReasonId: string | null;\r\n estimatedAgeInHours: number | null;\r\n gcs: number | null;\r\n bpSystolic: number | null;\r\n bpDiastolic: number | null;\r\n heartRate: number | null;\r\n oxygenSaturation: number | null;\r\n respiratoryRate: number | null;\r\n temperatureInCelsius: number | null;\r\n rideAlongWeightInKg: number | null;\r\n medicalRecordNumber: string | null;\r\n rideAlongName: string | null;\r\n rideAlongDateOfBirth: Date | number | string | null;\r\n }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchRequestPatientByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRequestPatientByIdsQuery = {\r\n __typename: 'Query';\r\n requestPatient: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | {\r\n __typename: 'RequestPatient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n gender: Gender;\r\n isIsolette: boolean;\r\n requestId: string;\r\n companyId: string;\r\n patientId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n transportReasonId: string | null;\r\n notes: string | null;\r\n chiefComplaintNotes: string | null;\r\n transportReasonCategory: TransportReasonCategory | null;\r\n isIntubated: boolean | null;\r\n numberOfDrips: number | null;\r\n specialtyEquipment: string | null;\r\n rideAlongRequested: YesNoType | null;\r\n isoletteType: IsoletteType | null;\r\n isoletteNotes: string | null;\r\n transferReasonId: string | null;\r\n estimatedAgeInHours: number | null;\r\n gcs: number | null;\r\n bpSystolic: number | null;\r\n bpDiastolic: number | null;\r\n heartRate: number | null;\r\n oxygenSaturation: number | null;\r\n respiratoryRate: number | null;\r\n temperatureInCelsius: number | null;\r\n rideAlongWeightInKg: number | null;\r\n medicalRecordNumber: string | null;\r\n rideAlongName: string | null;\r\n rideAlongDateOfBirth: Date | number | string | null;\r\n }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type SystemTimerFieldsFragment = {\r\n __typename: 'SystemTimer';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n description: string;\r\n commandName: string;\r\n runIntervalInSeconds: number;\r\n hasRunCondition: boolean;\r\n isEnqueued: boolean;\r\n lastRunDate: Date | number | string | null;\r\n};\r\n\r\nexport type FetchSystemTimerByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchSystemTimerByIdQuery = {\r\n __typename: 'Query';\r\n systemTimer: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | {\r\n __typename: 'SystemTimer';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n description: string;\r\n commandName: string;\r\n runIntervalInSeconds: number;\r\n hasRunCondition: boolean;\r\n isEnqueued: boolean;\r\n lastRunDate: Date | number | string | null;\r\n }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchSystemTimerByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchSystemTimerByIdsQuery = {\r\n __typename: 'Query';\r\n systemTimer: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | {\r\n __typename: 'SystemTimer';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n description: string;\r\n commandName: string;\r\n runIntervalInSeconds: number;\r\n hasRunCondition: boolean;\r\n isEnqueued: boolean;\r\n lastRunDate: Date | number | string | null;\r\n }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TimelineFieldsFragment = {\r\n __typename: 'Timeline';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n activationRuleId: string | null;\r\n};\r\n\r\nexport type FetchTimelineByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTimelineByIdQuery = {\r\n __typename: 'Query';\r\n timeline: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | {\r\n __typename: 'Timeline';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n activationRuleId: string | null;\r\n }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTimelineByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTimelineByIdsQuery = {\r\n __typename: 'Query';\r\n timeline: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | {\r\n __typename: 'Timeline';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n activationRuleId: string | null;\r\n }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TimelineItemFieldsFragment = {\r\n __typename: 'TimelineItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n timestampTypeId: string;\r\n required: boolean;\r\n sequence: number;\r\n timelineId: string;\r\n};\r\n\r\nexport type FetchTimelineItemByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTimelineItemByIdQuery = {\r\n __typename: 'Query';\r\n timelineItem: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | {\r\n __typename: 'TimelineItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n timestampTypeId: string;\r\n required: boolean;\r\n sequence: number;\r\n timelineId: string;\r\n }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTimelineItemByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTimelineItemByIdsQuery = {\r\n __typename: 'Query';\r\n timelineItem: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | {\r\n __typename: 'TimelineItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n timestampTypeId: string;\r\n required: boolean;\r\n sequence: number;\r\n timelineId: string;\r\n }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TimestampFieldsFragment = {\r\n __typename: 'Timestamp';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n time: Date | number | string;\r\n typeId: string;\r\n cardId: string;\r\n companyId: string;\r\n userId: string | null;\r\n note: string | null;\r\n requestId: string | null;\r\n operationId: string | null;\r\n personsInvolved: string | null;\r\n};\r\n\r\nexport type FetchTimestampByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTimestampByIdQuery = {\r\n __typename: 'Query';\r\n timestamp: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | {\r\n __typename: 'Timestamp';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n time: Date | number | string;\r\n typeId: string;\r\n cardId: string;\r\n companyId: string;\r\n userId: string | null;\r\n note: string | null;\r\n requestId: string | null;\r\n operationId: string | null;\r\n personsInvolved: string | null;\r\n }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTimestampByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTimestampByIdsQuery = {\r\n __typename: 'Query';\r\n timestamp: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | {\r\n __typename: 'Timestamp';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n time: Date | number | string;\r\n typeId: string;\r\n cardId: string;\r\n companyId: string;\r\n userId: string | null;\r\n note: string | null;\r\n requestId: string | null;\r\n operationId: string | null;\r\n personsInvolved: string | null;\r\n }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TimestampTypeFieldsFragment = {\r\n __typename: 'TimestampType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n order: number;\r\n systemTimestampType: SystemTimestampType | null;\r\n description: string | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n};\r\n\r\nexport type FetchTimestampTypeByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTimestampTypeByIdQuery = {\r\n __typename: 'Query';\r\n timestampType: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | {\r\n __typename: 'TimestampType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n order: number;\r\n systemTimestampType: SystemTimestampType | null;\r\n description: string | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTimestampTypeByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTimestampTypeByIdsQuery = {\r\n __typename: 'Query';\r\n timestampType: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | {\r\n __typename: 'TimestampType';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n order: number;\r\n systemTimestampType: SystemTimestampType | null;\r\n description: string | null;\r\n companies: Array<{ __typename: 'IdListItem'; id: string } | null> | null;\r\n }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TrackedMessageFieldsFragment = {\r\n __typename: 'TrackedMessage';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n recipientAddress: string;\r\n body: string;\r\n status: MessageStatus;\r\n recipientName: string | null;\r\n subject: string | null;\r\n fromName: string | null;\r\n fromAddress: string | null;\r\n doNotDivert: boolean | null;\r\n medium: MessageTransport | null;\r\n vendorId: string | null;\r\n vendorMessageId: string | null;\r\n referenceNumber: string | null;\r\n};\r\n\r\nexport type FetchTrackedMessageByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTrackedMessageByIdQuery = {\r\n __typename: 'Query';\r\n trackedMessage: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | {\r\n __typename: 'TrackedMessage';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n recipientAddress: string;\r\n body: string;\r\n status: MessageStatus;\r\n recipientName: string | null;\r\n subject: string | null;\r\n fromName: string | null;\r\n fromAddress: string | null;\r\n doNotDivert: boolean | null;\r\n medium: MessageTransport | null;\r\n vendorId: string | null;\r\n vendorMessageId: string | null;\r\n referenceNumber: string | null;\r\n }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTrackedMessageByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTrackedMessageByIdsQuery = {\r\n __typename: 'Query';\r\n trackedMessage: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | {\r\n __typename: 'TrackedMessage';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n recipientAddress: string;\r\n body: string;\r\n status: MessageStatus;\r\n recipientName: string | null;\r\n subject: string | null;\r\n fromName: string | null;\r\n fromAddress: string | null;\r\n doNotDivert: boolean | null;\r\n medium: MessageTransport | null;\r\n vendorId: string | null;\r\n vendorMessageId: string | null;\r\n referenceNumber: string | null;\r\n }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TransferReasonFieldsFragment = {\r\n __typename: 'TransferReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n};\r\n\r\nexport type FetchTransferReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTransferReasonByIdQuery = {\r\n __typename: 'Query';\r\n transferReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | {\r\n __typename: 'TransferReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTransferReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTransferReasonByIdsQuery = {\r\n __typename: 'Query';\r\n transferReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | {\r\n __typename: 'TransferReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TransportOfferFieldsFragment = {\r\n __typename: 'TransportOffer';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: TransportOfferStatus;\r\n rank: number;\r\n response: TransportOfferResponse;\r\n wasBulkSkip: boolean;\r\n isOnDelay: boolean;\r\n isOneCallAgreement: boolean;\r\n isInternalAgency: boolean;\r\n requestId: string;\r\n companyId: string;\r\n distanceInMiles: number | null;\r\n bearingInDegrees: number | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n estimatedTimeEnRouteInMinutes: number | null;\r\n offerTime: Date | number | string | null;\r\n crewNotified: Date | number | string | null;\r\n transportCheckInitiated: Date | number | string | null;\r\n notificationAcknowledged: Date | number | string | null;\r\n responseReceived: Date | number | string | null;\r\n declineReasonId: string | null;\r\n declineSecondaryReasonId: string | null;\r\n nonReferralReasonId: string | null;\r\n nonReferralReasonNotes: string | null;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n outOfServiceEventId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n agencyLocationId: string | null;\r\n unitDescription: string | null;\r\n isReferral: boolean | null;\r\n vehicleType: VehicleType | null;\r\n patientOriginatesAtUnit: boolean | null;\r\n homeBaseDistanceInMiles: number | null;\r\n baseId: string | null;\r\n preferredRank: number | null;\r\n notes: string | null;\r\n onBaseETAInMinutes: number | null;\r\n specialtyTeamETLOInMinutes: number | null;\r\n specialtyTeamETEInMinutes: number | null;\r\n vehicleCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n};\r\n\r\nexport type FetchTransportOfferByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTransportOfferByIdQuery = {\r\n __typename: 'Query';\r\n transportOffer: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | {\r\n __typename: 'TransportOffer';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: TransportOfferStatus;\r\n rank: number;\r\n response: TransportOfferResponse;\r\n wasBulkSkip: boolean;\r\n isOnDelay: boolean;\r\n isOneCallAgreement: boolean;\r\n isInternalAgency: boolean;\r\n requestId: string;\r\n companyId: string;\r\n distanceInMiles: number | null;\r\n bearingInDegrees: number | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n estimatedTimeEnRouteInMinutes: number | null;\r\n offerTime: Date | number | string | null;\r\n crewNotified: Date | number | string | null;\r\n transportCheckInitiated: Date | number | string | null;\r\n notificationAcknowledged: Date | number | string | null;\r\n responseReceived: Date | number | string | null;\r\n declineReasonId: string | null;\r\n declineSecondaryReasonId: string | null;\r\n nonReferralReasonId: string | null;\r\n nonReferralReasonNotes: string | null;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n outOfServiceEventId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n agencyLocationId: string | null;\r\n unitDescription: string | null;\r\n isReferral: boolean | null;\r\n vehicleType: VehicleType | null;\r\n patientOriginatesAtUnit: boolean | null;\r\n homeBaseDistanceInMiles: number | null;\r\n baseId: string | null;\r\n preferredRank: number | null;\r\n notes: string | null;\r\n onBaseETAInMinutes: number | null;\r\n specialtyTeamETLOInMinutes: number | null;\r\n specialtyTeamETEInMinutes: number | null;\r\n vehicleCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTransportOfferByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTransportOfferByIdsQuery = {\r\n __typename: 'Query';\r\n transportOffer: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | {\r\n __typename: 'TransportOffer';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: TransportOfferStatus;\r\n rank: number;\r\n response: TransportOfferResponse;\r\n wasBulkSkip: boolean;\r\n isOnDelay: boolean;\r\n isOneCallAgreement: boolean;\r\n isInternalAgency: boolean;\r\n requestId: string;\r\n companyId: string;\r\n distanceInMiles: number | null;\r\n bearingInDegrees: number | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n estimatedTimeEnRouteInMinutes: number | null;\r\n offerTime: Date | number | string | null;\r\n crewNotified: Date | number | string | null;\r\n transportCheckInitiated: Date | number | string | null;\r\n notificationAcknowledged: Date | number | string | null;\r\n responseReceived: Date | number | string | null;\r\n declineReasonId: string | null;\r\n declineSecondaryReasonId: string | null;\r\n nonReferralReasonId: string | null;\r\n nonReferralReasonNotes: string | null;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n outOfServiceEventId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n agencyLocationId: string | null;\r\n unitDescription: string | null;\r\n isReferral: boolean | null;\r\n vehicleType: VehicleType | null;\r\n patientOriginatesAtUnit: boolean | null;\r\n homeBaseDistanceInMiles: number | null;\r\n baseId: string | null;\r\n preferredRank: number | null;\r\n notes: string | null;\r\n onBaseETAInMinutes: number | null;\r\n specialtyTeamETLOInMinutes: number | null;\r\n specialtyTeamETEInMinutes: number | null;\r\n vehicleCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TransportOfferOptionFieldsFragment = {\r\n __typename: 'TransportOfferOption';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n includeAbortedUnit: boolean;\r\n type: TransportOfferOptionType;\r\n requestId: string;\r\n companyId: string;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n};\r\n\r\nexport type FetchTransportOfferOptionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTransportOfferOptionByIdQuery = {\r\n __typename: 'Query';\r\n transportOfferOption: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | {\r\n __typename: 'TransportOfferOption';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n includeAbortedUnit: boolean;\r\n type: TransportOfferOptionType;\r\n requestId: string;\r\n companyId: string;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTransportOfferOptionByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTransportOfferOptionByIdsQuery = {\r\n __typename: 'Query';\r\n transportOfferOption: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | {\r\n __typename: 'TransportOfferOption';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n includeAbortedUnit: boolean;\r\n type: TransportOfferOptionType;\r\n requestId: string;\r\n companyId: string;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TransportReasonFieldsFragment = {\r\n __typename: 'TransportReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n operationType: OperationType | null;\r\n};\r\n\r\nexport type FetchTransportReasonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTransportReasonByIdQuery = {\r\n __typename: 'Query';\r\n transportReason: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | {\r\n __typename: 'TransportReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n operationType: OperationType | null;\r\n }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTransportReasonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTransportReasonByIdsQuery = {\r\n __typename: 'Query';\r\n transportReason: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | {\r\n __typename: 'TransportReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n operationType: OperationType | null;\r\n }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TripFieldsFragment = {\r\n __typename: 'Trip';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n operationId: string;\r\n companyId: string;\r\n vehicleId: string | null;\r\n agencyId: string | null;\r\n agencyLocationId: string | null;\r\n calculatedLoadedMiles: number | null;\r\n gpsLoadedMiles: number | null;\r\n};\r\n\r\nexport type FetchTripByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTripByIdQuery = {\r\n __typename: 'Query';\r\n trip: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | {\r\n __typename: 'Trip';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n operationId: string;\r\n companyId: string;\r\n vehicleId: string | null;\r\n agencyId: string | null;\r\n agencyLocationId: string | null;\r\n calculatedLoadedMiles: number | null;\r\n gpsLoadedMiles: number | null;\r\n }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTripByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTripByIdsQuery = {\r\n __typename: 'Query';\r\n trip: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | {\r\n __typename: 'Trip';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n operationId: string;\r\n companyId: string;\r\n vehicleId: string | null;\r\n agencyId: string | null;\r\n agencyLocationId: string | null;\r\n calculatedLoadedMiles: number | null;\r\n gpsLoadedMiles: number | null;\r\n }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TripLegFieldsFragment = {\r\n __typename: 'TripLeg';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: TripLegStatus;\r\n sequence: number;\r\n tripId: string;\r\n companyId: string;\r\n estimatedDistanceInMiles: number | null;\r\n departingOdometerReading: number | null;\r\n departingNote: string | null;\r\n arrivingOdometerReading: number | null;\r\n arrivingNote: string | null;\r\n isEmergent: boolean | null;\r\n officialEteId: string | null;\r\n calculatedEteId: string | null;\r\n endingWaypointId: string | null;\r\n startingWaypointId: string | null;\r\n};\r\n\r\nexport type FetchTripLegByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTripLegByIdQuery = {\r\n __typename: 'Query';\r\n tripLeg: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | {\r\n __typename: 'TripLeg';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: TripLegStatus;\r\n sequence: number;\r\n tripId: string;\r\n companyId: string;\r\n estimatedDistanceInMiles: number | null;\r\n departingOdometerReading: number | null;\r\n departingNote: string | null;\r\n arrivingOdometerReading: number | null;\r\n arrivingNote: string | null;\r\n isEmergent: boolean | null;\r\n officialEteId: string | null;\r\n calculatedEteId: string | null;\r\n endingWaypointId: string | null;\r\n startingWaypointId: string | null;\r\n }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTripLegByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTripLegByIdsQuery = {\r\n __typename: 'Query';\r\n tripLeg: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | {\r\n __typename: 'TripLeg';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: TripLegStatus;\r\n sequence: number;\r\n tripId: string;\r\n companyId: string;\r\n estimatedDistanceInMiles: number | null;\r\n departingOdometerReading: number | null;\r\n departingNote: string | null;\r\n arrivingOdometerReading: number | null;\r\n arrivingNote: string | null;\r\n isEmergent: boolean | null;\r\n officialEteId: string | null;\r\n calculatedEteId: string | null;\r\n endingWaypointId: string | null;\r\n startingWaypointId: string | null;\r\n }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TripPassengerFieldsFragment = {\r\n __typename: 'TripPassenger';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: PassengerType;\r\n tripId: string;\r\n companyId: string;\r\n weightInKg: number | null;\r\n positionName: string | null;\r\n positionType: UnitPositionType | null;\r\n notificationAddress: string | null;\r\n personId: string | null;\r\n crewMemberId: string | null;\r\n};\r\n\r\nexport type FetchTripPassengerByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTripPassengerByIdQuery = {\r\n __typename: 'Query';\r\n tripPassenger: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | {\r\n __typename: 'TripPassenger';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: PassengerType;\r\n tripId: string;\r\n companyId: string;\r\n weightInKg: number | null;\r\n positionName: string | null;\r\n positionType: UnitPositionType | null;\r\n notificationAddress: string | null;\r\n personId: string | null;\r\n crewMemberId: string | null;\r\n }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTripPassengerByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTripPassengerByIdsQuery = {\r\n __typename: 'Query';\r\n tripPassenger: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | {\r\n __typename: 'TripPassenger';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: PassengerType;\r\n tripId: string;\r\n companyId: string;\r\n weightInKg: number | null;\r\n positionName: string | null;\r\n positionType: UnitPositionType | null;\r\n notificationAddress: string | null;\r\n personId: string | null;\r\n crewMemberId: string | null;\r\n }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type UnitActivationRuleFieldsFragment = {\r\n __typename: 'UnitActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n unitId: string;\r\n operationTypes: Array;\r\n missionRoleTypes: Array;\r\n maximumDistanceInMiles: number | null;\r\n};\r\n\r\nexport type FetchUnitActivationRuleByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitActivationRuleByIdQuery = {\r\n __typename: 'Query';\r\n unitActivationRule: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | {\r\n __typename: 'UnitActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n unitId: string;\r\n operationTypes: Array;\r\n missionRoleTypes: Array;\r\n maximumDistanceInMiles: number | null;\r\n }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchUnitActivationRuleByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitActivationRuleByIdsQuery = {\r\n __typename: 'Query';\r\n unitActivationRule: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | {\r\n __typename: 'UnitActivationRule';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n unitId: string;\r\n operationTypes: Array;\r\n missionRoleTypes: Array;\r\n maximumDistanceInMiles: number | null;\r\n }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type UnitEMSystemMappingFieldsFragment = {\r\n __typename: 'UnitEMSystemMapping';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n resourceId: string;\r\n sendGps: boolean;\r\n unitId: string;\r\n companyId: string;\r\n divisionName: string | null;\r\n};\r\n\r\nexport type FetchUnitEMSystemMappingByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitEMSystemMappingByIdQuery = {\r\n __typename: 'Query';\r\n unitEMSystemMapping: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | {\r\n __typename: 'UnitEMSystemMapping';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n resourceId: string;\r\n sendGps: boolean;\r\n unitId: string;\r\n companyId: string;\r\n divisionName: string | null;\r\n }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchUnitEMSystemMappingByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitEMSystemMappingByIdsQuery = {\r\n __typename: 'Query';\r\n unitEMSystemMapping: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | {\r\n __typename: 'UnitEMSystemMapping';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n resourceId: string;\r\n sendGps: boolean;\r\n unitId: string;\r\n companyId: string;\r\n divisionName: string | null;\r\n }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type UnitFieldsFragment = {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n};\r\n\r\nexport type FetchUnitByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitByIdQuery = {\r\n __typename: 'Query';\r\n unit: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchUnitByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitByIdsQuery = {\r\n __typename: 'Query';\r\n unit: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type UnitNoteFieldsFragment = {\r\n __typename: 'UnitNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n unitId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n};\r\n\r\nexport type FetchUnitNoteByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitNoteByIdQuery = {\r\n __typename: 'Query';\r\n unitNote: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | {\r\n __typename: 'UnitNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n unitId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchUnitNoteByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitNoteByIdsQuery = {\r\n __typename: 'Query';\r\n unitNote: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | {\r\n __typename: 'UnitNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n unitId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type UnitPositionFieldsFragment = {\r\n __typename: 'UnitPosition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n unitId: string;\r\n companyId: string;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n};\r\n\r\nexport type FetchUnitPositionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitPositionByIdQuery = {\r\n __typename: 'Query';\r\n unitPosition: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | {\r\n __typename: 'UnitPosition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n unitId: string;\r\n companyId: string;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchUnitPositionByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitPositionByIdsQuery = {\r\n __typename: 'Query';\r\n unitPosition: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | {\r\n __typename: 'UnitPosition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n unitId: string;\r\n companyId: string;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type UnitShiftFieldsFragment = {\r\n __typename: 'UnitShift';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchUnitShiftByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitShiftByIdQuery = {\r\n __typename: 'Query';\r\n unitShift: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | {\r\n __typename: 'UnitShift';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchUnitShiftByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitShiftByIdsQuery = {\r\n __typename: 'Query';\r\n unitShift: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | {\r\n __typename: 'UnitShift';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type UnitStatusHistoryEntryFieldsFragment = {\r\n __typename: 'UnitStatusHistoryEntry';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n startTime: Date | number | string;\r\n endTime: Date | number | string;\r\n status: UnitStatus;\r\n unitId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchUnitStatusHistoryEntryByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitStatusHistoryEntryByIdQuery = {\r\n __typename: 'Query';\r\n unitStatusHistoryEntry: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | {\r\n __typename: 'UnitStatusHistoryEntry';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n startTime: Date | number | string;\r\n endTime: Date | number | string;\r\n status: UnitStatus;\r\n unitId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchUnitStatusHistoryEntryByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitStatusHistoryEntryByIdsQuery = {\r\n __typename: 'Query';\r\n unitStatusHistoryEntry: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | {\r\n __typename: 'UnitStatusHistoryEntry';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n startTime: Date | number | string;\r\n endTime: Date | number | string;\r\n status: UnitStatus;\r\n unitId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type UnitSummaryFieldsFragment = {\r\n __typename: 'UnitSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n lastPilotUpdateName: string | null;\r\n baseTimezoneCd: string | null;\r\n vehicleSummaryId: string | null;\r\n vehicleId: string | null;\r\n communicationCenterId: string | null;\r\n shifts: Array<{\r\n __typename: 'UnitShiftSummary';\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n }>;\r\n outOfServiceEvents: Array<{\r\n __typename: 'OutOfServiceEventSummary';\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonName: string;\r\n reasonId: string;\r\n startTime: Date | number | string | null;\r\n notes: string | null;\r\n }>;\r\n positions: Array<{\r\n __typename: 'UnitPositionSummary';\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n isNonCompliant: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n teamMemberFirstName: string | null;\r\n teamMemberLastName: string | null;\r\n nonComplianceReason: string | null;\r\n }>;\r\n};\r\n\r\nexport type FetchUnitSummaryByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitSummaryByIdQuery = {\r\n __typename: 'Query';\r\n unitSummary: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | {\r\n __typename: 'UnitSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n lastPilotUpdateName: string | null;\r\n baseTimezoneCd: string | null;\r\n vehicleSummaryId: string | null;\r\n vehicleId: string | null;\r\n communicationCenterId: string | null;\r\n shifts: Array<{\r\n __typename: 'UnitShiftSummary';\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n }>;\r\n outOfServiceEvents: Array<{\r\n __typename: 'OutOfServiceEventSummary';\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonName: string;\r\n reasonId: string;\r\n startTime: Date | number | string | null;\r\n notes: string | null;\r\n }>;\r\n positions: Array<{\r\n __typename: 'UnitPositionSummary';\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n isNonCompliant: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n teamMemberFirstName: string | null;\r\n teamMemberLastName: string | null;\r\n nonComplianceReason: string | null;\r\n }>;\r\n }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchUnitSummaryByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchUnitSummaryByIdsQuery = {\r\n __typename: 'Query';\r\n unitSummary: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | {\r\n __typename: 'UnitSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n lastPilotUpdateName: string | null;\r\n baseTimezoneCd: string | null;\r\n vehicleSummaryId: string | null;\r\n vehicleId: string | null;\r\n communicationCenterId: string | null;\r\n shifts: Array<{\r\n __typename: 'UnitShiftSummary';\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n }>;\r\n outOfServiceEvents: Array<{\r\n __typename: 'OutOfServiceEventSummary';\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonName: string;\r\n reasonId: string;\r\n startTime: Date | number | string | null;\r\n notes: string | null;\r\n }>;\r\n positions: Array<{\r\n __typename: 'UnitPositionSummary';\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n isNonCompliant: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n teamMemberFirstName: string | null;\r\n teamMemberLastName: string | null;\r\n nonComplianceReason: string | null;\r\n }>;\r\n }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type VehicleDispositionFieldsFragment = {\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n};\r\n\r\nexport type FetchVehicleDispositionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleDispositionByIdQuery = {\r\n __typename: 'Query';\r\n vehicleDisposition: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | {\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchVehicleDispositionByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleDispositionByIdsQuery = {\r\n __typename: 'Query';\r\n vehicleDisposition: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | {\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type VehiclePositionSummaryFieldsFragment = {\r\n __typename: 'VehiclePositionSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n vehicleId: string;\r\n latitude: number;\r\n longitude: number;\r\n positionSource: PositionReportSource;\r\n positionTime: Date | number | string;\r\n companyId: string;\r\n lastPositionReportId: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n etlo: Date | number | string | null;\r\n lastGpsAutoPositionTime: Date | number | string | null;\r\n};\r\n\r\nexport type FetchVehiclePositionSummaryByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehiclePositionSummaryByIdQuery = {\r\n __typename: 'Query';\r\n vehiclePositionSummary: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | {\r\n __typename: 'VehiclePositionSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n vehicleId: string;\r\n latitude: number;\r\n longitude: number;\r\n positionSource: PositionReportSource;\r\n positionTime: Date | number | string;\r\n companyId: string;\r\n lastPositionReportId: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n etlo: Date | number | string | null;\r\n lastGpsAutoPositionTime: Date | number | string | null;\r\n }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchVehiclePositionSummaryByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehiclePositionSummaryByIdsQuery = {\r\n __typename: 'Query';\r\n vehiclePositionSummary: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | {\r\n __typename: 'VehiclePositionSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n vehicleId: string;\r\n latitude: number;\r\n longitude: number;\r\n positionSource: PositionReportSource;\r\n positionTime: Date | number | string;\r\n companyId: string;\r\n lastPositionReportId: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n etlo: Date | number | string | null;\r\n lastGpsAutoPositionTime: Date | number | string | null;\r\n }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type VehicleSummaryFieldsFragment = {\r\n __typename: 'VehicleSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n unitSummaryId: string;\r\n regionId: string;\r\n status: VehicleStatus;\r\n statusDescription: string;\r\n vehicleDispositionId: string;\r\n unitId: string;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n makeName: string | null;\r\n modelName: string | null;\r\n etlo: Date | number | string | null;\r\n eta: Date | number | string | null;\r\n currentCardNumber: string | null;\r\n currentCardSummaryId: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n currentOrNextLegSequence: number | null;\r\n totalLegCount: number | null;\r\n communicationCenterId: string | null;\r\n currentCardId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n latestPositionReportSummary: {\r\n __typename: 'PositionReportSummary';\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n } | null;\r\n lastKnownCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n};\r\n\r\nexport type FetchVehicleSummaryByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleSummaryByIdQuery = {\r\n __typename: 'Query';\r\n vehicleSummary: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | {\r\n __typename: 'VehicleSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n unitSummaryId: string;\r\n regionId: string;\r\n status: VehicleStatus;\r\n statusDescription: string;\r\n vehicleDispositionId: string;\r\n unitId: string;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n makeName: string | null;\r\n modelName: string | null;\r\n etlo: Date | number | string | null;\r\n eta: Date | number | string | null;\r\n currentCardNumber: string | null;\r\n currentCardSummaryId: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n currentOrNextLegSequence: number | null;\r\n totalLegCount: number | null;\r\n communicationCenterId: string | null;\r\n currentCardId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n latestPositionReportSummary: {\r\n __typename: 'PositionReportSummary';\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n } | null;\r\n lastKnownCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchVehicleSummaryByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleSummaryByIdsQuery = {\r\n __typename: 'Query';\r\n vehicleSummary: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | {\r\n __typename: 'VehicleSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n unitSummaryId: string;\r\n regionId: string;\r\n status: VehicleStatus;\r\n statusDescription: string;\r\n vehicleDispositionId: string;\r\n unitId: string;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n makeName: string | null;\r\n modelName: string | null;\r\n etlo: Date | number | string | null;\r\n eta: Date | number | string | null;\r\n currentCardNumber: string | null;\r\n currentCardSummaryId: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n currentOrNextLegSequence: number | null;\r\n totalLegCount: number | null;\r\n communicationCenterId: string | null;\r\n currentCardId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n latestPositionReportSummary: {\r\n __typename: 'PositionReportSummary';\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n } | null;\r\n lastKnownCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type WaypointFieldsFragment = {\r\n __typename: 'Waypoint';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n arrivalTime: Date | number | string | null;\r\n departureTime: Date | number | string | null;\r\n locationId: string | null;\r\n isPatientPickup: boolean | null;\r\n isPatientDropoff: boolean | null;\r\n arrivingType: WaypointType | null;\r\n estimatedDurationId: string | null;\r\n currentEtaId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type FetchWaypointByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchWaypointByIdQuery = {\r\n __typename: 'Query';\r\n waypoint: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | {\r\n __typename: 'Waypoint';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n arrivalTime: Date | number | string | null;\r\n departureTime: Date | number | string | null;\r\n locationId: string | null;\r\n isPatientPickup: boolean | null;\r\n isPatientDropoff: boolean | null;\r\n arrivingType: WaypointType | null;\r\n estimatedDurationId: string | null;\r\n currentEtaId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchWaypointByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchWaypointByIdsQuery = {\r\n __typename: 'Query';\r\n waypoint: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | {\r\n __typename: 'Waypoint';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n arrivalTime: Date | number | string | null;\r\n departureTime: Date | number | string | null;\r\n locationId: string | null;\r\n isPatientPickup: boolean | null;\r\n isPatientDropoff: boolean | null;\r\n arrivingType: WaypointType | null;\r\n estimatedDurationId: string | null;\r\n currentEtaId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type WebOrderLogFieldsFragment = {\r\n __typename: 'WebOrderLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n requestJson: string;\r\n name: string;\r\n isSuccess: boolean;\r\n errors: string | null;\r\n entityId: string | null;\r\n entityType: EntityType | null;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n changes: Array<{\r\n __typename: 'WebOrderLogEntityChanges';\r\n id: string;\r\n entityType: string;\r\n fieldName: string;\r\n oldValue: string | null;\r\n newValue: string | null;\r\n } | null> | null;\r\n};\r\n\r\nexport type FetchWebOrderLogByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchWebOrderLogByIdQuery = {\r\n __typename: 'Query';\r\n webOrderLog: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | {\r\n __typename: 'WebOrderLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n requestJson: string;\r\n name: string;\r\n isSuccess: boolean;\r\n errors: string | null;\r\n entityId: string | null;\r\n entityType: EntityType | null;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n changes: Array<{\r\n __typename: 'WebOrderLogEntityChanges';\r\n id: string;\r\n entityType: string;\r\n fieldName: string;\r\n oldValue: string | null;\r\n newValue: string | null;\r\n } | null> | null;\r\n }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchWebOrderLogByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchWebOrderLogByIdsQuery = {\r\n __typename: 'Query';\r\n webOrderLog: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | {\r\n __typename: 'WebOrderLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n requestJson: string;\r\n name: string;\r\n isSuccess: boolean;\r\n errors: string | null;\r\n entityId: string | null;\r\n entityType: EntityType | null;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n changes: Array<{\r\n __typename: 'WebOrderLogEntityChanges';\r\n id: string;\r\n entityType: string;\r\n fieldName: string;\r\n oldValue: string | null;\r\n newValue: string | null;\r\n } | null> | null;\r\n }\r\n >;\r\n };\r\n};\r\n\r\nexport type AccessibleItemFieldsFragment = {\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n};\r\n\r\nexport type FetchAccessibleItemByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchAccessibleItemByIdQuery = {\r\n __typename: 'Query';\r\n accessibleItem: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | {\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchAccessibleItemByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchAccessibleItemByIdsQuery = {\r\n __typename: 'Query';\r\n accessibleItem: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | {\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type AgencyFieldsFragment = {\r\n __typename: 'Agency';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: AgencyType;\r\n isCompetitor: boolean;\r\n isInternallyOwned: boolean;\r\n parentCompanyId: string | null;\r\n notes: string | null;\r\n};\r\n\r\nexport type FetchAgencyByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchAgencyByIdQuery = {\r\n __typename: 'Query';\r\n agency: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | {\r\n __typename: 'Agency';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: AgencyType;\r\n isCompetitor: boolean;\r\n isInternallyOwned: boolean;\r\n parentCompanyId: string | null;\r\n notes: string | null;\r\n }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchAgencyByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchAgencyByIdsQuery = {\r\n __typename: 'Query';\r\n agency: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | {\r\n __typename: 'Agency';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: AgencyType;\r\n isCompetitor: boolean;\r\n isInternallyOwned: boolean;\r\n parentCompanyId: string | null;\r\n notes: string | null;\r\n }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type AgencyLocationFieldsFragment = {\r\n __typename: 'AgencyLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n agencyId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n};\r\n\r\nexport type FetchAgencyLocationByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchAgencyLocationByIdQuery = {\r\n __typename: 'Query';\r\n agencyLocation: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | {\r\n __typename: 'AgencyLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n agencyId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchAgencyLocationByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchAgencyLocationByIdsQuery = {\r\n __typename: 'Query';\r\n agencyLocation: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | {\r\n __typename: 'AgencyLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n agencyId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type AirportFieldsFragment = {\r\n __typename: 'Airport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n airportType: string;\r\n airportCodeType: AirportCodeType;\r\n sourceSystemId: number | null;\r\n preferredFboId: string | null;\r\n locationId: string | null;\r\n};\r\n\r\nexport type FetchAirportByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchAirportByIdQuery = {\r\n __typename: 'Query';\r\n airport: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | {\r\n __typename: 'Airport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n airportType: string;\r\n airportCodeType: AirportCodeType;\r\n sourceSystemId: number | null;\r\n preferredFboId: string | null;\r\n locationId: string | null;\r\n }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchAirportByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchAirportByIdsQuery = {\r\n __typename: 'Query';\r\n airport: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | {\r\n __typename: 'Airport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n airportType: string;\r\n airportCodeType: AirportCodeType;\r\n sourceSystemId: number | null;\r\n preferredFboId: string | null;\r\n locationId: string | null;\r\n }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ArchiveLogFieldsFragment = {\r\n __typename: 'ArchiveLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n archiveEntityType: ArchiveEntityType;\r\n archivedUntilDate: Date | number | string;\r\n isError: boolean;\r\n notes: string | null;\r\n};\r\n\r\nexport type FetchArchiveLogByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchArchiveLogByIdQuery = {\r\n __typename: 'Query';\r\n archiveLog: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | {\r\n __typename: 'ArchiveLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n archiveEntityType: ArchiveEntityType;\r\n archivedUntilDate: Date | number | string;\r\n isError: boolean;\r\n notes: string | null;\r\n }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchArchiveLogByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchArchiveLogByIdsQuery = {\r\n __typename: 'Query';\r\n archiveLog: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | {\r\n __typename: 'ArchiveLog';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n archiveEntityType: ArchiveEntityType;\r\n archivedUntilDate: Date | number | string;\r\n isError: boolean;\r\n notes: string | null;\r\n }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type BaseControlZoneFieldsFragment = {\r\n __typename: 'BaseControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n controlZoneId: string;\r\n baseId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchBaseControlZoneByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchBaseControlZoneByIdQuery = {\r\n __typename: 'Query';\r\n baseControlZone: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | {\r\n __typename: 'BaseControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n controlZoneId: string;\r\n baseId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchBaseControlZoneByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchBaseControlZoneByIdsQuery = {\r\n __typename: 'Query';\r\n baseControlZone: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | {\r\n __typename: 'BaseControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n controlZoneId: string;\r\n baseId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type BaseFieldsFragment = {\r\n __typename: 'Base';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n businessModel: BusinessModel;\r\n companyId: string;\r\n plannedOperationsStart: Date | number | string | null;\r\n operationsStarted: Date | number | string | null;\r\n operationsTerminated: Date | number | string | null;\r\n dateOfMaturity: Date | number | string | null;\r\n primaryPhoneNumber: string | null;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n hoursOfOperation: {\r\n __typename: 'HoursOfOperation';\r\n is24Hours: boolean | null;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n };\r\n};\r\n\r\nexport type FetchBaseByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchBaseByIdQuery = {\r\n __typename: 'Query';\r\n base: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | {\r\n __typename: 'Base';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n businessModel: BusinessModel;\r\n companyId: string;\r\n plannedOperationsStart: Date | number | string | null;\r\n operationsStarted: Date | number | string | null;\r\n operationsTerminated: Date | number | string | null;\r\n dateOfMaturity: Date | number | string | null;\r\n primaryPhoneNumber: string | null;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n hoursOfOperation: {\r\n __typename: 'HoursOfOperation';\r\n is24Hours: boolean | null;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n };\r\n }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchBaseByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchBaseByIdsQuery = {\r\n __typename: 'Query';\r\n base: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | {\r\n __typename: 'Base';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n businessModel: BusinessModel;\r\n companyId: string;\r\n plannedOperationsStart: Date | number | string | null;\r\n operationsStarted: Date | number | string | null;\r\n operationsTerminated: Date | number | string | null;\r\n dateOfMaturity: Date | number | string | null;\r\n primaryPhoneNumber: string | null;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n hoursOfOperation: {\r\n __typename: 'HoursOfOperation';\r\n is24Hours: boolean | null;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n };\r\n }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type BaseMedicalControlContactFieldsFragment = {\r\n __typename: 'BaseMedicalControlContact';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n personId: string;\r\n rank: number;\r\n baseId: string;\r\n companyId: string;\r\n specialty: string | null;\r\n};\r\n\r\nexport type FetchBaseMedicalControlContactByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchBaseMedicalControlContactByIdQuery = {\r\n __typename: 'Query';\r\n baseMedicalControlContact: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | {\r\n __typename: 'BaseMedicalControlContact';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n personId: string;\r\n rank: number;\r\n baseId: string;\r\n companyId: string;\r\n specialty: string | null;\r\n }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchBaseMedicalControlContactByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchBaseMedicalControlContactByIdsQuery = {\r\n __typename: 'Query';\r\n baseMedicalControlContact: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | {\r\n __typename: 'BaseMedicalControlContact';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n personId: string;\r\n rank: number;\r\n baseId: string;\r\n companyId: string;\r\n specialty: string | null;\r\n }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type BaseMedicalControlContactStateFieldsFragment = {\r\n __typename: 'BaseMedicalControlContactState';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n companyId: string;\r\n baseMedicalControlContactId: string | null;\r\n};\r\n\r\nexport type FetchBaseMedicalControlContactStateByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchBaseMedicalControlContactStateByIdQuery = {\r\n __typename: 'Query';\r\n baseMedicalControlContactState: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | {\r\n __typename: 'BaseMedicalControlContactState';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n companyId: string;\r\n baseMedicalControlContactId: string | null;\r\n }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchBaseMedicalControlContactStateByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchBaseMedicalControlContactStateByIdsQuery = {\r\n __typename: 'Query';\r\n baseMedicalControlContactState: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | {\r\n __typename: 'BaseMedicalControlContactState';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n companyId: string;\r\n baseMedicalControlContactId: string | null;\r\n }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CapabilityFieldsFragment = {\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n};\r\n\r\nexport type FetchCapabilityByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCapabilityByIdQuery = {\r\n __typename: 'Query';\r\n capability: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | {\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCapabilityByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCapabilityByIdsQuery = {\r\n __typename: 'Query';\r\n capability: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | {\r\n __typename: 'Capability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CommunicationCenterFieldsFragment = {\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n};\r\n\r\nexport type FetchCommunicationCenterByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCommunicationCenterByIdQuery = {\r\n __typename: 'Query';\r\n communicationCenter: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | {\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCommunicationCenterByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCommunicationCenterByIdsQuery = {\r\n __typename: 'Query';\r\n communicationCenter: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | {\r\n __typename: 'CommunicationCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CommunicationCenterTransportOfferOptionFieldsFragment = {\r\n __typename: 'CommunicationCenterTransportOfferOption';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n includeAbortedUnit: boolean;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n communicationCenterId: string | null;\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapabilityIdList'; id: string }>;\r\n};\r\n\r\nexport type FetchCommunicationCenterTransportOfferOptionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCommunicationCenterTransportOfferOptionByIdQuery = {\r\n __typename: 'Query';\r\n communicationCenterTransportOfferOption: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | {\r\n __typename: 'CommunicationCenterTransportOfferOption';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n includeAbortedUnit: boolean;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n communicationCenterId: string | null;\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapabilityIdList'; id: string }>;\r\n }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCommunicationCenterTransportOfferOptionByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCommunicationCenterTransportOfferOptionByIdsQuery = {\r\n __typename: 'Query';\r\n communicationCenterTransportOfferOption: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | {\r\n __typename: 'CommunicationCenterTransportOfferOption';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n includeAbortedUnit: boolean;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n communicationCenterId: string | null;\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapabilityIdList'; id: string }>;\r\n }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CompanyFieldsFragment = {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n};\r\n\r\nexport type FetchCompanyByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCompanyByIdQuery = {\r\n __typename: 'Query';\r\n company: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCompanyByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCompanyByIdsQuery = {\r\n __typename: 'Query';\r\n company: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type CompleteFlightInstanceFieldsFragment = {\r\n __typename: 'CompleteFlightInstance';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n completeFlightInstanceName: string;\r\n url: string;\r\n username: string;\r\n apiKey: string;\r\n isPrimary: boolean;\r\n};\r\n\r\nexport type FetchCompleteFlightInstanceByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCompleteFlightInstanceByIdQuery = {\r\n __typename: 'Query';\r\n completeFlightInstance: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | {\r\n __typename: 'CompleteFlightInstance';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n completeFlightInstanceName: string;\r\n url: string;\r\n username: string;\r\n apiKey: string;\r\n isPrimary: boolean;\r\n }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchCompleteFlightInstanceByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCompleteFlightInstanceByIdsQuery = {\r\n __typename: 'Query';\r\n completeFlightInstance: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | {\r\n __typename: 'CompleteFlightInstance';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n completeFlightInstanceName: string;\r\n url: string;\r\n username: string;\r\n apiKey: string;\r\n isPrimary: boolean;\r\n }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ControlZoneFieldsFragment = {\r\n __typename: 'ControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchControlZoneByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchControlZoneByIdQuery = {\r\n __typename: 'Query';\r\n controlZone: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | {\r\n __typename: 'ControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchControlZoneByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchControlZoneByIdsQuery = {\r\n __typename: 'Query';\r\n controlZone: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | {\r\n __typename: 'ControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type DepartmentFieldsFragment = {\r\n __typename: 'Department';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n code: string;\r\n};\r\n\r\nexport type FetchDepartmentByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchDepartmentByIdQuery = {\r\n __typename: 'Query';\r\n department: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | {\r\n __typename: 'Department';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n code: string;\r\n }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchDepartmentByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchDepartmentByIdsQuery = {\r\n __typename: 'Query';\r\n department: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | {\r\n __typename: 'Department';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n code: string;\r\n }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type EntityCapabilityFieldsFragment = {\r\n __typename: 'EntityCapability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n capabilityId: string;\r\n entityId: string;\r\n entityType: EntityType;\r\n};\r\n\r\nexport type FetchEntityCapabilityByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchEntityCapabilityByIdQuery = {\r\n __typename: 'Query';\r\n entityCapability: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | {\r\n __typename: 'EntityCapability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n capabilityId: string;\r\n entityId: string;\r\n entityType: EntityType;\r\n }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchEntityCapabilityByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchEntityCapabilityByIdsQuery = {\r\n __typename: 'Query';\r\n entityCapability: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | {\r\n __typename: 'EntityCapability';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n capabilityId: string;\r\n entityId: string;\r\n entityType: EntityType;\r\n }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ExternalReferenceFieldsFragment = {\r\n __typename: 'ExternalReference';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n externalKey: string;\r\n externalSystem: ExternalSystem;\r\n entityId: string;\r\n entityType: EntityType;\r\n};\r\n\r\nexport type FetchExternalReferenceByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchExternalReferenceByIdQuery = {\r\n __typename: 'Query';\r\n externalReference: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | {\r\n __typename: 'ExternalReference';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n externalKey: string;\r\n externalSystem: ExternalSystem;\r\n entityId: string;\r\n entityType: EntityType;\r\n }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchExternalReferenceByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchExternalReferenceByIdsQuery = {\r\n __typename: 'Query';\r\n externalReference: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | {\r\n __typename: 'ExternalReference';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n externalKey: string;\r\n externalSystem: ExternalSystem;\r\n entityId: string;\r\n entityType: EntityType;\r\n }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type FboFieldsFragment = {\r\n __typename: 'Fbo';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n airportId: string;\r\n fboType: FboType;\r\n fuelBrand: string | null;\r\n sourceSystemId: number | null;\r\n locationId: string | null;\r\n};\r\n\r\nexport type FetchFboByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchFboByIdQuery = {\r\n __typename: 'Query';\r\n fbo: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | {\r\n __typename: 'Fbo';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n airportId: string;\r\n fboType: FboType;\r\n fuelBrand: string | null;\r\n sourceSystemId: number | null;\r\n locationId: string | null;\r\n }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchFboByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchFboByIdsQuery = {\r\n __typename: 'Query';\r\n fbo: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | {\r\n __typename: 'Fbo';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n airportId: string;\r\n fboType: FboType;\r\n fuelBrand: string | null;\r\n sourceSystemId: number | null;\r\n locationId: string | null;\r\n }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type FuelTankFieldsFragment = {\r\n __typename: 'FuelTank';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n code: string;\r\n name: string;\r\n locationId: string;\r\n companyId: string;\r\n operationsStarted: Date | number | string | null;\r\n operationsEnded: Date | number | string | null;\r\n sourceSystemId: number | null;\r\n baseId: string | null;\r\n locationName: string | null;\r\n};\r\n\r\nexport type FetchFuelTankByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchFuelTankByIdQuery = {\r\n __typename: 'Query';\r\n fuelTank: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | {\r\n __typename: 'FuelTank';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n code: string;\r\n name: string;\r\n locationId: string;\r\n companyId: string;\r\n operationsStarted: Date | number | string | null;\r\n operationsEnded: Date | number | string | null;\r\n sourceSystemId: number | null;\r\n baseId: string | null;\r\n locationName: string | null;\r\n }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchFuelTankByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchFuelTankByIdsQuery = {\r\n __typename: 'Query';\r\n fuelTank: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | {\r\n __typename: 'FuelTank';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n code: string;\r\n name: string;\r\n locationId: string;\r\n companyId: string;\r\n operationsStarted: Date | number | string | null;\r\n operationsEnded: Date | number | string | null;\r\n sourceSystemId: number | null;\r\n baseId: string | null;\r\n locationName: string | null;\r\n }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type LocationFieldsFragment = {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type FetchLocationByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchLocationByIdQuery = {\r\n __typename: 'Query';\r\n location: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchLocationByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchLocationByIdsQuery = {\r\n __typename: 'Query';\r\n location: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | {\r\n __typename: 'Location';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | number | string | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | number | string | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type MedicalFacilityContactFieldsFragment = {\r\n __typename: 'MedicalFacilityContact';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n medicalFacilityId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n};\r\n\r\nexport type FetchMedicalFacilityContactByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMedicalFacilityContactByIdQuery = {\r\n __typename: 'Query';\r\n medicalFacilityContact: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | {\r\n __typename: 'MedicalFacilityContact';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n medicalFacilityId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchMedicalFacilityContactByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMedicalFacilityContactByIdsQuery = {\r\n __typename: 'Query';\r\n medicalFacilityContact: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | {\r\n __typename: 'MedicalFacilityContact';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n medicalFacilityId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type MedicalFacilityFieldsFragment = {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n};\r\n\r\nexport type FetchMedicalFacilityByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMedicalFacilityByIdQuery = {\r\n __typename: 'Query';\r\n medicalFacility: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchMedicalFacilityByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMedicalFacilityByIdsQuery = {\r\n __typename: 'Query';\r\n medicalFacility: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | {\r\n __typename: 'MedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | number | string | null;\r\n locationId: string | null;\r\n }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type MedicalFacilityPhysicianFieldsFragment = {\r\n __typename: 'MedicalFacilityPhysician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n physicianId: string;\r\n medicalFacilityId: string;\r\n};\r\n\r\nexport type FetchMedicalFacilityPhysicianByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMedicalFacilityPhysicianByIdQuery = {\r\n __typename: 'Query';\r\n medicalFacilityPhysician: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | {\r\n __typename: 'MedicalFacilityPhysician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n physicianId: string;\r\n medicalFacilityId: string;\r\n }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchMedicalFacilityPhysicianByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMedicalFacilityPhysicianByIdsQuery = {\r\n __typename: 'Query';\r\n medicalFacilityPhysician: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | {\r\n __typename: 'MedicalFacilityPhysician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n physicianId: string;\r\n medicalFacilityId: string;\r\n }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type MedicalFacilityUnitFieldsFragment = {\r\n __typename: 'MedicalFacilityUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n medicalFacilityId: string;\r\n phoneNumber: string | null;\r\n};\r\n\r\nexport type FetchMedicalFacilityUnitByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMedicalFacilityUnitByIdQuery = {\r\n __typename: 'Query';\r\n medicalFacilityUnit: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | {\r\n __typename: 'MedicalFacilityUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n medicalFacilityId: string;\r\n phoneNumber: string | null;\r\n }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchMedicalFacilityUnitByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMedicalFacilityUnitByIdsQuery = {\r\n __typename: 'Query';\r\n medicalFacilityUnit: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | {\r\n __typename: 'MedicalFacilityUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n medicalFacilityId: string;\r\n phoneNumber: string | null;\r\n }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type MedicalUnitFieldsFragment = {\r\n __typename: 'MedicalUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n};\r\n\r\nexport type FetchMedicalUnitByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMedicalUnitByIdQuery = {\r\n __typename: 'Query';\r\n medicalUnit: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | {\r\n __typename: 'MedicalUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchMedicalUnitByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchMedicalUnitByIdsQuery = {\r\n __typename: 'Query';\r\n medicalUnit: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | {\r\n __typename: 'MedicalUnit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type PersonFieldsFragment = {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n};\r\n\r\nexport type FetchPersonByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPersonByIdQuery = {\r\n __typename: 'Query';\r\n person: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchPersonByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPersonByIdsQuery = {\r\n __typename: 'Query';\r\n person: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type PhysicianFieldsFragment = {\r\n __typename: 'Physician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n};\r\n\r\nexport type FetchPhysicianByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPhysicianByIdQuery = {\r\n __typename: 'Query';\r\n physician: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | {\r\n __typename: 'Physician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchPhysicianByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchPhysicianByIdsQuery = {\r\n __typename: 'Query';\r\n physician: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | {\r\n __typename: 'Physician';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ProgramBaseFieldsFragment = {\r\n __typename: 'ProgramBase';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n baseId: string;\r\n programId: string;\r\n companyId: string;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n};\r\n\r\nexport type FetchProgramBaseByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchProgramBaseByIdQuery = {\r\n __typename: 'Query';\r\n programBase: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | {\r\n __typename: 'ProgramBase';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n baseId: string;\r\n programId: string;\r\n companyId: string;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchProgramBaseByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchProgramBaseByIdsQuery = {\r\n __typename: 'Query';\r\n programBase: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | {\r\n __typename: 'ProgramBase';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n baseId: string;\r\n programId: string;\r\n companyId: string;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type ProgramFieldsFragment = {\r\n __typename: 'Program';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n companyId: string;\r\n adminId: string | null;\r\n};\r\n\r\nexport type FetchProgramByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchProgramByIdQuery = {\r\n __typename: 'Query';\r\n program: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | {\r\n __typename: 'Program';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n companyId: string;\r\n adminId: string | null;\r\n }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchProgramByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchProgramByIdsQuery = {\r\n __typename: 'Query';\r\n program: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | {\r\n __typename: 'Program';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n companyId: string;\r\n adminId: string | null;\r\n }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type RamcoVehicleConfigurationFieldsFragment = {\r\n __typename: 'RamcoVehicleConfiguration';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n maintenanceSystemId: string;\r\n tailNumber: string;\r\n modelNumber: string;\r\n companyCode: string;\r\n};\r\n\r\nexport type FetchRamcoVehicleConfigurationByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRamcoVehicleConfigurationByIdQuery = {\r\n __typename: 'Query';\r\n ramcoVehicleConfiguration: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | {\r\n __typename: 'RamcoVehicleConfiguration';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n maintenanceSystemId: string;\r\n tailNumber: string;\r\n modelNumber: string;\r\n companyCode: string;\r\n }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchRamcoVehicleConfigurationByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRamcoVehicleConfigurationByIdsQuery = {\r\n __typename: 'Query';\r\n ramcoVehicleConfiguration: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | {\r\n __typename: 'RamcoVehicleConfiguration';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n maintenanceSystemId: string;\r\n tailNumber: string;\r\n modelNumber: string;\r\n companyCode: string;\r\n }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type RegionBaseFieldsFragment = {\r\n __typename: 'RegionBase';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchRegionBaseByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRegionBaseByIdQuery = {\r\n __typename: 'Query';\r\n regionBase: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | {\r\n __typename: 'RegionBase';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchRegionBaseByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRegionBaseByIdsQuery = {\r\n __typename: 'Query';\r\n regionBase: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | {\r\n __typename: 'RegionBase';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type RegionFieldsFragment = {\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n};\r\n\r\nexport type FetchRegionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRegionByIdQuery = {\r\n __typename: 'Query';\r\n region: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | {\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchRegionByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRegionByIdsQuery = {\r\n __typename: 'Query';\r\n region: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | {\r\n __typename: 'Region';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n regionGroupId: string;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type RegionGroupFieldsFragment = {\r\n __typename: 'RegionGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n departmentId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchRegionGroupByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRegionGroupByIdQuery = {\r\n __typename: 'Query';\r\n regionGroup: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | {\r\n __typename: 'RegionGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n departmentId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchRegionGroupByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchRegionGroupByIdsQuery = {\r\n __typename: 'Query';\r\n regionGroup: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | {\r\n __typename: 'RegionGroup';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n departmentId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type SpecialtyTeamFieldsFragment = {\r\n __typename: 'SpecialtyTeam';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n affiliationId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchSpecialtyTeamByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchSpecialtyTeamByIdQuery = {\r\n __typename: 'Query';\r\n specialtyTeam: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | {\r\n __typename: 'SpecialtyTeam';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n affiliationId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchSpecialtyTeamByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchSpecialtyTeamByIdsQuery = {\r\n __typename: 'Query';\r\n specialtyTeam: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | {\r\n __typename: 'SpecialtyTeam';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n affiliationId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type SpecialtyTeamMemberFieldsFragment = {\r\n __typename: 'SpecialtyTeamMember';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n specialtyTeamId: string;\r\n teamMemberId: string;\r\n companyId: string;\r\n weightInKg: number | null;\r\n};\r\n\r\nexport type FetchSpecialtyTeamMemberByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchSpecialtyTeamMemberByIdQuery = {\r\n __typename: 'Query';\r\n specialtyTeamMember: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | {\r\n __typename: 'SpecialtyTeamMember';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n specialtyTeamId: string;\r\n teamMemberId: string;\r\n companyId: string;\r\n weightInKg: number | null;\r\n }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchSpecialtyTeamMemberByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchSpecialtyTeamMemberByIdsQuery = {\r\n __typename: 'Query';\r\n specialtyTeamMember: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | {\r\n __typename: 'SpecialtyTeamMember';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n specialtyTeamId: string;\r\n teamMemberId: string;\r\n companyId: string;\r\n weightInKg: number | null;\r\n }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type SupportRequestFieldsFragment = {\r\n __typename: 'SupportRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n supportRequestType: SupportRequestType;\r\n isEmailSent: boolean;\r\n supportRequestStatus: SupportRequestStatus;\r\n personId: string;\r\n companyId: string;\r\n subject: string | null;\r\n content: string | null;\r\n};\r\n\r\nexport type FetchSupportRequestByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchSupportRequestByIdQuery = {\r\n __typename: 'Query';\r\n supportRequest: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | {\r\n __typename: 'SupportRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n supportRequestType: SupportRequestType;\r\n isEmailSent: boolean;\r\n supportRequestStatus: SupportRequestStatus;\r\n personId: string;\r\n companyId: string;\r\n subject: string | null;\r\n content: string | null;\r\n }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchSupportRequestByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchSupportRequestByIdsQuery = {\r\n __typename: 'Query';\r\n supportRequest: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | {\r\n __typename: 'SupportRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n supportRequestType: SupportRequestType;\r\n isEmailSent: boolean;\r\n supportRequestStatus: SupportRequestStatus;\r\n personId: string;\r\n companyId: string;\r\n subject: string | null;\r\n content: string | null;\r\n }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TimezoneFieldsFragment = {\r\n __typename: 'Timezone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n isDst: boolean;\r\n utcOffset: number;\r\n};\r\n\r\nexport type FetchTimezoneByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTimezoneByIdQuery = {\r\n __typename: 'Query';\r\n timezone: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | {\r\n __typename: 'Timezone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n isDst: boolean;\r\n utcOffset: number;\r\n }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTimezoneByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTimezoneByIdsQuery = {\r\n __typename: 'Query';\r\n timezone: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | {\r\n __typename: 'Timezone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n isDst: boolean;\r\n utcOffset: number;\r\n }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TransferCenterFieldsFragment = {\r\n __typename: 'TransferCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n communicationCenterId: string;\r\n companyId: string;\r\n description: string | null;\r\n};\r\n\r\nexport type FetchTransferCenterByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTransferCenterByIdQuery = {\r\n __typename: 'Query';\r\n transferCenter: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | {\r\n __typename: 'TransferCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n communicationCenterId: string;\r\n companyId: string;\r\n description: string | null;\r\n }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTransferCenterByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTransferCenterByIdsQuery = {\r\n __typename: 'Query';\r\n transferCenter: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | {\r\n __typename: 'TransferCenter';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n communicationCenterId: string;\r\n companyId: string;\r\n description: string | null;\r\n }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TrmUserAgencyFieldsFragment = {\r\n __typename: 'TrmUserAgency';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n trmUserId: string;\r\n agencyId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchTrmUserAgencyByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTrmUserAgencyByIdQuery = {\r\n __typename: 'Query';\r\n trmUserAgency: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | {\r\n __typename: 'TrmUserAgency';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n trmUserId: string;\r\n agencyId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTrmUserAgencyByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTrmUserAgencyByIdsQuery = {\r\n __typename: 'Query';\r\n trmUserAgency: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | {\r\n __typename: 'TrmUserAgency';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n trmUserId: string;\r\n agencyId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TrmUserFieldsFragment = {\r\n __typename: 'TrmUser';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n emailAddress: string;\r\n firstName: string;\r\n lastName: string;\r\n phoneNumber: string;\r\n userStatus: TrmUserStatus;\r\n companyId: string;\r\n personId: string | null;\r\n};\r\n\r\nexport type FetchTrmUserByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTrmUserByIdQuery = {\r\n __typename: 'Query';\r\n trmUser: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | {\r\n __typename: 'TrmUser';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n emailAddress: string;\r\n firstName: string;\r\n lastName: string;\r\n phoneNumber: string;\r\n userStatus: TrmUserStatus;\r\n companyId: string;\r\n personId: string | null;\r\n }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTrmUserByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTrmUserByIdsQuery = {\r\n __typename: 'Query';\r\n trmUser: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | {\r\n __typename: 'TrmUser';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n emailAddress: string;\r\n firstName: string;\r\n lastName: string;\r\n phoneNumber: string;\r\n userStatus: TrmUserStatus;\r\n companyId: string;\r\n personId: string | null;\r\n }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TrmUserMedicalFacilityFieldsFragment = {\r\n __typename: 'TrmUserMedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n trmUserId: string;\r\n medicalFacilityId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchTrmUserMedicalFacilityByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTrmUserMedicalFacilityByIdQuery = {\r\n __typename: 'Query';\r\n trmUserMedicalFacility: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | {\r\n __typename: 'TrmUserMedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n trmUserId: string;\r\n medicalFacilityId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTrmUserMedicalFacilityByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTrmUserMedicalFacilityByIdsQuery = {\r\n __typename: 'Query';\r\n trmUserMedicalFacility: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | {\r\n __typename: 'TrmUserMedicalFacility';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n trmUserId: string;\r\n medicalFacilityId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type TrmUserProgramFieldsFragment = {\r\n __typename: 'TrmUserProgram';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n trmUserId: string;\r\n programId: string;\r\n isPreferred: boolean;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchTrmUserProgramByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTrmUserProgramByIdQuery = {\r\n __typename: 'Query';\r\n trmUserProgram: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | {\r\n __typename: 'TrmUserProgram';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n trmUserId: string;\r\n programId: string;\r\n isPreferred: boolean;\r\n companyId: string;\r\n }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchTrmUserProgramByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchTrmUserProgramByIdsQuery = {\r\n __typename: 'Query';\r\n trmUserProgram: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | {\r\n __typename: 'TrmUserProgram';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n trmUserId: string;\r\n programId: string;\r\n isPreferred: boolean;\r\n companyId: string;\r\n }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type VehicleConfigurationClassFieldsFragment = {\r\n __typename: 'VehicleConfigurationClass';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n legacyName: string;\r\n engineCount: number;\r\n maintenanceSystemId: string;\r\n};\r\n\r\nexport type FetchVehicleConfigurationClassByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleConfigurationClassByIdQuery = {\r\n __typename: 'Query';\r\n vehicleConfigurationClass: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | {\r\n __typename: 'VehicleConfigurationClass';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n legacyName: string;\r\n engineCount: number;\r\n maintenanceSystemId: string;\r\n }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchVehicleConfigurationClassByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleConfigurationClassByIdsQuery = {\r\n __typename: 'Query';\r\n vehicleConfigurationClass: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | {\r\n __typename: 'VehicleConfigurationClass';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n legacyName: string;\r\n engineCount: number;\r\n maintenanceSystemId: string;\r\n }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type VehicleControlZoneFieldsFragment = {\r\n __typename: 'VehicleControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n controlZoneId: string | null;\r\n vehicleId: string | null;\r\n};\r\n\r\nexport type FetchVehicleControlZoneByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleControlZoneByIdQuery = {\r\n __typename: 'Query';\r\n vehicleControlZone: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | {\r\n __typename: 'VehicleControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n controlZoneId: string | null;\r\n vehicleId: string | null;\r\n }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchVehicleControlZoneByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleControlZoneByIdsQuery = {\r\n __typename: 'Query';\r\n vehicleControlZone: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | {\r\n __typename: 'VehicleControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n controlZoneId: string | null;\r\n vehicleId: string | null;\r\n }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type VehicleFieldsFragment = {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n};\r\n\r\nexport type FetchVehicleByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleByIdQuery = {\r\n __typename: 'Query';\r\n vehicle: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchVehicleByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleByIdsQuery = {\r\n __typename: 'Query';\r\n vehicle: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type VehicleMaintenanceFieldsFragment = {\r\n __typename: 'VehicleMaintenance';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n notes: string | null;\r\n isReleasedFromOCF: boolean | null;\r\n vehicleId: string | null;\r\n deferralDueDates: Array<{\r\n __typename: 'DeferralDueDate';\r\n id: string;\r\n dueDate: Date | number | string;\r\n triggerValue: number | null;\r\n notes: string | null;\r\n }>;\r\n nextDues: Array<{\r\n __typename: 'NextDue';\r\n id: string;\r\n typeId: string;\r\n cycleType: NextDueCycleType;\r\n value: string;\r\n triggerValue: number;\r\n notes: string | null;\r\n inTolerance: boolean | null;\r\n }>;\r\n maintenanceParams: {\r\n __typename: 'MaintenanceParameters';\r\n endingHobbs: number | null;\r\n airframeTime: number | null;\r\n totalLandings: number | null;\r\n engine1: { __typename: 'EngineParameters'; time: number | null; starts: number | null } | null;\r\n engine2: { __typename: 'EngineParameters'; time: number | null; starts: number | null } | null;\r\n } | null;\r\n};\r\n\r\nexport type FetchVehicleMaintenanceByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleMaintenanceByIdQuery = {\r\n __typename: 'Query';\r\n vehicleMaintenance: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | {\r\n __typename: 'VehicleMaintenance';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n notes: string | null;\r\n isReleasedFromOCF: boolean | null;\r\n vehicleId: string | null;\r\n deferralDueDates: Array<{\r\n __typename: 'DeferralDueDate';\r\n id: string;\r\n dueDate: Date | number | string;\r\n triggerValue: number | null;\r\n notes: string | null;\r\n }>;\r\n nextDues: Array<{\r\n __typename: 'NextDue';\r\n id: string;\r\n typeId: string;\r\n cycleType: NextDueCycleType;\r\n value: string;\r\n triggerValue: number;\r\n notes: string | null;\r\n inTolerance: boolean | null;\r\n }>;\r\n maintenanceParams: {\r\n __typename: 'MaintenanceParameters';\r\n endingHobbs: number | null;\r\n airframeTime: number | null;\r\n totalLandings: number | null;\r\n engine1: {\r\n __typename: 'EngineParameters';\r\n time: number | null;\r\n starts: number | null;\r\n } | null;\r\n engine2: {\r\n __typename: 'EngineParameters';\r\n time: number | null;\r\n starts: number | null;\r\n } | null;\r\n } | null;\r\n }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchVehicleMaintenanceByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleMaintenanceByIdsQuery = {\r\n __typename: 'Query';\r\n vehicleMaintenance: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | {\r\n __typename: 'VehicleMaintenance';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n notes: string | null;\r\n isReleasedFromOCF: boolean | null;\r\n vehicleId: string | null;\r\n deferralDueDates: Array<{\r\n __typename: 'DeferralDueDate';\r\n id: string;\r\n dueDate: Date | number | string;\r\n triggerValue: number | null;\r\n notes: string | null;\r\n }>;\r\n nextDues: Array<{\r\n __typename: 'NextDue';\r\n id: string;\r\n typeId: string;\r\n cycleType: NextDueCycleType;\r\n value: string;\r\n triggerValue: number;\r\n notes: string | null;\r\n inTolerance: boolean | null;\r\n }>;\r\n maintenanceParams: {\r\n __typename: 'MaintenanceParameters';\r\n endingHobbs: number | null;\r\n airframeTime: number | null;\r\n totalLandings: number | null;\r\n engine1: {\r\n __typename: 'EngineParameters';\r\n time: number | null;\r\n starts: number | null;\r\n } | null;\r\n engine2: {\r\n __typename: 'EngineParameters';\r\n time: number | null;\r\n starts: number | null;\r\n } | null;\r\n } | null;\r\n }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type VehicleMakeFieldsFragment = {\r\n __typename: 'VehicleMake';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n};\r\n\r\nexport type FetchVehicleMakeByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleMakeByIdQuery = {\r\n __typename: 'Query';\r\n vehicleMake: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | {\r\n __typename: 'VehicleMake';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchVehicleMakeByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleMakeByIdsQuery = {\r\n __typename: 'Query';\r\n vehicleMake: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | {\r\n __typename: 'VehicleMake';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type VehicleModelFieldsFragment = {\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n};\r\n\r\nexport type FetchVehicleModelByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleModelByIdQuery = {\r\n __typename: 'Query';\r\n vehicleModel: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | {\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchVehicleModelByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleModelByIdsQuery = {\r\n __typename: 'Query';\r\n vehicleModel: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | {\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | { __typename: 'VehicleStateInspection' }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type VehicleStateInspectionFieldsFragment = {\r\n __typename: 'VehicleStateInspection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: Date | number | string;\r\n vehicleId: string;\r\n companyId: string;\r\n};\r\n\r\nexport type FetchVehicleStateInspectionByIdQueryVariables = Exact<{\r\n id: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleStateInspectionByIdQuery = {\r\n __typename: 'Query';\r\n vehicleStateInspection: {\r\n __typename: 'EntityQueries';\r\n byId:\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | {\r\n __typename: 'VehicleStateInspection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: Date | number | string;\r\n vehicleId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n | null;\r\n };\r\n};\r\n\r\nexport type FetchVehicleStateInspectionByIdsQueryVariables = Exact<{\r\n ids: Array | Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchVehicleStateInspectionByIdsQuery = {\r\n __typename: 'Query';\r\n vehicleStateInspection: {\r\n __typename: 'EntityQueries';\r\n byIds: Array<\r\n | { __typename: 'AccessibleItem' }\r\n | { __typename: 'ActivationRule' }\r\n | { __typename: 'ActiveAlert' }\r\n | { __typename: 'ActiveCardUnitOffering' }\r\n | { __typename: 'ActiveTimeline' }\r\n | { __typename: 'Agency' }\r\n | { __typename: 'AgencyLocation' }\r\n | { __typename: 'Airport' }\r\n | { __typename: 'Alert' }\r\n | { __typename: 'ApplicationNotification' }\r\n | { __typename: 'ArchiveLog' }\r\n | { __typename: 'AssignmentDelayedReason' }\r\n | { __typename: 'Base' }\r\n | { __typename: 'BaseControlZone' }\r\n | { __typename: 'BaseMedicalControlContact' }\r\n | { __typename: 'BaseMedicalControlContactState' }\r\n | { __typename: 'CancellationCategory' }\r\n | { __typename: 'CancellationReason' }\r\n | { __typename: 'CancellationSecondaryReason' }\r\n | { __typename: 'Capability' }\r\n | { __typename: 'Card' }\r\n | { __typename: 'CardLink' }\r\n | { __typename: 'CardNote' }\r\n | { __typename: 'CardNoteArchive' }\r\n | { __typename: 'CardReOpenReason' }\r\n | { __typename: 'CardSummary' }\r\n | { __typename: 'CommunicationCenter' }\r\n | { __typename: 'CommunicationCenterTransportOfferOption' }\r\n | { __typename: 'Company' }\r\n | { __typename: 'CompleteFlightInstance' }\r\n | { __typename: 'ConfigurationSetting' }\r\n | { __typename: 'ControlZone' }\r\n | { __typename: 'DeclineCategory' }\r\n | { __typename: 'DeclineReason' }\r\n | { __typename: 'DeclineSecondaryReason' }\r\n | { __typename: 'Department' }\r\n | { __typename: 'DiversionReason' }\r\n | { __typename: 'EntityCapability' }\r\n | { __typename: 'EscortRequest' }\r\n | { __typename: 'EstimatedDuration' }\r\n | { __typename: 'Eta' }\r\n | { __typename: 'ExternalAction' }\r\n | { __typename: 'ExternalActionType' }\r\n | { __typename: 'ExternalReference' }\r\n | { __typename: 'ExternalSystemUnit' }\r\n | { __typename: 'FacilityNonAcceptanceReason' }\r\n | { __typename: 'Fbo' }\r\n | { __typename: 'FirewallRule' }\r\n | { __typename: 'FlightFollowingReport' }\r\n | { __typename: 'FuelTank' }\r\n | { __typename: 'LandingZoneOutOfServiceReason' }\r\n | { __typename: 'Location' }\r\n | { __typename: 'LocationHazard' }\r\n | { __typename: 'LocationHazardAttachment' }\r\n | { __typename: 'ManifestEntry' }\r\n | { __typename: 'MedicalControlContactLogEntry' }\r\n | { __typename: 'MedicalFacility' }\r\n | { __typename: 'MedicalFacilityContact' }\r\n | { __typename: 'MedicalFacilityPhysician' }\r\n | { __typename: 'MedicalFacilityUnit' }\r\n | { __typename: 'MedicalUnit' }\r\n | { __typename: 'MessageStatusUpdate' }\r\n | { __typename: 'NextDueType' }\r\n | { __typename: 'NonReferralReason' }\r\n | { __typename: 'Notification' }\r\n | { __typename: 'NotificationGroup' }\r\n | { __typename: 'NotificationGroupMember' }\r\n | { __typename: 'NotificationRecipient' }\r\n | { __typename: 'NotificationSubscription' }\r\n | { __typename: 'NotificationTemplate' }\r\n | { __typename: 'OemActivity' }\r\n | { __typename: 'OemAsset' }\r\n | { __typename: 'OemPlan' }\r\n | { __typename: 'OemPlanChangeRequest' }\r\n | { __typename: 'OfferAlgorithm' }\r\n | { __typename: 'Operation' }\r\n | { __typename: 'OutOfServiceEvent' }\r\n | { __typename: 'OutOfServiceEventNote' }\r\n | { __typename: 'OutOfServiceReason' }\r\n | { __typename: 'OutOfServiceSecondaryReason' }\r\n | { __typename: 'PassdownLog' }\r\n | { __typename: 'PassdownLogAcknowledgement' }\r\n | { __typename: 'Patient' }\r\n | { __typename: 'Person' }\r\n | { __typename: 'Physician' }\r\n | { __typename: 'PositionReport' }\r\n | { __typename: 'PositionReportAlert' }\r\n | { __typename: 'PositionReportArchive' }\r\n | { __typename: 'Program' }\r\n | { __typename: 'ProgramBase' }\r\n | { __typename: 'Question' }\r\n | { __typename: 'QuestionChoice' }\r\n | { __typename: 'Questionnaire' }\r\n | { __typename: 'QuestionnaireQuestionResponse' }\r\n | { __typename: 'QuestionnaireQuestionResponseNote' }\r\n | { __typename: 'QuestionnaireResponse' }\r\n | { __typename: 'QuestionnaireSection' }\r\n | { __typename: 'QuestionnaireSectionQuestion' }\r\n | { __typename: 'RamcoVehicleConfiguration' }\r\n | { __typename: 'ReceivingFacilityRequest' }\r\n | { __typename: 'Region' }\r\n | { __typename: 'RegionBase' }\r\n | { __typename: 'RegionGroup' }\r\n | { __typename: 'RendezvousRequest' }\r\n | { __typename: 'Request' }\r\n | { __typename: 'RequestLocation' }\r\n | { __typename: 'RequestPatient' }\r\n | { __typename: 'Requester' }\r\n | { __typename: 'RequesterReferralReason' }\r\n | { __typename: 'RequesterRole' }\r\n | { __typename: 'SpecialtyTeam' }\r\n | { __typename: 'SpecialtyTeamMember' }\r\n | { __typename: 'SupportRequest' }\r\n | { __typename: 'SystemTimer' }\r\n | { __typename: 'Timeline' }\r\n | { __typename: 'TimelineItem' }\r\n | { __typename: 'Timestamp' }\r\n | { __typename: 'TimestampType' }\r\n | { __typename: 'Timezone' }\r\n | { __typename: 'TrackedMessage' }\r\n | { __typename: 'TransferCenter' }\r\n | { __typename: 'TransferReason' }\r\n | { __typename: 'TransportOffer' }\r\n | { __typename: 'TransportOfferOption' }\r\n | { __typename: 'TransportReason' }\r\n | { __typename: 'Trip' }\r\n | { __typename: 'TripLeg' }\r\n | { __typename: 'TripPassenger' }\r\n | { __typename: 'TrmUser' }\r\n | { __typename: 'TrmUserAgency' }\r\n | { __typename: 'TrmUserMedicalFacility' }\r\n | { __typename: 'TrmUserProgram' }\r\n | { __typename: 'Unit' }\r\n | { __typename: 'UnitActivationRule' }\r\n | { __typename: 'UnitEMSystemMapping' }\r\n | { __typename: 'UnitNote' }\r\n | { __typename: 'UnitPosition' }\r\n | { __typename: 'UnitShift' }\r\n | { __typename: 'UnitStatusHistoryEntry' }\r\n | { __typename: 'UnitSummary' }\r\n | { __typename: 'Vehicle' }\r\n | { __typename: 'VehicleConfigurationClass' }\r\n | { __typename: 'VehicleControlZone' }\r\n | { __typename: 'VehicleDisposition' }\r\n | { __typename: 'VehicleMaintenance' }\r\n | { __typename: 'VehicleMake' }\r\n | { __typename: 'VehicleModel' }\r\n | { __typename: 'VehiclePositionSummary' }\r\n | {\r\n __typename: 'VehicleStateInspection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: Date | number | string;\r\n vehicleId: string;\r\n companyId: string;\r\n }\r\n | { __typename: 'VehicleSummary' }\r\n | { __typename: 'Waypoint' }\r\n | { __typename: 'WebOrderLog' }\r\n >;\r\n };\r\n};\r\n\r\nexport type InsightsCardActivityQueryVariables = Exact<{\r\n personId: Scalars['ID'];\r\n}>;\r\n\r\nexport type InsightsCardActivityQuery = {\r\n __typename: 'Query';\r\n people: {\r\n __typename: 'PersonQueries';\r\n byId: {\r\n __typename: 'Person';\r\n accessibleItems: Array<{\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type GetAllNotificationsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type GetAllNotificationsQuery = {\r\n __typename: 'Query';\r\n notifications: {\r\n __typename: 'NotificationQueries';\r\n all: {\r\n __typename: 'NotificationCollection';\r\n items: Array<{\r\n __typename: 'Notification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: NotificationStatus;\r\n body: string;\r\n companyId: string;\r\n cardId: string | null;\r\n subject: string | null;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n }>;\r\n meta: { __typename: 'NotificationCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type GetRamcoVehicleConfigurationByTailNumberQueryVariables = Exact<{\r\n tailNumber: Scalars['String'];\r\n}>;\r\n\r\nexport type GetRamcoVehicleConfigurationByTailNumberQuery = {\r\n __typename: 'Query';\r\n ramcoVehicleConfigurations: {\r\n __typename: 'RamcoVehicleConfigurationQueries';\r\n byTailNumber: {\r\n __typename: 'RamcoVehicleConfiguration';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n maintenanceSystemId: string;\r\n tailNumber: string;\r\n modelNumber: string;\r\n companyCode: string;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type GetRamcoVehicleConfigurationByVehicleIdQueryVariables = Exact<{\r\n vehicleId: Scalars['ID'];\r\n}>;\r\n\r\nexport type GetRamcoVehicleConfigurationByVehicleIdQuery = {\r\n __typename: 'Query';\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n byId: {\r\n __typename: 'Vehicle';\r\n ramco: {\r\n __typename: 'RamcoVehicleConfiguration';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n maintenanceSystemId: string;\r\n tailNumber: string;\r\n modelNumber: string;\r\n companyCode: string;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type GetUnitNotesByUnitQueryVariables = Exact<{\r\n unitId: Scalars['ID'];\r\n}>;\r\n\r\nexport type GetUnitNotesByUnitQuery = {\r\n __typename: 'Query';\r\n units: {\r\n __typename: 'UnitQueries';\r\n byId: {\r\n __typename: 'Unit';\r\n notes: Array<{\r\n __typename: 'UnitNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n content: string;\r\n noteTime: Date | number | string;\r\n unitId: string;\r\n companyId: string;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n author: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type UserContextResolverQueryVariables = Exact<{\r\n baseFilter: InputMaybe;\r\n programFilter: InputMaybe;\r\n}>;\r\n\r\nexport type UserContextResolverQuery = {\r\n __typename: 'Query';\r\n bases: {\r\n __typename: 'BaseQueries';\r\n all: {\r\n __typename: 'BaseCollection';\r\n items: Array<{\r\n __typename: 'Base';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n businessModel: BusinessModel;\r\n companyId: string;\r\n plannedOperationsStart: Date | number | string | null;\r\n operationsStarted: Date | number | string | null;\r\n operationsTerminated: Date | number | string | null;\r\n dateOfMaturity: Date | number | string | null;\r\n primaryPhoneNumber: string | null;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n hoursOfOperation: {\r\n __typename: 'HoursOfOperation';\r\n is24Hours: boolean | null;\r\n startTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n };\r\n }>;\r\n };\r\n };\r\n programs: {\r\n __typename: 'ProgramQueries';\r\n all: {\r\n __typename: 'ProgramCollection';\r\n items: Array<{\r\n __typename: 'Program';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n companyId: string;\r\n adminId: string | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type GetUserByEmailQueryVariables = Exact<{\r\n email: Scalars['String'];\r\n}>;\r\n\r\nexport type GetUserByEmailQuery = {\r\n __typename: 'Query';\r\n people: {\r\n __typename: 'PersonQueries';\r\n byEmail: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n company: {\r\n __typename: 'Company';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Array | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n };\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type GetVehicleConfigurationClassesQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type GetVehicleConfigurationClassesQuery = {\r\n __typename: 'Query';\r\n vehicleConfigurationClasses: {\r\n __typename: 'VehicleConfigurationClassQueries';\r\n all: {\r\n __typename: 'VehicleConfigurationClassCollection';\r\n items: Array<{\r\n __typename: 'VehicleConfigurationClass';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n legacyName: string;\r\n engineCount: number;\r\n maintenanceSystemId: string;\r\n }>;\r\n meta: { __typename: 'VehicleConfigurationClassCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type GetVehicleModelsQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n first: InputMaybe;\r\n skip: InputMaybe;\r\n}>;\r\n\r\nexport type GetVehicleModelsQuery = {\r\n __typename: 'Query';\r\n vehicleModels: {\r\n __typename: 'VehicleModelQueries';\r\n all: {\r\n __typename: 'VehicleModelCollection';\r\n items: Array<{\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n }>;\r\n meta: { __typename: 'VehicleModelCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type FetchCardByCardNumberQueryVariables = Exact<{\r\n cardNumber: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardByCardNumberQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n byCardNumber: {\r\n __typename: 'Card';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n companyId: string;\r\n dateCardClosed: Date | number | string | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: Date | number | string | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type FetchCardEntitiesQueryVariables = Exact<{\r\n cardNumber: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardEntitiesQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n byCardNumber: {\r\n __typename: 'Card';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n companyId: string;\r\n dateCardClosed: Date | number | string | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: Date | number | string | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n activeAlerts: Array<{\r\n __typename: 'ActiveAlert';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n urgency: AlertUrgency;\r\n content: string;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n matchType: RuleMatchType;\r\n visibilityType: VisibilityType;\r\n isGpsAlert: boolean;\r\n isActive: boolean;\r\n companyId: string;\r\n target: AlertTarget | null;\r\n targetId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n title: string | null;\r\n definitionId: string | null;\r\n dateAcknowledged: Date | number | string | null;\r\n acknowledgedById: string | null;\r\n parentEntityType: EntityType | null;\r\n parentEntityId: string | null;\r\n activationTime: Date | number | string | null;\r\n escalationDurationInSeconds: number | null;\r\n snoozeMaxInSeconds: number | null;\r\n authorId: string | null;\r\n regionId: string | null;\r\n communicationCenterId: string | null;\r\n lookupHash: string | null;\r\n referenceEntityType: EntityType | null;\r\n referenceEntityId: string | null;\r\n }>;\r\n request: {\r\n __typename: 'Request';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: RequestStatus;\r\n requestedOperationType: OperationType;\r\n isStandbyRequest: boolean;\r\n standbyActivationRequested: boolean;\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n companyId: string;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n requestedVehicleType: VehicleType | null;\r\n primaryUnitServiceAreaId: string | null;\r\n commitUnitToStandby: boolean | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n assignmentDelayedReasonId: string | null;\r\n regionId: string | null;\r\n includeCompetitors: boolean | null;\r\n transportOfferAlgorithmId: string | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n webOrderCallType: WebOrderCallType | null;\r\n etloInMinutes: number | null;\r\n atloInMinutes: number | null;\r\n transportOfferOptions: Array<{\r\n __typename: 'TransportOfferOption';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n includeAbortedUnit: boolean;\r\n type: TransportOfferOptionType;\r\n requestId: string;\r\n companyId: string;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n }>;\r\n requester: {\r\n __typename: 'Requester';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n affiliationType: AffiliationType | null;\r\n caller: string | null;\r\n roleId: string | null;\r\n missionRole: MissionRoleType | null;\r\n callbackNumber: string | null;\r\n email: string | null;\r\n facilityId: string | null;\r\n agencyLocationId: string | null;\r\n referringCompanyId: string | null;\r\n referringAgencyLocationId: string | null;\r\n referralReasonId: string | null;\r\n referringRecordNumber: string | null;\r\n specialtyTeamNotes: string | null;\r\n specialtyTeamId: string | null;\r\n careLevelRequested: CareLevel | null;\r\n transferCenterId: string | null;\r\n transferCenterNotes: string | null;\r\n transportingAgencyLocationId: string | null;\r\n isDoublePatient: boolean | null;\r\n isWingToWing: boolean | null;\r\n requestId: string | null;\r\n specialtyTeamMembers: Array<{ __typename: 'IdListItem'; id: string }>;\r\n } | null;\r\n locations: Array<{\r\n __typename: 'RequestLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n requestId: string;\r\n companyId: string;\r\n locationId: string | null;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n medicalFacilityId: string | null;\r\n roomNumber: string | null;\r\n medicalFacilityUnitId: string | null;\r\n notes: string | null;\r\n groundContact: string | null;\r\n estimatedRendezvousTimeInMinutes: number | null;\r\n estimatedGroundTimeInMinutes: number | null;\r\n fboId: string | null;\r\n physicianId: string | null;\r\n diversionReasonId: string | null;\r\n diversionReasonOtherNotes: string | null;\r\n isAutoAccepted: boolean | null;\r\n dateConfirmed: Date | number | string | null;\r\n confirmedByUserId: string | null;\r\n unConfirmed: boolean | null;\r\n rendezvousRequests: Array<{\r\n __typename: 'RendezvousRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: SupplementalLegType;\r\n utilizationStatus: AmrUtilizationStatus;\r\n requestLocationId: string;\r\n companyId: string;\r\n agencyLocationId: string | null;\r\n agencyEta: Date | number | string | null;\r\n rendezvousLocationDescription: string | null;\r\n contactInformation: string | null;\r\n confirmedAt: Date | number | string | null;\r\n departedLzAt: Date | number | string | null;\r\n arrivedDestAt: Date | number | string | null;\r\n departedDestAt: Date | number | string | null;\r\n arrivedLzAt: Date | number | string | null;\r\n cancelledAt: Date | number | string | null;\r\n notes: string | null;\r\n transportUnitNumber: string | null;\r\n agencyLocation: {\r\n __typename: 'AgencyLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n agencyId: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n } | null;\r\n cardLinks: Array<{\r\n __typename: 'CardLink';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: CardLinkType;\r\n fromCardId: string;\r\n toCardId: string;\r\n toCardNumber: string;\r\n companyId: string;\r\n rendezvousRequestId: string | null;\r\n } | null> | null;\r\n }>;\r\n diversionReason: {\r\n __typename: 'DiversionReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n } | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n }>;\r\n patients: Array<{\r\n __typename: 'RequestPatient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n gender: Gender;\r\n isIsolette: boolean;\r\n requestId: string;\r\n companyId: string;\r\n patientId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n transportReasonId: string | null;\r\n notes: string | null;\r\n chiefComplaintNotes: string | null;\r\n transportReasonCategory: TransportReasonCategory | null;\r\n isIntubated: boolean | null;\r\n numberOfDrips: number | null;\r\n specialtyEquipment: string | null;\r\n rideAlongRequested: YesNoType | null;\r\n isoletteType: IsoletteType | null;\r\n isoletteNotes: string | null;\r\n transferReasonId: string | null;\r\n estimatedAgeInHours: number | null;\r\n gcs: number | null;\r\n bpSystolic: number | null;\r\n bpDiastolic: number | null;\r\n heartRate: number | null;\r\n oxygenSaturation: number | null;\r\n respiratoryRate: number | null;\r\n temperatureInCelsius: number | null;\r\n rideAlongWeightInKg: number | null;\r\n medicalRecordNumber: string | null;\r\n rideAlongName: string | null;\r\n rideAlongDateOfBirth: Date | number | string | null;\r\n transferReason: {\r\n __typename: 'TransferReason';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n } | null;\r\n }>;\r\n receivingFacilityRequests: Array<{\r\n __typename: 'ReceivingFacilityRequest';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: ReceivingFacilityRequestStatus;\r\n cardId: string;\r\n requestId: string;\r\n medicalFacilityId: string;\r\n requestLocationId: string;\r\n companyId: string;\r\n nonAcceptanceType: NonAcceptanceType | null;\r\n nonAcceptanceReasonId: string | null;\r\n referredToFacilityId: string | null;\r\n }>;\r\n safetyQuestions: {\r\n __typename: 'SafetyQuestions';\r\n otherServiceDeclined: boolean | null;\r\n otherServiceDescription: string | null;\r\n otherServicesAreRespondingToTransferring: boolean | null;\r\n otherServiceResponseDescription: string | null;\r\n };\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n } | null;\r\n operation: {\r\n __typename: 'Operation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n vehicleId: string;\r\n dateOperationStarted: Date | number | string;\r\n riskAnalysisAcknowledged: boolean;\r\n companyId: string;\r\n unitId: string | null;\r\n dateOperationEnded: Date | number | string | null;\r\n unitActivationTime: Date | number | string | null;\r\n riskAnalysisNumber: string | null;\r\n standbyActivationType: StandbyActivationType | null;\r\n caller: string | null;\r\n callbackNumber: string | null;\r\n initialOperationType: OperationType | null;\r\n unit: {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n positions: Array<{\r\n __typename: 'UnitPosition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n unitId: string;\r\n companyId: string;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n teamMember: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n } | null;\r\n }>;\r\n shifts: Array<{\r\n __typename: 'UnitShift';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n companyId: string;\r\n }>;\r\n vehicle: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n vehicleDispositions: Array<{\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n }>;\r\n model: {\r\n __typename: 'VehicleModel';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n } | null;\r\n vehicleStateInspections: Array<{\r\n __typename: 'VehicleStateInspection';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: Date | number | string;\r\n vehicleId: string;\r\n companyId: string;\r\n }>;\r\n } | null;\r\n } | null;\r\n trips: Array<{\r\n __typename: 'Trip';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n operationId: string;\r\n companyId: string;\r\n vehicleId: string | null;\r\n agencyId: string | null;\r\n agencyLocationId: string | null;\r\n calculatedLoadedMiles: number | null;\r\n gpsLoadedMiles: number | null;\r\n estimatedDurations: Array<{\r\n __typename: 'EstimatedDuration';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n asOfTime: Date | number | string;\r\n durationInMinutes: number;\r\n isOfficial: boolean;\r\n estimateSource: EstimatedDurationSource;\r\n durationType: EstimatedDurationType;\r\n ownerId: string;\r\n tripId: string;\r\n companyId: string;\r\n positionReportId: string | null;\r\n }>;\r\n vehicle: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n vehicleDispositions: Array<{\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n }>;\r\n } | null;\r\n agency: {\r\n __typename: 'Agency';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: AgencyType;\r\n isCompetitor: boolean;\r\n isInternallyOwned: boolean;\r\n parentCompanyId: string | null;\r\n notes: string | null;\r\n } | null;\r\n etas: Array<{\r\n __typename: 'Eta';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n asOfTime: Date | number | string;\r\n estimatedArrivalTime: Date | number | string;\r\n calculatedArrivalTime: Date | number | string;\r\n currentTripId: string;\r\n waypointId: string;\r\n companyId: string;\r\n }>;\r\n positionReports: Array<{\r\n __typename: 'PositionReport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n tripId: string;\r\n companyId: string;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: Date | number | string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }>;\r\n flightFollowingReports: Array<{\r\n __typename: 'FlightFollowingReport';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n tripId: string;\r\n companyId: string;\r\n summary: string | null;\r\n fuel: string | null;\r\n estimatedTimeEnrouteMinutes: number | null;\r\n riskAnalysis: string | null;\r\n flightType: FlightType | null;\r\n soulsOnBoard: number | null;\r\n highestFeatureEnroute: number | null;\r\n takeOffWeight: number | null;\r\n centerOfGravity: number | null;\r\n destination: string | null;\r\n trackingViaGps: boolean | null;\r\n flightRule: FlightRule | null;\r\n tripLegId: string | null;\r\n confirmedFboId: string | null;\r\n cruisingAltitude: number | null;\r\n medicalCrewRA: number | null;\r\n }>;\r\n passengers: Array<{\r\n __typename: 'TripPassenger';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: PassengerType;\r\n tripId: string;\r\n companyId: string;\r\n weightInKg: number | null;\r\n positionName: string | null;\r\n positionType: UnitPositionType | null;\r\n notificationAddress: string | null;\r\n personId: string | null;\r\n crewMemberId: string | null;\r\n manifestEntries: Array<{\r\n __typename: 'ManifestEntry';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n passengerId: string;\r\n tripLegId: string;\r\n companyId: string;\r\n confirmedAt: Date | number | string | null;\r\n confirmedById: string | null;\r\n }>;\r\n }>;\r\n legs: Array<{\r\n __typename: 'TripLeg';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: TripLegStatus;\r\n sequence: number;\r\n tripId: string;\r\n companyId: string;\r\n estimatedDistanceInMiles: number | null;\r\n departingOdometerReading: number | null;\r\n departingNote: string | null;\r\n arrivingOdometerReading: number | null;\r\n arrivingNote: string | null;\r\n isEmergent: boolean | null;\r\n officialEteId: string | null;\r\n calculatedEteId: string | null;\r\n endingWaypointId: string | null;\r\n startingWaypointId: string | null;\r\n }>;\r\n }>;\r\n } | null;\r\n questionnaireResponses: Array<{\r\n __typename: 'QuestionnaireResponse';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: QuestionnaireResponseStatus;\r\n questionnaireId: string;\r\n companyId: string;\r\n cardId: string;\r\n currentReviewLevel: UserRole | null;\r\n completedById: string | null;\r\n dateCompleted: Date | number | string | null;\r\n communicationsReviewById: string | null;\r\n dateCommunicationsReviewed: Date | number | string | null;\r\n supervisorReviewById: string | null;\r\n dateSupervisorReviewed: Date | number | string | null;\r\n managerReviewById: string | null;\r\n dateManagerReviewed: Date | number | string | null;\r\n questionnaireQuestionResponses: Array<{\r\n __typename: 'QuestionnaireQuestionResponse';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireResponseId: string;\r\n questionnaireSectionQuestionId: string;\r\n matchType: RuleMatchType;\r\n reviewRequired: boolean;\r\n companyId: string;\r\n responseValue: string | null;\r\n explanation: string | null;\r\n questionnaireQuestionResponseNotes: Array<{\r\n __typename: 'QuestionnaireQuestionResponseNote';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n questionnaireQuestionResponseId: string;\r\n authorId: string;\r\n dateAuthored: Date | number | string;\r\n note: string;\r\n companyId: string;\r\n }>;\r\n }>;\r\n questionnaire: {\r\n __typename: 'Questionnaire';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n type: QuestionnaireType;\r\n communicationCenterId: string | null;\r\n };\r\n }>;\r\n medicalControlContactLogEntries: Array<{\r\n __typename: 'MedicalControlContactLogEntry';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n cardId: string;\r\n timestampId: string;\r\n personId: string;\r\n isSuccessful: boolean;\r\n companyId: string;\r\n person: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n };\r\n }>;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type FetchOpsSummaryDataQueryVariables = Exact<{\r\n dispatchCompanyId: InputMaybe;\r\n communicationCenterId: InputMaybe;\r\n regionId: InputMaybe;\r\n controlZoneId: InputMaybe;\r\n controlZoneCompanyId: InputMaybe;\r\n includeVehicleSummaries?: Scalars['Boolean'];\r\n includeVehicles?: Scalars['Boolean'];\r\n includeCards?: Scalars['Boolean'];\r\n includeUnits?: Scalars['Boolean'];\r\n includeHiddenUnits?: Scalars['Boolean'];\r\n includeSpareUnits?: Scalars['Boolean'];\r\n includeThirdPartyUnits?: Scalars['Boolean'];\r\n includeExternalSystemUnits?: Scalars['Boolean'];\r\n includeTcsManagedUnits?: Scalars['Boolean'];\r\n fetchNested?: Scalars['Boolean'];\r\n fetchDeep?: Scalars['Boolean'];\r\n excludeCurrentDispatchCompany?: Scalars['Boolean'];\r\n summariesFetchAfterDate?: InputMaybe;\r\n oosEventsFetchAfterDate?: InputMaybe;\r\n}>;\r\n\r\nexport type FetchOpsSummaryDataQuery = {\r\n __typename: 'Query';\r\n outOfServiceEvents?: {\r\n __typename: 'OutOfServiceEventQueries';\r\n all: {\r\n __typename: 'OutOfServiceEventCollection';\r\n meta: { __typename: 'OutOfServiceEventCollectionMetadata'; total: number };\r\n items: Array<{\r\n __typename: 'OutOfServiceEvent';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonId: string;\r\n isAirworthy: boolean;\r\n initialEstimatedEndTime: Date | number | string;\r\n alertWhenEventEnds: boolean;\r\n companyId: string;\r\n startTime: Date | number | string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n secondaryReasonId: string | null;\r\n scheduledStartTime: Date | number | string | null;\r\n endTime: Date | number | string | null;\r\n notes: string | null;\r\n linkedCardId: string | null;\r\n createdById: string | null;\r\n endedById: string | null;\r\n secondaryReasonComment: string | null;\r\n parentOutOfServiceEventId: string | null;\r\n copiedFromId: string | null;\r\n alertTimeInMinutes: number | null;\r\n }>;\r\n };\r\n };\r\n vehicles: {\r\n __typename: 'VehicleQueries';\r\n all?: {\r\n __typename: 'VehicleCollection';\r\n items: Array<{\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n }>;\r\n };\r\n summaries?: {\r\n __typename: 'VehicleSummaryCollection';\r\n items: Array<{\r\n __typename: 'VehicleSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n unitSummaryId: string;\r\n regionId: string;\r\n status: VehicleStatus;\r\n statusDescription: string;\r\n vehicleDispositionId: string;\r\n unitId: string;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n makeName: string | null;\r\n modelName: string | null;\r\n etlo: Date | number | string | null;\r\n eta: Date | number | string | null;\r\n currentCardNumber: string | null;\r\n currentCardSummaryId: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n currentOrNextLegSequence: number | null;\r\n totalLegCount: number | null;\r\n communicationCenterId: string | null;\r\n currentCardId: string | null;\r\n currentCardSummary?: {\r\n __typename: 'CardSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operationType: OperationType;\r\n regionId: string;\r\n companyId: string;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: Date | number | string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n operation: {\r\n __typename: 'OperationSummary';\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n } | null;\r\n request: {\r\n __typename: 'RequestSummary';\r\n id: string;\r\n status: RequestStatus;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n requester: {\r\n __typename: 'RequesterSummary';\r\n id: string;\r\n missionRole: MissionRoleType;\r\n } | null;\r\n from: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n to: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatientSummary';\r\n id: string;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n dateCreated: Date | number | string | null;\r\n } | null> | null;\r\n } | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n latestPositionReportSummary: {\r\n __typename: 'PositionReportSummary';\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n } | null;\r\n lastKnownCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'VehicleSummaryCollectionMetadata'; total: number };\r\n };\r\n };\r\n cards?: {\r\n __typename: 'CardQueries';\r\n summaries: {\r\n __typename: 'CardSummaryCollection';\r\n items: Array<{\r\n __typename: 'CardSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operationType: OperationType;\r\n regionId: string;\r\n companyId: string;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: Date | number | string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n unitSummary?: {\r\n __typename: 'UnitSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n lastPilotUpdateName: string | null;\r\n baseTimezoneCd: string | null;\r\n vehicleSummaryId: string | null;\r\n vehicleId: string | null;\r\n communicationCenterId: string | null;\r\n shifts: Array<{\r\n __typename: 'UnitShiftSummary';\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n }>;\r\n outOfServiceEvents: Array<{\r\n __typename: 'OutOfServiceEventSummary';\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonName: string;\r\n reasonId: string;\r\n startTime: Date | number | string | null;\r\n notes: string | null;\r\n }>;\r\n positions: Array<{\r\n __typename: 'UnitPositionSummary';\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n isNonCompliant: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n teamMemberFirstName: string | null;\r\n teamMemberLastName: string | null;\r\n nonComplianceReason: string | null;\r\n }>;\r\n } | null;\r\n operation: {\r\n __typename: 'OperationSummary';\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n } | null;\r\n request: {\r\n __typename: 'RequestSummary';\r\n id: string;\r\n status: RequestStatus;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n requester: {\r\n __typename: 'RequesterSummary';\r\n id: string;\r\n missionRole: MissionRoleType;\r\n } | null;\r\n from: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n to: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatientSummary';\r\n id: string;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n dateCreated: Date | number | string | null;\r\n } | null> | null;\r\n }>;\r\n meta: { __typename: 'CardSummaryCollectionMetadata'; total: number };\r\n };\r\n };\r\n units?: {\r\n __typename: 'UnitQueries';\r\n summaries: {\r\n __typename: 'UnitSummaryCollection';\r\n items: Array<{\r\n __typename: 'UnitSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n lastPilotUpdateName: string | null;\r\n baseTimezoneCd: string | null;\r\n vehicleSummaryId: string | null;\r\n vehicleId: string | null;\r\n communicationCenterId: string | null;\r\n vehicleSummary?: {\r\n __typename: 'VehicleSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n unitSummaryId: string;\r\n regionId: string;\r\n status: VehicleStatus;\r\n statusDescription: string;\r\n vehicleDispositionId: string;\r\n unitId: string;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n makeName: string | null;\r\n modelName: string | null;\r\n etlo: Date | number | string | null;\r\n eta: Date | number | string | null;\r\n currentCardNumber: string | null;\r\n currentCardSummaryId: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n currentOrNextLegSequence: number | null;\r\n totalLegCount: number | null;\r\n communicationCenterId: string | null;\r\n currentCardId: string | null;\r\n currentCardSummary?: {\r\n __typename: 'CardSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operationType: OperationType;\r\n regionId: string;\r\n companyId: string;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: Date | number | string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n operation: {\r\n __typename: 'OperationSummary';\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n } | null;\r\n request: {\r\n __typename: 'RequestSummary';\r\n id: string;\r\n status: RequestStatus;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n requester: {\r\n __typename: 'RequesterSummary';\r\n id: string;\r\n missionRole: MissionRoleType;\r\n } | null;\r\n from: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n to: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatientSummary';\r\n id: string;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n dateCreated: Date | number | string | null;\r\n } | null> | null;\r\n } | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n latestPositionReportSummary: {\r\n __typename: 'PositionReportSummary';\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n } | null;\r\n lastKnownCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n shifts: Array<{\r\n __typename: 'UnitShiftSummary';\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n }>;\r\n outOfServiceEvents: Array<{\r\n __typename: 'OutOfServiceEventSummary';\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonName: string;\r\n reasonId: string;\r\n startTime: Date | number | string | null;\r\n notes: string | null;\r\n }>;\r\n positions: Array<{\r\n __typename: 'UnitPositionSummary';\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n isNonCompliant: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n teamMemberFirstName: string | null;\r\n teamMemberLastName: string | null;\r\n nonComplianceReason: string | null;\r\n }>;\r\n }>;\r\n meta: { __typename: 'UnitSummaryCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type FetchCardLinksQueryVariables = Exact<{\r\n filter: InputMaybe;\r\n skip: InputMaybe;\r\n first: InputMaybe;\r\n}>;\r\n\r\nexport type FetchCardLinksQuery = {\r\n __typename: 'Query';\r\n cardLinks: {\r\n __typename: 'CardLinkQueries';\r\n all: {\r\n __typename: 'CardLinkCollection';\r\n items: Array<{\r\n __typename: 'CardLink';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: CardLinkType;\r\n fromCardId: string;\r\n toCardId: string;\r\n toCardNumber: string;\r\n companyId: string;\r\n rendezvousRequestId: string | null;\r\n }>;\r\n meta: { __typename: 'CardLinkCollectionMetadata'; total: number };\r\n };\r\n };\r\n};\r\n\r\nexport type FetchCardSummaryByCardNumberQueryVariables = Exact<{\r\n cardNumber: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardSummaryByCardNumberQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n summaryByCardNumber: {\r\n __typename: 'CardSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operationType: OperationType;\r\n regionId: string;\r\n companyId: string;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: Date | number | string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n operation: {\r\n __typename: 'OperationSummary';\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n } | null;\r\n request: {\r\n __typename: 'RequestSummary';\r\n id: string;\r\n status: RequestStatus;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n requester: {\r\n __typename: 'RequesterSummary';\r\n id: string;\r\n missionRole: MissionRoleType;\r\n } | null;\r\n from: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n to: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatientSummary';\r\n id: string;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n dateCreated: Date | number | string | null;\r\n } | null> | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type FetchCardSummaryByCardIdQueryVariables = Exact<{\r\n cardId: Scalars['ID'];\r\n}>;\r\n\r\nexport type FetchCardSummaryByCardIdQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n summaryById: {\r\n __typename: 'CardSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operationType: OperationType;\r\n regionId: string;\r\n companyId: string;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: Date | number | string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n operation: {\r\n __typename: 'OperationSummary';\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n } | null;\r\n request: {\r\n __typename: 'RequestSummary';\r\n id: string;\r\n status: RequestStatus;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n requester: {\r\n __typename: 'RequesterSummary';\r\n id: string;\r\n missionRole: MissionRoleType;\r\n } | null;\r\n from: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n to: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatientSummary';\r\n id: string;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n dateCreated: Date | number | string | null;\r\n } | null> | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type CardUnitOverviewComponent_FetchCardEntitiesByCardIdQueryVariables = Exact<{\r\n cardId: Scalars['ID'];\r\n}>;\r\n\r\nexport type CardUnitOverviewComponent_FetchCardEntitiesByCardIdQuery = {\r\n __typename: 'Query';\r\n cards: {\r\n __typename: 'CardQueries';\r\n byId: {\r\n __typename: 'Card';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n companyId: string;\r\n dateCardClosed: Date | number | string | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: Date | number | string | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n request: {\r\n __typename: 'Request';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: RequestStatus;\r\n requestedOperationType: OperationType;\r\n isStandbyRequest: boolean;\r\n standbyActivationRequested: boolean;\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n companyId: string;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n requestedVehicleType: VehicleType | null;\r\n primaryUnitServiceAreaId: string | null;\r\n commitUnitToStandby: boolean | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n assignmentDelayedReasonId: string | null;\r\n regionId: string | null;\r\n includeCompetitors: boolean | null;\r\n transportOfferAlgorithmId: string | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n webOrderCallType: WebOrderCallType | null;\r\n etloInMinutes: number | null;\r\n atloInMinutes: number | null;\r\n locations: Array<{\r\n __typename: 'RequestLocation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n requestId: string;\r\n companyId: string;\r\n locationId: string | null;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n medicalFacilityId: string | null;\r\n roomNumber: string | null;\r\n medicalFacilityUnitId: string | null;\r\n notes: string | null;\r\n groundContact: string | null;\r\n estimatedRendezvousTimeInMinutes: number | null;\r\n estimatedGroundTimeInMinutes: number | null;\r\n fboId: string | null;\r\n physicianId: string | null;\r\n diversionReasonId: string | null;\r\n diversionReasonOtherNotes: string | null;\r\n isAutoAccepted: boolean | null;\r\n dateConfirmed: Date | number | string | null;\r\n confirmedByUserId: string | null;\r\n unConfirmed: boolean | null;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n };\r\n }>;\r\n patients: Array<{\r\n __typename: 'RequestPatient';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n gender: Gender;\r\n isIsolette: boolean;\r\n requestId: string;\r\n companyId: string;\r\n patientId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n transportReasonId: string | null;\r\n notes: string | null;\r\n chiefComplaintNotes: string | null;\r\n transportReasonCategory: TransportReasonCategory | null;\r\n isIntubated: boolean | null;\r\n numberOfDrips: number | null;\r\n specialtyEquipment: string | null;\r\n rideAlongRequested: YesNoType | null;\r\n isoletteType: IsoletteType | null;\r\n isoletteNotes: string | null;\r\n transferReasonId: string | null;\r\n estimatedAgeInHours: number | null;\r\n gcs: number | null;\r\n bpSystolic: number | null;\r\n bpDiastolic: number | null;\r\n heartRate: number | null;\r\n oxygenSaturation: number | null;\r\n respiratoryRate: number | null;\r\n temperatureInCelsius: number | null;\r\n rideAlongWeightInKg: number | null;\r\n medicalRecordNumber: string | null;\r\n rideAlongName: string | null;\r\n rideAlongDateOfBirth: Date | number | string | null;\r\n }>;\r\n safetyQuestions: {\r\n __typename: 'SafetyQuestions';\r\n otherServiceDeclined: boolean | null;\r\n otherServiceDescription: string | null;\r\n otherServicesAreRespondingToTransferring: boolean | null;\r\n otherServiceResponseDescription: string | null;\r\n };\r\n requiredCapabilities: Array<{ __typename: 'RequiredCapability'; id: string }>;\r\n } | null;\r\n operation: {\r\n __typename: 'Operation';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n vehicleId: string;\r\n dateOperationStarted: Date | number | string;\r\n riskAnalysisAcknowledged: boolean;\r\n companyId: string;\r\n unitId: string | null;\r\n dateOperationEnded: Date | number | string | null;\r\n unitActivationTime: Date | number | string | null;\r\n riskAnalysisNumber: string | null;\r\n standbyActivationType: StandbyActivationType | null;\r\n caller: string | null;\r\n callbackNumber: string | null;\r\n initialOperationType: OperationType | null;\r\n unit: {\r\n __typename: 'Unit';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n regionId: string;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n integrations: Array;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n } | null;\r\n trips: Array<{\r\n __typename: 'Trip';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n operationId: string;\r\n companyId: string;\r\n vehicleId: string | null;\r\n agencyId: string | null;\r\n agencyLocationId: string | null;\r\n calculatedLoadedMiles: number | null;\r\n gpsLoadedMiles: number | null;\r\n estimatedDurations: Array<{\r\n __typename: 'EstimatedDuration';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n asOfTime: Date | number | string;\r\n durationInMinutes: number;\r\n isOfficial: boolean;\r\n estimateSource: EstimatedDurationSource;\r\n durationType: EstimatedDurationType;\r\n ownerId: string;\r\n tripId: string;\r\n companyId: string;\r\n positionReportId: string | null;\r\n }>;\r\n vehicle: {\r\n __typename: 'Vehicle';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n stateInspectionRequired: boolean;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n dateAcquired: Date | number | string | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n vehicleDispositions: Array<{\r\n __typename: 'VehicleDisposition';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n companyId: string;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | number | string | null;\r\n statusDescription: string | null;\r\n positionTime: Date | number | string | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n }>;\r\n } | null;\r\n passengers: Array<{\r\n __typename: 'TripPassenger';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: PassengerType;\r\n tripId: string;\r\n companyId: string;\r\n weightInKg: number | null;\r\n positionName: string | null;\r\n positionType: UnitPositionType | null;\r\n notificationAddress: string | null;\r\n personId: string | null;\r\n crewMemberId: string | null;\r\n manifestEntries: Array<{\r\n __typename: 'ManifestEntry';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n passengerId: string;\r\n tripLegId: string;\r\n companyId: string;\r\n confirmedAt: Date | number | string | null;\r\n confirmedById: string | null;\r\n }>;\r\n }>;\r\n legs: Array<{\r\n __typename: 'TripLeg';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: TripLegStatus;\r\n sequence: number;\r\n tripId: string;\r\n companyId: string;\r\n estimatedDistanceInMiles: number | null;\r\n departingOdometerReading: number | null;\r\n departingNote: string | null;\r\n arrivingOdometerReading: number | null;\r\n arrivingNote: string | null;\r\n isEmergent: boolean | null;\r\n officialEteId: string | null;\r\n calculatedEteId: string | null;\r\n endingWaypointId: string | null;\r\n startingWaypointId: string | null;\r\n }>;\r\n }>;\r\n } | null;\r\n } | null;\r\n };\r\n};\r\n\r\nexport type UserDataContextService_FetchQueryVariables = Exact<{ [key: string]: never }>;\r\n\r\nexport type UserDataContextService_FetchQuery = {\r\n __typename: 'Query';\r\n authenticatedIdentity: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n };\r\n userIdentity: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n accessibleItems: Array<{\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }>;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n };\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n all: {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array<{\r\n __typename: 'CommunicationCenter';\r\n states: Array | null;\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n }>;\r\n };\r\n };\r\n controlZones: {\r\n __typename: 'ControlZoneQueries';\r\n all: {\r\n __typename: 'ControlZoneCollection';\r\n items: Array<{\r\n __typename: 'ControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n }>;\r\n };\r\n };\r\n vehicleControlZones: {\r\n __typename: 'VehicleControlZoneQueries';\r\n all: {\r\n __typename: 'VehicleControlZoneCollection';\r\n items: Array<{\r\n __typename: 'VehicleControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n controlZoneId: string | null;\r\n vehicleId: string | null;\r\n }>;\r\n };\r\n };\r\n baseControlZones: {\r\n __typename: 'BaseControlZoneQueries';\r\n all: {\r\n __typename: 'BaseControlZoneCollection';\r\n items: Array<{\r\n __typename: 'BaseControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n controlZoneId: string;\r\n baseId: string;\r\n companyId: string;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type UserDataContextFragment = {\r\n __typename: 'Query';\r\n authenticatedIdentity: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n };\r\n userIdentity: {\r\n __typename: 'Person';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n isOutOfFlightCompliance: boolean;\r\n companyId: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n hireDate: Date | number | string | null;\r\n terminationDate: Date | number | string | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n notificationAddress: string | null;\r\n userRoles: Array | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | number | string | null;\r\n accessibleItems: Array<{\r\n __typename: 'AccessibleItem';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n personId: string;\r\n userRoles: Array | null;\r\n }>;\r\n appSettings: {\r\n __typename: 'UserApplicationSettings';\r\n tcsRealtimeTracking: {\r\n __typename: 'TcsRealtimeTracking';\r\n tabId: string | null;\r\n tabDate: Date | number | string | null;\r\n };\r\n } | null;\r\n };\r\n communicationCenters: {\r\n __typename: 'CommunicationCenterQueries';\r\n all: {\r\n __typename: 'CommunicationCenterCollection';\r\n items: Array<{\r\n __typename: 'CommunicationCenter';\r\n states: Array | null;\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n showReferToGmrWarning: boolean | null;\r\n }>;\r\n };\r\n };\r\n controlZones: {\r\n __typename: 'ControlZoneQueries';\r\n all: {\r\n __typename: 'ControlZoneCollection';\r\n items: Array<{\r\n __typename: 'ControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n }>;\r\n };\r\n };\r\n vehicleControlZones: {\r\n __typename: 'VehicleControlZoneQueries';\r\n all: {\r\n __typename: 'VehicleControlZoneCollection';\r\n items: Array<{\r\n __typename: 'VehicleControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n companyId: string;\r\n controlZoneId: string | null;\r\n vehicleId: string | null;\r\n }>;\r\n };\r\n };\r\n baseControlZones: {\r\n __typename: 'BaseControlZoneQueries';\r\n all: {\r\n __typename: 'BaseControlZoneCollection';\r\n items: Array<{\r\n __typename: 'BaseControlZone';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n controlZoneId: string;\r\n baseId: string;\r\n companyId: string;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type LocationHazardsComponent_FetchLocationHazardsByLocationIdQueryVariables = Exact<{\r\n locationId: Scalars['ID'];\r\n}>;\r\n\r\nexport type LocationHazardsComponent_FetchLocationHazardsByLocationIdQuery = {\r\n __typename: 'Query';\r\n locationHazards: {\r\n __typename: 'LocationHazardQueries';\r\n byLocationId: {\r\n __typename: 'LocationHazardCollection';\r\n items: Array<{\r\n __typename: 'LocationHazard';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n locationId: string;\r\n hazard: string;\r\n companyId: string;\r\n effectiveDate: Date | number | string | null;\r\n expirationDate: Date | number | string | null;\r\n locationHazardAttachments: Array<{\r\n __typename: 'LocationHazardAttachment';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n locationHazardId: string;\r\n fileName: string;\r\n companyId: string;\r\n fileSizeInBytes: number | null;\r\n contentType: string | null;\r\n }>;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport type PollingService_FetchEntitiesQueryVariables = Exact<{\r\n companyId: InputMaybe;\r\n companyIds: InputMaybe | Scalars['ID']>;\r\n regionId: InputMaybe;\r\n userRoles: InputMaybe | UserRole>;\r\n includeQuestionnaireResponses?: Scalars['Boolean'];\r\n includePassdownLogs?: Scalars['Boolean'];\r\n includeNotifications?: Scalars['Boolean'];\r\n includeSummaries?: Scalars['Boolean'];\r\n includeVehiclePositionSummaries?: Scalars['Boolean'];\r\n vehiclesFetchAfterDate?: InputMaybe;\r\n unitsFetchAfterDate?: InputMaybe;\r\n cardsFetchAfterDate?: InputMaybe;\r\n vehiclePositionSummariesFetchAfterDate?: InputMaybe;\r\n summariesFetchPolicy?: InputMaybe;\r\n}>;\r\n\r\nexport type PollingService_FetchEntitiesQuery = {\r\n __typename: 'Query';\r\n questionnaireResponses?: {\r\n __typename: 'QuestionnaireResponseQueries';\r\n all: {\r\n __typename: 'QuestionnaireResponseCollection';\r\n meta: { __typename: 'QuestionnaireResponseCollectionMetadata'; total: number };\r\n };\r\n };\r\n passdownLogs?: {\r\n __typename: 'PassdownLogQueries';\r\n all: {\r\n __typename: 'PassdownLogCollection';\r\n meta: { __typename: 'PassdownLogCollectionMetadata'; total: number };\r\n };\r\n };\r\n notifications?: {\r\n __typename: 'NotificationQueries';\r\n all: {\r\n __typename: 'NotificationCollection';\r\n items: Array<{\r\n __typename: 'Notification';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n lastUpdatedById: string | null;\r\n id: string;\r\n status: NotificationStatus;\r\n body: string;\r\n companyId: string;\r\n cardId: string | null;\r\n subject: string | null;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n }>;\r\n meta: { __typename: 'NotificationCollectionMetadata'; total: number };\r\n };\r\n };\r\n units?: {\r\n __typename: 'UnitQueries';\r\n summaries: {\r\n __typename: 'UnitSummaryCollection';\r\n items: Array<{\r\n __typename: 'UnitSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n isAdministrative: boolean | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | number | string | null;\r\n lastPilotUpdateById: string | null;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | number | string | null;\r\n lastPilotUpdateName: string | null;\r\n baseTimezoneCd: string | null;\r\n vehicleSummaryId: string | null;\r\n vehicleId: string | null;\r\n communicationCenterId: string | null;\r\n shifts: Array<{\r\n __typename: 'UnitShiftSummary';\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n }>;\r\n outOfServiceEvents: Array<{\r\n __typename: 'OutOfServiceEventSummary';\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date | number | string;\r\n reasonName: string;\r\n reasonId: string;\r\n startTime: Date | number | string | null;\r\n notes: string | null;\r\n }>;\r\n positions: Array<{\r\n __typename: 'UnitPositionSummary';\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n isNonCompliant: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n teamMemberFirstName: string | null;\r\n teamMemberLastName: string | null;\r\n nonComplianceReason: string | null;\r\n }>;\r\n }>;\r\n meta: { __typename: 'UnitSummaryCollectionMetadata'; total: number };\r\n };\r\n };\r\n vehicles?: {\r\n __typename: 'VehicleQueries';\r\n summaries: {\r\n __typename: 'VehicleSummaryCollection';\r\n items: Array<{\r\n __typename: 'VehicleSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n type: VehicleType;\r\n registrationNumber: string;\r\n unitSummaryId: string;\r\n regionId: string;\r\n status: VehicleStatus;\r\n statusDescription: string;\r\n vehicleDispositionId: string;\r\n unitId: string;\r\n companyId: string;\r\n serialNumber: string | null;\r\n dispatchCompanyId: string | null;\r\n makeName: string | null;\r\n modelName: string | null;\r\n etlo: Date | number | string | null;\r\n eta: Date | number | string | null;\r\n currentCardNumber: string | null;\r\n currentCardSummaryId: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n currentOrNextLegSequence: number | null;\r\n totalLegCount: number | null;\r\n communicationCenterId: string | null;\r\n currentCardId: string | null;\r\n from: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n to: {\r\n __typename: 'WaypointSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n } | null;\r\n latestPositionReportSummary: {\r\n __typename: 'PositionReportSummary';\r\n id: string;\r\n positionTime: Date | number | string;\r\n source: PositionReportSource;\r\n } | null;\r\n lastKnownCoordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n }>;\r\n meta: { __typename: 'VehicleSummaryCollectionMetadata'; total: number };\r\n };\r\n };\r\n cards?: {\r\n __typename: 'CardQueries';\r\n summaries: {\r\n __typename: 'CardSummaryCollection';\r\n items: Array<{\r\n __typename: 'CardSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operationType: OperationType;\r\n regionId: string;\r\n companyId: string;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: Date | number | string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n operation: {\r\n __typename: 'OperationSummary';\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n } | null;\r\n request: {\r\n __typename: 'RequestSummary';\r\n id: string;\r\n status: RequestStatus;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | number | string | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: Date | number | string | null;\r\n requester: {\r\n __typename: 'RequesterSummary';\r\n id: string;\r\n missionRole: MissionRoleType;\r\n } | null;\r\n from: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n to: {\r\n __typename: 'RequestLocationSummary';\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: {\r\n __typename: 'Address';\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: {\r\n __typename: 'Coordinates';\r\n latitude: number | null;\r\n longitude: number | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n } | null;\r\n patients: Array<{\r\n __typename: 'RequestPatientSummary';\r\n id: string;\r\n dateOfBirth: Date | number | string | null;\r\n weightInKg: number | null;\r\n dateCreated: Date | number | string | null;\r\n } | null> | null;\r\n }>;\r\n meta: { __typename: 'CardSummaryCollectionMetadata'; total: number };\r\n };\r\n };\r\n vehiclePositionSummary?: {\r\n __typename: 'vehcilePositionSummaryQueries';\r\n all: {\r\n __typename: 'VehiclePositionSummaryCollection';\r\n items: Array<{\r\n __typename: 'VehiclePositionSummary';\r\n dateLastUpdated: Date | number | string;\r\n dateCreated: Date | number | string;\r\n dateDeleted: Date | number | string | null;\r\n id: string;\r\n vehicleId: string;\r\n latitude: number;\r\n longitude: number;\r\n positionSource: PositionReportSource;\r\n positionTime: Date | number | string;\r\n companyId: string;\r\n lastPositionReportId: string | null;\r\n lastQualifyingPositionReportTime: Date | number | string | null;\r\n etlo: Date | number | string | null;\r\n lastGpsAutoPositionTime: Date | number | string | null;\r\n }>;\r\n };\r\n };\r\n};\r\n\r\nexport const UnitFieldsFragmentDoc = gql`\r\n fragment UnitFields on Unit {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n status\r\n weatherStatus\r\n baseId\r\n regionId\r\n isExternallyManaged\r\n maximumFlightRule\r\n isOnDelay\r\n isEnabled\r\n isSpare\r\n integrations\r\n companyId\r\n isAdministrative\r\n vehicleId\r\n isHidden\r\n isThirdPartyUnit\r\n etloInMinutes\r\n pilotNotes\r\n lastPilotUpdateTime\r\n lastPilotUpdateById\r\n plannedAvailableNotes\r\n plannedAvailableTime\r\n oemPlacardNumber\r\n primaryOutOfServiceEventId\r\n emSystemResourceId\r\n onBaseETAInMinutes\r\n completeFlightInstanceId\r\n parentUnitId\r\n }\r\n`;\r\nexport const UnitPositionFieldsFragmentDoc = gql`\r\n fragment UnitPositionFields on UnitPosition {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n type\r\n isFlightCrew\r\n isNonEmployee\r\n unitId\r\n companyId\r\n notificationAddress\r\n teamMemberId\r\n firstName\r\n lastName\r\n }\r\n`;\r\nexport const PersonFieldsFragmentDoc = gql`\r\n fragment PersonFields on Person {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n firstName\r\n lastName\r\n email\r\n employeeType\r\n timeType\r\n activateOktaAccount\r\n grantTcsAccess\r\n isOutOfFlightCompliance\r\n companyId\r\n title\r\n employeeId\r\n hireDate\r\n terminationDate\r\n departmentId\r\n reportsToPersonId\r\n baseId\r\n locationId\r\n programId\r\n activeDirectoryId\r\n notificationAddress\r\n userRoles\r\n allCompaniesAccessible\r\n allBasesAccessible\r\n allTrmProgramsAccessible\r\n allCommunicationCentersAccessible\r\n faaCompanyId\r\n dispatchCompanyId\r\n aviationCompanyId\r\n primaryCommunicationCenterId\r\n outOfFlightComplianceComment\r\n dateLastUpdatedFromGMRWorkday\r\n appSettings {\r\n tcsRealtimeTracking {\r\n tabId\r\n tabDate\r\n }\r\n }\r\n }\r\n`;\r\nexport const UnitShiftFieldsFragmentDoc = gql`\r\n fragment UnitShiftFields on UnitShift {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n startTimeInMinutes\r\n endTimeInMinutes\r\n unitId\r\n companyId\r\n }\r\n`;\r\nexport const VehicleFieldsFragmentDoc = gql`\r\n fragment VehicleFields on Vehicle {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n type\r\n registrationNumber\r\n isUnderLease\r\n role\r\n flightLogProcess\r\n isPlaceholder\r\n stateInspectionRequired\r\n isRetired\r\n isPositionTrackingEnabled\r\n companyId\r\n serialNumber\r\n dispatchCompanyId\r\n year\r\n dateAcquired\r\n makeId\r\n modelId\r\n cruiseSpeed\r\n configurationClassId\r\n isThirdPartyVehicle\r\n parentUnitId\r\n isHidden\r\n faaCompanyId\r\n skytracIMEI\r\n phoneNumber\r\n completeFlightId\r\n controlZoneId\r\n communicationCenterId\r\n regionId\r\n }\r\n`;\r\nexport const VehicleDispositionFieldsFragmentDoc = gql`\r\n fragment VehicleDispositionFields on VehicleDisposition {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n vehicleId\r\n status\r\n companyId\r\n currentWaypointId\r\n currentTripLegId\r\n currentTripId\r\n lastTripId\r\n currentAgencyLocationId\r\n notes\r\n isAssetOutOfService\r\n lastQualifyingPositionReportTime\r\n latitude\r\n longitude\r\n etlo\r\n statusDescription\r\n positionTime\r\n positionSource\r\n latestPositionReportId\r\n latestFlightFollowingReportId\r\n from {\r\n id\r\n name\r\n abbreviation\r\n type\r\n }\r\n to {\r\n id\r\n name\r\n abbreviation\r\n type\r\n }\r\n }\r\n`;\r\nexport const VehicleModelFieldsFragmentDoc = gql`\r\n fragment VehicleModelFields on VehicleModel {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n cruiseSpeedInMph\r\n }\r\n`;\r\nexport const VehicleStateInspectionFieldsFragmentDoc = gql`\r\n fragment VehicleStateInspectionFields on VehicleStateInspection {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n stateAbbrevation\r\n inspectionDate\r\n vehicleId\r\n companyId\r\n }\r\n`;\r\nexport const UnitContextFragmentDoc = gql`\r\n fragment UnitContext on Unit {\r\n ...UnitFields\r\n positions {\r\n ...UnitPositionFields\r\n teamMember {\r\n ...PersonFields\r\n }\r\n }\r\n shifts {\r\n ...UnitShiftFields\r\n }\r\n vehicle {\r\n ...VehicleFields\r\n vehicleDispositions {\r\n ...VehicleDispositionFields\r\n }\r\n model {\r\n ...VehicleModelFields\r\n }\r\n vehicleStateInspections {\r\n ...VehicleStateInspectionFields\r\n }\r\n }\r\n }\r\n ${UnitFieldsFragmentDoc}\r\n ${UnitPositionFieldsFragmentDoc}\r\n ${PersonFieldsFragmentDoc}\r\n ${UnitShiftFieldsFragmentDoc}\r\n ${VehicleFieldsFragmentDoc}\r\n ${VehicleDispositionFieldsFragmentDoc}\r\n ${VehicleModelFieldsFragmentDoc}\r\n ${VehicleStateInspectionFieldsFragmentDoc}\r\n`;\r\nexport const AddressFieldsFragmentDoc = gql`\r\n fragment AddressFields on Address {\r\n streetAddress\r\n city\r\n region\r\n postalCode\r\n country\r\n county\r\n gpsId\r\n coordinates {\r\n latitude\r\n longitude\r\n }\r\n }\r\n`;\r\nexport const CardLocationInfoLocationFieldsFragmentDoc = gql`\r\n fragment CardLocationInfoLocationFields on Location {\r\n id\r\n locationType\r\n name\r\n abbreviation\r\n notes\r\n address {\r\n ...AddressFields\r\n }\r\n locationHazards {\r\n id\r\n hazard\r\n }\r\n }\r\n ${AddressFieldsFragmentDoc}\r\n`;\r\nexport const ActivationRuleFieldsFragmentDoc = gql`\r\n fragment ActivationRuleFields on ActivationRule {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n isShared\r\n companyId\r\n regionId\r\n baseId\r\n unitId\r\n vehicleId\r\n vehicleTypes\r\n medicalFacilityId\r\n locationId\r\n operationTypes\r\n timestampTypeId\r\n systemTimestampType\r\n outOfServiceReasonId\r\n outOfServiceType\r\n automatedAlertAlgorithmType\r\n ageInMinutes\r\n waypointTypes\r\n missionRoleTypes\r\n address {\r\n streetAddress\r\n city\r\n region\r\n postalCode\r\n country\r\n county\r\n gpsId\r\n coordinates {\r\n latitude\r\n longitude\r\n }\r\n }\r\n declineReasons {\r\n id\r\n }\r\n communicationCenters {\r\n id\r\n }\r\n companies {\r\n id\r\n }\r\n }\r\n`;\r\nexport const ActiveAlertFieldsFragmentDoc = gql`\r\n fragment ActiveAlertFields on ActiveAlert {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n urgency\r\n content\r\n lifecycleStage\r\n requiresAcknowledgement\r\n matchType\r\n visibilityType\r\n isGpsAlert\r\n isActive\r\n companyId\r\n target\r\n targetId\r\n entityType\r\n entityId\r\n title\r\n definitionId\r\n dateAcknowledged\r\n acknowledgedById\r\n parentEntityType\r\n parentEntityId\r\n activationTime\r\n escalationDurationInSeconds\r\n snoozeMaxInSeconds\r\n authorId\r\n regionId\r\n communicationCenterId\r\n lookupHash\r\n referenceEntityType\r\n referenceEntityId\r\n }\r\n`;\r\nexport const ActiveCardUnitOfferingFieldsFragmentDoc = gql`\r\n fragment ActiveCardUnitOfferingFields on ActiveCardUnitOffering {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n cardId\r\n unitId\r\n companyId\r\n }\r\n`;\r\nexport const ActiveTimelineFieldsFragmentDoc = gql`\r\n fragment ActiveTimelineFields on ActiveTimeline {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n timelineId\r\n companyId\r\n matchType\r\n entityType\r\n entityId\r\n }\r\n`;\r\nexport const AlertFieldsFragmentDoc = gql`\r\n fragment AlertFields on Alert {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n entityType\r\n activationRuleId\r\n urgency\r\n content\r\n lifecycleStage\r\n requiresAcknowledgement\r\n title\r\n effectiveDate\r\n expirationDate\r\n paused\r\n createdById\r\n }\r\n`;\r\nexport const ApplicationNotificationFieldsFragmentDoc = gql`\r\n fragment ApplicationNotificationFields on ApplicationNotification {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n urgency\r\n displayOnBanner\r\n dismissable\r\n notification\r\n title\r\n effectiveDate\r\n expirationDate\r\n createdById\r\n companyId\r\n regionId\r\n }\r\n`;\r\nexport const AssignmentDelayedReasonFieldsFragmentDoc = gql`\r\n fragment AssignmentDelayedReasonFields on AssignmentDelayedReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n }\r\n`;\r\nexport const CancellationCategoryFieldsFragmentDoc = gql`\r\n fragment CancellationCategoryFields on CancellationCategory {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n defaultCancellationReasonId\r\n }\r\n`;\r\nexport const CancellationReasonFieldsFragmentDoc = gql`\r\n fragment CancellationReasonFields on CancellationReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n isTransferCenterReason\r\n canBeUnitCancellationReason\r\n cancellationCategoryId\r\n }\r\n`;\r\nexport const CancellationSecondaryReasonFieldsFragmentDoc = gql`\r\n fragment CancellationSecondaryReasonFields on CancellationSecondaryReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n cancellationReasonId\r\n }\r\n`;\r\nexport const CardFieldsFragmentDoc = gql`\r\n fragment CardFields on Card {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n status\r\n cardNumber\r\n companyId\r\n dateCardClosed\r\n transferredToCardId\r\n transferredFromCardId\r\n linkedCardId\r\n closeComment\r\n reOpenComment\r\n postTransportDebriefCompleted\r\n isBillable\r\n notBillableType\r\n notBillableComment\r\n apiWebhookSubscriptionId\r\n createdById\r\n plannedCompletionTime\r\n reOpenReasonId\r\n lastOperationId\r\n diversionType\r\n gmrUtilizationStatus\r\n gmrCADNumber\r\n isLocked\r\n operationId\r\n requestId\r\n }\r\n`;\r\nexport const CardLinkFieldsFragmentDoc = gql`\r\n fragment CardLinkFields on CardLink {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n type\r\n fromCardId\r\n toCardId\r\n toCardNumber\r\n companyId\r\n rendezvousRequestId\r\n }\r\n`;\r\nexport const CardNoteArchiveFieldsFragmentDoc = gql`\r\n fragment CardNoteArchiveFields on CardNoteArchive {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n content\r\n noteTime\r\n isInternal\r\n isSystem\r\n dateArchived\r\n cardId\r\n companyId\r\n authorId\r\n noteCategory\r\n noteMetadataJson\r\n }\r\n`;\r\nexport const CardNoteFieldsFragmentDoc = gql`\r\n fragment CardNoteFields on CardNote {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n content\r\n noteTime\r\n isInternal\r\n isSystem\r\n cardId\r\n companyId\r\n authorId\r\n noteCategory\r\n noteMetadataJson\r\n }\r\n`;\r\nexport const CardReOpenReasonFieldsFragmentDoc = gql`\r\n fragment CardReOpenReasonFields on CardReOpenReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n affectsTrip\r\n }\r\n`;\r\nexport const CardSummaryFieldsFragmentDoc = gql`\r\n fragment CardSummaryFields on CardSummary {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n id\r\n status\r\n cardNumber\r\n operationType\r\n regionId\r\n companyId\r\n apiWebhookSubscriptionId\r\n webOrderAcknowledgedTime\r\n diversionType\r\n gmrUtilizationStatus\r\n gmrCADNumber\r\n vehicleId\r\n vehicleSummaryId\r\n communicationCenterId\r\n unitId\r\n unitSummaryId\r\n operation {\r\n id\r\n status\r\n unitId\r\n vehicleId\r\n riskAnalysisNumber\r\n riskAnalysisAcknowledged\r\n tripId\r\n }\r\n request {\r\n id\r\n status\r\n isStandbyRequest\r\n isSisterCompanyReferral\r\n standbyActivationRequested\r\n assignmentDelayedReason\r\n transportTrackingLink\r\n latestWeatherDeclineUnitId\r\n latestWeatherDeclineTime\r\n latestWeatherDeclineReasonId\r\n latestWeatherDeclineSecondaryReasonId\r\n assignmentDelayedTime\r\n requester {\r\n id\r\n missionRole\r\n }\r\n from {\r\n id\r\n name\r\n abbreviation\r\n type\r\n address {\r\n streetAddress\r\n city\r\n region\r\n postalCode\r\n country\r\n county\r\n gpsId\r\n coordinates {\r\n latitude\r\n longitude\r\n }\r\n }\r\n }\r\n to {\r\n id\r\n name\r\n abbreviation\r\n type\r\n address {\r\n streetAddress\r\n city\r\n region\r\n postalCode\r\n country\r\n county\r\n gpsId\r\n coordinates {\r\n latitude\r\n longitude\r\n }\r\n }\r\n }\r\n }\r\n patients {\r\n id\r\n dateOfBirth\r\n weightInKg\r\n dateCreated\r\n }\r\n }\r\n`;\r\nexport const ConfigurationSettingFieldsFragmentDoc = gql`\r\n fragment ConfigurationSettingFields on ConfigurationSetting {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n companyId\r\n defaultUnitCommittedDeclineReasonId\r\n defaultUnitOutOfServiceDeclineReasonId\r\n requestReferredInternallyCancellationReasonId\r\n requestReferredExternallyCancellationReasonId\r\n crewGoingByGroundOutOfServiceReasonId\r\n assetReassignedDeclineReasonId\r\n externallyCancelledCancellationReasonId\r\n pilotReportGracePeriodInMinutes\r\n sameDestinationWarningThresholdInMinutes\r\n bugRequestEmail\r\n featureRequestEmail\r\n }\r\n`;\r\nexport const DeclineCategoryFieldsFragmentDoc = gql`\r\n fragment DeclineCategoryFields on DeclineCategory {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n defaultDeclineReasonId\r\n }\r\n`;\r\nexport const DeclineReasonFieldsFragmentDoc = gql`\r\n fragment DeclineReasonFields on DeclineReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n declineCategoryId\r\n controllable\r\n canBeSkipReason\r\n canBeAbortReason\r\n canBeBulkSkipReason\r\n canBeOneCallSkipReason\r\n isUnitAvailableAfterAbort\r\n }\r\n`;\r\nexport const DeclineSecondaryReasonFieldsFragmentDoc = gql`\r\n fragment DeclineSecondaryReasonFields on DeclineSecondaryReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n declineReasonId\r\n }\r\n`;\r\nexport const DiversionReasonFieldsFragmentDoc = gql`\r\n fragment DiversionReasonFields on DiversionReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n }\r\n`;\r\nexport const EscortRequestFieldsFragmentDoc = gql`\r\n fragment EscortRequestFields on EscortRequest {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n escortName\r\n relationship\r\n escortWeightInKg\r\n requestApprovalTime\r\n requestId\r\n companyId\r\n }\r\n`;\r\nexport const EstimatedDurationFieldsFragmentDoc = gql`\r\n fragment EstimatedDurationFields on EstimatedDuration {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n asOfTime\r\n durationInMinutes\r\n isOfficial\r\n estimateSource\r\n durationType\r\n ownerId\r\n tripId\r\n companyId\r\n positionReportId\r\n }\r\n`;\r\nexport const EtaFieldsFragmentDoc = gql`\r\n fragment EtaFields on Eta {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n asOfTime\r\n estimatedArrivalTime\r\n calculatedArrivalTime\r\n currentTripId\r\n waypointId\r\n companyId\r\n }\r\n`;\r\nexport const ExternalActionFieldsFragmentDoc = gql`\r\n fragment ExternalActionFields on ExternalAction {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n entityId\r\n status\r\n entityType\r\n actionTypeId\r\n actionBodyJson\r\n companyId\r\n completedById\r\n dateCompleted\r\n notes\r\n }\r\n`;\r\nexport const ExternalActionTypeFieldsFragmentDoc = gql`\r\n fragment ExternalActionTypeFields on ExternalActionType {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n actionTypeName\r\n actionTypeDescription\r\n priority\r\n }\r\n`;\r\nexport const ExternalSystemUnitFieldsFragmentDoc = gql`\r\n fragment ExternalSystemUnitFields on ExternalSystemUnit {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n unitId\r\n vehicleId\r\n regionId\r\n companyId\r\n unitStatus\r\n vehicleType\r\n registrationNumber\r\n vehicleStatus\r\n vehicleStatusDescription\r\n currentCardNumber\r\n lastKnownLocationName\r\n lastQualifyingPositionReportTime\r\n baseId\r\n modelName\r\n outOfServiceEvents {\r\n id\r\n type\r\n eventNumber\r\n estimatedEndTime\r\n reasonName\r\n reasonId\r\n startTime\r\n notes\r\n }\r\n lastKnownCoordinates {\r\n latitude\r\n longitude\r\n }\r\n }\r\n`;\r\nexport const FacilityNonAcceptanceReasonFieldsFragmentDoc = gql`\r\n fragment FacilityNonAcceptanceReasonFields on FacilityNonAcceptanceReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n facilityNonAcceptanceReasonType\r\n }\r\n`;\r\nexport const FirewallRuleFieldsFragmentDoc = gql`\r\n fragment FirewallRuleFields on FirewallRule {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n action\r\n ipRange\r\n enabled\r\n companyId\r\n }\r\n`;\r\nexport const FlightFollowingReportFieldsFragmentDoc = gql`\r\n fragment FlightFollowingReportFields on FlightFollowingReport {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n tripId\r\n companyId\r\n summary\r\n fuel\r\n estimatedTimeEnrouteMinutes\r\n riskAnalysis\r\n flightType\r\n soulsOnBoard\r\n highestFeatureEnroute\r\n takeOffWeight\r\n centerOfGravity\r\n destination\r\n trackingViaGps\r\n flightRule\r\n tripLegId\r\n confirmedFboId\r\n cruisingAltitude\r\n medicalCrewRA\r\n }\r\n`;\r\nexport const LandingZoneOutOfServiceReasonFieldsFragmentDoc = gql`\r\n fragment LandingZoneOutOfServiceReasonFields on LandingZoneOutOfServiceReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n }\r\n`;\r\nexport const LocationHazardAttachmentFieldsFragmentDoc = gql`\r\n fragment LocationHazardAttachmentFields on LocationHazardAttachment {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n locationHazardId\r\n fileName\r\n companyId\r\n fileSizeInBytes\r\n contentType\r\n }\r\n`;\r\nexport const LocationHazardFieldsFragmentDoc = gql`\r\n fragment LocationHazardFields on LocationHazard {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n locationId\r\n hazard\r\n companyId\r\n effectiveDate\r\n expirationDate\r\n }\r\n`;\r\nexport const ManifestEntryFieldsFragmentDoc = gql`\r\n fragment ManifestEntryFields on ManifestEntry {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n passengerId\r\n tripLegId\r\n companyId\r\n confirmedAt\r\n confirmedById\r\n }\r\n`;\r\nexport const MedicalControlContactLogEntryFieldsFragmentDoc = gql`\r\n fragment MedicalControlContactLogEntryFields on MedicalControlContactLogEntry {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n cardId\r\n timestampId\r\n personId\r\n isSuccessful\r\n companyId\r\n }\r\n`;\r\nexport const MessageStatusUpdateFieldsFragmentDoc = gql`\r\n fragment MessageStatusUpdateFields on MessageStatusUpdate {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n status\r\n trackedMessageId\r\n error\r\n vendorMessage\r\n metadataJson\r\n }\r\n`;\r\nexport const NextDueTypeFieldsFragmentDoc = gql`\r\n fragment NextDueTypeFields on NextDueType {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n dataType\r\n }\r\n`;\r\nexport const NonReferralReasonFieldsFragmentDoc = gql`\r\n fragment NonReferralReasonFields on NonReferralReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n associatedCancellationReasonId\r\n associatedCancellationSecondaryReasonId\r\n }\r\n`;\r\nexport const NotificationFieldsFragmentDoc = gql`\r\n fragment NotificationFields on Notification {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n status\r\n body\r\n companyId\r\n cardId\r\n subject\r\n sourceTemplateId\r\n entityType\r\n entityId\r\n createdById\r\n }\r\n`;\r\nexport const NotificationGroupFieldsFragmentDoc = gql`\r\n fragment NotificationGroupFields on NotificationGroup {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n companyId\r\n unitId\r\n regionId\r\n type\r\n types\r\n }\r\n`;\r\nexport const NotificationGroupMemberFieldsFragmentDoc = gql`\r\n fragment NotificationGroupMemberFields on NotificationGroupMember {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n notificationGroupId\r\n companyId\r\n userId\r\n notificationAddress\r\n }\r\n`;\r\nexport const NotificationRecipientFieldsFragmentDoc = gql`\r\n fragment NotificationRecipientFields on NotificationRecipient {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n notificationId\r\n companyId\r\n name\r\n notificationAddress\r\n userId\r\n messageId\r\n messageStatus\r\n }\r\n`;\r\nexport const NotificationSubscriptionFieldsFragmentDoc = gql`\r\n fragment NotificationSubscriptionFields on NotificationSubscription {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n unitId\r\n notificationGroupId\r\n companyId\r\n }\r\n`;\r\nexport const NotificationTemplateFieldsFragmentDoc = gql`\r\n fragment NotificationTemplateFields on NotificationTemplate {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n contextType\r\n bodyTemplate\r\n canBeManualTrigger\r\n companyId\r\n triggerType\r\n triggerValue\r\n activationRuleId\r\n recipientTypes\r\n subjectTemplate\r\n requiresApproval\r\n groupTypes\r\n }\r\n`;\r\nexport const OemActivityFieldsFragmentDoc = gql`\r\n fragment OemActivityFields on OemActivity {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n oemPlanId\r\n activityType\r\n time\r\n authorId\r\n content\r\n priorStatus\r\n currentStatus\r\n oemPlanChangeRequestId\r\n }\r\n`;\r\nexport const OemAssetFieldsFragmentDoc = gql`\r\n fragment OemAssetFields on OemAsset {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n oemPlanId\r\n assetId\r\n assetType\r\n status\r\n assetDispatchCompanyId\r\n originalUnitId\r\n oemUnitId\r\n requestedPlacardNumber\r\n requestedUnitName\r\n requestedUnitAbbreviation\r\n requestedBaseId\r\n }\r\n`;\r\nexport const OemPlanChangeRequestFieldsFragmentDoc = gql`\r\n fragment OemPlanChangeRequestFields on OemPlanChangeRequest {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n oemPlanId\r\n oemAssetId\r\n status\r\n originalAssetStatus\r\n requestedAssetStatus\r\n requestedById\r\n dateRequested\r\n dateCompleted\r\n dateCancelled\r\n notes\r\n }\r\n`;\r\nexport const OemPlanFieldsFragmentDoc = gql`\r\n fragment OemPlanFields on OemPlan {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n companyId\r\n oemCompanyId\r\n outOfServiceReasonId\r\n defaultBaseId\r\n planStatus\r\n planYear\r\n description\r\n }\r\n`;\r\nexport const OfferAlgorithmFieldsFragmentDoc = gql`\r\n fragment OfferAlgorithmFields on OfferAlgorithm {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n includeCompetitors\r\n oneCallAgreement\r\n rank\r\n transportOfferAlgorithm\r\n distanceCalculation\r\n activationRuleId\r\n companyId\r\n isEnabled\r\n minimumFlightRule\r\n preferredUnits {\r\n id\r\n unitAbbreviation\r\n rank\r\n type\r\n }\r\n companies {\r\n id\r\n }\r\n }\r\n`;\r\nexport const OperationFieldsFragmentDoc = gql`\r\n fragment OperationFields on Operation {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n status\r\n type\r\n vehicleId\r\n dateOperationStarted\r\n riskAnalysisAcknowledged\r\n companyId\r\n unitId\r\n dateOperationEnded\r\n unitActivationTime\r\n riskAnalysisNumber\r\n standbyActivationType\r\n caller\r\n callbackNumber\r\n initialOperationType\r\n }\r\n`;\r\nexport const OutOfServiceEventFieldsFragmentDoc = gql`\r\n fragment OutOfServiceEventFields on OutOfServiceEvent {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n type\r\n eventNumber\r\n estimatedEndTime\r\n reasonId\r\n isAirworthy\r\n initialEstimatedEndTime\r\n alertWhenEventEnds\r\n companyId\r\n startTime\r\n unitId\r\n vehicleId\r\n secondaryReasonId\r\n scheduledStartTime\r\n endTime\r\n notes\r\n linkedCardId\r\n createdById\r\n endedById\r\n secondaryReasonComment\r\n parentOutOfServiceEventId\r\n copiedFromId\r\n alertTimeInMinutes\r\n }\r\n`;\r\nexport const OutOfServiceEventNoteFieldsFragmentDoc = gql`\r\n fragment OutOfServiceEventNoteFields on OutOfServiceEventNote {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n outOfServiceEventId\r\n content\r\n noteTime\r\n isSystem\r\n companyId\r\n authorId\r\n noteCategory\r\n noteMetadataJson\r\n }\r\n`;\r\nexport const OutOfServiceReasonFieldsFragmentDoc = gql`\r\n fragment OutOfServiceReasonFields on OutOfServiceReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n controllable\r\n isVehicleReason\r\n description\r\n }\r\n`;\r\nexport const OutOfServiceSecondaryReasonFieldsFragmentDoc = gql`\r\n fragment OutOfServiceSecondaryReasonFields on OutOfServiceSecondaryReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n outOfServiceReasonId\r\n }\r\n`;\r\nexport const PassdownLogAcknowledgementFieldsFragmentDoc = gql`\r\n fragment PassdownLogAcknowledgementFields on PassdownLogAcknowledgement {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n passdownLogId\r\n dateAcknowledged\r\n acknowledgedById\r\n companyId\r\n }\r\n`;\r\nexport const PassdownLogFieldsFragmentDoc = gql`\r\n fragment PassdownLogFields on PassdownLog {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n regionId\r\n logDate\r\n body\r\n requiresAcknowledgement\r\n companyId\r\n dateAcknowledged\r\n acknowledgedById\r\n authorId\r\n }\r\n`;\r\nexport const PatientFieldsFragmentDoc = gql`\r\n fragment PatientFields on Patient {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n gender\r\n companyId\r\n firstName\r\n lastName\r\n dateOfBirth\r\n }\r\n`;\r\nexport const PositionReportAlertFieldsFragmentDoc = gql`\r\n fragment PositionReportAlertFields on PositionReportAlert {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n vehicleId\r\n hasReceivedQualifyingReport\r\n companyId\r\n }\r\n`;\r\nexport const PositionReportArchiveFieldsFragmentDoc = gql`\r\n fragment PositionReportArchiveFields on PositionReportArchive {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n positionTime\r\n source\r\n dateArchived\r\n tripId\r\n companyId\r\n altitude\r\n speedInKnots\r\n heading\r\n estimatedMinutesEnRoute\r\n fuelRemaining\r\n timezoneCd\r\n dateConfirmed\r\n coordinates {\r\n latitude\r\n longitude\r\n }\r\n }\r\n`;\r\nexport const PositionReportFieldsFragmentDoc = gql`\r\n fragment PositionReportFields on PositionReport {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n positionTime\r\n source\r\n tripId\r\n companyId\r\n altitude\r\n speedInKnots\r\n heading\r\n estimatedMinutesEnRoute\r\n fuelRemaining\r\n timezoneCd\r\n dateConfirmed\r\n coordinates {\r\n latitude\r\n longitude\r\n }\r\n }\r\n`;\r\nexport const QuestionChoiceFieldsFragmentDoc = gql`\r\n fragment QuestionChoiceFields on QuestionChoice {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n label\r\n value\r\n questionId\r\n }\r\n`;\r\nexport const QuestionFieldsFragmentDoc = gql`\r\n fragment QuestionFields on Question {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n question\r\n questionType\r\n dataType\r\n }\r\n`;\r\nexport const QuestionnaireFieldsFragmentDoc = gql`\r\n fragment QuestionnaireFields on Questionnaire {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n companyId\r\n type\r\n communicationCenterId\r\n }\r\n`;\r\nexport const QuestionnaireQuestionResponseFieldsFragmentDoc = gql`\r\n fragment QuestionnaireQuestionResponseFields on QuestionnaireQuestionResponse {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n questionnaireResponseId\r\n questionnaireSectionQuestionId\r\n matchType\r\n reviewRequired\r\n companyId\r\n responseValue\r\n explanation\r\n }\r\n`;\r\nexport const QuestionnaireQuestionResponseNoteFieldsFragmentDoc = gql`\r\n fragment QuestionnaireQuestionResponseNoteFields on QuestionnaireQuestionResponseNote {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n questionnaireQuestionResponseId\r\n authorId\r\n dateAuthored\r\n note\r\n companyId\r\n }\r\n`;\r\nexport const QuestionnaireResponseFieldsFragmentDoc = gql`\r\n fragment QuestionnaireResponseFields on QuestionnaireResponse {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n status\r\n questionnaireId\r\n companyId\r\n cardId\r\n currentReviewLevel\r\n completedById\r\n dateCompleted\r\n communicationsReviewById\r\n dateCommunicationsReviewed\r\n supervisorReviewById\r\n dateSupervisorReviewed\r\n managerReviewById\r\n dateManagerReviewed\r\n }\r\n`;\r\nexport const QuestionnaireSectionFieldsFragmentDoc = gql`\r\n fragment QuestionnaireSectionFields on QuestionnaireSection {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n questionnaireId\r\n sequence\r\n }\r\n`;\r\nexport const QuestionnaireSectionQuestionFieldsFragmentDoc = gql`\r\n fragment QuestionnaireSectionQuestionFields on QuestionnaireSectionQuestion {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n questionnaireSectionId\r\n questionId\r\n responsibleRole\r\n sequence\r\n isDisabled\r\n activationRuleId\r\n activityType\r\n explanationRequiredChoices {\r\n id\r\n }\r\n reviewRequiredChoices {\r\n id\r\n }\r\n }\r\n`;\r\nexport const ReceivingFacilityRequestFieldsFragmentDoc = gql`\r\n fragment ReceivingFacilityRequestFields on ReceivingFacilityRequest {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n status\r\n cardId\r\n requestId\r\n medicalFacilityId\r\n requestLocationId\r\n companyId\r\n nonAcceptanceType\r\n nonAcceptanceReasonId\r\n referredToFacilityId\r\n }\r\n`;\r\nexport const RendezvousRequestFieldsFragmentDoc = gql`\r\n fragment RendezvousRequestFields on RendezvousRequest {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n type\r\n utilizationStatus\r\n requestLocationId\r\n companyId\r\n agencyLocationId\r\n agencyEta\r\n rendezvousLocationDescription\r\n contactInformation\r\n confirmedAt\r\n departedLzAt\r\n arrivedDestAt\r\n departedDestAt\r\n arrivedLzAt\r\n cancelledAt\r\n notes\r\n transportUnitNumber\r\n }\r\n`;\r\nexport const RequestFieldsFragmentDoc = gql`\r\n fragment RequestFields on Request {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n status\r\n requestedOperationType\r\n isStandbyRequest\r\n standbyActivationRequested\r\n missionConfiguration\r\n missionProfile\r\n companyId\r\n cancellationReasonId\r\n cancellationSecondaryReasonId\r\n cancellationReasonNotes\r\n requestedVehicleType\r\n primaryUnitServiceAreaId\r\n commitUnitToStandby\r\n assignmentDelayedTime\r\n assignmentDelayedReasonId\r\n regionId\r\n includeCompetitors\r\n transportOfferAlgorithmId\r\n transportOfferAlgorithm\r\n minimumFlightRule\r\n transportTrackingLink\r\n latestWeatherDeclineUnitId\r\n latestWeatherDeclineTime\r\n latestWeatherDeclineReasonId\r\n latestWeatherDeclineSecondaryReasonId\r\n webOrderCallType\r\n etloInMinutes\r\n atloInMinutes\r\n safetyQuestions {\r\n otherServiceDeclined\r\n otherServiceDescription\r\n otherServicesAreRespondingToTransferring\r\n otherServiceResponseDescription\r\n }\r\n requiredCapabilities {\r\n id\r\n }\r\n }\r\n`;\r\nexport const RequesterFieldsFragmentDoc = gql`\r\n fragment RequesterFields on Requester {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n companyId\r\n affiliationType\r\n caller\r\n roleId\r\n missionRole\r\n callbackNumber\r\n email\r\n facilityId\r\n agencyLocationId\r\n referringCompanyId\r\n referringAgencyLocationId\r\n referralReasonId\r\n referringRecordNumber\r\n specialtyTeamNotes\r\n specialtyTeamId\r\n careLevelRequested\r\n transferCenterId\r\n transferCenterNotes\r\n transportingAgencyLocationId\r\n isDoublePatient\r\n isWingToWing\r\n requestId\r\n specialtyTeamMembers {\r\n id\r\n }\r\n }\r\n`;\r\nexport const RequesterReferralReasonFieldsFragmentDoc = gql`\r\n fragment RequesterReferralReasonFields on RequesterReferralReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n }\r\n`;\r\nexport const RequesterRoleFieldsFragmentDoc = gql`\r\n fragment RequesterRoleFields on RequesterRole {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n }\r\n`;\r\nexport const RequestLocationFieldsFragmentDoc = gql`\r\n fragment RequestLocationFields on RequestLocation {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n type\r\n requestId\r\n companyId\r\n locationId\r\n timezoneCd\r\n isRotorWingLz\r\n medicalFacilityId\r\n roomNumber\r\n medicalFacilityUnitId\r\n notes\r\n groundContact\r\n estimatedRendezvousTimeInMinutes\r\n estimatedGroundTimeInMinutes\r\n fboId\r\n physicianId\r\n diversionReasonId\r\n diversionReasonOtherNotes\r\n isAutoAccepted\r\n dateConfirmed\r\n confirmedByUserId\r\n unConfirmed\r\n address {\r\n streetAddress\r\n city\r\n region\r\n postalCode\r\n country\r\n county\r\n gpsId\r\n coordinates {\r\n latitude\r\n longitude\r\n }\r\n }\r\n }\r\n`;\r\nexport const RequestPatientFieldsFragmentDoc = gql`\r\n fragment RequestPatientFields on RequestPatient {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n gender\r\n isIsolette\r\n requestId\r\n companyId\r\n patientId\r\n firstName\r\n lastName\r\n dateOfBirth\r\n weightInKg\r\n transportReasonId\r\n notes\r\n chiefComplaintNotes\r\n transportReasonCategory\r\n isIntubated\r\n numberOfDrips\r\n specialtyEquipment\r\n rideAlongRequested\r\n isoletteType\r\n isoletteNotes\r\n transferReasonId\r\n estimatedAgeInHours\r\n gcs\r\n bpSystolic\r\n bpDiastolic\r\n heartRate\r\n oxygenSaturation\r\n respiratoryRate\r\n temperatureInCelsius\r\n rideAlongWeightInKg\r\n medicalRecordNumber\r\n rideAlongName\r\n rideAlongDateOfBirth\r\n }\r\n`;\r\nexport const SystemTimerFieldsFragmentDoc = gql`\r\n fragment SystemTimerFields on SystemTimer {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n description\r\n commandName\r\n runIntervalInSeconds\r\n hasRunCondition\r\n isEnqueued\r\n lastRunDate\r\n }\r\n`;\r\nexport const TimelineFieldsFragmentDoc = gql`\r\n fragment TimelineFields on Timeline {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n companyId\r\n activationRuleId\r\n }\r\n`;\r\nexport const TimelineItemFieldsFragmentDoc = gql`\r\n fragment TimelineItemFields on TimelineItem {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n timestampTypeId\r\n required\r\n sequence\r\n timelineId\r\n }\r\n`;\r\nexport const TimestampFieldsFragmentDoc = gql`\r\n fragment TimestampFields on Timestamp {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n time\r\n typeId\r\n cardId\r\n companyId\r\n userId\r\n note\r\n requestId\r\n operationId\r\n personsInvolved\r\n }\r\n`;\r\nexport const TimestampTypeFieldsFragmentDoc = gql`\r\n fragment TimestampTypeFields on TimestampType {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n order\r\n systemTimestampType\r\n description\r\n companies {\r\n id\r\n }\r\n }\r\n`;\r\nexport const TrackedMessageFieldsFragmentDoc = gql`\r\n fragment TrackedMessageFields on TrackedMessage {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n recipientAddress\r\n body\r\n status\r\n recipientName\r\n subject\r\n fromName\r\n fromAddress\r\n doNotDivert\r\n medium\r\n vendorId\r\n vendorMessageId\r\n referenceNumber\r\n }\r\n`;\r\nexport const TransferReasonFieldsFragmentDoc = gql`\r\n fragment TransferReasonFields on TransferReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n }\r\n`;\r\nexport const TransportOfferFieldsFragmentDoc = gql`\r\n fragment TransportOfferFields on TransportOffer {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n status\r\n rank\r\n response\r\n wasBulkSkip\r\n isOnDelay\r\n isOneCallAgreement\r\n isInternalAgency\r\n requestId\r\n companyId\r\n distanceInMiles\r\n bearingInDegrees\r\n estimatedDepartureTimeInMinutes\r\n estimatedTimeEnRouteInMinutes\r\n offerTime\r\n crewNotified\r\n transportCheckInitiated\r\n notificationAcknowledged\r\n responseReceived\r\n declineReasonId\r\n declineSecondaryReasonId\r\n nonReferralReasonId\r\n nonReferralReasonNotes\r\n cancellationReasonId\r\n cancellationSecondaryReasonId\r\n cancellationReasonNotes\r\n outOfServiceEventId\r\n unitId\r\n vehicleId\r\n agencyLocationId\r\n unitDescription\r\n isReferral\r\n vehicleType\r\n patientOriginatesAtUnit\r\n homeBaseDistanceInMiles\r\n baseId\r\n preferredRank\r\n notes\r\n onBaseETAInMinutes\r\n specialtyTeamETLOInMinutes\r\n specialtyTeamETEInMinutes\r\n vehicleCoordinates {\r\n latitude\r\n longitude\r\n }\r\n }\r\n`;\r\nexport const TransportOfferOptionFieldsFragmentDoc = gql`\r\n fragment TransportOfferOptionFields on TransportOfferOption {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n includeAbortedUnit\r\n type\r\n requestId\r\n companyId\r\n requestedVehicleType\r\n transportOfferAlgorithm\r\n minimumFlightRule\r\n includeCompetitors\r\n requiredCapabilities {\r\n id\r\n }\r\n }\r\n`;\r\nexport const TransportReasonFieldsFragmentDoc = gql`\r\n fragment TransportReasonFields on TransportReason {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n operationType\r\n }\r\n`;\r\nexport const TripFieldsFragmentDoc = gql`\r\n fragment TripFields on Trip {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n operationId\r\n companyId\r\n vehicleId\r\n agencyId\r\n agencyLocationId\r\n calculatedLoadedMiles\r\n gpsLoadedMiles\r\n }\r\n`;\r\nexport const TripLegFieldsFragmentDoc = gql`\r\n fragment TripLegFields on TripLeg {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n status\r\n sequence\r\n tripId\r\n companyId\r\n estimatedDistanceInMiles\r\n departingOdometerReading\r\n departingNote\r\n arrivingOdometerReading\r\n arrivingNote\r\n isEmergent\r\n officialEteId\r\n calculatedEteId\r\n endingWaypointId\r\n startingWaypointId\r\n }\r\n`;\r\nexport const TripPassengerFieldsFragmentDoc = gql`\r\n fragment TripPassengerFields on TripPassenger {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n type\r\n tripId\r\n companyId\r\n weightInKg\r\n positionName\r\n positionType\r\n notificationAddress\r\n personId\r\n crewMemberId\r\n }\r\n`;\r\nexport const UnitActivationRuleFieldsFragmentDoc = gql`\r\n fragment UnitActivationRuleFields on UnitActivationRule {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n companyId\r\n unitId\r\n operationTypes\r\n missionRoleTypes\r\n maximumDistanceInMiles\r\n }\r\n`;\r\nexport const UnitEMSystemMappingFieldsFragmentDoc = gql`\r\n fragment UnitEMSystemMappingFields on UnitEMSystemMapping {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n resourceId\r\n sendGps\r\n unitId\r\n companyId\r\n divisionName\r\n }\r\n`;\r\nexport const UnitNoteFieldsFragmentDoc = gql`\r\n fragment UnitNoteFields on UnitNote {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n content\r\n noteTime\r\n unitId\r\n companyId\r\n authorId\r\n noteCategory\r\n noteMetadataJson\r\n }\r\n`;\r\nexport const UnitStatusHistoryEntryFieldsFragmentDoc = gql`\r\n fragment UnitStatusHistoryEntryFields on UnitStatusHistoryEntry {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n startTime\r\n endTime\r\n status\r\n unitId\r\n companyId\r\n }\r\n`;\r\nexport const UnitSummaryFieldsFragmentDoc = gql`\r\n fragment UnitSummaryFields on UnitSummary {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n id\r\n name\r\n abbreviation\r\n status\r\n weatherStatus\r\n isExternallyManaged\r\n maximumFlightRule\r\n isOnDelay\r\n isEnabled\r\n isSpare\r\n baseId\r\n regionId\r\n companyId\r\n isAdministrative\r\n isHidden\r\n isThirdPartyUnit\r\n etloInMinutes\r\n pilotNotes\r\n lastPilotUpdateTime\r\n lastPilotUpdateById\r\n plannedAvailableNotes\r\n plannedAvailableTime\r\n lastPilotUpdateName\r\n baseTimezoneCd\r\n vehicleSummaryId\r\n vehicleId\r\n communicationCenterId\r\n shifts {\r\n id\r\n name\r\n startTimeInMinutes\r\n endTimeInMinutes\r\n }\r\n outOfServiceEvents {\r\n id\r\n type\r\n eventNumber\r\n estimatedEndTime\r\n reasonName\r\n reasonId\r\n startTime\r\n notes\r\n }\r\n positions {\r\n id\r\n name\r\n type\r\n isFlightCrew\r\n isNonEmployee\r\n isNonCompliant\r\n notificationAddress\r\n teamMemberId\r\n teamMemberFirstName\r\n teamMemberLastName\r\n nonComplianceReason\r\n }\r\n }\r\n`;\r\nexport const VehiclePositionSummaryFieldsFragmentDoc = gql`\r\n fragment VehiclePositionSummaryFields on VehiclePositionSummary {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n id\r\n vehicleId\r\n latitude\r\n longitude\r\n positionSource\r\n positionTime\r\n companyId\r\n lastPositionReportId\r\n lastQualifyingPositionReportTime\r\n etlo\r\n lastGpsAutoPositionTime\r\n }\r\n`;\r\nexport const VehicleSummaryFieldsFragmentDoc = gql`\r\n fragment VehicleSummaryFields on VehicleSummary {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n id\r\n type\r\n registrationNumber\r\n unitSummaryId\r\n regionId\r\n status\r\n statusDescription\r\n vehicleDispositionId\r\n unitId\r\n companyId\r\n serialNumber\r\n dispatchCompanyId\r\n makeName\r\n modelName\r\n etlo\r\n eta\r\n currentCardNumber\r\n currentCardSummaryId\r\n lastQualifyingPositionReportTime\r\n currentOrNextLegSequence\r\n totalLegCount\r\n communicationCenterId\r\n currentCardId\r\n from {\r\n id\r\n name\r\n abbreviation\r\n type\r\n }\r\n to {\r\n id\r\n name\r\n abbreviation\r\n type\r\n }\r\n latestPositionReportSummary {\r\n id\r\n positionTime\r\n source\r\n }\r\n lastKnownCoordinates {\r\n latitude\r\n longitude\r\n }\r\n }\r\n`;\r\nexport const WaypointFieldsFragmentDoc = gql`\r\n fragment WaypointFields on Waypoint {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n type\r\n companyId\r\n timezoneCd\r\n isRotorWingLz\r\n arrivalTime\r\n departureTime\r\n locationId\r\n isPatientPickup\r\n isPatientDropoff\r\n arrivingType\r\n estimatedDurationId\r\n currentEtaId\r\n address {\r\n streetAddress\r\n city\r\n region\r\n postalCode\r\n country\r\n county\r\n gpsId\r\n coordinates {\r\n latitude\r\n longitude\r\n }\r\n }\r\n }\r\n`;\r\nexport const WebOrderLogFieldsFragmentDoc = gql`\r\n fragment WebOrderLogFields on WebOrderLog {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n requestJson\r\n name\r\n isSuccess\r\n errors\r\n entityId\r\n entityType\r\n dateAcknowledged\r\n acknowledgedById\r\n changes {\r\n id\r\n entityType\r\n fieldName\r\n oldValue\r\n newValue\r\n }\r\n }\r\n`;\r\nexport const AgencyFieldsFragmentDoc = gql`\r\n fragment AgencyFields on Agency {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n type\r\n isCompetitor\r\n isInternallyOwned\r\n parentCompanyId\r\n notes\r\n }\r\n`;\r\nexport const AgencyLocationFieldsFragmentDoc = gql`\r\n fragment AgencyLocationFields on AgencyLocation {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n agencyId\r\n emailAddress\r\n primaryPhoneNumber\r\n secondaryPhoneNumber\r\n smsPhoneNumber\r\n faxPhoneNumber\r\n notes\r\n vehicleType\r\n estimatedDepartureTimeInMinutes\r\n locationId\r\n }\r\n`;\r\nexport const AirportFieldsFragmentDoc = gql`\r\n fragment AirportFields on Airport {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n code\r\n airportType\r\n airportCodeType\r\n sourceSystemId\r\n preferredFboId\r\n locationId\r\n }\r\n`;\r\nexport const ArchiveLogFieldsFragmentDoc = gql`\r\n fragment ArchiveLogFields on ArchiveLog {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n archiveEntityType\r\n archivedUntilDate\r\n isError\r\n notes\r\n }\r\n`;\r\nexport const BaseFieldsFragmentDoc = gql`\r\n fragment BaseFields on Base {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n locationId\r\n businessModel\r\n companyId\r\n plannedOperationsStart\r\n operationsStarted\r\n operationsTerminated\r\n dateOfMaturity\r\n primaryPhoneNumber\r\n estimatedLiftoffTime\r\n licenseNumber\r\n enableFlightLogDutyLog\r\n dispatchBaseId\r\n aviationCompanyId\r\n workdayBaseId\r\n gmrWorkdayLocationId\r\n dateLastUpdatedFromGMRWorkday\r\n pilotPhoneNumber\r\n crewPhoneNumber1\r\n crewPhoneNumber2\r\n hoursOfOperation {\r\n is24Hours\r\n startTime\r\n endTime\r\n }\r\n }\r\n`;\r\nexport const BaseMedicalControlContactFieldsFragmentDoc = gql`\r\n fragment BaseMedicalControlContactFields on BaseMedicalControlContact {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n personId\r\n rank\r\n baseId\r\n companyId\r\n specialty\r\n }\r\n`;\r\nexport const BaseMedicalControlContactStateFieldsFragmentDoc = gql`\r\n fragment BaseMedicalControlContactStateFields on BaseMedicalControlContactState {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n stateAbbrevation\r\n companyId\r\n baseMedicalControlContactId\r\n }\r\n`;\r\nexport const CapabilityFieldsFragmentDoc = gql`\r\n fragment CapabilityFields on Capability {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n description\r\n entityType\r\n }\r\n`;\r\nexport const CommunicationCenterTransportOfferOptionFieldsFragmentDoc = gql`\r\n fragment CommunicationCenterTransportOfferOptionFields on CommunicationCenterTransportOfferOption {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n includeAbortedUnit\r\n requestedVehicleType\r\n transportOfferAlgorithm\r\n minimumFlightRule\r\n includeCompetitors\r\n communicationCenterId\r\n requiredCapabilities {\r\n id\r\n }\r\n }\r\n`;\r\nexport const CompanyFieldsFragmentDoc = gql`\r\n fragment CompanyFields on Company {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n companyCode\r\n includeCompetitors\r\n hasPrivateUnits\r\n isOemCompany\r\n gpsFeedResetsPositionReportTime\r\n unitRemainsInServiceWithNoVehicle\r\n enableNotificationGroupTypes\r\n restrictRiskAnalysisAcknowledgementToOCCRole\r\n imageUri\r\n gLCode\r\n callNumberPrefix\r\n timezoneCd\r\n flightFollowingFields\r\n requireSkipReasonsForNonCompanyTransportOffers\r\n crewPatientInfoPageNotificationTemplateId\r\n transportCheckTimerDurationInMinutes\r\n }\r\n`;\r\nexport const CompleteFlightInstanceFieldsFragmentDoc = gql`\r\n fragment CompleteFlightInstanceFields on CompleteFlightInstance {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n completeFlightInstanceName\r\n url\r\n username\r\n apiKey\r\n isPrimary\r\n }\r\n`;\r\nexport const DepartmentFieldsFragmentDoc = gql`\r\n fragment DepartmentFields on Department {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n code\r\n }\r\n`;\r\nexport const EntityCapabilityFieldsFragmentDoc = gql`\r\n fragment EntityCapabilityFields on EntityCapability {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n capabilityId\r\n entityId\r\n entityType\r\n }\r\n`;\r\nexport const ExternalReferenceFieldsFragmentDoc = gql`\r\n fragment ExternalReferenceFields on ExternalReference {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n externalKey\r\n externalSystem\r\n entityId\r\n entityType\r\n }\r\n`;\r\nexport const FboFieldsFragmentDoc = gql`\r\n fragment FboFields on Fbo {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n airportId\r\n fboType\r\n fuelBrand\r\n sourceSystemId\r\n locationId\r\n }\r\n`;\r\nexport const FuelTankFieldsFragmentDoc = gql`\r\n fragment FuelTankFields on FuelTank {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n code\r\n name\r\n locationId\r\n companyId\r\n operationsStarted\r\n operationsEnded\r\n sourceSystemId\r\n baseId\r\n locationName\r\n }\r\n`;\r\nexport const LocationFieldsFragmentDoc = gql`\r\n fragment LocationFields on Location {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n locationType\r\n timezoneCd\r\n isRotorWingLz\r\n notes\r\n sourceSystemId\r\n closedDate\r\n duplicateOfId\r\n isLandingZoneOutOfService\r\n landingZoneOutOfServiceNotes\r\n landingZoneOutOfServiceExpirationDate\r\n landingZoneOutOfServiceReasonId\r\n address {\r\n streetAddress\r\n city\r\n region\r\n postalCode\r\n country\r\n county\r\n gpsId\r\n coordinates {\r\n latitude\r\n longitude\r\n }\r\n }\r\n }\r\n`;\r\nexport const MedicalFacilityContactFieldsFragmentDoc = gql`\r\n fragment MedicalFacilityContactFields on MedicalFacilityContact {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n medicalFacilityId\r\n emailAddress\r\n primaryPhoneNumber\r\n secondaryPhoneNumber\r\n smsPhoneNumber\r\n faxPhoneNumber\r\n notes\r\n }\r\n`;\r\nexport const MedicalFacilityFieldsFragmentDoc = gql`\r\n fragment MedicalFacilityFields on MedicalFacility {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n npi\r\n providerNumber\r\n sourceSystemId\r\n masterDataSetId\r\n firmType\r\n hospitalType\r\n hospitalSpecialization\r\n website\r\n defaultLandingZoneId\r\n defaultFixedWingLandingZoneId\r\n notes\r\n stateSourceSystemId\r\n nemsisCode\r\n stateFacilityName\r\n status\r\n archiveNotes\r\n archiveClearedDate\r\n locationId\r\n }\r\n`;\r\nexport const MedicalFacilityPhysicianFieldsFragmentDoc = gql`\r\n fragment MedicalFacilityPhysicianFields on MedicalFacilityPhysician {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n physicianId\r\n medicalFacilityId\r\n }\r\n`;\r\nexport const MedicalFacilityUnitFieldsFragmentDoc = gql`\r\n fragment MedicalFacilityUnitFields on MedicalFacilityUnit {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n medicalFacilityId\r\n phoneNumber\r\n }\r\n`;\r\nexport const MedicalUnitFieldsFragmentDoc = gql`\r\n fragment MedicalUnitFields on MedicalUnit {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n }\r\n`;\r\nexport const PhysicianFieldsFragmentDoc = gql`\r\n fragment PhysicianFields on Physician {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n firstName\r\n lastName\r\n }\r\n`;\r\nexport const ProgramBaseFieldsFragmentDoc = gql`\r\n fragment ProgramBaseFields on ProgramBase {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n baseId\r\n programId\r\n companyId\r\n startTime\r\n endTime\r\n }\r\n`;\r\nexport const ProgramFieldsFragmentDoc = gql`\r\n fragment ProgramFields on Program {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n code\r\n companyId\r\n adminId\r\n }\r\n`;\r\nexport const RamcoVehicleConfigurationFieldsFragmentDoc = gql`\r\n fragment RamcoVehicleConfigurationFields on RamcoVehicleConfiguration {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n maintenanceSystemId\r\n tailNumber\r\n modelNumber\r\n companyCode\r\n }\r\n`;\r\nexport const RegionBaseFieldsFragmentDoc = gql`\r\n fragment RegionBaseFields on RegionBase {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n baseId\r\n regionId\r\n companyId\r\n }\r\n`;\r\nexport const RegionFieldsFragmentDoc = gql`\r\n fragment RegionFields on Region {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n communicationCenterId\r\n isTransferCenterRegion\r\n regionGroupId\r\n companyId\r\n timezoneCd\r\n emSystemDivisionName\r\n dispatchNumber\r\n fixedWingPreferredThresholdInNauticalMiles\r\n }\r\n`;\r\nexport const RegionGroupFieldsFragmentDoc = gql`\r\n fragment RegionGroupFields on RegionGroup {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n departmentId\r\n companyId\r\n }\r\n`;\r\nexport const SpecialtyTeamFieldsFragmentDoc = gql`\r\n fragment SpecialtyTeamFields on SpecialtyTeam {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n affiliationId\r\n companyId\r\n }\r\n`;\r\nexport const SpecialtyTeamMemberFieldsFragmentDoc = gql`\r\n fragment SpecialtyTeamMemberFields on SpecialtyTeamMember {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n specialtyTeamId\r\n teamMemberId\r\n companyId\r\n weightInKg\r\n }\r\n`;\r\nexport const SupportRequestFieldsFragmentDoc = gql`\r\n fragment SupportRequestFields on SupportRequest {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n supportRequestType\r\n isEmailSent\r\n supportRequestStatus\r\n personId\r\n companyId\r\n subject\r\n content\r\n }\r\n`;\r\nexport const TimezoneFieldsFragmentDoc = gql`\r\n fragment TimezoneFields on Timezone {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n abbreviation\r\n code\r\n isDst\r\n utcOffset\r\n }\r\n`;\r\nexport const TransferCenterFieldsFragmentDoc = gql`\r\n fragment TransferCenterFields on TransferCenter {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n communicationCenterId\r\n companyId\r\n description\r\n }\r\n`;\r\nexport const TrmUserAgencyFieldsFragmentDoc = gql`\r\n fragment TrmUserAgencyFields on TrmUserAgency {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n trmUserId\r\n agencyId\r\n companyId\r\n }\r\n`;\r\nexport const TrmUserFieldsFragmentDoc = gql`\r\n fragment TrmUserFields on TrmUser {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n emailAddress\r\n firstName\r\n lastName\r\n phoneNumber\r\n userStatus\r\n companyId\r\n personId\r\n }\r\n`;\r\nexport const TrmUserMedicalFacilityFieldsFragmentDoc = gql`\r\n fragment TrmUserMedicalFacilityFields on TrmUserMedicalFacility {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n trmUserId\r\n medicalFacilityId\r\n companyId\r\n }\r\n`;\r\nexport const TrmUserProgramFieldsFragmentDoc = gql`\r\n fragment TrmUserProgramFields on TrmUserProgram {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n trmUserId\r\n programId\r\n isPreferred\r\n companyId\r\n }\r\n`;\r\nexport const VehicleConfigurationClassFieldsFragmentDoc = gql`\r\n fragment VehicleConfigurationClassFields on VehicleConfigurationClass {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n legacyName\r\n engineCount\r\n maintenanceSystemId\r\n }\r\n`;\r\nexport const VehicleMaintenanceFieldsFragmentDoc = gql`\r\n fragment VehicleMaintenanceFields on VehicleMaintenance {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n companyId\r\n notes\r\n isReleasedFromOCF\r\n vehicleId\r\n deferralDueDates {\r\n id\r\n dueDate\r\n triggerValue\r\n notes\r\n }\r\n nextDues {\r\n id\r\n typeId\r\n cycleType\r\n value\r\n triggerValue\r\n notes\r\n inTolerance\r\n }\r\n maintenanceParams {\r\n endingHobbs\r\n airframeTime\r\n totalLandings\r\n engine1 {\r\n time\r\n starts\r\n }\r\n engine2 {\r\n time\r\n starts\r\n }\r\n }\r\n }\r\n`;\r\nexport const VehicleMakeFieldsFragmentDoc = gql`\r\n fragment VehicleMakeFields on VehicleMake {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n }\r\n`;\r\nexport const AccessibleItemFieldsFragmentDoc = gql`\r\n fragment AccessibleItemFields on AccessibleItem {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n type\r\n entityId\r\n personId\r\n userRoles\r\n }\r\n`;\r\nexport const CommunicationCenterFieldsFragmentDoc = gql`\r\n fragment CommunicationCenterFields on CommunicationCenter {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n includeCompetitors\r\n playAlertForManualPositionReports\r\n companyId\r\n timezoneCd\r\n primaryPhoneNumber\r\n emailAddress\r\n showReferToGmrWarning\r\n }\r\n`;\r\nexport const ControlZoneFieldsFragmentDoc = gql`\r\n fragment ControlZoneFields on ControlZone {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n name\r\n companyId\r\n }\r\n`;\r\nexport const VehicleControlZoneFieldsFragmentDoc = gql`\r\n fragment VehicleControlZoneFields on VehicleControlZone {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n companyId\r\n controlZoneId\r\n vehicleId\r\n }\r\n`;\r\nexport const BaseControlZoneFieldsFragmentDoc = gql`\r\n fragment BaseControlZoneFields on BaseControlZone {\r\n dateLastUpdated\r\n dateCreated\r\n dateDeleted\r\n lastUpdatedById\r\n id\r\n controlZoneId\r\n baseId\r\n companyId\r\n }\r\n`;\r\nexport const UserDataContextFragmentDoc = gql`\r\n fragment UserDataContext on Query {\r\n authenticatedIdentity {\r\n ...PersonFields\r\n }\r\n userIdentity {\r\n ...PersonFields\r\n accessibleItems {\r\n ...AccessibleItemFields\r\n }\r\n }\r\n communicationCenters {\r\n all {\r\n items {\r\n ...CommunicationCenterFields\r\n states\r\n }\r\n }\r\n }\r\n controlZones {\r\n all {\r\n items {\r\n ...ControlZoneFields\r\n }\r\n }\r\n }\r\n vehicleControlZones {\r\n all {\r\n items {\r\n ...VehicleControlZoneFields\r\n }\r\n }\r\n }\r\n baseControlZones {\r\n all {\r\n items {\r\n ...BaseControlZoneFields\r\n }\r\n }\r\n }\r\n }\r\n ${PersonFieldsFragmentDoc}\r\n ${AccessibleItemFieldsFragmentDoc}\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n ${ControlZoneFieldsFragmentDoc}\r\n ${VehicleControlZoneFieldsFragmentDoc}\r\n ${BaseControlZoneFieldsFragmentDoc}\r\n`;\r\nexport const AsbPageComponent_FetchAllVehiclesDocument = gql`\r\n query AsbPageComponent_FetchAllVehicles($filter: VehicleFilter, $first: Int, $skip: Int) {\r\n vehicles {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...VehicleFields\r\n vehicleMaintenances {\r\n ...VehicleMaintenanceFields\r\n }\r\n vehicleStateInspections {\r\n ...VehicleStateInspectionFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleFieldsFragmentDoc}\r\n ${VehicleMaintenanceFieldsFragmentDoc}\r\n ${VehicleStateInspectionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AsbPageComponent_FetchAllVehiclesGQL extends Apollo.Query<\r\n AsbPageComponent_FetchAllVehiclesQuery,\r\n AsbPageComponent_FetchAllVehiclesQueryVariables\r\n> {\r\n document = AsbPageComponent_FetchAllVehiclesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const AsbPageComponent_FetchAllNextDueTypesDocument = gql`\r\n query AsbPageComponent_FetchAllNextDueTypes($filter: NextDueTypeFilter, $first: Int, $skip: Int) {\r\n nextDueTypes {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n id\r\n name\r\n dataType\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AsbPageComponent_FetchAllNextDueTypesGQL extends Apollo.Query<\r\n AsbPageComponent_FetchAllNextDueTypesQuery,\r\n AsbPageComponent_FetchAllNextDueTypesQueryVariables\r\n> {\r\n document = AsbPageComponent_FetchAllNextDueTypesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const AsbPageComponent_FetchAllVehicleModelsDocument = gql`\r\n query AsbPageComponent_FetchAllVehicleModels(\r\n $filter: VehicleModelFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n vehicleModels {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...VehicleModelFields\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleModelFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AsbPageComponent_FetchAllVehicleModelsGQL extends Apollo.Query<\r\n AsbPageComponent_FetchAllVehicleModelsQuery,\r\n AsbPageComponent_FetchAllVehicleModelsQueryVariables\r\n> {\r\n document = AsbPageComponent_FetchAllVehicleModelsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GlobalDataContextService_FetchDocument = gql`\r\n query GlobalDataContextService_Fetch {\r\n ...UserDataContext\r\n units {\r\n summaries(filter: { includeThirdParty: false, tcsManagedUnits: true }) {\r\n items {\r\n ...UnitSummaryFields\r\n }\r\n meta {\r\n total\r\n __typename\r\n }\r\n }\r\n }\r\n vehicles {\r\n summaries {\r\n items {\r\n ...VehicleSummaryFields\r\n }\r\n meta {\r\n total\r\n __typename\r\n }\r\n }\r\n }\r\n requesterReferralReasons {\r\n all {\r\n items {\r\n ...RequesterReferralReasonFields\r\n }\r\n }\r\n }\r\n outOfServiceReasons {\r\n all {\r\n items {\r\n ...OutOfServiceReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n outOfServiceSecondaryReasons {\r\n all {\r\n items {\r\n ...OutOfServiceSecondaryReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n companies {\r\n all {\r\n items {\r\n ...CompanyFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n regionGroups {\r\n all {\r\n items {\r\n ...RegionGroupFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n regions {\r\n all {\r\n items {\r\n ...RegionFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n applicationNotifications {\r\n all {\r\n items {\r\n ...ApplicationNotificationFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n configurationSettings {\r\n global {\r\n ...ConfigurationSettingFields\r\n }\r\n }\r\n gis {\r\n allTimezones {\r\n ...TimezoneFields\r\n }\r\n }\r\n declineReasons {\r\n all {\r\n items {\r\n ...DeclineReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n declineSecondaryReasons {\r\n all {\r\n items {\r\n ...DeclineSecondaryReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n declineCategories {\r\n all {\r\n items {\r\n ...DeclineCategoryFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n cancellationReasons {\r\n all {\r\n items {\r\n ...CancellationReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n cancellationSecondaryReasons {\r\n all {\r\n items {\r\n ...CancellationSecondaryReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n capabilities {\r\n all {\r\n items {\r\n ...CapabilityFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n timestampTypes {\r\n all {\r\n items {\r\n ...TimestampTypeFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n transportReasons {\r\n all {\r\n items {\r\n ...TransportReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n transferReasons {\r\n all {\r\n items {\r\n ...TransferReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n diversionReasons {\r\n all {\r\n items {\r\n ...DiversionReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n nonReferralReasons {\r\n all {\r\n items {\r\n ...NonReferralReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n facilityNonAcceptanceReasons {\r\n all {\r\n items {\r\n ...FacilityNonAcceptanceReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n externalActionTypes {\r\n all {\r\n items {\r\n ...ExternalActionTypeFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n archiveLogs {\r\n latestAll {\r\n items {\r\n ...ArchiveLogFields\r\n }\r\n }\r\n }\r\n }\r\n ${UserDataContextFragmentDoc}\r\n ${UnitSummaryFieldsFragmentDoc}\r\n ${VehicleSummaryFieldsFragmentDoc}\r\n ${RequesterReferralReasonFieldsFragmentDoc}\r\n ${OutOfServiceReasonFieldsFragmentDoc}\r\n ${OutOfServiceSecondaryReasonFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${RegionGroupFieldsFragmentDoc}\r\n ${RegionFieldsFragmentDoc}\r\n ${ApplicationNotificationFieldsFragmentDoc}\r\n ${ConfigurationSettingFieldsFragmentDoc}\r\n ${TimezoneFieldsFragmentDoc}\r\n ${DeclineReasonFieldsFragmentDoc}\r\n ${DeclineSecondaryReasonFieldsFragmentDoc}\r\n ${DeclineCategoryFieldsFragmentDoc}\r\n ${CancellationReasonFieldsFragmentDoc}\r\n ${CancellationSecondaryReasonFieldsFragmentDoc}\r\n ${CapabilityFieldsFragmentDoc}\r\n ${TimestampTypeFieldsFragmentDoc}\r\n ${TransportReasonFieldsFragmentDoc}\r\n ${TransferReasonFieldsFragmentDoc}\r\n ${DiversionReasonFieldsFragmentDoc}\r\n ${NonReferralReasonFieldsFragmentDoc}\r\n ${FacilityNonAcceptanceReasonFieldsFragmentDoc}\r\n ${ExternalActionTypeFieldsFragmentDoc}\r\n ${ArchiveLogFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GlobalDataContextService_FetchGQL extends Apollo.Query<\r\n GlobalDataContextService_FetchQuery,\r\n GlobalDataContextService_FetchQueryVariables\r\n> {\r\n document = GlobalDataContextService_FetchDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CardSearchComponent_SearchForCardsDocument = gql`\r\n query CardSearchComponent_SearchForCards($filter: CardSearchFilter, $first: Int, $skip: Int) {\r\n cards {\r\n search(filter: $filter, skip: $skip, first: $first) {\r\n meta {\r\n total\r\n }\r\n items {\r\n id\r\n cardNumber\r\n companyId\r\n companyCode\r\n dateCreated\r\n dateDeleted\r\n status\r\n callStatus\r\n isBillable\r\n isLocked\r\n lastOfferedUnit {\r\n id\r\n name\r\n }\r\n operation {\r\n id\r\n status\r\n type\r\n unit {\r\n id\r\n name\r\n }\r\n vehicle {\r\n id\r\n registrationNumber\r\n }\r\n }\r\n request {\r\n id\r\n status\r\n requestedOperationType\r\n pickupLocation {\r\n id\r\n name\r\n type\r\n locationId\r\n }\r\n dropoffLocation {\r\n id\r\n name\r\n type\r\n locationId\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CardSearchComponent_SearchForCardsGQL extends Apollo.Query<\r\n CardSearchComponent_SearchForCardsQuery,\r\n CardSearchComponent_SearchForCardsQueryVariables\r\n> {\r\n document = CardSearchComponent_SearchForCardsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NewCardSearchComponent_SearchForCardsDocument = gql`\r\n query NewCardSearchComponent_SearchForCards(\r\n $filter: CardSearchFilterV2\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n cards {\r\n searchv2(filter: $filter, skip: $skip, first: $first) {\r\n meta {\r\n total\r\n }\r\n items {\r\n id\r\n cardNumber\r\n createdById\r\n createdBy\r\n companyId\r\n companyCode\r\n dateCreated\r\n dateDeleted\r\n status\r\n callStatus\r\n isBillable\r\n isLocked\r\n lastOfferedUnit {\r\n id\r\n name\r\n }\r\n operation {\r\n id\r\n status\r\n type\r\n unit {\r\n id\r\n name\r\n }\r\n vehicle {\r\n id\r\n registrationNumber\r\n }\r\n }\r\n request {\r\n id\r\n status\r\n requestedOperationType\r\n pickupLocation {\r\n id\r\n name\r\n type\r\n locationId\r\n }\r\n dropoffLocation {\r\n id\r\n name\r\n type\r\n locationId\r\n }\r\n }\r\n region {\r\n id\r\n name\r\n communicationCenter {\r\n id\r\n name\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NewCardSearchComponent_SearchForCardsGQL extends Apollo.Query<\r\n NewCardSearchComponent_SearchForCardsQuery,\r\n NewCardSearchComponent_SearchForCardsQueryVariables\r\n> {\r\n document = NewCardSearchComponent_SearchForCardsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NewCardSearchComponent_FetchAllPeopleDocument = gql`\r\n query NewCardSearchComponent_FetchAllPeople($nameLike: String, $personId: ID, $companyId: ID) {\r\n people {\r\n all(filter: { nameLike: $nameLike, personId: $personId, companyId: $companyId }, first: 25) {\r\n items {\r\n ...PersonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${PersonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NewCardSearchComponent_FetchAllPeopleGQL extends Apollo.Query<\r\n NewCardSearchComponent_FetchAllPeopleQuery,\r\n NewCardSearchComponent_FetchAllPeopleQueryVariables\r\n> {\r\n document = NewCardSearchComponent_FetchAllPeopleDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NewCardSearchComponent_FetchAllAgencyLocationsDocument = gql`\r\n query NewCardSearchComponent_FetchAllAgencyLocations(\r\n $filter: AgencyLocationFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n agencyLocations {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...AgencyLocationFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${AgencyLocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NewCardSearchComponent_FetchAllAgencyLocationsGQL extends Apollo.Query<\r\n NewCardSearchComponent_FetchAllAgencyLocationsQuery,\r\n NewCardSearchComponent_FetchAllAgencyLocationsQueryVariables\r\n> {\r\n document = NewCardSearchComponent_FetchAllAgencyLocationsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NewCardSearchComponent_FetchAllCommunicationCentersDocument = gql`\r\n query NewCardSearchComponent_FetchAllCommunicationCenters(\r\n $filter: CommunicationCenterFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n communicationCenters {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...CommunicationCenterFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NewCardSearchComponent_FetchAllCommunicationCentersGQL extends Apollo.Query<\r\n NewCardSearchComponent_FetchAllCommunicationCentersQuery,\r\n NewCardSearchComponent_FetchAllCommunicationCentersQueryVariables\r\n> {\r\n document = NewCardSearchComponent_FetchAllCommunicationCentersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OosRumEventsComponent_FetchOosDashboardEventsDocument = gql`\r\n query OosRumEventsComponent_FetchOosDashboardEvents(\r\n $filter: OutOfServiceEventDashboardDataFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n outOfServiceEvents {\r\n dashboard(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n id\r\n eventNumber\r\n startTime\r\n endTime\r\n registrationNumber\r\n unitVehicleTailNumber\r\n companyId\r\n communicationCenterName\r\n reasonId\r\n reasonName\r\n secondaryReasonId\r\n secondaryReasonName\r\n unitName\r\n baseName\r\n estimatedEndTime\r\n vehicleId\r\n typeName\r\n entityType\r\n communicationCenterId\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OosRumEventsComponent_FetchOosDashboardEventsGQL extends Apollo.Query<\r\n OosRumEventsComponent_FetchOosDashboardEventsQuery,\r\n OosRumEventsComponent_FetchOosDashboardEventsQueryVariables\r\n> {\r\n document = OosRumEventsComponent_FetchOosDashboardEventsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OosRumNotificationAddDialogComponent_FetchAllNotificationTemplatesDocument = gql`\r\n query OosRumNotificationAddDialogComponent_FetchAllNotificationTemplates(\r\n $filter: NotificationTemplateFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n notificationTemplates {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...NotificationTemplateFields\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationTemplateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OosRumNotificationAddDialogComponent_FetchAllNotificationTemplatesGQL extends Apollo.Query<\r\n OosRumNotificationAddDialogComponent_FetchAllNotificationTemplatesQuery,\r\n OosRumNotificationAddDialogComponent_FetchAllNotificationTemplatesQueryVariables\r\n> {\r\n document = OosRumNotificationAddDialogComponent_FetchAllNotificationTemplatesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OosRumNotificationAddDialogComponent_DeriveOosTemplateDocument = gql`\r\n query OosRumNotificationAddDialogComponent_DeriveOosTemplate(\r\n $outOfServiceEventId: ID!\r\n $templateId: ID!\r\n ) {\r\n notificationTemplates {\r\n deriveOOSTemplate(outOfServiceEventId: $outOfServiceEventId, templateId: $templateId) {\r\n activityId\r\n responseCode\r\n errors\r\n data {\r\n recipients {\r\n name\r\n address\r\n }\r\n subject\r\n body\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OosRumNotificationAddDialogComponent_DeriveOosTemplateGQL extends Apollo.Query<\r\n OosRumNotificationAddDialogComponent_DeriveOosTemplateQuery,\r\n OosRumNotificationAddDialogComponent_DeriveOosTemplateQueryVariables\r\n> {\r\n document = OosRumNotificationAddDialogComponent_DeriveOosTemplateDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OosRumAddDialogComponent_FetchOosEventsDocument = gql`\r\n query OosRumAddDialogComponent_FetchOosEvents(\r\n $filter: OutOfServiceEventDashboardDataFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n outOfServiceEvents {\r\n dashboard(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n id\r\n eventNumber\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OosRumAddDialogComponent_FetchOosEventsGQL extends Apollo.Query<\r\n OosRumAddDialogComponent_FetchOosEventsQuery,\r\n OosRumAddDialogComponent_FetchOosEventsQueryVariables\r\n> {\r\n document = OosRumAddDialogComponent_FetchOosEventsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OosRumAddDialogComponent_FetchUnitPositionsByUnitIdDocument = gql`\r\n query OosRumAddDialogComponent_FetchUnitPositionsByUnitId($unitId: ID!) {\r\n units {\r\n byId(id: $unitId) {\r\n id\r\n positions {\r\n ...UnitPositionFields\r\n }\r\n }\r\n }\r\n }\r\n ${UnitPositionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OosRumAddDialogComponent_FetchUnitPositionsByUnitIdGQL extends Apollo.Query<\r\n OosRumAddDialogComponent_FetchUnitPositionsByUnitIdQuery,\r\n OosRumAddDialogComponent_FetchUnitPositionsByUnitIdQueryVariables\r\n> {\r\n document = OosRumAddDialogComponent_FetchUnitPositionsByUnitIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OosRumAddDialogComponent_FetchVehiclesDocument = gql`\r\n query OosRumAddDialogComponent_FetchVehicles($filter: VehicleFilter, $first: Int, $skip: Int) {\r\n vehicles {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n id\r\n registrationNumber\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OosRumAddDialogComponent_FetchVehiclesGQL extends Apollo.Query<\r\n OosRumAddDialogComponent_FetchVehiclesQuery,\r\n OosRumAddDialogComponent_FetchVehiclesQueryVariables\r\n> {\r\n document = OosRumAddDialogComponent_FetchVehiclesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OosRumNotificationsComponent_FetchOosDashboardNotificationsDocument = gql`\r\n query OosRumNotificationsComponent_FetchOosDashboardNotifications(\r\n $filter: NotificationFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n notifications {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...NotificationFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OosRumNotificationsComponent_FetchOosDashboardNotificationsGQL extends Apollo.Query<\r\n OosRumNotificationsComponent_FetchOosDashboardNotificationsQuery,\r\n OosRumNotificationsComponent_FetchOosDashboardNotificationsQueryVariables\r\n> {\r\n document = OosRumNotificationsComponent_FetchOosDashboardNotificationsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OosRumNotificationsComponent_FetchAllNotificationTemplatesDocument = gql`\r\n query OosRumNotificationsComponent_FetchAllNotificationTemplates(\r\n $filter: NotificationTemplateFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n notificationTemplates {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...NotificationTemplateFields\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationTemplateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OosRumNotificationsComponent_FetchAllNotificationTemplatesGQL extends Apollo.Query<\r\n OosRumNotificationsComponent_FetchAllNotificationTemplatesQuery,\r\n OosRumNotificationsComponent_FetchAllNotificationTemplatesQueryVariables\r\n> {\r\n document = OosRumNotificationsComponent_FetchAllNotificationTemplatesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CardTimelineComponent_FetchTimelineItemsDocument = gql`\r\n query CardTimelineComponent_FetchTimelineItems(\r\n $filter: TimelineItemFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n timelineItems {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...TimelineItemFields\r\n timeline {\r\n ...TimelineFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${TimelineItemFieldsFragmentDoc}\r\n ${TimelineFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CardTimelineComponent_FetchTimelineItemsGQL extends Apollo.Query<\r\n CardTimelineComponent_FetchTimelineItemsQuery,\r\n CardTimelineComponent_FetchTimelineItemsQueryVariables\r\n> {\r\n document = CardTimelineComponent_FetchTimelineItemsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const RequestLocationFormComponent_FetchMedicalFacilityEntitiesDocument = gql`\r\n query RequestLocationFormComponent_FetchMedicalFacilityEntities($id: ID!) {\r\n medicalFacilities {\r\n byId(id: $id) {\r\n ...MedicalFacilityFields\r\n location {\r\n ...LocationFields\r\n }\r\n defaultLandingZone {\r\n ...LocationFields\r\n }\r\n defaultFixedWingLandingZone {\r\n ...LocationFields\r\n }\r\n units {\r\n ...MedicalFacilityUnitFields\r\n }\r\n associatedPhysicians {\r\n ...MedicalFacilityPhysicianFields\r\n physician {\r\n ...PhysicianFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${MedicalFacilityUnitFieldsFragmentDoc}\r\n ${MedicalFacilityPhysicianFieldsFragmentDoc}\r\n ${PhysicianFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RequestLocationFormComponent_FetchMedicalFacilityEntitiesGQL extends Apollo.Query<\r\n RequestLocationFormComponent_FetchMedicalFacilityEntitiesQuery,\r\n RequestLocationFormComponent_FetchMedicalFacilityEntitiesQueryVariables\r\n> {\r\n document = RequestLocationFormComponent_FetchMedicalFacilityEntitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const Card_FetchNotificationEntitiesDocument = gql`\r\n query Card_FetchNotificationEntities(\r\n $filter: NotificationFilter\r\n $first: Int\r\n $skip: Int\r\n $includeItems: Boolean! = true\r\n $includeCount: Boolean! = false\r\n ) {\r\n notifications {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items @include(if: $includeItems) {\r\n ...NotificationFields\r\n recipients {\r\n ...NotificationRecipientFields\r\n message {\r\n messageStatusUpdates {\r\n ...MessageStatusUpdateFields\r\n }\r\n }\r\n }\r\n }\r\n meta @include(if: $includeCount) {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationFieldsFragmentDoc}\r\n ${NotificationRecipientFieldsFragmentDoc}\r\n ${MessageStatusUpdateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class Card_FetchNotificationEntitiesGQL extends Apollo.Query<\r\n Card_FetchNotificationEntitiesQuery,\r\n Card_FetchNotificationEntitiesQueryVariables\r\n> {\r\n document = Card_FetchNotificationEntitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const Card_FetchTimeEntitiesDocument = gql`\r\n query Card_FetchTimeEntities(\r\n $cardId: ID!\r\n $timestampsFilter: TimestampsByCardFilter\r\n $timestampsUsersfilter: TimestampsByCardFilter\r\n $includeTimestamps: Boolean! = true\r\n $includeTimestampDistinctUsers: Boolean! = true\r\n $includeActiveTimelines: Boolean! = true\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n timestampsByCard: timestamps @include(if: $includeTimestamps) {\r\n byCardId(cardId: $cardId, filter: $timestampsFilter, first: $first, skip: $skip) {\r\n items {\r\n ...TimestampFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n timestampUsersByCard: timestamps @include(if: $includeTimestampDistinctUsers) {\r\n byCardId(cardId: $cardId, filter: $timestampsUsersfilter, first: $first, skip: $skip) {\r\n items {\r\n user {\r\n ...PersonFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n activeTimelines @include(if: $includeActiveTimelines) {\r\n byCardId(cardId: $cardId) {\r\n items {\r\n ...ActiveTimelineFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${TimestampFieldsFragmentDoc}\r\n ${PersonFieldsFragmentDoc}\r\n ${ActiveTimelineFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class Card_FetchTimeEntitiesGQL extends Apollo.Query<\r\n Card_FetchTimeEntitiesQuery,\r\n Card_FetchTimeEntitiesQueryVariables\r\n> {\r\n document = Card_FetchTimeEntitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const QuestionnaireResponseContextResolver_FetchQuestionnaireResponseDocument = gql`\r\n query QuestionnaireResponseContextResolver_FetchQuestionnaireResponse($cardNumber: ID!) {\r\n cards {\r\n byCardNumber(cardNumber: $cardNumber) {\r\n questionnaireResponses {\r\n ...QuestionnaireResponseFields\r\n questionnaireQuestionResponses {\r\n ...QuestionnaireQuestionResponseFields\r\n questionnaireQuestionResponseNotes {\r\n ...QuestionnaireQuestionResponseNoteFields\r\n }\r\n }\r\n questionnaire {\r\n ...QuestionnaireFields\r\n questionnaireSections {\r\n ...QuestionnaireSectionFields\r\n questionnaireSectionQuestions {\r\n ...QuestionnaireSectionQuestionFields\r\n question {\r\n ...QuestionFields\r\n choices {\r\n ...QuestionChoiceFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${QuestionnaireResponseFieldsFragmentDoc}\r\n ${QuestionnaireQuestionResponseFieldsFragmentDoc}\r\n ${QuestionnaireQuestionResponseNoteFieldsFragmentDoc}\r\n ${QuestionnaireFieldsFragmentDoc}\r\n ${QuestionnaireSectionFieldsFragmentDoc}\r\n ${QuestionnaireSectionQuestionFieldsFragmentDoc}\r\n ${QuestionFieldsFragmentDoc}\r\n ${QuestionChoiceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class QuestionnaireResponseContextResolver_FetchQuestionnaireResponseGQL extends Apollo.Query<\r\n QuestionnaireResponseContextResolver_FetchQuestionnaireResponseQuery,\r\n QuestionnaireResponseContextResolver_FetchQuestionnaireResponseQueryVariables\r\n> {\r\n document = QuestionnaireResponseContextResolver_FetchQuestionnaireResponseDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CommunicationCenterInfoComponent_FetchCommunicationCenterDocument = gql`\r\n query CommunicationCenterInfoComponent_FetchCommunicationCenter($id: ID!) {\r\n units {\r\n byId(id: $id) {\r\n ...UnitFields\r\n region {\r\n ...RegionFields\r\n communicationCenter {\r\n ...CommunicationCenterFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${UnitFieldsFragmentDoc}\r\n ${RegionFieldsFragmentDoc}\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CommunicationCenterInfoComponent_FetchCommunicationCenterGQL extends Apollo.Query<\r\n CommunicationCenterInfoComponent_FetchCommunicationCenterQuery,\r\n CommunicationCenterInfoComponent_FetchCommunicationCenterQueryVariables\r\n> {\r\n document = CommunicationCenterInfoComponent_FetchCommunicationCenterDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ExternalAgencyInfoComponent_FetchExternalAgencyLocationDocument = gql`\r\n query ExternalAgencyInfoComponent_FetchExternalAgencyLocation($id: ID!) {\r\n agencyLocations {\r\n byId(id: $id) {\r\n ...AgencyLocationFields\r\n location {\r\n ...LocationFields\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${AgencyLocationFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ExternalAgencyInfoComponent_FetchExternalAgencyLocationGQL extends Apollo.Query<\r\n ExternalAgencyInfoComponent_FetchExternalAgencyLocationQuery,\r\n ExternalAgencyInfoComponent_FetchExternalAgencyLocationQueryVariables\r\n> {\r\n document = ExternalAgencyInfoComponent_FetchExternalAgencyLocationDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequestCandidateUnitContextDocument = gql`\r\n query FetchRequestCandidateUnitContext($unitId: ID!) {\r\n units {\r\n byId(id: $unitId) {\r\n ...UnitContext\r\n }\r\n }\r\n }\r\n ${UnitContextFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequestCandidateUnitContextGQL extends Apollo.Query<\r\n FetchRequestCandidateUnitContextQuery,\r\n FetchRequestCandidateUnitContextQueryVariables\r\n> {\r\n document = FetchRequestCandidateUnitContextDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const RequestRequesterSpecialtyTeamFormComponent_FetchAllSpecialtyTeamsDocument = gql`\r\n query RequestRequesterSpecialtyTeamFormComponent_FetchAllSpecialtyTeams(\r\n $filter: SpecialtyTeamFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n specialtyTeams {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...SpecialtyTeamFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${SpecialtyTeamFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RequestRequesterSpecialtyTeamFormComponent_FetchAllSpecialtyTeamsGQL extends Apollo.Query<\r\n RequestRequesterSpecialtyTeamFormComponent_FetchAllSpecialtyTeamsQuery,\r\n RequestRequesterSpecialtyTeamFormComponent_FetchAllSpecialtyTeamsQueryVariables\r\n> {\r\n document = RequestRequesterSpecialtyTeamFormComponent_FetchAllSpecialtyTeamsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const RequestViewComponent_FetchAllSpecialtyTeamMembersDocument = gql`\r\n query RequestViewComponent_FetchAllSpecialtyTeamMembers($filter: SpecialtyTeamMemberFilter) {\r\n specialtyTeamMembers {\r\n all(filter: $filter) {\r\n items {\r\n ...SpecialtyTeamMemberFields\r\n teamMember {\r\n ...PersonFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${SpecialtyTeamMemberFieldsFragmentDoc}\r\n ${PersonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RequestViewComponent_FetchAllSpecialtyTeamMembersGQL extends Apollo.Query<\r\n RequestViewComponent_FetchAllSpecialtyTeamMembersQuery,\r\n RequestViewComponent_FetchAllSpecialtyTeamMembersQueryVariables\r\n> {\r\n document = RequestViewComponent_FetchAllSpecialtyTeamMembersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const SpecialtyTeamMemberSelectorComponent_FetchAllSpecialtyTeamMembersDocument = gql`\r\n query SpecialtyTeamMemberSelectorComponent_FetchAllSpecialtyTeamMembers(\r\n $filter: SpecialtyTeamMemberFilter\r\n ) {\r\n specialtyTeamMembers {\r\n all(filter: $filter) {\r\n items {\r\n ...SpecialtyTeamMemberFields\r\n teamMember {\r\n ...PersonFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${SpecialtyTeamMemberFieldsFragmentDoc}\r\n ${PersonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class SpecialtyTeamMemberSelectorComponent_FetchAllSpecialtyTeamMembersGQL extends Apollo.Query<\r\n SpecialtyTeamMemberSelectorComponent_FetchAllSpecialtyTeamMembersQuery,\r\n SpecialtyTeamMemberSelectorComponent_FetchAllSpecialtyTeamMembersQueryVariables\r\n> {\r\n document = SpecialtyTeamMemberSelectorComponent_FetchAllSpecialtyTeamMembersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTransportOfferUnitContextDocument = gql`\r\n query FetchTransportOfferUnitContext($unitId: ID!) {\r\n units {\r\n byId(id: $unitId) {\r\n ...UnitContext\r\n }\r\n }\r\n }\r\n ${UnitContextFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTransportOfferUnitContextGQL extends Apollo.Query<\r\n FetchTransportOfferUnitContextQuery,\r\n FetchTransportOfferUnitContextQueryVariables\r\n> {\r\n document = FetchTransportOfferUnitContextDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTransportOffersForCardDocument = gql`\r\n query FetchTransportOffersForCard($cardNumber: ID!) {\r\n cards {\r\n byCardNumber(cardNumber: $cardNumber) {\r\n request {\r\n transportOffers {\r\n ...TransportOfferFields\r\n }\r\n transportOfferOptions {\r\n ...TransportOfferOptionFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${TransportOfferFieldsFragmentDoc}\r\n ${TransportOfferOptionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTransportOffersForCardGQL extends Apollo.Query<\r\n FetchTransportOffersForCardQuery,\r\n FetchTransportOffersForCardQueryVariables\r\n> {\r\n document = FetchTransportOffersForCardDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const PatientInfoComponent_FetchCardByCardIdDocument = gql`\r\n query PatientInfoComponent_FetchCardByCardId($cardId: ID!) {\r\n cards {\r\n byId(id: $cardId) {\r\n ...CardFields\r\n request {\r\n ...RequestFields\r\n requester {\r\n ...RequesterFields\r\n }\r\n patients {\r\n ...RequestPatientFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${CardFieldsFragmentDoc}\r\n ${RequestFieldsFragmentDoc}\r\n ${RequesterFieldsFragmentDoc}\r\n ${RequestPatientFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class PatientInfoComponent_FetchCardByCardIdGQL extends Apollo.Query<\r\n PatientInfoComponent_FetchCardByCardIdQuery,\r\n PatientInfoComponent_FetchCardByCardIdQueryVariables\r\n> {\r\n document = PatientInfoComponent_FetchCardByCardIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const QuestionnaireResponseCards_FetchQuestionnaireResponseEntitiesDocument = gql`\r\n query QuestionnaireResponseCards_FetchQuestionnaireResponseEntities(\r\n $filter: QuestionnaireResponseFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n questionnaireResponses {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...QuestionnaireResponseFields\r\n card {\r\n ...CardFields\r\n operation {\r\n ...OperationFields\r\n unit {\r\n ...UnitFields\r\n }\r\n }\r\n request {\r\n ...RequestFields\r\n }\r\n }\r\n questionnaire {\r\n ...QuestionnaireFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${QuestionnaireResponseFieldsFragmentDoc}\r\n ${CardFieldsFragmentDoc}\r\n ${OperationFieldsFragmentDoc}\r\n ${UnitFieldsFragmentDoc}\r\n ${RequestFieldsFragmentDoc}\r\n ${QuestionnaireFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class QuestionnaireResponseCards_FetchQuestionnaireResponseEntitiesGQL extends Apollo.Query<\r\n QuestionnaireResponseCards_FetchQuestionnaireResponseEntitiesQuery,\r\n QuestionnaireResponseCards_FetchQuestionnaireResponseEntitiesQueryVariables\r\n> {\r\n document = QuestionnaireResponseCards_FetchQuestionnaireResponseEntitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const RegionBoardAllPage_FetchCardsByPatientNameDocument = gql`\r\n query RegionBoardAllPage_FetchCardsByPatientName($patientNameLike: String!) {\r\n cards {\r\n all(filter: { patientNameLike: $patientNameLike }) {\r\n items {\r\n ...CardFields\r\n request {\r\n ...RequestFields\r\n patients {\r\n ...RequestPatientFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${CardFieldsFragmentDoc}\r\n ${RequestFieldsFragmentDoc}\r\n ${RequestPatientFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RegionBoardAllPage_FetchCardsByPatientNameGQL extends Apollo.Query<\r\n RegionBoardAllPage_FetchCardsByPatientNameQuery,\r\n RegionBoardAllPage_FetchCardsByPatientNameQueryVariables\r\n> {\r\n document = RegionBoardAllPage_FetchCardsByPatientNameDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const RegionBoardVehiclesPageComponent_FetchAllVehiclesDocument = gql`\r\n query RegionBoardVehiclesPageComponent_FetchAllVehicles(\r\n $filter: VehicleFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n vehicles {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...VehicleFields\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RegionBoardVehiclesPageComponent_FetchAllVehiclesGQL extends Apollo.Query<\r\n RegionBoardVehiclesPageComponent_FetchAllVehiclesQuery,\r\n RegionBoardVehiclesPageComponent_FetchAllVehiclesQueryVariables\r\n> {\r\n document = RegionBoardVehiclesPageComponent_FetchAllVehiclesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TransferCenterRegionBoardComponent_FetchDocument = gql`\r\n query TransferCenterRegionBoardComponent_Fetch($regionId: ID!) {\r\n cards {\r\n all(\r\n filter: {\r\n requestRegionId: $regionId\r\n withoutStatuses: [Closed]\r\n withoutRequestStatuses: [Cancelled]\r\n }\r\n ) {\r\n items {\r\n id\r\n cardNumber\r\n request {\r\n transportOfferOptions {\r\n requestedVehicleType\r\n }\r\n requester {\r\n transferCenterId\r\n transferCenterNotes\r\n careLevelRequested\r\n transferCenter {\r\n name\r\n }\r\n }\r\n patients {\r\n firstName\r\n lastName\r\n }\r\n locations {\r\n physician {\r\n firstName\r\n lastName\r\n }\r\n }\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TransferCenterRegionBoardComponent_FetchGQL extends Apollo.Query<\r\n TransferCenterRegionBoardComponent_FetchQuery,\r\n TransferCenterRegionBoardComponent_FetchQueryVariables\r\n> {\r\n document = TransferCenterRegionBoardComponent_FetchDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OpsCompanyDataContextService_FetchDocument = gql`\r\n query OpsCompanyDataContextService_Fetch($dispatchCompanyId: ID!) {\r\n companies {\r\n byId(id: $dispatchCompanyId) {\r\n transferCenters {\r\n ...TransferCenterFields\r\n }\r\n regionGroups {\r\n ...RegionGroupFields\r\n department {\r\n ...DepartmentFields\r\n }\r\n regions {\r\n ...RegionFields\r\n }\r\n }\r\n externalActions {\r\n ...ExternalActionFields\r\n }\r\n }\r\n }\r\n activeAlerts {\r\n all(\r\n filter: {\r\n unacknowledgedOnly: true\r\n excludeEntityOnlyVisibilityType: false\r\n companyId: $dispatchCompanyId\r\n }\r\n ) {\r\n items {\r\n ...ActiveAlertFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n positionReportAlerts {\r\n all(filter: { companyId: $dispatchCompanyId, includeOnlyNoQualifiedReportAlerts: true }) {\r\n items {\r\n ...PositionReportAlertFields\r\n }\r\n }\r\n }\r\n webOrderLogs {\r\n byActiveCards {\r\n items {\r\n ...WebOrderLogFields\r\n }\r\n }\r\n }\r\n }\r\n ${TransferCenterFieldsFragmentDoc}\r\n ${RegionGroupFieldsFragmentDoc}\r\n ${DepartmentFieldsFragmentDoc}\r\n ${RegionFieldsFragmentDoc}\r\n ${ExternalActionFieldsFragmentDoc}\r\n ${ActiveAlertFieldsFragmentDoc}\r\n ${PositionReportAlertFieldsFragmentDoc}\r\n ${WebOrderLogFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OpsCompanyDataContextService_FetchGQL extends Apollo.Query<\r\n OpsCompanyDataContextService_FetchQuery,\r\n OpsCompanyDataContextService_FetchQueryVariables\r\n> {\r\n document = OpsCompanyDataContextService_FetchDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ScheduledAlertsListDialogComponent_FetchActiveAlertsDocument = gql`\r\n query ScheduledAlertsListDialogComponent_FetchActiveAlerts(\r\n $filter: ActiveAlertFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n activeAlerts {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...ActiveAlertFields\r\n author {\r\n ...PersonFields\r\n }\r\n region {\r\n ...RegionFields\r\n }\r\n communicationCenter {\r\n ...CommunicationCenterFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${ActiveAlertFieldsFragmentDoc}\r\n ${PersonFieldsFragmentDoc}\r\n ${RegionFieldsFragmentDoc}\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ScheduledAlertsListDialogComponent_FetchActiveAlertsGQL extends Apollo.Query<\r\n ScheduledAlertsListDialogComponent_FetchActiveAlertsQuery,\r\n ScheduledAlertsListDialogComponent_FetchActiveAlertsQueryVariables\r\n> {\r\n document = ScheduledAlertsListDialogComponent_FetchActiveAlertsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const oosEventNotesComponent_FetchOosEventNotesDocument = gql`\r\n query oosEventNotesComponent_FetchOosEventNotes($id: ID!) {\r\n outOfServiceEventNotes {\r\n byOutOfServiceEventId(outOfServiceEventId: $id) {\r\n items {\r\n ...OutOfServiceEventNoteFields\r\n }\r\n }\r\n }\r\n }\r\n ${OutOfServiceEventNoteFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class oosEventNotesComponent_FetchOosEventNotesGQL extends Apollo.Query<\r\n oosEventNotesComponent_FetchOosEventNotesQuery,\r\n oosEventNotesComponent_FetchOosEventNotesQueryVariables\r\n> {\r\n document = oosEventNotesComponent_FetchOosEventNotesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OosEventNotifications_FetchNotificationsDocument = gql`\r\n query OosEventNotifications_FetchNotifications($filter: NotificationFilter) {\r\n notifications {\r\n all(filter: $filter) {\r\n items {\r\n ...NotificationFields\r\n recipients {\r\n ...NotificationRecipientFields\r\n message {\r\n messageStatusUpdates {\r\n ...MessageStatusUpdateFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationFieldsFragmentDoc}\r\n ${NotificationRecipientFieldsFragmentDoc}\r\n ${MessageStatusUpdateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OosEventNotifications_FetchNotificationsGQL extends Apollo.Query<\r\n OosEventNotifications_FetchNotificationsQuery,\r\n OosEventNotifications_FetchNotificationsQueryVariables\r\n> {\r\n document = OosEventNotifications_FetchNotificationsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OosHistoryComponent_FetchHistoryDocument = gql`\r\n query OosHistoryComponent_FetchHistory(\r\n $filter: OutOfServiceEventFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n outOfServiceEvents {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n meta {\r\n total\r\n }\r\n items {\r\n ...OutOfServiceEventFields\r\n }\r\n }\r\n }\r\n }\r\n ${OutOfServiceEventFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OosHistoryComponent_FetchHistoryGQL extends Apollo.Query<\r\n OosHistoryComponent_FetchHistoryQuery,\r\n OosHistoryComponent_FetchHistoryQueryVariables\r\n> {\r\n document = OosHistoryComponent_FetchHistoryDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OosService_LoadOosManagerDialagDataDocument = gql`\r\n query OosService_LoadOosManagerDialagData {\r\n vehicles {\r\n all {\r\n items {\r\n ...VehicleFields\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OosService_LoadOosManagerDialagDataGQL extends Apollo.Query<\r\n OosService_LoadOosManagerDialagDataQuery,\r\n OosService_LoadOosManagerDialagDataQueryVariables\r\n> {\r\n document = OosService_LoadOosManagerDialagDataDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CardNoteEditHistoryDialogComponent_FetchCardNoteDocument = gql`\r\n query CardNoteEditHistoryDialogComponent_FetchCardNote($id: ID!) {\r\n cardNotes {\r\n byId(id: $id) {\r\n ...CardNoteFields\r\n _events {\r\n meta {\r\n total\r\n }\r\n items {\r\n messageId\r\n timestamp\r\n message {\r\n messageData\r\n }\r\n personId\r\n person {\r\n firstName\r\n lastName\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${CardNoteFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CardNoteEditHistoryDialogComponent_FetchCardNoteGQL extends Apollo.Query<\r\n CardNoteEditHistoryDialogComponent_FetchCardNoteQuery,\r\n CardNoteEditHistoryDialogComponent_FetchCardNoteQueryVariables\r\n> {\r\n document = CardNoteEditHistoryDialogComponent_FetchCardNoteDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GroundLegFormComponent_FetchAllLocationsDocument = gql`\r\n query GroundLegFormComponent_FetchAllLocations($filter: LocationQueryFilter) {\r\n locations {\r\n all(filter: $filter) {\r\n items {\r\n ...LocationFields\r\n address {\r\n ...AddressFields\r\n }\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${LocationFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GroundLegFormComponent_FetchAllLocationsGQL extends Apollo.Query<\r\n GroundLegFormComponent_FetchAllLocationsQuery,\r\n GroundLegFormComponent_FetchAllLocationsQueryVariables\r\n> {\r\n document = GroundLegFormComponent_FetchAllLocationsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MedicalControlContactsDialogComponent_FetchBaseMedicalControlContactsDocument = gql`\r\n query MedicalControlContactsDialogComponent_FetchBaseMedicalControlContacts(\r\n $filter: BaseFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n bases {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n medicalControlContacts {\r\n ...BaseMedicalControlContactFields\r\n person {\r\n ...PersonFields\r\n }\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n baseMedicalControlContactStates {\r\n ...BaseMedicalControlContactStateFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${BaseMedicalControlContactFieldsFragmentDoc}\r\n ${PersonFieldsFragmentDoc}\r\n ${BaseMedicalControlContactStateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MedicalControlContactsDialogComponent_FetchBaseMedicalControlContactsGQL extends Apollo.Query<\r\n MedicalControlContactsDialogComponent_FetchBaseMedicalControlContactsQuery,\r\n MedicalControlContactsDialogComponent_FetchBaseMedicalControlContactsQueryVariables\r\n> {\r\n document = MedicalControlContactsDialogComponent_FetchBaseMedicalControlContactsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MileageCalculatorDialogComponent_FetchMedicalFacilityEntitiesDocument = gql`\r\n query MileageCalculatorDialogComponent_FetchMedicalFacilityEntities($id: ID!) {\r\n medicalFacilities {\r\n byId(id: $id) {\r\n ...MedicalFacilityFields\r\n location {\r\n ...LocationFields\r\n }\r\n defaultLandingZone {\r\n ...LocationFields\r\n }\r\n defaultFixedWingLandingZone {\r\n ...LocationFields\r\n }\r\n units {\r\n ...MedicalFacilityUnitFields\r\n }\r\n associatedPhysicians {\r\n ...MedicalFacilityPhysicianFields\r\n physician {\r\n ...PhysicianFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${MedicalFacilityUnitFieldsFragmentDoc}\r\n ${MedicalFacilityPhysicianFieldsFragmentDoc}\r\n ${PhysicianFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MileageCalculatorDialogComponent_FetchMedicalFacilityEntitiesGQL extends Apollo.Query<\r\n MileageCalculatorDialogComponent_FetchMedicalFacilityEntitiesQuery,\r\n MileageCalculatorDialogComponent_FetchMedicalFacilityEntitiesQueryVariables\r\n> {\r\n document = MileageCalculatorDialogComponent_FetchMedicalFacilityEntitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MileageCalculatorDialogComponent_FetchAllBasesDocument = gql`\r\n query MileageCalculatorDialogComponent_FetchAllBases(\r\n $filter: BaseFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n bases {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...BaseFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${BaseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MileageCalculatorDialogComponent_FetchAllBasesGQL extends Apollo.Query<\r\n MileageCalculatorDialogComponent_FetchAllBasesQuery,\r\n MileageCalculatorDialogComponent_FetchAllBasesQueryVariables\r\n> {\r\n document = MileageCalculatorDialogComponent_FetchAllBasesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MileageCalculatorDialogComponent_FetchAllVehicleModelsDocument = gql`\r\n query MileageCalculatorDialogComponent_FetchAllVehicleModels(\r\n $filter: VehicleModelFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n vehicleModels {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...VehicleModelFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleModelFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MileageCalculatorDialogComponent_FetchAllVehicleModelsGQL extends Apollo.Query<\r\n MileageCalculatorDialogComponent_FetchAllVehicleModelsQuery,\r\n MileageCalculatorDialogComponent_FetchAllVehicleModelsQueryVariables\r\n> {\r\n document = MileageCalculatorDialogComponent_FetchAllVehicleModelsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NotificationAddDialogComponent_FetchAllNotificationTemplatesDocument = gql`\r\n query NotificationAddDialogComponent_FetchAllNotificationTemplates(\r\n $filter: NotificationTemplateFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n notificationTemplates {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...NotificationTemplateFields\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationTemplateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NotificationAddDialogComponent_FetchAllNotificationTemplatesGQL extends Apollo.Query<\r\n NotificationAddDialogComponent_FetchAllNotificationTemplatesQuery,\r\n NotificationAddDialogComponent_FetchAllNotificationTemplatesQueryVariables\r\n> {\r\n document = NotificationAddDialogComponent_FetchAllNotificationTemplatesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NotificationAddDialogComponent_FetchNotificationTemplateDetailsDocument = gql`\r\n query NotificationAddDialogComponent_FetchNotificationTemplateDetails(\r\n $args: NotificationTemplateRequest\r\n ) {\r\n notificationTemplates {\r\n templateDetails(notificationRequest: $args) {\r\n activityId\r\n responseCode\r\n errors\r\n data {\r\n recipients {\r\n name\r\n address\r\n }\r\n subject\r\n body\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NotificationAddDialogComponent_FetchNotificationTemplateDetailsGQL extends Apollo.Query<\r\n NotificationAddDialogComponent_FetchNotificationTemplateDetailsQuery,\r\n NotificationAddDialogComponent_FetchNotificationTemplateDetailsQueryVariables\r\n> {\r\n document = NotificationAddDialogComponent_FetchNotificationTemplateDetailsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NotificationsEditDialogComponent_FetchNotificationDocument = gql`\r\n query NotificationsEditDialogComponent_FetchNotification($notificationId: ID!) {\r\n notifications {\r\n byId(id: $notificationId) {\r\n ...NotificationFields\r\n recipients {\r\n ...NotificationRecipientFields\r\n message {\r\n messageStatusUpdates {\r\n ...MessageStatusUpdateFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationFieldsFragmentDoc}\r\n ${NotificationRecipientFieldsFragmentDoc}\r\n ${MessageStatusUpdateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NotificationsEditDialogComponent_FetchNotificationGQL extends Apollo.Query<\r\n NotificationsEditDialogComponent_FetchNotificationQuery,\r\n NotificationsEditDialogComponent_FetchNotificationQueryVariables\r\n> {\r\n document = NotificationsEditDialogComponent_FetchNotificationDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NotificationsManageDialogComponent_FetchNotificationDocument = gql`\r\n query NotificationsManageDialogComponent_FetchNotification($notificationId: ID!) {\r\n notifications {\r\n byId(id: $notificationId) {\r\n ...NotificationFields\r\n recipients {\r\n ...NotificationRecipientFields\r\n message {\r\n messageStatusUpdates {\r\n ...MessageStatusUpdateFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationFieldsFragmentDoc}\r\n ${NotificationRecipientFieldsFragmentDoc}\r\n ${MessageStatusUpdateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NotificationsManageDialogComponent_FetchNotificationGQL extends Apollo.Query<\r\n NotificationsManageDialogComponent_FetchNotificationQuery,\r\n NotificationsManageDialogComponent_FetchNotificationQueryVariables\r\n> {\r\n document = NotificationsManageDialogComponent_FetchNotificationDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NotificationsListDialogComponent_FetchNotificationsDocument = gql`\r\n query NotificationsListDialogComponent_FetchNotifications(\r\n $filter: NotificationFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n notifications {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...NotificationFields\r\n recipients {\r\n ...NotificationRecipientFields\r\n message {\r\n messageStatusUpdates {\r\n ...MessageStatusUpdateFields\r\n }\r\n }\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationFieldsFragmentDoc}\r\n ${NotificationRecipientFieldsFragmentDoc}\r\n ${MessageStatusUpdateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NotificationsListDialogComponent_FetchNotificationsGQL extends Apollo.Query<\r\n NotificationsListDialogComponent_FetchNotificationsQuery,\r\n NotificationsListDialogComponent_FetchNotificationsQueryVariables\r\n> {\r\n document = NotificationsListDialogComponent_FetchNotificationsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const RecipientGroupManageDialogComponent_FetchAllNotificationGroupsDocument = gql`\r\n query RecipientGroupManageDialogComponent_FetchAllNotificationGroups(\r\n $filter: NotificationGroupFilter\r\n ) {\r\n notificationGroups {\r\n all(filter: $filter) {\r\n items {\r\n ...NotificationGroupFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationGroupFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RecipientGroupManageDialogComponent_FetchAllNotificationGroupsGQL extends Apollo.Query<\r\n RecipientGroupManageDialogComponent_FetchAllNotificationGroupsQuery,\r\n RecipientGroupManageDialogComponent_FetchAllNotificationGroupsQueryVariables\r\n> {\r\n document = RecipientGroupManageDialogComponent_FetchAllNotificationGroupsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const RecipientGroupManageDialogComponent_FetchAllNotificationGroupMembersDocument = gql`\r\n query RecipientGroupManageDialogComponent_FetchAllNotificationGroupMembers(\r\n $filter: NotificationGroupMemberFilter\r\n ) {\r\n notificationGroupMembers {\r\n all(filter: $filter) {\r\n items {\r\n id\r\n notificationGroupId\r\n name\r\n userId\r\n user {\r\n id\r\n firstName\r\n lastName\r\n email\r\n employeeType\r\n timeType\r\n isAviationSupervisor\r\n notificationAddress\r\n }\r\n notificationAddress\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RecipientGroupManageDialogComponent_FetchAllNotificationGroupMembersGQL extends Apollo.Query<\r\n RecipientGroupManageDialogComponent_FetchAllNotificationGroupMembersQuery,\r\n RecipientGroupManageDialogComponent_FetchAllNotificationGroupMembersQueryVariables\r\n> {\r\n document = RecipientGroupManageDialogComponent_FetchAllNotificationGroupMembersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TransportAbortDialogComponent_FetchAllVehiclesDocument = gql`\r\n query TransportAbortDialogComponent_FetchAllVehicles(\r\n $filter: VehicleFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n vehicles {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...VehicleFields\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TransportAbortDialogComponent_FetchAllVehiclesGQL extends Apollo.Query<\r\n TransportAbortDialogComponent_FetchAllVehiclesQuery,\r\n TransportAbortDialogComponent_FetchAllVehiclesQueryVariables\r\n> {\r\n document = TransportAbortDialogComponent_FetchAllVehiclesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TransportAbortDialogComponent_FetchTransportOffersByCardNumberDocument = gql`\r\n query TransportAbortDialogComponent_FetchTransportOffersByCardNumber($cardNumber: ID!) {\r\n cards {\r\n byCardNumber(cardNumber: $cardNumber) {\r\n request {\r\n transportOffers {\r\n ...TransportOfferFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${TransportOfferFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TransportAbortDialogComponent_FetchTransportOffersByCardNumberGQL extends Apollo.Query<\r\n TransportAbortDialogComponent_FetchTransportOffersByCardNumberQuery,\r\n TransportAbortDialogComponent_FetchTransportOffersByCardNumberQueryVariables\r\n> {\r\n document = TransportAbortDialogComponent_FetchTransportOffersByCardNumberDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UnitNoteListComponent_FetchUnitNotesDocument = gql`\r\n query UnitNoteListComponent_FetchUnitNotes($filter: UnitNoteFilter, $first: Int, $skip: Int) {\r\n unitNotes {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n id\r\n authorId\r\n companyId\r\n content\r\n noteTime\r\n unitId\r\n unit {\r\n name\r\n abbreviation\r\n }\r\n author {\r\n ...PersonFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${PersonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UnitNoteListComponent_FetchUnitNotesGQL extends Apollo.Query<\r\n UnitNoteListComponent_FetchUnitNotesQuery,\r\n UnitNoteListComponent_FetchUnitNotesQueryVariables\r\n> {\r\n document = UnitNoteListComponent_FetchUnitNotesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UnitShiftListComponent_FetchUnitShiftsDocument = gql`\r\n query UnitShiftListComponent_FetchUnitShifts($filter: UnitShiftFilter, $first: Int, $skip: Int) {\r\n unitShifts {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n id\r\n companyId\r\n name\r\n startTimeInMinutes\r\n endTimeInMinutes\r\n unitId\r\n unit {\r\n name\r\n abbreviation\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UnitShiftListComponent_FetchUnitShiftsGQL extends Apollo.Query<\r\n UnitShiftListComponent_FetchUnitShiftsQuery,\r\n UnitShiftListComponent_FetchUnitShiftsQueryVariables\r\n> {\r\n document = UnitShiftListComponent_FetchUnitShiftsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const PassdownLogDetailsComponent_FetchPassdownLogDocument = gql`\r\n query PassdownLogDetailsComponent_FetchPassdownLog($id: ID!) {\r\n passdownLogs {\r\n byId(id: $id) {\r\n ...PassdownLogFields\r\n passdownLogAcknowledgements {\r\n ...PassdownLogAcknowledgementFields\r\n }\r\n }\r\n }\r\n }\r\n ${PassdownLogFieldsFragmentDoc}\r\n ${PassdownLogAcknowledgementFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class PassdownLogDetailsComponent_FetchPassdownLogGQL extends Apollo.Query<\r\n PassdownLogDetailsComponent_FetchPassdownLogQuery,\r\n PassdownLogDetailsComponent_FetchPassdownLogQueryVariables\r\n> {\r\n document = PassdownLogDetailsComponent_FetchPassdownLogDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const PassdownLogDialogComponent_FetchAllPassdownLogsDocument = gql`\r\n query PassdownLogDialogComponent_FetchAllPassdownLogs(\r\n $filter: PassdownLogFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n passdownLogs {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...PassdownLogFields\r\n author {\r\n firstName\r\n lastName\r\n }\r\n acknowledgedBy {\r\n firstName\r\n lastName\r\n }\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n passdownLogAcknowledgements {\r\n ...PassdownLogAcknowledgementFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${PassdownLogFieldsFragmentDoc}\r\n ${PassdownLogAcknowledgementFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class PassdownLogDialogComponent_FetchAllPassdownLogsGQL extends Apollo.Query<\r\n PassdownLogDialogComponent_FetchAllPassdownLogsQuery,\r\n PassdownLogDialogComponent_FetchAllPassdownLogsQueryVariables\r\n> {\r\n document = PassdownLogDialogComponent_FetchAllPassdownLogsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const PassdownLogEditHistoryDialogComponent_FetchPassdownLogDocument = gql`\r\n query PassdownLogEditHistoryDialogComponent_FetchPassdownLog($id: ID!) {\r\n passdownLogs {\r\n byId(id: $id) {\r\n ...PassdownLogFields\r\n _events {\r\n meta {\r\n total\r\n }\r\n items {\r\n messageId\r\n timestamp\r\n message {\r\n messageData\r\n }\r\n personId\r\n person {\r\n firstName\r\n lastName\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${PassdownLogFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class PassdownLogEditHistoryDialogComponent_FetchPassdownLogGQL extends Apollo.Query<\r\n PassdownLogEditHistoryDialogComponent_FetchPassdownLogQuery,\r\n PassdownLogEditHistoryDialogComponent_FetchPassdownLogQueryVariables\r\n> {\r\n document = PassdownLogEditHistoryDialogComponent_FetchPassdownLogDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ReceivingFacilityRequestAcceptDialog_FetchMedicalFacilityUnitsByMedicalFacilityIdDocument = gql`\r\n query ReceivingFacilityRequestAcceptDialog_FetchMedicalFacilityUnitsByMedicalFacilityId(\r\n $id: ID!\r\n ) {\r\n medicalFacilities {\r\n byId(id: $id) {\r\n units {\r\n ...MedicalFacilityUnitFields\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityUnitFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ReceivingFacilityRequestAcceptDialog_FetchMedicalFacilityUnitsByMedicalFacilityIdGQL extends Apollo.Query<\r\n ReceivingFacilityRequestAcceptDialog_FetchMedicalFacilityUnitsByMedicalFacilityIdQuery,\r\n ReceivingFacilityRequestAcceptDialog_FetchMedicalFacilityUnitsByMedicalFacilityIdQueryVariables\r\n> {\r\n document =\r\n ReceivingFacilityRequestAcceptDialog_FetchMedicalFacilityUnitsByMedicalFacilityIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ReceivingFacilityRequestAcceptDialog_FetchPhysiciansByMedicalFacilityIdDocument = gql`\r\n query ReceivingFacilityRequestAcceptDialog_FetchPhysiciansByMedicalFacilityId($id: ID!) {\r\n medicalFacilities {\r\n byId(id: $id) {\r\n associatedPhysicians {\r\n ...MedicalFacilityPhysicianFields\r\n physician {\r\n ...PhysicianFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityPhysicianFieldsFragmentDoc}\r\n ${PhysicianFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ReceivingFacilityRequestAcceptDialog_FetchPhysiciansByMedicalFacilityIdGQL extends Apollo.Query<\r\n ReceivingFacilityRequestAcceptDialog_FetchPhysiciansByMedicalFacilityIdQuery,\r\n ReceivingFacilityRequestAcceptDialog_FetchPhysiciansByMedicalFacilityIdQueryVariables\r\n> {\r\n document = ReceivingFacilityRequestAcceptDialog_FetchPhysiciansByMedicalFacilityIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ReceivingFacilityRequestDivertDialogComponent_FetchMedicalFacilitiesDocument = gql`\r\n query ReceivingFacilityRequestDivertDialogComponent_FetchMedicalFacilities(\r\n $filter: MedicalFacilityFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n medicalFacilities {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...MedicalFacilityFields\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ReceivingFacilityRequestDivertDialogComponent_FetchMedicalFacilitiesGQL extends Apollo.Query<\r\n ReceivingFacilityRequestDivertDialogComponent_FetchMedicalFacilitiesQuery,\r\n ReceivingFacilityRequestDivertDialogComponent_FetchMedicalFacilitiesQueryVariables\r\n> {\r\n document = ReceivingFacilityRequestDivertDialogComponent_FetchMedicalFacilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ReceivingFacilityRequestHistoryAddDialogComponent_FetchMedicalFacilitiesDocument = gql`\r\n query ReceivingFacilityRequestHistoryAddDialogComponent_FetchMedicalFacilities(\r\n $filter: MedicalFacilityFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n medicalFacilities {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...MedicalFacilityFields\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ReceivingFacilityRequestHistoryAddDialogComponent_FetchMedicalFacilitiesGQL extends Apollo.Query<\r\n ReceivingFacilityRequestHistoryAddDialogComponent_FetchMedicalFacilitiesQuery,\r\n ReceivingFacilityRequestHistoryAddDialogComponent_FetchMedicalFacilitiesQueryVariables\r\n> {\r\n document = ReceivingFacilityRequestHistoryAddDialogComponent_FetchMedicalFacilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ReceivingFacilityRequestReferDialogComponent_FetchMedicalFacilitiesDocument = gql`\r\n query ReceivingFacilityRequestReferDialogComponent_FetchMedicalFacilities(\r\n $filter: MedicalFacilityFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n medicalFacilities {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...MedicalFacilityFields\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ReceivingFacilityRequestReferDialogComponent_FetchMedicalFacilitiesGQL extends Apollo.Query<\r\n ReceivingFacilityRequestReferDialogComponent_FetchMedicalFacilitiesQuery,\r\n ReceivingFacilityRequestReferDialogComponent_FetchMedicalFacilitiesQueryVariables\r\n> {\r\n document = ReceivingFacilityRequestReferDialogComponent_FetchMedicalFacilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TransportOfferDeclineComponent_FetchTransportOffersByCardNumberDocument = gql`\r\n query TransportOfferDeclineComponent_FetchTransportOffersByCardNumber($cardNumber: ID!) {\r\n cards {\r\n byCardNumber(cardNumber: $cardNumber) {\r\n request {\r\n transportOffers {\r\n ...TransportOfferFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${TransportOfferFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TransportOfferDeclineComponent_FetchTransportOffersByCardNumberGQL extends Apollo.Query<\r\n TransportOfferDeclineComponent_FetchTransportOffersByCardNumberQuery,\r\n TransportOfferDeclineComponent_FetchTransportOffersByCardNumberQueryVariables\r\n> {\r\n document = TransportOfferDeclineComponent_FetchTransportOffersByCardNumberDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TransportOfferDeclineComponent_FetchAllDelayReasonsDocument = gql`\r\n query TransportOfferDeclineComponent_FetchAllDelayReasons {\r\n requests {\r\n allAssignmentDelayedReasons {\r\n id\r\n name\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TransportOfferDeclineComponent_FetchAllDelayReasonsGQL extends Apollo.Query<\r\n TransportOfferDeclineComponent_FetchAllDelayReasonsQuery,\r\n TransportOfferDeclineComponent_FetchAllDelayReasonsQueryVariables\r\n> {\r\n document = TransportOfferDeclineComponent_FetchAllDelayReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UnitEditDialogComponent_FetchUnitActivationRuleByUnitIdDocument = gql`\r\n query UnitEditDialogComponent_FetchUnitActivationRuleByUnitId($id: ID!) {\r\n unitActivationRules {\r\n byUnitId(id: $id) {\r\n ...UnitActivationRuleFields\r\n }\r\n }\r\n }\r\n ${UnitActivationRuleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UnitEditDialogComponent_FetchUnitActivationRuleByUnitIdGQL extends Apollo.Query<\r\n UnitEditDialogComponent_FetchUnitActivationRuleByUnitIdQuery,\r\n UnitEditDialogComponent_FetchUnitActivationRuleByUnitIdQueryVariables\r\n> {\r\n document = UnitEditDialogComponent_FetchUnitActivationRuleByUnitIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UnitEditDialogComponent_FetchUnitEMSystemMappingsDocument = gql`\r\n query UnitEditDialogComponent_FetchUnitEMSystemMappings(\r\n $filter: UnitEMSystemMappingFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n unitEMSystemMappings {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UnitEditDialogComponent_FetchUnitEMSystemMappingsGQL extends Apollo.Query<\r\n UnitEditDialogComponent_FetchUnitEMSystemMappingsQuery,\r\n UnitEditDialogComponent_FetchUnitEMSystemMappingsQueryVariables\r\n> {\r\n document = UnitEditDialogComponent_FetchUnitEMSystemMappingsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UnitFormComponent_FetchAllCompleteFlightInstancesDocument = gql`\r\n query UnitFormComponent_FetchAllCompleteFlightInstances {\r\n completeFlightInstances {\r\n all {\r\n items {\r\n completeFlightInstanceName\r\n id\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UnitFormComponent_FetchAllCompleteFlightInstancesGQL extends Apollo.Query<\r\n UnitFormComponent_FetchAllCompleteFlightInstancesQuery,\r\n UnitFormComponent_FetchAllCompleteFlightInstancesQueryVariables\r\n> {\r\n document = UnitFormComponent_FetchAllCompleteFlightInstancesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UnitRepositionDialogComponent_FetchVehiclePositionSummaryDocument = gql`\r\n query UnitRepositionDialogComponent_FetchVehiclePositionSummary($vehicleId: ID!) {\r\n vehiclePositionSummary {\r\n byVehicleId(vehicleId: $vehicleId) {\r\n ...VehiclePositionSummaryFields\r\n }\r\n }\r\n }\r\n ${VehiclePositionSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UnitRepositionDialogComponent_FetchVehiclePositionSummaryGQL extends Apollo.Query<\r\n UnitRepositionDialogComponent_FetchVehiclePositionSummaryQuery,\r\n UnitRepositionDialogComponent_FetchVehiclePositionSummaryQueryVariables\r\n> {\r\n document = UnitRepositionDialogComponent_FetchVehiclePositionSummaryDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitEditContextDocument = gql`\r\n query FetchUnitEditContext($unitId: ID!) {\r\n units {\r\n byId(id: $unitId) {\r\n ...UnitContext\r\n }\r\n }\r\n }\r\n ${UnitContextFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitEditContextGQL extends Apollo.Query<\r\n FetchUnitEditContextQuery,\r\n FetchUnitEditContextQueryVariables\r\n> {\r\n document = FetchUnitEditContextDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const WebOrderLogsDialog_FetchWebOrderLogsByEntityIdDocument = gql`\r\n query WebOrderLogsDialog_FetchWebOrderLogsByEntityId($id: ID!) {\r\n webOrderLogs {\r\n byEntityId(entityId: $id) {\r\n items {\r\n ...WebOrderLogFields\r\n }\r\n }\r\n }\r\n }\r\n ${WebOrderLogFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class WebOrderLogsDialog_FetchWebOrderLogsByEntityIdGQL extends Apollo.Query<\r\n WebOrderLogsDialog_FetchWebOrderLogsByEntityIdQuery,\r\n WebOrderLogsDialog_FetchWebOrderLogsByEntityIdQueryVariables\r\n> {\r\n document = WebOrderLogsDialog_FetchWebOrderLogsByEntityIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CardArchivedRecordsFetchService_FetchArchivedCardNotesDocument = gql`\r\n query CardArchivedRecordsFetchService_FetchArchivedCardNotes($id: ID!) {\r\n cardNoteArchives {\r\n byCardId(cardId: $id) {\r\n items {\r\n ...CardNoteArchiveFields\r\n }\r\n }\r\n }\r\n }\r\n ${CardNoteArchiveFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CardArchivedRecordsFetchService_FetchArchivedCardNotesGQL extends Apollo.Query<\r\n CardArchivedRecordsFetchService_FetchArchivedCardNotesQuery,\r\n CardArchivedRecordsFetchService_FetchArchivedCardNotesQueryVariables\r\n> {\r\n document = CardArchivedRecordsFetchService_FetchArchivedCardNotesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CardArchivedRecordsFetchService_FetchArchivedPositionReportsDocument = gql`\r\n query CardArchivedRecordsFetchService_FetchArchivedPositionReports($id: ID!) {\r\n positionReportArchives {\r\n byTripId(tripId: $id) {\r\n items {\r\n ...PositionReportArchiveFields\r\n }\r\n }\r\n }\r\n }\r\n ${PositionReportArchiveFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CardArchivedRecordsFetchService_FetchArchivedPositionReportsGQL extends Apollo.Query<\r\n CardArchivedRecordsFetchService_FetchArchivedPositionReportsQuery,\r\n CardArchivedRecordsFetchService_FetchArchivedPositionReportsQueryVariables\r\n> {\r\n document = CardArchivedRecordsFetchService_FetchArchivedPositionReportsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ActivationRuleDetailsComponent_FetchActivationRuleByIdDocument = gql`\r\n query ActivationRuleDetailsComponent_FetchActivationRuleById($id: ID!) {\r\n activationRules {\r\n byId(id: $id) {\r\n ...ActivationRuleFields\r\n company {\r\n ...CompanyFields\r\n }\r\n region {\r\n ...RegionFields\r\n }\r\n base {\r\n ...BaseFields\r\n }\r\n vehicle {\r\n ...VehicleFields\r\n }\r\n unit {\r\n ...UnitFields\r\n }\r\n medicalFacility {\r\n ...MedicalFacilityFields\r\n }\r\n location {\r\n ...LocationFields\r\n }\r\n alerts {\r\n ...AlertFields\r\n }\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n }\r\n }\r\n ${ActivationRuleFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${RegionFieldsFragmentDoc}\r\n ${BaseFieldsFragmentDoc}\r\n ${VehicleFieldsFragmentDoc}\r\n ${UnitFieldsFragmentDoc}\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${AlertFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ActivationRuleDetailsComponent_FetchActivationRuleByIdGQL extends Apollo.Query<\r\n ActivationRuleDetailsComponent_FetchActivationRuleByIdQuery,\r\n ActivationRuleDetailsComponent_FetchActivationRuleByIdQueryVariables\r\n> {\r\n document = ActivationRuleDetailsComponent_FetchActivationRuleByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ActivationRuleForm_GetRegionsDocument = gql`\r\n query ActivationRuleForm_GetRegions($filter: RegionFilter, $first: Int, $skip: Int) {\r\n regions {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n id\r\n name\r\n communicationCenter {\r\n id\r\n name\r\n }\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ActivationRuleForm_GetRegionsGQL extends Apollo.Query<\r\n ActivationRuleForm_GetRegionsQuery,\r\n ActivationRuleForm_GetRegionsQueryVariables\r\n> {\r\n document = ActivationRuleForm_GetRegionsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ActivationRuleForm_GetCommunicationCentersDocument = gql`\r\n query ActivationRuleForm_GetCommunicationCenters(\r\n $filter: CommunicationCenterFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n communicationCenters {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n id\r\n name\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ActivationRuleForm_GetCommunicationCentersGQL extends Apollo.Query<\r\n ActivationRuleForm_GetCommunicationCentersQuery,\r\n ActivationRuleForm_GetCommunicationCentersQueryVariables\r\n> {\r\n document = ActivationRuleForm_GetCommunicationCentersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ActivationRuleForm_GetActivationRuleIdDocument = gql`\r\n query ActivationRuleForm_GetActivationRuleId($id: ID!) {\r\n activationRules {\r\n byId(id: $id) {\r\n ...ActivationRuleFields\r\n medicalFacility {\r\n ...MedicalFacilityFields\r\n requesters {\r\n id\r\n }\r\n requests {\r\n id\r\n }\r\n }\r\n location {\r\n ...LocationFields\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n }\r\n }\r\n ${ActivationRuleFieldsFragmentDoc}\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ActivationRuleForm_GetActivationRuleIdGQL extends Apollo.Query<\r\n ActivationRuleForm_GetActivationRuleIdQuery,\r\n ActivationRuleForm_GetActivationRuleIdQueryVariables\r\n> {\r\n document = ActivationRuleForm_GetActivationRuleIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ActivationRuleForm_GetDeclineReasonsDocument = gql`\r\n query ActivationRuleForm_GetDeclineReasons($filter: DeclineReasonFilter) {\r\n declineReasons {\r\n all(filter: $filter) {\r\n items {\r\n ...DeclineReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${DeclineReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ActivationRuleForm_GetDeclineReasonsGQL extends Apollo.Query<\r\n ActivationRuleForm_GetDeclineReasonsQuery,\r\n ActivationRuleForm_GetDeclineReasonsQueryVariables\r\n> {\r\n document = ActivationRuleForm_GetDeclineReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const AgencyListPageComponent_FetchAgenciesDocument = gql`\r\n query AgencyListPageComponent_FetchAgencies($filter: AgencyFilter, $first: Int, $skip: Int) {\r\n agencies {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...AgencyFields\r\n locations {\r\n ...AgencyLocationFields\r\n location {\r\n ...LocationFields\r\n }\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${AgencyFieldsFragmentDoc}\r\n ${AgencyLocationFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AgencyListPageComponent_FetchAgenciesGQL extends Apollo.Query<\r\n AgencyListPageComponent_FetchAgenciesQuery,\r\n AgencyListPageComponent_FetchAgenciesQueryVariables\r\n> {\r\n document = AgencyListPageComponent_FetchAgenciesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const AgencyLocationListComponent_FetchAllAgencyLocationsDocument = gql`\r\n query AgencyLocationListComponent_FetchAllAgencyLocations(\r\n $filter: AgencyLocationFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n agencyLocations {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...AgencyLocationFields\r\n location {\r\n ...LocationFields\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${AgencyLocationFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AgencyLocationListComponent_FetchAllAgencyLocationsGQL extends Apollo.Query<\r\n AgencyLocationListComponent_FetchAllAgencyLocationsQuery,\r\n AgencyLocationListComponent_FetchAllAgencyLocationsQueryVariables\r\n> {\r\n document = AgencyLocationListComponent_FetchAllAgencyLocationsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const AgencyLocationManagePageComponent_FetchAgencyLocationByIdDocument = gql`\r\n query AgencyLocationManagePageComponent_FetchAgencyLocationById($id: ID!) {\r\n agencyLocations {\r\n byId(id: $id) {\r\n ...AgencyLocationFields\r\n location {\r\n ...LocationFields\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${AgencyLocationFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AgencyLocationManagePageComponent_FetchAgencyLocationByIdGQL extends Apollo.Query<\r\n AgencyLocationManagePageComponent_FetchAgencyLocationByIdQuery,\r\n AgencyLocationManagePageComponent_FetchAgencyLocationByIdQueryVariables\r\n> {\r\n document = AgencyLocationManagePageComponent_FetchAgencyLocationByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FboListPageComponent_FetchAllFbosDocument = gql`\r\n query FboListPageComponent_FetchAllFbos($filter: FboFilter, $first: Int, $skip: Int) {\r\n fbos {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...FboFields\r\n airports {\r\n ...AirportFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${FboFieldsFragmentDoc}\r\n ${AirportFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FboListPageComponent_FetchAllFbosGQL extends Apollo.Query<\r\n FboListPageComponent_FetchAllFbosQuery,\r\n FboListPageComponent_FetchAllFbosQueryVariables\r\n> {\r\n document = FboListPageComponent_FetchAllFbosDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const AirportListPageComponent_FetchAllAirportsDocument = gql`\r\n query AirportListPageComponent_FetchAllAirports($filter: AirportFilter, $first: Int, $skip: Int) {\r\n airports {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...AirportFields\r\n preferredFbo {\r\n ...FboFields\r\n }\r\n location {\r\n ...LocationFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${AirportFieldsFragmentDoc}\r\n ${FboFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AirportListPageComponent_FetchAllAirportsGQL extends Apollo.Query<\r\n AirportListPageComponent_FetchAllAirportsQuery,\r\n AirportListPageComponent_FetchAllAirportsQueryVariables\r\n> {\r\n document = AirportListPageComponent_FetchAllAirportsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const AlertListPageDocument = gql`\r\n query AlertListPage($filter: AlertFilter, $first: Int, $skip: Int) {\r\n alerts {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...AlertFields\r\n activationRule {\r\n ...ActivationRuleFields\r\n medicalFacility {\r\n ...MedicalFacilityFields\r\n }\r\n location {\r\n ...LocationFields\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${AlertFieldsFragmentDoc}\r\n ${ActivationRuleFieldsFragmentDoc}\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AlertListPageGQL extends Apollo.Query<\r\n AlertListPageQuery,\r\n AlertListPageQueryVariables\r\n> {\r\n document = AlertListPageDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ApplicationNotificationFormComponent_FetchAllRegionsDocument = gql`\r\n query ApplicationNotificationFormComponent_FetchAllRegions(\r\n $filter: RegionFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n regions {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...RegionFields\r\n regionGroup {\r\n ...RegionGroupFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${RegionFieldsFragmentDoc}\r\n ${RegionGroupFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ApplicationNotificationFormComponent_FetchAllRegionsGQL extends Apollo.Query<\r\n ApplicationNotificationFormComponent_FetchAllRegionsQuery,\r\n ApplicationNotificationFormComponent_FetchAllRegionsQueryVariables\r\n> {\r\n document = ApplicationNotificationFormComponent_FetchAllRegionsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ApplicationNotificationListPageComponent_FetchAllApplicationNotificationsDocument = gql`\r\n query ApplicationNotificationListPageComponent_FetchAllApplicationNotifications(\r\n $filter: ApplicationNotificationFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n applicationNotifications {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...ApplicationNotificationFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${ApplicationNotificationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ApplicationNotificationListPageComponent_FetchAllApplicationNotificationsGQL extends Apollo.Query<\r\n ApplicationNotificationListPageComponent_FetchAllApplicationNotificationsQuery,\r\n ApplicationNotificationListPageComponent_FetchAllApplicationNotificationsQueryVariables\r\n> {\r\n document = ApplicationNotificationListPageComponent_FetchAllApplicationNotificationsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CancellationCategoryFormComponent_FetchAllCancellationReasonsDocument = gql`\r\n query CancellationCategoryFormComponent_FetchAllCancellationReasons(\r\n $filter: CancellationReasonFilter\r\n ) {\r\n cancellationReasons {\r\n all(filter: $filter) {\r\n items {\r\n ...CancellationReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CancellationReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CancellationCategoryFormComponent_FetchAllCancellationReasonsGQL extends Apollo.Query<\r\n CancellationCategoryFormComponent_FetchAllCancellationReasonsQuery,\r\n CancellationCategoryFormComponent_FetchAllCancellationReasonsQueryVariables\r\n> {\r\n document = CancellationCategoryFormComponent_FetchAllCancellationReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CancellationCategoryListPageComponent_FetchAllCancellationCategoriesDocument = gql`\r\n query CancellationCategoryListPageComponent_FetchAllCancellationCategories(\r\n $filter: CancellationCategoryFilter\r\n ) {\r\n cancellationCategories {\r\n all(filter: $filter) {\r\n items {\r\n ...CancellationCategoryFields\r\n defaultCancellationReason {\r\n ...CancellationReasonFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CancellationCategoryFieldsFragmentDoc}\r\n ${CancellationReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CancellationCategoryListPageComponent_FetchAllCancellationCategoriesGQL extends Apollo.Query<\r\n CancellationCategoryListPageComponent_FetchAllCancellationCategoriesQuery,\r\n CancellationCategoryListPageComponent_FetchAllCancellationCategoriesQueryVariables\r\n> {\r\n document = CancellationCategoryListPageComponent_FetchAllCancellationCategoriesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CancellationReasonFormComponent_FetchSecondaryReasonsByCancellationReasonIdDocument = gql`\r\n query CancellationReasonFormComponent_FetchSecondaryReasonsByCancellationReasonId($id: ID!) {\r\n cancellationReasons {\r\n byId(id: $id) {\r\n cancellationSecondaryReasons {\r\n ...CancellationSecondaryReasonFields\r\n }\r\n }\r\n }\r\n }\r\n ${CancellationSecondaryReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CancellationReasonFormComponent_FetchSecondaryReasonsByCancellationReasonIdGQL extends Apollo.Query<\r\n CancellationReasonFormComponent_FetchSecondaryReasonsByCancellationReasonIdQuery,\r\n CancellationReasonFormComponent_FetchSecondaryReasonsByCancellationReasonIdQueryVariables\r\n> {\r\n document = CancellationReasonFormComponent_FetchSecondaryReasonsByCancellationReasonIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CancellationReasonListPageComponent_FetchAllCancellationReasonsDocument = gql`\r\n query CancellationReasonListPageComponent_FetchAllCancellationReasons(\r\n $filter: CancellationReasonFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n cancellationReasons {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...CancellationReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CancellationReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CancellationReasonListPageComponent_FetchAllCancellationReasonsGQL extends Apollo.Query<\r\n CancellationReasonListPageComponent_FetchAllCancellationReasonsQuery,\r\n CancellationReasonListPageComponent_FetchAllCancellationReasonsQueryVariables\r\n> {\r\n document = CancellationReasonListPageComponent_FetchAllCancellationReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CancellationSeconadaryReasonListComponent_FetchSecondaryReasonsByCancellationReasonIdDocument = gql`\r\n query CancellationSeconadaryReasonListComponent_FetchSecondaryReasonsByCancellationReasonId(\r\n $id: ID!\r\n ) {\r\n cancellationReasons {\r\n byId(id: $id) {\r\n cancellationSecondaryReasons {\r\n ...CancellationSecondaryReasonFields\r\n }\r\n }\r\n }\r\n }\r\n ${CancellationSecondaryReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CancellationSeconadaryReasonListComponent_FetchSecondaryReasonsByCancellationReasonIdGQL extends Apollo.Query<\r\n CancellationSeconadaryReasonListComponent_FetchSecondaryReasonsByCancellationReasonIdQuery,\r\n CancellationSeconadaryReasonListComponent_FetchSecondaryReasonsByCancellationReasonIdQueryVariables\r\n> {\r\n document =\r\n CancellationSeconadaryReasonListComponent_FetchSecondaryReasonsByCancellationReasonIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CapabilityListPageComponent_FetchAllCapabilitiesDocument = gql`\r\n query CapabilityListPageComponent_FetchAllCapabilities(\r\n $filter: CapabilityFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n capabilities {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...CapabilityFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CapabilityListPageComponent_FetchAllCapabilitiesGQL extends Apollo.Query<\r\n CapabilityListPageComponent_FetchAllCapabilitiesQuery,\r\n CapabilityListPageComponent_FetchAllCapabilitiesQueryVariables\r\n> {\r\n document = CapabilityListPageComponent_FetchAllCapabilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CardReOpenReasonListPageComponent_FetchAllCardReOpenReasonsDocument = gql`\r\n query CardReOpenReasonListPageComponent_FetchAllCardReOpenReasons(\r\n $filter: CardReopenReasonFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n cardReopenReasons {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...CardReOpenReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CardReOpenReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CardReOpenReasonListPageComponent_FetchAllCardReOpenReasonsGQL extends Apollo.Query<\r\n CardReOpenReasonListPageComponent_FetchAllCardReOpenReasonsQuery,\r\n CardReOpenReasonListPageComponent_FetchAllCardReOpenReasonsQueryVariables\r\n> {\r\n document = CardReOpenReasonListPageComponent_FetchAllCardReOpenReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CommunicationCenterDetailPageComponent_FetchCommunicationCenterByIdDocument = gql`\r\n query CommunicationCenterDetailPageComponent_FetchCommunicationCenterById($id: ID!) {\r\n communicationCenters {\r\n byId(id: $id) {\r\n ...CommunicationCenterFields\r\n states\r\n company {\r\n ...CompanyFields\r\n }\r\n transferCenterRegion {\r\n ...RegionFields\r\n }\r\n }\r\n }\r\n }\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${RegionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CommunicationCenterDetailPageComponent_FetchCommunicationCenterByIdGQL extends Apollo.Query<\r\n CommunicationCenterDetailPageComponent_FetchCommunicationCenterByIdQuery,\r\n CommunicationCenterDetailPageComponent_FetchCommunicationCenterByIdQueryVariables\r\n> {\r\n document = CommunicationCenterDetailPageComponent_FetchCommunicationCenterByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CommunicationCenterListPageComponent_FetchAllCommunicationCentersDocument = gql`\r\n query CommunicationCenterListPageComponent_FetchAllCommunicationCenters(\r\n $filter: CommunicationCenterFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n communicationCenters {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...CommunicationCenterFields\r\n states\r\n company {\r\n ...CompanyFields\r\n }\r\n transferCenterRegion {\r\n ...RegionFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${RegionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CommunicationCenterListPageComponent_FetchAllCommunicationCentersGQL extends Apollo.Query<\r\n CommunicationCenterListPageComponent_FetchAllCommunicationCentersQuery,\r\n CommunicationCenterListPageComponent_FetchAllCommunicationCentersQueryVariables\r\n> {\r\n document = CommunicationCenterListPageComponent_FetchAllCommunicationCentersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CommunicationCenterRegionsListComponent_FetchRegionsDocument = gql`\r\n query CommunicationCenterRegionsListComponent_FetchRegions($id: ID!) {\r\n communicationCenters {\r\n byId(id: $id) {\r\n regions {\r\n ...RegionFields\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${RegionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CommunicationCenterRegionsListComponent_FetchRegionsGQL extends Apollo.Query<\r\n CommunicationCenterRegionsListComponent_FetchRegionsQuery,\r\n CommunicationCenterRegionsListComponent_FetchRegionsQueryVariables\r\n> {\r\n document = CommunicationCenterRegionsListComponent_FetchRegionsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CommunicationCenterTransferCentersListComponent_FetchTransferCentersDocument = gql`\r\n query CommunicationCenterTransferCentersListComponent_FetchTransferCenters($id: ID!) {\r\n communicationCenters {\r\n byId(id: $id) {\r\n transferCenters {\r\n ...TransferCenterFields\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${TransferCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CommunicationCenterTransferCentersListComponent_FetchTransferCentersGQL extends Apollo.Query<\r\n CommunicationCenterTransferCentersListComponent_FetchTransferCentersQuery,\r\n CommunicationCenterTransferCentersListComponent_FetchTransferCentersQueryVariables\r\n> {\r\n document = CommunicationCenterTransferCentersListComponent_FetchTransferCentersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CommunicationCenterTransportOffersOptionsDialog_FetchCommunicationCenterTransportOffersOptionsDocument = gql`\r\n query CommunicationCenterTransportOffersOptionsDialog_FetchCommunicationCenterTransportOffersOptions(\r\n $id: ID!\r\n ) {\r\n communicationCenters {\r\n byId(id: $id) {\r\n communicationCenterTransportOfferOption {\r\n ...CommunicationCenterTransportOfferOptionFields\r\n }\r\n }\r\n }\r\n }\r\n ${CommunicationCenterTransportOfferOptionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CommunicationCenterTransportOffersOptionsDialog_FetchCommunicationCenterTransportOffersOptionsGQL extends Apollo.Query<\r\n CommunicationCenterTransportOffersOptionsDialog_FetchCommunicationCenterTransportOffersOptionsQuery,\r\n CommunicationCenterTransportOffersOptionsDialog_FetchCommunicationCenterTransportOffersOptionsQueryVariables\r\n> {\r\n document =\r\n CommunicationCenterTransportOffersOptionsDialog_FetchCommunicationCenterTransportOffersOptionsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ControlZoneBasesListComponent_FetchBasesDocument = gql`\r\n query ControlZoneBasesListComponent_FetchBases($controlZoneId: ID!) {\r\n baseControlZones {\r\n all(filter: { controlZoneId: $controlZoneId }) {\r\n items {\r\n id\r\n base {\r\n ...BaseFields\r\n }\r\n company {\r\n ...CompanyFields\r\n }\r\n controlZone {\r\n ...ControlZoneFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${BaseFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${ControlZoneFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ControlZoneBasesListComponent_FetchBasesGQL extends Apollo.Query<\r\n ControlZoneBasesListComponent_FetchBasesQuery,\r\n ControlZoneBasesListComponent_FetchBasesQueryVariables\r\n> {\r\n document = ControlZoneBasesListComponent_FetchBasesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ControlZoneListPageComponent_FetchAllControlZonesDocument = gql`\r\n query ControlZoneListPageComponent_FetchAllControlZones(\r\n $filter: ControlZoneFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n controlZones {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...ControlZoneFields\r\n company {\r\n ...CompanyFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${ControlZoneFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ControlZoneListPageComponent_FetchAllControlZonesGQL extends Apollo.Query<\r\n ControlZoneListPageComponent_FetchAllControlZonesQuery,\r\n ControlZoneListPageComponent_FetchAllControlZonesQueryVariables\r\n> {\r\n document = ControlZoneListPageComponent_FetchAllControlZonesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ControlZoneVehiclesListComponent_FetchVehiclesDocument = gql`\r\n query ControlZoneVehiclesListComponent_FetchVehicles($controlZoneId: ID!) {\r\n vehicleControlZones {\r\n all(filter: { controlZoneId: $controlZoneId }) {\r\n items {\r\n id\r\n vehicle {\r\n ...VehicleFields\r\n }\r\n company {\r\n ...CompanyFields\r\n }\r\n controlZone {\r\n ...ControlZoneFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${ControlZoneFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ControlZoneVehiclesListComponent_FetchVehiclesGQL extends Apollo.Query<\r\n ControlZoneVehiclesListComponent_FetchVehiclesQuery,\r\n ControlZoneVehiclesListComponent_FetchVehiclesQueryVariables\r\n> {\r\n document = ControlZoneVehiclesListComponent_FetchVehiclesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const DeclineCategoryFormComponent_FetchAllDeclineReasonsDocument = gql`\r\n query DeclineCategoryFormComponent_FetchAllDeclineReasons($filter: DeclineReasonFilter) {\r\n declineReasons {\r\n all(filter: $filter) {\r\n items {\r\n ...DeclineReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${DeclineReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class DeclineCategoryFormComponent_FetchAllDeclineReasonsGQL extends Apollo.Query<\r\n DeclineCategoryFormComponent_FetchAllDeclineReasonsQuery,\r\n DeclineCategoryFormComponent_FetchAllDeclineReasonsQueryVariables\r\n> {\r\n document = DeclineCategoryFormComponent_FetchAllDeclineReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const DeclineCategoryListPageComponent_FetchAllDeclineCategoriesDocument = gql`\r\n query DeclineCategoryListPageComponent_FetchAllDeclineCategories($filter: DeclineCategoryFilter) {\r\n declineCategories {\r\n all(filter: $filter) {\r\n items {\r\n ...DeclineCategoryFields\r\n defaultDeclineReason {\r\n ...DeclineReasonFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${DeclineCategoryFieldsFragmentDoc}\r\n ${DeclineReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class DeclineCategoryListPageComponent_FetchAllDeclineCategoriesGQL extends Apollo.Query<\r\n DeclineCategoryListPageComponent_FetchAllDeclineCategoriesQuery,\r\n DeclineCategoryListPageComponent_FetchAllDeclineCategoriesQueryVariables\r\n> {\r\n document = DeclineCategoryListPageComponent_FetchAllDeclineCategoriesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const DeclineReasonFormComponent_FetchAllDeclineCategoriesDocument = gql`\r\n query DeclineReasonFormComponent_FetchAllDeclineCategories($filter: DeclineCategoryFilter) {\r\n declineCategories {\r\n all(filter: $filter) {\r\n items {\r\n ...DeclineCategoryFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${DeclineCategoryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class DeclineReasonFormComponent_FetchAllDeclineCategoriesGQL extends Apollo.Query<\r\n DeclineReasonFormComponent_FetchAllDeclineCategoriesQuery,\r\n DeclineReasonFormComponent_FetchAllDeclineCategoriesQueryVariables\r\n> {\r\n document = DeclineReasonFormComponent_FetchAllDeclineCategoriesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const DeclineReasonListPageComponent_FetchAllDeclineReasonsDocument = gql`\r\n query DeclineReasonListPageComponent_FetchAllDeclineReasons($filter: DeclineReasonFilter) {\r\n declineReasons {\r\n all(filter: $filter) {\r\n items {\r\n ...DeclineReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${DeclineReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class DeclineReasonListPageComponent_FetchAllDeclineReasonsGQL extends Apollo.Query<\r\n DeclineReasonListPageComponent_FetchAllDeclineReasonsQuery,\r\n DeclineReasonListPageComponent_FetchAllDeclineReasonsQueryVariables\r\n> {\r\n document = DeclineReasonListPageComponent_FetchAllDeclineReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const DeclineSeconadaryReasonListComponent_FetchSecondaryReasonsByDeclineReasonIdDocument = gql`\r\n query DeclineSeconadaryReasonListComponent_FetchSecondaryReasonsByDeclineReasonId($id: ID!) {\r\n declineReasons {\r\n byId(id: $id) {\r\n declineSecondaryReasons {\r\n ...DeclineSecondaryReasonFields\r\n }\r\n }\r\n }\r\n }\r\n ${DeclineSecondaryReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class DeclineSeconadaryReasonListComponent_FetchSecondaryReasonsByDeclineReasonIdGQL extends Apollo.Query<\r\n DeclineSeconadaryReasonListComponent_FetchSecondaryReasonsByDeclineReasonIdQuery,\r\n DeclineSeconadaryReasonListComponent_FetchSecondaryReasonsByDeclineReasonIdQueryVariables\r\n> {\r\n document = DeclineSeconadaryReasonListComponent_FetchSecondaryReasonsByDeclineReasonIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const DiversionReasonListPageComponent_FetchAllDiversionReasonsDocument = gql`\r\n query DiversionReasonListPageComponent_FetchAllDiversionReasons(\r\n $filter: DiversionReasonFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n diversionReasons {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...DiversionReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${DiversionReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class DiversionReasonListPageComponent_FetchAllDiversionReasonsGQL extends Apollo.Query<\r\n DiversionReasonListPageComponent_FetchAllDiversionReasonsQuery,\r\n DiversionReasonListPageComponent_FetchAllDiversionReasonsQueryVariables\r\n> {\r\n document = DiversionReasonListPageComponent_FetchAllDiversionReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FacilityNonAcceptanceReasonListPageComponent_FetchAllFacilityNonAcceptanceReasonsDocument = gql`\r\n query FacilityNonAcceptanceReasonListPageComponent_FetchAllFacilityNonAcceptanceReasons(\r\n $filter: FacilityNonAcceptanceReasonFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n facilityNonAcceptanceReasons {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...FacilityNonAcceptanceReasonFields\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${FacilityNonAcceptanceReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FacilityNonAcceptanceReasonListPageComponent_FetchAllFacilityNonAcceptanceReasonsGQL extends Apollo.Query<\r\n FacilityNonAcceptanceReasonListPageComponent_FetchAllFacilityNonAcceptanceReasonsQuery,\r\n FacilityNonAcceptanceReasonListPageComponent_FetchAllFacilityNonAcceptanceReasonsQueryVariables\r\n> {\r\n document =\r\n FacilityNonAcceptanceReasonListPageComponent_FetchAllFacilityNonAcceptanceReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FirewallRuleListPageComponent_FetchAllFirewallRulesDocument = gql`\r\n query FirewallRuleListPageComponent_FetchAllFirewallRules(\r\n $filter: FirewallRuleFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n firewallRules {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...FirewallRuleFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${FirewallRuleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FirewallRuleListPageComponent_FetchAllFirewallRulesGQL extends Apollo.Query<\r\n FirewallRuleListPageComponent_FetchAllFirewallRulesQuery,\r\n FirewallRuleListPageComponent_FetchAllFirewallRulesQueryVariables\r\n> {\r\n document = FirewallRuleListPageComponent_FetchAllFirewallRulesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FuelTankListPageComponent_FetchAllFuelTanksDocument = gql`\r\n query FuelTankListPageComponent_FetchAllFuelTanks(\r\n $filter: FuelTankFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n fueltanks {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...FuelTankFields\r\n location {\r\n ...LocationFields\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${FuelTankFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FuelTankListPageComponent_FetchAllFuelTanksGQL extends Apollo.Query<\r\n FuelTankListPageComponent_FetchAllFuelTanksQuery,\r\n FuelTankListPageComponent_FetchAllFuelTanksQueryVariables\r\n> {\r\n document = FuelTankListPageComponent_FetchAllFuelTanksDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FuelTankManagePageComponent_FetchFuelTankByIdDocument = gql`\r\n query FuelTankManagePageComponent_FetchFuelTankById($id: ID!) {\r\n fueltanks {\r\n byId(id: $id) {\r\n ...FuelTankFields\r\n location {\r\n ...LocationFields\r\n }\r\n }\r\n }\r\n }\r\n ${FuelTankFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FuelTankManagePageComponent_FetchFuelTankByIdGQL extends Apollo.Query<\r\n FuelTankManagePageComponent_FetchFuelTankByIdQuery,\r\n FuelTankManagePageComponent_FetchFuelTankByIdQueryVariables\r\n> {\r\n document = FuelTankManagePageComponent_FetchFuelTankByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GlobalSettingsFormComponent_FetchAllDeclineReasonsDocument = gql`\r\n query GlobalSettingsFormComponent_FetchAllDeclineReasons($filter: DeclineReasonFilter) {\r\n declineReasons {\r\n all(filter: $filter) {\r\n items {\r\n ...DeclineReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${DeclineReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GlobalSettingsFormComponent_FetchAllDeclineReasonsGQL extends Apollo.Query<\r\n GlobalSettingsFormComponent_FetchAllDeclineReasonsQuery,\r\n GlobalSettingsFormComponent_FetchAllDeclineReasonsQueryVariables\r\n> {\r\n document = GlobalSettingsFormComponent_FetchAllDeclineReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GlobalSettingsFormComponent_FetchAllCancellationReasonsDocument = gql`\r\n query GlobalSettingsFormComponent_FetchAllCancellationReasons($filter: CancellationReasonFilter) {\r\n cancellationReasons {\r\n all(filter: $filter) {\r\n items {\r\n ...CancellationReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CancellationReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GlobalSettingsFormComponent_FetchAllCancellationReasonsGQL extends Apollo.Query<\r\n GlobalSettingsFormComponent_FetchAllCancellationReasonsQuery,\r\n GlobalSettingsFormComponent_FetchAllCancellationReasonsQueryVariables\r\n> {\r\n document = GlobalSettingsFormComponent_FetchAllCancellationReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GlobalSettingsListPageComponent_FetchConfiguredRequestActionReasonsDocument = gql`\r\n query GlobalSettingsListPageComponent_FetchConfiguredRequestActionReasons {\r\n declineReasons {\r\n all {\r\n items {\r\n id\r\n name\r\n }\r\n }\r\n }\r\n requests {\r\n allCancellationReasons {\r\n id\r\n name\r\n }\r\n }\r\n configurationSettings {\r\n global {\r\n ...ConfigurationSettingFields\r\n }\r\n }\r\n }\r\n ${ConfigurationSettingFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GlobalSettingsListPageComponent_FetchConfiguredRequestActionReasonsGQL extends Apollo.Query<\r\n GlobalSettingsListPageComponent_FetchConfiguredRequestActionReasonsQuery,\r\n GlobalSettingsListPageComponent_FetchConfiguredRequestActionReasonsQueryVariables\r\n> {\r\n document = GlobalSettingsListPageComponent_FetchConfiguredRequestActionReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GlobalSettingsManagePageComponent_FetchConfigurationSettingsDocument = gql`\r\n query GlobalSettingsManagePageComponent_FetchConfigurationSettings {\r\n configurationSettings {\r\n global {\r\n ...ConfigurationSettingFields\r\n }\r\n }\r\n }\r\n ${ConfigurationSettingFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GlobalSettingsManagePageComponent_FetchConfigurationSettingsGQL extends Apollo.Query<\r\n GlobalSettingsManagePageComponent_FetchConfigurationSettingsQuery,\r\n GlobalSettingsManagePageComponent_FetchConfigurationSettingsQueryVariables\r\n> {\r\n document = GlobalSettingsManagePageComponent_FetchConfigurationSettingsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const HazardListComponent_FetchAllLocationHazardsDocument = gql`\r\n query HazardListComponent_FetchAllLocationHazards($filter: LocationHazardFilter) {\r\n locationHazards {\r\n all(filter: $filter) {\r\n items {\r\n ...LocationHazardFields\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${LocationHazardFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class HazardListComponent_FetchAllLocationHazardsGQL extends Apollo.Query<\r\n HazardListComponent_FetchAllLocationHazardsQuery,\r\n HazardListComponent_FetchAllLocationHazardsQueryVariables\r\n> {\r\n document = HazardListComponent_FetchAllLocationHazardsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const LandingZoneFormComponent_FetchAllLandingZoneOutOfServiceReasonsDocument = gql`\r\n query LandingZoneFormComponent_FetchAllLandingZoneOutOfServiceReasons {\r\n landingZoneOutOfServiceReasons {\r\n all {\r\n items {\r\n ...LandingZoneOutOfServiceReasonFields\r\n }\r\n }\r\n }\r\n }\r\n ${LandingZoneOutOfServiceReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class LandingZoneFormComponent_FetchAllLandingZoneOutOfServiceReasonsGQL extends Apollo.Query<\r\n LandingZoneFormComponent_FetchAllLandingZoneOutOfServiceReasonsQuery,\r\n LandingZoneFormComponent_FetchAllLandingZoneOutOfServiceReasonsQueryVariables\r\n> {\r\n document = LandingZoneFormComponent_FetchAllLandingZoneOutOfServiceReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const LandingZoneListPageComponent_FetchAllLandingZonesDocument = gql`\r\n query LandingZoneListPageComponent_FetchAllLandingZones($filter: LocationQueryFilter) {\r\n locations {\r\n all(filter: $filter) {\r\n items {\r\n ...LocationFields\r\n address {\r\n ...AddressFields\r\n }\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${LocationFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class LandingZoneListPageComponent_FetchAllLandingZonesGQL extends Apollo.Query<\r\n LandingZoneListPageComponent_FetchAllLandingZonesQuery,\r\n LandingZoneListPageComponent_FetchAllLandingZonesQueryVariables\r\n> {\r\n document = LandingZoneListPageComponent_FetchAllLandingZonesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MedicalFacilitiesListPageComponent_FetchMedicalFacilitiesDocument = gql`\r\n query MedicalFacilitiesListPageComponent_FetchMedicalFacilities(\r\n $filter: MedicalFacilityFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n medicalFacilities {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...MedicalFacilityFields\r\n location {\r\n ...LocationFields\r\n }\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MedicalFacilitiesListPageComponent_FetchMedicalFacilitiesGQL extends Apollo.Query<\r\n MedicalFacilitiesListPageComponent_FetchMedicalFacilitiesQuery,\r\n MedicalFacilitiesListPageComponent_FetchMedicalFacilitiesQueryVariables\r\n> {\r\n document = MedicalFacilitiesListPageComponent_FetchMedicalFacilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MedicaFacilityContactListComponent_FetchMedicalFacilityContactsDocument = gql`\r\n query MedicaFacilityContactListComponent_FetchMedicalFacilityContacts($id: ID!) {\r\n medicalFacilities {\r\n byId(id: $id) {\r\n contacts {\r\n ...MedicalFacilityContactFields\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityContactFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MedicaFacilityContactListComponent_FetchMedicalFacilityContactsGQL extends Apollo.Query<\r\n MedicaFacilityContactListComponent_FetchMedicalFacilityContactsQuery,\r\n MedicaFacilityContactListComponent_FetchMedicalFacilityContactsQueryVariables\r\n> {\r\n document = MedicaFacilityContactListComponent_FetchMedicalFacilityContactsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MedicalFacilitiesDetailPageComponent_FetchMedicalFacilityDetailEntitiesDocument = gql`\r\n query MedicalFacilitiesDetailPageComponent_FetchMedicalFacilityDetailEntities($id: ID!) {\r\n medicalFacilities {\r\n byId(id: $id) {\r\n ...MedicalFacilityFields\r\n location {\r\n ...LocationFields\r\n }\r\n defaultLandingZone {\r\n ...LocationFields\r\n }\r\n defaultFixedWingLandingZone {\r\n ...LocationFields\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MedicalFacilitiesDetailPageComponent_FetchMedicalFacilityDetailEntitiesGQL extends Apollo.Query<\r\n MedicalFacilitiesDetailPageComponent_FetchMedicalFacilityDetailEntitiesQuery,\r\n MedicalFacilitiesDetailPageComponent_FetchMedicalFacilityDetailEntitiesQueryVariables\r\n> {\r\n document = MedicalFacilitiesDetailPageComponent_FetchMedicalFacilityDetailEntitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MedicalFacilitiesDetailPageComponent_FetchAllEntityCapabilitiesDocument = gql`\r\n query MedicalFacilitiesDetailPageComponent_FetchAllEntityCapabilities(\r\n $filter: EntityCapabilityFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n entityCapabilities {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...EntityCapabilityFields\r\n capability {\r\n ...CapabilityFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${EntityCapabilityFieldsFragmentDoc}\r\n ${CapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MedicalFacilitiesDetailPageComponent_FetchAllEntityCapabilitiesGQL extends Apollo.Query<\r\n MedicalFacilitiesDetailPageComponent_FetchAllEntityCapabilitiesQuery,\r\n MedicalFacilitiesDetailPageComponent_FetchAllEntityCapabilitiesQueryVariables\r\n> {\r\n document = MedicalFacilitiesDetailPageComponent_FetchAllEntityCapabilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MedicalFacilityEditPageComponent_FetchMedicalFacilityEntitiesDocument = gql`\r\n query MedicalFacilityEditPageComponent_FetchMedicalFacilityEntities($id: ID!) {\r\n medicalFacilities {\r\n byId(id: $id) {\r\n ...MedicalFacilityFields\r\n location {\r\n ...LocationFields\r\n }\r\n defaultLandingZone {\r\n ...LocationFields\r\n }\r\n defaultFixedWingLandingZone {\r\n ...LocationFields\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MedicalFacilityEditPageComponent_FetchMedicalFacilityEntitiesGQL extends Apollo.Query<\r\n MedicalFacilityEditPageComponent_FetchMedicalFacilityEntitiesQuery,\r\n MedicalFacilityEditPageComponent_FetchMedicalFacilityEntitiesQueryVariables\r\n> {\r\n document = MedicalFacilityEditPageComponent_FetchMedicalFacilityEntitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MedicalFacilityFormComponent_FetchAllCapabilitiesDocument = gql`\r\n query MedicalFacilityFormComponent_FetchAllCapabilities(\r\n $filter: CapabilityFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n capabilities {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...CapabilityFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MedicalFacilityFormComponent_FetchAllCapabilitiesGQL extends Apollo.Query<\r\n MedicalFacilityFormComponent_FetchAllCapabilitiesQuery,\r\n MedicalFacilityFormComponent_FetchAllCapabilitiesQueryVariables\r\n> {\r\n document = MedicalFacilityFormComponent_FetchAllCapabilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MedicalFacilityFormComponent_FetchAllEntityCapabilitiesDocument = gql`\r\n query MedicalFacilityFormComponent_FetchAllEntityCapabilities(\r\n $filter: EntityCapabilityFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n entityCapabilities {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...EntityCapabilityFields\r\n capability {\r\n ...CapabilityFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${EntityCapabilityFieldsFragmentDoc}\r\n ${CapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MedicalFacilityFormComponent_FetchAllEntityCapabilitiesGQL extends Apollo.Query<\r\n MedicalFacilityFormComponent_FetchAllEntityCapabilitiesQuery,\r\n MedicalFacilityFormComponent_FetchAllEntityCapabilitiesQueryVariables\r\n> {\r\n document = MedicalFacilityFormComponent_FetchAllEntityCapabilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MedicalFacilityFormComponent_FetchMedicalFacilitiesDocument = gql`\r\n query MedicalFacilityFormComponent_FetchMedicalFacilities(\r\n $filter: MedicalFacilityFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n medicalFacilities {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...MedicalFacilityFields\r\n location {\r\n ...LocationFields\r\n }\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MedicalFacilityFormComponent_FetchMedicalFacilitiesGQL extends Apollo.Query<\r\n MedicalFacilityFormComponent_FetchMedicalFacilitiesQuery,\r\n MedicalFacilityFormComponent_FetchMedicalFacilitiesQueryVariables\r\n> {\r\n document = MedicalFacilityFormComponent_FetchMedicalFacilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MergeMedicalFacilityDialogComponent_FetchMedicalFacilityInfoDocument = gql`\r\n query MergeMedicalFacilityDialogComponent_FetchMedicalFacilityInfo($id: ID!) {\r\n medicalFacilities {\r\n byId(id: $id) {\r\n ...MedicalFacilityFields\r\n contacts {\r\n id\r\n }\r\n location {\r\n locationHazards {\r\n id\r\n }\r\n }\r\n activationRules {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MergeMedicalFacilityDialogComponent_FetchMedicalFacilityInfoGQL extends Apollo.Query<\r\n MergeMedicalFacilityDialogComponent_FetchMedicalFacilityInfoQuery,\r\n MergeMedicalFacilityDialogComponent_FetchMedicalFacilityInfoQueryVariables\r\n> {\r\n document = MergeMedicalFacilityDialogComponent_FetchMedicalFacilityInfoDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MedicaFacilityPhysiciansListComponent_FetchMedicalFacilityPhysiciansDocument = gql`\r\n query MedicaFacilityPhysiciansListComponent_FetchMedicalFacilityPhysicians($id: ID!) {\r\n medicalFacilities {\r\n byId(id: $id) {\r\n associatedPhysicians {\r\n ...MedicalFacilityPhysicianFields\r\n physician {\r\n ...PhysicianFields\r\n }\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityPhysicianFieldsFragmentDoc}\r\n ${PhysicianFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MedicaFacilityPhysiciansListComponent_FetchMedicalFacilityPhysiciansGQL extends Apollo.Query<\r\n MedicaFacilityPhysiciansListComponent_FetchMedicalFacilityPhysiciansQuery,\r\n MedicaFacilityPhysiciansListComponent_FetchMedicalFacilityPhysiciansQueryVariables\r\n> {\r\n document = MedicaFacilityPhysiciansListComponent_FetchMedicalFacilityPhysiciansDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MedicaFacilityUnitsListComponent_FetchMedicalFacilityUnitsDocument = gql`\r\n query MedicaFacilityUnitsListComponent_FetchMedicalFacilityUnits($id: ID!) {\r\n medicalFacilities {\r\n byId(id: $id) {\r\n units {\r\n ...MedicalFacilityUnitFields\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityUnitFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MedicaFacilityUnitsListComponent_FetchMedicalFacilityUnitsGQL extends Apollo.Query<\r\n MedicaFacilityUnitsListComponent_FetchMedicalFacilityUnitsQuery,\r\n MedicaFacilityUnitsListComponent_FetchMedicalFacilityUnitsQueryVariables\r\n> {\r\n document = MedicaFacilityUnitsListComponent_FetchMedicalFacilityUnitsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NonReferralReasonListPageComponent_FetchAllNonReferralReasonsDocument = gql`\r\n query NonReferralReasonListPageComponent_FetchAllNonReferralReasons(\r\n $filter: NonReferralReasonFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n nonReferralReasons {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...NonReferralReasonFields\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${NonReferralReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NonReferralReasonListPageComponent_FetchAllNonReferralReasonsGQL extends Apollo.Query<\r\n NonReferralReasonListPageComponent_FetchAllNonReferralReasonsQuery,\r\n NonReferralReasonListPageComponent_FetchAllNonReferralReasonsQueryVariables\r\n> {\r\n document = NonReferralReasonListPageComponent_FetchAllNonReferralReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NotificationTemplateListPageComponent_FetchAllNotificationTemplatesDocument = gql`\r\n query NotificationTemplateListPageComponent_FetchAllNotificationTemplates(\r\n $filter: NotificationTemplateFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n notificationTemplates {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...NotificationTemplateFields\r\n company {\r\n ...CompanyFields\r\n }\r\n activationRule {\r\n ...ActivationRuleFields\r\n medicalFacility {\r\n ...MedicalFacilityFields\r\n }\r\n location {\r\n ...LocationFields\r\n }\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationTemplateFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${ActivationRuleFieldsFragmentDoc}\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NotificationTemplateListPageComponent_FetchAllNotificationTemplatesGQL extends Apollo.Query<\r\n NotificationTemplateListPageComponent_FetchAllNotificationTemplatesQuery,\r\n NotificationTemplateListPageComponent_FetchAllNotificationTemplatesQueryVariables\r\n> {\r\n document = NotificationTemplateListPageComponent_FetchAllNotificationTemplatesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OfferAlgorithmFormComponent_FetchAgencyLocationsDocument = gql`\r\n query OfferAlgorithmFormComponent_FetchAgencyLocations(\r\n $filter: AgencyLocationFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n agencyLocations {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...AgencyLocationFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${AgencyLocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OfferAlgorithmFormComponent_FetchAgencyLocationsGQL extends Apollo.Query<\r\n OfferAlgorithmFormComponent_FetchAgencyLocationsQuery,\r\n OfferAlgorithmFormComponent_FetchAgencyLocationsQueryVariables\r\n> {\r\n document = OfferAlgorithmFormComponent_FetchAgencyLocationsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OfferAlgorithmListPageComponent_FetchAllOfferAlgorithmsDocument = gql`\r\n query OfferAlgorithmListPageComponent_FetchAllOfferAlgorithms(\r\n $filter: OfferAlgorithmFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n offerAlgorithms {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...OfferAlgorithmFields\r\n activationRule {\r\n ...ActivationRuleFields\r\n medicalFacility {\r\n ...MedicalFacilityFields\r\n }\r\n location {\r\n ...LocationFields\r\n }\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${OfferAlgorithmFieldsFragmentDoc}\r\n ${ActivationRuleFieldsFragmentDoc}\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OfferAlgorithmListPageComponent_FetchAllOfferAlgorithmsGQL extends Apollo.Query<\r\n OfferAlgorithmListPageComponent_FetchAllOfferAlgorithmsQuery,\r\n OfferAlgorithmListPageComponent_FetchAllOfferAlgorithmsQueryVariables\r\n> {\r\n document = OfferAlgorithmListPageComponent_FetchAllOfferAlgorithmsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OktaDirectoryListComponent_FetchOktaUsersDocument = gql`\r\n query OktaDirectoryListComponent_FetchOktaUsers($filter: OktaUserFilter, $first: Int) {\r\n okta {\r\n allUsers(filter: $filter, first: $first) {\r\n items {\r\n id\r\n profile {\r\n login\r\n firstName\r\n lastName\r\n email\r\n employeeNumber\r\n }\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OktaDirectoryListComponent_FetchOktaUsersGQL extends Apollo.Query<\r\n OktaDirectoryListComponent_FetchOktaUsersQuery,\r\n OktaDirectoryListComponent_FetchOktaUsersQueryVariables\r\n> {\r\n document = OktaDirectoryListComponent_FetchOktaUsersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OktaProfileDetailPageComponent_FetchOktaDetailEntitiesByIdDocument = gql`\r\n query OktaProfileDetailPageComponent_FetchOktaDetailEntitiesById($idOrLogin: ID!) {\r\n okta {\r\n user(idOrLogin: $idOrLogin) {\r\n id\r\n status\r\n lastUpdated\r\n created\r\n profile {\r\n login\r\n firstName\r\n lastName\r\n email\r\n employeeNumber\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OktaProfileDetailPageComponent_FetchOktaDetailEntitiesByIdGQL extends Apollo.Query<\r\n OktaProfileDetailPageComponent_FetchOktaDetailEntitiesByIdQuery,\r\n OktaProfileDetailPageComponent_FetchOktaDetailEntitiesByIdQueryVariables\r\n> {\r\n document = OktaProfileDetailPageComponent_FetchOktaDetailEntitiesByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ActivationRuleManageDialog_GetActivationRuleIdDocument = gql`\r\n query ActivationRuleManageDialog_GetActivationRuleId($id: ID!) {\r\n activationRules {\r\n byId(id: $id) {\r\n ...ActivationRuleFields\r\n medicalFacility {\r\n ...MedicalFacilityFields\r\n requesters {\r\n id\r\n }\r\n requests {\r\n id\r\n }\r\n }\r\n location {\r\n ...LocationFields\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n }\r\n }\r\n ${ActivationRuleFieldsFragmentDoc}\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ActivationRuleManageDialog_GetActivationRuleIdGQL extends Apollo.Query<\r\n ActivationRuleManageDialog_GetActivationRuleIdQuery,\r\n ActivationRuleManageDialog_GetActivationRuleIdQueryVariables\r\n> {\r\n document = ActivationRuleManageDialog_GetActivationRuleIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CommunicationCenterRegionDialog_FetchUnitsByRegionIdDocument = gql`\r\n query CommunicationCenterRegionDialog_FetchUnitsByRegionId(\r\n $regionId: ID\r\n $includeHidden: Boolean\r\n ) {\r\n units {\r\n all(filter: { regionId: $regionId, includeHidden: $includeHidden }) {\r\n items {\r\n ...UnitFields\r\n }\r\n }\r\n }\r\n }\r\n ${UnitFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CommunicationCenterRegionDialog_FetchUnitsByRegionIdGQL extends Apollo.Query<\r\n CommunicationCenterRegionDialog_FetchUnitsByRegionIdQuery,\r\n CommunicationCenterRegionDialog_FetchUnitsByRegionIdQueryVariables\r\n> {\r\n document = CommunicationCenterRegionDialog_FetchUnitsByRegionIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CommunicationCenterRegionFormComponent_FetchAllCommunicationCentersDocument = gql`\r\n query CommunicationCenterRegionFormComponent_FetchAllCommunicationCenters(\r\n $filter: CommunicationCenterFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n communicationCenters {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...CommunicationCenterFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CommunicationCenterRegionFormComponent_FetchAllCommunicationCentersGQL extends Apollo.Query<\r\n CommunicationCenterRegionFormComponent_FetchAllCommunicationCentersQuery,\r\n CommunicationCenterRegionFormComponent_FetchAllCommunicationCentersQueryVariables\r\n> {\r\n document = CommunicationCenterRegionFormComponent_FetchAllCommunicationCentersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ControlZoneBaseForm_GetBasesDocument = gql`\r\n query ControlZoneBaseForm_GetBases($filter: BaseFilter, $first: Int, $skip: Int) {\r\n bases {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...BaseFields\r\n company {\r\n companyCode\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${BaseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ControlZoneBaseForm_GetBasesGQL extends Apollo.Query<\r\n ControlZoneBaseForm_GetBasesQuery,\r\n ControlZoneBaseForm_GetBasesQueryVariables\r\n> {\r\n document = ControlZoneBaseForm_GetBasesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ControlZoneVehicleForm_GetVehiclesDocument = gql`\r\n query ControlZoneVehicleForm_GetVehicles($filter: VehicleFilter, $first: Int, $skip: Int) {\r\n vehicles {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...VehicleFields\r\n company {\r\n companyCode\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ControlZoneVehicleForm_GetVehiclesGQL extends Apollo.Query<\r\n ControlZoneVehicleForm_GetVehiclesQuery,\r\n ControlZoneVehicleForm_GetVehiclesQueryVariables\r\n> {\r\n document = ControlZoneVehicleForm_GetVehiclesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const HazardEditDialogComponent_FetchLocationHazardAttachmentsDocument = gql`\r\n query HazardEditDialogComponent_FetchLocationHazardAttachments($id: ID!) {\r\n locationHazards {\r\n byId(id: $id) {\r\n locationHazardAttachments {\r\n ...LocationHazardAttachmentFields\r\n }\r\n }\r\n }\r\n }\r\n ${LocationHazardAttachmentFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class HazardEditDialogComponent_FetchLocationHazardAttachmentsGQL extends Apollo.Query<\r\n HazardEditDialogComponent_FetchLocationHazardAttachmentsQuery,\r\n HazardEditDialogComponent_FetchLocationHazardAttachmentsQueryVariables\r\n> {\r\n document = HazardEditDialogComponent_FetchLocationHazardAttachmentsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const MedicalFacilityAssociatedPhysicianFormComponent_FetchAllPhysiciansDocument = gql`\r\n query MedicalFacilityAssociatedPhysicianFormComponent_FetchAllPhysicians(\r\n $filter: PhysicianFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n physicians {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...PhysicianFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${PhysicianFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class MedicalFacilityAssociatedPhysicianFormComponent_FetchAllPhysiciansGQL extends Apollo.Query<\r\n MedicalFacilityAssociatedPhysicianFormComponent_FetchAllPhysiciansQuery,\r\n MedicalFacilityAssociatedPhysicianFormComponent_FetchAllPhysiciansQueryVariables\r\n> {\r\n document = MedicalFacilityAssociatedPhysicianFormComponent_FetchAllPhysiciansDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NotificationGroupListDialogComponent_FetchAllNotificationGroupsDocument = gql`\r\n query NotificationGroupListDialogComponent_FetchAllNotificationGroups(\r\n $filter: NotificationGroupFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n notificationGroups {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...NotificationGroupFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationGroupFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NotificationGroupListDialogComponent_FetchAllNotificationGroupsGQL extends Apollo.Query<\r\n NotificationGroupListDialogComponent_FetchAllNotificationGroupsQuery,\r\n NotificationGroupListDialogComponent_FetchAllNotificationGroupsQueryVariables\r\n> {\r\n document = NotificationGroupListDialogComponent_FetchAllNotificationGroupsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NotificationGroupMemberListDialogComponent_FetchAllNotificationGroupMembersDocument = gql`\r\n query NotificationGroupMemberListDialogComponent_FetchAllNotificationGroupMembers(\r\n $filter: NotificationGroupMemberFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n notificationGroupMembers {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n id\r\n notificationGroupId\r\n name\r\n userId\r\n user {\r\n id\r\n firstName\r\n lastName\r\n email\r\n employeeType\r\n timeType\r\n isAviationSupervisor\r\n notificationAddress\r\n }\r\n notificationAddress\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NotificationGroupMemberListDialogComponent_FetchAllNotificationGroupMembersGQL extends Apollo.Query<\r\n NotificationGroupMemberListDialogComponent_FetchAllNotificationGroupMembersQuery,\r\n NotificationGroupMemberListDialogComponent_FetchAllNotificationGroupMembersQueryVariables\r\n> {\r\n document = NotificationGroupMemberListDialogComponent_FetchAllNotificationGroupMembersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UserNotificationGroupsDialogComponent_FetchAllNotificationGroupsDocument = gql`\r\n query UserNotificationGroupsDialogComponent_FetchAllNotificationGroups(\r\n $filter: NotificationGroupFilter\r\n ) {\r\n notificationGroups {\r\n all(filter: $filter) {\r\n items {\r\n ...NotificationGroupFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationGroupFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UserNotificationGroupsDialogComponent_FetchAllNotificationGroupsGQL extends Apollo.Query<\r\n UserNotificationGroupsDialogComponent_FetchAllNotificationGroupsQuery,\r\n UserNotificationGroupsDialogComponent_FetchAllNotificationGroupsQueryVariables\r\n> {\r\n document = UserNotificationGroupsDialogComponent_FetchAllNotificationGroupsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UserNotificationGroupsDialogComponent_FetchUserNotificationGroupsDocument = gql`\r\n query UserNotificationGroupsDialogComponent_FetchUserNotificationGroups($personId: ID!) {\r\n notificationGroups {\r\n byPerson(personId: $personId) {\r\n id\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UserNotificationGroupsDialogComponent_FetchUserNotificationGroupsGQL extends Apollo.Query<\r\n UserNotificationGroupsDialogComponent_FetchUserNotificationGroupsQuery,\r\n UserNotificationGroupsDialogComponent_FetchUserNotificationGroupsQueryVariables\r\n> {\r\n document = UserNotificationGroupsDialogComponent_FetchUserNotificationGroupsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const VehicleMaintenanceFormComponent_FetchAllNextDueTypesDocument = gql`\r\n query VehicleMaintenanceFormComponent_FetchAllNextDueTypes(\r\n $filter: NextDueTypeFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n nextDueTypes {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n id\r\n name\r\n dataType\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class VehicleMaintenanceFormComponent_FetchAllNextDueTypesGQL extends Apollo.Query<\r\n VehicleMaintenanceFormComponent_FetchAllNextDueTypesQuery,\r\n VehicleMaintenanceFormComponent_FetchAllNextDueTypesQueryVariables\r\n> {\r\n document = VehicleMaintenanceFormComponent_FetchAllNextDueTypesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OutOfServiceReasonListPageComponent_FetchAllOutOfServiceReasonsDocument = gql`\r\n query OutOfServiceReasonListPageComponent_FetchAllOutOfServiceReasons(\r\n $filter: OutOfServiceReasonFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n outOfServiceReasons {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...OutOfServiceReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${OutOfServiceReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OutOfServiceReasonListPageComponent_FetchAllOutOfServiceReasonsGQL extends Apollo.Query<\r\n OutOfServiceReasonListPageComponent_FetchAllOutOfServiceReasonsQuery,\r\n OutOfServiceReasonListPageComponent_FetchAllOutOfServiceReasonsQueryVariables\r\n> {\r\n document = OutOfServiceReasonListPageComponent_FetchAllOutOfServiceReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OutOfServiceSeconadaryReasonListComponent_FetchSecondaryReasonsByPrimaryReasonIdDocument = gql`\r\n query OutOfServiceSeconadaryReasonListComponent_FetchSecondaryReasonsByPrimaryReasonId($id: ID!) {\r\n outOfServiceReasons {\r\n byId(id: $id) {\r\n outOfServiceSecondaryReasons {\r\n ...OutOfServiceSecondaryReasonFields\r\n }\r\n }\r\n }\r\n }\r\n ${OutOfServiceSecondaryReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OutOfServiceSeconadaryReasonListComponent_FetchSecondaryReasonsByPrimaryReasonIdGQL extends Apollo.Query<\r\n OutOfServiceSeconadaryReasonListComponent_FetchSecondaryReasonsByPrimaryReasonIdQuery,\r\n OutOfServiceSeconadaryReasonListComponent_FetchSecondaryReasonsByPrimaryReasonIdQueryVariables\r\n> {\r\n document =\r\n OutOfServiceSeconadaryReasonListComponent_FetchSecondaryReasonsByPrimaryReasonIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const PhysicianListPageComponent_FetchAllPhysiciansDocument = gql`\r\n query PhysicianListPageComponent_FetchAllPhysicians(\r\n $filter: PhysicianFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n physicians {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...PhysicianFields\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${PhysicianFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class PhysicianListPageComponent_FetchAllPhysiciansGQL extends Apollo.Query<\r\n PhysicianListPageComponent_FetchAllPhysiciansQuery,\r\n PhysicianListPageComponent_FetchAllPhysiciansQueryVariables\r\n> {\r\n document = PhysicianListPageComponent_FetchAllPhysiciansDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const PhysicianMedicalFacilitiesListComponent_FetchPhysicianMedicalFacilitiesDocument = gql`\r\n query PhysicianMedicalFacilitiesListComponent_FetchPhysicianMedicalFacilities($id: ID!) {\r\n physicians {\r\n byId(id: $id) {\r\n medicalFacilities {\r\n ...MedicalFacilityPhysicianFields\r\n medicalFacility {\r\n ...MedicalFacilityFields\r\n location {\r\n ...LocationFields\r\n }\r\n }\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${MedicalFacilityPhysicianFieldsFragmentDoc}\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class PhysicianMedicalFacilitiesListComponent_FetchPhysicianMedicalFacilitiesGQL extends Apollo.Query<\r\n PhysicianMedicalFacilitiesListComponent_FetchPhysicianMedicalFacilitiesQuery,\r\n PhysicianMedicalFacilitiesListComponent_FetchPhysicianMedicalFacilitiesQueryVariables\r\n> {\r\n document = PhysicianMedicalFacilitiesListComponent_FetchPhysicianMedicalFacilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const QuestionnaireDetailPageComponent_FetchQuestionnaireByIdDocument = gql`\r\n query QuestionnaireDetailPageComponent_FetchQuestionnaireById($id: ID!) {\r\n questionnaires {\r\n byId(id: $id) {\r\n ...QuestionnaireFields\r\n questionnaireSections {\r\n ...QuestionnaireSectionFields\r\n questionnaireSectionQuestions {\r\n ...QuestionnaireSectionQuestionFields\r\n question {\r\n ...QuestionFields\r\n choices {\r\n ...QuestionChoiceFields\r\n }\r\n }\r\n activationRule {\r\n ...ActivationRuleFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${QuestionnaireFieldsFragmentDoc}\r\n ${QuestionnaireSectionFieldsFragmentDoc}\r\n ${QuestionnaireSectionQuestionFieldsFragmentDoc}\r\n ${QuestionFieldsFragmentDoc}\r\n ${QuestionChoiceFieldsFragmentDoc}\r\n ${ActivationRuleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class QuestionnaireDetailPageComponent_FetchQuestionnaireByIdGQL extends Apollo.Query<\r\n QuestionnaireDetailPageComponent_FetchQuestionnaireByIdQuery,\r\n QuestionnaireDetailPageComponent_FetchQuestionnaireByIdQueryVariables\r\n> {\r\n document = QuestionnaireDetailPageComponent_FetchQuestionnaireByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const QuestionnaireFormComponent_FetchAllCommunicationCentersDocument = gql`\r\n query QuestionnaireFormComponent_FetchAllCommunicationCenters(\r\n $filter: CommunicationCenterFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n communicationCenters {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...CommunicationCenterFields\r\n company {\r\n ...CompanyFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class QuestionnaireFormComponent_FetchAllCommunicationCentersGQL extends Apollo.Query<\r\n QuestionnaireFormComponent_FetchAllCommunicationCentersQuery,\r\n QuestionnaireFormComponent_FetchAllCommunicationCentersQueryVariables\r\n> {\r\n document = QuestionnaireFormComponent_FetchAllCommunicationCentersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const QuestionnaireListPageComponent_FetchQuestionnairesDocument = gql`\r\n query QuestionnaireListPageComponent_FetchQuestionnaires(\r\n $filter: QuestionnaireFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n questionnaires {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...QuestionnaireFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${QuestionnaireFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class QuestionnaireListPageComponent_FetchQuestionnairesGQL extends Apollo.Query<\r\n QuestionnaireListPageComponent_FetchQuestionnairesQuery,\r\n QuestionnaireListPageComponent_FetchQuestionnairesQueryVariables\r\n> {\r\n document = QuestionnaireListPageComponent_FetchQuestionnairesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const QuestionnaireManagePageComponent_FetchQuestionnaireByIdDocument = gql`\r\n query QuestionnaireManagePageComponent_FetchQuestionnaireById($id: ID!) {\r\n questionnaires {\r\n byId(id: $id) {\r\n ...QuestionnaireFields\r\n questionnaireSections {\r\n ...QuestionnaireSectionFields\r\n questionnaireSectionQuestions {\r\n ...QuestionnaireSectionQuestionFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${QuestionnaireFieldsFragmentDoc}\r\n ${QuestionnaireSectionFieldsFragmentDoc}\r\n ${QuestionnaireSectionQuestionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class QuestionnaireManagePageComponent_FetchQuestionnaireByIdGQL extends Apollo.Query<\r\n QuestionnaireManagePageComponent_FetchQuestionnaireByIdQuery,\r\n QuestionnaireManagePageComponent_FetchQuestionnaireByIdQueryVariables\r\n> {\r\n document = QuestionnaireManagePageComponent_FetchQuestionnaireByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const QuestionnaireSectionQuestionFormComponent_FetchActivationRuleByIdDocument = gql`\r\n query QuestionnaireSectionQuestionFormComponent_FetchActivationRuleById($id: ID!) {\r\n activationRules {\r\n byId(id: $id) {\r\n ...ActivationRuleFields\r\n }\r\n }\r\n }\r\n ${ActivationRuleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class QuestionnaireSectionQuestionFormComponent_FetchActivationRuleByIdGQL extends Apollo.Query<\r\n QuestionnaireSectionQuestionFormComponent_FetchActivationRuleByIdQuery,\r\n QuestionnaireSectionQuestionFormComponent_FetchActivationRuleByIdQueryVariables\r\n> {\r\n document = QuestionnaireSectionQuestionFormComponent_FetchActivationRuleByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const QuestionnaireContextResolverService_FetchQuestionsDocument = gql`\r\n query QuestionnaireContextResolverService_FetchQuestions(\r\n $filter: QuestionFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n questions {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...QuestionFields\r\n choices {\r\n ...QuestionChoiceFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${QuestionFieldsFragmentDoc}\r\n ${QuestionChoiceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class QuestionnaireContextResolverService_FetchQuestionsGQL extends Apollo.Query<\r\n QuestionnaireContextResolverService_FetchQuestionsQuery,\r\n QuestionnaireContextResolverService_FetchQuestionsQueryVariables\r\n> {\r\n document = QuestionnaireContextResolverService_FetchQuestionsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const QuestionDetailPageComponent_FetchQuestionByIdDocument = gql`\r\n query QuestionDetailPageComponent_FetchQuestionById($id: ID!) {\r\n questions {\r\n byId(id: $id) {\r\n ...QuestionFields\r\n choices {\r\n ...QuestionChoiceFields\r\n }\r\n }\r\n }\r\n }\r\n ${QuestionFieldsFragmentDoc}\r\n ${QuestionChoiceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class QuestionDetailPageComponent_FetchQuestionByIdGQL extends Apollo.Query<\r\n QuestionDetailPageComponent_FetchQuestionByIdQuery,\r\n QuestionDetailPageComponent_FetchQuestionByIdQueryVariables\r\n> {\r\n document = QuestionDetailPageComponent_FetchQuestionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const QuestionListPageComponent_FetchQuestionsDocument = gql`\r\n query QuestionListPageComponent_FetchQuestions($filter: QuestionFilter, $skip: Int, $first: Int) {\r\n questions {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...QuestionFields\r\n choices {\r\n ...QuestionChoiceFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${QuestionFieldsFragmentDoc}\r\n ${QuestionChoiceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class QuestionListPageComponent_FetchQuestionsGQL extends Apollo.Query<\r\n QuestionListPageComponent_FetchQuestionsQuery,\r\n QuestionListPageComponent_FetchQuestionsQueryVariables\r\n> {\r\n document = QuestionListPageComponent_FetchQuestionsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const QuestionManagePageComponent_FetchQuestionByIdDocument = gql`\r\n query QuestionManagePageComponent_FetchQuestionById($id: ID!) {\r\n questions {\r\n byId(id: $id) {\r\n ...QuestionFields\r\n choices {\r\n ...QuestionChoiceFields\r\n }\r\n }\r\n }\r\n }\r\n ${QuestionFieldsFragmentDoc}\r\n ${QuestionChoiceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class QuestionManagePageComponent_FetchQuestionByIdGQL extends Apollo.Query<\r\n QuestionManagePageComponent_FetchQuestionByIdQuery,\r\n QuestionManagePageComponent_FetchQuestionByIdQueryVariables\r\n> {\r\n document = QuestionManagePageComponent_FetchQuestionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TimelineDetailPageComponent_FetchTimelineByIdDocument = gql`\r\n query TimelineDetailPageComponent_FetchTimelineById($id: ID!) {\r\n timelines {\r\n byId(id: $id) {\r\n ...TimelineFields\r\n company {\r\n ...CompanyFields\r\n }\r\n activationRule {\r\n ...ActivationRuleFields\r\n }\r\n items {\r\n ...TimelineItemFields\r\n timestampType {\r\n ...TimestampTypeFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${TimelineFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${ActivationRuleFieldsFragmentDoc}\r\n ${TimelineItemFieldsFragmentDoc}\r\n ${TimestampTypeFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TimelineDetailPageComponent_FetchTimelineByIdGQL extends Apollo.Query<\r\n TimelineDetailPageComponent_FetchTimelineByIdQuery,\r\n TimelineDetailPageComponent_FetchTimelineByIdQueryVariables\r\n> {\r\n document = TimelineDetailPageComponent_FetchTimelineByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TimelineFormComponent_FetchActivationRuleByIdDocument = gql`\r\n query TimelineFormComponent_FetchActivationRuleById($id: ID!) {\r\n activationRules {\r\n byId(id: $id) {\r\n ...ActivationRuleFields\r\n }\r\n }\r\n }\r\n ${ActivationRuleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TimelineFormComponent_FetchActivationRuleByIdGQL extends Apollo.Query<\r\n TimelineFormComponent_FetchActivationRuleByIdQuery,\r\n TimelineFormComponent_FetchActivationRuleByIdQueryVariables\r\n> {\r\n document = TimelineFormComponent_FetchActivationRuleByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TimelineListPageComponent_FetchTimelinesDocument = gql`\r\n query TimelineListPageComponent_FetchTimelines($filter: TimelineFilter, $skip: Int, $first: Int) {\r\n timelines {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...TimelineFields\r\n company {\r\n ...CompanyFields\r\n }\r\n activationRule {\r\n ...ActivationRuleFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${TimelineFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${ActivationRuleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TimelineListPageComponent_FetchTimelinesGQL extends Apollo.Query<\r\n TimelineListPageComponent_FetchTimelinesQuery,\r\n TimelineListPageComponent_FetchTimelinesQueryVariables\r\n> {\r\n document = TimelineListPageComponent_FetchTimelinesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TimelineManagePageComponent_FetchTimelineByIdDocument = gql`\r\n query TimelineManagePageComponent_FetchTimelineById($id: ID!) {\r\n timelines {\r\n byId(id: $id) {\r\n ...TimelineFields\r\n items {\r\n ...TimelineItemFields\r\n timestampType {\r\n ...TimestampTypeFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${TimelineFieldsFragmentDoc}\r\n ${TimelineItemFieldsFragmentDoc}\r\n ${TimestampTypeFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TimelineManagePageComponent_FetchTimelineByIdGQL extends Apollo.Query<\r\n TimelineManagePageComponent_FetchTimelineByIdQuery,\r\n TimelineManagePageComponent_FetchTimelineByIdQueryVariables\r\n> {\r\n document = TimelineManagePageComponent_FetchTimelineByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TimelinesContextResolverService_FetchTimelinesContextDocument = gql`\r\n query TimelinesContextResolverService_FetchTimelinesContext {\r\n timestampTypes {\r\n all {\r\n items {\r\n ...TimestampTypeFields\r\n }\r\n }\r\n }\r\n }\r\n ${TimestampTypeFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TimelinesContextResolverService_FetchTimelinesContextGQL extends Apollo.Query<\r\n TimelinesContextResolverService_FetchTimelinesContextQuery,\r\n TimelinesContextResolverService_FetchTimelinesContextQueryVariables\r\n> {\r\n document = TimelinesContextResolverService_FetchTimelinesContextDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TimestampTypeListPageComponent_FetchAllTimestampTypesDocument = gql`\r\n query TimestampTypeListPageComponent_FetchAllTimestampTypes(\r\n $filter: TimestampTypeFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n timestampTypes {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...TimestampTypeFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${TimestampTypeFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TimestampTypeListPageComponent_FetchAllTimestampTypesGQL extends Apollo.Query<\r\n TimestampTypeListPageComponent_FetchAllTimestampTypesQuery,\r\n TimestampTypeListPageComponent_FetchAllTimestampTypesQueryVariables\r\n> {\r\n document = TimestampTypeListPageComponent_FetchAllTimestampTypesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TransferReasonListPageComponent_FetchAllTransferReasonsDocument = gql`\r\n query TransferReasonListPageComponent_FetchAllTransferReasons(\r\n $filter: TransferReasonFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n transferReasons {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...TransferReasonFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${TransferReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TransferReasonListPageComponent_FetchAllTransferReasonsGQL extends Apollo.Query<\r\n TransferReasonListPageComponent_FetchAllTransferReasonsQuery,\r\n TransferReasonListPageComponent_FetchAllTransferReasonsQueryVariables\r\n> {\r\n document = TransferReasonListPageComponent_FetchAllTransferReasonsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TrmUserListPageComponent_FetchTrmUsersDocument = gql`\r\n query TrmUserListPageComponent_FetchTrmUsers($filter: TrmUserFilter, $skip: Int, $first: Int) {\r\n trmUsers {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n firstName\r\n lastName\r\n emailAddress\r\n phoneNumber\r\n dateCreated\r\n userStatus\r\n trmUserAgencies {\r\n agency {\r\n name\r\n }\r\n }\r\n trmUserPrograms {\r\n isPreferred\r\n trmUserId\r\n programId\r\n program {\r\n id\r\n name\r\n abbreviation\r\n }\r\n }\r\n trmUserMedicalFacilities {\r\n medicalFacility {\r\n name\r\n }\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TrmUserListPageComponent_FetchTrmUsersGQL extends Apollo.Query<\r\n TrmUserListPageComponent_FetchTrmUsersQuery,\r\n TrmUserListPageComponent_FetchTrmUsersQueryVariables\r\n> {\r\n document = TrmUserListPageComponent_FetchTrmUsersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TrmUserListPageComponent_FetchAllAgenciesDocument = gql`\r\n query TrmUserListPageComponent_FetchAllAgencies($filter: AgencyFilter, $first: Int, $skip: Int) {\r\n agencies {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n name\r\n id\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TrmUserListPageComponent_FetchAllAgenciesGQL extends Apollo.Query<\r\n TrmUserListPageComponent_FetchAllAgenciesQuery,\r\n TrmUserListPageComponent_FetchAllAgenciesQueryVariables\r\n> {\r\n document = TrmUserListPageComponent_FetchAllAgenciesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const TrmUserListPageComponent_FetchAllMedicalFacilitiesDocument = gql`\r\n query TrmUserListPageComponent_FetchAllMedicalFacilities(\r\n $filter: MedicalFacilityFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n medicalFacilities {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n name\r\n id\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TrmUserListPageComponent_FetchAllMedicalFacilitiesGQL extends Apollo.Query<\r\n TrmUserListPageComponent_FetchAllMedicalFacilitiesQuery,\r\n TrmUserListPageComponent_FetchAllMedicalFacilitiesQueryVariables\r\n> {\r\n document = TrmUserListPageComponent_FetchAllMedicalFacilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const VehicleModelsListPageComponent_FetchAllVehicleModelsDocument = gql`\r\n query VehicleModelsListPageComponent_FetchAllVehicleModels(\r\n $filter: VehicleModelFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n vehicleModels {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...VehicleModelFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleModelFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class VehicleModelsListPageComponent_FetchAllVehicleModelsGQL extends Apollo.Query<\r\n VehicleModelsListPageComponent_FetchAllVehicleModelsQuery,\r\n VehicleModelsListPageComponent_FetchAllVehicleModelsQueryVariables\r\n> {\r\n document = VehicleModelsListPageComponent_FetchAllVehicleModelsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const BasesFormComponent_FetchAllBasesDocument = gql`\r\n query BasesFormComponent_FetchAllBases($filter: BaseFilter, $first: Int, $skip: Int) {\r\n bases {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...BaseFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${BaseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class BasesFormComponent_FetchAllBasesGQL extends Apollo.Query<\r\n BasesFormComponent_FetchAllBasesQuery,\r\n BasesFormComponent_FetchAllBasesQueryVariables\r\n> {\r\n document = BasesFormComponent_FetchAllBasesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const BaseMedicalControlContactListComponent_FetchBaseMedicalControlContactsDocument = gql`\r\n query BaseMedicalControlContactListComponent_FetchBaseMedicalControlContacts(\r\n $filter: BaseFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n bases {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n medicalControlContacts {\r\n ...BaseMedicalControlContactFields\r\n person {\r\n ...PersonFields\r\n }\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n baseMedicalControlContactStates {\r\n ...BaseMedicalControlContactStateFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${BaseMedicalControlContactFieldsFragmentDoc}\r\n ${PersonFieldsFragmentDoc}\r\n ${BaseMedicalControlContactStateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class BaseMedicalControlContactListComponent_FetchBaseMedicalControlContactsGQL extends Apollo.Query<\r\n BaseMedicalControlContactListComponent_FetchBaseMedicalControlContactsQuery,\r\n BaseMedicalControlContactListComponent_FetchBaseMedicalControlContactsQueryVariables\r\n> {\r\n document = BaseMedicalControlContactListComponent_FetchBaseMedicalControlContactsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const BasesListPageComponent_FetchAllBasesDocument = gql`\r\n query BasesListPageComponent_FetchAllBases($filter: BaseFilter, $first: Int, $skip: Int) {\r\n bases {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...BaseFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${BaseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class BasesListPageComponent_FetchAllBasesGQL extends Apollo.Query<\r\n BasesListPageComponent_FetchAllBasesQuery,\r\n BasesListPageComponent_FetchAllBasesQueryVariables\r\n> {\r\n document = BasesListPageComponent_FetchAllBasesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ComplianceListPageComponent_FetchAllPeopleDocument = gql`\r\n query ComplianceListPageComponent_FetchAllPeople($filter: PersonFilter, $first: Int, $skip: Int) {\r\n people {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...PersonFields\r\n location {\r\n ...LocationFields\r\n }\r\n company {\r\n ...CompanyFields\r\n }\r\n department {\r\n ...DepartmentFields\r\n }\r\n accessibleItems {\r\n ...AccessibleItemFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${PersonFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${DepartmentFieldsFragmentDoc}\r\n ${AccessibleItemFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ComplianceListPageComponent_FetchAllPeopleGQL extends Apollo.Query<\r\n ComplianceListPageComponent_FetchAllPeopleQuery,\r\n ComplianceListPageComponent_FetchAllPeopleQueryVariables\r\n> {\r\n document = ComplianceListPageComponent_FetchAllPeopleDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const NotificationGroupListPageComponent_FetchAllNotificationGroupsDocument = gql`\r\n query NotificationGroupListPageComponent_FetchAllNotificationGroups(\r\n $filter: NotificationGroupFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n notificationGroups {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...NotificationGroupFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationGroupFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NotificationGroupListPageComponent_FetchAllNotificationGroupsGQL extends Apollo.Query<\r\n NotificationGroupListPageComponent_FetchAllNotificationGroupsQuery,\r\n NotificationGroupListPageComponent_FetchAllNotificationGroupsQueryVariables\r\n> {\r\n document = NotificationGroupListPageComponent_FetchAllNotificationGroupsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ManageCommunicationCenterRoleResolverService_ResolveDocument = gql`\r\n query ManageCommunicationCenterRoleResolverService_Resolve($personId: ID!) {\r\n people {\r\n byId(id: $personId) {\r\n ...PersonFields\r\n accessibleItems {\r\n ...AccessibleItemFields\r\n }\r\n }\r\n }\r\n companies {\r\n all {\r\n items {\r\n ...CompanyFields\r\n }\r\n }\r\n }\r\n communicationCenters {\r\n all {\r\n items {\r\n ...CommunicationCenterFields\r\n }\r\n }\r\n }\r\n }\r\n ${PersonFieldsFragmentDoc}\r\n ${AccessibleItemFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ManageCommunicationCenterRoleResolverService_ResolveGQL extends Apollo.Query<\r\n ManageCommunicationCenterRoleResolverService_ResolveQuery,\r\n ManageCommunicationCenterRoleResolverService_ResolveQueryVariables\r\n> {\r\n document = ManageCommunicationCenterRoleResolverService_ResolveDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const PersonListPageComponent_FetchAllPeopleDocument = gql`\r\n query PersonListPageComponent_FetchAllPeople($filter: PersonFilter, $first: Int, $skip: Int) {\r\n people {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...PersonFields\r\n location {\r\n ...LocationFields\r\n }\r\n company {\r\n ...CompanyFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${PersonFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class PersonListPageComponent_FetchAllPeopleGQL extends Apollo.Query<\r\n PersonListPageComponent_FetchAllPeopleQuery,\r\n PersonListPageComponent_FetchAllPeopleQueryVariables\r\n> {\r\n document = PersonListPageComponent_FetchAllPeopleDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UserDetailPageComponent_FetchOktaPersonEntitiesByIdDocument = gql`\r\n query UserDetailPageComponent_FetchOktaPersonEntitiesById($idOrLogin: ID!) {\r\n okta {\r\n user(idOrLogin: $idOrLogin) {\r\n id\r\n lastUpdated\r\n created\r\n profile {\r\n login\r\n firstName\r\n lastName\r\n email\r\n employeeNumber\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UserDetailPageComponent_FetchOktaPersonEntitiesByIdGQL extends Apollo.Query<\r\n UserDetailPageComponent_FetchOktaPersonEntitiesByIdQuery,\r\n UserDetailPageComponent_FetchOktaPersonEntitiesByIdQueryVariables\r\n> {\r\n document = UserDetailPageComponent_FetchOktaPersonEntitiesByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UserFormComponent_FetchAccessibleItemsDocument = gql`\r\n query UserFormComponent_FetchAccessibleItems($personId: ID!) {\r\n people {\r\n byId(id: $personId) {\r\n accessibleItems {\r\n ...AccessibleItemFields\r\n }\r\n }\r\n }\r\n }\r\n ${AccessibleItemFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UserFormComponent_FetchAccessibleItemsGQL extends Apollo.Query<\r\n UserFormComponent_FetchAccessibleItemsQuery,\r\n UserFormComponent_FetchAccessibleItemsQueryVariables\r\n> {\r\n document = UserFormComponent_FetchAccessibleItemsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UserFormComponent_FetchAllCommunicationCentersDocument = gql`\r\n query UserFormComponent_FetchAllCommunicationCenters(\r\n $filter: CommunicationCenterFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n communicationCenters {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...CommunicationCenterFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UserFormComponent_FetchAllCommunicationCentersGQL extends Apollo.Query<\r\n UserFormComponent_FetchAllCommunicationCentersQuery,\r\n UserFormComponent_FetchAllCommunicationCentersQueryVariables\r\n> {\r\n document = UserFormComponent_FetchAllCommunicationCentersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UserFormComponent_FetchAllProgramsDocument = gql`\r\n query UserFormComponent_FetchAllPrograms($filter: ProgramFilter, $first: Int, $skip: Int) {\r\n programs {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...ProgramFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${ProgramFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UserFormComponent_FetchAllProgramsGQL extends Apollo.Query<\r\n UserFormComponent_FetchAllProgramsQuery,\r\n UserFormComponent_FetchAllProgramsQueryVariables\r\n> {\r\n document = UserFormComponent_FetchAllProgramsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UserFormComponent_FetchAllBasesDocument = gql`\r\n query UserFormComponent_FetchAllBases($filter: BaseFilter, $first: Int, $skip: Int) {\r\n bases {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...BaseFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${BaseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UserFormComponent_FetchAllBasesGQL extends Apollo.Query<\r\n UserFormComponent_FetchAllBasesQuery,\r\n UserFormComponent_FetchAllBasesQueryVariables\r\n> {\r\n document = UserFormComponent_FetchAllBasesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ManageOccRolePageResolver_ResolveDocument = gql`\r\n query ManageOccRolePageResolver_Resolve($personId: ID!) {\r\n people {\r\n byId(id: $personId) {\r\n ...PersonFields\r\n accessibleItems {\r\n ...AccessibleItemFields\r\n }\r\n }\r\n }\r\n companies {\r\n all {\r\n items {\r\n ...CompanyFields\r\n }\r\n }\r\n }\r\n controlZones {\r\n all {\r\n items {\r\n ...ControlZoneFields\r\n }\r\n }\r\n }\r\n }\r\n ${PersonFieldsFragmentDoc}\r\n ${AccessibleItemFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${ControlZoneFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ManageOccRolePageResolver_ResolveGQL extends Apollo.Query<\r\n ManageOccRolePageResolver_ResolveQuery,\r\n ManageOccRolePageResolver_ResolveQueryVariables\r\n> {\r\n document = ManageOccRolePageResolver_ResolveDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const ManageOccRolePage_ResolverDocument = gql`\r\n query ManageOccRolePage_Resolver($personId: ID!) {\r\n people {\r\n byId(id: $personId) {\r\n ...PersonFields\r\n accessibleItems {\r\n ...AccessibleItemFields\r\n }\r\n }\r\n }\r\n companies {\r\n all {\r\n items {\r\n ...CompanyFields\r\n }\r\n }\r\n }\r\n controlZones {\r\n all {\r\n items {\r\n ...ControlZoneFields\r\n }\r\n }\r\n }\r\n }\r\n ${PersonFieldsFragmentDoc}\r\n ${AccessibleItemFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${ControlZoneFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ManageOccRolePage_ResolverGQL extends Apollo.Query<\r\n ManageOccRolePage_ResolverQuery,\r\n ManageOccRolePage_ResolverQueryVariables\r\n> {\r\n document = ManageOccRolePage_ResolverDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const RegionGroupsFormComponent_FetchAllDepartmentsDocument = gql`\r\n query RegionGroupsFormComponent_FetchAllDepartments($skip: Int, $first: Int) {\r\n allDepartments(skip: $skip, first: $first) {\r\n id\r\n name\r\n code\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RegionGroupsFormComponent_FetchAllDepartmentsGQL extends Apollo.Query<\r\n RegionGroupsFormComponent_FetchAllDepartmentsQuery,\r\n RegionGroupsFormComponent_FetchAllDepartmentsQueryVariables\r\n> {\r\n document = RegionGroupsFormComponent_FetchAllDepartmentsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const RegionGroupsListPageComponent_FetchAllRegionGroupsDocument = gql`\r\n query RegionGroupsListPageComponent_FetchAllRegionGroups(\r\n $filter: RegionGroupFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n regionGroups {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...RegionGroupFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${RegionGroupFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RegionGroupsListPageComponent_FetchAllRegionGroupsGQL extends Apollo.Query<\r\n RegionGroupsListPageComponent_FetchAllRegionGroupsQuery,\r\n RegionGroupsListPageComponent_FetchAllRegionGroupsQueryVariables\r\n> {\r\n document = RegionGroupsListPageComponent_FetchAllRegionGroupsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const RegionFormComponent_FetchAllCommunicationCentersDocument = gql`\r\n query RegionFormComponent_FetchAllCommunicationCenters(\r\n $filter: CommunicationCenterFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n communicationCenters {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...CommunicationCenterFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RegionFormComponent_FetchAllCommunicationCentersGQL extends Apollo.Query<\r\n RegionFormComponent_FetchAllCommunicationCentersQuery,\r\n RegionFormComponent_FetchAllCommunicationCentersQueryVariables\r\n> {\r\n document = RegionFormComponent_FetchAllCommunicationCentersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const RegionFormComponent_FetchAllRegionGroupsDocument = gql`\r\n query RegionFormComponent_FetchAllRegionGroups(\r\n $filter: RegionGroupFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n regionGroups {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...RegionGroupFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${RegionGroupFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RegionFormComponent_FetchAllRegionGroupsGQL extends Apollo.Query<\r\n RegionFormComponent_FetchAllRegionGroupsQuery,\r\n RegionFormComponent_FetchAllRegionGroupsQueryVariables\r\n> {\r\n document = RegionFormComponent_FetchAllRegionGroupsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const RegionsListPageComponent_FetchAllRegionsDocument = gql`\r\n query RegionsListPageComponent_FetchAllRegions($filter: RegionFilter, $first: Int, $skip: Int) {\r\n regions {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...RegionFields\r\n regionGroup {\r\n ...RegionGroupFields\r\n }\r\n communicationCenter {\r\n ...CommunicationCenterFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${RegionFieldsFragmentDoc}\r\n ${RegionGroupFieldsFragmentDoc}\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RegionsListPageComponent_FetchAllRegionsGQL extends Apollo.Query<\r\n RegionsListPageComponent_FetchAllRegionsQuery,\r\n RegionsListPageComponent_FetchAllRegionsQueryVariables\r\n> {\r\n document = RegionsListPageComponent_FetchAllRegionsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const SpecialtyTeamListPageComponent_FetchAllSpecialtyTeamsDocument = gql`\r\n query SpecialtyTeamListPageComponent_FetchAllSpecialtyTeams(\r\n $filter: SpecialtyTeamFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n specialtyTeams {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...SpecialtyTeamFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${SpecialtyTeamFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class SpecialtyTeamListPageComponent_FetchAllSpecialtyTeamsGQL extends Apollo.Query<\r\n SpecialtyTeamListPageComponent_FetchAllSpecialtyTeamsQuery,\r\n SpecialtyTeamListPageComponent_FetchAllSpecialtyTeamsQueryVariables\r\n> {\r\n document = SpecialtyTeamListPageComponent_FetchAllSpecialtyTeamsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const SpecialtyTeamMemberListPageComponent_FetchAllSpecialtyTeamMembersDocument = gql`\r\n query SpecialtyTeamMemberListPageComponent_FetchAllSpecialtyTeamMembers(\r\n $filter: SpecialtyTeamMemberFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n specialtyTeamMembers {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...SpecialtyTeamMemberFields\r\n teamMember {\r\n ...PersonFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${SpecialtyTeamMemberFieldsFragmentDoc}\r\n ${PersonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class SpecialtyTeamMemberListPageComponent_FetchAllSpecialtyTeamMembersGQL extends Apollo.Query<\r\n SpecialtyTeamMemberListPageComponent_FetchAllSpecialtyTeamMembersQuery,\r\n SpecialtyTeamMemberListPageComponent_FetchAllSpecialtyTeamMembersQueryVariables\r\n> {\r\n document = SpecialtyTeamMemberListPageComponent_FetchAllSpecialtyTeamMembersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const VehicleDetailPageComponent_FetchVehicleByIdDocument = gql`\r\n query VehicleDetailPageComponent_FetchVehicleById($id: ID!) {\r\n vehicles {\r\n byId(id: $id) {\r\n ...VehicleFields\r\n company {\r\n ...CompanyFields\r\n }\r\n configurationClass {\r\n ...VehicleConfigurationClassFields\r\n }\r\n make {\r\n ...VehicleMakeFields\r\n }\r\n model {\r\n ...VehicleModelFields\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${VehicleConfigurationClassFieldsFragmentDoc}\r\n ${VehicleMakeFieldsFragmentDoc}\r\n ${VehicleModelFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class VehicleDetailPageComponent_FetchVehicleByIdGQL extends Apollo.Query<\r\n VehicleDetailPageComponent_FetchVehicleByIdQuery,\r\n VehicleDetailPageComponent_FetchVehicleByIdQueryVariables\r\n> {\r\n document = VehicleDetailPageComponent_FetchVehicleByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const VehicleFormComponent_FetchAllVehicleMakesDocument = gql`\r\n query VehicleFormComponent_FetchAllVehicleMakes {\r\n allVehicleMakes {\r\n id\r\n name\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class VehicleFormComponent_FetchAllVehicleMakesGQL extends Apollo.Query<\r\n VehicleFormComponent_FetchAllVehicleMakesQuery,\r\n VehicleFormComponent_FetchAllVehicleMakesQueryVariables\r\n> {\r\n document = VehicleFormComponent_FetchAllVehicleMakesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const VehicleFormComponent_FetchAllCapabilitiesDocument = gql`\r\n query VehicleFormComponent_FetchAllCapabilities(\r\n $filter: CapabilityFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n capabilities {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...CapabilityFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class VehicleFormComponent_FetchAllCapabilitiesGQL extends Apollo.Query<\r\n VehicleFormComponent_FetchAllCapabilitiesQuery,\r\n VehicleFormComponent_FetchAllCapabilitiesQueryVariables\r\n> {\r\n document = VehicleFormComponent_FetchAllCapabilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const VehicleFormComponent_FetchAllEntityCapabilitiesDocument = gql`\r\n query VehicleFormComponent_FetchAllEntityCapabilities(\r\n $filter: EntityCapabilityFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n entityCapabilities {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...EntityCapabilityFields\r\n capability {\r\n ...CapabilityFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${EntityCapabilityFieldsFragmentDoc}\r\n ${CapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class VehicleFormComponent_FetchAllEntityCapabilitiesGQL extends Apollo.Query<\r\n VehicleFormComponent_FetchAllEntityCapabilitiesQuery,\r\n VehicleFormComponent_FetchAllEntityCapabilitiesQueryVariables\r\n> {\r\n document = VehicleFormComponent_FetchAllEntityCapabilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const VehicleFormComponent_FetchAllCommunicationCentersDocument = gql`\r\n query VehicleFormComponent_FetchAllCommunicationCenters(\r\n $filter: CommunicationCenterFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n communicationCenters {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n id\r\n name\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class VehicleFormComponent_FetchAllCommunicationCentersGQL extends Apollo.Query<\r\n VehicleFormComponent_FetchAllCommunicationCentersQuery,\r\n VehicleFormComponent_FetchAllCommunicationCentersQueryVariables\r\n> {\r\n document = VehicleFormComponent_FetchAllCommunicationCentersDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const VehicleMaintenanceListComponent_FetchVehicleMaintenanceDocument = gql`\r\n query VehicleMaintenanceListComponent_FetchVehicleMaintenance($id: ID!) {\r\n vehicles {\r\n byId(id: $id) {\r\n vehicleMaintenances {\r\n ...VehicleMaintenanceFields\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleMaintenanceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class VehicleMaintenanceListComponent_FetchVehicleMaintenanceGQL extends Apollo.Query<\r\n VehicleMaintenanceListComponent_FetchVehicleMaintenanceQuery,\r\n VehicleMaintenanceListComponent_FetchVehicleMaintenanceQueryVariables\r\n> {\r\n document = VehicleMaintenanceListComponent_FetchVehicleMaintenanceDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const VehicleStateInspectionListComponent_FetchVehicleStateInspectionsDocument = gql`\r\n query VehicleStateInspectionListComponent_FetchVehicleStateInspections($id: ID!) {\r\n vehicles {\r\n byId(id: $id) {\r\n vehicleStateInspections {\r\n ...VehicleStateInspectionFields\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleStateInspectionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class VehicleStateInspectionListComponent_FetchVehicleStateInspectionsGQL extends Apollo.Query<\r\n VehicleStateInspectionListComponent_FetchVehicleStateInspectionsQuery,\r\n VehicleStateInspectionListComponent_FetchVehicleStateInspectionsQueryVariables\r\n> {\r\n document = VehicleStateInspectionListComponent_FetchVehicleStateInspectionsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const VehiclesListPageComponent_FetchAllVehiclesDocument = gql`\r\n query VehiclesListPageComponent_FetchAllVehicles(\r\n $filter: VehicleFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n vehicles {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...VehicleFields\r\n company {\r\n ...CompanyFields\r\n }\r\n configurationClass {\r\n ...VehicleConfigurationClassFields\r\n }\r\n make {\r\n ...VehicleMakeFields\r\n }\r\n model {\r\n ...VehicleModelFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${VehicleConfigurationClassFieldsFragmentDoc}\r\n ${VehicleMakeFieldsFragmentDoc}\r\n ${VehicleModelFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class VehiclesListPageComponent_FetchAllVehiclesGQL extends Apollo.Query<\r\n VehiclesListPageComponent_FetchAllVehiclesQuery,\r\n VehiclesListPageComponent_FetchAllVehiclesQueryVariables\r\n> {\r\n document = VehiclesListPageComponent_FetchAllVehiclesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetRttCardByCardNumberDocument = gql`\r\n query GetRttCardByCardNumber($cardNumber: ID!) {\r\n cards {\r\n byCardNumber(cardNumber: $cardNumber) {\r\n ...CardFields\r\n operation {\r\n ...OperationFields\r\n unit {\r\n ...UnitContext\r\n region {\r\n ...RegionFields\r\n communicationCenter {\r\n ...CommunicationCenterFields\r\n }\r\n }\r\n }\r\n trips {\r\n ...TripFields\r\n estimatedDurations {\r\n ...EstimatedDurationFields\r\n }\r\n vehicle {\r\n ...VehicleFields\r\n vehicleDispositions {\r\n ...VehicleDispositionFields\r\n }\r\n }\r\n positionReports {\r\n ...PositionReportFields\r\n }\r\n legs {\r\n ...TripLegFields\r\n startingWaypoint {\r\n ...WaypointFields\r\n address {\r\n ...AddressFields\r\n }\r\n location {\r\n id\r\n locationType\r\n name\r\n abbreviation\r\n notes\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n }\r\n endingWaypoint {\r\n ...WaypointFields\r\n address {\r\n ...AddressFields\r\n }\r\n location {\r\n id\r\n locationType\r\n name\r\n abbreviation\r\n notes\r\n address {\r\n ...AddressFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${CardFieldsFragmentDoc}\r\n ${OperationFieldsFragmentDoc}\r\n ${UnitContextFragmentDoc}\r\n ${RegionFieldsFragmentDoc}\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n ${TripFieldsFragmentDoc}\r\n ${EstimatedDurationFieldsFragmentDoc}\r\n ${VehicleFieldsFragmentDoc}\r\n ${VehicleDispositionFieldsFragmentDoc}\r\n ${PositionReportFieldsFragmentDoc}\r\n ${TripLegFieldsFragmentDoc}\r\n ${WaypointFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetRttCardByCardNumberGQL extends Apollo.Query<\r\n GetRttCardByCardNumberQuery,\r\n GetRttCardByCardNumberQueryVariables\r\n> {\r\n document = GetRttCardByCardNumberDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetRttCardSummariesDocument = gql`\r\n query GetRttCardSummaries($filter: CardSummaryFilter) {\r\n cards {\r\n summaries(filter: $filter) {\r\n items {\r\n ...CardSummaryFields\r\n }\r\n }\r\n }\r\n }\r\n ${CardSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetRttCardSummariesGQL extends Apollo.Query<\r\n GetRttCardSummariesQuery,\r\n GetRttCardSummariesQueryVariables\r\n> {\r\n document = GetRttCardSummariesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const LocationSearchDialogComponent_FetchAllLocationsDocument = gql`\r\n query LocationSearchDialogComponent_FetchAllLocations($filter: LocationQueryFilter) {\r\n locations {\r\n all(filter: $filter) {\r\n items {\r\n ...LocationFields\r\n distanceToReceivingMiles\r\n distanceToReceivingNauticaMiles\r\n address {\r\n ...AddressFields\r\n }\r\n entityCapabilities {\r\n ...EntityCapabilityFields\r\n capability {\r\n ...CapabilityFields\r\n }\r\n }\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${LocationFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n ${EntityCapabilityFieldsFragmentDoc}\r\n ${CapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class LocationSearchDialogComponent_FetchAllLocationsGQL extends Apollo.Query<\r\n LocationSearchDialogComponent_FetchAllLocationsQuery,\r\n LocationSearchDialogComponent_FetchAllLocationsQueryVariables\r\n> {\r\n document = LocationSearchDialogComponent_FetchAllLocationsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const LocationSearchDialogComponent_FetchAllCapabilitiesDocument = gql`\r\n query LocationSearchDialogComponent_FetchAllCapabilities(\r\n $filter: CapabilityFilter\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n capabilities {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...CapabilityFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class LocationSearchDialogComponent_FetchAllCapabilitiesGQL extends Apollo.Query<\r\n LocationSearchDialogComponent_FetchAllCapabilitiesQuery,\r\n LocationSearchDialogComponent_FetchAllCapabilitiesQueryVariables\r\n> {\r\n document = LocationSearchDialogComponent_FetchAllCapabilitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const LocationSearchComponent_FetchAllLocationsDocument = gql`\r\n query LocationSearchComponent_FetchAllLocations($filter: LocationQueryFilter) {\r\n locations {\r\n all(filter: $filter) {\r\n items {\r\n ...LocationFields\r\n distanceToReceivingMiles\r\n distanceToReceivingNauticaMiles\r\n address {\r\n ...AddressFields\r\n }\r\n entityCapabilities {\r\n ...EntityCapabilityFields\r\n capability {\r\n ...CapabilityFields\r\n }\r\n }\r\n lastUpdatedBy {\r\n id\r\n firstName\r\n lastName\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${LocationFieldsFragmentDoc}\r\n ${AddressFieldsFragmentDoc}\r\n ${EntityCapabilityFieldsFragmentDoc}\r\n ${CapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class LocationSearchComponent_FetchAllLocationsGQL extends Apollo.Query<\r\n LocationSearchComponent_FetchAllLocationsQuery,\r\n LocationSearchComponent_FetchAllLocationsQueryVariables\r\n> {\r\n document = LocationSearchComponent_FetchAllLocationsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const OmnisearchCardResultsComponent_SearchForCardsDocument = gql`\r\n query OmnisearchCardResultsComponent_SearchForCards(\r\n $filter: CardSearchFilterV2\r\n $first: Int\r\n $skip: Int\r\n ) {\r\n cards {\r\n searchv2(filter: $filter, skip: $skip, first: $first) {\r\n meta {\r\n total\r\n }\r\n items {\r\n id\r\n cardNumber\r\n createdById\r\n createdBy\r\n companyId\r\n companyCode\r\n dateCreated\r\n dateDeleted\r\n status\r\n callStatus\r\n isBillable\r\n isLocked\r\n lastOfferedUnit {\r\n id\r\n name\r\n }\r\n operation {\r\n id\r\n status\r\n type\r\n unit {\r\n id\r\n name\r\n }\r\n vehicle {\r\n id\r\n registrationNumber\r\n }\r\n }\r\n request {\r\n id\r\n status\r\n requestedOperationType\r\n pickupLocation {\r\n id\r\n name\r\n type\r\n locationId\r\n }\r\n dropoffLocation {\r\n id\r\n name\r\n type\r\n locationId\r\n }\r\n }\r\n region {\r\n id\r\n name\r\n communicationCenter {\r\n id\r\n name\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class OmnisearchCardResultsComponent_SearchForCardsGQL extends Apollo.Query<\r\n OmnisearchCardResultsComponent_SearchForCardsQuery,\r\n OmnisearchCardResultsComponent_SearchForCardsQueryVariables\r\n> {\r\n document = OmnisearchCardResultsComponent_SearchForCardsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const PeopleFetchService_FetchAllPeopleDocument = gql`\r\n query PeopleFetchService_FetchAllPeople($filter: PersonFilter, $first: Int, $skip: Int) {\r\n people {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...PersonFields\r\n location {\r\n ...LocationFields\r\n }\r\n company {\r\n ...CompanyFields\r\n }\r\n department {\r\n ...DepartmentFields\r\n }\r\n accessibleItems {\r\n ...AccessibleItemFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${PersonFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n ${DepartmentFieldsFragmentDoc}\r\n ${AccessibleItemFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class PeopleFetchService_FetchAllPeopleGQL extends Apollo.Query<\r\n PeopleFetchService_FetchAllPeopleQuery,\r\n PeopleFetchService_FetchAllPeopleQueryVariables\r\n> {\r\n document = PeopleFetchService_FetchAllPeopleDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const SupportRequestListComponent_FetchAllSupportRequestsDocument = gql`\r\n query SupportRequestListComponent_FetchAllSupportRequests(\r\n $filter: SupportRequestFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n supportRequests {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...SupportRequestFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${SupportRequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class SupportRequestListComponent_FetchAllSupportRequestsGQL extends Apollo.Query<\r\n SupportRequestListComponent_FetchAllSupportRequestsQuery,\r\n SupportRequestListComponent_FetchAllSupportRequestsQueryVariables\r\n> {\r\n document = SupportRequestListComponent_FetchAllSupportRequestsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const DeveloperNotesPageComponent_FetchDevNotesDocument = gql`\r\n query DeveloperNotesPageComponent_FetchDevNotes($filter: DevNoteFilter, $first: Int, $skip: Int) {\r\n cardNotes {\r\n devNotes(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n content\r\n noteTime\r\n authorId\r\n dateCreated\r\n cardNumber\r\n companyName\r\n name\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class DeveloperNotesPageComponent_FetchDevNotesGQL extends Apollo.Query<\r\n DeveloperNotesPageComponent_FetchDevNotesQuery,\r\n DeveloperNotesPageComponent_FetchDevNotesQueryVariables\r\n> {\r\n document = DeveloperNotesPageComponent_FetchDevNotesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetFleetStatusDocument = gql`\r\n query GetFleetStatus {\r\n units {\r\n all(filter: { allCompanies: true }) {\r\n items {\r\n ...UnitFields\r\n vehicle {\r\n ...VehicleFields\r\n make {\r\n ...VehicleMakeFields\r\n }\r\n model {\r\n ...VehicleModelFields\r\n }\r\n vehicleDispositions {\r\n ...VehicleDispositionFields\r\n currentWaypoint {\r\n ...WaypointFields\r\n location {\r\n ...LocationFields\r\n }\r\n }\r\n latestPositionReport {\r\n ...PositionReportFields\r\n }\r\n latestFlightFollowingReport {\r\n ...FlightFollowingReportFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${UnitFieldsFragmentDoc}\r\n ${VehicleFieldsFragmentDoc}\r\n ${VehicleMakeFieldsFragmentDoc}\r\n ${VehicleModelFieldsFragmentDoc}\r\n ${VehicleDispositionFieldsFragmentDoc}\r\n ${WaypointFieldsFragmentDoc}\r\n ${LocationFieldsFragmentDoc}\r\n ${PositionReportFieldsFragmentDoc}\r\n ${FlightFollowingReportFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetFleetStatusGQL extends Apollo.Query<\r\n GetFleetStatusQuery,\r\n GetFleetStatusQueryVariables\r\n> {\r\n document = GetFleetStatusDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetFleetStatusCardSummariesDocument = gql`\r\n query GetFleetStatusCardSummaries($filter: CardSummaryFilter) {\r\n cards {\r\n summaries(filter: $filter) {\r\n items {\r\n ...CardSummaryFields\r\n }\r\n }\r\n }\r\n }\r\n ${CardSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetFleetStatusCardSummariesGQL extends Apollo.Query<\r\n GetFleetStatusCardSummariesQuery,\r\n GetFleetStatusCardSummariesQueryVariables\r\n> {\r\n document = GetFleetStatusCardSummariesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetAccessibleItemsDocument = gql`\r\n query GetAccessibleItems($personId: ID!) {\r\n people {\r\n byId(id: $personId) {\r\n accessibleItems {\r\n ...AccessibleItemFields\r\n }\r\n }\r\n }\r\n }\r\n ${AccessibleItemFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetAccessibleItemsGQL extends Apollo.Query<\r\n GetAccessibleItemsQuery,\r\n GetAccessibleItemsQueryVariables\r\n> {\r\n document = GetAccessibleItemsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetCardActiveAlertsByCardIdDocument = gql`\r\n query GetCardActiveAlertsByCardId($cardId: ID!) {\r\n cards {\r\n byId(id: $cardId) {\r\n activeAlerts {\r\n ...ActiveAlertFields\r\n }\r\n }\r\n }\r\n }\r\n ${ActiveAlertFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetCardActiveAlertsByCardIdGQL extends Apollo.Query<\r\n GetCardActiveAlertsByCardIdQuery,\r\n GetCardActiveAlertsByCardIdQueryVariables\r\n> {\r\n document = GetCardActiveAlertsByCardIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetCardLocationInfoByCardNumberDocument = gql`\r\n query GetCardLocationInfoByCardNumber($cardNumber: ID!) {\r\n cards {\r\n byCardNumber(cardNumber: $cardNumber) {\r\n id\r\n cardNumber\r\n activeAlerts {\r\n id\r\n matchType\r\n urgency\r\n content\r\n }\r\n operationId\r\n operation {\r\n id\r\n trips {\r\n id\r\n legs {\r\n id\r\n sequence\r\n startingWaypointId\r\n startingWaypoint {\r\n id\r\n type\r\n address {\r\n ...AddressFields\r\n }\r\n locationId\r\n location {\r\n ...CardLocationInfoLocationFields\r\n }\r\n }\r\n endingWaypointId\r\n endingWaypoint {\r\n id\r\n type\r\n address {\r\n ...AddressFields\r\n }\r\n locationId\r\n location {\r\n ...CardLocationInfoLocationFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n requestId\r\n request {\r\n id\r\n locations {\r\n id\r\n locationId\r\n requestId\r\n name\r\n abbreviation\r\n type\r\n notes\r\n groundContact\r\n request {\r\n requester {\r\n callbackNumber\r\n }\r\n }\r\n address {\r\n ...AddressFields\r\n }\r\n medicalFacilityId\r\n medicalFacility {\r\n id\r\n name\r\n abbreviation\r\n notes\r\n contacts {\r\n id\r\n name\r\n primaryPhoneNumber\r\n secondaryPhoneNumber\r\n smsPhoneNumber\r\n faxPhoneNumber\r\n }\r\n locationId\r\n location {\r\n ...CardLocationInfoLocationFields\r\n }\r\n }\r\n fboId\r\n fbo {\r\n id\r\n name\r\n }\r\n rendezvousRequests {\r\n id\r\n requestLocationId\r\n agencyEta\r\n notes\r\n agencyLocation {\r\n id\r\n agencyId\r\n name\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${AddressFieldsFragmentDoc}\r\n ${CardLocationInfoLocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetCardLocationInfoByCardNumberGQL extends Apollo.Query<\r\n GetCardLocationInfoByCardNumberQuery,\r\n GetCardLocationInfoByCardNumberQueryVariables\r\n> {\r\n document = GetCardLocationInfoByCardNumberDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetCardNotesByCardDocument = gql`\r\n query GetCardNotesByCard($cardId: ID!) {\r\n cards {\r\n byId(id: $cardId) {\r\n notes {\r\n ...CardNoteFields\r\n author {\r\n ...PersonFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${CardNoteFieldsFragmentDoc}\r\n ${PersonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetCardNotesByCardGQL extends Apollo.Query<\r\n GetCardNotesByCardQuery,\r\n GetCardNotesByCardQueryVariables\r\n> {\r\n document = GetCardNotesByCardDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchActivationRuleByIdDocument = gql`\r\n query FetchActivationRuleById($id: ID!) {\r\n activationRule: entities {\r\n byId(id: $id, type: ActivationRule) {\r\n __typename\r\n ...ActivationRuleFields\r\n }\r\n }\r\n }\r\n ${ActivationRuleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchActivationRuleByIdGQL extends Apollo.Query<\r\n FetchActivationRuleByIdQuery,\r\n FetchActivationRuleByIdQueryVariables\r\n> {\r\n document = FetchActivationRuleByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchActivationRuleByIdsDocument = gql`\r\n query FetchActivationRuleByIds($ids: [ID!]!) {\r\n activationRule: entities {\r\n byIds(ids: $ids, type: ActivationRule) {\r\n __typename\r\n ...ActivationRuleFields\r\n }\r\n }\r\n }\r\n ${ActivationRuleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchActivationRuleByIdsGQL extends Apollo.Query<\r\n FetchActivationRuleByIdsQuery,\r\n FetchActivationRuleByIdsQueryVariables\r\n> {\r\n document = FetchActivationRuleByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchActiveAlertByIdDocument = gql`\r\n query FetchActiveAlertById($id: ID!) {\r\n activeAlert: entities {\r\n byId(id: $id, type: ActiveAlert) {\r\n __typename\r\n ...ActiveAlertFields\r\n }\r\n }\r\n }\r\n ${ActiveAlertFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchActiveAlertByIdGQL extends Apollo.Query<\r\n FetchActiveAlertByIdQuery,\r\n FetchActiveAlertByIdQueryVariables\r\n> {\r\n document = FetchActiveAlertByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchActiveAlertByIdsDocument = gql`\r\n query FetchActiveAlertByIds($ids: [ID!]!) {\r\n activeAlert: entities {\r\n byIds(ids: $ids, type: ActiveAlert) {\r\n __typename\r\n ...ActiveAlertFields\r\n }\r\n }\r\n }\r\n ${ActiveAlertFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchActiveAlertByIdsGQL extends Apollo.Query<\r\n FetchActiveAlertByIdsQuery,\r\n FetchActiveAlertByIdsQueryVariables\r\n> {\r\n document = FetchActiveAlertByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchActiveCardUnitOfferingByIdDocument = gql`\r\n query FetchActiveCardUnitOfferingById($id: ID!) {\r\n activeCardUnitOffering: entities {\r\n byId(id: $id, type: ActiveCardUnitOffering) {\r\n __typename\r\n ...ActiveCardUnitOfferingFields\r\n }\r\n }\r\n }\r\n ${ActiveCardUnitOfferingFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchActiveCardUnitOfferingByIdGQL extends Apollo.Query<\r\n FetchActiveCardUnitOfferingByIdQuery,\r\n FetchActiveCardUnitOfferingByIdQueryVariables\r\n> {\r\n document = FetchActiveCardUnitOfferingByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchActiveCardUnitOfferingByIdsDocument = gql`\r\n query FetchActiveCardUnitOfferingByIds($ids: [ID!]!) {\r\n activeCardUnitOffering: entities {\r\n byIds(ids: $ids, type: ActiveCardUnitOffering) {\r\n __typename\r\n ...ActiveCardUnitOfferingFields\r\n }\r\n }\r\n }\r\n ${ActiveCardUnitOfferingFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchActiveCardUnitOfferingByIdsGQL extends Apollo.Query<\r\n FetchActiveCardUnitOfferingByIdsQuery,\r\n FetchActiveCardUnitOfferingByIdsQueryVariables\r\n> {\r\n document = FetchActiveCardUnitOfferingByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchActiveTimelineByIdDocument = gql`\r\n query FetchActiveTimelineById($id: ID!) {\r\n activeTimeline: entities {\r\n byId(id: $id, type: ActiveTimeline) {\r\n __typename\r\n ...ActiveTimelineFields\r\n }\r\n }\r\n }\r\n ${ActiveTimelineFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchActiveTimelineByIdGQL extends Apollo.Query<\r\n FetchActiveTimelineByIdQuery,\r\n FetchActiveTimelineByIdQueryVariables\r\n> {\r\n document = FetchActiveTimelineByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchActiveTimelineByIdsDocument = gql`\r\n query FetchActiveTimelineByIds($ids: [ID!]!) {\r\n activeTimeline: entities {\r\n byIds(ids: $ids, type: ActiveTimeline) {\r\n __typename\r\n ...ActiveTimelineFields\r\n }\r\n }\r\n }\r\n ${ActiveTimelineFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchActiveTimelineByIdsGQL extends Apollo.Query<\r\n FetchActiveTimelineByIdsQuery,\r\n FetchActiveTimelineByIdsQueryVariables\r\n> {\r\n document = FetchActiveTimelineByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchAlertByIdDocument = gql`\r\n query FetchAlertById($id: ID!) {\r\n alert: entities {\r\n byId(id: $id, type: Alert) {\r\n __typename\r\n ...AlertFields\r\n }\r\n }\r\n }\r\n ${AlertFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchAlertByIdGQL extends Apollo.Query<\r\n FetchAlertByIdQuery,\r\n FetchAlertByIdQueryVariables\r\n> {\r\n document = FetchAlertByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchAlertByIdsDocument = gql`\r\n query FetchAlertByIds($ids: [ID!]!) {\r\n alert: entities {\r\n byIds(ids: $ids, type: Alert) {\r\n __typename\r\n ...AlertFields\r\n }\r\n }\r\n }\r\n ${AlertFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchAlertByIdsGQL extends Apollo.Query<\r\n FetchAlertByIdsQuery,\r\n FetchAlertByIdsQueryVariables\r\n> {\r\n document = FetchAlertByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchApplicationNotificationByIdDocument = gql`\r\n query FetchApplicationNotificationById($id: ID!) {\r\n applicationNotification: entities {\r\n byId(id: $id, type: ApplicationNotification) {\r\n __typename\r\n ...ApplicationNotificationFields\r\n }\r\n }\r\n }\r\n ${ApplicationNotificationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchApplicationNotificationByIdGQL extends Apollo.Query<\r\n FetchApplicationNotificationByIdQuery,\r\n FetchApplicationNotificationByIdQueryVariables\r\n> {\r\n document = FetchApplicationNotificationByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchApplicationNotificationByIdsDocument = gql`\r\n query FetchApplicationNotificationByIds($ids: [ID!]!) {\r\n applicationNotification: entities {\r\n byIds(ids: $ids, type: ApplicationNotification) {\r\n __typename\r\n ...ApplicationNotificationFields\r\n }\r\n }\r\n }\r\n ${ApplicationNotificationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchApplicationNotificationByIdsGQL extends Apollo.Query<\r\n FetchApplicationNotificationByIdsQuery,\r\n FetchApplicationNotificationByIdsQueryVariables\r\n> {\r\n document = FetchApplicationNotificationByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchAssignmentDelayedReasonByIdDocument = gql`\r\n query FetchAssignmentDelayedReasonById($id: ID!) {\r\n assignmentDelayedReason: entities {\r\n byId(id: $id, type: AssignmentDelayedReason) {\r\n __typename\r\n ...AssignmentDelayedReasonFields\r\n }\r\n }\r\n }\r\n ${AssignmentDelayedReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchAssignmentDelayedReasonByIdGQL extends Apollo.Query<\r\n FetchAssignmentDelayedReasonByIdQuery,\r\n FetchAssignmentDelayedReasonByIdQueryVariables\r\n> {\r\n document = FetchAssignmentDelayedReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchAssignmentDelayedReasonByIdsDocument = gql`\r\n query FetchAssignmentDelayedReasonByIds($ids: [ID!]!) {\r\n assignmentDelayedReason: entities {\r\n byIds(ids: $ids, type: AssignmentDelayedReason) {\r\n __typename\r\n ...AssignmentDelayedReasonFields\r\n }\r\n }\r\n }\r\n ${AssignmentDelayedReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchAssignmentDelayedReasonByIdsGQL extends Apollo.Query<\r\n FetchAssignmentDelayedReasonByIdsQuery,\r\n FetchAssignmentDelayedReasonByIdsQueryVariables\r\n> {\r\n document = FetchAssignmentDelayedReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCancellationCategoryByIdDocument = gql`\r\n query FetchCancellationCategoryById($id: ID!) {\r\n cancellationCategory: entities {\r\n byId(id: $id, type: CancellationCategory) {\r\n __typename\r\n ...CancellationCategoryFields\r\n }\r\n }\r\n }\r\n ${CancellationCategoryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCancellationCategoryByIdGQL extends Apollo.Query<\r\n FetchCancellationCategoryByIdQuery,\r\n FetchCancellationCategoryByIdQueryVariables\r\n> {\r\n document = FetchCancellationCategoryByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCancellationCategoryByIdsDocument = gql`\r\n query FetchCancellationCategoryByIds($ids: [ID!]!) {\r\n cancellationCategory: entities {\r\n byIds(ids: $ids, type: CancellationCategory) {\r\n __typename\r\n ...CancellationCategoryFields\r\n }\r\n }\r\n }\r\n ${CancellationCategoryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCancellationCategoryByIdsGQL extends Apollo.Query<\r\n FetchCancellationCategoryByIdsQuery,\r\n FetchCancellationCategoryByIdsQueryVariables\r\n> {\r\n document = FetchCancellationCategoryByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCancellationReasonByIdDocument = gql`\r\n query FetchCancellationReasonById($id: ID!) {\r\n cancellationReason: entities {\r\n byId(id: $id, type: CancellationReason) {\r\n __typename\r\n ...CancellationReasonFields\r\n }\r\n }\r\n }\r\n ${CancellationReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCancellationReasonByIdGQL extends Apollo.Query<\r\n FetchCancellationReasonByIdQuery,\r\n FetchCancellationReasonByIdQueryVariables\r\n> {\r\n document = FetchCancellationReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCancellationReasonByIdsDocument = gql`\r\n query FetchCancellationReasonByIds($ids: [ID!]!) {\r\n cancellationReason: entities {\r\n byIds(ids: $ids, type: CancellationReason) {\r\n __typename\r\n ...CancellationReasonFields\r\n }\r\n }\r\n }\r\n ${CancellationReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCancellationReasonByIdsGQL extends Apollo.Query<\r\n FetchCancellationReasonByIdsQuery,\r\n FetchCancellationReasonByIdsQueryVariables\r\n> {\r\n document = FetchCancellationReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCancellationSecondaryReasonByIdDocument = gql`\r\n query FetchCancellationSecondaryReasonById($id: ID!) {\r\n cancellationSecondaryReason: entities {\r\n byId(id: $id, type: CancellationSecondaryReason) {\r\n __typename\r\n ...CancellationSecondaryReasonFields\r\n }\r\n }\r\n }\r\n ${CancellationSecondaryReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCancellationSecondaryReasonByIdGQL extends Apollo.Query<\r\n FetchCancellationSecondaryReasonByIdQuery,\r\n FetchCancellationSecondaryReasonByIdQueryVariables\r\n> {\r\n document = FetchCancellationSecondaryReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCancellationSecondaryReasonByIdsDocument = gql`\r\n query FetchCancellationSecondaryReasonByIds($ids: [ID!]!) {\r\n cancellationSecondaryReason: entities {\r\n byIds(ids: $ids, type: CancellationSecondaryReason) {\r\n __typename\r\n ...CancellationSecondaryReasonFields\r\n }\r\n }\r\n }\r\n ${CancellationSecondaryReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCancellationSecondaryReasonByIdsGQL extends Apollo.Query<\r\n FetchCancellationSecondaryReasonByIdsQuery,\r\n FetchCancellationSecondaryReasonByIdsQueryVariables\r\n> {\r\n document = FetchCancellationSecondaryReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardByIdDocument = gql`\r\n query FetchCardById($id: ID!) {\r\n card: entities {\r\n byId(id: $id, type: Card) {\r\n __typename\r\n ...CardFields\r\n }\r\n }\r\n }\r\n ${CardFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardByIdGQL extends Apollo.Query<\r\n FetchCardByIdQuery,\r\n FetchCardByIdQueryVariables\r\n> {\r\n document = FetchCardByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardByIdsDocument = gql`\r\n query FetchCardByIds($ids: [ID!]!) {\r\n card: entities {\r\n byIds(ids: $ids, type: Card) {\r\n __typename\r\n ...CardFields\r\n }\r\n }\r\n }\r\n ${CardFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardByIdsGQL extends Apollo.Query<\r\n FetchCardByIdsQuery,\r\n FetchCardByIdsQueryVariables\r\n> {\r\n document = FetchCardByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardLinkByIdDocument = gql`\r\n query FetchCardLinkById($id: ID!) {\r\n cardLink: entities {\r\n byId(id: $id, type: CardLink) {\r\n __typename\r\n ...CardLinkFields\r\n }\r\n }\r\n }\r\n ${CardLinkFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardLinkByIdGQL extends Apollo.Query<\r\n FetchCardLinkByIdQuery,\r\n FetchCardLinkByIdQueryVariables\r\n> {\r\n document = FetchCardLinkByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardLinkByIdsDocument = gql`\r\n query FetchCardLinkByIds($ids: [ID!]!) {\r\n cardLink: entities {\r\n byIds(ids: $ids, type: CardLink) {\r\n __typename\r\n ...CardLinkFields\r\n }\r\n }\r\n }\r\n ${CardLinkFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardLinkByIdsGQL extends Apollo.Query<\r\n FetchCardLinkByIdsQuery,\r\n FetchCardLinkByIdsQueryVariables\r\n> {\r\n document = FetchCardLinkByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardNoteArchiveByIdDocument = gql`\r\n query FetchCardNoteArchiveById($id: ID!) {\r\n cardNoteArchive: entities {\r\n byId(id: $id, type: CardNoteArchive) {\r\n __typename\r\n ...CardNoteArchiveFields\r\n }\r\n }\r\n }\r\n ${CardNoteArchiveFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardNoteArchiveByIdGQL extends Apollo.Query<\r\n FetchCardNoteArchiveByIdQuery,\r\n FetchCardNoteArchiveByIdQueryVariables\r\n> {\r\n document = FetchCardNoteArchiveByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardNoteArchiveByIdsDocument = gql`\r\n query FetchCardNoteArchiveByIds($ids: [ID!]!) {\r\n cardNoteArchive: entities {\r\n byIds(ids: $ids, type: CardNoteArchive) {\r\n __typename\r\n ...CardNoteArchiveFields\r\n }\r\n }\r\n }\r\n ${CardNoteArchiveFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardNoteArchiveByIdsGQL extends Apollo.Query<\r\n FetchCardNoteArchiveByIdsQuery,\r\n FetchCardNoteArchiveByIdsQueryVariables\r\n> {\r\n document = FetchCardNoteArchiveByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardNoteByIdDocument = gql`\r\n query FetchCardNoteById($id: ID!) {\r\n cardNote: entities {\r\n byId(id: $id, type: CardNote) {\r\n __typename\r\n ...CardNoteFields\r\n }\r\n }\r\n }\r\n ${CardNoteFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardNoteByIdGQL extends Apollo.Query<\r\n FetchCardNoteByIdQuery,\r\n FetchCardNoteByIdQueryVariables\r\n> {\r\n document = FetchCardNoteByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardNoteByIdsDocument = gql`\r\n query FetchCardNoteByIds($ids: [ID!]!) {\r\n cardNote: entities {\r\n byIds(ids: $ids, type: CardNote) {\r\n __typename\r\n ...CardNoteFields\r\n }\r\n }\r\n }\r\n ${CardNoteFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardNoteByIdsGQL extends Apollo.Query<\r\n FetchCardNoteByIdsQuery,\r\n FetchCardNoteByIdsQueryVariables\r\n> {\r\n document = FetchCardNoteByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardReOpenReasonByIdDocument = gql`\r\n query FetchCardReOpenReasonById($id: ID!) {\r\n cardReOpenReason: entities {\r\n byId(id: $id, type: CardReOpenReason) {\r\n __typename\r\n ...CardReOpenReasonFields\r\n }\r\n }\r\n }\r\n ${CardReOpenReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardReOpenReasonByIdGQL extends Apollo.Query<\r\n FetchCardReOpenReasonByIdQuery,\r\n FetchCardReOpenReasonByIdQueryVariables\r\n> {\r\n document = FetchCardReOpenReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardReOpenReasonByIdsDocument = gql`\r\n query FetchCardReOpenReasonByIds($ids: [ID!]!) {\r\n cardReOpenReason: entities {\r\n byIds(ids: $ids, type: CardReOpenReason) {\r\n __typename\r\n ...CardReOpenReasonFields\r\n }\r\n }\r\n }\r\n ${CardReOpenReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardReOpenReasonByIdsGQL extends Apollo.Query<\r\n FetchCardReOpenReasonByIdsQuery,\r\n FetchCardReOpenReasonByIdsQueryVariables\r\n> {\r\n document = FetchCardReOpenReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardSummaryByIdDocument = gql`\r\n query FetchCardSummaryById($id: ID!) {\r\n cardSummary: entities {\r\n byId(id: $id, type: CardSummary) {\r\n __typename\r\n ...CardSummaryFields\r\n }\r\n }\r\n }\r\n ${CardSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardSummaryByIdGQL extends Apollo.Query<\r\n FetchCardSummaryByIdQuery,\r\n FetchCardSummaryByIdQueryVariables\r\n> {\r\n document = FetchCardSummaryByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardSummaryByIdsDocument = gql`\r\n query FetchCardSummaryByIds($ids: [ID!]!) {\r\n cardSummary: entities {\r\n byIds(ids: $ids, type: CardSummary) {\r\n __typename\r\n ...CardSummaryFields\r\n }\r\n }\r\n }\r\n ${CardSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardSummaryByIdsGQL extends Apollo.Query<\r\n FetchCardSummaryByIdsQuery,\r\n FetchCardSummaryByIdsQueryVariables\r\n> {\r\n document = FetchCardSummaryByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchConfigurationSettingByIdDocument = gql`\r\n query FetchConfigurationSettingById($id: ID!) {\r\n configurationSetting: entities {\r\n byId(id: $id, type: ConfigurationSetting) {\r\n __typename\r\n ...ConfigurationSettingFields\r\n }\r\n }\r\n }\r\n ${ConfigurationSettingFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchConfigurationSettingByIdGQL extends Apollo.Query<\r\n FetchConfigurationSettingByIdQuery,\r\n FetchConfigurationSettingByIdQueryVariables\r\n> {\r\n document = FetchConfigurationSettingByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchConfigurationSettingByIdsDocument = gql`\r\n query FetchConfigurationSettingByIds($ids: [ID!]!) {\r\n configurationSetting: entities {\r\n byIds(ids: $ids, type: ConfigurationSetting) {\r\n __typename\r\n ...ConfigurationSettingFields\r\n }\r\n }\r\n }\r\n ${ConfigurationSettingFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchConfigurationSettingByIdsGQL extends Apollo.Query<\r\n FetchConfigurationSettingByIdsQuery,\r\n FetchConfigurationSettingByIdsQueryVariables\r\n> {\r\n document = FetchConfigurationSettingByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchDeclineCategoryByIdDocument = gql`\r\n query FetchDeclineCategoryById($id: ID!) {\r\n declineCategory: entities {\r\n byId(id: $id, type: DeclineCategory) {\r\n __typename\r\n ...DeclineCategoryFields\r\n }\r\n }\r\n }\r\n ${DeclineCategoryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchDeclineCategoryByIdGQL extends Apollo.Query<\r\n FetchDeclineCategoryByIdQuery,\r\n FetchDeclineCategoryByIdQueryVariables\r\n> {\r\n document = FetchDeclineCategoryByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchDeclineCategoryByIdsDocument = gql`\r\n query FetchDeclineCategoryByIds($ids: [ID!]!) {\r\n declineCategory: entities {\r\n byIds(ids: $ids, type: DeclineCategory) {\r\n __typename\r\n ...DeclineCategoryFields\r\n }\r\n }\r\n }\r\n ${DeclineCategoryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchDeclineCategoryByIdsGQL extends Apollo.Query<\r\n FetchDeclineCategoryByIdsQuery,\r\n FetchDeclineCategoryByIdsQueryVariables\r\n> {\r\n document = FetchDeclineCategoryByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchDeclineReasonByIdDocument = gql`\r\n query FetchDeclineReasonById($id: ID!) {\r\n declineReason: entities {\r\n byId(id: $id, type: DeclineReason) {\r\n __typename\r\n ...DeclineReasonFields\r\n }\r\n }\r\n }\r\n ${DeclineReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchDeclineReasonByIdGQL extends Apollo.Query<\r\n FetchDeclineReasonByIdQuery,\r\n FetchDeclineReasonByIdQueryVariables\r\n> {\r\n document = FetchDeclineReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchDeclineReasonByIdsDocument = gql`\r\n query FetchDeclineReasonByIds($ids: [ID!]!) {\r\n declineReason: entities {\r\n byIds(ids: $ids, type: DeclineReason) {\r\n __typename\r\n ...DeclineReasonFields\r\n }\r\n }\r\n }\r\n ${DeclineReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchDeclineReasonByIdsGQL extends Apollo.Query<\r\n FetchDeclineReasonByIdsQuery,\r\n FetchDeclineReasonByIdsQueryVariables\r\n> {\r\n document = FetchDeclineReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchDeclineSecondaryReasonByIdDocument = gql`\r\n query FetchDeclineSecondaryReasonById($id: ID!) {\r\n declineSecondaryReason: entities {\r\n byId(id: $id, type: DeclineSecondaryReason) {\r\n __typename\r\n ...DeclineSecondaryReasonFields\r\n }\r\n }\r\n }\r\n ${DeclineSecondaryReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchDeclineSecondaryReasonByIdGQL extends Apollo.Query<\r\n FetchDeclineSecondaryReasonByIdQuery,\r\n FetchDeclineSecondaryReasonByIdQueryVariables\r\n> {\r\n document = FetchDeclineSecondaryReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchDeclineSecondaryReasonByIdsDocument = gql`\r\n query FetchDeclineSecondaryReasonByIds($ids: [ID!]!) {\r\n declineSecondaryReason: entities {\r\n byIds(ids: $ids, type: DeclineSecondaryReason) {\r\n __typename\r\n ...DeclineSecondaryReasonFields\r\n }\r\n }\r\n }\r\n ${DeclineSecondaryReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchDeclineSecondaryReasonByIdsGQL extends Apollo.Query<\r\n FetchDeclineSecondaryReasonByIdsQuery,\r\n FetchDeclineSecondaryReasonByIdsQueryVariables\r\n> {\r\n document = FetchDeclineSecondaryReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchDiversionReasonByIdDocument = gql`\r\n query FetchDiversionReasonById($id: ID!) {\r\n diversionReason: entities {\r\n byId(id: $id, type: DiversionReason) {\r\n __typename\r\n ...DiversionReasonFields\r\n }\r\n }\r\n }\r\n ${DiversionReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchDiversionReasonByIdGQL extends Apollo.Query<\r\n FetchDiversionReasonByIdQuery,\r\n FetchDiversionReasonByIdQueryVariables\r\n> {\r\n document = FetchDiversionReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchDiversionReasonByIdsDocument = gql`\r\n query FetchDiversionReasonByIds($ids: [ID!]!) {\r\n diversionReason: entities {\r\n byIds(ids: $ids, type: DiversionReason) {\r\n __typename\r\n ...DiversionReasonFields\r\n }\r\n }\r\n }\r\n ${DiversionReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchDiversionReasonByIdsGQL extends Apollo.Query<\r\n FetchDiversionReasonByIdsQuery,\r\n FetchDiversionReasonByIdsQueryVariables\r\n> {\r\n document = FetchDiversionReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchEscortRequestByIdDocument = gql`\r\n query FetchEscortRequestById($id: ID!) {\r\n escortRequest: entities {\r\n byId(id: $id, type: EscortRequest) {\r\n __typename\r\n ...EscortRequestFields\r\n }\r\n }\r\n }\r\n ${EscortRequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchEscortRequestByIdGQL extends Apollo.Query<\r\n FetchEscortRequestByIdQuery,\r\n FetchEscortRequestByIdQueryVariables\r\n> {\r\n document = FetchEscortRequestByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchEscortRequestByIdsDocument = gql`\r\n query FetchEscortRequestByIds($ids: [ID!]!) {\r\n escortRequest: entities {\r\n byIds(ids: $ids, type: EscortRequest) {\r\n __typename\r\n ...EscortRequestFields\r\n }\r\n }\r\n }\r\n ${EscortRequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchEscortRequestByIdsGQL extends Apollo.Query<\r\n FetchEscortRequestByIdsQuery,\r\n FetchEscortRequestByIdsQueryVariables\r\n> {\r\n document = FetchEscortRequestByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchEstimatedDurationByIdDocument = gql`\r\n query FetchEstimatedDurationById($id: ID!) {\r\n estimatedDuration: entities {\r\n byId(id: $id, type: EstimatedDuration) {\r\n __typename\r\n ...EstimatedDurationFields\r\n }\r\n }\r\n }\r\n ${EstimatedDurationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchEstimatedDurationByIdGQL extends Apollo.Query<\r\n FetchEstimatedDurationByIdQuery,\r\n FetchEstimatedDurationByIdQueryVariables\r\n> {\r\n document = FetchEstimatedDurationByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchEstimatedDurationByIdsDocument = gql`\r\n query FetchEstimatedDurationByIds($ids: [ID!]!) {\r\n estimatedDuration: entities {\r\n byIds(ids: $ids, type: EstimatedDuration) {\r\n __typename\r\n ...EstimatedDurationFields\r\n }\r\n }\r\n }\r\n ${EstimatedDurationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchEstimatedDurationByIdsGQL extends Apollo.Query<\r\n FetchEstimatedDurationByIdsQuery,\r\n FetchEstimatedDurationByIdsQueryVariables\r\n> {\r\n document = FetchEstimatedDurationByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchEtaByIdDocument = gql`\r\n query FetchEtaById($id: ID!) {\r\n eta: entities {\r\n byId(id: $id, type: Eta) {\r\n __typename\r\n ...EtaFields\r\n }\r\n }\r\n }\r\n ${EtaFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchEtaByIdGQL extends Apollo.Query {\r\n document = FetchEtaByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchEtaByIdsDocument = gql`\r\n query FetchEtaByIds($ids: [ID!]!) {\r\n eta: entities {\r\n byIds(ids: $ids, type: Eta) {\r\n __typename\r\n ...EtaFields\r\n }\r\n }\r\n }\r\n ${EtaFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchEtaByIdsGQL extends Apollo.Query<\r\n FetchEtaByIdsQuery,\r\n FetchEtaByIdsQueryVariables\r\n> {\r\n document = FetchEtaByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchExternalActionByIdDocument = gql`\r\n query FetchExternalActionById($id: ID!) {\r\n externalAction: entities {\r\n byId(id: $id, type: ExternalAction) {\r\n __typename\r\n ...ExternalActionFields\r\n }\r\n }\r\n }\r\n ${ExternalActionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchExternalActionByIdGQL extends Apollo.Query<\r\n FetchExternalActionByIdQuery,\r\n FetchExternalActionByIdQueryVariables\r\n> {\r\n document = FetchExternalActionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchExternalActionByIdsDocument = gql`\r\n query FetchExternalActionByIds($ids: [ID!]!) {\r\n externalAction: entities {\r\n byIds(ids: $ids, type: ExternalAction) {\r\n __typename\r\n ...ExternalActionFields\r\n }\r\n }\r\n }\r\n ${ExternalActionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchExternalActionByIdsGQL extends Apollo.Query<\r\n FetchExternalActionByIdsQuery,\r\n FetchExternalActionByIdsQueryVariables\r\n> {\r\n document = FetchExternalActionByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchExternalActionTypeByIdDocument = gql`\r\n query FetchExternalActionTypeById($id: ID!) {\r\n externalActionType: entities {\r\n byId(id: $id, type: ExternalActionType) {\r\n __typename\r\n ...ExternalActionTypeFields\r\n }\r\n }\r\n }\r\n ${ExternalActionTypeFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchExternalActionTypeByIdGQL extends Apollo.Query<\r\n FetchExternalActionTypeByIdQuery,\r\n FetchExternalActionTypeByIdQueryVariables\r\n> {\r\n document = FetchExternalActionTypeByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchExternalActionTypeByIdsDocument = gql`\r\n query FetchExternalActionTypeByIds($ids: [ID!]!) {\r\n externalActionType: entities {\r\n byIds(ids: $ids, type: ExternalActionType) {\r\n __typename\r\n ...ExternalActionTypeFields\r\n }\r\n }\r\n }\r\n ${ExternalActionTypeFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchExternalActionTypeByIdsGQL extends Apollo.Query<\r\n FetchExternalActionTypeByIdsQuery,\r\n FetchExternalActionTypeByIdsQueryVariables\r\n> {\r\n document = FetchExternalActionTypeByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchExternalSystemUnitByIdDocument = gql`\r\n query FetchExternalSystemUnitById($id: ID!) {\r\n externalSystemUnit: entities {\r\n byId(id: $id, type: ExternalSystemUnit) {\r\n __typename\r\n ...ExternalSystemUnitFields\r\n }\r\n }\r\n }\r\n ${ExternalSystemUnitFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchExternalSystemUnitByIdGQL extends Apollo.Query<\r\n FetchExternalSystemUnitByIdQuery,\r\n FetchExternalSystemUnitByIdQueryVariables\r\n> {\r\n document = FetchExternalSystemUnitByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchExternalSystemUnitByIdsDocument = gql`\r\n query FetchExternalSystemUnitByIds($ids: [ID!]!) {\r\n externalSystemUnit: entities {\r\n byIds(ids: $ids, type: ExternalSystemUnit) {\r\n __typename\r\n ...ExternalSystemUnitFields\r\n }\r\n }\r\n }\r\n ${ExternalSystemUnitFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchExternalSystemUnitByIdsGQL extends Apollo.Query<\r\n FetchExternalSystemUnitByIdsQuery,\r\n FetchExternalSystemUnitByIdsQueryVariables\r\n> {\r\n document = FetchExternalSystemUnitByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchFacilityNonAcceptanceReasonByIdDocument = gql`\r\n query FetchFacilityNonAcceptanceReasonById($id: ID!) {\r\n facilityNonAcceptanceReason: entities {\r\n byId(id: $id, type: FacilityNonAcceptanceReason) {\r\n __typename\r\n ...FacilityNonAcceptanceReasonFields\r\n }\r\n }\r\n }\r\n ${FacilityNonAcceptanceReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchFacilityNonAcceptanceReasonByIdGQL extends Apollo.Query<\r\n FetchFacilityNonAcceptanceReasonByIdQuery,\r\n FetchFacilityNonAcceptanceReasonByIdQueryVariables\r\n> {\r\n document = FetchFacilityNonAcceptanceReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchFacilityNonAcceptanceReasonByIdsDocument = gql`\r\n query FetchFacilityNonAcceptanceReasonByIds($ids: [ID!]!) {\r\n facilityNonAcceptanceReason: entities {\r\n byIds(ids: $ids, type: FacilityNonAcceptanceReason) {\r\n __typename\r\n ...FacilityNonAcceptanceReasonFields\r\n }\r\n }\r\n }\r\n ${FacilityNonAcceptanceReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchFacilityNonAcceptanceReasonByIdsGQL extends Apollo.Query<\r\n FetchFacilityNonAcceptanceReasonByIdsQuery,\r\n FetchFacilityNonAcceptanceReasonByIdsQueryVariables\r\n> {\r\n document = FetchFacilityNonAcceptanceReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchFirewallRuleByIdDocument = gql`\r\n query FetchFirewallRuleById($id: ID!) {\r\n firewallRule: entities {\r\n byId(id: $id, type: FirewallRule) {\r\n __typename\r\n ...FirewallRuleFields\r\n }\r\n }\r\n }\r\n ${FirewallRuleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchFirewallRuleByIdGQL extends Apollo.Query<\r\n FetchFirewallRuleByIdQuery,\r\n FetchFirewallRuleByIdQueryVariables\r\n> {\r\n document = FetchFirewallRuleByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchFirewallRuleByIdsDocument = gql`\r\n query FetchFirewallRuleByIds($ids: [ID!]!) {\r\n firewallRule: entities {\r\n byIds(ids: $ids, type: FirewallRule) {\r\n __typename\r\n ...FirewallRuleFields\r\n }\r\n }\r\n }\r\n ${FirewallRuleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchFirewallRuleByIdsGQL extends Apollo.Query<\r\n FetchFirewallRuleByIdsQuery,\r\n FetchFirewallRuleByIdsQueryVariables\r\n> {\r\n document = FetchFirewallRuleByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchFlightFollowingReportByIdDocument = gql`\r\n query FetchFlightFollowingReportById($id: ID!) {\r\n flightFollowingReport: entities {\r\n byId(id: $id, type: FlightFollowingReport) {\r\n __typename\r\n ...FlightFollowingReportFields\r\n }\r\n }\r\n }\r\n ${FlightFollowingReportFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchFlightFollowingReportByIdGQL extends Apollo.Query<\r\n FetchFlightFollowingReportByIdQuery,\r\n FetchFlightFollowingReportByIdQueryVariables\r\n> {\r\n document = FetchFlightFollowingReportByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchFlightFollowingReportByIdsDocument = gql`\r\n query FetchFlightFollowingReportByIds($ids: [ID!]!) {\r\n flightFollowingReport: entities {\r\n byIds(ids: $ids, type: FlightFollowingReport) {\r\n __typename\r\n ...FlightFollowingReportFields\r\n }\r\n }\r\n }\r\n ${FlightFollowingReportFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchFlightFollowingReportByIdsGQL extends Apollo.Query<\r\n FetchFlightFollowingReportByIdsQuery,\r\n FetchFlightFollowingReportByIdsQueryVariables\r\n> {\r\n document = FetchFlightFollowingReportByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchLandingZoneOutOfServiceReasonByIdDocument = gql`\r\n query FetchLandingZoneOutOfServiceReasonById($id: ID!) {\r\n landingZoneOutOfServiceReason: entities {\r\n byId(id: $id, type: LandingZoneOutOfServiceReason) {\r\n __typename\r\n ...LandingZoneOutOfServiceReasonFields\r\n }\r\n }\r\n }\r\n ${LandingZoneOutOfServiceReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchLandingZoneOutOfServiceReasonByIdGQL extends Apollo.Query<\r\n FetchLandingZoneOutOfServiceReasonByIdQuery,\r\n FetchLandingZoneOutOfServiceReasonByIdQueryVariables\r\n> {\r\n document = FetchLandingZoneOutOfServiceReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchLandingZoneOutOfServiceReasonByIdsDocument = gql`\r\n query FetchLandingZoneOutOfServiceReasonByIds($ids: [ID!]!) {\r\n landingZoneOutOfServiceReason: entities {\r\n byIds(ids: $ids, type: LandingZoneOutOfServiceReason) {\r\n __typename\r\n ...LandingZoneOutOfServiceReasonFields\r\n }\r\n }\r\n }\r\n ${LandingZoneOutOfServiceReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchLandingZoneOutOfServiceReasonByIdsGQL extends Apollo.Query<\r\n FetchLandingZoneOutOfServiceReasonByIdsQuery,\r\n FetchLandingZoneOutOfServiceReasonByIdsQueryVariables\r\n> {\r\n document = FetchLandingZoneOutOfServiceReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchLocationHazardAttachmentByIdDocument = gql`\r\n query FetchLocationHazardAttachmentById($id: ID!) {\r\n locationHazardAttachment: entities {\r\n byId(id: $id, type: LocationHazardAttachment) {\r\n __typename\r\n ...LocationHazardAttachmentFields\r\n }\r\n }\r\n }\r\n ${LocationHazardAttachmentFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchLocationHazardAttachmentByIdGQL extends Apollo.Query<\r\n FetchLocationHazardAttachmentByIdQuery,\r\n FetchLocationHazardAttachmentByIdQueryVariables\r\n> {\r\n document = FetchLocationHazardAttachmentByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchLocationHazardAttachmentByIdsDocument = gql`\r\n query FetchLocationHazardAttachmentByIds($ids: [ID!]!) {\r\n locationHazardAttachment: entities {\r\n byIds(ids: $ids, type: LocationHazardAttachment) {\r\n __typename\r\n ...LocationHazardAttachmentFields\r\n }\r\n }\r\n }\r\n ${LocationHazardAttachmentFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchLocationHazardAttachmentByIdsGQL extends Apollo.Query<\r\n FetchLocationHazardAttachmentByIdsQuery,\r\n FetchLocationHazardAttachmentByIdsQueryVariables\r\n> {\r\n document = FetchLocationHazardAttachmentByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchLocationHazardByIdDocument = gql`\r\n query FetchLocationHazardById($id: ID!) {\r\n locationHazard: entities {\r\n byId(id: $id, type: LocationHazard) {\r\n __typename\r\n ...LocationHazardFields\r\n }\r\n }\r\n }\r\n ${LocationHazardFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchLocationHazardByIdGQL extends Apollo.Query<\r\n FetchLocationHazardByIdQuery,\r\n FetchLocationHazardByIdQueryVariables\r\n> {\r\n document = FetchLocationHazardByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchLocationHazardByIdsDocument = gql`\r\n query FetchLocationHazardByIds($ids: [ID!]!) {\r\n locationHazard: entities {\r\n byIds(ids: $ids, type: LocationHazard) {\r\n __typename\r\n ...LocationHazardFields\r\n }\r\n }\r\n }\r\n ${LocationHazardFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchLocationHazardByIdsGQL extends Apollo.Query<\r\n FetchLocationHazardByIdsQuery,\r\n FetchLocationHazardByIdsQueryVariables\r\n> {\r\n document = FetchLocationHazardByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchManifestEntryByIdDocument = gql`\r\n query FetchManifestEntryById($id: ID!) {\r\n manifestEntry: entities {\r\n byId(id: $id, type: ManifestEntry) {\r\n __typename\r\n ...ManifestEntryFields\r\n }\r\n }\r\n }\r\n ${ManifestEntryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchManifestEntryByIdGQL extends Apollo.Query<\r\n FetchManifestEntryByIdQuery,\r\n FetchManifestEntryByIdQueryVariables\r\n> {\r\n document = FetchManifestEntryByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchManifestEntryByIdsDocument = gql`\r\n query FetchManifestEntryByIds($ids: [ID!]!) {\r\n manifestEntry: entities {\r\n byIds(ids: $ids, type: ManifestEntry) {\r\n __typename\r\n ...ManifestEntryFields\r\n }\r\n }\r\n }\r\n ${ManifestEntryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchManifestEntryByIdsGQL extends Apollo.Query<\r\n FetchManifestEntryByIdsQuery,\r\n FetchManifestEntryByIdsQueryVariables\r\n> {\r\n document = FetchManifestEntryByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMedicalControlContactLogEntryByIdDocument = gql`\r\n query FetchMedicalControlContactLogEntryById($id: ID!) {\r\n medicalControlContactLogEntry: entities {\r\n byId(id: $id, type: MedicalControlContactLogEntry) {\r\n __typename\r\n ...MedicalControlContactLogEntryFields\r\n }\r\n }\r\n }\r\n ${MedicalControlContactLogEntryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMedicalControlContactLogEntryByIdGQL extends Apollo.Query<\r\n FetchMedicalControlContactLogEntryByIdQuery,\r\n FetchMedicalControlContactLogEntryByIdQueryVariables\r\n> {\r\n document = FetchMedicalControlContactLogEntryByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMedicalControlContactLogEntryByIdsDocument = gql`\r\n query FetchMedicalControlContactLogEntryByIds($ids: [ID!]!) {\r\n medicalControlContactLogEntry: entities {\r\n byIds(ids: $ids, type: MedicalControlContactLogEntry) {\r\n __typename\r\n ...MedicalControlContactLogEntryFields\r\n }\r\n }\r\n }\r\n ${MedicalControlContactLogEntryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMedicalControlContactLogEntryByIdsGQL extends Apollo.Query<\r\n FetchMedicalControlContactLogEntryByIdsQuery,\r\n FetchMedicalControlContactLogEntryByIdsQueryVariables\r\n> {\r\n document = FetchMedicalControlContactLogEntryByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMessageStatusUpdateByIdDocument = gql`\r\n query FetchMessageStatusUpdateById($id: ID!) {\r\n messageStatusUpdate: entities {\r\n byId(id: $id, type: MessageStatusUpdate) {\r\n __typename\r\n ...MessageStatusUpdateFields\r\n }\r\n }\r\n }\r\n ${MessageStatusUpdateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMessageStatusUpdateByIdGQL extends Apollo.Query<\r\n FetchMessageStatusUpdateByIdQuery,\r\n FetchMessageStatusUpdateByIdQueryVariables\r\n> {\r\n document = FetchMessageStatusUpdateByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMessageStatusUpdateByIdsDocument = gql`\r\n query FetchMessageStatusUpdateByIds($ids: [ID!]!) {\r\n messageStatusUpdate: entities {\r\n byIds(ids: $ids, type: MessageStatusUpdate) {\r\n __typename\r\n ...MessageStatusUpdateFields\r\n }\r\n }\r\n }\r\n ${MessageStatusUpdateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMessageStatusUpdateByIdsGQL extends Apollo.Query<\r\n FetchMessageStatusUpdateByIdsQuery,\r\n FetchMessageStatusUpdateByIdsQueryVariables\r\n> {\r\n document = FetchMessageStatusUpdateByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNextDueTypeByIdDocument = gql`\r\n query FetchNextDueTypeById($id: ID!) {\r\n nextDueType: entities {\r\n byId(id: $id, type: NextDueType) {\r\n __typename\r\n ...NextDueTypeFields\r\n }\r\n }\r\n }\r\n ${NextDueTypeFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNextDueTypeByIdGQL extends Apollo.Query<\r\n FetchNextDueTypeByIdQuery,\r\n FetchNextDueTypeByIdQueryVariables\r\n> {\r\n document = FetchNextDueTypeByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNextDueTypeByIdsDocument = gql`\r\n query FetchNextDueTypeByIds($ids: [ID!]!) {\r\n nextDueType: entities {\r\n byIds(ids: $ids, type: NextDueType) {\r\n __typename\r\n ...NextDueTypeFields\r\n }\r\n }\r\n }\r\n ${NextDueTypeFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNextDueTypeByIdsGQL extends Apollo.Query<\r\n FetchNextDueTypeByIdsQuery,\r\n FetchNextDueTypeByIdsQueryVariables\r\n> {\r\n document = FetchNextDueTypeByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNonReferralReasonByIdDocument = gql`\r\n query FetchNonReferralReasonById($id: ID!) {\r\n nonReferralReason: entities {\r\n byId(id: $id, type: NonReferralReason) {\r\n __typename\r\n ...NonReferralReasonFields\r\n }\r\n }\r\n }\r\n ${NonReferralReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNonReferralReasonByIdGQL extends Apollo.Query<\r\n FetchNonReferralReasonByIdQuery,\r\n FetchNonReferralReasonByIdQueryVariables\r\n> {\r\n document = FetchNonReferralReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNonReferralReasonByIdsDocument = gql`\r\n query FetchNonReferralReasonByIds($ids: [ID!]!) {\r\n nonReferralReason: entities {\r\n byIds(ids: $ids, type: NonReferralReason) {\r\n __typename\r\n ...NonReferralReasonFields\r\n }\r\n }\r\n }\r\n ${NonReferralReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNonReferralReasonByIdsGQL extends Apollo.Query<\r\n FetchNonReferralReasonByIdsQuery,\r\n FetchNonReferralReasonByIdsQueryVariables\r\n> {\r\n document = FetchNonReferralReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNotificationByIdDocument = gql`\r\n query FetchNotificationById($id: ID!) {\r\n notification: entities {\r\n byId(id: $id, type: Notification) {\r\n __typename\r\n ...NotificationFields\r\n }\r\n }\r\n }\r\n ${NotificationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNotificationByIdGQL extends Apollo.Query<\r\n FetchNotificationByIdQuery,\r\n FetchNotificationByIdQueryVariables\r\n> {\r\n document = FetchNotificationByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNotificationByIdsDocument = gql`\r\n query FetchNotificationByIds($ids: [ID!]!) {\r\n notification: entities {\r\n byIds(ids: $ids, type: Notification) {\r\n __typename\r\n ...NotificationFields\r\n }\r\n }\r\n }\r\n ${NotificationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNotificationByIdsGQL extends Apollo.Query<\r\n FetchNotificationByIdsQuery,\r\n FetchNotificationByIdsQueryVariables\r\n> {\r\n document = FetchNotificationByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNotificationGroupByIdDocument = gql`\r\n query FetchNotificationGroupById($id: ID!) {\r\n notificationGroup: entities {\r\n byId(id: $id, type: NotificationGroup) {\r\n __typename\r\n ...NotificationGroupFields\r\n }\r\n }\r\n }\r\n ${NotificationGroupFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNotificationGroupByIdGQL extends Apollo.Query<\r\n FetchNotificationGroupByIdQuery,\r\n FetchNotificationGroupByIdQueryVariables\r\n> {\r\n document = FetchNotificationGroupByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNotificationGroupByIdsDocument = gql`\r\n query FetchNotificationGroupByIds($ids: [ID!]!) {\r\n notificationGroup: entities {\r\n byIds(ids: $ids, type: NotificationGroup) {\r\n __typename\r\n ...NotificationGroupFields\r\n }\r\n }\r\n }\r\n ${NotificationGroupFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNotificationGroupByIdsGQL extends Apollo.Query<\r\n FetchNotificationGroupByIdsQuery,\r\n FetchNotificationGroupByIdsQueryVariables\r\n> {\r\n document = FetchNotificationGroupByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNotificationGroupMemberByIdDocument = gql`\r\n query FetchNotificationGroupMemberById($id: ID!) {\r\n notificationGroupMember: entities {\r\n byId(id: $id, type: NotificationGroupMember) {\r\n __typename\r\n ...NotificationGroupMemberFields\r\n }\r\n }\r\n }\r\n ${NotificationGroupMemberFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNotificationGroupMemberByIdGQL extends Apollo.Query<\r\n FetchNotificationGroupMemberByIdQuery,\r\n FetchNotificationGroupMemberByIdQueryVariables\r\n> {\r\n document = FetchNotificationGroupMemberByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNotificationGroupMemberByIdsDocument = gql`\r\n query FetchNotificationGroupMemberByIds($ids: [ID!]!) {\r\n notificationGroupMember: entities {\r\n byIds(ids: $ids, type: NotificationGroupMember) {\r\n __typename\r\n ...NotificationGroupMemberFields\r\n }\r\n }\r\n }\r\n ${NotificationGroupMemberFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNotificationGroupMemberByIdsGQL extends Apollo.Query<\r\n FetchNotificationGroupMemberByIdsQuery,\r\n FetchNotificationGroupMemberByIdsQueryVariables\r\n> {\r\n document = FetchNotificationGroupMemberByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNotificationRecipientByIdDocument = gql`\r\n query FetchNotificationRecipientById($id: ID!) {\r\n notificationRecipient: entities {\r\n byId(id: $id, type: NotificationRecipient) {\r\n __typename\r\n ...NotificationRecipientFields\r\n }\r\n }\r\n }\r\n ${NotificationRecipientFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNotificationRecipientByIdGQL extends Apollo.Query<\r\n FetchNotificationRecipientByIdQuery,\r\n FetchNotificationRecipientByIdQueryVariables\r\n> {\r\n document = FetchNotificationRecipientByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNotificationRecipientByIdsDocument = gql`\r\n query FetchNotificationRecipientByIds($ids: [ID!]!) {\r\n notificationRecipient: entities {\r\n byIds(ids: $ids, type: NotificationRecipient) {\r\n __typename\r\n ...NotificationRecipientFields\r\n }\r\n }\r\n }\r\n ${NotificationRecipientFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNotificationRecipientByIdsGQL extends Apollo.Query<\r\n FetchNotificationRecipientByIdsQuery,\r\n FetchNotificationRecipientByIdsQueryVariables\r\n> {\r\n document = FetchNotificationRecipientByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNotificationSubscriptionByIdDocument = gql`\r\n query FetchNotificationSubscriptionById($id: ID!) {\r\n notificationSubscription: entities {\r\n byId(id: $id, type: NotificationSubscription) {\r\n __typename\r\n ...NotificationSubscriptionFields\r\n }\r\n }\r\n }\r\n ${NotificationSubscriptionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNotificationSubscriptionByIdGQL extends Apollo.Query<\r\n FetchNotificationSubscriptionByIdQuery,\r\n FetchNotificationSubscriptionByIdQueryVariables\r\n> {\r\n document = FetchNotificationSubscriptionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNotificationSubscriptionByIdsDocument = gql`\r\n query FetchNotificationSubscriptionByIds($ids: [ID!]!) {\r\n notificationSubscription: entities {\r\n byIds(ids: $ids, type: NotificationSubscription) {\r\n __typename\r\n ...NotificationSubscriptionFields\r\n }\r\n }\r\n }\r\n ${NotificationSubscriptionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNotificationSubscriptionByIdsGQL extends Apollo.Query<\r\n FetchNotificationSubscriptionByIdsQuery,\r\n FetchNotificationSubscriptionByIdsQueryVariables\r\n> {\r\n document = FetchNotificationSubscriptionByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNotificationTemplateByIdDocument = gql`\r\n query FetchNotificationTemplateById($id: ID!) {\r\n notificationTemplate: entities {\r\n byId(id: $id, type: NotificationTemplate) {\r\n __typename\r\n ...NotificationTemplateFields\r\n }\r\n }\r\n }\r\n ${NotificationTemplateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNotificationTemplateByIdGQL extends Apollo.Query<\r\n FetchNotificationTemplateByIdQuery,\r\n FetchNotificationTemplateByIdQueryVariables\r\n> {\r\n document = FetchNotificationTemplateByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchNotificationTemplateByIdsDocument = gql`\r\n query FetchNotificationTemplateByIds($ids: [ID!]!) {\r\n notificationTemplate: entities {\r\n byIds(ids: $ids, type: NotificationTemplate) {\r\n __typename\r\n ...NotificationTemplateFields\r\n }\r\n }\r\n }\r\n ${NotificationTemplateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchNotificationTemplateByIdsGQL extends Apollo.Query<\r\n FetchNotificationTemplateByIdsQuery,\r\n FetchNotificationTemplateByIdsQueryVariables\r\n> {\r\n document = FetchNotificationTemplateByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOemActivityByIdDocument = gql`\r\n query FetchOemActivityById($id: ID!) {\r\n oemActivity: entities {\r\n byId(id: $id, type: OemActivity) {\r\n __typename\r\n ...OemActivityFields\r\n }\r\n }\r\n }\r\n ${OemActivityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOemActivityByIdGQL extends Apollo.Query<\r\n FetchOemActivityByIdQuery,\r\n FetchOemActivityByIdQueryVariables\r\n> {\r\n document = FetchOemActivityByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOemActivityByIdsDocument = gql`\r\n query FetchOemActivityByIds($ids: [ID!]!) {\r\n oemActivity: entities {\r\n byIds(ids: $ids, type: OemActivity) {\r\n __typename\r\n ...OemActivityFields\r\n }\r\n }\r\n }\r\n ${OemActivityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOemActivityByIdsGQL extends Apollo.Query<\r\n FetchOemActivityByIdsQuery,\r\n FetchOemActivityByIdsQueryVariables\r\n> {\r\n document = FetchOemActivityByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOemAssetByIdDocument = gql`\r\n query FetchOemAssetById($id: ID!) {\r\n oemAsset: entities {\r\n byId(id: $id, type: OemAsset) {\r\n __typename\r\n ...OemAssetFields\r\n }\r\n }\r\n }\r\n ${OemAssetFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOemAssetByIdGQL extends Apollo.Query<\r\n FetchOemAssetByIdQuery,\r\n FetchOemAssetByIdQueryVariables\r\n> {\r\n document = FetchOemAssetByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOemAssetByIdsDocument = gql`\r\n query FetchOemAssetByIds($ids: [ID!]!) {\r\n oemAsset: entities {\r\n byIds(ids: $ids, type: OemAsset) {\r\n __typename\r\n ...OemAssetFields\r\n }\r\n }\r\n }\r\n ${OemAssetFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOemAssetByIdsGQL extends Apollo.Query<\r\n FetchOemAssetByIdsQuery,\r\n FetchOemAssetByIdsQueryVariables\r\n> {\r\n document = FetchOemAssetByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOemPlanChangeRequestByIdDocument = gql`\r\n query FetchOemPlanChangeRequestById($id: ID!) {\r\n oemPlanChangeRequest: entities {\r\n byId(id: $id, type: OemPlanChangeRequest) {\r\n __typename\r\n ...OemPlanChangeRequestFields\r\n }\r\n }\r\n }\r\n ${OemPlanChangeRequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOemPlanChangeRequestByIdGQL extends Apollo.Query<\r\n FetchOemPlanChangeRequestByIdQuery,\r\n FetchOemPlanChangeRequestByIdQueryVariables\r\n> {\r\n document = FetchOemPlanChangeRequestByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOemPlanChangeRequestByIdsDocument = gql`\r\n query FetchOemPlanChangeRequestByIds($ids: [ID!]!) {\r\n oemPlanChangeRequest: entities {\r\n byIds(ids: $ids, type: OemPlanChangeRequest) {\r\n __typename\r\n ...OemPlanChangeRequestFields\r\n }\r\n }\r\n }\r\n ${OemPlanChangeRequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOemPlanChangeRequestByIdsGQL extends Apollo.Query<\r\n FetchOemPlanChangeRequestByIdsQuery,\r\n FetchOemPlanChangeRequestByIdsQueryVariables\r\n> {\r\n document = FetchOemPlanChangeRequestByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOemPlanByIdDocument = gql`\r\n query FetchOemPlanById($id: ID!) {\r\n oemPlan: entities {\r\n byId(id: $id, type: OemPlan) {\r\n __typename\r\n ...OemPlanFields\r\n }\r\n }\r\n }\r\n ${OemPlanFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOemPlanByIdGQL extends Apollo.Query<\r\n FetchOemPlanByIdQuery,\r\n FetchOemPlanByIdQueryVariables\r\n> {\r\n document = FetchOemPlanByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOemPlanByIdsDocument = gql`\r\n query FetchOemPlanByIds($ids: [ID!]!) {\r\n oemPlan: entities {\r\n byIds(ids: $ids, type: OemPlan) {\r\n __typename\r\n ...OemPlanFields\r\n }\r\n }\r\n }\r\n ${OemPlanFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOemPlanByIdsGQL extends Apollo.Query<\r\n FetchOemPlanByIdsQuery,\r\n FetchOemPlanByIdsQueryVariables\r\n> {\r\n document = FetchOemPlanByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOfferAlgorithmByIdDocument = gql`\r\n query FetchOfferAlgorithmById($id: ID!) {\r\n offerAlgorithm: entities {\r\n byId(id: $id, type: OfferAlgorithm) {\r\n __typename\r\n ...OfferAlgorithmFields\r\n }\r\n }\r\n }\r\n ${OfferAlgorithmFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOfferAlgorithmByIdGQL extends Apollo.Query<\r\n FetchOfferAlgorithmByIdQuery,\r\n FetchOfferAlgorithmByIdQueryVariables\r\n> {\r\n document = FetchOfferAlgorithmByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOfferAlgorithmByIdsDocument = gql`\r\n query FetchOfferAlgorithmByIds($ids: [ID!]!) {\r\n offerAlgorithm: entities {\r\n byIds(ids: $ids, type: OfferAlgorithm) {\r\n __typename\r\n ...OfferAlgorithmFields\r\n }\r\n }\r\n }\r\n ${OfferAlgorithmFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOfferAlgorithmByIdsGQL extends Apollo.Query<\r\n FetchOfferAlgorithmByIdsQuery,\r\n FetchOfferAlgorithmByIdsQueryVariables\r\n> {\r\n document = FetchOfferAlgorithmByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOperationByIdDocument = gql`\r\n query FetchOperationById($id: ID!) {\r\n operation: entities {\r\n byId(id: $id, type: Operation) {\r\n __typename\r\n ...OperationFields\r\n }\r\n }\r\n }\r\n ${OperationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOperationByIdGQL extends Apollo.Query<\r\n FetchOperationByIdQuery,\r\n FetchOperationByIdQueryVariables\r\n> {\r\n document = FetchOperationByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOperationByIdsDocument = gql`\r\n query FetchOperationByIds($ids: [ID!]!) {\r\n operation: entities {\r\n byIds(ids: $ids, type: Operation) {\r\n __typename\r\n ...OperationFields\r\n }\r\n }\r\n }\r\n ${OperationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOperationByIdsGQL extends Apollo.Query<\r\n FetchOperationByIdsQuery,\r\n FetchOperationByIdsQueryVariables\r\n> {\r\n document = FetchOperationByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOutOfServiceEventByIdDocument = gql`\r\n query FetchOutOfServiceEventById($id: ID!) {\r\n outOfServiceEvent: entities {\r\n byId(id: $id, type: OutOfServiceEvent) {\r\n __typename\r\n ...OutOfServiceEventFields\r\n }\r\n }\r\n }\r\n ${OutOfServiceEventFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOutOfServiceEventByIdGQL extends Apollo.Query<\r\n FetchOutOfServiceEventByIdQuery,\r\n FetchOutOfServiceEventByIdQueryVariables\r\n> {\r\n document = FetchOutOfServiceEventByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOutOfServiceEventByIdsDocument = gql`\r\n query FetchOutOfServiceEventByIds($ids: [ID!]!) {\r\n outOfServiceEvent: entities {\r\n byIds(ids: $ids, type: OutOfServiceEvent) {\r\n __typename\r\n ...OutOfServiceEventFields\r\n }\r\n }\r\n }\r\n ${OutOfServiceEventFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOutOfServiceEventByIdsGQL extends Apollo.Query<\r\n FetchOutOfServiceEventByIdsQuery,\r\n FetchOutOfServiceEventByIdsQueryVariables\r\n> {\r\n document = FetchOutOfServiceEventByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOutOfServiceEventNoteByIdDocument = gql`\r\n query FetchOutOfServiceEventNoteById($id: ID!) {\r\n outOfServiceEventNote: entities {\r\n byId(id: $id, type: OutOfServiceEventNote) {\r\n __typename\r\n ...OutOfServiceEventNoteFields\r\n }\r\n }\r\n }\r\n ${OutOfServiceEventNoteFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOutOfServiceEventNoteByIdGQL extends Apollo.Query<\r\n FetchOutOfServiceEventNoteByIdQuery,\r\n FetchOutOfServiceEventNoteByIdQueryVariables\r\n> {\r\n document = FetchOutOfServiceEventNoteByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOutOfServiceEventNoteByIdsDocument = gql`\r\n query FetchOutOfServiceEventNoteByIds($ids: [ID!]!) {\r\n outOfServiceEventNote: entities {\r\n byIds(ids: $ids, type: OutOfServiceEventNote) {\r\n __typename\r\n ...OutOfServiceEventNoteFields\r\n }\r\n }\r\n }\r\n ${OutOfServiceEventNoteFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOutOfServiceEventNoteByIdsGQL extends Apollo.Query<\r\n FetchOutOfServiceEventNoteByIdsQuery,\r\n FetchOutOfServiceEventNoteByIdsQueryVariables\r\n> {\r\n document = FetchOutOfServiceEventNoteByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOutOfServiceReasonByIdDocument = gql`\r\n query FetchOutOfServiceReasonById($id: ID!) {\r\n outOfServiceReason: entities {\r\n byId(id: $id, type: OutOfServiceReason) {\r\n __typename\r\n ...OutOfServiceReasonFields\r\n }\r\n }\r\n }\r\n ${OutOfServiceReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOutOfServiceReasonByIdGQL extends Apollo.Query<\r\n FetchOutOfServiceReasonByIdQuery,\r\n FetchOutOfServiceReasonByIdQueryVariables\r\n> {\r\n document = FetchOutOfServiceReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOutOfServiceReasonByIdsDocument = gql`\r\n query FetchOutOfServiceReasonByIds($ids: [ID!]!) {\r\n outOfServiceReason: entities {\r\n byIds(ids: $ids, type: OutOfServiceReason) {\r\n __typename\r\n ...OutOfServiceReasonFields\r\n }\r\n }\r\n }\r\n ${OutOfServiceReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOutOfServiceReasonByIdsGQL extends Apollo.Query<\r\n FetchOutOfServiceReasonByIdsQuery,\r\n FetchOutOfServiceReasonByIdsQueryVariables\r\n> {\r\n document = FetchOutOfServiceReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOutOfServiceSecondaryReasonByIdDocument = gql`\r\n query FetchOutOfServiceSecondaryReasonById($id: ID!) {\r\n outOfServiceSecondaryReason: entities {\r\n byId(id: $id, type: OutOfServiceSecondaryReason) {\r\n __typename\r\n ...OutOfServiceSecondaryReasonFields\r\n }\r\n }\r\n }\r\n ${OutOfServiceSecondaryReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOutOfServiceSecondaryReasonByIdGQL extends Apollo.Query<\r\n FetchOutOfServiceSecondaryReasonByIdQuery,\r\n FetchOutOfServiceSecondaryReasonByIdQueryVariables\r\n> {\r\n document = FetchOutOfServiceSecondaryReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOutOfServiceSecondaryReasonByIdsDocument = gql`\r\n query FetchOutOfServiceSecondaryReasonByIds($ids: [ID!]!) {\r\n outOfServiceSecondaryReason: entities {\r\n byIds(ids: $ids, type: OutOfServiceSecondaryReason) {\r\n __typename\r\n ...OutOfServiceSecondaryReasonFields\r\n }\r\n }\r\n }\r\n ${OutOfServiceSecondaryReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOutOfServiceSecondaryReasonByIdsGQL extends Apollo.Query<\r\n FetchOutOfServiceSecondaryReasonByIdsQuery,\r\n FetchOutOfServiceSecondaryReasonByIdsQueryVariables\r\n> {\r\n document = FetchOutOfServiceSecondaryReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPassdownLogAcknowledgementByIdDocument = gql`\r\n query FetchPassdownLogAcknowledgementById($id: ID!) {\r\n passdownLogAcknowledgement: entities {\r\n byId(id: $id, type: PassdownLogAcknowledgement) {\r\n __typename\r\n ...PassdownLogAcknowledgementFields\r\n }\r\n }\r\n }\r\n ${PassdownLogAcknowledgementFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPassdownLogAcknowledgementByIdGQL extends Apollo.Query<\r\n FetchPassdownLogAcknowledgementByIdQuery,\r\n FetchPassdownLogAcknowledgementByIdQueryVariables\r\n> {\r\n document = FetchPassdownLogAcknowledgementByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPassdownLogAcknowledgementByIdsDocument = gql`\r\n query FetchPassdownLogAcknowledgementByIds($ids: [ID!]!) {\r\n passdownLogAcknowledgement: entities {\r\n byIds(ids: $ids, type: PassdownLogAcknowledgement) {\r\n __typename\r\n ...PassdownLogAcknowledgementFields\r\n }\r\n }\r\n }\r\n ${PassdownLogAcknowledgementFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPassdownLogAcknowledgementByIdsGQL extends Apollo.Query<\r\n FetchPassdownLogAcknowledgementByIdsQuery,\r\n FetchPassdownLogAcknowledgementByIdsQueryVariables\r\n> {\r\n document = FetchPassdownLogAcknowledgementByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPassdownLogByIdDocument = gql`\r\n query FetchPassdownLogById($id: ID!) {\r\n passdownLog: entities {\r\n byId(id: $id, type: PassdownLog) {\r\n __typename\r\n ...PassdownLogFields\r\n }\r\n }\r\n }\r\n ${PassdownLogFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPassdownLogByIdGQL extends Apollo.Query<\r\n FetchPassdownLogByIdQuery,\r\n FetchPassdownLogByIdQueryVariables\r\n> {\r\n document = FetchPassdownLogByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPassdownLogByIdsDocument = gql`\r\n query FetchPassdownLogByIds($ids: [ID!]!) {\r\n passdownLog: entities {\r\n byIds(ids: $ids, type: PassdownLog) {\r\n __typename\r\n ...PassdownLogFields\r\n }\r\n }\r\n }\r\n ${PassdownLogFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPassdownLogByIdsGQL extends Apollo.Query<\r\n FetchPassdownLogByIdsQuery,\r\n FetchPassdownLogByIdsQueryVariables\r\n> {\r\n document = FetchPassdownLogByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPatientByIdDocument = gql`\r\n query FetchPatientById($id: ID!) {\r\n patient: entities {\r\n byId(id: $id, type: Patient) {\r\n __typename\r\n ...PatientFields\r\n }\r\n }\r\n }\r\n ${PatientFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPatientByIdGQL extends Apollo.Query<\r\n FetchPatientByIdQuery,\r\n FetchPatientByIdQueryVariables\r\n> {\r\n document = FetchPatientByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPatientByIdsDocument = gql`\r\n query FetchPatientByIds($ids: [ID!]!) {\r\n patient: entities {\r\n byIds(ids: $ids, type: Patient) {\r\n __typename\r\n ...PatientFields\r\n }\r\n }\r\n }\r\n ${PatientFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPatientByIdsGQL extends Apollo.Query<\r\n FetchPatientByIdsQuery,\r\n FetchPatientByIdsQueryVariables\r\n> {\r\n document = FetchPatientByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPositionReportAlertByIdDocument = gql`\r\n query FetchPositionReportAlertById($id: ID!) {\r\n positionReportAlert: entities {\r\n byId(id: $id, type: PositionReportAlert) {\r\n __typename\r\n ...PositionReportAlertFields\r\n }\r\n }\r\n }\r\n ${PositionReportAlertFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPositionReportAlertByIdGQL extends Apollo.Query<\r\n FetchPositionReportAlertByIdQuery,\r\n FetchPositionReportAlertByIdQueryVariables\r\n> {\r\n document = FetchPositionReportAlertByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPositionReportAlertByIdsDocument = gql`\r\n query FetchPositionReportAlertByIds($ids: [ID!]!) {\r\n positionReportAlert: entities {\r\n byIds(ids: $ids, type: PositionReportAlert) {\r\n __typename\r\n ...PositionReportAlertFields\r\n }\r\n }\r\n }\r\n ${PositionReportAlertFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPositionReportAlertByIdsGQL extends Apollo.Query<\r\n FetchPositionReportAlertByIdsQuery,\r\n FetchPositionReportAlertByIdsQueryVariables\r\n> {\r\n document = FetchPositionReportAlertByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPositionReportArchiveByIdDocument = gql`\r\n query FetchPositionReportArchiveById($id: ID!) {\r\n positionReportArchive: entities {\r\n byId(id: $id, type: PositionReportArchive) {\r\n __typename\r\n ...PositionReportArchiveFields\r\n }\r\n }\r\n }\r\n ${PositionReportArchiveFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPositionReportArchiveByIdGQL extends Apollo.Query<\r\n FetchPositionReportArchiveByIdQuery,\r\n FetchPositionReportArchiveByIdQueryVariables\r\n> {\r\n document = FetchPositionReportArchiveByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPositionReportArchiveByIdsDocument = gql`\r\n query FetchPositionReportArchiveByIds($ids: [ID!]!) {\r\n positionReportArchive: entities {\r\n byIds(ids: $ids, type: PositionReportArchive) {\r\n __typename\r\n ...PositionReportArchiveFields\r\n }\r\n }\r\n }\r\n ${PositionReportArchiveFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPositionReportArchiveByIdsGQL extends Apollo.Query<\r\n FetchPositionReportArchiveByIdsQuery,\r\n FetchPositionReportArchiveByIdsQueryVariables\r\n> {\r\n document = FetchPositionReportArchiveByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPositionReportByIdDocument = gql`\r\n query FetchPositionReportById($id: ID!) {\r\n positionReport: entities {\r\n byId(id: $id, type: PositionReport) {\r\n __typename\r\n ...PositionReportFields\r\n }\r\n }\r\n }\r\n ${PositionReportFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPositionReportByIdGQL extends Apollo.Query<\r\n FetchPositionReportByIdQuery,\r\n FetchPositionReportByIdQueryVariables\r\n> {\r\n document = FetchPositionReportByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPositionReportByIdsDocument = gql`\r\n query FetchPositionReportByIds($ids: [ID!]!) {\r\n positionReport: entities {\r\n byIds(ids: $ids, type: PositionReport) {\r\n __typename\r\n ...PositionReportFields\r\n }\r\n }\r\n }\r\n ${PositionReportFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPositionReportByIdsGQL extends Apollo.Query<\r\n FetchPositionReportByIdsQuery,\r\n FetchPositionReportByIdsQueryVariables\r\n> {\r\n document = FetchPositionReportByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionChoiceByIdDocument = gql`\r\n query FetchQuestionChoiceById($id: ID!) {\r\n questionChoice: entities {\r\n byId(id: $id, type: QuestionChoice) {\r\n __typename\r\n ...QuestionChoiceFields\r\n }\r\n }\r\n }\r\n ${QuestionChoiceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionChoiceByIdGQL extends Apollo.Query<\r\n FetchQuestionChoiceByIdQuery,\r\n FetchQuestionChoiceByIdQueryVariables\r\n> {\r\n document = FetchQuestionChoiceByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionChoiceByIdsDocument = gql`\r\n query FetchQuestionChoiceByIds($ids: [ID!]!) {\r\n questionChoice: entities {\r\n byIds(ids: $ids, type: QuestionChoice) {\r\n __typename\r\n ...QuestionChoiceFields\r\n }\r\n }\r\n }\r\n ${QuestionChoiceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionChoiceByIdsGQL extends Apollo.Query<\r\n FetchQuestionChoiceByIdsQuery,\r\n FetchQuestionChoiceByIdsQueryVariables\r\n> {\r\n document = FetchQuestionChoiceByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionByIdDocument = gql`\r\n query FetchQuestionById($id: ID!) {\r\n question: entities {\r\n byId(id: $id, type: Question) {\r\n __typename\r\n ...QuestionFields\r\n }\r\n }\r\n }\r\n ${QuestionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionByIdGQL extends Apollo.Query<\r\n FetchQuestionByIdQuery,\r\n FetchQuestionByIdQueryVariables\r\n> {\r\n document = FetchQuestionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionByIdsDocument = gql`\r\n query FetchQuestionByIds($ids: [ID!]!) {\r\n question: entities {\r\n byIds(ids: $ids, type: Question) {\r\n __typename\r\n ...QuestionFields\r\n }\r\n }\r\n }\r\n ${QuestionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionByIdsGQL extends Apollo.Query<\r\n FetchQuestionByIdsQuery,\r\n FetchQuestionByIdsQueryVariables\r\n> {\r\n document = FetchQuestionByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionnaireByIdDocument = gql`\r\n query FetchQuestionnaireById($id: ID!) {\r\n questionnaire: entities {\r\n byId(id: $id, type: Questionnaire) {\r\n __typename\r\n ...QuestionnaireFields\r\n }\r\n }\r\n }\r\n ${QuestionnaireFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionnaireByIdGQL extends Apollo.Query<\r\n FetchQuestionnaireByIdQuery,\r\n FetchQuestionnaireByIdQueryVariables\r\n> {\r\n document = FetchQuestionnaireByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionnaireByIdsDocument = gql`\r\n query FetchQuestionnaireByIds($ids: [ID!]!) {\r\n questionnaire: entities {\r\n byIds(ids: $ids, type: Questionnaire) {\r\n __typename\r\n ...QuestionnaireFields\r\n }\r\n }\r\n }\r\n ${QuestionnaireFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionnaireByIdsGQL extends Apollo.Query<\r\n FetchQuestionnaireByIdsQuery,\r\n FetchQuestionnaireByIdsQueryVariables\r\n> {\r\n document = FetchQuestionnaireByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionnaireQuestionResponseByIdDocument = gql`\r\n query FetchQuestionnaireQuestionResponseById($id: ID!) {\r\n questionnaireQuestionResponse: entities {\r\n byId(id: $id, type: QuestionnaireQuestionResponse) {\r\n __typename\r\n ...QuestionnaireQuestionResponseFields\r\n }\r\n }\r\n }\r\n ${QuestionnaireQuestionResponseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionnaireQuestionResponseByIdGQL extends Apollo.Query<\r\n FetchQuestionnaireQuestionResponseByIdQuery,\r\n FetchQuestionnaireQuestionResponseByIdQueryVariables\r\n> {\r\n document = FetchQuestionnaireQuestionResponseByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionnaireQuestionResponseByIdsDocument = gql`\r\n query FetchQuestionnaireQuestionResponseByIds($ids: [ID!]!) {\r\n questionnaireQuestionResponse: entities {\r\n byIds(ids: $ids, type: QuestionnaireQuestionResponse) {\r\n __typename\r\n ...QuestionnaireQuestionResponseFields\r\n }\r\n }\r\n }\r\n ${QuestionnaireQuestionResponseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionnaireQuestionResponseByIdsGQL extends Apollo.Query<\r\n FetchQuestionnaireQuestionResponseByIdsQuery,\r\n FetchQuestionnaireQuestionResponseByIdsQueryVariables\r\n> {\r\n document = FetchQuestionnaireQuestionResponseByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionnaireQuestionResponseNoteByIdDocument = gql`\r\n query FetchQuestionnaireQuestionResponseNoteById($id: ID!) {\r\n questionnaireQuestionResponseNote: entities {\r\n byId(id: $id, type: QuestionnaireQuestionResponseNote) {\r\n __typename\r\n ...QuestionnaireQuestionResponseNoteFields\r\n }\r\n }\r\n }\r\n ${QuestionnaireQuestionResponseNoteFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionnaireQuestionResponseNoteByIdGQL extends Apollo.Query<\r\n FetchQuestionnaireQuestionResponseNoteByIdQuery,\r\n FetchQuestionnaireQuestionResponseNoteByIdQueryVariables\r\n> {\r\n document = FetchQuestionnaireQuestionResponseNoteByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionnaireQuestionResponseNoteByIdsDocument = gql`\r\n query FetchQuestionnaireQuestionResponseNoteByIds($ids: [ID!]!) {\r\n questionnaireQuestionResponseNote: entities {\r\n byIds(ids: $ids, type: QuestionnaireQuestionResponseNote) {\r\n __typename\r\n ...QuestionnaireQuestionResponseNoteFields\r\n }\r\n }\r\n }\r\n ${QuestionnaireQuestionResponseNoteFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionnaireQuestionResponseNoteByIdsGQL extends Apollo.Query<\r\n FetchQuestionnaireQuestionResponseNoteByIdsQuery,\r\n FetchQuestionnaireQuestionResponseNoteByIdsQueryVariables\r\n> {\r\n document = FetchQuestionnaireQuestionResponseNoteByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionnaireResponseByIdDocument = gql`\r\n query FetchQuestionnaireResponseById($id: ID!) {\r\n questionnaireResponse: entities {\r\n byId(id: $id, type: QuestionnaireResponse) {\r\n __typename\r\n ...QuestionnaireResponseFields\r\n }\r\n }\r\n }\r\n ${QuestionnaireResponseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionnaireResponseByIdGQL extends Apollo.Query<\r\n FetchQuestionnaireResponseByIdQuery,\r\n FetchQuestionnaireResponseByIdQueryVariables\r\n> {\r\n document = FetchQuestionnaireResponseByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionnaireResponseByIdsDocument = gql`\r\n query FetchQuestionnaireResponseByIds($ids: [ID!]!) {\r\n questionnaireResponse: entities {\r\n byIds(ids: $ids, type: QuestionnaireResponse) {\r\n __typename\r\n ...QuestionnaireResponseFields\r\n }\r\n }\r\n }\r\n ${QuestionnaireResponseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionnaireResponseByIdsGQL extends Apollo.Query<\r\n FetchQuestionnaireResponseByIdsQuery,\r\n FetchQuestionnaireResponseByIdsQueryVariables\r\n> {\r\n document = FetchQuestionnaireResponseByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionnaireSectionByIdDocument = gql`\r\n query FetchQuestionnaireSectionById($id: ID!) {\r\n questionnaireSection: entities {\r\n byId(id: $id, type: QuestionnaireSection) {\r\n __typename\r\n ...QuestionnaireSectionFields\r\n }\r\n }\r\n }\r\n ${QuestionnaireSectionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionnaireSectionByIdGQL extends Apollo.Query<\r\n FetchQuestionnaireSectionByIdQuery,\r\n FetchQuestionnaireSectionByIdQueryVariables\r\n> {\r\n document = FetchQuestionnaireSectionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionnaireSectionByIdsDocument = gql`\r\n query FetchQuestionnaireSectionByIds($ids: [ID!]!) {\r\n questionnaireSection: entities {\r\n byIds(ids: $ids, type: QuestionnaireSection) {\r\n __typename\r\n ...QuestionnaireSectionFields\r\n }\r\n }\r\n }\r\n ${QuestionnaireSectionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionnaireSectionByIdsGQL extends Apollo.Query<\r\n FetchQuestionnaireSectionByIdsQuery,\r\n FetchQuestionnaireSectionByIdsQueryVariables\r\n> {\r\n document = FetchQuestionnaireSectionByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionnaireSectionQuestionByIdDocument = gql`\r\n query FetchQuestionnaireSectionQuestionById($id: ID!) {\r\n questionnaireSectionQuestion: entities {\r\n byId(id: $id, type: QuestionnaireSectionQuestion) {\r\n __typename\r\n ...QuestionnaireSectionQuestionFields\r\n }\r\n }\r\n }\r\n ${QuestionnaireSectionQuestionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionnaireSectionQuestionByIdGQL extends Apollo.Query<\r\n FetchQuestionnaireSectionQuestionByIdQuery,\r\n FetchQuestionnaireSectionQuestionByIdQueryVariables\r\n> {\r\n document = FetchQuestionnaireSectionQuestionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchQuestionnaireSectionQuestionByIdsDocument = gql`\r\n query FetchQuestionnaireSectionQuestionByIds($ids: [ID!]!) {\r\n questionnaireSectionQuestion: entities {\r\n byIds(ids: $ids, type: QuestionnaireSectionQuestion) {\r\n __typename\r\n ...QuestionnaireSectionQuestionFields\r\n }\r\n }\r\n }\r\n ${QuestionnaireSectionQuestionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchQuestionnaireSectionQuestionByIdsGQL extends Apollo.Query<\r\n FetchQuestionnaireSectionQuestionByIdsQuery,\r\n FetchQuestionnaireSectionQuestionByIdsQueryVariables\r\n> {\r\n document = FetchQuestionnaireSectionQuestionByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchReceivingFacilityRequestByIdDocument = gql`\r\n query FetchReceivingFacilityRequestById($id: ID!) {\r\n receivingFacilityRequest: entities {\r\n byId(id: $id, type: ReceivingFacilityRequest) {\r\n __typename\r\n ...ReceivingFacilityRequestFields\r\n }\r\n }\r\n }\r\n ${ReceivingFacilityRequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchReceivingFacilityRequestByIdGQL extends Apollo.Query<\r\n FetchReceivingFacilityRequestByIdQuery,\r\n FetchReceivingFacilityRequestByIdQueryVariables\r\n> {\r\n document = FetchReceivingFacilityRequestByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchReceivingFacilityRequestByIdsDocument = gql`\r\n query FetchReceivingFacilityRequestByIds($ids: [ID!]!) {\r\n receivingFacilityRequest: entities {\r\n byIds(ids: $ids, type: ReceivingFacilityRequest) {\r\n __typename\r\n ...ReceivingFacilityRequestFields\r\n }\r\n }\r\n }\r\n ${ReceivingFacilityRequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchReceivingFacilityRequestByIdsGQL extends Apollo.Query<\r\n FetchReceivingFacilityRequestByIdsQuery,\r\n FetchReceivingFacilityRequestByIdsQueryVariables\r\n> {\r\n document = FetchReceivingFacilityRequestByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRendezvousRequestByIdDocument = gql`\r\n query FetchRendezvousRequestById($id: ID!) {\r\n rendezvousRequest: entities {\r\n byId(id: $id, type: RendezvousRequest) {\r\n __typename\r\n ...RendezvousRequestFields\r\n }\r\n }\r\n }\r\n ${RendezvousRequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRendezvousRequestByIdGQL extends Apollo.Query<\r\n FetchRendezvousRequestByIdQuery,\r\n FetchRendezvousRequestByIdQueryVariables\r\n> {\r\n document = FetchRendezvousRequestByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRendezvousRequestByIdsDocument = gql`\r\n query FetchRendezvousRequestByIds($ids: [ID!]!) {\r\n rendezvousRequest: entities {\r\n byIds(ids: $ids, type: RendezvousRequest) {\r\n __typename\r\n ...RendezvousRequestFields\r\n }\r\n }\r\n }\r\n ${RendezvousRequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRendezvousRequestByIdsGQL extends Apollo.Query<\r\n FetchRendezvousRequestByIdsQuery,\r\n FetchRendezvousRequestByIdsQueryVariables\r\n> {\r\n document = FetchRendezvousRequestByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequestByIdDocument = gql`\r\n query FetchRequestById($id: ID!) {\r\n request: entities {\r\n byId(id: $id, type: Request) {\r\n __typename\r\n ...RequestFields\r\n }\r\n }\r\n }\r\n ${RequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequestByIdGQL extends Apollo.Query<\r\n FetchRequestByIdQuery,\r\n FetchRequestByIdQueryVariables\r\n> {\r\n document = FetchRequestByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequestByIdsDocument = gql`\r\n query FetchRequestByIds($ids: [ID!]!) {\r\n request: entities {\r\n byIds(ids: $ids, type: Request) {\r\n __typename\r\n ...RequestFields\r\n }\r\n }\r\n }\r\n ${RequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequestByIdsGQL extends Apollo.Query<\r\n FetchRequestByIdsQuery,\r\n FetchRequestByIdsQueryVariables\r\n> {\r\n document = FetchRequestByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequesterByIdDocument = gql`\r\n query FetchRequesterById($id: ID!) {\r\n requester: entities {\r\n byId(id: $id, type: Requester) {\r\n __typename\r\n ...RequesterFields\r\n }\r\n }\r\n }\r\n ${RequesterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequesterByIdGQL extends Apollo.Query<\r\n FetchRequesterByIdQuery,\r\n FetchRequesterByIdQueryVariables\r\n> {\r\n document = FetchRequesterByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequesterByIdsDocument = gql`\r\n query FetchRequesterByIds($ids: [ID!]!) {\r\n requester: entities {\r\n byIds(ids: $ids, type: Requester) {\r\n __typename\r\n ...RequesterFields\r\n }\r\n }\r\n }\r\n ${RequesterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequesterByIdsGQL extends Apollo.Query<\r\n FetchRequesterByIdsQuery,\r\n FetchRequesterByIdsQueryVariables\r\n> {\r\n document = FetchRequesterByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequesterReferralReasonByIdDocument = gql`\r\n query FetchRequesterReferralReasonById($id: ID!) {\r\n requesterReferralReason: entities {\r\n byId(id: $id, type: RequesterReferralReason) {\r\n __typename\r\n ...RequesterReferralReasonFields\r\n }\r\n }\r\n }\r\n ${RequesterReferralReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequesterReferralReasonByIdGQL extends Apollo.Query<\r\n FetchRequesterReferralReasonByIdQuery,\r\n FetchRequesterReferralReasonByIdQueryVariables\r\n> {\r\n document = FetchRequesterReferralReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequesterReferralReasonByIdsDocument = gql`\r\n query FetchRequesterReferralReasonByIds($ids: [ID!]!) {\r\n requesterReferralReason: entities {\r\n byIds(ids: $ids, type: RequesterReferralReason) {\r\n __typename\r\n ...RequesterReferralReasonFields\r\n }\r\n }\r\n }\r\n ${RequesterReferralReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequesterReferralReasonByIdsGQL extends Apollo.Query<\r\n FetchRequesterReferralReasonByIdsQuery,\r\n FetchRequesterReferralReasonByIdsQueryVariables\r\n> {\r\n document = FetchRequesterReferralReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequesterRoleByIdDocument = gql`\r\n query FetchRequesterRoleById($id: ID!) {\r\n requesterRole: entities {\r\n byId(id: $id, type: RequesterRole) {\r\n __typename\r\n ...RequesterRoleFields\r\n }\r\n }\r\n }\r\n ${RequesterRoleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequesterRoleByIdGQL extends Apollo.Query<\r\n FetchRequesterRoleByIdQuery,\r\n FetchRequesterRoleByIdQueryVariables\r\n> {\r\n document = FetchRequesterRoleByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequesterRoleByIdsDocument = gql`\r\n query FetchRequesterRoleByIds($ids: [ID!]!) {\r\n requesterRole: entities {\r\n byIds(ids: $ids, type: RequesterRole) {\r\n __typename\r\n ...RequesterRoleFields\r\n }\r\n }\r\n }\r\n ${RequesterRoleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequesterRoleByIdsGQL extends Apollo.Query<\r\n FetchRequesterRoleByIdsQuery,\r\n FetchRequesterRoleByIdsQueryVariables\r\n> {\r\n document = FetchRequesterRoleByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequestLocationByIdDocument = gql`\r\n query FetchRequestLocationById($id: ID!) {\r\n requestLocation: entities {\r\n byId(id: $id, type: RequestLocation) {\r\n __typename\r\n ...RequestLocationFields\r\n }\r\n }\r\n }\r\n ${RequestLocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequestLocationByIdGQL extends Apollo.Query<\r\n FetchRequestLocationByIdQuery,\r\n FetchRequestLocationByIdQueryVariables\r\n> {\r\n document = FetchRequestLocationByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequestLocationByIdsDocument = gql`\r\n query FetchRequestLocationByIds($ids: [ID!]!) {\r\n requestLocation: entities {\r\n byIds(ids: $ids, type: RequestLocation) {\r\n __typename\r\n ...RequestLocationFields\r\n }\r\n }\r\n }\r\n ${RequestLocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequestLocationByIdsGQL extends Apollo.Query<\r\n FetchRequestLocationByIdsQuery,\r\n FetchRequestLocationByIdsQueryVariables\r\n> {\r\n document = FetchRequestLocationByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequestPatientByIdDocument = gql`\r\n query FetchRequestPatientById($id: ID!) {\r\n requestPatient: entities {\r\n byId(id: $id, type: RequestPatient) {\r\n __typename\r\n ...RequestPatientFields\r\n }\r\n }\r\n }\r\n ${RequestPatientFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequestPatientByIdGQL extends Apollo.Query<\r\n FetchRequestPatientByIdQuery,\r\n FetchRequestPatientByIdQueryVariables\r\n> {\r\n document = FetchRequestPatientByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRequestPatientByIdsDocument = gql`\r\n query FetchRequestPatientByIds($ids: [ID!]!) {\r\n requestPatient: entities {\r\n byIds(ids: $ids, type: RequestPatient) {\r\n __typename\r\n ...RequestPatientFields\r\n }\r\n }\r\n }\r\n ${RequestPatientFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRequestPatientByIdsGQL extends Apollo.Query<\r\n FetchRequestPatientByIdsQuery,\r\n FetchRequestPatientByIdsQueryVariables\r\n> {\r\n document = FetchRequestPatientByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchSystemTimerByIdDocument = gql`\r\n query FetchSystemTimerById($id: ID!) {\r\n systemTimer: entities {\r\n byId(id: $id, type: SystemTimer) {\r\n __typename\r\n ...SystemTimerFields\r\n }\r\n }\r\n }\r\n ${SystemTimerFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchSystemTimerByIdGQL extends Apollo.Query<\r\n FetchSystemTimerByIdQuery,\r\n FetchSystemTimerByIdQueryVariables\r\n> {\r\n document = FetchSystemTimerByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchSystemTimerByIdsDocument = gql`\r\n query FetchSystemTimerByIds($ids: [ID!]!) {\r\n systemTimer: entities {\r\n byIds(ids: $ids, type: SystemTimer) {\r\n __typename\r\n ...SystemTimerFields\r\n }\r\n }\r\n }\r\n ${SystemTimerFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchSystemTimerByIdsGQL extends Apollo.Query<\r\n FetchSystemTimerByIdsQuery,\r\n FetchSystemTimerByIdsQueryVariables\r\n> {\r\n document = FetchSystemTimerByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTimelineByIdDocument = gql`\r\n query FetchTimelineById($id: ID!) {\r\n timeline: entities {\r\n byId(id: $id, type: Timeline) {\r\n __typename\r\n ...TimelineFields\r\n }\r\n }\r\n }\r\n ${TimelineFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTimelineByIdGQL extends Apollo.Query<\r\n FetchTimelineByIdQuery,\r\n FetchTimelineByIdQueryVariables\r\n> {\r\n document = FetchTimelineByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTimelineByIdsDocument = gql`\r\n query FetchTimelineByIds($ids: [ID!]!) {\r\n timeline: entities {\r\n byIds(ids: $ids, type: Timeline) {\r\n __typename\r\n ...TimelineFields\r\n }\r\n }\r\n }\r\n ${TimelineFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTimelineByIdsGQL extends Apollo.Query<\r\n FetchTimelineByIdsQuery,\r\n FetchTimelineByIdsQueryVariables\r\n> {\r\n document = FetchTimelineByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTimelineItemByIdDocument = gql`\r\n query FetchTimelineItemById($id: ID!) {\r\n timelineItem: entities {\r\n byId(id: $id, type: TimelineItem) {\r\n __typename\r\n ...TimelineItemFields\r\n }\r\n }\r\n }\r\n ${TimelineItemFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTimelineItemByIdGQL extends Apollo.Query<\r\n FetchTimelineItemByIdQuery,\r\n FetchTimelineItemByIdQueryVariables\r\n> {\r\n document = FetchTimelineItemByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTimelineItemByIdsDocument = gql`\r\n query FetchTimelineItemByIds($ids: [ID!]!) {\r\n timelineItem: entities {\r\n byIds(ids: $ids, type: TimelineItem) {\r\n __typename\r\n ...TimelineItemFields\r\n }\r\n }\r\n }\r\n ${TimelineItemFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTimelineItemByIdsGQL extends Apollo.Query<\r\n FetchTimelineItemByIdsQuery,\r\n FetchTimelineItemByIdsQueryVariables\r\n> {\r\n document = FetchTimelineItemByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTimestampByIdDocument = gql`\r\n query FetchTimestampById($id: ID!) {\r\n timestamp: entities {\r\n byId(id: $id, type: Timestamp) {\r\n __typename\r\n ...TimestampFields\r\n }\r\n }\r\n }\r\n ${TimestampFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTimestampByIdGQL extends Apollo.Query<\r\n FetchTimestampByIdQuery,\r\n FetchTimestampByIdQueryVariables\r\n> {\r\n document = FetchTimestampByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTimestampByIdsDocument = gql`\r\n query FetchTimestampByIds($ids: [ID!]!) {\r\n timestamp: entities {\r\n byIds(ids: $ids, type: Timestamp) {\r\n __typename\r\n ...TimestampFields\r\n }\r\n }\r\n }\r\n ${TimestampFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTimestampByIdsGQL extends Apollo.Query<\r\n FetchTimestampByIdsQuery,\r\n FetchTimestampByIdsQueryVariables\r\n> {\r\n document = FetchTimestampByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTimestampTypeByIdDocument = gql`\r\n query FetchTimestampTypeById($id: ID!) {\r\n timestampType: entities {\r\n byId(id: $id, type: TimestampType) {\r\n __typename\r\n ...TimestampTypeFields\r\n }\r\n }\r\n }\r\n ${TimestampTypeFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTimestampTypeByIdGQL extends Apollo.Query<\r\n FetchTimestampTypeByIdQuery,\r\n FetchTimestampTypeByIdQueryVariables\r\n> {\r\n document = FetchTimestampTypeByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTimestampTypeByIdsDocument = gql`\r\n query FetchTimestampTypeByIds($ids: [ID!]!) {\r\n timestampType: entities {\r\n byIds(ids: $ids, type: TimestampType) {\r\n __typename\r\n ...TimestampTypeFields\r\n }\r\n }\r\n }\r\n ${TimestampTypeFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTimestampTypeByIdsGQL extends Apollo.Query<\r\n FetchTimestampTypeByIdsQuery,\r\n FetchTimestampTypeByIdsQueryVariables\r\n> {\r\n document = FetchTimestampTypeByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTrackedMessageByIdDocument = gql`\r\n query FetchTrackedMessageById($id: ID!) {\r\n trackedMessage: entities {\r\n byId(id: $id, type: TrackedMessage) {\r\n __typename\r\n ...TrackedMessageFields\r\n }\r\n }\r\n }\r\n ${TrackedMessageFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTrackedMessageByIdGQL extends Apollo.Query<\r\n FetchTrackedMessageByIdQuery,\r\n FetchTrackedMessageByIdQueryVariables\r\n> {\r\n document = FetchTrackedMessageByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTrackedMessageByIdsDocument = gql`\r\n query FetchTrackedMessageByIds($ids: [ID!]!) {\r\n trackedMessage: entities {\r\n byIds(ids: $ids, type: TrackedMessage) {\r\n __typename\r\n ...TrackedMessageFields\r\n }\r\n }\r\n }\r\n ${TrackedMessageFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTrackedMessageByIdsGQL extends Apollo.Query<\r\n FetchTrackedMessageByIdsQuery,\r\n FetchTrackedMessageByIdsQueryVariables\r\n> {\r\n document = FetchTrackedMessageByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTransferReasonByIdDocument = gql`\r\n query FetchTransferReasonById($id: ID!) {\r\n transferReason: entities {\r\n byId(id: $id, type: TransferReason) {\r\n __typename\r\n ...TransferReasonFields\r\n }\r\n }\r\n }\r\n ${TransferReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTransferReasonByIdGQL extends Apollo.Query<\r\n FetchTransferReasonByIdQuery,\r\n FetchTransferReasonByIdQueryVariables\r\n> {\r\n document = FetchTransferReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTransferReasonByIdsDocument = gql`\r\n query FetchTransferReasonByIds($ids: [ID!]!) {\r\n transferReason: entities {\r\n byIds(ids: $ids, type: TransferReason) {\r\n __typename\r\n ...TransferReasonFields\r\n }\r\n }\r\n }\r\n ${TransferReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTransferReasonByIdsGQL extends Apollo.Query<\r\n FetchTransferReasonByIdsQuery,\r\n FetchTransferReasonByIdsQueryVariables\r\n> {\r\n document = FetchTransferReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTransportOfferByIdDocument = gql`\r\n query FetchTransportOfferById($id: ID!) {\r\n transportOffer: entities {\r\n byId(id: $id, type: TransportOffer) {\r\n __typename\r\n ...TransportOfferFields\r\n }\r\n }\r\n }\r\n ${TransportOfferFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTransportOfferByIdGQL extends Apollo.Query<\r\n FetchTransportOfferByIdQuery,\r\n FetchTransportOfferByIdQueryVariables\r\n> {\r\n document = FetchTransportOfferByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTransportOfferByIdsDocument = gql`\r\n query FetchTransportOfferByIds($ids: [ID!]!) {\r\n transportOffer: entities {\r\n byIds(ids: $ids, type: TransportOffer) {\r\n __typename\r\n ...TransportOfferFields\r\n }\r\n }\r\n }\r\n ${TransportOfferFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTransportOfferByIdsGQL extends Apollo.Query<\r\n FetchTransportOfferByIdsQuery,\r\n FetchTransportOfferByIdsQueryVariables\r\n> {\r\n document = FetchTransportOfferByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTransportOfferOptionByIdDocument = gql`\r\n query FetchTransportOfferOptionById($id: ID!) {\r\n transportOfferOption: entities {\r\n byId(id: $id, type: TransportOfferOption) {\r\n __typename\r\n ...TransportOfferOptionFields\r\n }\r\n }\r\n }\r\n ${TransportOfferOptionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTransportOfferOptionByIdGQL extends Apollo.Query<\r\n FetchTransportOfferOptionByIdQuery,\r\n FetchTransportOfferOptionByIdQueryVariables\r\n> {\r\n document = FetchTransportOfferOptionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTransportOfferOptionByIdsDocument = gql`\r\n query FetchTransportOfferOptionByIds($ids: [ID!]!) {\r\n transportOfferOption: entities {\r\n byIds(ids: $ids, type: TransportOfferOption) {\r\n __typename\r\n ...TransportOfferOptionFields\r\n }\r\n }\r\n }\r\n ${TransportOfferOptionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTransportOfferOptionByIdsGQL extends Apollo.Query<\r\n FetchTransportOfferOptionByIdsQuery,\r\n FetchTransportOfferOptionByIdsQueryVariables\r\n> {\r\n document = FetchTransportOfferOptionByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTransportReasonByIdDocument = gql`\r\n query FetchTransportReasonById($id: ID!) {\r\n transportReason: entities {\r\n byId(id: $id, type: TransportReason) {\r\n __typename\r\n ...TransportReasonFields\r\n }\r\n }\r\n }\r\n ${TransportReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTransportReasonByIdGQL extends Apollo.Query<\r\n FetchTransportReasonByIdQuery,\r\n FetchTransportReasonByIdQueryVariables\r\n> {\r\n document = FetchTransportReasonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTransportReasonByIdsDocument = gql`\r\n query FetchTransportReasonByIds($ids: [ID!]!) {\r\n transportReason: entities {\r\n byIds(ids: $ids, type: TransportReason) {\r\n __typename\r\n ...TransportReasonFields\r\n }\r\n }\r\n }\r\n ${TransportReasonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTransportReasonByIdsGQL extends Apollo.Query<\r\n FetchTransportReasonByIdsQuery,\r\n FetchTransportReasonByIdsQueryVariables\r\n> {\r\n document = FetchTransportReasonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTripByIdDocument = gql`\r\n query FetchTripById($id: ID!) {\r\n trip: entities {\r\n byId(id: $id, type: Trip) {\r\n __typename\r\n ...TripFields\r\n }\r\n }\r\n }\r\n ${TripFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTripByIdGQL extends Apollo.Query<\r\n FetchTripByIdQuery,\r\n FetchTripByIdQueryVariables\r\n> {\r\n document = FetchTripByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTripByIdsDocument = gql`\r\n query FetchTripByIds($ids: [ID!]!) {\r\n trip: entities {\r\n byIds(ids: $ids, type: Trip) {\r\n __typename\r\n ...TripFields\r\n }\r\n }\r\n }\r\n ${TripFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTripByIdsGQL extends Apollo.Query<\r\n FetchTripByIdsQuery,\r\n FetchTripByIdsQueryVariables\r\n> {\r\n document = FetchTripByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTripLegByIdDocument = gql`\r\n query FetchTripLegById($id: ID!) {\r\n tripLeg: entities {\r\n byId(id: $id, type: TripLeg) {\r\n __typename\r\n ...TripLegFields\r\n }\r\n }\r\n }\r\n ${TripLegFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTripLegByIdGQL extends Apollo.Query<\r\n FetchTripLegByIdQuery,\r\n FetchTripLegByIdQueryVariables\r\n> {\r\n document = FetchTripLegByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTripLegByIdsDocument = gql`\r\n query FetchTripLegByIds($ids: [ID!]!) {\r\n tripLeg: entities {\r\n byIds(ids: $ids, type: TripLeg) {\r\n __typename\r\n ...TripLegFields\r\n }\r\n }\r\n }\r\n ${TripLegFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTripLegByIdsGQL extends Apollo.Query<\r\n FetchTripLegByIdsQuery,\r\n FetchTripLegByIdsQueryVariables\r\n> {\r\n document = FetchTripLegByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTripPassengerByIdDocument = gql`\r\n query FetchTripPassengerById($id: ID!) {\r\n tripPassenger: entities {\r\n byId(id: $id, type: TripPassenger) {\r\n __typename\r\n ...TripPassengerFields\r\n }\r\n }\r\n }\r\n ${TripPassengerFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTripPassengerByIdGQL extends Apollo.Query<\r\n FetchTripPassengerByIdQuery,\r\n FetchTripPassengerByIdQueryVariables\r\n> {\r\n document = FetchTripPassengerByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTripPassengerByIdsDocument = gql`\r\n query FetchTripPassengerByIds($ids: [ID!]!) {\r\n tripPassenger: entities {\r\n byIds(ids: $ids, type: TripPassenger) {\r\n __typename\r\n ...TripPassengerFields\r\n }\r\n }\r\n }\r\n ${TripPassengerFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTripPassengerByIdsGQL extends Apollo.Query<\r\n FetchTripPassengerByIdsQuery,\r\n FetchTripPassengerByIdsQueryVariables\r\n> {\r\n document = FetchTripPassengerByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitActivationRuleByIdDocument = gql`\r\n query FetchUnitActivationRuleById($id: ID!) {\r\n unitActivationRule: entities {\r\n byId(id: $id, type: UnitActivationRule) {\r\n __typename\r\n ...UnitActivationRuleFields\r\n }\r\n }\r\n }\r\n ${UnitActivationRuleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitActivationRuleByIdGQL extends Apollo.Query<\r\n FetchUnitActivationRuleByIdQuery,\r\n FetchUnitActivationRuleByIdQueryVariables\r\n> {\r\n document = FetchUnitActivationRuleByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitActivationRuleByIdsDocument = gql`\r\n query FetchUnitActivationRuleByIds($ids: [ID!]!) {\r\n unitActivationRule: entities {\r\n byIds(ids: $ids, type: UnitActivationRule) {\r\n __typename\r\n ...UnitActivationRuleFields\r\n }\r\n }\r\n }\r\n ${UnitActivationRuleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitActivationRuleByIdsGQL extends Apollo.Query<\r\n FetchUnitActivationRuleByIdsQuery,\r\n FetchUnitActivationRuleByIdsQueryVariables\r\n> {\r\n document = FetchUnitActivationRuleByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitEMSystemMappingByIdDocument = gql`\r\n query FetchUnitEMSystemMappingById($id: ID!) {\r\n unitEMSystemMapping: entities {\r\n byId(id: $id, type: UnitEMSystemMapping) {\r\n __typename\r\n ...UnitEMSystemMappingFields\r\n }\r\n }\r\n }\r\n ${UnitEMSystemMappingFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitEMSystemMappingByIdGQL extends Apollo.Query<\r\n FetchUnitEMSystemMappingByIdQuery,\r\n FetchUnitEMSystemMappingByIdQueryVariables\r\n> {\r\n document = FetchUnitEMSystemMappingByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitEMSystemMappingByIdsDocument = gql`\r\n query FetchUnitEMSystemMappingByIds($ids: [ID!]!) {\r\n unitEMSystemMapping: entities {\r\n byIds(ids: $ids, type: UnitEMSystemMapping) {\r\n __typename\r\n ...UnitEMSystemMappingFields\r\n }\r\n }\r\n }\r\n ${UnitEMSystemMappingFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitEMSystemMappingByIdsGQL extends Apollo.Query<\r\n FetchUnitEMSystemMappingByIdsQuery,\r\n FetchUnitEMSystemMappingByIdsQueryVariables\r\n> {\r\n document = FetchUnitEMSystemMappingByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitByIdDocument = gql`\r\n query FetchUnitById($id: ID!) {\r\n unit: entities {\r\n byId(id: $id, type: Unit) {\r\n __typename\r\n ...UnitFields\r\n }\r\n }\r\n }\r\n ${UnitFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitByIdGQL extends Apollo.Query<\r\n FetchUnitByIdQuery,\r\n FetchUnitByIdQueryVariables\r\n> {\r\n document = FetchUnitByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitByIdsDocument = gql`\r\n query FetchUnitByIds($ids: [ID!]!) {\r\n unit: entities {\r\n byIds(ids: $ids, type: Unit) {\r\n __typename\r\n ...UnitFields\r\n }\r\n }\r\n }\r\n ${UnitFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitByIdsGQL extends Apollo.Query<\r\n FetchUnitByIdsQuery,\r\n FetchUnitByIdsQueryVariables\r\n> {\r\n document = FetchUnitByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitNoteByIdDocument = gql`\r\n query FetchUnitNoteById($id: ID!) {\r\n unitNote: entities {\r\n byId(id: $id, type: UnitNote) {\r\n __typename\r\n ...UnitNoteFields\r\n }\r\n }\r\n }\r\n ${UnitNoteFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitNoteByIdGQL extends Apollo.Query<\r\n FetchUnitNoteByIdQuery,\r\n FetchUnitNoteByIdQueryVariables\r\n> {\r\n document = FetchUnitNoteByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitNoteByIdsDocument = gql`\r\n query FetchUnitNoteByIds($ids: [ID!]!) {\r\n unitNote: entities {\r\n byIds(ids: $ids, type: UnitNote) {\r\n __typename\r\n ...UnitNoteFields\r\n }\r\n }\r\n }\r\n ${UnitNoteFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitNoteByIdsGQL extends Apollo.Query<\r\n FetchUnitNoteByIdsQuery,\r\n FetchUnitNoteByIdsQueryVariables\r\n> {\r\n document = FetchUnitNoteByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitPositionByIdDocument = gql`\r\n query FetchUnitPositionById($id: ID!) {\r\n unitPosition: entities {\r\n byId(id: $id, type: UnitPosition) {\r\n __typename\r\n ...UnitPositionFields\r\n }\r\n }\r\n }\r\n ${UnitPositionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitPositionByIdGQL extends Apollo.Query<\r\n FetchUnitPositionByIdQuery,\r\n FetchUnitPositionByIdQueryVariables\r\n> {\r\n document = FetchUnitPositionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitPositionByIdsDocument = gql`\r\n query FetchUnitPositionByIds($ids: [ID!]!) {\r\n unitPosition: entities {\r\n byIds(ids: $ids, type: UnitPosition) {\r\n __typename\r\n ...UnitPositionFields\r\n }\r\n }\r\n }\r\n ${UnitPositionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitPositionByIdsGQL extends Apollo.Query<\r\n FetchUnitPositionByIdsQuery,\r\n FetchUnitPositionByIdsQueryVariables\r\n> {\r\n document = FetchUnitPositionByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitShiftByIdDocument = gql`\r\n query FetchUnitShiftById($id: ID!) {\r\n unitShift: entities {\r\n byId(id: $id, type: UnitShift) {\r\n __typename\r\n ...UnitShiftFields\r\n }\r\n }\r\n }\r\n ${UnitShiftFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitShiftByIdGQL extends Apollo.Query<\r\n FetchUnitShiftByIdQuery,\r\n FetchUnitShiftByIdQueryVariables\r\n> {\r\n document = FetchUnitShiftByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitShiftByIdsDocument = gql`\r\n query FetchUnitShiftByIds($ids: [ID!]!) {\r\n unitShift: entities {\r\n byIds(ids: $ids, type: UnitShift) {\r\n __typename\r\n ...UnitShiftFields\r\n }\r\n }\r\n }\r\n ${UnitShiftFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitShiftByIdsGQL extends Apollo.Query<\r\n FetchUnitShiftByIdsQuery,\r\n FetchUnitShiftByIdsQueryVariables\r\n> {\r\n document = FetchUnitShiftByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitStatusHistoryEntryByIdDocument = gql`\r\n query FetchUnitStatusHistoryEntryById($id: ID!) {\r\n unitStatusHistoryEntry: entities {\r\n byId(id: $id, type: UnitStatusHistoryEntry) {\r\n __typename\r\n ...UnitStatusHistoryEntryFields\r\n }\r\n }\r\n }\r\n ${UnitStatusHistoryEntryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitStatusHistoryEntryByIdGQL extends Apollo.Query<\r\n FetchUnitStatusHistoryEntryByIdQuery,\r\n FetchUnitStatusHistoryEntryByIdQueryVariables\r\n> {\r\n document = FetchUnitStatusHistoryEntryByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitStatusHistoryEntryByIdsDocument = gql`\r\n query FetchUnitStatusHistoryEntryByIds($ids: [ID!]!) {\r\n unitStatusHistoryEntry: entities {\r\n byIds(ids: $ids, type: UnitStatusHistoryEntry) {\r\n __typename\r\n ...UnitStatusHistoryEntryFields\r\n }\r\n }\r\n }\r\n ${UnitStatusHistoryEntryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitStatusHistoryEntryByIdsGQL extends Apollo.Query<\r\n FetchUnitStatusHistoryEntryByIdsQuery,\r\n FetchUnitStatusHistoryEntryByIdsQueryVariables\r\n> {\r\n document = FetchUnitStatusHistoryEntryByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitSummaryByIdDocument = gql`\r\n query FetchUnitSummaryById($id: ID!) {\r\n unitSummary: entities {\r\n byId(id: $id, type: UnitSummary) {\r\n __typename\r\n ...UnitSummaryFields\r\n }\r\n }\r\n }\r\n ${UnitSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitSummaryByIdGQL extends Apollo.Query<\r\n FetchUnitSummaryByIdQuery,\r\n FetchUnitSummaryByIdQueryVariables\r\n> {\r\n document = FetchUnitSummaryByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchUnitSummaryByIdsDocument = gql`\r\n query FetchUnitSummaryByIds($ids: [ID!]!) {\r\n unitSummary: entities {\r\n byIds(ids: $ids, type: UnitSummary) {\r\n __typename\r\n ...UnitSummaryFields\r\n }\r\n }\r\n }\r\n ${UnitSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchUnitSummaryByIdsGQL extends Apollo.Query<\r\n FetchUnitSummaryByIdsQuery,\r\n FetchUnitSummaryByIdsQueryVariables\r\n> {\r\n document = FetchUnitSummaryByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleDispositionByIdDocument = gql`\r\n query FetchVehicleDispositionById($id: ID!) {\r\n vehicleDisposition: entities {\r\n byId(id: $id, type: VehicleDisposition) {\r\n __typename\r\n ...VehicleDispositionFields\r\n }\r\n }\r\n }\r\n ${VehicleDispositionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleDispositionByIdGQL extends Apollo.Query<\r\n FetchVehicleDispositionByIdQuery,\r\n FetchVehicleDispositionByIdQueryVariables\r\n> {\r\n document = FetchVehicleDispositionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleDispositionByIdsDocument = gql`\r\n query FetchVehicleDispositionByIds($ids: [ID!]!) {\r\n vehicleDisposition: entities {\r\n byIds(ids: $ids, type: VehicleDisposition) {\r\n __typename\r\n ...VehicleDispositionFields\r\n }\r\n }\r\n }\r\n ${VehicleDispositionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleDispositionByIdsGQL extends Apollo.Query<\r\n FetchVehicleDispositionByIdsQuery,\r\n FetchVehicleDispositionByIdsQueryVariables\r\n> {\r\n document = FetchVehicleDispositionByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehiclePositionSummaryByIdDocument = gql`\r\n query FetchVehiclePositionSummaryById($id: ID!) {\r\n vehiclePositionSummary: entities {\r\n byId(id: $id, type: VehiclePositionSummary) {\r\n __typename\r\n ...VehiclePositionSummaryFields\r\n }\r\n }\r\n }\r\n ${VehiclePositionSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehiclePositionSummaryByIdGQL extends Apollo.Query<\r\n FetchVehiclePositionSummaryByIdQuery,\r\n FetchVehiclePositionSummaryByIdQueryVariables\r\n> {\r\n document = FetchVehiclePositionSummaryByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehiclePositionSummaryByIdsDocument = gql`\r\n query FetchVehiclePositionSummaryByIds($ids: [ID!]!) {\r\n vehiclePositionSummary: entities {\r\n byIds(ids: $ids, type: VehiclePositionSummary) {\r\n __typename\r\n ...VehiclePositionSummaryFields\r\n }\r\n }\r\n }\r\n ${VehiclePositionSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehiclePositionSummaryByIdsGQL extends Apollo.Query<\r\n FetchVehiclePositionSummaryByIdsQuery,\r\n FetchVehiclePositionSummaryByIdsQueryVariables\r\n> {\r\n document = FetchVehiclePositionSummaryByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleSummaryByIdDocument = gql`\r\n query FetchVehicleSummaryById($id: ID!) {\r\n vehicleSummary: entities {\r\n byId(id: $id, type: VehicleSummary) {\r\n __typename\r\n ...VehicleSummaryFields\r\n }\r\n }\r\n }\r\n ${VehicleSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleSummaryByIdGQL extends Apollo.Query<\r\n FetchVehicleSummaryByIdQuery,\r\n FetchVehicleSummaryByIdQueryVariables\r\n> {\r\n document = FetchVehicleSummaryByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleSummaryByIdsDocument = gql`\r\n query FetchVehicleSummaryByIds($ids: [ID!]!) {\r\n vehicleSummary: entities {\r\n byIds(ids: $ids, type: VehicleSummary) {\r\n __typename\r\n ...VehicleSummaryFields\r\n }\r\n }\r\n }\r\n ${VehicleSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleSummaryByIdsGQL extends Apollo.Query<\r\n FetchVehicleSummaryByIdsQuery,\r\n FetchVehicleSummaryByIdsQueryVariables\r\n> {\r\n document = FetchVehicleSummaryByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchWaypointByIdDocument = gql`\r\n query FetchWaypointById($id: ID!) {\r\n waypoint: entities {\r\n byId(id: $id, type: Waypoint) {\r\n __typename\r\n ...WaypointFields\r\n }\r\n }\r\n }\r\n ${WaypointFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchWaypointByIdGQL extends Apollo.Query<\r\n FetchWaypointByIdQuery,\r\n FetchWaypointByIdQueryVariables\r\n> {\r\n document = FetchWaypointByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchWaypointByIdsDocument = gql`\r\n query FetchWaypointByIds($ids: [ID!]!) {\r\n waypoint: entities {\r\n byIds(ids: $ids, type: Waypoint) {\r\n __typename\r\n ...WaypointFields\r\n }\r\n }\r\n }\r\n ${WaypointFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchWaypointByIdsGQL extends Apollo.Query<\r\n FetchWaypointByIdsQuery,\r\n FetchWaypointByIdsQueryVariables\r\n> {\r\n document = FetchWaypointByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchWebOrderLogByIdDocument = gql`\r\n query FetchWebOrderLogById($id: ID!) {\r\n webOrderLog: entities {\r\n byId(id: $id, type: WebOrderLog) {\r\n __typename\r\n ...WebOrderLogFields\r\n }\r\n }\r\n }\r\n ${WebOrderLogFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchWebOrderLogByIdGQL extends Apollo.Query<\r\n FetchWebOrderLogByIdQuery,\r\n FetchWebOrderLogByIdQueryVariables\r\n> {\r\n document = FetchWebOrderLogByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchWebOrderLogByIdsDocument = gql`\r\n query FetchWebOrderLogByIds($ids: [ID!]!) {\r\n webOrderLog: entities {\r\n byIds(ids: $ids, type: WebOrderLog) {\r\n __typename\r\n ...WebOrderLogFields\r\n }\r\n }\r\n }\r\n ${WebOrderLogFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchWebOrderLogByIdsGQL extends Apollo.Query<\r\n FetchWebOrderLogByIdsQuery,\r\n FetchWebOrderLogByIdsQueryVariables\r\n> {\r\n document = FetchWebOrderLogByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchAccessibleItemByIdDocument = gql`\r\n query FetchAccessibleItemById($id: ID!) {\r\n accessibleItem: entities {\r\n byId(id: $id, type: AccessibleItem) {\r\n __typename\r\n ...AccessibleItemFields\r\n }\r\n }\r\n }\r\n ${AccessibleItemFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchAccessibleItemByIdGQL extends Apollo.Query<\r\n FetchAccessibleItemByIdQuery,\r\n FetchAccessibleItemByIdQueryVariables\r\n> {\r\n document = FetchAccessibleItemByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchAccessibleItemByIdsDocument = gql`\r\n query FetchAccessibleItemByIds($ids: [ID!]!) {\r\n accessibleItem: entities {\r\n byIds(ids: $ids, type: AccessibleItem) {\r\n __typename\r\n ...AccessibleItemFields\r\n }\r\n }\r\n }\r\n ${AccessibleItemFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchAccessibleItemByIdsGQL extends Apollo.Query<\r\n FetchAccessibleItemByIdsQuery,\r\n FetchAccessibleItemByIdsQueryVariables\r\n> {\r\n document = FetchAccessibleItemByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchAgencyByIdDocument = gql`\r\n query FetchAgencyById($id: ID!) {\r\n agency: entities {\r\n byId(id: $id, type: Agency) {\r\n __typename\r\n ...AgencyFields\r\n }\r\n }\r\n }\r\n ${AgencyFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchAgencyByIdGQL extends Apollo.Query<\r\n FetchAgencyByIdQuery,\r\n FetchAgencyByIdQueryVariables\r\n> {\r\n document = FetchAgencyByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchAgencyByIdsDocument = gql`\r\n query FetchAgencyByIds($ids: [ID!]!) {\r\n agency: entities {\r\n byIds(ids: $ids, type: Agency) {\r\n __typename\r\n ...AgencyFields\r\n }\r\n }\r\n }\r\n ${AgencyFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchAgencyByIdsGQL extends Apollo.Query<\r\n FetchAgencyByIdsQuery,\r\n FetchAgencyByIdsQueryVariables\r\n> {\r\n document = FetchAgencyByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchAgencyLocationByIdDocument = gql`\r\n query FetchAgencyLocationById($id: ID!) {\r\n agencyLocation: entities {\r\n byId(id: $id, type: AgencyLocation) {\r\n __typename\r\n ...AgencyLocationFields\r\n }\r\n }\r\n }\r\n ${AgencyLocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchAgencyLocationByIdGQL extends Apollo.Query<\r\n FetchAgencyLocationByIdQuery,\r\n FetchAgencyLocationByIdQueryVariables\r\n> {\r\n document = FetchAgencyLocationByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchAgencyLocationByIdsDocument = gql`\r\n query FetchAgencyLocationByIds($ids: [ID!]!) {\r\n agencyLocation: entities {\r\n byIds(ids: $ids, type: AgencyLocation) {\r\n __typename\r\n ...AgencyLocationFields\r\n }\r\n }\r\n }\r\n ${AgencyLocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchAgencyLocationByIdsGQL extends Apollo.Query<\r\n FetchAgencyLocationByIdsQuery,\r\n FetchAgencyLocationByIdsQueryVariables\r\n> {\r\n document = FetchAgencyLocationByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchAirportByIdDocument = gql`\r\n query FetchAirportById($id: ID!) {\r\n airport: entities {\r\n byId(id: $id, type: Airport) {\r\n __typename\r\n ...AirportFields\r\n }\r\n }\r\n }\r\n ${AirportFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchAirportByIdGQL extends Apollo.Query<\r\n FetchAirportByIdQuery,\r\n FetchAirportByIdQueryVariables\r\n> {\r\n document = FetchAirportByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchAirportByIdsDocument = gql`\r\n query FetchAirportByIds($ids: [ID!]!) {\r\n airport: entities {\r\n byIds(ids: $ids, type: Airport) {\r\n __typename\r\n ...AirportFields\r\n }\r\n }\r\n }\r\n ${AirportFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchAirportByIdsGQL extends Apollo.Query<\r\n FetchAirportByIdsQuery,\r\n FetchAirportByIdsQueryVariables\r\n> {\r\n document = FetchAirportByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchArchiveLogByIdDocument = gql`\r\n query FetchArchiveLogById($id: ID!) {\r\n archiveLog: entities {\r\n byId(id: $id, type: ArchiveLog) {\r\n __typename\r\n ...ArchiveLogFields\r\n }\r\n }\r\n }\r\n ${ArchiveLogFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchArchiveLogByIdGQL extends Apollo.Query<\r\n FetchArchiveLogByIdQuery,\r\n FetchArchiveLogByIdQueryVariables\r\n> {\r\n document = FetchArchiveLogByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchArchiveLogByIdsDocument = gql`\r\n query FetchArchiveLogByIds($ids: [ID!]!) {\r\n archiveLog: entities {\r\n byIds(ids: $ids, type: ArchiveLog) {\r\n __typename\r\n ...ArchiveLogFields\r\n }\r\n }\r\n }\r\n ${ArchiveLogFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchArchiveLogByIdsGQL extends Apollo.Query<\r\n FetchArchiveLogByIdsQuery,\r\n FetchArchiveLogByIdsQueryVariables\r\n> {\r\n document = FetchArchiveLogByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchBaseControlZoneByIdDocument = gql`\r\n query FetchBaseControlZoneById($id: ID!) {\r\n baseControlZone: entities {\r\n byId(id: $id, type: BaseControlZone) {\r\n __typename\r\n ...BaseControlZoneFields\r\n }\r\n }\r\n }\r\n ${BaseControlZoneFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchBaseControlZoneByIdGQL extends Apollo.Query<\r\n FetchBaseControlZoneByIdQuery,\r\n FetchBaseControlZoneByIdQueryVariables\r\n> {\r\n document = FetchBaseControlZoneByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchBaseControlZoneByIdsDocument = gql`\r\n query FetchBaseControlZoneByIds($ids: [ID!]!) {\r\n baseControlZone: entities {\r\n byIds(ids: $ids, type: BaseControlZone) {\r\n __typename\r\n ...BaseControlZoneFields\r\n }\r\n }\r\n }\r\n ${BaseControlZoneFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchBaseControlZoneByIdsGQL extends Apollo.Query<\r\n FetchBaseControlZoneByIdsQuery,\r\n FetchBaseControlZoneByIdsQueryVariables\r\n> {\r\n document = FetchBaseControlZoneByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchBaseByIdDocument = gql`\r\n query FetchBaseById($id: ID!) {\r\n base: entities {\r\n byId(id: $id, type: Base) {\r\n __typename\r\n ...BaseFields\r\n }\r\n }\r\n }\r\n ${BaseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchBaseByIdGQL extends Apollo.Query<\r\n FetchBaseByIdQuery,\r\n FetchBaseByIdQueryVariables\r\n> {\r\n document = FetchBaseByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchBaseByIdsDocument = gql`\r\n query FetchBaseByIds($ids: [ID!]!) {\r\n base: entities {\r\n byIds(ids: $ids, type: Base) {\r\n __typename\r\n ...BaseFields\r\n }\r\n }\r\n }\r\n ${BaseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchBaseByIdsGQL extends Apollo.Query<\r\n FetchBaseByIdsQuery,\r\n FetchBaseByIdsQueryVariables\r\n> {\r\n document = FetchBaseByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchBaseMedicalControlContactByIdDocument = gql`\r\n query FetchBaseMedicalControlContactById($id: ID!) {\r\n baseMedicalControlContact: entities {\r\n byId(id: $id, type: BaseMedicalControlContact) {\r\n __typename\r\n ...BaseMedicalControlContactFields\r\n }\r\n }\r\n }\r\n ${BaseMedicalControlContactFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchBaseMedicalControlContactByIdGQL extends Apollo.Query<\r\n FetchBaseMedicalControlContactByIdQuery,\r\n FetchBaseMedicalControlContactByIdQueryVariables\r\n> {\r\n document = FetchBaseMedicalControlContactByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchBaseMedicalControlContactByIdsDocument = gql`\r\n query FetchBaseMedicalControlContactByIds($ids: [ID!]!) {\r\n baseMedicalControlContact: entities {\r\n byIds(ids: $ids, type: BaseMedicalControlContact) {\r\n __typename\r\n ...BaseMedicalControlContactFields\r\n }\r\n }\r\n }\r\n ${BaseMedicalControlContactFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchBaseMedicalControlContactByIdsGQL extends Apollo.Query<\r\n FetchBaseMedicalControlContactByIdsQuery,\r\n FetchBaseMedicalControlContactByIdsQueryVariables\r\n> {\r\n document = FetchBaseMedicalControlContactByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchBaseMedicalControlContactStateByIdDocument = gql`\r\n query FetchBaseMedicalControlContactStateById($id: ID!) {\r\n baseMedicalControlContactState: entities {\r\n byId(id: $id, type: BaseMedicalControlContactState) {\r\n __typename\r\n ...BaseMedicalControlContactStateFields\r\n }\r\n }\r\n }\r\n ${BaseMedicalControlContactStateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchBaseMedicalControlContactStateByIdGQL extends Apollo.Query<\r\n FetchBaseMedicalControlContactStateByIdQuery,\r\n FetchBaseMedicalControlContactStateByIdQueryVariables\r\n> {\r\n document = FetchBaseMedicalControlContactStateByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchBaseMedicalControlContactStateByIdsDocument = gql`\r\n query FetchBaseMedicalControlContactStateByIds($ids: [ID!]!) {\r\n baseMedicalControlContactState: entities {\r\n byIds(ids: $ids, type: BaseMedicalControlContactState) {\r\n __typename\r\n ...BaseMedicalControlContactStateFields\r\n }\r\n }\r\n }\r\n ${BaseMedicalControlContactStateFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchBaseMedicalControlContactStateByIdsGQL extends Apollo.Query<\r\n FetchBaseMedicalControlContactStateByIdsQuery,\r\n FetchBaseMedicalControlContactStateByIdsQueryVariables\r\n> {\r\n document = FetchBaseMedicalControlContactStateByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCapabilityByIdDocument = gql`\r\n query FetchCapabilityById($id: ID!) {\r\n capability: entities {\r\n byId(id: $id, type: Capability) {\r\n __typename\r\n ...CapabilityFields\r\n }\r\n }\r\n }\r\n ${CapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCapabilityByIdGQL extends Apollo.Query<\r\n FetchCapabilityByIdQuery,\r\n FetchCapabilityByIdQueryVariables\r\n> {\r\n document = FetchCapabilityByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCapabilityByIdsDocument = gql`\r\n query FetchCapabilityByIds($ids: [ID!]!) {\r\n capability: entities {\r\n byIds(ids: $ids, type: Capability) {\r\n __typename\r\n ...CapabilityFields\r\n }\r\n }\r\n }\r\n ${CapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCapabilityByIdsGQL extends Apollo.Query<\r\n FetchCapabilityByIdsQuery,\r\n FetchCapabilityByIdsQueryVariables\r\n> {\r\n document = FetchCapabilityByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCommunicationCenterByIdDocument = gql`\r\n query FetchCommunicationCenterById($id: ID!) {\r\n communicationCenter: entities {\r\n byId(id: $id, type: CommunicationCenter) {\r\n __typename\r\n ...CommunicationCenterFields\r\n }\r\n }\r\n }\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCommunicationCenterByIdGQL extends Apollo.Query<\r\n FetchCommunicationCenterByIdQuery,\r\n FetchCommunicationCenterByIdQueryVariables\r\n> {\r\n document = FetchCommunicationCenterByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCommunicationCenterByIdsDocument = gql`\r\n query FetchCommunicationCenterByIds($ids: [ID!]!) {\r\n communicationCenter: entities {\r\n byIds(ids: $ids, type: CommunicationCenter) {\r\n __typename\r\n ...CommunicationCenterFields\r\n }\r\n }\r\n }\r\n ${CommunicationCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCommunicationCenterByIdsGQL extends Apollo.Query<\r\n FetchCommunicationCenterByIdsQuery,\r\n FetchCommunicationCenterByIdsQueryVariables\r\n> {\r\n document = FetchCommunicationCenterByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCommunicationCenterTransportOfferOptionByIdDocument = gql`\r\n query FetchCommunicationCenterTransportOfferOptionById($id: ID!) {\r\n communicationCenterTransportOfferOption: entities {\r\n byId(id: $id, type: CommunicationCenterTransportOfferOption) {\r\n __typename\r\n ...CommunicationCenterTransportOfferOptionFields\r\n }\r\n }\r\n }\r\n ${CommunicationCenterTransportOfferOptionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCommunicationCenterTransportOfferOptionByIdGQL extends Apollo.Query<\r\n FetchCommunicationCenterTransportOfferOptionByIdQuery,\r\n FetchCommunicationCenterTransportOfferOptionByIdQueryVariables\r\n> {\r\n document = FetchCommunicationCenterTransportOfferOptionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCommunicationCenterTransportOfferOptionByIdsDocument = gql`\r\n query FetchCommunicationCenterTransportOfferOptionByIds($ids: [ID!]!) {\r\n communicationCenterTransportOfferOption: entities {\r\n byIds(ids: $ids, type: CommunicationCenterTransportOfferOption) {\r\n __typename\r\n ...CommunicationCenterTransportOfferOptionFields\r\n }\r\n }\r\n }\r\n ${CommunicationCenterTransportOfferOptionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCommunicationCenterTransportOfferOptionByIdsGQL extends Apollo.Query<\r\n FetchCommunicationCenterTransportOfferOptionByIdsQuery,\r\n FetchCommunicationCenterTransportOfferOptionByIdsQueryVariables\r\n> {\r\n document = FetchCommunicationCenterTransportOfferOptionByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCompanyByIdDocument = gql`\r\n query FetchCompanyById($id: ID!) {\r\n company: entities {\r\n byId(id: $id, type: Company) {\r\n __typename\r\n ...CompanyFields\r\n }\r\n }\r\n }\r\n ${CompanyFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCompanyByIdGQL extends Apollo.Query<\r\n FetchCompanyByIdQuery,\r\n FetchCompanyByIdQueryVariables\r\n> {\r\n document = FetchCompanyByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCompanyByIdsDocument = gql`\r\n query FetchCompanyByIds($ids: [ID!]!) {\r\n company: entities {\r\n byIds(ids: $ids, type: Company) {\r\n __typename\r\n ...CompanyFields\r\n }\r\n }\r\n }\r\n ${CompanyFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCompanyByIdsGQL extends Apollo.Query<\r\n FetchCompanyByIdsQuery,\r\n FetchCompanyByIdsQueryVariables\r\n> {\r\n document = FetchCompanyByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCompleteFlightInstanceByIdDocument = gql`\r\n query FetchCompleteFlightInstanceById($id: ID!) {\r\n completeFlightInstance: entities {\r\n byId(id: $id, type: CompleteFlightInstance) {\r\n __typename\r\n ...CompleteFlightInstanceFields\r\n }\r\n }\r\n }\r\n ${CompleteFlightInstanceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCompleteFlightInstanceByIdGQL extends Apollo.Query<\r\n FetchCompleteFlightInstanceByIdQuery,\r\n FetchCompleteFlightInstanceByIdQueryVariables\r\n> {\r\n document = FetchCompleteFlightInstanceByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCompleteFlightInstanceByIdsDocument = gql`\r\n query FetchCompleteFlightInstanceByIds($ids: [ID!]!) {\r\n completeFlightInstance: entities {\r\n byIds(ids: $ids, type: CompleteFlightInstance) {\r\n __typename\r\n ...CompleteFlightInstanceFields\r\n }\r\n }\r\n }\r\n ${CompleteFlightInstanceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCompleteFlightInstanceByIdsGQL extends Apollo.Query<\r\n FetchCompleteFlightInstanceByIdsQuery,\r\n FetchCompleteFlightInstanceByIdsQueryVariables\r\n> {\r\n document = FetchCompleteFlightInstanceByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchControlZoneByIdDocument = gql`\r\n query FetchControlZoneById($id: ID!) {\r\n controlZone: entities {\r\n byId(id: $id, type: ControlZone) {\r\n __typename\r\n ...ControlZoneFields\r\n }\r\n }\r\n }\r\n ${ControlZoneFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchControlZoneByIdGQL extends Apollo.Query<\r\n FetchControlZoneByIdQuery,\r\n FetchControlZoneByIdQueryVariables\r\n> {\r\n document = FetchControlZoneByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchControlZoneByIdsDocument = gql`\r\n query FetchControlZoneByIds($ids: [ID!]!) {\r\n controlZone: entities {\r\n byIds(ids: $ids, type: ControlZone) {\r\n __typename\r\n ...ControlZoneFields\r\n }\r\n }\r\n }\r\n ${ControlZoneFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchControlZoneByIdsGQL extends Apollo.Query<\r\n FetchControlZoneByIdsQuery,\r\n FetchControlZoneByIdsQueryVariables\r\n> {\r\n document = FetchControlZoneByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchDepartmentByIdDocument = gql`\r\n query FetchDepartmentById($id: ID!) {\r\n department: entities {\r\n byId(id: $id, type: Department) {\r\n __typename\r\n ...DepartmentFields\r\n }\r\n }\r\n }\r\n ${DepartmentFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchDepartmentByIdGQL extends Apollo.Query<\r\n FetchDepartmentByIdQuery,\r\n FetchDepartmentByIdQueryVariables\r\n> {\r\n document = FetchDepartmentByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchDepartmentByIdsDocument = gql`\r\n query FetchDepartmentByIds($ids: [ID!]!) {\r\n department: entities {\r\n byIds(ids: $ids, type: Department) {\r\n __typename\r\n ...DepartmentFields\r\n }\r\n }\r\n }\r\n ${DepartmentFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchDepartmentByIdsGQL extends Apollo.Query<\r\n FetchDepartmentByIdsQuery,\r\n FetchDepartmentByIdsQueryVariables\r\n> {\r\n document = FetchDepartmentByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchEntityCapabilityByIdDocument = gql`\r\n query FetchEntityCapabilityById($id: ID!) {\r\n entityCapability: entities {\r\n byId(id: $id, type: EntityCapability) {\r\n __typename\r\n ...EntityCapabilityFields\r\n }\r\n }\r\n }\r\n ${EntityCapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchEntityCapabilityByIdGQL extends Apollo.Query<\r\n FetchEntityCapabilityByIdQuery,\r\n FetchEntityCapabilityByIdQueryVariables\r\n> {\r\n document = FetchEntityCapabilityByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchEntityCapabilityByIdsDocument = gql`\r\n query FetchEntityCapabilityByIds($ids: [ID!]!) {\r\n entityCapability: entities {\r\n byIds(ids: $ids, type: EntityCapability) {\r\n __typename\r\n ...EntityCapabilityFields\r\n }\r\n }\r\n }\r\n ${EntityCapabilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchEntityCapabilityByIdsGQL extends Apollo.Query<\r\n FetchEntityCapabilityByIdsQuery,\r\n FetchEntityCapabilityByIdsQueryVariables\r\n> {\r\n document = FetchEntityCapabilityByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchExternalReferenceByIdDocument = gql`\r\n query FetchExternalReferenceById($id: ID!) {\r\n externalReference: entities {\r\n byId(id: $id, type: ExternalReference) {\r\n __typename\r\n ...ExternalReferenceFields\r\n }\r\n }\r\n }\r\n ${ExternalReferenceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchExternalReferenceByIdGQL extends Apollo.Query<\r\n FetchExternalReferenceByIdQuery,\r\n FetchExternalReferenceByIdQueryVariables\r\n> {\r\n document = FetchExternalReferenceByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchExternalReferenceByIdsDocument = gql`\r\n query FetchExternalReferenceByIds($ids: [ID!]!) {\r\n externalReference: entities {\r\n byIds(ids: $ids, type: ExternalReference) {\r\n __typename\r\n ...ExternalReferenceFields\r\n }\r\n }\r\n }\r\n ${ExternalReferenceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchExternalReferenceByIdsGQL extends Apollo.Query<\r\n FetchExternalReferenceByIdsQuery,\r\n FetchExternalReferenceByIdsQueryVariables\r\n> {\r\n document = FetchExternalReferenceByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchFboByIdDocument = gql`\r\n query FetchFboById($id: ID!) {\r\n fbo: entities {\r\n byId(id: $id, type: Fbo) {\r\n __typename\r\n ...FboFields\r\n }\r\n }\r\n }\r\n ${FboFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchFboByIdGQL extends Apollo.Query {\r\n document = FetchFboByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchFboByIdsDocument = gql`\r\n query FetchFboByIds($ids: [ID!]!) {\r\n fbo: entities {\r\n byIds(ids: $ids, type: Fbo) {\r\n __typename\r\n ...FboFields\r\n }\r\n }\r\n }\r\n ${FboFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchFboByIdsGQL extends Apollo.Query<\r\n FetchFboByIdsQuery,\r\n FetchFboByIdsQueryVariables\r\n> {\r\n document = FetchFboByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchFuelTankByIdDocument = gql`\r\n query FetchFuelTankById($id: ID!) {\r\n fuelTank: entities {\r\n byId(id: $id, type: FuelTank) {\r\n __typename\r\n ...FuelTankFields\r\n }\r\n }\r\n }\r\n ${FuelTankFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchFuelTankByIdGQL extends Apollo.Query<\r\n FetchFuelTankByIdQuery,\r\n FetchFuelTankByIdQueryVariables\r\n> {\r\n document = FetchFuelTankByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchFuelTankByIdsDocument = gql`\r\n query FetchFuelTankByIds($ids: [ID!]!) {\r\n fuelTank: entities {\r\n byIds(ids: $ids, type: FuelTank) {\r\n __typename\r\n ...FuelTankFields\r\n }\r\n }\r\n }\r\n ${FuelTankFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchFuelTankByIdsGQL extends Apollo.Query<\r\n FetchFuelTankByIdsQuery,\r\n FetchFuelTankByIdsQueryVariables\r\n> {\r\n document = FetchFuelTankByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchLocationByIdDocument = gql`\r\n query FetchLocationById($id: ID!) {\r\n location: entities {\r\n byId(id: $id, type: Location) {\r\n __typename\r\n ...LocationFields\r\n }\r\n }\r\n }\r\n ${LocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchLocationByIdGQL extends Apollo.Query<\r\n FetchLocationByIdQuery,\r\n FetchLocationByIdQueryVariables\r\n> {\r\n document = FetchLocationByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchLocationByIdsDocument = gql`\r\n query FetchLocationByIds($ids: [ID!]!) {\r\n location: entities {\r\n byIds(ids: $ids, type: Location) {\r\n __typename\r\n ...LocationFields\r\n }\r\n }\r\n }\r\n ${LocationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchLocationByIdsGQL extends Apollo.Query<\r\n FetchLocationByIdsQuery,\r\n FetchLocationByIdsQueryVariables\r\n> {\r\n document = FetchLocationByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMedicalFacilityContactByIdDocument = gql`\r\n query FetchMedicalFacilityContactById($id: ID!) {\r\n medicalFacilityContact: entities {\r\n byId(id: $id, type: MedicalFacilityContact) {\r\n __typename\r\n ...MedicalFacilityContactFields\r\n }\r\n }\r\n }\r\n ${MedicalFacilityContactFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMedicalFacilityContactByIdGQL extends Apollo.Query<\r\n FetchMedicalFacilityContactByIdQuery,\r\n FetchMedicalFacilityContactByIdQueryVariables\r\n> {\r\n document = FetchMedicalFacilityContactByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMedicalFacilityContactByIdsDocument = gql`\r\n query FetchMedicalFacilityContactByIds($ids: [ID!]!) {\r\n medicalFacilityContact: entities {\r\n byIds(ids: $ids, type: MedicalFacilityContact) {\r\n __typename\r\n ...MedicalFacilityContactFields\r\n }\r\n }\r\n }\r\n ${MedicalFacilityContactFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMedicalFacilityContactByIdsGQL extends Apollo.Query<\r\n FetchMedicalFacilityContactByIdsQuery,\r\n FetchMedicalFacilityContactByIdsQueryVariables\r\n> {\r\n document = FetchMedicalFacilityContactByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMedicalFacilityByIdDocument = gql`\r\n query FetchMedicalFacilityById($id: ID!) {\r\n medicalFacility: entities {\r\n byId(id: $id, type: MedicalFacility) {\r\n __typename\r\n ...MedicalFacilityFields\r\n }\r\n }\r\n }\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMedicalFacilityByIdGQL extends Apollo.Query<\r\n FetchMedicalFacilityByIdQuery,\r\n FetchMedicalFacilityByIdQueryVariables\r\n> {\r\n document = FetchMedicalFacilityByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMedicalFacilityByIdsDocument = gql`\r\n query FetchMedicalFacilityByIds($ids: [ID!]!) {\r\n medicalFacility: entities {\r\n byIds(ids: $ids, type: MedicalFacility) {\r\n __typename\r\n ...MedicalFacilityFields\r\n }\r\n }\r\n }\r\n ${MedicalFacilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMedicalFacilityByIdsGQL extends Apollo.Query<\r\n FetchMedicalFacilityByIdsQuery,\r\n FetchMedicalFacilityByIdsQueryVariables\r\n> {\r\n document = FetchMedicalFacilityByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMedicalFacilityPhysicianByIdDocument = gql`\r\n query FetchMedicalFacilityPhysicianById($id: ID!) {\r\n medicalFacilityPhysician: entities {\r\n byId(id: $id, type: MedicalFacilityPhysician) {\r\n __typename\r\n ...MedicalFacilityPhysicianFields\r\n }\r\n }\r\n }\r\n ${MedicalFacilityPhysicianFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMedicalFacilityPhysicianByIdGQL extends Apollo.Query<\r\n FetchMedicalFacilityPhysicianByIdQuery,\r\n FetchMedicalFacilityPhysicianByIdQueryVariables\r\n> {\r\n document = FetchMedicalFacilityPhysicianByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMedicalFacilityPhysicianByIdsDocument = gql`\r\n query FetchMedicalFacilityPhysicianByIds($ids: [ID!]!) {\r\n medicalFacilityPhysician: entities {\r\n byIds(ids: $ids, type: MedicalFacilityPhysician) {\r\n __typename\r\n ...MedicalFacilityPhysicianFields\r\n }\r\n }\r\n }\r\n ${MedicalFacilityPhysicianFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMedicalFacilityPhysicianByIdsGQL extends Apollo.Query<\r\n FetchMedicalFacilityPhysicianByIdsQuery,\r\n FetchMedicalFacilityPhysicianByIdsQueryVariables\r\n> {\r\n document = FetchMedicalFacilityPhysicianByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMedicalFacilityUnitByIdDocument = gql`\r\n query FetchMedicalFacilityUnitById($id: ID!) {\r\n medicalFacilityUnit: entities {\r\n byId(id: $id, type: MedicalFacilityUnit) {\r\n __typename\r\n ...MedicalFacilityUnitFields\r\n }\r\n }\r\n }\r\n ${MedicalFacilityUnitFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMedicalFacilityUnitByIdGQL extends Apollo.Query<\r\n FetchMedicalFacilityUnitByIdQuery,\r\n FetchMedicalFacilityUnitByIdQueryVariables\r\n> {\r\n document = FetchMedicalFacilityUnitByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMedicalFacilityUnitByIdsDocument = gql`\r\n query FetchMedicalFacilityUnitByIds($ids: [ID!]!) {\r\n medicalFacilityUnit: entities {\r\n byIds(ids: $ids, type: MedicalFacilityUnit) {\r\n __typename\r\n ...MedicalFacilityUnitFields\r\n }\r\n }\r\n }\r\n ${MedicalFacilityUnitFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMedicalFacilityUnitByIdsGQL extends Apollo.Query<\r\n FetchMedicalFacilityUnitByIdsQuery,\r\n FetchMedicalFacilityUnitByIdsQueryVariables\r\n> {\r\n document = FetchMedicalFacilityUnitByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMedicalUnitByIdDocument = gql`\r\n query FetchMedicalUnitById($id: ID!) {\r\n medicalUnit: entities {\r\n byId(id: $id, type: MedicalUnit) {\r\n __typename\r\n ...MedicalUnitFields\r\n }\r\n }\r\n }\r\n ${MedicalUnitFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMedicalUnitByIdGQL extends Apollo.Query<\r\n FetchMedicalUnitByIdQuery,\r\n FetchMedicalUnitByIdQueryVariables\r\n> {\r\n document = FetchMedicalUnitByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchMedicalUnitByIdsDocument = gql`\r\n query FetchMedicalUnitByIds($ids: [ID!]!) {\r\n medicalUnit: entities {\r\n byIds(ids: $ids, type: MedicalUnit) {\r\n __typename\r\n ...MedicalUnitFields\r\n }\r\n }\r\n }\r\n ${MedicalUnitFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchMedicalUnitByIdsGQL extends Apollo.Query<\r\n FetchMedicalUnitByIdsQuery,\r\n FetchMedicalUnitByIdsQueryVariables\r\n> {\r\n document = FetchMedicalUnitByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPersonByIdDocument = gql`\r\n query FetchPersonById($id: ID!) {\r\n person: entities {\r\n byId(id: $id, type: Person) {\r\n __typename\r\n ...PersonFields\r\n }\r\n }\r\n }\r\n ${PersonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPersonByIdGQL extends Apollo.Query<\r\n FetchPersonByIdQuery,\r\n FetchPersonByIdQueryVariables\r\n> {\r\n document = FetchPersonByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPersonByIdsDocument = gql`\r\n query FetchPersonByIds($ids: [ID!]!) {\r\n person: entities {\r\n byIds(ids: $ids, type: Person) {\r\n __typename\r\n ...PersonFields\r\n }\r\n }\r\n }\r\n ${PersonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPersonByIdsGQL extends Apollo.Query<\r\n FetchPersonByIdsQuery,\r\n FetchPersonByIdsQueryVariables\r\n> {\r\n document = FetchPersonByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPhysicianByIdDocument = gql`\r\n query FetchPhysicianById($id: ID!) {\r\n physician: entities {\r\n byId(id: $id, type: Physician) {\r\n __typename\r\n ...PhysicianFields\r\n }\r\n }\r\n }\r\n ${PhysicianFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPhysicianByIdGQL extends Apollo.Query<\r\n FetchPhysicianByIdQuery,\r\n FetchPhysicianByIdQueryVariables\r\n> {\r\n document = FetchPhysicianByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchPhysicianByIdsDocument = gql`\r\n query FetchPhysicianByIds($ids: [ID!]!) {\r\n physician: entities {\r\n byIds(ids: $ids, type: Physician) {\r\n __typename\r\n ...PhysicianFields\r\n }\r\n }\r\n }\r\n ${PhysicianFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchPhysicianByIdsGQL extends Apollo.Query<\r\n FetchPhysicianByIdsQuery,\r\n FetchPhysicianByIdsQueryVariables\r\n> {\r\n document = FetchPhysicianByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchProgramBaseByIdDocument = gql`\r\n query FetchProgramBaseById($id: ID!) {\r\n programBase: entities {\r\n byId(id: $id, type: ProgramBase) {\r\n __typename\r\n ...ProgramBaseFields\r\n }\r\n }\r\n }\r\n ${ProgramBaseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchProgramBaseByIdGQL extends Apollo.Query<\r\n FetchProgramBaseByIdQuery,\r\n FetchProgramBaseByIdQueryVariables\r\n> {\r\n document = FetchProgramBaseByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchProgramBaseByIdsDocument = gql`\r\n query FetchProgramBaseByIds($ids: [ID!]!) {\r\n programBase: entities {\r\n byIds(ids: $ids, type: ProgramBase) {\r\n __typename\r\n ...ProgramBaseFields\r\n }\r\n }\r\n }\r\n ${ProgramBaseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchProgramBaseByIdsGQL extends Apollo.Query<\r\n FetchProgramBaseByIdsQuery,\r\n FetchProgramBaseByIdsQueryVariables\r\n> {\r\n document = FetchProgramBaseByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchProgramByIdDocument = gql`\r\n query FetchProgramById($id: ID!) {\r\n program: entities {\r\n byId(id: $id, type: Program) {\r\n __typename\r\n ...ProgramFields\r\n }\r\n }\r\n }\r\n ${ProgramFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchProgramByIdGQL extends Apollo.Query<\r\n FetchProgramByIdQuery,\r\n FetchProgramByIdQueryVariables\r\n> {\r\n document = FetchProgramByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchProgramByIdsDocument = gql`\r\n query FetchProgramByIds($ids: [ID!]!) {\r\n program: entities {\r\n byIds(ids: $ids, type: Program) {\r\n __typename\r\n ...ProgramFields\r\n }\r\n }\r\n }\r\n ${ProgramFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchProgramByIdsGQL extends Apollo.Query<\r\n FetchProgramByIdsQuery,\r\n FetchProgramByIdsQueryVariables\r\n> {\r\n document = FetchProgramByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRamcoVehicleConfigurationByIdDocument = gql`\r\n query FetchRamcoVehicleConfigurationById($id: ID!) {\r\n ramcoVehicleConfiguration: entities {\r\n byId(id: $id, type: RamcoVehicleConfiguration) {\r\n __typename\r\n ...RamcoVehicleConfigurationFields\r\n }\r\n }\r\n }\r\n ${RamcoVehicleConfigurationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRamcoVehicleConfigurationByIdGQL extends Apollo.Query<\r\n FetchRamcoVehicleConfigurationByIdQuery,\r\n FetchRamcoVehicleConfigurationByIdQueryVariables\r\n> {\r\n document = FetchRamcoVehicleConfigurationByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRamcoVehicleConfigurationByIdsDocument = gql`\r\n query FetchRamcoVehicleConfigurationByIds($ids: [ID!]!) {\r\n ramcoVehicleConfiguration: entities {\r\n byIds(ids: $ids, type: RamcoVehicleConfiguration) {\r\n __typename\r\n ...RamcoVehicleConfigurationFields\r\n }\r\n }\r\n }\r\n ${RamcoVehicleConfigurationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRamcoVehicleConfigurationByIdsGQL extends Apollo.Query<\r\n FetchRamcoVehicleConfigurationByIdsQuery,\r\n FetchRamcoVehicleConfigurationByIdsQueryVariables\r\n> {\r\n document = FetchRamcoVehicleConfigurationByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRegionBaseByIdDocument = gql`\r\n query FetchRegionBaseById($id: ID!) {\r\n regionBase: entities {\r\n byId(id: $id, type: RegionBase) {\r\n __typename\r\n ...RegionBaseFields\r\n }\r\n }\r\n }\r\n ${RegionBaseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRegionBaseByIdGQL extends Apollo.Query<\r\n FetchRegionBaseByIdQuery,\r\n FetchRegionBaseByIdQueryVariables\r\n> {\r\n document = FetchRegionBaseByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRegionBaseByIdsDocument = gql`\r\n query FetchRegionBaseByIds($ids: [ID!]!) {\r\n regionBase: entities {\r\n byIds(ids: $ids, type: RegionBase) {\r\n __typename\r\n ...RegionBaseFields\r\n }\r\n }\r\n }\r\n ${RegionBaseFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRegionBaseByIdsGQL extends Apollo.Query<\r\n FetchRegionBaseByIdsQuery,\r\n FetchRegionBaseByIdsQueryVariables\r\n> {\r\n document = FetchRegionBaseByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRegionByIdDocument = gql`\r\n query FetchRegionById($id: ID!) {\r\n region: entities {\r\n byId(id: $id, type: Region) {\r\n __typename\r\n ...RegionFields\r\n }\r\n }\r\n }\r\n ${RegionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRegionByIdGQL extends Apollo.Query<\r\n FetchRegionByIdQuery,\r\n FetchRegionByIdQueryVariables\r\n> {\r\n document = FetchRegionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRegionByIdsDocument = gql`\r\n query FetchRegionByIds($ids: [ID!]!) {\r\n region: entities {\r\n byIds(ids: $ids, type: Region) {\r\n __typename\r\n ...RegionFields\r\n }\r\n }\r\n }\r\n ${RegionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRegionByIdsGQL extends Apollo.Query<\r\n FetchRegionByIdsQuery,\r\n FetchRegionByIdsQueryVariables\r\n> {\r\n document = FetchRegionByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRegionGroupByIdDocument = gql`\r\n query FetchRegionGroupById($id: ID!) {\r\n regionGroup: entities {\r\n byId(id: $id, type: RegionGroup) {\r\n __typename\r\n ...RegionGroupFields\r\n }\r\n }\r\n }\r\n ${RegionGroupFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRegionGroupByIdGQL extends Apollo.Query<\r\n FetchRegionGroupByIdQuery,\r\n FetchRegionGroupByIdQueryVariables\r\n> {\r\n document = FetchRegionGroupByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchRegionGroupByIdsDocument = gql`\r\n query FetchRegionGroupByIds($ids: [ID!]!) {\r\n regionGroup: entities {\r\n byIds(ids: $ids, type: RegionGroup) {\r\n __typename\r\n ...RegionGroupFields\r\n }\r\n }\r\n }\r\n ${RegionGroupFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchRegionGroupByIdsGQL extends Apollo.Query<\r\n FetchRegionGroupByIdsQuery,\r\n FetchRegionGroupByIdsQueryVariables\r\n> {\r\n document = FetchRegionGroupByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchSpecialtyTeamByIdDocument = gql`\r\n query FetchSpecialtyTeamById($id: ID!) {\r\n specialtyTeam: entities {\r\n byId(id: $id, type: SpecialtyTeam) {\r\n __typename\r\n ...SpecialtyTeamFields\r\n }\r\n }\r\n }\r\n ${SpecialtyTeamFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchSpecialtyTeamByIdGQL extends Apollo.Query<\r\n FetchSpecialtyTeamByIdQuery,\r\n FetchSpecialtyTeamByIdQueryVariables\r\n> {\r\n document = FetchSpecialtyTeamByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchSpecialtyTeamByIdsDocument = gql`\r\n query FetchSpecialtyTeamByIds($ids: [ID!]!) {\r\n specialtyTeam: entities {\r\n byIds(ids: $ids, type: SpecialtyTeam) {\r\n __typename\r\n ...SpecialtyTeamFields\r\n }\r\n }\r\n }\r\n ${SpecialtyTeamFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchSpecialtyTeamByIdsGQL extends Apollo.Query<\r\n FetchSpecialtyTeamByIdsQuery,\r\n FetchSpecialtyTeamByIdsQueryVariables\r\n> {\r\n document = FetchSpecialtyTeamByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchSpecialtyTeamMemberByIdDocument = gql`\r\n query FetchSpecialtyTeamMemberById($id: ID!) {\r\n specialtyTeamMember: entities {\r\n byId(id: $id, type: SpecialtyTeamMember) {\r\n __typename\r\n ...SpecialtyTeamMemberFields\r\n }\r\n }\r\n }\r\n ${SpecialtyTeamMemberFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchSpecialtyTeamMemberByIdGQL extends Apollo.Query<\r\n FetchSpecialtyTeamMemberByIdQuery,\r\n FetchSpecialtyTeamMemberByIdQueryVariables\r\n> {\r\n document = FetchSpecialtyTeamMemberByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchSpecialtyTeamMemberByIdsDocument = gql`\r\n query FetchSpecialtyTeamMemberByIds($ids: [ID!]!) {\r\n specialtyTeamMember: entities {\r\n byIds(ids: $ids, type: SpecialtyTeamMember) {\r\n __typename\r\n ...SpecialtyTeamMemberFields\r\n }\r\n }\r\n }\r\n ${SpecialtyTeamMemberFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchSpecialtyTeamMemberByIdsGQL extends Apollo.Query<\r\n FetchSpecialtyTeamMemberByIdsQuery,\r\n FetchSpecialtyTeamMemberByIdsQueryVariables\r\n> {\r\n document = FetchSpecialtyTeamMemberByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchSupportRequestByIdDocument = gql`\r\n query FetchSupportRequestById($id: ID!) {\r\n supportRequest: entities {\r\n byId(id: $id, type: SupportRequest) {\r\n __typename\r\n ...SupportRequestFields\r\n }\r\n }\r\n }\r\n ${SupportRequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchSupportRequestByIdGQL extends Apollo.Query<\r\n FetchSupportRequestByIdQuery,\r\n FetchSupportRequestByIdQueryVariables\r\n> {\r\n document = FetchSupportRequestByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchSupportRequestByIdsDocument = gql`\r\n query FetchSupportRequestByIds($ids: [ID!]!) {\r\n supportRequest: entities {\r\n byIds(ids: $ids, type: SupportRequest) {\r\n __typename\r\n ...SupportRequestFields\r\n }\r\n }\r\n }\r\n ${SupportRequestFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchSupportRequestByIdsGQL extends Apollo.Query<\r\n FetchSupportRequestByIdsQuery,\r\n FetchSupportRequestByIdsQueryVariables\r\n> {\r\n document = FetchSupportRequestByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTimezoneByIdDocument = gql`\r\n query FetchTimezoneById($id: ID!) {\r\n timezone: entities {\r\n byId(id: $id, type: Timezone) {\r\n __typename\r\n ...TimezoneFields\r\n }\r\n }\r\n }\r\n ${TimezoneFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTimezoneByIdGQL extends Apollo.Query<\r\n FetchTimezoneByIdQuery,\r\n FetchTimezoneByIdQueryVariables\r\n> {\r\n document = FetchTimezoneByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTimezoneByIdsDocument = gql`\r\n query FetchTimezoneByIds($ids: [ID!]!) {\r\n timezone: entities {\r\n byIds(ids: $ids, type: Timezone) {\r\n __typename\r\n ...TimezoneFields\r\n }\r\n }\r\n }\r\n ${TimezoneFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTimezoneByIdsGQL extends Apollo.Query<\r\n FetchTimezoneByIdsQuery,\r\n FetchTimezoneByIdsQueryVariables\r\n> {\r\n document = FetchTimezoneByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTransferCenterByIdDocument = gql`\r\n query FetchTransferCenterById($id: ID!) {\r\n transferCenter: entities {\r\n byId(id: $id, type: TransferCenter) {\r\n __typename\r\n ...TransferCenterFields\r\n }\r\n }\r\n }\r\n ${TransferCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTransferCenterByIdGQL extends Apollo.Query<\r\n FetchTransferCenterByIdQuery,\r\n FetchTransferCenterByIdQueryVariables\r\n> {\r\n document = FetchTransferCenterByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTransferCenterByIdsDocument = gql`\r\n query FetchTransferCenterByIds($ids: [ID!]!) {\r\n transferCenter: entities {\r\n byIds(ids: $ids, type: TransferCenter) {\r\n __typename\r\n ...TransferCenterFields\r\n }\r\n }\r\n }\r\n ${TransferCenterFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTransferCenterByIdsGQL extends Apollo.Query<\r\n FetchTransferCenterByIdsQuery,\r\n FetchTransferCenterByIdsQueryVariables\r\n> {\r\n document = FetchTransferCenterByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTrmUserAgencyByIdDocument = gql`\r\n query FetchTrmUserAgencyById($id: ID!) {\r\n trmUserAgency: entities {\r\n byId(id: $id, type: TrmUserAgency) {\r\n __typename\r\n ...TrmUserAgencyFields\r\n }\r\n }\r\n }\r\n ${TrmUserAgencyFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTrmUserAgencyByIdGQL extends Apollo.Query<\r\n FetchTrmUserAgencyByIdQuery,\r\n FetchTrmUserAgencyByIdQueryVariables\r\n> {\r\n document = FetchTrmUserAgencyByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTrmUserAgencyByIdsDocument = gql`\r\n query FetchTrmUserAgencyByIds($ids: [ID!]!) {\r\n trmUserAgency: entities {\r\n byIds(ids: $ids, type: TrmUserAgency) {\r\n __typename\r\n ...TrmUserAgencyFields\r\n }\r\n }\r\n }\r\n ${TrmUserAgencyFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTrmUserAgencyByIdsGQL extends Apollo.Query<\r\n FetchTrmUserAgencyByIdsQuery,\r\n FetchTrmUserAgencyByIdsQueryVariables\r\n> {\r\n document = FetchTrmUserAgencyByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTrmUserByIdDocument = gql`\r\n query FetchTrmUserById($id: ID!) {\r\n trmUser: entities {\r\n byId(id: $id, type: TrmUser) {\r\n __typename\r\n ...TrmUserFields\r\n }\r\n }\r\n }\r\n ${TrmUserFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTrmUserByIdGQL extends Apollo.Query<\r\n FetchTrmUserByIdQuery,\r\n FetchTrmUserByIdQueryVariables\r\n> {\r\n document = FetchTrmUserByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTrmUserByIdsDocument = gql`\r\n query FetchTrmUserByIds($ids: [ID!]!) {\r\n trmUser: entities {\r\n byIds(ids: $ids, type: TrmUser) {\r\n __typename\r\n ...TrmUserFields\r\n }\r\n }\r\n }\r\n ${TrmUserFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTrmUserByIdsGQL extends Apollo.Query<\r\n FetchTrmUserByIdsQuery,\r\n FetchTrmUserByIdsQueryVariables\r\n> {\r\n document = FetchTrmUserByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTrmUserMedicalFacilityByIdDocument = gql`\r\n query FetchTrmUserMedicalFacilityById($id: ID!) {\r\n trmUserMedicalFacility: entities {\r\n byId(id: $id, type: TrmUserMedicalFacility) {\r\n __typename\r\n ...TrmUserMedicalFacilityFields\r\n }\r\n }\r\n }\r\n ${TrmUserMedicalFacilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTrmUserMedicalFacilityByIdGQL extends Apollo.Query<\r\n FetchTrmUserMedicalFacilityByIdQuery,\r\n FetchTrmUserMedicalFacilityByIdQueryVariables\r\n> {\r\n document = FetchTrmUserMedicalFacilityByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTrmUserMedicalFacilityByIdsDocument = gql`\r\n query FetchTrmUserMedicalFacilityByIds($ids: [ID!]!) {\r\n trmUserMedicalFacility: entities {\r\n byIds(ids: $ids, type: TrmUserMedicalFacility) {\r\n __typename\r\n ...TrmUserMedicalFacilityFields\r\n }\r\n }\r\n }\r\n ${TrmUserMedicalFacilityFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTrmUserMedicalFacilityByIdsGQL extends Apollo.Query<\r\n FetchTrmUserMedicalFacilityByIdsQuery,\r\n FetchTrmUserMedicalFacilityByIdsQueryVariables\r\n> {\r\n document = FetchTrmUserMedicalFacilityByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTrmUserProgramByIdDocument = gql`\r\n query FetchTrmUserProgramById($id: ID!) {\r\n trmUserProgram: entities {\r\n byId(id: $id, type: TrmUserProgram) {\r\n __typename\r\n ...TrmUserProgramFields\r\n }\r\n }\r\n }\r\n ${TrmUserProgramFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTrmUserProgramByIdGQL extends Apollo.Query<\r\n FetchTrmUserProgramByIdQuery,\r\n FetchTrmUserProgramByIdQueryVariables\r\n> {\r\n document = FetchTrmUserProgramByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchTrmUserProgramByIdsDocument = gql`\r\n query FetchTrmUserProgramByIds($ids: [ID!]!) {\r\n trmUserProgram: entities {\r\n byIds(ids: $ids, type: TrmUserProgram) {\r\n __typename\r\n ...TrmUserProgramFields\r\n }\r\n }\r\n }\r\n ${TrmUserProgramFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchTrmUserProgramByIdsGQL extends Apollo.Query<\r\n FetchTrmUserProgramByIdsQuery,\r\n FetchTrmUserProgramByIdsQueryVariables\r\n> {\r\n document = FetchTrmUserProgramByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleConfigurationClassByIdDocument = gql`\r\n query FetchVehicleConfigurationClassById($id: ID!) {\r\n vehicleConfigurationClass: entities {\r\n byId(id: $id, type: VehicleConfigurationClass) {\r\n __typename\r\n ...VehicleConfigurationClassFields\r\n }\r\n }\r\n }\r\n ${VehicleConfigurationClassFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleConfigurationClassByIdGQL extends Apollo.Query<\r\n FetchVehicleConfigurationClassByIdQuery,\r\n FetchVehicleConfigurationClassByIdQueryVariables\r\n> {\r\n document = FetchVehicleConfigurationClassByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleConfigurationClassByIdsDocument = gql`\r\n query FetchVehicleConfigurationClassByIds($ids: [ID!]!) {\r\n vehicleConfigurationClass: entities {\r\n byIds(ids: $ids, type: VehicleConfigurationClass) {\r\n __typename\r\n ...VehicleConfigurationClassFields\r\n }\r\n }\r\n }\r\n ${VehicleConfigurationClassFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleConfigurationClassByIdsGQL extends Apollo.Query<\r\n FetchVehicleConfigurationClassByIdsQuery,\r\n FetchVehicleConfigurationClassByIdsQueryVariables\r\n> {\r\n document = FetchVehicleConfigurationClassByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleControlZoneByIdDocument = gql`\r\n query FetchVehicleControlZoneById($id: ID!) {\r\n vehicleControlZone: entities {\r\n byId(id: $id, type: VehicleControlZone) {\r\n __typename\r\n ...VehicleControlZoneFields\r\n }\r\n }\r\n }\r\n ${VehicleControlZoneFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleControlZoneByIdGQL extends Apollo.Query<\r\n FetchVehicleControlZoneByIdQuery,\r\n FetchVehicleControlZoneByIdQueryVariables\r\n> {\r\n document = FetchVehicleControlZoneByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleControlZoneByIdsDocument = gql`\r\n query FetchVehicleControlZoneByIds($ids: [ID!]!) {\r\n vehicleControlZone: entities {\r\n byIds(ids: $ids, type: VehicleControlZone) {\r\n __typename\r\n ...VehicleControlZoneFields\r\n }\r\n }\r\n }\r\n ${VehicleControlZoneFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleControlZoneByIdsGQL extends Apollo.Query<\r\n FetchVehicleControlZoneByIdsQuery,\r\n FetchVehicleControlZoneByIdsQueryVariables\r\n> {\r\n document = FetchVehicleControlZoneByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleByIdDocument = gql`\r\n query FetchVehicleById($id: ID!) {\r\n vehicle: entities {\r\n byId(id: $id, type: Vehicle) {\r\n __typename\r\n ...VehicleFields\r\n }\r\n }\r\n }\r\n ${VehicleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleByIdGQL extends Apollo.Query<\r\n FetchVehicleByIdQuery,\r\n FetchVehicleByIdQueryVariables\r\n> {\r\n document = FetchVehicleByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleByIdsDocument = gql`\r\n query FetchVehicleByIds($ids: [ID!]!) {\r\n vehicle: entities {\r\n byIds(ids: $ids, type: Vehicle) {\r\n __typename\r\n ...VehicleFields\r\n }\r\n }\r\n }\r\n ${VehicleFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleByIdsGQL extends Apollo.Query<\r\n FetchVehicleByIdsQuery,\r\n FetchVehicleByIdsQueryVariables\r\n> {\r\n document = FetchVehicleByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleMaintenanceByIdDocument = gql`\r\n query FetchVehicleMaintenanceById($id: ID!) {\r\n vehicleMaintenance: entities {\r\n byId(id: $id, type: VehicleMaintenance) {\r\n __typename\r\n ...VehicleMaintenanceFields\r\n }\r\n }\r\n }\r\n ${VehicleMaintenanceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleMaintenanceByIdGQL extends Apollo.Query<\r\n FetchVehicleMaintenanceByIdQuery,\r\n FetchVehicleMaintenanceByIdQueryVariables\r\n> {\r\n document = FetchVehicleMaintenanceByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleMaintenanceByIdsDocument = gql`\r\n query FetchVehicleMaintenanceByIds($ids: [ID!]!) {\r\n vehicleMaintenance: entities {\r\n byIds(ids: $ids, type: VehicleMaintenance) {\r\n __typename\r\n ...VehicleMaintenanceFields\r\n }\r\n }\r\n }\r\n ${VehicleMaintenanceFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleMaintenanceByIdsGQL extends Apollo.Query<\r\n FetchVehicleMaintenanceByIdsQuery,\r\n FetchVehicleMaintenanceByIdsQueryVariables\r\n> {\r\n document = FetchVehicleMaintenanceByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleMakeByIdDocument = gql`\r\n query FetchVehicleMakeById($id: ID!) {\r\n vehicleMake: entities {\r\n byId(id: $id, type: VehicleMake) {\r\n __typename\r\n ...VehicleMakeFields\r\n }\r\n }\r\n }\r\n ${VehicleMakeFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleMakeByIdGQL extends Apollo.Query<\r\n FetchVehicleMakeByIdQuery,\r\n FetchVehicleMakeByIdQueryVariables\r\n> {\r\n document = FetchVehicleMakeByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleMakeByIdsDocument = gql`\r\n query FetchVehicleMakeByIds($ids: [ID!]!) {\r\n vehicleMake: entities {\r\n byIds(ids: $ids, type: VehicleMake) {\r\n __typename\r\n ...VehicleMakeFields\r\n }\r\n }\r\n }\r\n ${VehicleMakeFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleMakeByIdsGQL extends Apollo.Query<\r\n FetchVehicleMakeByIdsQuery,\r\n FetchVehicleMakeByIdsQueryVariables\r\n> {\r\n document = FetchVehicleMakeByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleModelByIdDocument = gql`\r\n query FetchVehicleModelById($id: ID!) {\r\n vehicleModel: entities {\r\n byId(id: $id, type: VehicleModel) {\r\n __typename\r\n ...VehicleModelFields\r\n }\r\n }\r\n }\r\n ${VehicleModelFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleModelByIdGQL extends Apollo.Query<\r\n FetchVehicleModelByIdQuery,\r\n FetchVehicleModelByIdQueryVariables\r\n> {\r\n document = FetchVehicleModelByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleModelByIdsDocument = gql`\r\n query FetchVehicleModelByIds($ids: [ID!]!) {\r\n vehicleModel: entities {\r\n byIds(ids: $ids, type: VehicleModel) {\r\n __typename\r\n ...VehicleModelFields\r\n }\r\n }\r\n }\r\n ${VehicleModelFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleModelByIdsGQL extends Apollo.Query<\r\n FetchVehicleModelByIdsQuery,\r\n FetchVehicleModelByIdsQueryVariables\r\n> {\r\n document = FetchVehicleModelByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleStateInspectionByIdDocument = gql`\r\n query FetchVehicleStateInspectionById($id: ID!) {\r\n vehicleStateInspection: entities {\r\n byId(id: $id, type: VehicleStateInspection) {\r\n __typename\r\n ...VehicleStateInspectionFields\r\n }\r\n }\r\n }\r\n ${VehicleStateInspectionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleStateInspectionByIdGQL extends Apollo.Query<\r\n FetchVehicleStateInspectionByIdQuery,\r\n FetchVehicleStateInspectionByIdQueryVariables\r\n> {\r\n document = FetchVehicleStateInspectionByIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchVehicleStateInspectionByIdsDocument = gql`\r\n query FetchVehicleStateInspectionByIds($ids: [ID!]!) {\r\n vehicleStateInspection: entities {\r\n byIds(ids: $ids, type: VehicleStateInspection) {\r\n __typename\r\n ...VehicleStateInspectionFields\r\n }\r\n }\r\n }\r\n ${VehicleStateInspectionFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchVehicleStateInspectionByIdsGQL extends Apollo.Query<\r\n FetchVehicleStateInspectionByIdsQuery,\r\n FetchVehicleStateInspectionByIdsQueryVariables\r\n> {\r\n document = FetchVehicleStateInspectionByIdsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const InsightsCardActivityDocument = gql`\r\n query InsightsCardActivity($personId: ID!) {\r\n people {\r\n byId(id: $personId) {\r\n accessibleItems {\r\n ...AccessibleItemFields\r\n }\r\n }\r\n }\r\n }\r\n ${AccessibleItemFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class InsightsCardActivityGQL extends Apollo.Query<\r\n InsightsCardActivityQuery,\r\n InsightsCardActivityQueryVariables\r\n> {\r\n document = InsightsCardActivityDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetAllNotificationsDocument = gql`\r\n query GetAllNotifications($filter: NotificationFilter, $first: Int, $skip: Int) {\r\n notifications {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...NotificationFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetAllNotificationsGQL extends Apollo.Query<\r\n GetAllNotificationsQuery,\r\n GetAllNotificationsQueryVariables\r\n> {\r\n document = GetAllNotificationsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetRamcoVehicleConfigurationByTailNumberDocument = gql`\r\n query GetRamcoVehicleConfigurationByTailNumber($tailNumber: String!) {\r\n ramcoVehicleConfigurations {\r\n byTailNumber(tailNumber: $tailNumber) {\r\n ...RamcoVehicleConfigurationFields\r\n }\r\n }\r\n }\r\n ${RamcoVehicleConfigurationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetRamcoVehicleConfigurationByTailNumberGQL extends Apollo.Query<\r\n GetRamcoVehicleConfigurationByTailNumberQuery,\r\n GetRamcoVehicleConfigurationByTailNumberQueryVariables\r\n> {\r\n document = GetRamcoVehicleConfigurationByTailNumberDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetRamcoVehicleConfigurationByVehicleIdDocument = gql`\r\n query GetRamcoVehicleConfigurationByVehicleId($vehicleId: ID!) {\r\n vehicles {\r\n byId(id: $vehicleId) {\r\n ramco {\r\n ...RamcoVehicleConfigurationFields\r\n }\r\n }\r\n }\r\n }\r\n ${RamcoVehicleConfigurationFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetRamcoVehicleConfigurationByVehicleIdGQL extends Apollo.Query<\r\n GetRamcoVehicleConfigurationByVehicleIdQuery,\r\n GetRamcoVehicleConfigurationByVehicleIdQueryVariables\r\n> {\r\n document = GetRamcoVehicleConfigurationByVehicleIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetUnitNotesByUnitDocument = gql`\r\n query GetUnitNotesByUnit($unitId: ID!) {\r\n units {\r\n byId(id: $unitId) {\r\n notes {\r\n ...UnitNoteFields\r\n author {\r\n ...PersonFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${UnitNoteFieldsFragmentDoc}\r\n ${PersonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetUnitNotesByUnitGQL extends Apollo.Query<\r\n GetUnitNotesByUnitQuery,\r\n GetUnitNotesByUnitQueryVariables\r\n> {\r\n document = GetUnitNotesByUnitDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UserContextResolverDocument = gql`\r\n query UserContextResolver($baseFilter: BaseFilter, $programFilter: ProgramFilter) {\r\n bases {\r\n all(filter: $baseFilter) {\r\n items {\r\n ...BaseFields\r\n }\r\n }\r\n }\r\n programs {\r\n all(filter: $programFilter) {\r\n items {\r\n ...ProgramFields\r\n }\r\n }\r\n }\r\n }\r\n ${BaseFieldsFragmentDoc}\r\n ${ProgramFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UserContextResolverGQL extends Apollo.Query<\r\n UserContextResolverQuery,\r\n UserContextResolverQueryVariables\r\n> {\r\n document = UserContextResolverDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetUserByEmailDocument = gql`\r\n query GetUserByEmail($email: String!) {\r\n people {\r\n byEmail(email: $email) {\r\n ...PersonFields\r\n company {\r\n ...CompanyFields\r\n }\r\n }\r\n }\r\n }\r\n ${PersonFieldsFragmentDoc}\r\n ${CompanyFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetUserByEmailGQL extends Apollo.Query<\r\n GetUserByEmailQuery,\r\n GetUserByEmailQueryVariables\r\n> {\r\n document = GetUserByEmailDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetVehicleConfigurationClassesDocument = gql`\r\n query GetVehicleConfigurationClasses(\r\n $filter: VehicleConfigurationClassFilter\r\n $skip: Int\r\n $first: Int\r\n ) {\r\n vehicleConfigurationClasses {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...VehicleConfigurationClassFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleConfigurationClassFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetVehicleConfigurationClassesGQL extends Apollo.Query<\r\n GetVehicleConfigurationClassesQuery,\r\n GetVehicleConfigurationClassesQueryVariables\r\n> {\r\n document = GetVehicleConfigurationClassesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const GetVehicleModelsDocument = gql`\r\n query GetVehicleModels($filter: VehicleModelFilter, $first: Int, $skip: Int) {\r\n vehicleModels {\r\n all(filter: $filter, first: $first, skip: $skip) {\r\n items {\r\n ...VehicleModelFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${VehicleModelFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class GetVehicleModelsGQL extends Apollo.Query<\r\n GetVehicleModelsQuery,\r\n GetVehicleModelsQueryVariables\r\n> {\r\n document = GetVehicleModelsDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardByCardNumberDocument = gql`\r\n query FetchCardByCardNumber($cardNumber: ID!) {\r\n cards {\r\n byCardNumber(cardNumber: $cardNumber) {\r\n ...CardFields\r\n }\r\n }\r\n }\r\n ${CardFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardByCardNumberGQL extends Apollo.Query<\r\n FetchCardByCardNumberQuery,\r\n FetchCardByCardNumberQueryVariables\r\n> {\r\n document = FetchCardByCardNumberDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardEntitiesDocument = gql`\r\n query FetchCardEntities($cardNumber: ID!) {\r\n cards {\r\n byCardNumber(cardNumber: $cardNumber) {\r\n ...CardFields\r\n activeAlerts {\r\n ...ActiveAlertFields\r\n }\r\n request {\r\n ...RequestFields\r\n transportOfferOptions {\r\n ...TransportOfferOptionFields\r\n }\r\n requester {\r\n ...RequesterFields\r\n }\r\n locations {\r\n ...RequestLocationFields\r\n rendezvousRequests {\r\n ...RendezvousRequestFields\r\n agencyLocation {\r\n ...AgencyLocationFields\r\n }\r\n cardLinks {\r\n ...CardLinkFields\r\n }\r\n }\r\n diversionReason {\r\n ...DiversionReasonFields\r\n }\r\n }\r\n patients {\r\n ...RequestPatientFields\r\n transferReason {\r\n ...TransferReasonFields\r\n }\r\n }\r\n receivingFacilityRequests {\r\n ...ReceivingFacilityRequestFields\r\n }\r\n }\r\n operation {\r\n ...OperationFields\r\n unit {\r\n ...UnitContext\r\n }\r\n trips {\r\n ...TripFields\r\n estimatedDurations {\r\n ...EstimatedDurationFields\r\n }\r\n vehicle {\r\n ...VehicleFields\r\n vehicleDispositions {\r\n ...VehicleDispositionFields\r\n }\r\n }\r\n agency {\r\n ...AgencyFields\r\n }\r\n etas {\r\n ...EtaFields\r\n }\r\n positionReports {\r\n ...PositionReportFields\r\n }\r\n flightFollowingReports {\r\n ...FlightFollowingReportFields\r\n }\r\n passengers {\r\n ...TripPassengerFields\r\n manifestEntries {\r\n ...ManifestEntryFields\r\n }\r\n }\r\n legs {\r\n ...TripLegFields\r\n }\r\n }\r\n }\r\n questionnaireResponses {\r\n ...QuestionnaireResponseFields\r\n questionnaireQuestionResponses {\r\n ...QuestionnaireQuestionResponseFields\r\n questionnaireQuestionResponseNotes {\r\n ...QuestionnaireQuestionResponseNoteFields\r\n }\r\n }\r\n questionnaire {\r\n ...QuestionnaireFields\r\n }\r\n }\r\n medicalControlContactLogEntries {\r\n ...MedicalControlContactLogEntryFields\r\n person {\r\n ...PersonFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${CardFieldsFragmentDoc}\r\n ${ActiveAlertFieldsFragmentDoc}\r\n ${RequestFieldsFragmentDoc}\r\n ${TransportOfferOptionFieldsFragmentDoc}\r\n ${RequesterFieldsFragmentDoc}\r\n ${RequestLocationFieldsFragmentDoc}\r\n ${RendezvousRequestFieldsFragmentDoc}\r\n ${AgencyLocationFieldsFragmentDoc}\r\n ${CardLinkFieldsFragmentDoc}\r\n ${DiversionReasonFieldsFragmentDoc}\r\n ${RequestPatientFieldsFragmentDoc}\r\n ${TransferReasonFieldsFragmentDoc}\r\n ${ReceivingFacilityRequestFieldsFragmentDoc}\r\n ${OperationFieldsFragmentDoc}\r\n ${UnitContextFragmentDoc}\r\n ${TripFieldsFragmentDoc}\r\n ${EstimatedDurationFieldsFragmentDoc}\r\n ${VehicleFieldsFragmentDoc}\r\n ${VehicleDispositionFieldsFragmentDoc}\r\n ${AgencyFieldsFragmentDoc}\r\n ${EtaFieldsFragmentDoc}\r\n ${PositionReportFieldsFragmentDoc}\r\n ${FlightFollowingReportFieldsFragmentDoc}\r\n ${TripPassengerFieldsFragmentDoc}\r\n ${ManifestEntryFieldsFragmentDoc}\r\n ${TripLegFieldsFragmentDoc}\r\n ${QuestionnaireResponseFieldsFragmentDoc}\r\n ${QuestionnaireQuestionResponseFieldsFragmentDoc}\r\n ${QuestionnaireQuestionResponseNoteFieldsFragmentDoc}\r\n ${QuestionnaireFieldsFragmentDoc}\r\n ${MedicalControlContactLogEntryFieldsFragmentDoc}\r\n ${PersonFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardEntitiesGQL extends Apollo.Query<\r\n FetchCardEntitiesQuery,\r\n FetchCardEntitiesQueryVariables\r\n> {\r\n document = FetchCardEntitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchOpsSummaryDataDocument = gql`\r\n query FetchOpsSummaryData(\r\n $dispatchCompanyId: ID\r\n $communicationCenterId: ID\r\n $regionId: ID\r\n $controlZoneId: ID\r\n $controlZoneCompanyId: ID\r\n $includeVehicleSummaries: Boolean! = true\r\n $includeVehicles: Boolean! = false\r\n $includeCards: Boolean! = true\r\n $includeUnits: Boolean! = true\r\n $includeHiddenUnits: Boolean! = true\r\n $includeSpareUnits: Boolean! = true\r\n $includeThirdPartyUnits: Boolean! = true\r\n $includeExternalSystemUnits: Boolean! = true\r\n $includeTcsManagedUnits: Boolean! = true\r\n $fetchNested: Boolean! = true\r\n $fetchDeep: Boolean! = false\r\n $excludeCurrentDispatchCompany: Boolean! = false\r\n $summariesFetchAfterDate: DateTime = null\r\n $oosEventsFetchAfterDate: DateTime = null\r\n ) {\r\n outOfServiceEvents @skip(if: $excludeCurrentDispatchCompany) {\r\n all(filter: { active: true, afterDate: $oosEventsFetchAfterDate }) {\r\n meta {\r\n total\r\n }\r\n items {\r\n ...OutOfServiceEventFields\r\n }\r\n }\r\n }\r\n vehicles {\r\n all(filter: { controlZoneId: $controlZoneId, controlZoneCompanyId: $controlZoneCompanyId })\r\n @include(if: $includeVehicles) {\r\n items {\r\n ...VehicleFields\r\n }\r\n }\r\n summaries(\r\n filter: {\r\n controlZoneId: $controlZoneId\r\n controlZoneCompanyId: $controlZoneCompanyId\r\n companyId: $dispatchCompanyId\r\n communicationCenterId: $communicationCenterId\r\n regionId: $regionId\r\n excludeCurrentDispatchCompany: $excludeCurrentDispatchCompany\r\n afterDate: $summariesFetchAfterDate\r\n }\r\n ) @include(if: $includeVehicleSummaries) {\r\n items {\r\n ...VehicleSummaryFields\r\n currentCardSummary @include(if: $fetchNested) {\r\n ...CardSummaryFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n cards @include(if: $includeCards) {\r\n summaries(\r\n filter: {\r\n controlZoneId: $controlZoneId\r\n controlZoneCompanyId: $controlZoneCompanyId\r\n companyId: $dispatchCompanyId\r\n communicationCenterId: $communicationCenterId\r\n regionId: $regionId\r\n afterDate: $summariesFetchAfterDate\r\n }\r\n ) {\r\n items {\r\n ...CardSummaryFields\r\n unitSummary @include(if: $fetchNested) {\r\n ...UnitSummaryFields\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n units @include(if: $includeUnits) {\r\n summaries(\r\n filter: {\r\n controlZoneId: $controlZoneId\r\n controlZoneCompanyId: $controlZoneCompanyId\r\n companyId: $dispatchCompanyId\r\n communicationCenterId: $communicationCenterId\r\n regionId: $regionId\r\n includeHidden: $includeHiddenUnits\r\n includeSpare: $includeSpareUnits\r\n includeThirdParty: $includeThirdPartyUnits\r\n includeExternalSystem: $includeExternalSystemUnits\r\n tcsManagedUnits: $includeTcsManagedUnits\r\n afterDate: $summariesFetchAfterDate\r\n }\r\n ) {\r\n items {\r\n ...UnitSummaryFields\r\n vehicleSummary @include(if: $fetchNested) {\r\n ...VehicleSummaryFields\r\n currentCardSummary @include(if: $fetchDeep) {\r\n ...CardSummaryFields\r\n }\r\n }\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${OutOfServiceEventFieldsFragmentDoc}\r\n ${VehicleFieldsFragmentDoc}\r\n ${VehicleSummaryFieldsFragmentDoc}\r\n ${CardSummaryFieldsFragmentDoc}\r\n ${UnitSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchOpsSummaryDataGQL extends Apollo.Query<\r\n FetchOpsSummaryDataQuery,\r\n FetchOpsSummaryDataQueryVariables\r\n> {\r\n document = FetchOpsSummaryDataDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardLinksDocument = gql`\r\n query FetchCardLinks($filter: CardLinkFilter, $skip: Int, $first: Int) {\r\n cardLinks {\r\n all(filter: $filter, skip: $skip, first: $first) {\r\n items {\r\n ...CardLinkFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n }\r\n ${CardLinkFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardLinksGQL extends Apollo.Query<\r\n FetchCardLinksQuery,\r\n FetchCardLinksQueryVariables\r\n> {\r\n document = FetchCardLinksDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardSummaryByCardNumberDocument = gql`\r\n query FetchCardSummaryByCardNumber($cardNumber: ID!) {\r\n cards {\r\n summaryByCardNumber(cardNumber: $cardNumber) {\r\n ...CardSummaryFields\r\n }\r\n }\r\n }\r\n ${CardSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardSummaryByCardNumberGQL extends Apollo.Query<\r\n FetchCardSummaryByCardNumberQuery,\r\n FetchCardSummaryByCardNumberQueryVariables\r\n> {\r\n document = FetchCardSummaryByCardNumberDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const FetchCardSummaryByCardIdDocument = gql`\r\n query FetchCardSummaryByCardId($cardId: ID!) {\r\n cards {\r\n summaryById(id: $cardId) {\r\n ...CardSummaryFields\r\n }\r\n }\r\n }\r\n ${CardSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FetchCardSummaryByCardIdGQL extends Apollo.Query<\r\n FetchCardSummaryByCardIdQuery,\r\n FetchCardSummaryByCardIdQueryVariables\r\n> {\r\n document = FetchCardSummaryByCardIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const CardUnitOverviewComponent_FetchCardEntitiesByCardIdDocument = gql`\r\n query CardUnitOverviewComponent_FetchCardEntitiesByCardId($cardId: ID!) {\r\n cards {\r\n byId(id: $cardId) {\r\n ...CardFields\r\n request {\r\n ...RequestFields\r\n locations {\r\n ...RequestLocationFields\r\n }\r\n patients {\r\n ...RequestPatientFields\r\n }\r\n }\r\n operation {\r\n ...OperationFields\r\n unit {\r\n ...UnitFields\r\n }\r\n trips {\r\n ...TripFields\r\n estimatedDurations {\r\n ...EstimatedDurationFields\r\n }\r\n vehicle {\r\n ...VehicleFields\r\n vehicleDispositions {\r\n ...VehicleDispositionFields\r\n }\r\n }\r\n passengers {\r\n ...TripPassengerFields\r\n manifestEntries {\r\n ...ManifestEntryFields\r\n }\r\n }\r\n legs {\r\n ...TripLegFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${CardFieldsFragmentDoc}\r\n ${RequestFieldsFragmentDoc}\r\n ${RequestLocationFieldsFragmentDoc}\r\n ${RequestPatientFieldsFragmentDoc}\r\n ${OperationFieldsFragmentDoc}\r\n ${UnitFieldsFragmentDoc}\r\n ${TripFieldsFragmentDoc}\r\n ${EstimatedDurationFieldsFragmentDoc}\r\n ${VehicleFieldsFragmentDoc}\r\n ${VehicleDispositionFieldsFragmentDoc}\r\n ${TripPassengerFieldsFragmentDoc}\r\n ${ManifestEntryFieldsFragmentDoc}\r\n ${TripLegFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CardUnitOverviewComponent_FetchCardEntitiesByCardIdGQL extends Apollo.Query<\r\n CardUnitOverviewComponent_FetchCardEntitiesByCardIdQuery,\r\n CardUnitOverviewComponent_FetchCardEntitiesByCardIdQueryVariables\r\n> {\r\n document = CardUnitOverviewComponent_FetchCardEntitiesByCardIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const UserDataContextService_FetchDocument = gql`\r\n query UserDataContextService_Fetch {\r\n ...UserDataContext\r\n }\r\n ${UserDataContextFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UserDataContextService_FetchGQL extends Apollo.Query<\r\n UserDataContextService_FetchQuery,\r\n UserDataContextService_FetchQueryVariables\r\n> {\r\n document = UserDataContextService_FetchDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const LocationHazardsComponent_FetchLocationHazardsByLocationIdDocument = gql`\r\n query LocationHazardsComponent_FetchLocationHazardsByLocationId($locationId: ID!) {\r\n locationHazards {\r\n byLocationId(locationId: $locationId) {\r\n items {\r\n ...LocationHazardFields\r\n locationHazardAttachments {\r\n ...LocationHazardAttachmentFields\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ${LocationHazardFieldsFragmentDoc}\r\n ${LocationHazardAttachmentFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class LocationHazardsComponent_FetchLocationHazardsByLocationIdGQL extends Apollo.Query<\r\n LocationHazardsComponent_FetchLocationHazardsByLocationIdQuery,\r\n LocationHazardsComponent_FetchLocationHazardsByLocationIdQueryVariables\r\n> {\r\n document = LocationHazardsComponent_FetchLocationHazardsByLocationIdDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\nexport const PollingService_FetchEntitiesDocument = gql`\r\n query PollingService_FetchEntities(\r\n $companyId: ID\r\n $companyIds: [ID!]\r\n $regionId: ID\r\n $userRoles: [UserRole!]\r\n $includeQuestionnaireResponses: Boolean! = true\r\n $includePassdownLogs: Boolean! = true\r\n $includeNotifications: Boolean! = true\r\n $includeSummaries: Boolean! = true\r\n $includeVehiclePositionSummaries: Boolean! = true\r\n $vehiclesFetchAfterDate: DateTime = null\r\n $unitsFetchAfterDate: DateTime = null\r\n $cardsFetchAfterDate: DateTime = null\r\n $vehiclePositionSummariesFetchAfterDate: DateTime = null\r\n $summariesFetchPolicy: FetchPolicy = Cache\r\n ) {\r\n questionnaireResponses @include(if: $includeQuestionnaireResponses) {\r\n all(\r\n filter: {\r\n companyId: $companyId\r\n questionnaireResponseStatuses: [AwaitingReview, Draft]\r\n userRoles: $userRoles\r\n }\r\n ) {\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n passdownLogs @include(if: $includePassdownLogs) {\r\n all(filter: { regionId: $regionId, unacknowledgedOnly: true }) {\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n notifications @include(if: $includeNotifications) {\r\n all(\r\n filter: {\r\n companyId: $companyId\r\n regionId: $regionId\r\n notificationStatuses: [AwaitingApproval, Failed]\r\n exceptCardStatuses: [Closed]\r\n }\r\n ) {\r\n items {\r\n ...NotificationFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n units @include(if: $includeSummaries) {\r\n summaries(\r\n filter: {\r\n controlZoneId: null\r\n controlZoneCompanyId: null\r\n companyId: $companyId\r\n communicationCenterId: null\r\n regionId: $regionId\r\n includeHidden: null\r\n includeThirdParty: null\r\n includeExternalSystem: null\r\n tcsManagedUnits: null\r\n afterDate: $unitsFetchAfterDate\r\n }\r\n fetchpolicy: $summariesFetchPolicy\r\n ) {\r\n items {\r\n ...UnitSummaryFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n vehicles @include(if: $includeSummaries) {\r\n summaries(\r\n filter: {\r\n controlZoneId: null\r\n controlZoneCompanyId: null\r\n companyId: $companyId\r\n communicationCenterId: null\r\n regionId: $regionId\r\n excludeCurrentDispatchCompany: null\r\n afterDate: $vehiclesFetchAfterDate\r\n }\r\n fetchpolicy: $summariesFetchPolicy\r\n ) {\r\n items {\r\n ...VehicleSummaryFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n cards @include(if: $includeSummaries) {\r\n summaries(\r\n filter: {\r\n controlZoneId: null\r\n controlZoneCompanyId: null\r\n companyId: $companyId\r\n communicationCenterId: null\r\n regionId: $regionId\r\n afterDate: $cardsFetchAfterDate\r\n }\r\n fetchpolicy: $summariesFetchPolicy\r\n ) {\r\n items {\r\n ...CardSummaryFields\r\n }\r\n meta {\r\n total\r\n }\r\n }\r\n }\r\n vehiclePositionSummary @include(if: $includeVehiclePositionSummaries) {\r\n all(\r\n filter: {\r\n companyIdList: $companyIds\r\n positionReportSource: null\r\n afterDate: $vehiclePositionSummariesFetchAfterDate\r\n }\r\n ) {\r\n items {\r\n ...VehiclePositionSummaryFields\r\n }\r\n }\r\n }\r\n }\r\n ${NotificationFieldsFragmentDoc}\r\n ${UnitSummaryFieldsFragmentDoc}\r\n ${VehicleSummaryFieldsFragmentDoc}\r\n ${CardSummaryFieldsFragmentDoc}\r\n ${VehiclePositionSummaryFieldsFragmentDoc}\r\n`;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class PollingService_FetchEntitiesGQL extends Apollo.Query<\r\n PollingService_FetchEntitiesQuery,\r\n PollingService_FetchEntitiesQueryVariables\r\n> {\r\n document = PollingService_FetchEntitiesDocument;\r\n\r\n constructor(apollo: Apollo.Apollo) {\r\n super(apollo);\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { EntityType, UserRole } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface AccessibleItemProps {\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n userRoles: Set | null;\r\n personId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class AccessibleItemRecord extends Record({\r\n id: null as any,\r\n type: null as any,\r\n entityId: null as any,\r\n userRoles: null as any,\r\n personId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n userRoles: any;\r\n personId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): AccessibleItemRecord {\r\n if (json == null) {\r\n throw new Error('AccessibleItemRecord.fromJS: parameter cannot be null');\r\n }\r\n return new AccessibleItemRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'AccessibleItemJson.id'),\r\n type: getFromOrThrow(json, (j) => j.type, 'AccessibleItemJson.type'),\r\n entityId: getFromOrThrow(json, (j) => j.entityId, 'AccessibleItemJson.entityId'),\r\n userRoles: json.userRoles != null ? Set(json.userRoles) : null,\r\n personId: getFromOrThrow(json, (j) => j.personId, 'AccessibleItemJson.personId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n type: EntityType;\r\n entityId: string;\r\n userRoles: any;\r\n personId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [AccessibleItemRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('AccessibleItemRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new AccessibleItemRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'AccessibleItemJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'AccessibleItemJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.entityId, 'AccessibleItemJson.entityId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n userRoles: tryOrDefault(\r\n () => (json.userRoles != null ? Set(json.userRoles) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n personId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.personId, 'AccessibleItemJson.personId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: AccessibleItemProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('AccessibleItemRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class AccessibleItemViewModelBase implements AccessibleItemProps {\r\n protected readonly _props: AccessibleItemProps;\r\n private _json?: AccessibleItemProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get type(): EntityType {\r\n return this._props.type;\r\n }\r\n get entityId(): string {\r\n return this._props.entityId;\r\n }\r\n get userRoles(): Set | null {\r\n return this._props.userRoles;\r\n }\r\n get personId(): string {\r\n return this._props.personId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAirport() {\r\n return this._props.type === EntityType.Airport;\r\n }\r\n public get isBase() {\r\n return this._props.type === EntityType.Base;\r\n }\r\n public get isCard() {\r\n return this._props.type === EntityType.Card;\r\n }\r\n public get isCommunicationCenter() {\r\n return this._props.type === EntityType.CommunicationCenter;\r\n }\r\n public get isCompany() {\r\n return this._props.type === EntityType.Company;\r\n }\r\n public get isControlZone() {\r\n return this._props.type === EntityType.ControlZone;\r\n }\r\n public get isLocation() {\r\n return this._props.type === EntityType.Location;\r\n }\r\n public get isMedicalFacility() {\r\n return this._props.type === EntityType.MedicalFacility;\r\n }\r\n public get isOutOfServiceEvent() {\r\n return this._props.type === EntityType.OutOfServiceEvent;\r\n }\r\n public get isPerson() {\r\n return this._props.type === EntityType.Person;\r\n }\r\n public get isProgram() {\r\n return this._props.type === EntityType.Program;\r\n }\r\n public get isRegion() {\r\n return this._props.type === EntityType.Region;\r\n }\r\n public get isTimer() {\r\n return this._props.type === EntityType.Timer;\r\n }\r\n public get isUnit() {\r\n return this._props.type === EntityType.Unit;\r\n }\r\n public get isUnspecified() {\r\n return this._props.type === EntityType.Unspecified;\r\n }\r\n public get isVehicle() {\r\n return this._props.type === EntityType.Vehicle;\r\n }\r\n\r\n public isAnyType(...entityType: EntityType[]) {\r\n return entityType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: AccessibleItemProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n type: this._props.type,\r\n entityId: this._props.entityId,\r\n userRoles: this._props.userRoles,\r\n personId: this._props.personId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllAccessibleItemEntities = (state: AppState) =>\r\n state.entityStores.accessibleItem.entities;\r\n\r\nexport const selectAccessibleItemById = (id: string) => (state: AppState) =>\r\n state.entityStores.accessibleItem.entities.get(id);\r\n\r\nexport const selectAccessibleItemMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.accessibleItem.meta.get(id);\r\n\r\nexport const selectAccessibleItemAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectAccessibleItemById(id),\r\n selectAccessibleItemMetadataById(id),\r\n (accessibleItem, meta) => ({ accessibleItem, meta }),\r\n );\r\n\r\nexport function selectAccessibleItemEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllAccessibleItemEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, AccessibleItemRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectAccessibleItemEntitiesByType(type: EntityType) {\r\n return createSelector(selectAllAccessibleItemEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAccessibleItemEntitiesByEntityId(entityId: string) {\r\n return createSelector(selectAllAccessibleItemEntities, (entities) =>\r\n entities.filter((e) => e.entityId === entityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAccessibleItemEntitiesByPersonId(personId: string) {\r\n return createSelector(selectAllAccessibleItemEntities, (entities) =>\r\n entities.filter((e) => e.personId === personId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { OutOfServiceType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface OutOfServiceEventProps {\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date;\r\n startTime: Date | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n reasonId: string;\r\n isAirworthy: boolean;\r\n secondaryReasonId: string | null;\r\n scheduledStartTime: Date | null;\r\n initialEstimatedEndTime: Date;\r\n endTime: Date | null;\r\n notes: string | null;\r\n linkedCardId: string | null;\r\n createdById: string | null;\r\n endedById: string | null;\r\n secondaryReasonComment: string | null;\r\n parentOutOfServiceEventId: string | null;\r\n copiedFromId: string | null;\r\n alertWhenEventEnds: boolean;\r\n alertTimeInMinutes: number | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class OutOfServiceEventRecord extends Record({\r\n id: null as any,\r\n type: null as any,\r\n eventNumber: null as any,\r\n estimatedEndTime: null as any,\r\n startTime: null as any,\r\n unitId: null as any,\r\n vehicleId: null as any,\r\n reasonId: null as any,\r\n isAirworthy: null as any,\r\n secondaryReasonId: null as any,\r\n scheduledStartTime: null as any,\r\n initialEstimatedEndTime: null as any,\r\n endTime: null as any,\r\n notes: null as any,\r\n linkedCardId: null as any,\r\n createdById: null as any,\r\n endedById: null as any,\r\n secondaryReasonComment: null as any,\r\n parentOutOfServiceEventId: null as any,\r\n copiedFromId: null as any,\r\n alertWhenEventEnds: null as any,\r\n alertTimeInMinutes: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: string | number | Date;\r\n startTime: string | number | Date | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n reasonId: string;\r\n isAirworthy: boolean;\r\n secondaryReasonId: string | null;\r\n scheduledStartTime: string | number | Date | null;\r\n initialEstimatedEndTime: string | number | Date;\r\n endTime: string | number | Date | null;\r\n notes: string | null;\r\n linkedCardId: string | null;\r\n createdById: string | null;\r\n endedById: string | null;\r\n secondaryReasonComment: string | null;\r\n parentOutOfServiceEventId: string | null;\r\n copiedFromId: string | null;\r\n alertWhenEventEnds: boolean;\r\n alertTimeInMinutes: number | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): OutOfServiceEventRecord {\r\n if (json == null) {\r\n throw new Error('OutOfServiceEventRecord.fromJS: parameter cannot be null');\r\n }\r\n return new OutOfServiceEventRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'OutOfServiceEventJson.id'),\r\n type: getFromOrThrow(json, (j) => j.type, 'OutOfServiceEventJson.type'),\r\n eventNumber: getFromOrThrow(json, (j) => j.eventNumber, 'OutOfServiceEventJson.eventNumber'),\r\n estimatedEndTime: new Date(\r\n getFromOrThrow(json, (j) => j.estimatedEndTime, 'OutOfServiceEventJson.estimatedEndTime'),\r\n ),\r\n startTime: json.startTime != null ? new Date(json.startTime) : null,\r\n unitId: json.unitId,\r\n vehicleId: json.vehicleId,\r\n reasonId: getFromOrThrow(json, (j) => j.reasonId, 'OutOfServiceEventJson.reasonId'),\r\n isAirworthy: getFromOrThrow(json, (j) => j.isAirworthy, 'OutOfServiceEventJson.isAirworthy'),\r\n secondaryReasonId: json.secondaryReasonId,\r\n scheduledStartTime:\r\n json.scheduledStartTime != null ? new Date(json.scheduledStartTime) : null,\r\n initialEstimatedEndTime: new Date(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.initialEstimatedEndTime,\r\n 'OutOfServiceEventJson.initialEstimatedEndTime',\r\n ),\r\n ),\r\n endTime: json.endTime != null ? new Date(json.endTime) : null,\r\n notes: json.notes,\r\n linkedCardId: json.linkedCardId,\r\n createdById: json.createdById,\r\n endedById: json.endedById,\r\n secondaryReasonComment: json.secondaryReasonComment,\r\n parentOutOfServiceEventId: json.parentOutOfServiceEventId,\r\n copiedFromId: json.copiedFromId,\r\n alertWhenEventEnds: getFromOrThrow(\r\n json,\r\n (j) => j.alertWhenEventEnds,\r\n 'OutOfServiceEventJson.alertWhenEventEnds',\r\n ),\r\n alertTimeInMinutes: json.alertTimeInMinutes,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'OutOfServiceEventJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: string | number | Date;\r\n startTime: string | number | Date | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n reasonId: string;\r\n isAirworthy: boolean;\r\n secondaryReasonId: string | null;\r\n scheduledStartTime: string | number | Date | null;\r\n initialEstimatedEndTime: string | number | Date;\r\n endTime: string | number | Date | null;\r\n notes: string | null;\r\n linkedCardId: string | null;\r\n createdById: string | null;\r\n endedById: string | null;\r\n secondaryReasonComment: string | null;\r\n parentOutOfServiceEventId: string | null;\r\n copiedFromId: string | null;\r\n alertWhenEventEnds: boolean;\r\n alertTimeInMinutes: number | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [OutOfServiceEventRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('OutOfServiceEventRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new OutOfServiceEventRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'OutOfServiceEventJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'OutOfServiceEventJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n eventNumber: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.eventNumber, 'OutOfServiceEventJson.eventNumber'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedEndTime: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.estimatedEndTime,\r\n 'OutOfServiceEventJson.estimatedEndTime',\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n startTime: tryOrDefault(\r\n () => (json.startTime != null ? new Date(json.startTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => json.unitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => json.vehicleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n reasonId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.reasonId, 'OutOfServiceEventJson.reasonId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isAirworthy: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isAirworthy, 'OutOfServiceEventJson.isAirworthy'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n secondaryReasonId: tryOrDefault(\r\n () => json.secondaryReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n scheduledStartTime: tryOrDefault(\r\n () => (json.scheduledStartTime != null ? new Date(json.scheduledStartTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n initialEstimatedEndTime: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.initialEstimatedEndTime,\r\n 'OutOfServiceEventJson.initialEstimatedEndTime',\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n endTime: tryOrDefault(\r\n () => (json.endTime != null ? new Date(json.endTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n linkedCardId: tryOrDefault(\r\n () => json.linkedCardId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n createdById: tryOrDefault(\r\n () => json.createdById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n endedById: tryOrDefault(\r\n () => json.endedById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n secondaryReasonComment: tryOrDefault(\r\n () => json.secondaryReasonComment,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n parentOutOfServiceEventId: tryOrDefault(\r\n () => json.parentOutOfServiceEventId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n copiedFromId: tryOrDefault(\r\n () => json.copiedFromId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n alertWhenEventEnds: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.alertWhenEventEnds,\r\n 'OutOfServiceEventJson.alertWhenEventEnds',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n alertTimeInMinutes: tryOrDefault(\r\n () => json.alertTimeInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'OutOfServiceEventJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: OutOfServiceEventProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('OutOfServiceEventRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class OutOfServiceEventViewModelBase implements OutOfServiceEventProps {\r\n protected readonly _props: OutOfServiceEventProps;\r\n private _json?: OutOfServiceEventProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get type(): OutOfServiceType {\r\n return this._props.type;\r\n }\r\n get eventNumber(): string {\r\n return this._props.eventNumber;\r\n }\r\n get estimatedEndTime(): Date {\r\n return this._props.estimatedEndTime;\r\n }\r\n get startTime(): Date | null {\r\n return this._props.startTime;\r\n }\r\n get unitId(): string | null {\r\n return this._props.unitId;\r\n }\r\n get vehicleId(): string | null {\r\n return this._props.vehicleId;\r\n }\r\n get reasonId(): string {\r\n return this._props.reasonId;\r\n }\r\n get isAirworthy(): boolean {\r\n return this._props.isAirworthy;\r\n }\r\n get secondaryReasonId(): string | null {\r\n return this._props.secondaryReasonId;\r\n }\r\n get scheduledStartTime(): Date | null {\r\n return this._props.scheduledStartTime;\r\n }\r\n get initialEstimatedEndTime(): Date {\r\n return this._props.initialEstimatedEndTime;\r\n }\r\n get endTime(): Date | null {\r\n return this._props.endTime;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get linkedCardId(): string | null {\r\n return this._props.linkedCardId;\r\n }\r\n get createdById(): string | null {\r\n return this._props.createdById;\r\n }\r\n get endedById(): string | null {\r\n return this._props.endedById;\r\n }\r\n get secondaryReasonComment(): string | null {\r\n return this._props.secondaryReasonComment;\r\n }\r\n get parentOutOfServiceEventId(): string | null {\r\n return this._props.parentOutOfServiceEventId;\r\n }\r\n get copiedFromId(): string | null {\r\n return this._props.copiedFromId;\r\n }\r\n get alertWhenEventEnds(): boolean {\r\n return this._props.alertWhenEventEnds;\r\n }\r\n get alertTimeInMinutes(): number | null {\r\n return this._props.alertTimeInMinutes;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isOpportunistic() {\r\n return this._props.type === OutOfServiceType.Opportunistic;\r\n }\r\n public get isScheduled() {\r\n return this._props.type === OutOfServiceType.Scheduled;\r\n }\r\n public get isUnscheduled() {\r\n return this._props.type === OutOfServiceType.Unscheduled;\r\n }\r\n\r\n public isAnyType(...outOfServiceType: OutOfServiceType[]) {\r\n return outOfServiceType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: OutOfServiceEventProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n type: this._props.type,\r\n eventNumber: this._props.eventNumber,\r\n estimatedEndTime: this._props.estimatedEndTime,\r\n startTime: this._props.startTime,\r\n unitId: this._props.unitId,\r\n vehicleId: this._props.vehicleId,\r\n reasonId: this._props.reasonId,\r\n isAirworthy: this._props.isAirworthy,\r\n secondaryReasonId: this._props.secondaryReasonId,\r\n scheduledStartTime: this._props.scheduledStartTime,\r\n initialEstimatedEndTime: this._props.initialEstimatedEndTime,\r\n endTime: this._props.endTime,\r\n notes: this._props.notes,\r\n linkedCardId: this._props.linkedCardId,\r\n createdById: this._props.createdById,\r\n endedById: this._props.endedById,\r\n secondaryReasonComment: this._props.secondaryReasonComment,\r\n parentOutOfServiceEventId: this._props.parentOutOfServiceEventId,\r\n copiedFromId: this._props.copiedFromId,\r\n alertWhenEventEnds: this._props.alertWhenEventEnds,\r\n alertTimeInMinutes: this._props.alertTimeInMinutes,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllOutOfServiceEventEntities = (state: AppState) =>\r\n state.entityStores.outOfServiceEvent.entities;\r\n\r\nexport const selectOutOfServiceEventById = (id: string) => (state: AppState) =>\r\n state.entityStores.outOfServiceEvent.entities.get(id);\r\n\r\nexport const selectOutOfServiceEventMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.outOfServiceEvent.meta.get(id);\r\n\r\nexport const selectOutOfServiceEventAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectOutOfServiceEventById(id),\r\n selectOutOfServiceEventMetadataById(id),\r\n (outOfServiceEvent, meta) => ({ outOfServiceEvent, meta }),\r\n );\r\n\r\nexport function selectOutOfServiceEventEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllOutOfServiceEventEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, OutOfServiceEventRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByType(type: OutOfServiceType) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByEventNumber(eventNumber: string) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.eventNumber === eventNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByEstimatedEndTime(estimatedEndTime: Date) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.estimatedEndTime === estimatedEndTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByStartTime(startTime: Date) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.startTime === startTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByReasonId(reasonId: string) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.reasonId === reasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByIsAirworthy(isAirworthy: boolean) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.isAirworthy === isAirworthy).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesBySecondaryReasonId(secondaryReasonId: string) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.secondaryReasonId === secondaryReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByScheduledStartTime(scheduledStartTime: Date) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.scheduledStartTime === scheduledStartTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByInitialEstimatedEndTime(\r\n initialEstimatedEndTime: Date,\r\n) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.initialEstimatedEndTime === initialEstimatedEndTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByEndTime(endTime: Date) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.endTime === endTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByLinkedCardId(linkedCardId: string) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.linkedCardId === linkedCardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByCreatedById(createdById: string) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.createdById === createdById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByEndedById(endedById: string) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.endedById === endedById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesBySecondaryReasonComment(\r\n secondaryReasonComment: string,\r\n) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.secondaryReasonComment === secondaryReasonComment).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByParentOutOfServiceEventId(\r\n parentOutOfServiceEventId: string,\r\n) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.parentOutOfServiceEventId === parentOutOfServiceEventId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByCopiedFromId(copiedFromId: string) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.copiedFromId === copiedFromId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByAlertWhenEventEnds(alertWhenEventEnds: boolean) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.alertWhenEventEnds === alertWhenEventEnds).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByAlertTimeInMinutes(alertTimeInMinutes: number) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.alertTimeInMinutes === alertTimeInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllOutOfServiceEventEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface OutOfServiceReasonProps {\r\n id: string;\r\n name: string;\r\n controllable: boolean;\r\n description: string | null;\r\n isVehicleReason: boolean;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class OutOfServiceReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n controllable: null as any,\r\n description: null as any,\r\n isVehicleReason: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n controllable: boolean;\r\n description: string | null;\r\n isVehicleReason: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): OutOfServiceReasonRecord {\r\n if (json == null) {\r\n throw new Error('OutOfServiceReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new OutOfServiceReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'OutOfServiceReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'OutOfServiceReasonJson.name'),\r\n controllable: getFromOrThrow(\r\n json,\r\n (j) => j.controllable,\r\n 'OutOfServiceReasonJson.controllable',\r\n ),\r\n description: json.description,\r\n isVehicleReason: getFromOrThrow(\r\n json,\r\n (j) => j.isVehicleReason,\r\n 'OutOfServiceReasonJson.isVehicleReason',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n controllable: boolean;\r\n description: string | null;\r\n isVehicleReason: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [OutOfServiceReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('OutOfServiceReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new OutOfServiceReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'OutOfServiceReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'OutOfServiceReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n controllable: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.controllable, 'OutOfServiceReasonJson.controllable'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n description: tryOrDefault(\r\n () => json.description,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isVehicleReason: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.isVehicleReason, 'OutOfServiceReasonJson.isVehicleReason'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: OutOfServiceReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('OutOfServiceReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class OutOfServiceReasonViewModelBase implements OutOfServiceReasonProps {\r\n protected readonly _props: OutOfServiceReasonProps;\r\n private _json?: OutOfServiceReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get controllable(): boolean {\r\n return this._props.controllable;\r\n }\r\n get description(): string | null {\r\n return this._props.description;\r\n }\r\n get isVehicleReason(): boolean {\r\n return this._props.isVehicleReason;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: OutOfServiceReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n controllable: this._props.controllable,\r\n description: this._props.description,\r\n isVehicleReason: this._props.isVehicleReason,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllOutOfServiceReasonEntities = (state: AppState) =>\r\n state.entityStores.outOfServiceReason.entities;\r\n\r\nexport const selectOutOfServiceReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.outOfServiceReason.entities.get(id);\r\n\r\nexport const selectOutOfServiceReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.outOfServiceReason.meta.get(id);\r\n\r\nexport const selectOutOfServiceReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectOutOfServiceReasonById(id),\r\n selectOutOfServiceReasonMetadataById(id),\r\n (outOfServiceReason, meta) => ({ outOfServiceReason, meta }),\r\n );\r\n\r\nexport function selectOutOfServiceReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllOutOfServiceReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, OutOfServiceReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllOutOfServiceReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceReasonEntitiesByControllable(controllable: boolean) {\r\n return createSelector(selectAllOutOfServiceReasonEntities, (entities) =>\r\n entities.filter((e) => e.controllable === controllable).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceReasonEntitiesByDescription(description: string) {\r\n return createSelector(selectAllOutOfServiceReasonEntities, (entities) =>\r\n entities.filter((e) => e.description === description).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceReasonEntitiesByIsVehicleReason(isVehicleReason: boolean) {\r\n return createSelector(selectAllOutOfServiceReasonEntities, (entities) =>\r\n entities.filter((e) => e.isVehicleReason === isVehicleReason).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface OutOfServiceSecondaryReasonProps {\r\n id: string;\r\n name: string;\r\n outOfServiceReasonId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class OutOfServiceSecondaryReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n outOfServiceReasonId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n outOfServiceReasonId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): OutOfServiceSecondaryReasonRecord {\r\n if (json == null) {\r\n throw new Error('OutOfServiceSecondaryReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new OutOfServiceSecondaryReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'OutOfServiceSecondaryReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'OutOfServiceSecondaryReasonJson.name'),\r\n outOfServiceReasonId: getFromOrThrow(\r\n json,\r\n (j) => j.outOfServiceReasonId,\r\n 'OutOfServiceSecondaryReasonJson.outOfServiceReasonId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n outOfServiceReasonId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [OutOfServiceSecondaryReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('OutOfServiceSecondaryReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new OutOfServiceSecondaryReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'OutOfServiceSecondaryReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'OutOfServiceSecondaryReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n outOfServiceReasonId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.outOfServiceReasonId,\r\n 'OutOfServiceSecondaryReasonJson.outOfServiceReasonId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: OutOfServiceSecondaryReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('OutOfServiceSecondaryReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class OutOfServiceSecondaryReasonViewModelBase\r\n implements OutOfServiceSecondaryReasonProps\r\n{\r\n protected readonly _props: OutOfServiceSecondaryReasonProps;\r\n private _json?: OutOfServiceSecondaryReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get outOfServiceReasonId(): string {\r\n return this._props.outOfServiceReasonId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: OutOfServiceSecondaryReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n outOfServiceReasonId: this._props.outOfServiceReasonId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllOutOfServiceSecondaryReasonEntities = (state: AppState) =>\r\n state.entityStores.outOfServiceSecondaryReason.entities;\r\n\r\nexport const selectOutOfServiceSecondaryReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.outOfServiceSecondaryReason.entities.get(id);\r\n\r\nexport const selectOutOfServiceSecondaryReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.outOfServiceSecondaryReason.meta.get(id);\r\n\r\nexport const selectOutOfServiceSecondaryReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectOutOfServiceSecondaryReasonById(id),\r\n selectOutOfServiceSecondaryReasonMetadataById(id),\r\n (outOfServiceSecondaryReason, meta) => ({ outOfServiceSecondaryReason, meta }),\r\n );\r\n\r\nexport function selectOutOfServiceSecondaryReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllOutOfServiceSecondaryReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, OutOfServiceSecondaryReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceSecondaryReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllOutOfServiceSecondaryReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceSecondaryReasonEntitiesByOutOfServiceReasonId(\r\n outOfServiceReasonId: string,\r\n) {\r\n return createSelector(selectAllOutOfServiceSecondaryReasonEntities, (entities) =>\r\n entities.filter((e) => e.outOfServiceReasonId === outOfServiceReasonId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface UnitShiftSummaryProps {\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n}\r\n\r\nexport class UnitShiftSummaryRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n startTimeInMinutes: null as any,\r\n endTimeInMinutes: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n }): UnitShiftSummaryRecord {\r\n if (json == null) {\r\n throw new Error('UnitShiftSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new UnitShiftSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'UnitShiftSummaryJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'UnitShiftSummaryJson.name'),\r\n startTimeInMinutes: getFromOrThrow(\r\n json,\r\n (j) => j.startTimeInMinutes,\r\n 'UnitShiftSummaryJson.startTimeInMinutes',\r\n ),\r\n endTimeInMinutes: getFromOrThrow(\r\n json,\r\n (j) => j.endTimeInMinutes,\r\n 'UnitShiftSummaryJson.endTimeInMinutes',\r\n ),\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n }): [UnitShiftSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('UnitShiftSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new UnitShiftSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'UnitShiftSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'UnitShiftSummaryJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n startTimeInMinutes: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.startTimeInMinutes,\r\n 'UnitShiftSummaryJson.startTimeInMinutes',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n endTimeInMinutes: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.endTimeInMinutes, 'UnitShiftSummaryJson.endTimeInMinutes'),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: UnitShiftSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('UnitShiftSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class UnitShiftSummaryViewModelBase implements UnitShiftSummaryProps {\r\n protected readonly _props: UnitShiftSummaryProps;\r\n private _json?: UnitShiftSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get startTimeInMinutes(): number {\r\n return this._props.startTimeInMinutes;\r\n }\r\n get endTimeInMinutes(): number {\r\n return this._props.endTimeInMinutes;\r\n }\r\n\r\n constructor(props: UnitShiftSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n startTimeInMinutes: this._props.startTimeInMinutes,\r\n endTimeInMinutes: this._props.endTimeInMinutes,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { OutOfServiceType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface OutOfServiceEventSummaryProps {\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: Date;\r\n startTime: Date | null;\r\n reasonName: string;\r\n reasonId: string;\r\n notes: string | null;\r\n}\r\n\r\nexport class OutOfServiceEventSummaryRecord extends Record({\r\n id: null as any,\r\n type: null as any,\r\n eventNumber: null as any,\r\n estimatedEndTime: null as any,\r\n startTime: null as any,\r\n reasonName: null as any,\r\n reasonId: null as any,\r\n notes: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: string | number | Date;\r\n startTime: string | number | Date | null;\r\n reasonName: string;\r\n reasonId: string;\r\n notes: string | null;\r\n }): OutOfServiceEventSummaryRecord {\r\n if (json == null) {\r\n throw new Error('OutOfServiceEventSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new OutOfServiceEventSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'OutOfServiceEventSummaryJson.id'),\r\n type: getFromOrThrow(json, (j) => j.type, 'OutOfServiceEventSummaryJson.type'),\r\n eventNumber: getFromOrThrow(\r\n json,\r\n (j) => j.eventNumber,\r\n 'OutOfServiceEventSummaryJson.eventNumber',\r\n ),\r\n estimatedEndTime: new Date(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.estimatedEndTime,\r\n 'OutOfServiceEventSummaryJson.estimatedEndTime',\r\n ),\r\n ),\r\n startTime: json.startTime != null ? new Date(json.startTime) : null,\r\n reasonName: getFromOrThrow(\r\n json,\r\n (j) => j.reasonName,\r\n 'OutOfServiceEventSummaryJson.reasonName',\r\n ),\r\n reasonId: getFromOrThrow(json, (j) => j.reasonId, 'OutOfServiceEventSummaryJson.reasonId'),\r\n notes: json.notes,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n type: OutOfServiceType;\r\n eventNumber: string;\r\n estimatedEndTime: string | number | Date;\r\n startTime: string | number | Date | null;\r\n reasonName: string;\r\n reasonId: string;\r\n notes: string | null;\r\n }): [OutOfServiceEventSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('OutOfServiceEventSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new OutOfServiceEventSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'OutOfServiceEventSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'OutOfServiceEventSummaryJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n eventNumber: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.eventNumber, 'OutOfServiceEventSummaryJson.eventNumber'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedEndTime: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.estimatedEndTime,\r\n 'OutOfServiceEventSummaryJson.estimatedEndTime',\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n startTime: tryOrDefault(\r\n () => (json.startTime != null ? new Date(json.startTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n reasonName: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.reasonName, 'OutOfServiceEventSummaryJson.reasonName'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n reasonId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.reasonId, 'OutOfServiceEventSummaryJson.reasonId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: OutOfServiceEventSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('OutOfServiceEventSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class OutOfServiceEventSummaryViewModelBase\r\n implements OutOfServiceEventSummaryProps\r\n{\r\n protected readonly _props: OutOfServiceEventSummaryProps;\r\n private _json?: OutOfServiceEventSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get type(): OutOfServiceType {\r\n return this._props.type;\r\n }\r\n get eventNumber(): string {\r\n return this._props.eventNumber;\r\n }\r\n get estimatedEndTime(): Date {\r\n return this._props.estimatedEndTime;\r\n }\r\n get startTime(): Date | null {\r\n return this._props.startTime;\r\n }\r\n get reasonName(): string {\r\n return this._props.reasonName;\r\n }\r\n get reasonId(): string {\r\n return this._props.reasonId;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n\r\n public get isOpportunistic() {\r\n return this._props.type === OutOfServiceType.Opportunistic;\r\n }\r\n public get isScheduled() {\r\n return this._props.type === OutOfServiceType.Scheduled;\r\n }\r\n public get isUnscheduled() {\r\n return this._props.type === OutOfServiceType.Unscheduled;\r\n }\r\n\r\n public isAnyType(...outOfServiceType: OutOfServiceType[]) {\r\n return outOfServiceType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: OutOfServiceEventSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n type: this._props.type,\r\n eventNumber: this._props.eventNumber,\r\n estimatedEndTime: this._props.estimatedEndTime,\r\n startTime: this._props.startTime,\r\n reasonName: this._props.reasonName,\r\n reasonId: this._props.reasonId,\r\n notes: this._props.notes,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { UnitPositionType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface UnitPositionSummaryProps {\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n teamMemberFirstName: string | null;\r\n teamMemberLastName: string | null;\r\n isNonCompliant: boolean;\r\n nonComplianceReason: string | null;\r\n}\r\n\r\nexport class UnitPositionSummaryRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n type: null as any,\r\n isFlightCrew: null as any,\r\n isNonEmployee: null as any,\r\n notificationAddress: null as any,\r\n teamMemberId: null as any,\r\n teamMemberFirstName: null as any,\r\n teamMemberLastName: null as any,\r\n isNonCompliant: null as any,\r\n nonComplianceReason: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n teamMemberFirstName: string | null;\r\n teamMemberLastName: string | null;\r\n isNonCompliant: boolean;\r\n nonComplianceReason: string | null;\r\n }): UnitPositionSummaryRecord {\r\n if (json == null) {\r\n throw new Error('UnitPositionSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new UnitPositionSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'UnitPositionSummaryJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'UnitPositionSummaryJson.name'),\r\n type: getFromOrThrow(json, (j) => j.type, 'UnitPositionSummaryJson.type'),\r\n isFlightCrew: getFromOrThrow(\r\n json,\r\n (j) => j.isFlightCrew,\r\n 'UnitPositionSummaryJson.isFlightCrew',\r\n ),\r\n isNonEmployee: getFromOrThrow(\r\n json,\r\n (j) => j.isNonEmployee,\r\n 'UnitPositionSummaryJson.isNonEmployee',\r\n ),\r\n notificationAddress: json.notificationAddress,\r\n teamMemberId: json.teamMemberId,\r\n teamMemberFirstName: json.teamMemberFirstName,\r\n teamMemberLastName: json.teamMemberLastName,\r\n isNonCompliant: getFromOrThrow(\r\n json,\r\n (j) => j.isNonCompliant,\r\n 'UnitPositionSummaryJson.isNonCompliant',\r\n ),\r\n nonComplianceReason: json.nonComplianceReason,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n teamMemberFirstName: string | null;\r\n teamMemberLastName: string | null;\r\n isNonCompliant: boolean;\r\n nonComplianceReason: string | null;\r\n }): [UnitPositionSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('UnitPositionSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new UnitPositionSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'UnitPositionSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'UnitPositionSummaryJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'UnitPositionSummaryJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isFlightCrew: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isFlightCrew, 'UnitPositionSummaryJson.isFlightCrew'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isNonEmployee: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isNonEmployee, 'UnitPositionSummaryJson.isNonEmployee'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notificationAddress: tryOrDefault(\r\n () => json.notificationAddress,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n teamMemberId: tryOrDefault(\r\n () => json.teamMemberId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n teamMemberFirstName: tryOrDefault(\r\n () => json.teamMemberFirstName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n teamMemberLastName: tryOrDefault(\r\n () => json.teamMemberLastName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isNonCompliant: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.isNonCompliant, 'UnitPositionSummaryJson.isNonCompliant'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n nonComplianceReason: tryOrDefault(\r\n () => json.nonComplianceReason,\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: UnitPositionSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('UnitPositionSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class UnitPositionSummaryViewModelBase implements UnitPositionSummaryProps {\r\n protected readonly _props: UnitPositionSummaryProps;\r\n private _json?: UnitPositionSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get type(): UnitPositionType {\r\n return this._props.type;\r\n }\r\n get isFlightCrew(): boolean {\r\n return this._props.isFlightCrew;\r\n }\r\n get isNonEmployee(): boolean {\r\n return this._props.isNonEmployee;\r\n }\r\n get notificationAddress(): string | null {\r\n return this._props.notificationAddress;\r\n }\r\n get teamMemberId(): string | null {\r\n return this._props.teamMemberId;\r\n }\r\n get teamMemberFirstName(): string | null {\r\n return this._props.teamMemberFirstName;\r\n }\r\n get teamMemberLastName(): string | null {\r\n return this._props.teamMemberLastName;\r\n }\r\n get isNonCompliant(): boolean {\r\n return this._props.isNonCompliant;\r\n }\r\n get nonComplianceReason(): string | null {\r\n return this._props.nonComplianceReason;\r\n }\r\n\r\n public get isClinician() {\r\n return this._props.type === UnitPositionType.Clinician;\r\n }\r\n public get isClinicianTrainee() {\r\n return this._props.type === UnitPositionType.ClinicianTrainee;\r\n }\r\n public get isCoPilot() {\r\n return this._props.type === UnitPositionType.CoPilot;\r\n }\r\n public get isDriver() {\r\n return this._props.type === UnitPositionType.Driver;\r\n }\r\n public get isMechanic() {\r\n return this._props.type === UnitPositionType.Mechanic;\r\n }\r\n public get isNurse() {\r\n return this._props.type === UnitPositionType.Nurse;\r\n }\r\n public get isObserver() {\r\n return this._props.type === UnitPositionType.Observer;\r\n }\r\n public get isOther() {\r\n return this._props.type === UnitPositionType.Other;\r\n }\r\n public get isParamedic() {\r\n return this._props.type === UnitPositionType.Paramedic;\r\n }\r\n public get isPilot() {\r\n return this._props.type === UnitPositionType.Pilot;\r\n }\r\n public get isPilotTrainee() {\r\n return this._props.type === UnitPositionType.PilotTrainee;\r\n }\r\n\r\n public isAnyType(...unitPositionType: UnitPositionType[]) {\r\n return unitPositionType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: UnitPositionSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n type: this._props.type,\r\n isFlightCrew: this._props.isFlightCrew,\r\n isNonEmployee: this._props.isNonEmployee,\r\n notificationAddress: this._props.notificationAddress,\r\n teamMemberId: this._props.teamMemberId,\r\n teamMemberFirstName: this._props.teamMemberFirstName,\r\n teamMemberLastName: this._props.teamMemberLastName,\r\n isNonCompliant: this._props.isNonCompliant,\r\n nonComplianceReason: this._props.nonComplianceReason,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { FlightRule, UnitStatus, WeatherStatus } from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n UnitShiftSummaryRecord,\r\n UnitShiftSummaryProps,\r\n} from 'src/store/generated/unit-shift-summary-record.generated';\r\nimport {\r\n OutOfServiceEventSummaryRecord,\r\n OutOfServiceEventSummaryProps,\r\n} from 'src/store/generated/out-of-service-event-summary-record.generated';\r\nimport {\r\n UnitPositionSummaryRecord,\r\n UnitPositionSummaryProps,\r\n} from 'src/store/generated/unit-position-summary-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface UnitSummaryProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n isAdministrative: boolean | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | null;\r\n lastPilotUpdateById: string | null;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | null;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n lastPilotUpdateName: string | null;\r\n baseTimezoneCd: string | null;\r\n shifts: List;\r\n vehicleSummaryId: string | null;\r\n outOfServiceEvents: List;\r\n positions: List;\r\n baseId: string;\r\n vehicleId: string | null;\r\n regionId: string;\r\n communicationCenterId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n}\r\n\r\nexport class UnitSummaryRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n status: null as any,\r\n weatherStatus: null as any,\r\n isAdministrative: null as any,\r\n isHidden: null as any,\r\n isThirdPartyUnit: null as any,\r\n etloInMinutes: null as any,\r\n pilotNotes: null as any,\r\n lastPilotUpdateTime: null as any,\r\n lastPilotUpdateById: null as any,\r\n isExternallyManaged: null as any,\r\n maximumFlightRule: null as any,\r\n isOnDelay: null as any,\r\n plannedAvailableNotes: null as any,\r\n plannedAvailableTime: null as any,\r\n isEnabled: null as any,\r\n isSpare: null as any,\r\n lastPilotUpdateName: null as any,\r\n baseTimezoneCd: null as any,\r\n shifts: null as any,\r\n vehicleSummaryId: null as any,\r\n outOfServiceEvents: null as any,\r\n positions: null as any,\r\n baseId: null as any,\r\n vehicleId: null as any,\r\n regionId: null as any,\r\n communicationCenterId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n isAdministrative: boolean | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: string | number | Date | null;\r\n lastPilotUpdateById: string | null;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: string | number | Date | null;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n lastPilotUpdateName: string | null;\r\n baseTimezoneCd: string | null;\r\n shifts: any;\r\n vehicleSummaryId: string | null;\r\n outOfServiceEvents: any;\r\n positions: any;\r\n baseId: string;\r\n vehicleId: string | null;\r\n regionId: string;\r\n communicationCenterId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n }): UnitSummaryRecord {\r\n if (json == null) {\r\n throw new Error('UnitSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new UnitSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'UnitSummaryJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'UnitSummaryJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'UnitSummaryJson.abbreviation'),\r\n status: getFromOrThrow(json, (j) => j.status, 'UnitSummaryJson.status'),\r\n weatherStatus: getFromOrThrow(json, (j) => j.weatherStatus, 'UnitSummaryJson.weatherStatus'),\r\n isAdministrative: json.isAdministrative,\r\n isHidden: json.isHidden,\r\n isThirdPartyUnit: json.isThirdPartyUnit,\r\n etloInMinutes: json.etloInMinutes,\r\n pilotNotes: json.pilotNotes,\r\n lastPilotUpdateTime:\r\n json.lastPilotUpdateTime != null ? new Date(json.lastPilotUpdateTime) : null,\r\n lastPilotUpdateById: json.lastPilotUpdateById,\r\n isExternallyManaged: getFromOrThrow(\r\n json,\r\n (j) => j.isExternallyManaged,\r\n 'UnitSummaryJson.isExternallyManaged',\r\n ),\r\n maximumFlightRule: getFromOrThrow(\r\n json,\r\n (j) => j.maximumFlightRule,\r\n 'UnitSummaryJson.maximumFlightRule',\r\n ),\r\n isOnDelay: getFromOrThrow(json, (j) => j.isOnDelay, 'UnitSummaryJson.isOnDelay'),\r\n plannedAvailableNotes: json.plannedAvailableNotes,\r\n plannedAvailableTime:\r\n json.plannedAvailableTime != null ? new Date(json.plannedAvailableTime) : null,\r\n isEnabled: getFromOrThrow(json, (j) => j.isEnabled, 'UnitSummaryJson.isEnabled'),\r\n isSpare: getFromOrThrow(json, (j) => j.isSpare, 'UnitSummaryJson.isSpare'),\r\n lastPilotUpdateName: json.lastPilotUpdateName,\r\n baseTimezoneCd: json.baseTimezoneCd,\r\n shifts: List(\r\n getFromOrThrow(json, (j) => j.shifts, 'UnitSummaryJson.shifts').map(\r\n (o: any) => new UnitShiftSummaryRecord(o),\r\n ),\r\n ),\r\n vehicleSummaryId: json.vehicleSummaryId,\r\n outOfServiceEvents: List(\r\n getFromOrThrow(json, (j) => j.outOfServiceEvents, 'UnitSummaryJson.outOfServiceEvents').map(\r\n (o: any) => new OutOfServiceEventSummaryRecord(o),\r\n ),\r\n ),\r\n positions: List(\r\n getFromOrThrow(json, (j) => j.positions, 'UnitSummaryJson.positions').map(\r\n (o: any) => new UnitPositionSummaryRecord(o),\r\n ),\r\n ),\r\n baseId: getFromOrThrow(json, (j) => j.baseId, 'UnitSummaryJson.baseId'),\r\n vehicleId: json.vehicleId,\r\n regionId: getFromOrThrow(json, (j) => j.regionId, 'UnitSummaryJson.regionId'),\r\n communicationCenterId: json.communicationCenterId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'UnitSummaryJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n isAdministrative: boolean | null;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: string | number | Date | null;\r\n lastPilotUpdateById: string | null;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: string | number | Date | null;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n lastPilotUpdateName: string | null;\r\n baseTimezoneCd: string | null;\r\n shifts: any;\r\n vehicleSummaryId: string | null;\r\n outOfServiceEvents: any;\r\n positions: any;\r\n baseId: string;\r\n vehicleId: string | null;\r\n regionId: string;\r\n communicationCenterId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n }): [UnitSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('UnitSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new UnitSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'UnitSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'UnitSummaryJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'UnitSummaryJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'UnitSummaryJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n weatherStatus: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.weatherStatus, 'UnitSummaryJson.weatherStatus'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isAdministrative: tryOrDefault(\r\n () => json.isAdministrative,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isHidden: tryOrDefault(\r\n () => json.isHidden,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isThirdPartyUnit: tryOrDefault(\r\n () => json.isThirdPartyUnit,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n etloInMinutes: tryOrDefault(\r\n () => json.etloInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n pilotNotes: tryOrDefault(\r\n () => json.pilotNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastPilotUpdateTime: tryOrDefault(\r\n () => (json.lastPilotUpdateTime != null ? new Date(json.lastPilotUpdateTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastPilotUpdateById: tryOrDefault(\r\n () => json.lastPilotUpdateById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isExternallyManaged: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.isExternallyManaged, 'UnitSummaryJson.isExternallyManaged'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n maximumFlightRule: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.maximumFlightRule, 'UnitSummaryJson.maximumFlightRule'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isOnDelay: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isOnDelay, 'UnitSummaryJson.isOnDelay'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n plannedAvailableNotes: tryOrDefault(\r\n () => json.plannedAvailableNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n plannedAvailableTime: tryOrDefault(\r\n () => (json.plannedAvailableTime != null ? new Date(json.plannedAvailableTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isEnabled: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isEnabled, 'UnitSummaryJson.isEnabled'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isSpare: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isSpare, 'UnitSummaryJson.isSpare'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastPilotUpdateName: tryOrDefault(\r\n () => json.lastPilotUpdateName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseTimezoneCd: tryOrDefault(\r\n () => json.baseTimezoneCd,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n shifts: tryOrDefault(\r\n () =>\r\n List(\r\n getFromOrThrow(json, (j) => j.shifts, 'UnitSummaryJson.shifts').map(\r\n (o: any) => new UnitShiftSummaryRecord(o),\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleSummaryId: tryOrDefault(\r\n () => json.vehicleSummaryId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n outOfServiceEvents: tryOrDefault(\r\n () =>\r\n List(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.outOfServiceEvents,\r\n 'UnitSummaryJson.outOfServiceEvents',\r\n ).map((o: any) => new OutOfServiceEventSummaryRecord(o)),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n positions: tryOrDefault(\r\n () =>\r\n List(\r\n getFromOrThrow(json, (j) => j.positions, 'UnitSummaryJson.positions').map(\r\n (o: any) => new UnitPositionSummaryRecord(o),\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.baseId, 'UnitSummaryJson.baseId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => json.vehicleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.regionId, 'UnitSummaryJson.regionId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n communicationCenterId: tryOrDefault(\r\n () => json.communicationCenterId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'UnitSummaryJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: UnitSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('UnitSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class UnitSummaryViewModelBase implements UnitSummaryProps {\r\n protected readonly _props: UnitSummaryProps;\r\n private _json?: UnitSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get status(): UnitStatus {\r\n return this._props.status;\r\n }\r\n get weatherStatus(): WeatherStatus {\r\n return this._props.weatherStatus;\r\n }\r\n get isAdministrative(): boolean | null {\r\n return this._props.isAdministrative;\r\n }\r\n get isHidden(): boolean | null {\r\n return this._props.isHidden;\r\n }\r\n get isThirdPartyUnit(): boolean | null {\r\n return this._props.isThirdPartyUnit;\r\n }\r\n get etloInMinutes(): number | null {\r\n return this._props.etloInMinutes;\r\n }\r\n get pilotNotes(): string | null {\r\n return this._props.pilotNotes;\r\n }\r\n get lastPilotUpdateTime(): Date | null {\r\n return this._props.lastPilotUpdateTime;\r\n }\r\n get lastPilotUpdateById(): string | null {\r\n return this._props.lastPilotUpdateById;\r\n }\r\n get isExternallyManaged(): boolean {\r\n return this._props.isExternallyManaged;\r\n }\r\n get maximumFlightRule(): FlightRule {\r\n return this._props.maximumFlightRule;\r\n }\r\n get isOnDelay(): boolean {\r\n return this._props.isOnDelay;\r\n }\r\n get plannedAvailableNotes(): string | null {\r\n return this._props.plannedAvailableNotes;\r\n }\r\n get plannedAvailableTime(): Date | null {\r\n return this._props.plannedAvailableTime;\r\n }\r\n get isEnabled(): boolean {\r\n return this._props.isEnabled;\r\n }\r\n get isSpare(): boolean {\r\n return this._props.isSpare;\r\n }\r\n get lastPilotUpdateName(): string | null {\r\n return this._props.lastPilotUpdateName;\r\n }\r\n get baseTimezoneCd(): string | null {\r\n return this._props.baseTimezoneCd;\r\n }\r\n get shifts(): List {\r\n return this._props.shifts;\r\n }\r\n get vehicleSummaryId(): string | null {\r\n return this._props.vehicleSummaryId;\r\n }\r\n get outOfServiceEvents(): List {\r\n return this._props.outOfServiceEvents;\r\n }\r\n get positions(): List {\r\n return this._props.positions;\r\n }\r\n get baseId(): string {\r\n return this._props.baseId;\r\n }\r\n get vehicleId(): string | null {\r\n return this._props.vehicleId;\r\n }\r\n get regionId(): string {\r\n return this._props.regionId;\r\n }\r\n get communicationCenterId(): string | null {\r\n return this._props.communicationCenterId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n\r\n public get isAvailable() {\r\n return this._props.status === UnitStatus.Available;\r\n }\r\n public get isCommitted() {\r\n return this._props.status === UnitStatus.Committed;\r\n }\r\n public get isOnStandby() {\r\n return this._props.status === UnitStatus.OnStandby;\r\n }\r\n public get isOutOfService() {\r\n return this._props.status === UnitStatus.OutOfService;\r\n }\r\n public get isPartiallyAvailable() {\r\n return this._props.status === UnitStatus.PartiallyAvailable;\r\n }\r\n public get isGreen() {\r\n return this._props.weatherStatus === WeatherStatus.Green;\r\n }\r\n public get isRed() {\r\n return this._props.weatherStatus === WeatherStatus.Red;\r\n }\r\n public get isUnspecified() {\r\n return this._props.weatherStatus === WeatherStatus.Unspecified;\r\n }\r\n public get isYellow() {\r\n return this._props.weatherStatus === WeatherStatus.Yellow;\r\n }\r\n public get isIfr() {\r\n return this._props.maximumFlightRule === FlightRule.Ifr;\r\n }\r\n public get isNone() {\r\n return this._props.maximumFlightRule === FlightRule.None;\r\n }\r\n public get isVfr() {\r\n return this._props.maximumFlightRule === FlightRule.Vfr;\r\n }\r\n\r\n public isAnyStatus(...unitStatus: UnitStatus[]) {\r\n return unitStatus.includes(this._props.status);\r\n }\r\n public isAnyWeatherStatus(...weatherStatus: WeatherStatus[]) {\r\n return weatherStatus.includes(this._props.weatherStatus);\r\n }\r\n public isAnyMaximumFlightRule(...flightRule: FlightRule[]) {\r\n return flightRule.includes(this._props.maximumFlightRule);\r\n }\r\n\r\n constructor(props: UnitSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n status: this._props.status,\r\n weatherStatus: this._props.weatherStatus,\r\n isAdministrative: this._props.isAdministrative,\r\n isHidden: this._props.isHidden,\r\n isThirdPartyUnit: this._props.isThirdPartyUnit,\r\n etloInMinutes: this._props.etloInMinutes,\r\n pilotNotes: this._props.pilotNotes,\r\n lastPilotUpdateTime: this._props.lastPilotUpdateTime,\r\n lastPilotUpdateById: this._props.lastPilotUpdateById,\r\n isExternallyManaged: this._props.isExternallyManaged,\r\n maximumFlightRule: this._props.maximumFlightRule,\r\n isOnDelay: this._props.isOnDelay,\r\n plannedAvailableNotes: this._props.plannedAvailableNotes,\r\n plannedAvailableTime: this._props.plannedAvailableTime,\r\n isEnabled: this._props.isEnabled,\r\n isSpare: this._props.isSpare,\r\n lastPilotUpdateName: this._props.lastPilotUpdateName,\r\n baseTimezoneCd: this._props.baseTimezoneCd,\r\n shifts: this._props.shifts,\r\n vehicleSummaryId: this._props.vehicleSummaryId,\r\n outOfServiceEvents: this._props.outOfServiceEvents,\r\n positions: this._props.positions,\r\n baseId: this._props.baseId,\r\n vehicleId: this._props.vehicleId,\r\n regionId: this._props.regionId,\r\n communicationCenterId: this._props.communicationCenterId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllUnitSummaryEntities = (state: AppState) =>\r\n state.entityStores.unitSummary.entities;\r\n\r\nexport const selectUnitSummaryById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitSummary.entities.get(id);\r\n\r\nexport const selectUnitSummaryMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitSummary.meta.get(id);\r\n\r\nexport const selectUnitSummaryAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectUnitSummaryById(id),\r\n selectUnitSummaryMetadataById(id),\r\n (unitSummary, meta) => ({ unitSummary, meta }),\r\n );\r\n\r\nexport function selectUnitSummaryEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllUnitSummaryEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, UnitSummaryRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByName(name: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByStatus(status: UnitStatus) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByWeatherStatus(weatherStatus: WeatherStatus) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.weatherStatus === weatherStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByIsAdministrative(isAdministrative: boolean) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.isAdministrative === isAdministrative).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByIsHidden(isHidden: boolean) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.isHidden === isHidden).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByIsThirdPartyUnit(isThirdPartyUnit: boolean) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.isThirdPartyUnit === isThirdPartyUnit).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByEtloInMinutes(etloInMinutes: number) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.etloInMinutes === etloInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByPilotNotes(pilotNotes: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.pilotNotes === pilotNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByLastPilotUpdateTime(lastPilotUpdateTime: Date) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.lastPilotUpdateTime === lastPilotUpdateTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByLastPilotUpdateById(lastPilotUpdateById: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.lastPilotUpdateById === lastPilotUpdateById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByIsExternallyManaged(isExternallyManaged: boolean) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.isExternallyManaged === isExternallyManaged).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByMaximumFlightRule(maximumFlightRule: FlightRule) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.maximumFlightRule === maximumFlightRule).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByIsOnDelay(isOnDelay: boolean) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.isOnDelay === isOnDelay).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByPlannedAvailableNotes(plannedAvailableNotes: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.plannedAvailableNotes === plannedAvailableNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByPlannedAvailableTime(plannedAvailableTime: Date) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.plannedAvailableTime === plannedAvailableTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByIsEnabled(isEnabled: boolean) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.isEnabled === isEnabled).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByIsSpare(isSpare: boolean) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.isSpare === isSpare).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByLastPilotUpdateName(lastPilotUpdateName: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.lastPilotUpdateName === lastPilotUpdateName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByBaseTimezoneCd(baseTimezoneCd: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.baseTimezoneCd === baseTimezoneCd).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByVehicleSummaryId(vehicleSummaryId: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.vehicleSummaryId === vehicleSummaryId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByBaseId(baseId: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.baseId === baseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByCommunicationCenterId(communicationCenterId: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.communicationCenterId === communicationCenterId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { WaypointType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface WaypointSummaryProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n}\r\n\r\nexport class WaypointSummaryRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n type: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n }): WaypointSummaryRecord {\r\n if (json == null) {\r\n throw new Error('WaypointSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new WaypointSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'WaypointSummaryJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'WaypointSummaryJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'WaypointSummaryJson.abbreviation'),\r\n type: getFromOrThrow(json, (j) => j.type, 'WaypointSummaryJson.type'),\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n }): [WaypointSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('WaypointSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new WaypointSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'WaypointSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'WaypointSummaryJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'WaypointSummaryJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'WaypointSummaryJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: WaypointSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('WaypointSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class WaypointSummaryViewModelBase implements WaypointSummaryProps {\r\n protected readonly _props: WaypointSummaryProps;\r\n private _json?: WaypointSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get type(): WaypointType {\r\n return this._props.type;\r\n }\r\n\r\n public get isDropoffTeam() {\r\n return this._props.type === WaypointType.DropoffTeam;\r\n }\r\n public get isEnRouteDiversion() {\r\n return this._props.type === WaypointType.EnRouteDiversion;\r\n }\r\n public get isFuelLocation() {\r\n return this._props.type === WaypointType.FuelLocation;\r\n }\r\n public get isOther() {\r\n return this._props.type === WaypointType.Other;\r\n }\r\n public get isPatientDropoffRendezvous() {\r\n return this._props.type === WaypointType.PatientDropoffRendezvous;\r\n }\r\n public get isPatientPickupRendezvous() {\r\n return this._props.type === WaypointType.PatientPickupRendezvous;\r\n }\r\n public get isPickupTeam() {\r\n return this._props.type === WaypointType.PickupTeam;\r\n }\r\n public get isPost() {\r\n return this._props.type === WaypointType.Post;\r\n }\r\n public get isPublicRelationsSite() {\r\n return this._props.type === WaypointType.PublicRelationsSite;\r\n }\r\n public get isReceivingFacility() {\r\n return this._props.type === WaypointType.ReceivingFacility;\r\n }\r\n public get isRendezvousPoint() {\r\n return this._props.type === WaypointType.RendezvousPoint;\r\n }\r\n public get isSceneLocation() {\r\n return this._props.type === WaypointType.SceneLocation;\r\n }\r\n public get isSendingFacility() {\r\n return this._props.type === WaypointType.SendingFacility;\r\n }\r\n\r\n public isAnyType(...waypointType: WaypointType[]) {\r\n return waypointType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: WaypointSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n type: this._props.type,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { PositionReportSource } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface PositionReportSummaryProps {\r\n id: string;\r\n positionTime: Date;\r\n source: PositionReportSource;\r\n}\r\n\r\nexport class PositionReportSummaryRecord extends Record({\r\n id: null as any,\r\n positionTime: null as any,\r\n source: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n positionTime: string | number | Date;\r\n source: PositionReportSource;\r\n }): PositionReportSummaryRecord {\r\n if (json == null) {\r\n throw new Error('PositionReportSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new PositionReportSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'PositionReportSummaryJson.id'),\r\n positionTime: new Date(\r\n getFromOrThrow(json, (j) => j.positionTime, 'PositionReportSummaryJson.positionTime'),\r\n ),\r\n source: getFromOrThrow(json, (j) => j.source, 'PositionReportSummaryJson.source'),\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n positionTime: string | number | Date;\r\n source: PositionReportSource;\r\n }): [PositionReportSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('PositionReportSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new PositionReportSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'PositionReportSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n positionTime: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(json, (j) => j.positionTime, 'PositionReportSummaryJson.positionTime'),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n source: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.source, 'PositionReportSummaryJson.source'),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: PositionReportSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('PositionReportSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class PositionReportSummaryViewModelBase implements PositionReportSummaryProps {\r\n protected readonly _props: PositionReportSummaryProps;\r\n private _json?: PositionReportSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get positionTime(): Date {\r\n return this._props.positionTime;\r\n }\r\n get source(): PositionReportSource {\r\n return this._props.source;\r\n }\r\n\r\n public get isGpsAuto() {\r\n return this._props.source === PositionReportSource.GpsAuto;\r\n }\r\n public get isGpsManual() {\r\n return this._props.source === PositionReportSource.GpsManual;\r\n }\r\n public get isPilot() {\r\n return this._props.source === PositionReportSource.Pilot;\r\n }\r\n public get isTCS() {\r\n return this._props.source === PositionReportSource.TCS;\r\n }\r\n\r\n public isAnySource(...positionReportSource: PositionReportSource[]) {\r\n return positionReportSource.includes(this._props.source);\r\n }\r\n\r\n constructor(props: PositionReportSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n positionTime: this._props.positionTime,\r\n source: this._props.source,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CoordinatesProps {\r\n latitude: number | null;\r\n longitude: number | null;\r\n}\r\n\r\nexport class CoordinatesRecord extends Record({\r\n latitude: null as any,\r\n longitude: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n latitude: number | null;\r\n longitude: number | null;\r\n }): CoordinatesRecord {\r\n if (json == null) {\r\n throw new Error('CoordinatesRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CoordinatesRecord({\r\n latitude: json.latitude,\r\n longitude: json.longitude,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n latitude: number | null;\r\n longitude: number | null;\r\n }): [CoordinatesRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CoordinatesRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CoordinatesRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latitude: tryOrDefault(\r\n () => json.latitude,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n longitude: tryOrDefault(\r\n () => json.longitude,\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CoordinatesProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CoordinatesRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CoordinatesViewModelBase implements CoordinatesProps {\r\n protected readonly _props: CoordinatesProps;\r\n private _json?: CoordinatesProps;\r\n\r\n get latitude(): number | null {\r\n return this._props.latitude;\r\n }\r\n get longitude(): number | null {\r\n return this._props.longitude;\r\n }\r\n\r\n constructor(props: CoordinatesProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n latitude: this._props.latitude,\r\n longitude: this._props.longitude,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { VehicleStatus, VehicleType } from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n WaypointSummaryRecord,\r\n WaypointSummaryProps,\r\n} from 'src/store/generated/waypoint-summary-record.generated';\r\nimport {\r\n PositionReportSummaryRecord,\r\n PositionReportSummaryProps,\r\n} from 'src/store/generated/position-report-summary-record.generated';\r\nimport {\r\n CoordinatesRecord,\r\n CoordinatesProps,\r\n} from 'src/store/generated/coordinates-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface VehicleSummaryProps {\r\n id: string;\r\n type: VehicleType;\r\n serialNumber: string | null;\r\n registrationNumber: string;\r\n dispatchCompanyId: string | null;\r\n from: WaypointSummaryProps | null;\r\n to: WaypointSummaryProps | null;\r\n unitSummaryId: string;\r\n makeName: string | null;\r\n modelName: string | null;\r\n regionId: string;\r\n status: VehicleStatus;\r\n statusDescription: string;\r\n etlo: Date | null;\r\n eta: Date | null;\r\n currentCardNumber: string | null;\r\n currentCardSummaryId: string | null;\r\n latestPositionReportSummary: PositionReportSummaryProps | null;\r\n lastQualifyingPositionReportTime: Date | null;\r\n lastKnownCoordinates: CoordinatesProps | null;\r\n currentOrNextLegSequence: number | null;\r\n totalLegCount: number | null;\r\n communicationCenterId: string | null;\r\n vehicleDispositionId: string;\r\n unitId: string;\r\n currentCardId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n}\r\n\r\nexport class VehicleSummaryRecord extends Record({\r\n id: null as any,\r\n type: null as any,\r\n serialNumber: null as any,\r\n registrationNumber: null as any,\r\n dispatchCompanyId: null as any,\r\n from: null as any,\r\n to: null as any,\r\n unitSummaryId: null as any,\r\n makeName: null as any,\r\n modelName: null as any,\r\n regionId: null as any,\r\n status: null as any,\r\n statusDescription: null as any,\r\n etlo: null as any,\r\n eta: null as any,\r\n currentCardNumber: null as any,\r\n currentCardSummaryId: null as any,\r\n latestPositionReportSummary: null as any,\r\n lastQualifyingPositionReportTime: null as any,\r\n lastKnownCoordinates: null as any,\r\n currentOrNextLegSequence: null as any,\r\n totalLegCount: null as any,\r\n communicationCenterId: null as any,\r\n vehicleDispositionId: null as any,\r\n unitId: null as any,\r\n currentCardId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n type: VehicleType;\r\n serialNumber: string | null;\r\n registrationNumber: string;\r\n dispatchCompanyId: string | null;\r\n from: any;\r\n to: any;\r\n unitSummaryId: string;\r\n makeName: string | null;\r\n modelName: string | null;\r\n regionId: string;\r\n status: VehicleStatus;\r\n statusDescription: string;\r\n etlo: string | number | Date | null;\r\n eta: string | number | Date | null;\r\n currentCardNumber: string | null;\r\n currentCardSummaryId: string | null;\r\n latestPositionReportSummary: any;\r\n lastQualifyingPositionReportTime: string | number | Date | null;\r\n lastKnownCoordinates: any;\r\n currentOrNextLegSequence: number | null;\r\n totalLegCount: number | null;\r\n communicationCenterId: string | null;\r\n vehicleDispositionId: string;\r\n unitId: string;\r\n currentCardId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n }): VehicleSummaryRecord {\r\n if (json == null) {\r\n throw new Error('VehicleSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new VehicleSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'VehicleSummaryJson.id'),\r\n type: getFromOrThrow(json, (j) => j.type, 'VehicleSummaryJson.type'),\r\n serialNumber: json.serialNumber,\r\n registrationNumber: getFromOrThrow(\r\n json,\r\n (j) => j.registrationNumber,\r\n 'VehicleSummaryJson.registrationNumber',\r\n ),\r\n dispatchCompanyId: json.dispatchCompanyId,\r\n from: json.from != null ? new WaypointSummaryRecord(json.from) : null,\r\n to: json.to != null ? new WaypointSummaryRecord(json.to) : null,\r\n unitSummaryId: getFromOrThrow(\r\n json,\r\n (j) => j.unitSummaryId,\r\n 'VehicleSummaryJson.unitSummaryId',\r\n ),\r\n makeName: json.makeName,\r\n modelName: json.modelName,\r\n regionId: getFromOrThrow(json, (j) => j.regionId, 'VehicleSummaryJson.regionId'),\r\n status: getFromOrThrow(json, (j) => j.status, 'VehicleSummaryJson.status'),\r\n statusDescription: getFromOrThrow(\r\n json,\r\n (j) => j.statusDescription,\r\n 'VehicleSummaryJson.statusDescription',\r\n ),\r\n etlo: json.etlo != null ? new Date(json.etlo) : null,\r\n eta: json.eta != null ? new Date(json.eta) : null,\r\n currentCardNumber: json.currentCardNumber,\r\n currentCardSummaryId: json.currentCardSummaryId,\r\n latestPositionReportSummary:\r\n json.latestPositionReportSummary != null\r\n ? new PositionReportSummaryRecord(json.latestPositionReportSummary)\r\n : null,\r\n lastQualifyingPositionReportTime:\r\n json.lastQualifyingPositionReportTime != null\r\n ? new Date(json.lastQualifyingPositionReportTime)\r\n : null,\r\n lastKnownCoordinates:\r\n json.lastKnownCoordinates != null ? new CoordinatesRecord(json.lastKnownCoordinates) : null,\r\n currentOrNextLegSequence: json.currentOrNextLegSequence,\r\n totalLegCount: json.totalLegCount,\r\n communicationCenterId: json.communicationCenterId,\r\n vehicleDispositionId: getFromOrThrow(\r\n json,\r\n (j) => j.vehicleDispositionId,\r\n 'VehicleSummaryJson.vehicleDispositionId',\r\n ),\r\n unitId: getFromOrThrow(json, (j) => j.unitId, 'VehicleSummaryJson.unitId'),\r\n currentCardId: json.currentCardId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'VehicleSummaryJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n type: VehicleType;\r\n serialNumber: string | null;\r\n registrationNumber: string;\r\n dispatchCompanyId: string | null;\r\n from: any;\r\n to: any;\r\n unitSummaryId: string;\r\n makeName: string | null;\r\n modelName: string | null;\r\n regionId: string;\r\n status: VehicleStatus;\r\n statusDescription: string;\r\n etlo: string | number | Date | null;\r\n eta: string | number | Date | null;\r\n currentCardNumber: string | null;\r\n currentCardSummaryId: string | null;\r\n latestPositionReportSummary: any;\r\n lastQualifyingPositionReportTime: string | number | Date | null;\r\n lastKnownCoordinates: any;\r\n currentOrNextLegSequence: number | null;\r\n totalLegCount: number | null;\r\n communicationCenterId: string | null;\r\n vehicleDispositionId: string;\r\n unitId: string;\r\n currentCardId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n }): [VehicleSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('VehicleSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new VehicleSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'VehicleSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'VehicleSummaryJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n serialNumber: tryOrDefault(\r\n () => json.serialNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n registrationNumber: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.registrationNumber,\r\n 'VehicleSummaryJson.registrationNumber',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dispatchCompanyId: tryOrDefault(\r\n () => json.dispatchCompanyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n from: tryOrDefault(\r\n () => (json.from != null ? new WaypointSummaryRecord(json.from) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n to: tryOrDefault(\r\n () => (json.to != null ? new WaypointSummaryRecord(json.to) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitSummaryId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitSummaryId, 'VehicleSummaryJson.unitSummaryId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n makeName: tryOrDefault(\r\n () => json.makeName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n modelName: tryOrDefault(\r\n () => json.modelName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.regionId, 'VehicleSummaryJson.regionId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'VehicleSummaryJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n statusDescription: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.statusDescription, 'VehicleSummaryJson.statusDescription'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n etlo: tryOrDefault(\r\n () => (json.etlo != null ? new Date(json.etlo) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n eta: tryOrDefault(\r\n () => (json.eta != null ? new Date(json.eta) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentCardNumber: tryOrDefault(\r\n () => json.currentCardNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentCardSummaryId: tryOrDefault(\r\n () => json.currentCardSummaryId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latestPositionReportSummary: tryOrDefault(\r\n () =>\r\n json.latestPositionReportSummary != null\r\n ? new PositionReportSummaryRecord(json.latestPositionReportSummary)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastQualifyingPositionReportTime: tryOrDefault(\r\n () =>\r\n json.lastQualifyingPositionReportTime != null\r\n ? new Date(json.lastQualifyingPositionReportTime)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastKnownCoordinates: tryOrDefault(\r\n () =>\r\n json.lastKnownCoordinates != null\r\n ? new CoordinatesRecord(json.lastKnownCoordinates)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentOrNextLegSequence: tryOrDefault(\r\n () => json.currentOrNextLegSequence,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n totalLegCount: tryOrDefault(\r\n () => json.totalLegCount,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n communicationCenterId: tryOrDefault(\r\n () => json.communicationCenterId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleDispositionId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.vehicleDispositionId,\r\n 'VehicleSummaryJson.vehicleDispositionId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitId, 'VehicleSummaryJson.unitId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentCardId: tryOrDefault(\r\n () => json.currentCardId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'VehicleSummaryJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: VehicleSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('VehicleSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class VehicleSummaryViewModelBase implements VehicleSummaryProps {\r\n protected readonly _props: VehicleSummaryProps;\r\n private _json?: VehicleSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get type(): VehicleType {\r\n return this._props.type;\r\n }\r\n get serialNumber(): string | null {\r\n return this._props.serialNumber;\r\n }\r\n get registrationNumber(): string {\r\n return this._props.registrationNumber;\r\n }\r\n get dispatchCompanyId(): string | null {\r\n return this._props.dispatchCompanyId;\r\n }\r\n get from(): WaypointSummaryProps | null {\r\n return this._props.from;\r\n }\r\n get to(): WaypointSummaryProps | null {\r\n return this._props.to;\r\n }\r\n get unitSummaryId(): string {\r\n return this._props.unitSummaryId;\r\n }\r\n get makeName(): string | null {\r\n return this._props.makeName;\r\n }\r\n get modelName(): string | null {\r\n return this._props.modelName;\r\n }\r\n get regionId(): string {\r\n return this._props.regionId;\r\n }\r\n get status(): VehicleStatus {\r\n return this._props.status;\r\n }\r\n get statusDescription(): string {\r\n return this._props.statusDescription;\r\n }\r\n get etlo(): Date | null {\r\n return this._props.etlo;\r\n }\r\n get eta(): Date | null {\r\n return this._props.eta;\r\n }\r\n get currentCardNumber(): string | null {\r\n return this._props.currentCardNumber;\r\n }\r\n get currentCardSummaryId(): string | null {\r\n return this._props.currentCardSummaryId;\r\n }\r\n get latestPositionReportSummary(): PositionReportSummaryProps | null {\r\n return this._props.latestPositionReportSummary;\r\n }\r\n get lastQualifyingPositionReportTime(): Date | null {\r\n return this._props.lastQualifyingPositionReportTime;\r\n }\r\n get lastKnownCoordinates(): CoordinatesProps | null {\r\n return this._props.lastKnownCoordinates;\r\n }\r\n get currentOrNextLegSequence(): number | null {\r\n return this._props.currentOrNextLegSequence;\r\n }\r\n get totalLegCount(): number | null {\r\n return this._props.totalLegCount;\r\n }\r\n get communicationCenterId(): string | null {\r\n return this._props.communicationCenterId;\r\n }\r\n get vehicleDispositionId(): string {\r\n return this._props.vehicleDispositionId;\r\n }\r\n get unitId(): string {\r\n return this._props.unitId;\r\n }\r\n get currentCardId(): string | null {\r\n return this._props.currentCardId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n\r\n public get isFixedWing() {\r\n return this._props.type === VehicleType.FixedWing;\r\n }\r\n public get isGround() {\r\n return this._props.type === VehicleType.Ground;\r\n }\r\n public get isRotorWing() {\r\n return this._props.type === VehicleType.RotorWing;\r\n }\r\n public get isUnspecified() {\r\n return this._props.type === VehicleType.Unspecified;\r\n }\r\n public get isAtWaypoint() {\r\n return this._props.status === VehicleStatus.AtWaypoint;\r\n }\r\n public get isEnRoute() {\r\n return this._props.status === VehicleStatus.EnRoute;\r\n }\r\n\r\n public isAnyType(...vehicleType: VehicleType[]) {\r\n return vehicleType.includes(this._props.type);\r\n }\r\n public isAnyStatus(...vehicleStatus: VehicleStatus[]) {\r\n return vehicleStatus.includes(this._props.status);\r\n }\r\n\r\n constructor(props: VehicleSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n type: this._props.type,\r\n serialNumber: this._props.serialNumber,\r\n registrationNumber: this._props.registrationNumber,\r\n dispatchCompanyId: this._props.dispatchCompanyId,\r\n from: this._props.from,\r\n to: this._props.to,\r\n unitSummaryId: this._props.unitSummaryId,\r\n makeName: this._props.makeName,\r\n modelName: this._props.modelName,\r\n regionId: this._props.regionId,\r\n status: this._props.status,\r\n statusDescription: this._props.statusDescription,\r\n etlo: this._props.etlo,\r\n eta: this._props.eta,\r\n currentCardNumber: this._props.currentCardNumber,\r\n currentCardSummaryId: this._props.currentCardSummaryId,\r\n latestPositionReportSummary: this._props.latestPositionReportSummary,\r\n lastQualifyingPositionReportTime: this._props.lastQualifyingPositionReportTime,\r\n lastKnownCoordinates: this._props.lastKnownCoordinates,\r\n currentOrNextLegSequence: this._props.currentOrNextLegSequence,\r\n totalLegCount: this._props.totalLegCount,\r\n communicationCenterId: this._props.communicationCenterId,\r\n vehicleDispositionId: this._props.vehicleDispositionId,\r\n unitId: this._props.unitId,\r\n currentCardId: this._props.currentCardId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllVehicleSummaryEntities = (state: AppState) =>\r\n state.entityStores.vehicleSummary.entities;\r\n\r\nexport const selectVehicleSummaryById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleSummary.entities.get(id);\r\n\r\nexport const selectVehicleSummaryMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleSummary.meta.get(id);\r\n\r\nexport const selectVehicleSummaryAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectVehicleSummaryById(id),\r\n selectVehicleSummaryMetadataById(id),\r\n (vehicleSummary, meta) => ({ vehicleSummary, meta }),\r\n );\r\n\r\nexport function selectVehicleSummaryEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllVehicleSummaryEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, VehicleSummaryRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByType(type: VehicleType) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesBySerialNumber(serialNumber: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.serialNumber === serialNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByRegistrationNumber(registrationNumber: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.registrationNumber === registrationNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByDispatchCompanyId(dispatchCompanyId: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.dispatchCompanyId === dispatchCompanyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByUnitSummaryId(unitSummaryId: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.unitSummaryId === unitSummaryId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByMakeName(makeName: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.makeName === makeName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByModelName(modelName: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.modelName === modelName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByStatus(status: VehicleStatus) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByStatusDescription(statusDescription: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.statusDescription === statusDescription).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByEtlo(etlo: Date) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.etlo === etlo).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByEta(eta: Date) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.eta === eta).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByCurrentCardNumber(currentCardNumber: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.currentCardNumber === currentCardNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByCurrentCardSummaryId(currentCardSummaryId: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.currentCardSummaryId === currentCardSummaryId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByLastQualifyingPositionReportTime(\r\n lastQualifyingPositionReportTime: Date,\r\n) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities\r\n .filter((e) => e.lastQualifyingPositionReportTime === lastQualifyingPositionReportTime)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByCurrentOrNextLegSequence(\r\n currentOrNextLegSequence: number,\r\n) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.currentOrNextLegSequence === currentOrNextLegSequence).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByTotalLegCount(totalLegCount: number) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.totalLegCount === totalLegCount).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByCommunicationCenterId(communicationCenterId: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.communicationCenterId === communicationCenterId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByVehicleDispositionId(vehicleDispositionId: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.vehicleDispositionId === vehicleDispositionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByCurrentCardId(currentCardId: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.currentCardId === currentCardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleSummaryEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllVehicleSummaryEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { PositionReportSource } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface VehiclePositionSummaryProps {\r\n id: string;\r\n vehicleId: string;\r\n latitude: number;\r\n longitude: number;\r\n positionSource: PositionReportSource;\r\n positionTime: Date;\r\n lastPositionReportId: string | null;\r\n lastQualifyingPositionReportTime: Date | null;\r\n etlo: Date | null;\r\n lastGpsAutoPositionTime: Date | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n}\r\n\r\nexport class VehiclePositionSummaryRecord extends Record({\r\n id: null as any,\r\n vehicleId: null as any,\r\n latitude: null as any,\r\n longitude: null as any,\r\n positionSource: null as any,\r\n positionTime: null as any,\r\n lastPositionReportId: null as any,\r\n lastQualifyingPositionReportTime: null as any,\r\n etlo: null as any,\r\n lastGpsAutoPositionTime: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n vehicleId: string;\r\n latitude: number;\r\n longitude: number;\r\n positionSource: PositionReportSource;\r\n positionTime: string | number | Date;\r\n lastPositionReportId: string | null;\r\n lastQualifyingPositionReportTime: string | number | Date | null;\r\n etlo: string | number | Date | null;\r\n lastGpsAutoPositionTime: string | number | Date | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n }): VehiclePositionSummaryRecord {\r\n if (json == null) {\r\n throw new Error('VehiclePositionSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new VehiclePositionSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'VehiclePositionSummaryJson.id'),\r\n vehicleId: getFromOrThrow(json, (j) => j.vehicleId, 'VehiclePositionSummaryJson.vehicleId'),\r\n latitude: getFromOrThrow(json, (j) => j.latitude, 'VehiclePositionSummaryJson.latitude'),\r\n longitude: getFromOrThrow(json, (j) => j.longitude, 'VehiclePositionSummaryJson.longitude'),\r\n positionSource: getFromOrThrow(\r\n json,\r\n (j) => j.positionSource,\r\n 'VehiclePositionSummaryJson.positionSource',\r\n ),\r\n positionTime: new Date(\r\n getFromOrThrow(json, (j) => j.positionTime, 'VehiclePositionSummaryJson.positionTime'),\r\n ),\r\n lastPositionReportId: json.lastPositionReportId,\r\n lastQualifyingPositionReportTime:\r\n json.lastQualifyingPositionReportTime != null\r\n ? new Date(json.lastQualifyingPositionReportTime)\r\n : null,\r\n etlo: json.etlo != null ? new Date(json.etlo) : null,\r\n lastGpsAutoPositionTime:\r\n json.lastGpsAutoPositionTime != null ? new Date(json.lastGpsAutoPositionTime) : null,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'VehiclePositionSummaryJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n vehicleId: string;\r\n latitude: number;\r\n longitude: number;\r\n positionSource: PositionReportSource;\r\n positionTime: string | number | Date;\r\n lastPositionReportId: string | null;\r\n lastQualifyingPositionReportTime: string | number | Date | null;\r\n etlo: string | number | Date | null;\r\n lastGpsAutoPositionTime: string | number | Date | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n }): [VehiclePositionSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('VehiclePositionSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new VehiclePositionSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'VehiclePositionSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.vehicleId, 'VehiclePositionSummaryJson.vehicleId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latitude: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.latitude, 'VehiclePositionSummaryJson.latitude'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n longitude: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.longitude, 'VehiclePositionSummaryJson.longitude'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n positionSource: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.positionSource,\r\n 'VehiclePositionSummaryJson.positionSource',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n positionTime: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(json, (j) => j.positionTime, 'VehiclePositionSummaryJson.positionTime'),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastPositionReportId: tryOrDefault(\r\n () => json.lastPositionReportId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastQualifyingPositionReportTime: tryOrDefault(\r\n () =>\r\n json.lastQualifyingPositionReportTime != null\r\n ? new Date(json.lastQualifyingPositionReportTime)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n etlo: tryOrDefault(\r\n () => (json.etlo != null ? new Date(json.etlo) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastGpsAutoPositionTime: tryOrDefault(\r\n () =>\r\n json.lastGpsAutoPositionTime != null ? new Date(json.lastGpsAutoPositionTime) : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'VehiclePositionSummaryJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: VehiclePositionSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('VehiclePositionSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class VehiclePositionSummaryViewModelBase implements VehiclePositionSummaryProps {\r\n protected readonly _props: VehiclePositionSummaryProps;\r\n private _json?: VehiclePositionSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get vehicleId(): string {\r\n return this._props.vehicleId;\r\n }\r\n get latitude(): number {\r\n return this._props.latitude;\r\n }\r\n get longitude(): number {\r\n return this._props.longitude;\r\n }\r\n get positionSource(): PositionReportSource {\r\n return this._props.positionSource;\r\n }\r\n get positionTime(): Date {\r\n return this._props.positionTime;\r\n }\r\n get lastPositionReportId(): string | null {\r\n return this._props.lastPositionReportId;\r\n }\r\n get lastQualifyingPositionReportTime(): Date | null {\r\n return this._props.lastQualifyingPositionReportTime;\r\n }\r\n get etlo(): Date | null {\r\n return this._props.etlo;\r\n }\r\n get lastGpsAutoPositionTime(): Date | null {\r\n return this._props.lastGpsAutoPositionTime;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n\r\n public get isGpsAuto() {\r\n return this._props.positionSource === PositionReportSource.GpsAuto;\r\n }\r\n public get isGpsManual() {\r\n return this._props.positionSource === PositionReportSource.GpsManual;\r\n }\r\n public get isPilot() {\r\n return this._props.positionSource === PositionReportSource.Pilot;\r\n }\r\n public get isTCS() {\r\n return this._props.positionSource === PositionReportSource.TCS;\r\n }\r\n\r\n public isAnyPositionSource(...positionReportSource: PositionReportSource[]) {\r\n return positionReportSource.includes(this._props.positionSource);\r\n }\r\n\r\n constructor(props: VehiclePositionSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n vehicleId: this._props.vehicleId,\r\n latitude: this._props.latitude,\r\n longitude: this._props.longitude,\r\n positionSource: this._props.positionSource,\r\n positionTime: this._props.positionTime,\r\n lastPositionReportId: this._props.lastPositionReportId,\r\n lastQualifyingPositionReportTime: this._props.lastQualifyingPositionReportTime,\r\n etlo: this._props.etlo,\r\n lastGpsAutoPositionTime: this._props.lastGpsAutoPositionTime,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllVehiclePositionSummaryEntities = (state: AppState) =>\r\n state.entityStores.vehiclePositionSummary.entities;\r\n\r\nexport const selectVehiclePositionSummaryById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehiclePositionSummary.entities.get(id);\r\n\r\nexport const selectVehiclePositionSummaryMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehiclePositionSummary.meta.get(id);\r\n\r\nexport const selectVehiclePositionSummaryAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectVehiclePositionSummaryById(id),\r\n selectVehiclePositionSummaryMetadataById(id),\r\n (vehiclePositionSummary, meta) => ({ vehiclePositionSummary, meta }),\r\n );\r\n\r\nexport function selectVehiclePositionSummaryEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllVehiclePositionSummaryEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, VehiclePositionSummaryRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectVehiclePositionSummaryEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllVehiclePositionSummaryEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehiclePositionSummaryEntitiesByLatitude(latitude: number) {\r\n return createSelector(selectAllVehiclePositionSummaryEntities, (entities) =>\r\n entities.filter((e) => e.latitude === latitude).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehiclePositionSummaryEntitiesByLongitude(longitude: number) {\r\n return createSelector(selectAllVehiclePositionSummaryEntities, (entities) =>\r\n entities.filter((e) => e.longitude === longitude).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehiclePositionSummaryEntitiesByPositionSource(\r\n positionSource: PositionReportSource,\r\n) {\r\n return createSelector(selectAllVehiclePositionSummaryEntities, (entities) =>\r\n entities.filter((e) => e.positionSource === positionSource).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehiclePositionSummaryEntitiesByPositionTime(positionTime: Date) {\r\n return createSelector(selectAllVehiclePositionSummaryEntities, (entities) =>\r\n entities.filter((e) => e.positionTime === positionTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehiclePositionSummaryEntitiesByLastPositionReportId(\r\n lastPositionReportId: string,\r\n) {\r\n return createSelector(selectAllVehiclePositionSummaryEntities, (entities) =>\r\n entities.filter((e) => e.lastPositionReportId === lastPositionReportId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehiclePositionSummaryEntitiesByLastQualifyingPositionReportTime(\r\n lastQualifyingPositionReportTime: Date,\r\n) {\r\n return createSelector(selectAllVehiclePositionSummaryEntities, (entities) =>\r\n entities\r\n .filter((e) => e.lastQualifyingPositionReportTime === lastQualifyingPositionReportTime)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehiclePositionSummaryEntitiesByEtlo(etlo: Date) {\r\n return createSelector(selectAllVehiclePositionSummaryEntities, (entities) =>\r\n entities.filter((e) => e.etlo === etlo).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehiclePositionSummaryEntitiesByLastGpsAutoPositionTime(\r\n lastGpsAutoPositionTime: Date,\r\n) {\r\n return createSelector(selectAllVehiclePositionSummaryEntities, (entities) =>\r\n entities.filter((e) => e.lastGpsAutoPositionTime === lastGpsAutoPositionTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehiclePositionSummaryEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllVehiclePositionSummaryEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","import { Observable } from 'rxjs';\r\nimport { shareReplay } from 'rxjs/operators';\r\n\r\nexport function shareReplaySafe(bufferSize?: number) {\r\n return (observable: Observable) =>\r\n observable.pipe(shareReplay({ bufferSize, refCount: true }));\r\n}\r\n","import { generateHash, generateNamedHash, HashAlgorithm } from './hash';\r\n\r\nexport interface TimedCache extends Cache {\r\n /**\r\n * Gets an entry in the cache without updating the last accessed time.\r\n * @returns - The value associated with the key or undefined if the key does not exist\r\n */\r\n peek(key: TKey): TValue | undefined;\r\n}\r\n\r\ninterface Cache {\r\n /**\r\n * @returns An iterable of keys in the cache.\r\n */\r\n keys(): IterableIterator;\r\n /**\r\n * Checks if an entry exists in the cache for the provided key.\r\n * @returns boolean indicating whether an element with the specified key exists or not.\r\n */\r\n has(key: TKey): boolean;\r\n /**\r\n * Gets an entry in the cache associated to the provided key otherwise undefined.\r\n * @returns - The value associated with the key or undefined if the key does not exist\r\n */\r\n get(key: TKey): TValue | undefined;\r\n /**\r\n * Gets an entry in the cache associated to the provided key.\r\n * @returns - A coerced value which could be undefined\r\n */\r\n getUnsafe(key: TKey): TValue;\r\n /**\r\n * Adds a new entry with a specified key and value to the cache. If an element with\r\n * the same key already exists, the element will be updated.\r\n * @returns - The value associated with the key\r\n */\r\n set(key: TKey, value: TValue): TValue;\r\n /**\r\n * @returns - true if an entry in the cache existed and has been removed, or false\r\n * if the element does not exist.\r\n */\r\n delete(key: TKey): boolean;\r\n /** clears cache entries */\r\n clear(): void;\r\n}\r\n\r\nexport class NamedKey {\r\n readonly hash: string;\r\n constructor(\r\n public readonly name: string,\r\n public readonly key: TKey,\r\n hashAlgorithm = HashAlgorithm.md5,\r\n ) {\r\n this.hash = generateNamedHash(name, [key], hashAlgorithm);\r\n }\r\n}\r\n\r\nclass NamedKeyCache implements TimedCache, TValue> {\r\n private readonly _cache: TimedCache;\r\n\r\n constructor(ttlMs?: number) {\r\n this._cache = cacheFactory.cache(ttlMs ?? Infinity);\r\n }\r\n keys(): IterableIterator {\r\n return this._cache.keys();\r\n }\r\n peek(key: NamedKey): TValue | undefined {\r\n return this._cache.peek(key.hash);\r\n }\r\n has(key: NamedKey) {\r\n return this._cache.has(key.hash);\r\n }\r\n get(key: NamedKey) {\r\n return this._cache.get(key.hash);\r\n }\r\n getUnsafe(key: NamedKey): TValue {\r\n return this._cache.getUnsafe(key.hash);\r\n }\r\n /**\r\n * Gets all entries matching the provided name.\r\n * @returns An array of values associated with the provided name.\r\n */\r\n getAllByName(name: string) {\r\n const results: TValue[] = [];\r\n for (const key of this._cache.keys()) {\r\n const keyName = key.split('|')[0];\r\n if (keyName === name) {\r\n results.push(this._cache.get(key) as TValue);\r\n }\r\n }\r\n return results;\r\n }\r\n set(key: NamedKey, value: TValue) {\r\n return this._cache.set(key.hash, value);\r\n }\r\n delete(key: NamedKey) {\r\n return this._cache.delete(key.hash);\r\n }\r\n /**\r\n * Deletes all entries matching the provided name.\r\n * @returns The number of deleted entries.\r\n */\r\n deleteAllByName(name: string): number {\r\n let deletedCnt = 0;\r\n for (const key of this._cache.keys()) {\r\n const keyName = key.split('|')[0];\r\n if (keyName === name && this._cache.delete(key)) {\r\n deletedCnt++;\r\n }\r\n }\r\n return deletedCnt;\r\n }\r\n clear(): void {\r\n this._cache.clear();\r\n }\r\n}\r\n\r\nclass TimedKeyValueCache implements TimedCache {\r\n private readonly _cache: TimedCache;\r\n private readonly _generateHash: (key: TKey) => string;\r\n\r\n constructor(ttlMs: number, hashAlgorithm: (key: string) => string) {\r\n this._generateHash = (key: TKey) => generateHash([key], hashAlgorithm);\r\n this._cache = cacheFactory.cache(ttlMs);\r\n }\r\n\r\n keys(): IterableIterator {\r\n return this._cache.keys();\r\n }\r\n has(key: TKey): boolean {\r\n return this._cache.has(this._generateHash(key));\r\n }\r\n peek(key: TKey): TValue | undefined {\r\n return this._cache.peek(this._generateHash(key));\r\n }\r\n get(key: TKey): TValue | undefined {\r\n return this._cache.get(this._generateHash(key));\r\n }\r\n getUnsafe(key: TKey): TValue {\r\n return this._cache.getUnsafe(this._generateHash(key));\r\n }\r\n set(key: TKey, value: TValue): TValue {\r\n return this._cache.set(this._generateHash(key), value);\r\n }\r\n delete(key: TKey): boolean {\r\n return this._cache.delete(this._generateHash(key));\r\n }\r\n clear(): void {\r\n this._cache.clear();\r\n }\r\n}\r\n\r\nclass TimedValueCache implements TimedCache {\r\n private readonly cache = new Map();\r\n\r\n constructor(private readonly ttlMs: number) {}\r\n\r\n keys() {\r\n return this._purgeAndExecute(() => this.cache.keys());\r\n }\r\n has(key: string): boolean {\r\n return this._purgeAndExecute(() => this.cache.has(key));\r\n }\r\n peek(key: string): TValue | undefined {\r\n return this._purgeAndExecute(() => this.cache.get(key)?.item);\r\n }\r\n get(key: string): TValue | undefined {\r\n return this._purgeAndExecute(() => this._get(key));\r\n }\r\n getUnsafe(key: string): TValue {\r\n return this._purgeAndExecute(() => this._get(key) as TValue);\r\n }\r\n set(key: string, value: TValue) {\r\n this.cache.set(key, { lastAccessDate: new Date(), item: value });\r\n return value;\r\n }\r\n delete(key: string) {\r\n return this._purgeAndExecute(() => this.cache.delete(key));\r\n }\r\n clear() {\r\n this.cache.clear();\r\n }\r\n\r\n private _get(key: string): TValue | undefined {\r\n const entry = this.cache.get(key) ?? { lastAccessDate: null, item: undefined };\r\n this.cache.set(key, { lastAccessDate: new Date(), item: entry.item });\r\n return entry.item;\r\n }\r\n\r\n private _purgeAndExecute(fn: () => T): T {\r\n if (this.ttlMs !== Infinity) {\r\n purgeExpiredMapEntries(this.cache, this.ttlMs);\r\n }\r\n return fn();\r\n }\r\n}\r\n\r\nexport interface AccessTracker {\r\n /**\r\n * @returns an object with the lastAccessDate and rollback function\r\n */\r\n get(key: TKey): AccessTrackerItem;\r\n /**\r\n * @returns an object with the lastAccessDate and rollback function but will not update cache\r\n */\r\n peek(key: TKey): AccessTrackerItem;\r\n /**\r\n * deletes lastAccessDate for provided key.\r\n */\r\n delete(key: TKey): void;\r\n}\r\n\r\nexport interface AccessTrackerItem {\r\n lastAccessDate: Date | null;\r\n rollback(): Date | null;\r\n}\r\ninterface AccessTrackerCacheItem {\r\n lastAccessDate: Date | null;\r\n prev: Date | null;\r\n}\r\nclass AccessTrackerCache implements AccessTracker {\r\n private readonly _cache = new Map();\r\n private readonly _defaultValue: AccessTrackerCacheItem = { lastAccessDate: null, prev: null };\r\n private readonly _generateHash: (key: TKey) => string;\r\n\r\n constructor(private readonly ttlMs: number = Infinity, hashAlgorithm: (key: string) => string) {\r\n this._generateHash = (key: TKey) => generateHash([key], hashAlgorithm);\r\n }\r\n\r\n get(key: TKey): AccessTrackerItem {\r\n return this._purgeAndExecute(() => {\r\n const hash = this._generateHash(key);\r\n const item = this._cache.get(hash) ?? this._defaultValue;\r\n this._cache.set(hash, { lastAccessDate: new Date(), prev: item.lastAccessDate });\r\n return {\r\n lastAccessDate: item.lastAccessDate,\r\n /**\r\n * rollback to previous lastAccessDate.\r\n * @returns lastAccessDate or null on first access\r\n */\r\n rollback: () => {\r\n this._cache.set(hash, { lastAccessDate: item.prev, prev: item.prev });\r\n return item.prev;\r\n },\r\n };\r\n });\r\n }\r\n\r\n peek(key: TKey): AccessTrackerItem {\r\n return this._purgeAndExecute(() => {\r\n const hash = this._generateHash(key);\r\n const item = this._cache.get(hash) ?? this._defaultValue;\r\n return {\r\n lastAccessDate: item.lastAccessDate,\r\n /**\r\n * @returns previous lastAccessDate without updating cache\r\n */\r\n rollback: () => item.prev,\r\n };\r\n });\r\n }\r\n\r\n delete(key: TKey): void {\r\n this._purgeAndExecute(() => this._cache.delete(this._generateHash(key)));\r\n }\r\n\r\n private _purgeAndExecute(fn: () => T): T {\r\n if (this.ttlMs !== Infinity) {\r\n purgeExpiredMapEntries(this._cache, this.ttlMs);\r\n }\r\n return fn();\r\n }\r\n}\r\n\r\nfunction purgeExpiredMapEntries(\r\n map: Map,\r\n ttlMs: number,\r\n) {\r\n const now = new Date();\r\n for (const entry of map.entries()) {\r\n const [key, item] = entry;\r\n const diff = (item.lastAccessDate?.getTime() ?? now.getTime()) + ttlMs - now.getTime();\r\n if (diff <= 0) {\r\n map.delete(key);\r\n }\r\n }\r\n}\r\n\r\nfunction createCacheFactory() {\r\n return {\r\n /**\r\n * Used to cache entries which can be removed if not accessed after a specified time. For example\r\n * if the `ttlMs` equals 5 minutes and an item is retrieved before time has elapsed, that entry\r\n * will live for another 5 minutes.\r\n * @param ttlMs - The ammount of time in milliseconds a cached entry can exist without being accessed.\r\n * For example, if `get('key')` was called 6 minutes ago and the `ttlMs` equals 5 minutes, that entry\r\n * will have been deleted.\r\n * @example ```ts\r\n * // no expiration\r\n * const cache = cacheFactory.cache<{data: any}>();\r\n * // an item will expire after 1 minute of inactivity\r\n * const cache = cacheFactory.cache<{data: any}>(1000 * 60);\r\n * // set a value\r\n * cache.set('key', {data: 'value'});\r\n * ```\r\n */\r\n cache(ttlMs?: number): TimedCache {\r\n return new TimedValueCache(ttlMs ?? Infinity);\r\n },\r\n /**\r\n * Used to cache entries which can be removed if not accessed after a specified time. For example\r\n * if the `ttlMs` equals 5 minutes and an item is retrieved before time has elapsed, that entry\r\n * will live for another 5 minutes.\r\n * @param ttlMs - The ammount of time in milliseconds a cached entry can exist without being accessed.\r\n * For example, if `get(TKey)` was called 6 minutes ago and the `ttlMs` equals 5 minutes, that entry\r\n * will have been deleted.\r\n * @param hashAlgorithm - The hashing algorithm to use for the key (default: md5)\r\n * @example ```ts\r\n * // no expiration\r\n * const cache = cacheFactory.keyValueCache<{key: string}, {value: string}>();\r\n * // an item will expire after 2 minutes of inactivity\r\n * const cache = cacheFactory.keyValueCache<{key: string}, {value: string}>(1000 * 60 * 2);\r\n * // set a value\r\n * cache.set({key: 'foo'}, {value: 'bar'});\r\n * ```\r\n */\r\n keyValueCache(\r\n ttlMs?: number,\r\n hashAlgorithm = HashAlgorithm.md5,\r\n ): TimedCache {\r\n return new TimedKeyValueCache(ttlMs ?? Infinity, hashAlgorithm);\r\n },\r\n /**\r\n * Used to cache entries which can be removed if not accessed after a specified time. For example\r\n * if the `ttlMs` equals 5 minutes and an item is retrieved before time has elapsed, that entry\r\n * will live for another 5 minutes.\r\n * @param ttlMs - The ammount of time in milliseconds a cached entry can exist without being accessed.\r\n * For example, if `get(TKey)` was called 6 minutes ago and the `ttlMs` equals 5 minutes, that entry\r\n * will have been deleted.\r\n * @example ```ts\r\n * // no expiration\r\n * const cache = cacheFactory.namedKeyCache<{data: any}>();\r\n * // an item will expire after 2 minutes of inactivity\r\n * const cache = cacheFactory.namedKeyCache<{data: any}>(1000 * 60 * 2);\r\n * // set a value\r\n * cache.set(new NamedKey('name', 'foo'), {data: 'foo'});\r\n * cache.set(new NamedKey('name', 'bar'), {data: 'bar'});\r\n * // get all entries with the name 'name' (returns [{data: 'foo'}, {data: 'bar'}])\r\n * const entries = cache.getAllByName('name');\r\n * // delete all entries with the name 'name' (returns 2)\r\n * cache.deleteAllByName('name');\r\n */\r\n namedKeyCache(ttlMs?: number): TimedCache, TValue> {\r\n return new NamedKeyCache(ttlMs);\r\n },\r\n /**\r\n * Tracks the last time the provided key was accessed.\r\n * @param ttlMs - Ammount of time between checks a cached item can exist (default=Infinity).\r\n * For example, if `get()` was called 15 minutes ago and\r\n * the `ttlMs` equals 14 minutes, that entry will have been deleted.\r\n * @param hashAlgorithm - The hashing algorithm to use for the key (default: md5)\r\n * @example ```ts\r\n * // tracker will reset after 3 minutes of inactivity\r\n * const tracker = cacheFactory.accessTracker(1000 * 60 * 3);\r\n * const keyTracker = tracker.get('key');\r\n * try {\r\n * // last time 'key' was retrieved or null if first time\r\n * const accessDate = keyTracker.lastAccessDate;\r\n * // do stuff...\r\n * } catch {\r\n * // if error occurs rollback to previous lastAccessDate\r\n * keyTracker.rollback();\r\n * }\r\n * ```\r\n */\r\n accessTracker(ttlMs?: number, hashAlgorithm = HashAlgorithm.md5): AccessTracker {\r\n return new AccessTrackerCache(ttlMs, hashAlgorithm);\r\n },\r\n };\r\n}\r\n\r\nexport type CacheFactory = ReturnType;\r\nexport const cacheFactory: CacheFactory = createCacheFactory();\r\n","import { ITelemetryItem } from '@microsoft/applicationinsights-web';\r\nimport { isEqual, truncate } from 'lodash-es';\r\n\r\nconst appInsightsMaxPropLength = 8192;\r\n\r\nexport function createSafeProp(value: string | T) {\r\n const t = (val: string) =>\r\n truncate(val, { omission: '... [truncated]', length: appInsightsMaxPropLength });\r\n if (typeof value === 'string') {\r\n return t(value);\r\n }\r\n try {\r\n if (isEqual(value, {})) {\r\n return null;\r\n }\r\n const json = JSON.stringify(value);\r\n return t(json);\r\n } catch (err: any) {\r\n return `Error serializing/truncating json property: ${err.message}`;\r\n }\r\n}\r\n\r\nexport function createSafeProps(val: T): { [name: string]: string } {\r\n const result: { [name: string]: string } = {};\r\n Object.entries(val).forEach(([key, value]) => {\r\n const propVal = createSafeProp(value as string);\r\n if (propVal != null) {\r\n result[String(key)] = propVal;\r\n }\r\n });\r\n return result;\r\n}\r\n\r\nexport function patchTelemetryProps(item: ITelemetryItem, props: T) {\r\n if (item?.data != null) {\r\n const oldProps = item.data;\r\n const newProps = createSafeProps(props);\r\n item.data =\r\n oldProps != null\r\n ? {\r\n ...oldProps,\r\n ...newProps,\r\n }\r\n : newProps;\r\n return true;\r\n }\r\n return false;\r\n}\r\n","import { Action } from '@ngrx/store';\r\nimport { TcsEntityRecord } from 'src/store/generated/client-sync.generated';\r\n\r\nexport const FETCH_ENTITIES = '[Entities] FETCH_ENTITIES';\r\nexport const ENTITIES_RECEIVED = '[Entities] ENTITIES_RECEIVED';\r\nexport const ENTITIES_REMOVED = '[Entities] ENTITIES_REMOVED';\r\nexport const REQUEST_ENTITIES = '[Entities] ENTITIES_FETCHED';\r\nexport const RESET_ENTITIES = '[Entities] RESET_ENTITIES';\r\n\r\nexport class FetchEntities implements Action {\r\n public readonly type = FETCH_ENTITIES;\r\n constructor(public readonly fetched: { type: string; id: string }[]) {}\r\n}\r\n\r\nexport type EntityChangeType = EntityUpdateChangeType | 'Removed';\r\n\r\nexport type EntityUpdateChangeType = 'Fetched' | 'Added' | 'Changed';\r\n\r\nexport interface EntitySnapshotDto {\r\n readonly key: string;\r\n readonly type: string;\r\n readonly source: EntityChangeType;\r\n readonly state: any;\r\n}\r\n\r\nexport type EntitySnapshot =\r\n | {\r\n readonly key: string;\r\n readonly type: string;\r\n readonly source: EntityUpdateChangeType;\r\n readonly state: TcsEntityRecord;\r\n }\r\n | {\r\n readonly key: string;\r\n readonly type: string;\r\n readonly source: 'Removed';\r\n };\r\n\r\nexport interface EntitySnapshotCollection {\r\n readonly entities: EntitySnapshotDto[];\r\n}\r\n\r\nexport class EntitiesReceived implements Action {\r\n public readonly type = ENTITIES_RECEIVED;\r\n constructor(public readonly entities: EntitySnapshot[], public readonly source?: string) {}\r\n}\r\n\r\nexport class ResetEntities implements Action {\r\n public readonly type = RESET_ENTITIES;\r\n}\r\n\r\nexport class RequestEntities implements Action {\r\n public readonly type = REQUEST_ENTITIES;\r\n}\r\n\r\nexport type All = FetchEntities | EntitiesReceived | ResetEntities;\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n CoordinatesRecord,\r\n CoordinatesProps,\r\n} from 'src/store/generated/coordinates-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface AddressProps {\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: CoordinatesProps | null;\r\n}\r\n\r\nexport class AddressRecord extends Record({\r\n streetAddress: null as any,\r\n city: null as any,\r\n region: null as any,\r\n postalCode: null as any,\r\n country: null as any,\r\n county: null as any,\r\n gpsId: null as any,\r\n coordinates: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: any;\r\n }): AddressRecord {\r\n if (json == null) {\r\n throw new Error('AddressRecord.fromJS: parameter cannot be null');\r\n }\r\n return new AddressRecord({\r\n streetAddress: json.streetAddress,\r\n city: json.city,\r\n region: json.region,\r\n postalCode: json.postalCode,\r\n country: json.country,\r\n county: json.county,\r\n gpsId: json.gpsId,\r\n coordinates: json.coordinates != null ? new CoordinatesRecord(json.coordinates) : null,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n streetAddress: string | null;\r\n city: string | null;\r\n region: string | null;\r\n postalCode: string | null;\r\n country: string | null;\r\n county: string | null;\r\n gpsId: string | null;\r\n coordinates: any;\r\n }): [AddressRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('AddressRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new AddressRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n streetAddress: tryOrDefault(\r\n () => json.streetAddress,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n city: tryOrDefault(\r\n () => json.city,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n region: tryOrDefault(\r\n () => json.region,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n postalCode: tryOrDefault(\r\n () => json.postalCode,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n country: tryOrDefault(\r\n () => json.country,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n county: tryOrDefault(\r\n () => json.county,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n gpsId: tryOrDefault(\r\n () => json.gpsId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n coordinates: tryOrDefault(\r\n () => (json.coordinates != null ? new CoordinatesRecord(json.coordinates) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: AddressProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('AddressRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class AddressViewModelBase implements AddressProps {\r\n protected readonly _props: AddressProps;\r\n private _json?: AddressProps;\r\n\r\n get streetAddress(): string | null {\r\n return this._props.streetAddress;\r\n }\r\n get city(): string | null {\r\n return this._props.city;\r\n }\r\n get region(): string | null {\r\n return this._props.region;\r\n }\r\n get postalCode(): string | null {\r\n return this._props.postalCode;\r\n }\r\n get country(): string | null {\r\n return this._props.country;\r\n }\r\n get county(): string | null {\r\n return this._props.county;\r\n }\r\n get gpsId(): string | null {\r\n return this._props.gpsId;\r\n }\r\n get coordinates(): CoordinatesProps | null {\r\n return this._props.coordinates;\r\n }\r\n\r\n constructor(props: AddressProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n streetAddress: this._props.streetAddress,\r\n city: this._props.city,\r\n region: this._props.region,\r\n postalCode: this._props.postalCode,\r\n country: this._props.country,\r\n county: this._props.county,\r\n gpsId: this._props.gpsId,\r\n coordinates: this._props.coordinates,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface IdListItemProps {\r\n id: string;\r\n}\r\n\r\nexport class IdListItemRecord extends Record({\r\n id: null as any,\r\n}) {\r\n public static fromJS(json: { id: string }): IdListItemRecord {\r\n if (json == null) {\r\n throw new Error('IdListItemRecord.fromJS: parameter cannot be null');\r\n }\r\n return new IdListItemRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'IdListItemJson.id'),\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: { id: string }): [IdListItemRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('IdListItemRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new IdListItemRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'IdListItemJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: IdListItemProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('IdListItemRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class IdListItemViewModelBase implements IdListItemProps {\r\n protected readonly _props: IdListItemProps;\r\n private _json?: IdListItemProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n\r\n constructor(props: IdListItemProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n AutomatedAlertAlgorithmType,\r\n MissionRoleType,\r\n OperationType,\r\n OutOfServiceType,\r\n SystemTimestampType,\r\n VehicleType,\r\n WaypointType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { AddressRecord, AddressProps } from 'src/store/generated/address-record.generated';\r\nimport {\r\n IdListItemRecord,\r\n IdListItemProps,\r\n} from 'src/store/generated/id-list-item-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ActivationRuleProps {\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: Set | null;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n address: AddressProps | null;\r\n operationTypes: Set | null;\r\n declineReasons: List | null;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n communicationCenters: List | null;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: Set | null;\r\n missionRoleTypes: Set | null;\r\n companies: List | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ActivationRuleRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n isShared: null as any,\r\n companyId: null as any,\r\n regionId: null as any,\r\n baseId: null as any,\r\n unitId: null as any,\r\n vehicleId: null as any,\r\n vehicleTypes: null as any,\r\n medicalFacilityId: null as any,\r\n locationId: null as any,\r\n address: null as any,\r\n operationTypes: null as any,\r\n declineReasons: null as any,\r\n timestampTypeId: null as any,\r\n systemTimestampType: null as any,\r\n outOfServiceReasonId: null as any,\r\n communicationCenters: null as any,\r\n outOfServiceType: null as any,\r\n automatedAlertAlgorithmType: null as any,\r\n ageInMinutes: null as any,\r\n waypointTypes: null as any,\r\n missionRoleTypes: null as any,\r\n companies: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: any;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n address: any;\r\n operationTypes: any;\r\n declineReasons: any;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n communicationCenters: any;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: any;\r\n missionRoleTypes: any;\r\n companies: any;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ActivationRuleRecord {\r\n if (json == null) {\r\n throw new Error('ActivationRuleRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ActivationRuleRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ActivationRuleJson.id'),\r\n name: json.name,\r\n isShared: json.isShared,\r\n companyId: json.companyId,\r\n regionId: json.regionId,\r\n baseId: json.baseId,\r\n unitId: json.unitId,\r\n vehicleId: json.vehicleId,\r\n vehicleTypes: json.vehicleTypes != null ? Set(json.vehicleTypes) : null,\r\n medicalFacilityId: json.medicalFacilityId,\r\n locationId: json.locationId,\r\n address: json.address != null ? new AddressRecord(json.address) : null,\r\n operationTypes: json.operationTypes != null ? Set(json.operationTypes) : null,\r\n declineReasons:\r\n json.declineReasons != null\r\n ? List(json.declineReasons.map((o: any) => new IdListItemRecord(o)))\r\n : null,\r\n timestampTypeId: json.timestampTypeId,\r\n systemTimestampType: json.systemTimestampType,\r\n outOfServiceReasonId: json.outOfServiceReasonId,\r\n communicationCenters:\r\n json.communicationCenters != null\r\n ? List(\r\n json.communicationCenters.map((o: any) => new IdListItemRecord(o)),\r\n )\r\n : null,\r\n outOfServiceType: json.outOfServiceType,\r\n automatedAlertAlgorithmType: json.automatedAlertAlgorithmType,\r\n ageInMinutes: json.ageInMinutes,\r\n waypointTypes: json.waypointTypes != null ? Set(json.waypointTypes) : null,\r\n missionRoleTypes:\r\n json.missionRoleTypes != null ? Set(json.missionRoleTypes) : null,\r\n companies:\r\n json.companies != null\r\n ? List(json.companies.map((o: any) => new IdListItemRecord(o)))\r\n : null,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string | null;\r\n isShared: boolean | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n baseId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n vehicleTypes: any;\r\n medicalFacilityId: string | null;\r\n locationId: string | null;\r\n address: any;\r\n operationTypes: any;\r\n declineReasons: any;\r\n timestampTypeId: string | null;\r\n systemTimestampType: SystemTimestampType | null;\r\n outOfServiceReasonId: string | null;\r\n communicationCenters: any;\r\n outOfServiceType: OutOfServiceType | null;\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType | null;\r\n ageInMinutes: number | null;\r\n waypointTypes: any;\r\n missionRoleTypes: any;\r\n companies: any;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ActivationRuleRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ActivationRuleRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ActivationRuleRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ActivationRuleJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => json.name,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isShared: tryOrDefault(\r\n () => json.isShared,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => json.companyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => json.regionId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseId: tryOrDefault(\r\n () => json.baseId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => json.unitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => json.vehicleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleTypes: tryOrDefault(\r\n () => (json.vehicleTypes != null ? Set(json.vehicleTypes) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n medicalFacilityId: tryOrDefault(\r\n () => json.medicalFacilityId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationId: tryOrDefault(\r\n () => json.locationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n address: tryOrDefault(\r\n () => (json.address != null ? new AddressRecord(json.address) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n operationTypes: tryOrDefault(\r\n () => (json.operationTypes != null ? Set(json.operationTypes) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n declineReasons: tryOrDefault(\r\n () =>\r\n json.declineReasons != null\r\n ? List(json.declineReasons.map((o: any) => new IdListItemRecord(o)))\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timestampTypeId: tryOrDefault(\r\n () => json.timestampTypeId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n systemTimestampType: tryOrDefault(\r\n () => json.systemTimestampType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n outOfServiceReasonId: tryOrDefault(\r\n () => json.outOfServiceReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n communicationCenters: tryOrDefault(\r\n () =>\r\n json.communicationCenters != null\r\n ? List(\r\n json.communicationCenters.map((o: any) => new IdListItemRecord(o)),\r\n )\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n outOfServiceType: tryOrDefault(\r\n () => json.outOfServiceType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n automatedAlertAlgorithmType: tryOrDefault(\r\n () => json.automatedAlertAlgorithmType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n ageInMinutes: tryOrDefault(\r\n () => json.ageInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n waypointTypes: tryOrDefault(\r\n () => (json.waypointTypes != null ? Set(json.waypointTypes) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n missionRoleTypes: tryOrDefault(\r\n () => (json.missionRoleTypes != null ? Set(json.missionRoleTypes) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companies: tryOrDefault(\r\n () =>\r\n json.companies != null\r\n ? List(json.companies.map((o: any) => new IdListItemRecord(o)))\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ActivationRuleProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ActivationRuleRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ActivationRuleViewModelBase implements ActivationRuleProps {\r\n protected readonly _props: ActivationRuleProps;\r\n private _json?: ActivationRuleProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string | null {\r\n return this._props.name;\r\n }\r\n get isShared(): boolean | null {\r\n return this._props.isShared;\r\n }\r\n get companyId(): string | null {\r\n return this._props.companyId;\r\n }\r\n get regionId(): string | null {\r\n return this._props.regionId;\r\n }\r\n get baseId(): string | null {\r\n return this._props.baseId;\r\n }\r\n get unitId(): string | null {\r\n return this._props.unitId;\r\n }\r\n get vehicleId(): string | null {\r\n return this._props.vehicleId;\r\n }\r\n get vehicleTypes(): Set | null {\r\n return this._props.vehicleTypes;\r\n }\r\n get medicalFacilityId(): string | null {\r\n return this._props.medicalFacilityId;\r\n }\r\n get locationId(): string | null {\r\n return this._props.locationId;\r\n }\r\n get address(): AddressProps | null {\r\n return this._props.address;\r\n }\r\n get operationTypes(): Set | null {\r\n return this._props.operationTypes;\r\n }\r\n get declineReasons(): List | null {\r\n return this._props.declineReasons;\r\n }\r\n get timestampTypeId(): string | null {\r\n return this._props.timestampTypeId;\r\n }\r\n get systemTimestampType(): SystemTimestampType | null {\r\n return this._props.systemTimestampType;\r\n }\r\n get outOfServiceReasonId(): string | null {\r\n return this._props.outOfServiceReasonId;\r\n }\r\n get communicationCenters(): List | null {\r\n return this._props.communicationCenters;\r\n }\r\n get outOfServiceType(): OutOfServiceType | null {\r\n return this._props.outOfServiceType;\r\n }\r\n get automatedAlertAlgorithmType(): AutomatedAlertAlgorithmType | null {\r\n return this._props.automatedAlertAlgorithmType;\r\n }\r\n get ageInMinutes(): number | null {\r\n return this._props.ageInMinutes;\r\n }\r\n get waypointTypes(): Set | null {\r\n return this._props.waypointTypes;\r\n }\r\n get missionRoleTypes(): Set | null {\r\n return this._props.missionRoleTypes;\r\n }\r\n get companies(): List | null {\r\n return this._props.companies;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isArriveBase() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveBase;\r\n }\r\n public get isArriveBedsideReceiving() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveBedsideReceiving;\r\n }\r\n public get isArriveDropoff() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveDropoff;\r\n }\r\n public get isArriveDropoffLzViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveDropoffLzViaGround;\r\n }\r\n public get isArrivePatient() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArrivePatient;\r\n }\r\n public get isArrivePickup() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArrivePickup;\r\n }\r\n public get isArrivePickupLzViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArrivePickupLzViaGround;\r\n }\r\n public get isArriveReceivingViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveReceivingViaGround;\r\n }\r\n public get isArriveSendingViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveSendingViaGround;\r\n }\r\n public get isArriveWaypoint() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveWaypoint;\r\n }\r\n public get isAssignmentStarted() {\r\n return this._props.systemTimestampType === SystemTimestampType.AssignmentStarted;\r\n }\r\n public get isCardClosed() {\r\n return this._props.systemTimestampType === SystemTimestampType.CardClosed;\r\n }\r\n public get isConfirmedDropoffGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.ConfirmedDropoffGround;\r\n }\r\n public get isConfirmedPickupGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.ConfirmedPickupGround;\r\n }\r\n public get isCrewNotificationReceived() {\r\n return this._props.systemTimestampType === SystemTimestampType.CrewNotificationReceived;\r\n }\r\n public get isCrewNotified() {\r\n return this._props.systemTimestampType === SystemTimestampType.CrewNotified;\r\n }\r\n public get isCustom() {\r\n return this._props.systemTimestampType === SystemTimestampType.Custom;\r\n }\r\n public get isDepartBase() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartBase;\r\n }\r\n public get isDepartBedsideReceiving() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartBedsideReceiving;\r\n }\r\n public get isDepartDropoff() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartDropoff;\r\n }\r\n public get isDepartDropoffLzViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartDropoffLzViaGround;\r\n }\r\n public get isDepartPickup() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartPickup;\r\n }\r\n public get isDepartPickupLzViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartPickupLzViaGround;\r\n }\r\n public get isDepartReceivingViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartReceivingViaGround;\r\n }\r\n public get isDepartSendingViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartSendingViaGround;\r\n }\r\n public get isDepartWaypoint() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartWaypoint;\r\n }\r\n public get isDepartWithPatient() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartWithPatient;\r\n }\r\n public get isEmsReport() {\r\n return this._props.systemTimestampType === SystemTimestampType.EmsReport;\r\n }\r\n public get isEnRouteToPatient() {\r\n return this._props.systemTimestampType === SystemTimestampType.EnRouteToPatient;\r\n }\r\n public get isEnRouteToPickup() {\r\n return this._props.systemTimestampType === SystemTimestampType.EnRouteToPickup;\r\n }\r\n public get isEtaProvided() {\r\n return this._props.systemTimestampType === SystemTimestampType.EtaProvided;\r\n }\r\n public get isExternalActionCancellationRequested() {\r\n return (\r\n this._props.systemTimestampType === SystemTimestampType.ExternalActionCancellationRequested\r\n );\r\n }\r\n public get isExternalActionRemoveStandby() {\r\n return this._props.systemTimestampType === SystemTimestampType.ExternalActionRemoveStandby;\r\n }\r\n public get isExternalRequestDisregarded() {\r\n return this._props.systemTimestampType === SystemTimestampType.ExternalRequestDisregarded;\r\n }\r\n public get isFboConfirmed() {\r\n return this._props.systemTimestampType === SystemTimestampType.FboConfirmed;\r\n }\r\n public get isInitialDeparture() {\r\n return this._props.systemTimestampType === SystemTimestampType.InitialDeparture;\r\n }\r\n public get isManifestConfirmed() {\r\n return this._props.systemTimestampType === SystemTimestampType.ManifestConfirmed;\r\n }\r\n public get isMedicalControlContactAttempted() {\r\n return this._props.systemTimestampType === SystemTimestampType.MedicalControlContactAttempted;\r\n }\r\n public get isOperationCancelled() {\r\n return this._props.systemTimestampType === SystemTimestampType.OperationCancelled;\r\n }\r\n public get isOperationCompleted() {\r\n return this._props.systemTimestampType === SystemTimestampType.OperationCompleted;\r\n }\r\n public get isOverheadDropoff() {\r\n return this._props.systemTimestampType === SystemTimestampType.OverheadDropoff;\r\n }\r\n public get isOverheadPickup() {\r\n return this._props.systemTimestampType === SystemTimestampType.OverheadPickup;\r\n }\r\n public get isPaipEvent() {\r\n return this._props.systemTimestampType === SystemTimestampType.PaipEvent;\r\n }\r\n public get isPatientInfoMessageSent() {\r\n return this._props.systemTimestampType === SystemTimestampType.PatientInfoMessageSent;\r\n }\r\n public get isPlacedOnStandby() {\r\n return this._props.systemTimestampType === SystemTimestampType.PlacedOnStandby;\r\n }\r\n public get isReceivingFacilityRequestAccepted() {\r\n return this._props.systemTimestampType === SystemTimestampType.ReceivingFacilityRequestAccepted;\r\n }\r\n public get isReceivingFacilityRequestCancelled() {\r\n return (\r\n this._props.systemTimestampType === SystemTimestampType.ReceivingFacilityRequestCancelled\r\n );\r\n }\r\n public get isReceivingFacilityRequestDenied() {\r\n return this._props.systemTimestampType === SystemTimestampType.ReceivingFacilityRequestDenied;\r\n }\r\n public get isReceivingFacilityRequestDiverted() {\r\n return this._props.systemTimestampType === SystemTimestampType.ReceivingFacilityRequestDiverted;\r\n }\r\n public get isReceivingFacilityRequestReferred() {\r\n return this._props.systemTimestampType === SystemTimestampType.ReceivingFacilityRequestReferred;\r\n }\r\n public get isReferRequest() {\r\n return this._props.systemTimestampType === SystemTimestampType.ReferRequest;\r\n }\r\n public get isRequestCancelled() {\r\n return this._props.systemTimestampType === SystemTimestampType.RequestCancelled;\r\n }\r\n public get isRequestReactivated() {\r\n return this._props.systemTimestampType === SystemTimestampType.RequestReactivated;\r\n }\r\n public get isRequestReceived() {\r\n return this._props.systemTimestampType === SystemTimestampType.RequestReceived;\r\n }\r\n public get isResendToDW() {\r\n return this._props.systemTimestampType === SystemTimestampType.ResendToDW;\r\n }\r\n public get isSentToImageTrend() {\r\n return this._props.systemTimestampType === SystemTimestampType.SentToImageTrend;\r\n }\r\n public get isStandbyRemoved() {\r\n return this._props.systemTimestampType === SystemTimestampType.StandbyRemoved;\r\n }\r\n public get isTransportCheckInitiated() {\r\n return this._props.systemTimestampType === SystemTimestampType.TransportCheckInitiated;\r\n }\r\n public get isUnitAborted() {\r\n return this._props.systemTimestampType === SystemTimestampType.UnitAborted;\r\n }\r\n public get isUnitActivated() {\r\n return this._props.systemTimestampType === SystemTimestampType.UnitActivated;\r\n }\r\n public get isUnitAssigned() {\r\n return this._props.systemTimestampType === SystemTimestampType.UnitAssigned;\r\n }\r\n public get isUnitOffered() {\r\n return this._props.systemTimestampType === SystemTimestampType.UnitOffered;\r\n }\r\n public get isWebOrderAcknowledged() {\r\n return this._props.systemTimestampType === SystemTimestampType.WebOrderAcknowledged;\r\n }\r\n public get isOpportunistic() {\r\n return this._props.outOfServiceType === OutOfServiceType.Opportunistic;\r\n }\r\n public get isScheduled() {\r\n return this._props.outOfServiceType === OutOfServiceType.Scheduled;\r\n }\r\n public get isUnscheduled() {\r\n return this._props.outOfServiceType === OutOfServiceType.Unscheduled;\r\n }\r\n public get isTimeElapsedFromTimestamp() {\r\n return (\r\n this._props.automatedAlertAlgorithmType ===\r\n AutomatedAlertAlgorithmType.TimeElapsedFromTimestamp\r\n );\r\n }\r\n\r\n public isAnySystemTimestampType(...systemTimestampType: SystemTimestampType[]) {\r\n return (\r\n this._props.systemTimestampType != null &&\r\n systemTimestampType.includes(this._props.systemTimestampType)\r\n );\r\n }\r\n public isAnyOutOfServiceType(...outOfServiceType: OutOfServiceType[]) {\r\n return (\r\n this._props.outOfServiceType != null &&\r\n outOfServiceType.includes(this._props.outOfServiceType)\r\n );\r\n }\r\n public isAnyAutomatedAlertAlgorithmType(\r\n ...automatedAlertAlgorithmType: AutomatedAlertAlgorithmType[]\r\n ) {\r\n return (\r\n this._props.automatedAlertAlgorithmType != null &&\r\n automatedAlertAlgorithmType.includes(this._props.automatedAlertAlgorithmType)\r\n );\r\n }\r\n\r\n constructor(props: ActivationRuleProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n isShared: this._props.isShared,\r\n companyId: this._props.companyId,\r\n regionId: this._props.regionId,\r\n baseId: this._props.baseId,\r\n unitId: this._props.unitId,\r\n vehicleId: this._props.vehicleId,\r\n vehicleTypes: this._props.vehicleTypes,\r\n medicalFacilityId: this._props.medicalFacilityId,\r\n locationId: this._props.locationId,\r\n address: this._props.address,\r\n operationTypes: this._props.operationTypes,\r\n declineReasons: this._props.declineReasons,\r\n timestampTypeId: this._props.timestampTypeId,\r\n systemTimestampType: this._props.systemTimestampType,\r\n outOfServiceReasonId: this._props.outOfServiceReasonId,\r\n communicationCenters: this._props.communicationCenters,\r\n outOfServiceType: this._props.outOfServiceType,\r\n automatedAlertAlgorithmType: this._props.automatedAlertAlgorithmType,\r\n ageInMinutes: this._props.ageInMinutes,\r\n waypointTypes: this._props.waypointTypes,\r\n missionRoleTypes: this._props.missionRoleTypes,\r\n companies: this._props.companies,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllActivationRuleEntities = (state: AppState) =>\r\n state.entityStores.activationRule.entities;\r\n\r\nexport const selectActivationRuleById = (id: string) => (state: AppState) =>\r\n state.entityStores.activationRule.entities.get(id);\r\n\r\nexport const selectActivationRuleMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.activationRule.meta.get(id);\r\n\r\nexport const selectActivationRuleAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectActivationRuleById(id),\r\n selectActivationRuleMetadataById(id),\r\n (activationRule, meta) => ({ activationRule, meta }),\r\n );\r\n\r\nexport function selectActivationRuleEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllActivationRuleEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ActivationRuleRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByName(name: string) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByIsShared(isShared: boolean) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.isShared === isShared).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByBaseId(baseId: string) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.baseId === baseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByMedicalFacilityId(medicalFacilityId: string) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.medicalFacilityId === medicalFacilityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByLocationId(locationId: string) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.locationId === locationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByTimestampTypeId(timestampTypeId: string) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.timestampTypeId === timestampTypeId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesBySystemTimestampType(\r\n systemTimestampType: SystemTimestampType,\r\n) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.systemTimestampType === systemTimestampType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByOutOfServiceReasonId(outOfServiceReasonId: string) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.outOfServiceReasonId === outOfServiceReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByOutOfServiceType(outOfServiceType: OutOfServiceType) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.outOfServiceType === outOfServiceType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByAutomatedAlertAlgorithmType(\r\n automatedAlertAlgorithmType: AutomatedAlertAlgorithmType,\r\n) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities\r\n .filter((e) => e.automatedAlertAlgorithmType === automatedAlertAlgorithmType)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActivationRuleEntitiesByAgeInMinutes(ageInMinutes: number) {\r\n return createSelector(selectAllActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.ageInMinutes === ageInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n AlertLifecycleStage,\r\n AlertTarget,\r\n AlertUrgency,\r\n EntityType,\r\n RuleMatchType,\r\n VisibilityType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ActiveAlertProps {\r\n id: string;\r\n urgency: AlertUrgency;\r\n target: AlertTarget | null;\r\n targetId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n title: string | null;\r\n content: string;\r\n definitionId: string | null;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n dateAcknowledged: Date | null;\r\n acknowledgedById: string | null;\r\n matchType: RuleMatchType;\r\n parentEntityType: EntityType | null;\r\n parentEntityId: string | null;\r\n activationTime: Date | null;\r\n visibilityType: VisibilityType;\r\n escalationDurationInSeconds: number | null;\r\n snoozeMaxInSeconds: number | null;\r\n authorId: string | null;\r\n regionId: string | null;\r\n communicationCenterId: string | null;\r\n lookupHash: string | null;\r\n isGpsAlert: boolean;\r\n referenceEntityType: EntityType | null;\r\n referenceEntityId: string | null;\r\n isActive: boolean;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ActiveAlertRecord extends Record({\r\n id: null as any,\r\n urgency: null as any,\r\n target: null as any,\r\n targetId: null as any,\r\n entityType: null as any,\r\n entityId: null as any,\r\n title: null as any,\r\n content: null as any,\r\n definitionId: null as any,\r\n lifecycleStage: null as any,\r\n requiresAcknowledgement: null as any,\r\n dateAcknowledged: null as any,\r\n acknowledgedById: null as any,\r\n matchType: null as any,\r\n parentEntityType: null as any,\r\n parentEntityId: null as any,\r\n activationTime: null as any,\r\n visibilityType: null as any,\r\n escalationDurationInSeconds: null as any,\r\n snoozeMaxInSeconds: null as any,\r\n authorId: null as any,\r\n regionId: null as any,\r\n communicationCenterId: null as any,\r\n lookupHash: null as any,\r\n isGpsAlert: null as any,\r\n referenceEntityType: null as any,\r\n referenceEntityId: null as any,\r\n isActive: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n urgency: AlertUrgency;\r\n target: AlertTarget | null;\r\n targetId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n title: string | null;\r\n content: string;\r\n definitionId: string | null;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n dateAcknowledged: string | number | Date | null;\r\n acknowledgedById: string | null;\r\n matchType: RuleMatchType;\r\n parentEntityType: EntityType | null;\r\n parentEntityId: string | null;\r\n activationTime: string | number | Date | null;\r\n visibilityType: VisibilityType;\r\n escalationDurationInSeconds: number | null;\r\n snoozeMaxInSeconds: number | null;\r\n authorId: string | null;\r\n regionId: string | null;\r\n communicationCenterId: string | null;\r\n lookupHash: string | null;\r\n isGpsAlert: boolean;\r\n referenceEntityType: EntityType | null;\r\n referenceEntityId: string | null;\r\n isActive: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ActiveAlertRecord {\r\n if (json == null) {\r\n throw new Error('ActiveAlertRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ActiveAlertRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ActiveAlertJson.id'),\r\n urgency: getFromOrThrow(json, (j) => j.urgency, 'ActiveAlertJson.urgency'),\r\n target: json.target,\r\n targetId: json.targetId,\r\n entityType: json.entityType,\r\n entityId: json.entityId,\r\n title: json.title,\r\n content: getFromOrThrow(json, (j) => j.content, 'ActiveAlertJson.content'),\r\n definitionId: json.definitionId,\r\n lifecycleStage: getFromOrThrow(\r\n json,\r\n (j) => j.lifecycleStage,\r\n 'ActiveAlertJson.lifecycleStage',\r\n ),\r\n requiresAcknowledgement: getFromOrThrow(\r\n json,\r\n (j) => j.requiresAcknowledgement,\r\n 'ActiveAlertJson.requiresAcknowledgement',\r\n ),\r\n dateAcknowledged: json.dateAcknowledged != null ? new Date(json.dateAcknowledged) : null,\r\n acknowledgedById: json.acknowledgedById,\r\n matchType: getFromOrThrow(json, (j) => j.matchType, 'ActiveAlertJson.matchType'),\r\n parentEntityType: json.parentEntityType,\r\n parentEntityId: json.parentEntityId,\r\n activationTime: json.activationTime != null ? new Date(json.activationTime) : null,\r\n visibilityType: getFromOrThrow(\r\n json,\r\n (j) => j.visibilityType,\r\n 'ActiveAlertJson.visibilityType',\r\n ),\r\n escalationDurationInSeconds: json.escalationDurationInSeconds,\r\n snoozeMaxInSeconds: json.snoozeMaxInSeconds,\r\n authorId: json.authorId,\r\n regionId: json.regionId,\r\n communicationCenterId: json.communicationCenterId,\r\n lookupHash: json.lookupHash,\r\n isGpsAlert: getFromOrThrow(json, (j) => j.isGpsAlert, 'ActiveAlertJson.isGpsAlert'),\r\n referenceEntityType: json.referenceEntityType,\r\n referenceEntityId: json.referenceEntityId,\r\n isActive: getFromOrThrow(json, (j) => j.isActive, 'ActiveAlertJson.isActive'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'ActiveAlertJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n urgency: AlertUrgency;\r\n target: AlertTarget | null;\r\n targetId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n title: string | null;\r\n content: string;\r\n definitionId: string | null;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n dateAcknowledged: string | number | Date | null;\r\n acknowledgedById: string | null;\r\n matchType: RuleMatchType;\r\n parentEntityType: EntityType | null;\r\n parentEntityId: string | null;\r\n activationTime: string | number | Date | null;\r\n visibilityType: VisibilityType;\r\n escalationDurationInSeconds: number | null;\r\n snoozeMaxInSeconds: number | null;\r\n authorId: string | null;\r\n regionId: string | null;\r\n communicationCenterId: string | null;\r\n lookupHash: string | null;\r\n isGpsAlert: boolean;\r\n referenceEntityType: EntityType | null;\r\n referenceEntityId: string | null;\r\n isActive: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ActiveAlertRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ActiveAlertRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ActiveAlertRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ActiveAlertJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n urgency: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.urgency, 'ActiveAlertJson.urgency'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n target: tryOrDefault(\r\n () => json.target,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n targetId: tryOrDefault(\r\n () => json.targetId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityType: tryOrDefault(\r\n () => json.entityType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityId: tryOrDefault(\r\n () => json.entityId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n title: tryOrDefault(\r\n () => json.title,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n content: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.content, 'ActiveAlertJson.content'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n definitionId: tryOrDefault(\r\n () => json.definitionId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lifecycleStage: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.lifecycleStage, 'ActiveAlertJson.lifecycleStage'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requiresAcknowledgement: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requiresAcknowledgement,\r\n 'ActiveAlertJson.requiresAcknowledgement',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateAcknowledged: tryOrDefault(\r\n () => (json.dateAcknowledged != null ? new Date(json.dateAcknowledged) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n acknowledgedById: tryOrDefault(\r\n () => json.acknowledgedById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n matchType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.matchType, 'ActiveAlertJson.matchType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n parentEntityType: tryOrDefault(\r\n () => json.parentEntityType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n parentEntityId: tryOrDefault(\r\n () => json.parentEntityId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n activationTime: tryOrDefault(\r\n () => (json.activationTime != null ? new Date(json.activationTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n visibilityType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.visibilityType, 'ActiveAlertJson.visibilityType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n escalationDurationInSeconds: tryOrDefault(\r\n () => json.escalationDurationInSeconds,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n snoozeMaxInSeconds: tryOrDefault(\r\n () => json.snoozeMaxInSeconds,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n authorId: tryOrDefault(\r\n () => json.authorId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => json.regionId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n communicationCenterId: tryOrDefault(\r\n () => json.communicationCenterId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lookupHash: tryOrDefault(\r\n () => json.lookupHash,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isGpsAlert: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isGpsAlert, 'ActiveAlertJson.isGpsAlert'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n referenceEntityType: tryOrDefault(\r\n () => json.referenceEntityType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n referenceEntityId: tryOrDefault(\r\n () => json.referenceEntityId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isActive: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isActive, 'ActiveAlertJson.isActive'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'ActiveAlertJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ActiveAlertProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ActiveAlertRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ActiveAlertViewModelBase implements ActiveAlertProps {\r\n protected readonly _props: ActiveAlertProps;\r\n private _json?: ActiveAlertProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get urgency(): AlertUrgency {\r\n return this._props.urgency;\r\n }\r\n get target(): AlertTarget | null {\r\n return this._props.target;\r\n }\r\n get targetId(): string | null {\r\n return this._props.targetId;\r\n }\r\n get entityType(): EntityType | null {\r\n return this._props.entityType;\r\n }\r\n get entityId(): string | null {\r\n return this._props.entityId;\r\n }\r\n get title(): string | null {\r\n return this._props.title;\r\n }\r\n get content(): string {\r\n return this._props.content;\r\n }\r\n get definitionId(): string | null {\r\n return this._props.definitionId;\r\n }\r\n get lifecycleStage(): AlertLifecycleStage {\r\n return this._props.lifecycleStage;\r\n }\r\n get requiresAcknowledgement(): boolean {\r\n return this._props.requiresAcknowledgement;\r\n }\r\n get dateAcknowledged(): Date | null {\r\n return this._props.dateAcknowledged;\r\n }\r\n get acknowledgedById(): string | null {\r\n return this._props.acknowledgedById;\r\n }\r\n get matchType(): RuleMatchType {\r\n return this._props.matchType;\r\n }\r\n get parentEntityType(): EntityType | null {\r\n return this._props.parentEntityType;\r\n }\r\n get parentEntityId(): string | null {\r\n return this._props.parentEntityId;\r\n }\r\n get activationTime(): Date | null {\r\n return this._props.activationTime;\r\n }\r\n get visibilityType(): VisibilityType {\r\n return this._props.visibilityType;\r\n }\r\n get escalationDurationInSeconds(): number | null {\r\n return this._props.escalationDurationInSeconds;\r\n }\r\n get snoozeMaxInSeconds(): number | null {\r\n return this._props.snoozeMaxInSeconds;\r\n }\r\n get authorId(): string | null {\r\n return this._props.authorId;\r\n }\r\n get regionId(): string | null {\r\n return this._props.regionId;\r\n }\r\n get communicationCenterId(): string | null {\r\n return this._props.communicationCenterId;\r\n }\r\n get lookupHash(): string | null {\r\n return this._props.lookupHash;\r\n }\r\n get isGpsAlert(): boolean {\r\n return this._props.isGpsAlert;\r\n }\r\n get referenceEntityType(): EntityType | null {\r\n return this._props.referenceEntityType;\r\n }\r\n get referenceEntityId(): string | null {\r\n return this._props.referenceEntityId;\r\n }\r\n get isActive(): boolean {\r\n return this._props.isActive;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCritical() {\r\n return this._props.urgency === AlertUrgency.Critical;\r\n }\r\n public get isInformation() {\r\n return this._props.urgency === AlertUrgency.Information;\r\n }\r\n public get isWarning() {\r\n return this._props.urgency === AlertUrgency.Warning;\r\n }\r\n public get isTargetCard() {\r\n return this._props.target === AlertTarget.Card;\r\n }\r\n public get isEntityTypeCard() {\r\n return this._props.entityType === EntityType.Card;\r\n }\r\n public get isParentEntityTypeCard() {\r\n return this._props.parentEntityType === EntityType.Card;\r\n }\r\n public get isReferenceEntityTypeCard() {\r\n return this._props.referenceEntityType === EntityType.Card;\r\n }\r\n public get isTargetCompany() {\r\n return this._props.target === AlertTarget.Company;\r\n }\r\n public get isEntityTypeCompany() {\r\n return this._props.entityType === EntityType.Company;\r\n }\r\n public get isParentEntityTypeCompany() {\r\n return this._props.parentEntityType === EntityType.Company;\r\n }\r\n public get isReferenceEntityTypeCompany() {\r\n return this._props.referenceEntityType === EntityType.Company;\r\n }\r\n public get isTargetRegion() {\r\n return this._props.target === AlertTarget.Region;\r\n }\r\n public get isEntityTypeRegion() {\r\n return this._props.entityType === EntityType.Region;\r\n }\r\n public get isParentEntityTypeRegion() {\r\n return this._props.parentEntityType === EntityType.Region;\r\n }\r\n public get isVisibilityTypeRegion() {\r\n return this._props.visibilityType === VisibilityType.Region;\r\n }\r\n public get isReferenceEntityTypeRegion() {\r\n return this._props.referenceEntityType === EntityType.Region;\r\n }\r\n public get isEntityTypeAirport() {\r\n return this._props.entityType === EntityType.Airport;\r\n }\r\n public get isParentEntityTypeAirport() {\r\n return this._props.parentEntityType === EntityType.Airport;\r\n }\r\n public get isReferenceEntityTypeAirport() {\r\n return this._props.referenceEntityType === EntityType.Airport;\r\n }\r\n public get isEntityTypeBase() {\r\n return this._props.entityType === EntityType.Base;\r\n }\r\n public get isParentEntityTypeBase() {\r\n return this._props.parentEntityType === EntityType.Base;\r\n }\r\n public get isReferenceEntityTypeBase() {\r\n return this._props.referenceEntityType === EntityType.Base;\r\n }\r\n public get isEntityTypeCommunicationCenter() {\r\n return this._props.entityType === EntityType.CommunicationCenter;\r\n }\r\n public get isParentEntityTypeCommunicationCenter() {\r\n return this._props.parentEntityType === EntityType.CommunicationCenter;\r\n }\r\n public get isReferenceEntityTypeCommunicationCenter() {\r\n return this._props.referenceEntityType === EntityType.CommunicationCenter;\r\n }\r\n public get isEntityTypeControlZone() {\r\n return this._props.entityType === EntityType.ControlZone;\r\n }\r\n public get isParentEntityTypeControlZone() {\r\n return this._props.parentEntityType === EntityType.ControlZone;\r\n }\r\n public get isReferenceEntityTypeControlZone() {\r\n return this._props.referenceEntityType === EntityType.ControlZone;\r\n }\r\n public get isEntityTypeLocation() {\r\n return this._props.entityType === EntityType.Location;\r\n }\r\n public get isParentEntityTypeLocation() {\r\n return this._props.parentEntityType === EntityType.Location;\r\n }\r\n public get isReferenceEntityTypeLocation() {\r\n return this._props.referenceEntityType === EntityType.Location;\r\n }\r\n public get isEntityTypeMedicalFacility() {\r\n return this._props.entityType === EntityType.MedicalFacility;\r\n }\r\n public get isParentEntityTypeMedicalFacility() {\r\n return this._props.parentEntityType === EntityType.MedicalFacility;\r\n }\r\n public get isReferenceEntityTypeMedicalFacility() {\r\n return this._props.referenceEntityType === EntityType.MedicalFacility;\r\n }\r\n public get isEntityTypeOutOfServiceEvent() {\r\n return this._props.entityType === EntityType.OutOfServiceEvent;\r\n }\r\n public get isParentEntityTypeOutOfServiceEvent() {\r\n return this._props.parentEntityType === EntityType.OutOfServiceEvent;\r\n }\r\n public get isReferenceEntityTypeOutOfServiceEvent() {\r\n return this._props.referenceEntityType === EntityType.OutOfServiceEvent;\r\n }\r\n public get isEntityTypePerson() {\r\n return this._props.entityType === EntityType.Person;\r\n }\r\n public get isParentEntityTypePerson() {\r\n return this._props.parentEntityType === EntityType.Person;\r\n }\r\n public get isReferenceEntityTypePerson() {\r\n return this._props.referenceEntityType === EntityType.Person;\r\n }\r\n public get isEntityTypeProgram() {\r\n return this._props.entityType === EntityType.Program;\r\n }\r\n public get isParentEntityTypeProgram() {\r\n return this._props.parentEntityType === EntityType.Program;\r\n }\r\n public get isReferenceEntityTypeProgram() {\r\n return this._props.referenceEntityType === EntityType.Program;\r\n }\r\n public get isEntityTypeTimer() {\r\n return this._props.entityType === EntityType.Timer;\r\n }\r\n public get isParentEntityTypeTimer() {\r\n return this._props.parentEntityType === EntityType.Timer;\r\n }\r\n public get isReferenceEntityTypeTimer() {\r\n return this._props.referenceEntityType === EntityType.Timer;\r\n }\r\n public get isEntityTypeUnit() {\r\n return this._props.entityType === EntityType.Unit;\r\n }\r\n public get isParentEntityTypeUnit() {\r\n return this._props.parentEntityType === EntityType.Unit;\r\n }\r\n public get isReferenceEntityTypeUnit() {\r\n return this._props.referenceEntityType === EntityType.Unit;\r\n }\r\n public get isEntityTypeUnspecified() {\r\n return this._props.entityType === EntityType.Unspecified;\r\n }\r\n public get isLifecycleStageUnspecified() {\r\n return this._props.lifecycleStage === AlertLifecycleStage.Unspecified;\r\n }\r\n public get isMatchTypeUnspecified() {\r\n return this._props.matchType === RuleMatchType.Unspecified;\r\n }\r\n public get isParentEntityTypeUnspecified() {\r\n return this._props.parentEntityType === EntityType.Unspecified;\r\n }\r\n public get isReferenceEntityTypeUnspecified() {\r\n return this._props.referenceEntityType === EntityType.Unspecified;\r\n }\r\n public get isEntityTypeVehicle() {\r\n return this._props.entityType === EntityType.Vehicle;\r\n }\r\n public get isParentEntityTypeVehicle() {\r\n return this._props.parentEntityType === EntityType.Vehicle;\r\n }\r\n public get isReferenceEntityTypeVehicle() {\r\n return this._props.referenceEntityType === EntityType.Vehicle;\r\n }\r\n public get isPreAssignment() {\r\n return this._props.lifecycleStage === AlertLifecycleStage.PreAssignment;\r\n }\r\n public get isDropoffLocation() {\r\n return this._props.matchType === RuleMatchType.DropoffLocation;\r\n }\r\n public get isPickupLocation() {\r\n return this._props.matchType === RuleMatchType.PickupLocation;\r\n }\r\n public get isAuthor() {\r\n return this._props.visibilityType === VisibilityType.Author;\r\n }\r\n public get isCommunicationsCenter() {\r\n return this._props.visibilityType === VisibilityType.CommunicationsCenter;\r\n }\r\n public get isEntityOnly() {\r\n return this._props.visibilityType === VisibilityType.EntityOnly;\r\n }\r\n\r\n public isAnyUrgency(...alertUrgency: AlertUrgency[]) {\r\n return alertUrgency.includes(this._props.urgency);\r\n }\r\n public isAnyTarget(...alertTarget: AlertTarget[]) {\r\n return this._props.target != null && alertTarget.includes(this._props.target);\r\n }\r\n public isAnyEntityType(...entityType: EntityType[]) {\r\n return this._props.entityType != null && entityType.includes(this._props.entityType);\r\n }\r\n public isAnyLifecycleStage(...alertLifecycleStage: AlertLifecycleStage[]) {\r\n return alertLifecycleStage.includes(this._props.lifecycleStage);\r\n }\r\n public isAnyMatchType(...ruleMatchType: RuleMatchType[]) {\r\n return ruleMatchType.includes(this._props.matchType);\r\n }\r\n public isAnyParentEntityType(...entityType: EntityType[]) {\r\n return (\r\n this._props.parentEntityType != null && entityType.includes(this._props.parentEntityType)\r\n );\r\n }\r\n public isAnyVisibilityType(...visibilityType: VisibilityType[]) {\r\n return visibilityType.includes(this._props.visibilityType);\r\n }\r\n public isAnyReferenceEntityType(...entityType: EntityType[]) {\r\n return (\r\n this._props.referenceEntityType != null &&\r\n entityType.includes(this._props.referenceEntityType)\r\n );\r\n }\r\n\r\n constructor(props: ActiveAlertProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n urgency: this._props.urgency,\r\n target: this._props.target,\r\n targetId: this._props.targetId,\r\n entityType: this._props.entityType,\r\n entityId: this._props.entityId,\r\n title: this._props.title,\r\n content: this._props.content,\r\n definitionId: this._props.definitionId,\r\n lifecycleStage: this._props.lifecycleStage,\r\n requiresAcknowledgement: this._props.requiresAcknowledgement,\r\n dateAcknowledged: this._props.dateAcknowledged,\r\n acknowledgedById: this._props.acknowledgedById,\r\n matchType: this._props.matchType,\r\n parentEntityType: this._props.parentEntityType,\r\n parentEntityId: this._props.parentEntityId,\r\n activationTime: this._props.activationTime,\r\n visibilityType: this._props.visibilityType,\r\n escalationDurationInSeconds: this._props.escalationDurationInSeconds,\r\n snoozeMaxInSeconds: this._props.snoozeMaxInSeconds,\r\n authorId: this._props.authorId,\r\n regionId: this._props.regionId,\r\n communicationCenterId: this._props.communicationCenterId,\r\n lookupHash: this._props.lookupHash,\r\n isGpsAlert: this._props.isGpsAlert,\r\n referenceEntityType: this._props.referenceEntityType,\r\n referenceEntityId: this._props.referenceEntityId,\r\n isActive: this._props.isActive,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllActiveAlertEntities = (state: AppState) =>\r\n state.entityStores.activeAlert.entities;\r\n\r\nexport const selectActiveAlertById = (id: string) => (state: AppState) =>\r\n state.entityStores.activeAlert.entities.get(id);\r\n\r\nexport const selectActiveAlertMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.activeAlert.meta.get(id);\r\n\r\nexport const selectActiveAlertAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectActiveAlertById(id),\r\n selectActiveAlertMetadataById(id),\r\n (activeAlert, meta) => ({ activeAlert, meta }),\r\n );\r\n\r\nexport function selectActiveAlertEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllActiveAlertEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ActiveAlertRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByUrgency(urgency: AlertUrgency) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.urgency === urgency).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByTarget(target: AlertTarget) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.target === target).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByTargetId(targetId: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.targetId === targetId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByEntityType(entityType: EntityType) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.entityType === entityType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByEntityId(entityId: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.entityId === entityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByTitle(title: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.title === title).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByContent(content: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.content === content).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByDefinitionId(definitionId: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.definitionId === definitionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByLifecycleStage(lifecycleStage: AlertLifecycleStage) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.lifecycleStage === lifecycleStage).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByRequiresAcknowledgement(\r\n requiresAcknowledgement: boolean,\r\n) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.requiresAcknowledgement === requiresAcknowledgement).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByDateAcknowledged(dateAcknowledged: Date) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.dateAcknowledged === dateAcknowledged).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByAcknowledgedById(acknowledgedById: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.acknowledgedById === acknowledgedById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByMatchType(matchType: RuleMatchType) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.matchType === matchType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByParentEntityType(parentEntityType: EntityType) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.parentEntityType === parentEntityType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByParentEntityId(parentEntityId: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.parentEntityId === parentEntityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByActivationTime(activationTime: Date) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.activationTime === activationTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByVisibilityType(visibilityType: VisibilityType) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.visibilityType === visibilityType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByEscalationDurationInSeconds(\r\n escalationDurationInSeconds: number,\r\n) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities\r\n .filter((e) => e.escalationDurationInSeconds === escalationDurationInSeconds)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesBySnoozeMaxInSeconds(snoozeMaxInSeconds: number) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.snoozeMaxInSeconds === snoozeMaxInSeconds).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByAuthorId(authorId: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.authorId === authorId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByCommunicationCenterId(communicationCenterId: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.communicationCenterId === communicationCenterId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByLookupHash(lookupHash: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.lookupHash === lookupHash).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByIsGpsAlert(isGpsAlert: boolean) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.isGpsAlert === isGpsAlert).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByReferenceEntityType(referenceEntityType: EntityType) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.referenceEntityType === referenceEntityType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByReferenceEntityId(referenceEntityId: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.referenceEntityId === referenceEntityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByIsActive(isActive: boolean) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.isActive === isActive).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveAlertEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllActiveAlertEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { EntityType, RuleMatchType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ActiveTimelineProps {\r\n id: string;\r\n timelineId: string;\r\n companyId: string;\r\n matchType: RuleMatchType;\r\n entityType: EntityType;\r\n entityId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ActiveTimelineRecord extends Record({\r\n id: null as any,\r\n timelineId: null as any,\r\n companyId: null as any,\r\n matchType: null as any,\r\n entityType: null as any,\r\n entityId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n timelineId: string;\r\n companyId: string;\r\n matchType: RuleMatchType;\r\n entityType: EntityType;\r\n entityId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ActiveTimelineRecord {\r\n if (json == null) {\r\n throw new Error('ActiveTimelineRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ActiveTimelineRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ActiveTimelineJson.id'),\r\n timelineId: getFromOrThrow(json, (j) => j.timelineId, 'ActiveTimelineJson.timelineId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'ActiveTimelineJson.companyId'),\r\n matchType: getFromOrThrow(json, (j) => j.matchType, 'ActiveTimelineJson.matchType'),\r\n entityType: getFromOrThrow(json, (j) => j.entityType, 'ActiveTimelineJson.entityType'),\r\n entityId: getFromOrThrow(json, (j) => j.entityId, 'ActiveTimelineJson.entityId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n timelineId: string;\r\n companyId: string;\r\n matchType: RuleMatchType;\r\n entityType: EntityType;\r\n entityId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ActiveTimelineRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ActiveTimelineRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ActiveTimelineRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ActiveTimelineJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timelineId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.timelineId, 'ActiveTimelineJson.timelineId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'ActiveTimelineJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n matchType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.matchType, 'ActiveTimelineJson.matchType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.entityType, 'ActiveTimelineJson.entityType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.entityId, 'ActiveTimelineJson.entityId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ActiveTimelineProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ActiveTimelineRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ActiveTimelineViewModelBase implements ActiveTimelineProps {\r\n protected readonly _props: ActiveTimelineProps;\r\n private _json?: ActiveTimelineProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get timelineId(): string {\r\n return this._props.timelineId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n get matchType(): RuleMatchType {\r\n return this._props.matchType;\r\n }\r\n get entityType(): EntityType {\r\n return this._props.entityType;\r\n }\r\n get entityId(): string {\r\n return this._props.entityId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isDropoffLocation() {\r\n return this._props.matchType === RuleMatchType.DropoffLocation;\r\n }\r\n public get isPickupLocation() {\r\n return this._props.matchType === RuleMatchType.PickupLocation;\r\n }\r\n public get isMatchTypeUnspecified() {\r\n return this._props.matchType === RuleMatchType.Unspecified;\r\n }\r\n public get isEntityTypeUnspecified() {\r\n return this._props.entityType === EntityType.Unspecified;\r\n }\r\n public get isAirport() {\r\n return this._props.entityType === EntityType.Airport;\r\n }\r\n public get isBase() {\r\n return this._props.entityType === EntityType.Base;\r\n }\r\n public get isCard() {\r\n return this._props.entityType === EntityType.Card;\r\n }\r\n public get isCommunicationCenter() {\r\n return this._props.entityType === EntityType.CommunicationCenter;\r\n }\r\n public get isCompany() {\r\n return this._props.entityType === EntityType.Company;\r\n }\r\n public get isControlZone() {\r\n return this._props.entityType === EntityType.ControlZone;\r\n }\r\n public get isLocation() {\r\n return this._props.entityType === EntityType.Location;\r\n }\r\n public get isMedicalFacility() {\r\n return this._props.entityType === EntityType.MedicalFacility;\r\n }\r\n public get isOutOfServiceEvent() {\r\n return this._props.entityType === EntityType.OutOfServiceEvent;\r\n }\r\n public get isPerson() {\r\n return this._props.entityType === EntityType.Person;\r\n }\r\n public get isProgram() {\r\n return this._props.entityType === EntityType.Program;\r\n }\r\n public get isRegion() {\r\n return this._props.entityType === EntityType.Region;\r\n }\r\n public get isTimer() {\r\n return this._props.entityType === EntityType.Timer;\r\n }\r\n public get isUnit() {\r\n return this._props.entityType === EntityType.Unit;\r\n }\r\n public get isVehicle() {\r\n return this._props.entityType === EntityType.Vehicle;\r\n }\r\n\r\n public isAnyMatchType(...ruleMatchType: RuleMatchType[]) {\r\n return ruleMatchType.includes(this._props.matchType);\r\n }\r\n public isAnyEntityType(...entityType: EntityType[]) {\r\n return entityType.includes(this._props.entityType);\r\n }\r\n\r\n constructor(props: ActiveTimelineProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n timelineId: this._props.timelineId,\r\n companyId: this._props.companyId,\r\n matchType: this._props.matchType,\r\n entityType: this._props.entityType,\r\n entityId: this._props.entityId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllActiveTimelineEntities = (state: AppState) =>\r\n state.entityStores.activeTimeline.entities;\r\n\r\nexport const selectActiveTimelineById = (id: string) => (state: AppState) =>\r\n state.entityStores.activeTimeline.entities.get(id);\r\n\r\nexport const selectActiveTimelineMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.activeTimeline.meta.get(id);\r\n\r\nexport const selectActiveTimelineAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectActiveTimelineById(id),\r\n selectActiveTimelineMetadataById(id),\r\n (activeTimeline, meta) => ({ activeTimeline, meta }),\r\n );\r\n\r\nexport function selectActiveTimelineEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllActiveTimelineEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ActiveTimelineRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectActiveTimelineEntitiesByTimelineId(timelineId: string) {\r\n return createSelector(selectAllActiveTimelineEntities, (entities) =>\r\n entities.filter((e) => e.timelineId === timelineId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveTimelineEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllActiveTimelineEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveTimelineEntitiesByMatchType(matchType: RuleMatchType) {\r\n return createSelector(selectAllActiveTimelineEntities, (entities) =>\r\n entities.filter((e) => e.matchType === matchType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveTimelineEntitiesByEntityType(entityType: EntityType) {\r\n return createSelector(selectAllActiveTimelineEntities, (entities) =>\r\n entities.filter((e) => e.entityType === entityType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveTimelineEntitiesByEntityId(entityId: string) {\r\n return createSelector(selectAllActiveTimelineEntities, (entities) =>\r\n entities.filter((e) => e.entityId === entityId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n AlertLifecycleStage,\r\n AlertTarget,\r\n AlertUrgency,\r\n EntityType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface AlertProps {\r\n id: string;\r\n entityType: EntityType;\r\n activationRuleId: string;\r\n urgency: AlertUrgency;\r\n title: string | null;\r\n content: string;\r\n effectiveDate: Date | null;\r\n expirationDate: Date | null;\r\n paused: boolean | null;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n createdById: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class AlertRecord extends Record({\r\n id: null as any,\r\n entityType: null as any,\r\n activationRuleId: null as any,\r\n urgency: null as any,\r\n title: null as any,\r\n content: null as any,\r\n effectiveDate: null as any,\r\n expirationDate: null as any,\r\n paused: null as any,\r\n lifecycleStage: null as any,\r\n requiresAcknowledgement: null as any,\r\n createdById: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n entityType: EntityType;\r\n activationRuleId: string;\r\n urgency: AlertUrgency;\r\n title: string | null;\r\n content: string;\r\n effectiveDate: string | number | Date | null;\r\n expirationDate: string | number | Date | null;\r\n paused: boolean | null;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n createdById: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): AlertRecord {\r\n if (json == null) {\r\n throw new Error('AlertRecord.fromJS: parameter cannot be null');\r\n }\r\n return new AlertRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'AlertJson.id'),\r\n entityType: getFromOrThrow(json, (j) => j.entityType, 'AlertJson.entityType'),\r\n activationRuleId: getFromOrThrow(\r\n json,\r\n (j) => j.activationRuleId,\r\n 'AlertJson.activationRuleId',\r\n ),\r\n urgency: getFromOrThrow(json, (j) => j.urgency, 'AlertJson.urgency'),\r\n title: json.title,\r\n content: getFromOrThrow(json, (j) => j.content, 'AlertJson.content'),\r\n effectiveDate: json.effectiveDate != null ? new Date(json.effectiveDate) : null,\r\n expirationDate: json.expirationDate != null ? new Date(json.expirationDate) : null,\r\n paused: json.paused,\r\n lifecycleStage: getFromOrThrow(json, (j) => j.lifecycleStage, 'AlertJson.lifecycleStage'),\r\n requiresAcknowledgement: getFromOrThrow(\r\n json,\r\n (j) => j.requiresAcknowledgement,\r\n 'AlertJson.requiresAcknowledgement',\r\n ),\r\n createdById: json.createdById,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n entityType: EntityType;\r\n activationRuleId: string;\r\n urgency: AlertUrgency;\r\n title: string | null;\r\n content: string;\r\n effectiveDate: string | number | Date | null;\r\n expirationDate: string | number | Date | null;\r\n paused: boolean | null;\r\n lifecycleStage: AlertLifecycleStage;\r\n requiresAcknowledgement: boolean;\r\n createdById: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [AlertRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('AlertRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new AlertRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'AlertJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.entityType, 'AlertJson.entityType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n activationRuleId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.activationRuleId, 'AlertJson.activationRuleId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n urgency: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.urgency, 'AlertJson.urgency'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n title: tryOrDefault(\r\n () => json.title,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n content: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.content, 'AlertJson.content'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n effectiveDate: tryOrDefault(\r\n () => (json.effectiveDate != null ? new Date(json.effectiveDate) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n expirationDate: tryOrDefault(\r\n () => (json.expirationDate != null ? new Date(json.expirationDate) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n paused: tryOrDefault(\r\n () => json.paused,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lifecycleStage: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.lifecycleStage, 'AlertJson.lifecycleStage'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requiresAcknowledgement: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requiresAcknowledgement,\r\n 'AlertJson.requiresAcknowledgement',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n createdById: tryOrDefault(\r\n () => json.createdById,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: AlertProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('AlertRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class AlertViewModelBase implements AlertProps {\r\n protected readonly _props: AlertProps;\r\n private _json?: AlertProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get entityType(): EntityType {\r\n return this._props.entityType;\r\n }\r\n get activationRuleId(): string {\r\n return this._props.activationRuleId;\r\n }\r\n get urgency(): AlertUrgency {\r\n return this._props.urgency;\r\n }\r\n get title(): string | null {\r\n return this._props.title;\r\n }\r\n get content(): string {\r\n return this._props.content;\r\n }\r\n get effectiveDate(): Date | null {\r\n return this._props.effectiveDate;\r\n }\r\n get expirationDate(): Date | null {\r\n return this._props.expirationDate;\r\n }\r\n get paused(): boolean | null {\r\n return this._props.paused;\r\n }\r\n get lifecycleStage(): AlertLifecycleStage {\r\n return this._props.lifecycleStage;\r\n }\r\n get requiresAcknowledgement(): boolean {\r\n return this._props.requiresAcknowledgement;\r\n }\r\n get createdById(): string | null {\r\n return this._props.createdById;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAirport() {\r\n return this._props.entityType === EntityType.Airport;\r\n }\r\n public get isBase() {\r\n return this._props.entityType === EntityType.Base;\r\n }\r\n public get isCard() {\r\n return this._props.entityType === EntityType.Card;\r\n }\r\n public get isCommunicationCenter() {\r\n return this._props.entityType === EntityType.CommunicationCenter;\r\n }\r\n public get isCompany() {\r\n return this._props.entityType === EntityType.Company;\r\n }\r\n public get isControlZone() {\r\n return this._props.entityType === EntityType.ControlZone;\r\n }\r\n public get isLocation() {\r\n return this._props.entityType === EntityType.Location;\r\n }\r\n public get isMedicalFacility() {\r\n return this._props.entityType === EntityType.MedicalFacility;\r\n }\r\n public get isOutOfServiceEvent() {\r\n return this._props.entityType === EntityType.OutOfServiceEvent;\r\n }\r\n public get isPerson() {\r\n return this._props.entityType === EntityType.Person;\r\n }\r\n public get isProgram() {\r\n return this._props.entityType === EntityType.Program;\r\n }\r\n public get isRegion() {\r\n return this._props.entityType === EntityType.Region;\r\n }\r\n public get isTimer() {\r\n return this._props.entityType === EntityType.Timer;\r\n }\r\n public get isUnit() {\r\n return this._props.entityType === EntityType.Unit;\r\n }\r\n public get isEntityTypeUnspecified() {\r\n return this._props.entityType === EntityType.Unspecified;\r\n }\r\n public get isLifecycleStageUnspecified() {\r\n return this._props.lifecycleStage === AlertLifecycleStage.Unspecified;\r\n }\r\n public get isVehicle() {\r\n return this._props.entityType === EntityType.Vehicle;\r\n }\r\n public get isCritical() {\r\n return this._props.urgency === AlertUrgency.Critical;\r\n }\r\n public get isInformation() {\r\n return this._props.urgency === AlertUrgency.Information;\r\n }\r\n public get isWarning() {\r\n return this._props.urgency === AlertUrgency.Warning;\r\n }\r\n public get isPreAssignment() {\r\n return this._props.lifecycleStage === AlertLifecycleStage.PreAssignment;\r\n }\r\n\r\n public isAnyEntityType(...entityType: EntityType[]) {\r\n return entityType.includes(this._props.entityType);\r\n }\r\n public isAnyUrgency(...alertUrgency: AlertUrgency[]) {\r\n return alertUrgency.includes(this._props.urgency);\r\n }\r\n public isAnyLifecycleStage(...alertLifecycleStage: AlertLifecycleStage[]) {\r\n return alertLifecycleStage.includes(this._props.lifecycleStage);\r\n }\r\n\r\n constructor(props: AlertProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n entityType: this._props.entityType,\r\n activationRuleId: this._props.activationRuleId,\r\n urgency: this._props.urgency,\r\n title: this._props.title,\r\n content: this._props.content,\r\n effectiveDate: this._props.effectiveDate,\r\n expirationDate: this._props.expirationDate,\r\n paused: this._props.paused,\r\n lifecycleStage: this._props.lifecycleStage,\r\n requiresAcknowledgement: this._props.requiresAcknowledgement,\r\n createdById: this._props.createdById,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllAlertEntities = (state: AppState) => state.entityStores.alert.entities;\r\n\r\nexport const selectAlertById = (id: string) => (state: AppState) =>\r\n state.entityStores.alert.entities.get(id);\r\n\r\nexport const selectAlertMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.alert.meta.get(id);\r\n\r\nexport const selectAlertAndMetadataById = (id: string) =>\r\n createSelector(selectAlertById(id), selectAlertMetadataById(id), (alert, meta) => ({\r\n alert,\r\n meta,\r\n }));\r\n\r\nexport function selectAlertEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllAlertEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, AlertRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectAlertEntitiesByEntityType(entityType: EntityType) {\r\n return createSelector(selectAllAlertEntities, (entities) =>\r\n entities.filter((e) => e.entityType === entityType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAlertEntitiesByActivationRuleId(activationRuleId: string) {\r\n return createSelector(selectAllAlertEntities, (entities) =>\r\n entities.filter((e) => e.activationRuleId === activationRuleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAlertEntitiesByUrgency(urgency: AlertUrgency) {\r\n return createSelector(selectAllAlertEntities, (entities) =>\r\n entities.filter((e) => e.urgency === urgency).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAlertEntitiesByTitle(title: string) {\r\n return createSelector(selectAllAlertEntities, (entities) =>\r\n entities.filter((e) => e.title === title).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAlertEntitiesByContent(content: string) {\r\n return createSelector(selectAllAlertEntities, (entities) =>\r\n entities.filter((e) => e.content === content).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAlertEntitiesByEffectiveDate(effectiveDate: Date) {\r\n return createSelector(selectAllAlertEntities, (entities) =>\r\n entities.filter((e) => e.effectiveDate === effectiveDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAlertEntitiesByExpirationDate(expirationDate: Date) {\r\n return createSelector(selectAllAlertEntities, (entities) =>\r\n entities.filter((e) => e.expirationDate === expirationDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAlertEntitiesByPaused(paused: boolean) {\r\n return createSelector(selectAllAlertEntities, (entities) =>\r\n entities.filter((e) => e.paused === paused).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAlertEntitiesByLifecycleStage(lifecycleStage: AlertLifecycleStage) {\r\n return createSelector(selectAllAlertEntities, (entities) =>\r\n entities.filter((e) => e.lifecycleStage === lifecycleStage).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAlertEntitiesByRequiresAcknowledgement(requiresAcknowledgement: boolean) {\r\n return createSelector(selectAllAlertEntities, (entities) =>\r\n entities.filter((e) => e.requiresAcknowledgement === requiresAcknowledgement).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAlertEntitiesByCreatedById(createdById: string) {\r\n return createSelector(selectAllAlertEntities, (entities) =>\r\n entities.filter((e) => e.createdById === createdById).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { ApplicationNotificationUrgency } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ApplicationNotificationProps {\r\n id: string;\r\n urgency: ApplicationNotificationUrgency;\r\n displayOnBanner: boolean;\r\n dismissable: boolean;\r\n title: string | null;\r\n notification: string;\r\n effectiveDate: Date | null;\r\n expirationDate: Date | null;\r\n createdById: string | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ApplicationNotificationRecord extends Record({\r\n id: null as any,\r\n urgency: null as any,\r\n displayOnBanner: null as any,\r\n dismissable: null as any,\r\n title: null as any,\r\n notification: null as any,\r\n effectiveDate: null as any,\r\n expirationDate: null as any,\r\n createdById: null as any,\r\n companyId: null as any,\r\n regionId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n urgency: ApplicationNotificationUrgency;\r\n displayOnBanner: boolean;\r\n dismissable: boolean;\r\n title: string | null;\r\n notification: string;\r\n effectiveDate: string | number | Date | null;\r\n expirationDate: string | number | Date | null;\r\n createdById: string | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ApplicationNotificationRecord {\r\n if (json == null) {\r\n throw new Error('ApplicationNotificationRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ApplicationNotificationRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ApplicationNotificationJson.id'),\r\n urgency: getFromOrThrow(json, (j) => j.urgency, 'ApplicationNotificationJson.urgency'),\r\n displayOnBanner: getFromOrThrow(\r\n json,\r\n (j) => j.displayOnBanner,\r\n 'ApplicationNotificationJson.displayOnBanner',\r\n ),\r\n dismissable: getFromOrThrow(\r\n json,\r\n (j) => j.dismissable,\r\n 'ApplicationNotificationJson.dismissable',\r\n ),\r\n title: json.title,\r\n notification: getFromOrThrow(\r\n json,\r\n (j) => j.notification,\r\n 'ApplicationNotificationJson.notification',\r\n ),\r\n effectiveDate: json.effectiveDate != null ? new Date(json.effectiveDate) : null,\r\n expirationDate: json.expirationDate != null ? new Date(json.expirationDate) : null,\r\n createdById: json.createdById,\r\n companyId: json.companyId,\r\n regionId: json.regionId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n urgency: ApplicationNotificationUrgency;\r\n displayOnBanner: boolean;\r\n dismissable: boolean;\r\n title: string | null;\r\n notification: string;\r\n effectiveDate: string | number | Date | null;\r\n expirationDate: string | number | Date | null;\r\n createdById: string | null;\r\n companyId: string | null;\r\n regionId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ApplicationNotificationRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ApplicationNotificationRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ApplicationNotificationRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ApplicationNotificationJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n urgency: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.urgency, 'ApplicationNotificationJson.urgency'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n displayOnBanner: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.displayOnBanner,\r\n 'ApplicationNotificationJson.displayOnBanner',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dismissable: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.dismissable, 'ApplicationNotificationJson.dismissable'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n title: tryOrDefault(\r\n () => json.title,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notification: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.notification, 'ApplicationNotificationJson.notification'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n effectiveDate: tryOrDefault(\r\n () => (json.effectiveDate != null ? new Date(json.effectiveDate) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n expirationDate: tryOrDefault(\r\n () => (json.expirationDate != null ? new Date(json.expirationDate) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n createdById: tryOrDefault(\r\n () => json.createdById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => json.companyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => json.regionId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ApplicationNotificationProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ApplicationNotificationRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ApplicationNotificationViewModelBase implements ApplicationNotificationProps {\r\n protected readonly _props: ApplicationNotificationProps;\r\n private _json?: ApplicationNotificationProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get urgency(): ApplicationNotificationUrgency {\r\n return this._props.urgency;\r\n }\r\n get displayOnBanner(): boolean {\r\n return this._props.displayOnBanner;\r\n }\r\n get dismissable(): boolean {\r\n return this._props.dismissable;\r\n }\r\n get title(): string | null {\r\n return this._props.title;\r\n }\r\n get notification(): string {\r\n return this._props.notification;\r\n }\r\n get effectiveDate(): Date | null {\r\n return this._props.effectiveDate;\r\n }\r\n get expirationDate(): Date | null {\r\n return this._props.expirationDate;\r\n }\r\n get createdById(): string | null {\r\n return this._props.createdById;\r\n }\r\n get companyId(): string | null {\r\n return this._props.companyId;\r\n }\r\n get regionId(): string | null {\r\n return this._props.regionId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCritical() {\r\n return this._props.urgency === ApplicationNotificationUrgency.Critical;\r\n }\r\n public get isInformation() {\r\n return this._props.urgency === ApplicationNotificationUrgency.Information;\r\n }\r\n public get isWarning() {\r\n return this._props.urgency === ApplicationNotificationUrgency.Warning;\r\n }\r\n\r\n public isAnyUrgency(...applicationNotificationUrgency: ApplicationNotificationUrgency[]) {\r\n return applicationNotificationUrgency.includes(this._props.urgency);\r\n }\r\n\r\n constructor(props: ApplicationNotificationProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n urgency: this._props.urgency,\r\n displayOnBanner: this._props.displayOnBanner,\r\n dismissable: this._props.dismissable,\r\n title: this._props.title,\r\n notification: this._props.notification,\r\n effectiveDate: this._props.effectiveDate,\r\n expirationDate: this._props.expirationDate,\r\n createdById: this._props.createdById,\r\n companyId: this._props.companyId,\r\n regionId: this._props.regionId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllApplicationNotificationEntities = (state: AppState) =>\r\n state.entityStores.applicationNotification.entities;\r\n\r\nexport const selectApplicationNotificationById = (id: string) => (state: AppState) =>\r\n state.entityStores.applicationNotification.entities.get(id);\r\n\r\nexport const selectApplicationNotificationMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.applicationNotification.meta.get(id);\r\n\r\nexport const selectApplicationNotificationAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectApplicationNotificationById(id),\r\n selectApplicationNotificationMetadataById(id),\r\n (applicationNotification, meta) => ({ applicationNotification, meta }),\r\n );\r\n\r\nexport function selectApplicationNotificationEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllApplicationNotificationEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ApplicationNotificationRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectApplicationNotificationEntitiesByUrgency(\r\n urgency: ApplicationNotificationUrgency,\r\n) {\r\n return createSelector(selectAllApplicationNotificationEntities, (entities) =>\r\n entities.filter((e) => e.urgency === urgency).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectApplicationNotificationEntitiesByDisplayOnBanner(displayOnBanner: boolean) {\r\n return createSelector(selectAllApplicationNotificationEntities, (entities) =>\r\n entities.filter((e) => e.displayOnBanner === displayOnBanner).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectApplicationNotificationEntitiesByDismissable(dismissable: boolean) {\r\n return createSelector(selectAllApplicationNotificationEntities, (entities) =>\r\n entities.filter((e) => e.dismissable === dismissable).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectApplicationNotificationEntitiesByTitle(title: string) {\r\n return createSelector(selectAllApplicationNotificationEntities, (entities) =>\r\n entities.filter((e) => e.title === title).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectApplicationNotificationEntitiesByNotification(notification: string) {\r\n return createSelector(selectAllApplicationNotificationEntities, (entities) =>\r\n entities.filter((e) => e.notification === notification).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectApplicationNotificationEntitiesByEffectiveDate(effectiveDate: Date) {\r\n return createSelector(selectAllApplicationNotificationEntities, (entities) =>\r\n entities.filter((e) => e.effectiveDate === effectiveDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectApplicationNotificationEntitiesByExpirationDate(expirationDate: Date) {\r\n return createSelector(selectAllApplicationNotificationEntities, (entities) =>\r\n entities.filter((e) => e.expirationDate === expirationDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectApplicationNotificationEntitiesByCreatedById(createdById: string) {\r\n return createSelector(selectAllApplicationNotificationEntities, (entities) =>\r\n entities.filter((e) => e.createdById === createdById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectApplicationNotificationEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllApplicationNotificationEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectApplicationNotificationEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllApplicationNotificationEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface AssignmentDelayedReasonProps {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class AssignmentDelayedReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): AssignmentDelayedReasonRecord {\r\n if (json == null) {\r\n throw new Error('AssignmentDelayedReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new AssignmentDelayedReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'AssignmentDelayedReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'AssignmentDelayedReasonJson.name'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [AssignmentDelayedReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('AssignmentDelayedReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new AssignmentDelayedReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'AssignmentDelayedReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'AssignmentDelayedReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: AssignmentDelayedReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('AssignmentDelayedReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class AssignmentDelayedReasonViewModelBase implements AssignmentDelayedReasonProps {\r\n protected readonly _props: AssignmentDelayedReasonProps;\r\n private _json?: AssignmentDelayedReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: AssignmentDelayedReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllAssignmentDelayedReasonEntities = (state: AppState) =>\r\n state.entityStores.assignmentDelayedReason.entities;\r\n\r\nexport const selectAssignmentDelayedReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.assignmentDelayedReason.entities.get(id);\r\n\r\nexport const selectAssignmentDelayedReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.assignmentDelayedReason.meta.get(id);\r\n\r\nexport const selectAssignmentDelayedReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectAssignmentDelayedReasonById(id),\r\n selectAssignmentDelayedReasonMetadataById(id),\r\n (assignmentDelayedReason, meta) => ({ assignmentDelayedReason, meta }),\r\n );\r\n\r\nexport function selectAssignmentDelayedReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllAssignmentDelayedReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, AssignmentDelayedReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectAssignmentDelayedReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllAssignmentDelayedReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CancellationCategoryProps {\r\n id: string;\r\n name: string;\r\n defaultCancellationReasonId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CancellationCategoryRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n defaultCancellationReasonId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n defaultCancellationReasonId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CancellationCategoryRecord {\r\n if (json == null) {\r\n throw new Error('CancellationCategoryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CancellationCategoryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CancellationCategoryJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'CancellationCategoryJson.name'),\r\n defaultCancellationReasonId: json.defaultCancellationReasonId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n defaultCancellationReasonId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CancellationCategoryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CancellationCategoryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CancellationCategoryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CancellationCategoryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'CancellationCategoryJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n defaultCancellationReasonId: tryOrDefault(\r\n () => json.defaultCancellationReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CancellationCategoryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CancellationCategoryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CancellationCategoryViewModelBase implements CancellationCategoryProps {\r\n protected readonly _props: CancellationCategoryProps;\r\n private _json?: CancellationCategoryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get defaultCancellationReasonId(): string | null {\r\n return this._props.defaultCancellationReasonId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: CancellationCategoryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n defaultCancellationReasonId: this._props.defaultCancellationReasonId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCancellationCategoryEntities = (state: AppState) =>\r\n state.entityStores.cancellationCategory.entities;\r\n\r\nexport const selectCancellationCategoryById = (id: string) => (state: AppState) =>\r\n state.entityStores.cancellationCategory.entities.get(id);\r\n\r\nexport const selectCancellationCategoryMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.cancellationCategory.meta.get(id);\r\n\r\nexport const selectCancellationCategoryAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectCancellationCategoryById(id),\r\n selectCancellationCategoryMetadataById(id),\r\n (cancellationCategory, meta) => ({ cancellationCategory, meta }),\r\n );\r\n\r\nexport function selectCancellationCategoryEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCancellationCategoryEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CancellationCategoryRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCancellationCategoryEntitiesByName(name: string) {\r\n return createSelector(selectAllCancellationCategoryEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCancellationCategoryEntitiesByDefaultCancellationReasonId(\r\n defaultCancellationReasonId: string,\r\n) {\r\n return createSelector(selectAllCancellationCategoryEntities, (entities) =>\r\n entities\r\n .filter((e) => e.defaultCancellationReasonId === defaultCancellationReasonId)\r\n .valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CancellationReasonProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n canBeUnitCancellationReason: boolean | null;\r\n isTransferCenterReason: boolean;\r\n cancellationCategoryId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CancellationReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n canBeUnitCancellationReason: null as any,\r\n isTransferCenterReason: null as any,\r\n cancellationCategoryId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n canBeUnitCancellationReason: boolean | null;\r\n isTransferCenterReason: boolean;\r\n cancellationCategoryId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CancellationReasonRecord {\r\n if (json == null) {\r\n throw new Error('CancellationReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CancellationReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CancellationReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'CancellationReasonJson.name'),\r\n abbreviation: getFromOrThrow(\r\n json,\r\n (j) => j.abbreviation,\r\n 'CancellationReasonJson.abbreviation',\r\n ),\r\n canBeUnitCancellationReason: json.canBeUnitCancellationReason,\r\n isTransferCenterReason: getFromOrThrow(\r\n json,\r\n (j) => j.isTransferCenterReason,\r\n 'CancellationReasonJson.isTransferCenterReason',\r\n ),\r\n cancellationCategoryId: json.cancellationCategoryId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n canBeUnitCancellationReason: boolean | null;\r\n isTransferCenterReason: boolean;\r\n cancellationCategoryId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CancellationReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CancellationReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CancellationReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CancellationReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'CancellationReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'CancellationReasonJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n canBeUnitCancellationReason: tryOrDefault(\r\n () => json.canBeUnitCancellationReason,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isTransferCenterReason: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.isTransferCenterReason,\r\n 'CancellationReasonJson.isTransferCenterReason',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cancellationCategoryId: tryOrDefault(\r\n () => json.cancellationCategoryId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CancellationReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CancellationReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CancellationReasonViewModelBase implements CancellationReasonProps {\r\n protected readonly _props: CancellationReasonProps;\r\n private _json?: CancellationReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get canBeUnitCancellationReason(): boolean | null {\r\n return this._props.canBeUnitCancellationReason;\r\n }\r\n get isTransferCenterReason(): boolean {\r\n return this._props.isTransferCenterReason;\r\n }\r\n get cancellationCategoryId(): string | null {\r\n return this._props.cancellationCategoryId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: CancellationReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n canBeUnitCancellationReason: this._props.canBeUnitCancellationReason,\r\n isTransferCenterReason: this._props.isTransferCenterReason,\r\n cancellationCategoryId: this._props.cancellationCategoryId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCancellationReasonEntities = (state: AppState) =>\r\n state.entityStores.cancellationReason.entities;\r\n\r\nexport const selectCancellationReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.cancellationReason.entities.get(id);\r\n\r\nexport const selectCancellationReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.cancellationReason.meta.get(id);\r\n\r\nexport const selectCancellationReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectCancellationReasonById(id),\r\n selectCancellationReasonMetadataById(id),\r\n (cancellationReason, meta) => ({ cancellationReason, meta }),\r\n );\r\n\r\nexport function selectCancellationReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCancellationReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CancellationReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCancellationReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllCancellationReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCancellationReasonEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllCancellationReasonEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCancellationReasonEntitiesByCanBeUnitCancellationReason(\r\n canBeUnitCancellationReason: boolean,\r\n) {\r\n return createSelector(selectAllCancellationReasonEntities, (entities) =>\r\n entities\r\n .filter((e) => e.canBeUnitCancellationReason === canBeUnitCancellationReason)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCancellationReasonEntitiesByIsTransferCenterReason(\r\n isTransferCenterReason: boolean,\r\n) {\r\n return createSelector(selectAllCancellationReasonEntities, (entities) =>\r\n entities.filter((e) => e.isTransferCenterReason === isTransferCenterReason).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCancellationReasonEntitiesByCancellationCategoryId(\r\n cancellationCategoryId: string,\r\n) {\r\n return createSelector(selectAllCancellationReasonEntities, (entities) =>\r\n entities.filter((e) => e.cancellationCategoryId === cancellationCategoryId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CancellationSecondaryReasonProps {\r\n id: string;\r\n name: string;\r\n cancellationReasonId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CancellationSecondaryReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n cancellationReasonId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n cancellationReasonId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CancellationSecondaryReasonRecord {\r\n if (json == null) {\r\n throw new Error('CancellationSecondaryReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CancellationSecondaryReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CancellationSecondaryReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'CancellationSecondaryReasonJson.name'),\r\n cancellationReasonId: getFromOrThrow(\r\n json,\r\n (j) => j.cancellationReasonId,\r\n 'CancellationSecondaryReasonJson.cancellationReasonId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n cancellationReasonId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CancellationSecondaryReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CancellationSecondaryReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CancellationSecondaryReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CancellationSecondaryReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'CancellationSecondaryReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cancellationReasonId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.cancellationReasonId,\r\n 'CancellationSecondaryReasonJson.cancellationReasonId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CancellationSecondaryReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CancellationSecondaryReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CancellationSecondaryReasonViewModelBase\r\n implements CancellationSecondaryReasonProps\r\n{\r\n protected readonly _props: CancellationSecondaryReasonProps;\r\n private _json?: CancellationSecondaryReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get cancellationReasonId(): string {\r\n return this._props.cancellationReasonId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: CancellationSecondaryReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n cancellationReasonId: this._props.cancellationReasonId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCancellationSecondaryReasonEntities = (state: AppState) =>\r\n state.entityStores.cancellationSecondaryReason.entities;\r\n\r\nexport const selectCancellationSecondaryReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.cancellationSecondaryReason.entities.get(id);\r\n\r\nexport const selectCancellationSecondaryReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.cancellationSecondaryReason.meta.get(id);\r\n\r\nexport const selectCancellationSecondaryReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectCancellationSecondaryReasonById(id),\r\n selectCancellationSecondaryReasonMetadataById(id),\r\n (cancellationSecondaryReason, meta) => ({ cancellationSecondaryReason, meta }),\r\n );\r\n\r\nexport function selectCancellationSecondaryReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCancellationSecondaryReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CancellationSecondaryReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCancellationSecondaryReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllCancellationSecondaryReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCancellationSecondaryReasonEntitiesByCancellationReasonId(\r\n cancellationReasonId: string,\r\n) {\r\n return createSelector(selectAllCancellationSecondaryReasonEntities, (entities) =>\r\n entities.filter((e) => e.cancellationReasonId === cancellationReasonId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n AmrUtilizationStatus,\r\n CardStatus,\r\n DiversionType,\r\n NotBillableType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CardProps {\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n dateCardClosed: Date | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: Date | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CardRecord extends Record({\r\n id: null as any,\r\n status: null as any,\r\n cardNumber: null as any,\r\n dateCardClosed: null as any,\r\n transferredToCardId: null as any,\r\n transferredFromCardId: null as any,\r\n linkedCardId: null as any,\r\n closeComment: null as any,\r\n reOpenComment: null as any,\r\n postTransportDebriefCompleted: null as any,\r\n isBillable: null as any,\r\n notBillableType: null as any,\r\n notBillableComment: null as any,\r\n apiWebhookSubscriptionId: null as any,\r\n createdById: null as any,\r\n plannedCompletionTime: null as any,\r\n reOpenReasonId: null as any,\r\n lastOperationId: null as any,\r\n diversionType: null as any,\r\n gmrUtilizationStatus: null as any,\r\n gmrCADNumber: null as any,\r\n isLocked: null as any,\r\n operationId: null as any,\r\n requestId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n dateCardClosed: string | number | Date | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: string | number | Date | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CardRecord {\r\n if (json == null) {\r\n throw new Error('CardRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CardRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CardJson.id'),\r\n status: getFromOrThrow(json, (j) => j.status, 'CardJson.status'),\r\n cardNumber: getFromOrThrow(json, (j) => j.cardNumber, 'CardJson.cardNumber'),\r\n dateCardClosed: json.dateCardClosed != null ? new Date(json.dateCardClosed) : null,\r\n transferredToCardId: json.transferredToCardId,\r\n transferredFromCardId: json.transferredFromCardId,\r\n linkedCardId: json.linkedCardId,\r\n closeComment: json.closeComment,\r\n reOpenComment: json.reOpenComment,\r\n postTransportDebriefCompleted: json.postTransportDebriefCompleted,\r\n isBillable: json.isBillable,\r\n notBillableType: json.notBillableType,\r\n notBillableComment: json.notBillableComment,\r\n apiWebhookSubscriptionId: json.apiWebhookSubscriptionId,\r\n createdById: json.createdById,\r\n plannedCompletionTime:\r\n json.plannedCompletionTime != null ? new Date(json.plannedCompletionTime) : null,\r\n reOpenReasonId: json.reOpenReasonId,\r\n lastOperationId: json.lastOperationId,\r\n diversionType: json.diversionType,\r\n gmrUtilizationStatus: json.gmrUtilizationStatus,\r\n gmrCADNumber: json.gmrCADNumber,\r\n isLocked: json.isLocked,\r\n operationId: json.operationId,\r\n requestId: json.requestId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'CardJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n dateCardClosed: string | number | Date | null;\r\n transferredToCardId: string | null;\r\n transferredFromCardId: string | null;\r\n linkedCardId: string | null;\r\n closeComment: string | null;\r\n reOpenComment: string | null;\r\n postTransportDebriefCompleted: boolean | null;\r\n isBillable: boolean | null;\r\n notBillableType: NotBillableType | null;\r\n notBillableComment: string | null;\r\n apiWebhookSubscriptionId: string | null;\r\n createdById: string | null;\r\n plannedCompletionTime: string | number | Date | null;\r\n reOpenReasonId: string | null;\r\n lastOperationId: string | null;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n isLocked: boolean | null;\r\n operationId: string | null;\r\n requestId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CardRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CardRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CardRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CardJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'CardJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cardNumber: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.cardNumber, 'CardJson.cardNumber'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateCardClosed: tryOrDefault(\r\n () => (json.dateCardClosed != null ? new Date(json.dateCardClosed) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transferredToCardId: tryOrDefault(\r\n () => json.transferredToCardId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transferredFromCardId: tryOrDefault(\r\n () => json.transferredFromCardId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n linkedCardId: tryOrDefault(\r\n () => json.linkedCardId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n closeComment: tryOrDefault(\r\n () => json.closeComment,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n reOpenComment: tryOrDefault(\r\n () => json.reOpenComment,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n postTransportDebriefCompleted: tryOrDefault(\r\n () => json.postTransportDebriefCompleted,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isBillable: tryOrDefault(\r\n () => json.isBillable,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notBillableType: tryOrDefault(\r\n () => json.notBillableType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notBillableComment: tryOrDefault(\r\n () => json.notBillableComment,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n apiWebhookSubscriptionId: tryOrDefault(\r\n () => json.apiWebhookSubscriptionId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n createdById: tryOrDefault(\r\n () => json.createdById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n plannedCompletionTime: tryOrDefault(\r\n () => (json.plannedCompletionTime != null ? new Date(json.plannedCompletionTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n reOpenReasonId: tryOrDefault(\r\n () => json.reOpenReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastOperationId: tryOrDefault(\r\n () => json.lastOperationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n diversionType: tryOrDefault(\r\n () => json.diversionType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n gmrUtilizationStatus: tryOrDefault(\r\n () => json.gmrUtilizationStatus,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n gmrCADNumber: tryOrDefault(\r\n () => json.gmrCADNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isLocked: tryOrDefault(\r\n () => json.isLocked,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n operationId: tryOrDefault(\r\n () => json.operationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestId: tryOrDefault(\r\n () => json.requestId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'CardJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CardProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CardRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CardViewModelBase implements CardProps {\r\n protected readonly _props: CardProps;\r\n private _json?: CardProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get status(): CardStatus {\r\n return this._props.status;\r\n }\r\n get cardNumber(): string {\r\n return this._props.cardNumber;\r\n }\r\n get dateCardClosed(): Date | null {\r\n return this._props.dateCardClosed;\r\n }\r\n get transferredToCardId(): string | null {\r\n return this._props.transferredToCardId;\r\n }\r\n get transferredFromCardId(): string | null {\r\n return this._props.transferredFromCardId;\r\n }\r\n get linkedCardId(): string | null {\r\n return this._props.linkedCardId;\r\n }\r\n get closeComment(): string | null {\r\n return this._props.closeComment;\r\n }\r\n get reOpenComment(): string | null {\r\n return this._props.reOpenComment;\r\n }\r\n get postTransportDebriefCompleted(): boolean | null {\r\n return this._props.postTransportDebriefCompleted;\r\n }\r\n get isBillable(): boolean | null {\r\n return this._props.isBillable;\r\n }\r\n get notBillableType(): NotBillableType | null {\r\n return this._props.notBillableType;\r\n }\r\n get notBillableComment(): string | null {\r\n return this._props.notBillableComment;\r\n }\r\n get apiWebhookSubscriptionId(): string | null {\r\n return this._props.apiWebhookSubscriptionId;\r\n }\r\n get createdById(): string | null {\r\n return this._props.createdById;\r\n }\r\n get plannedCompletionTime(): Date | null {\r\n return this._props.plannedCompletionTime;\r\n }\r\n get reOpenReasonId(): string | null {\r\n return this._props.reOpenReasonId;\r\n }\r\n get lastOperationId(): string | null {\r\n return this._props.lastOperationId;\r\n }\r\n get diversionType(): DiversionType | null {\r\n return this._props.diversionType;\r\n }\r\n get gmrUtilizationStatus(): AmrUtilizationStatus | null {\r\n return this._props.gmrUtilizationStatus;\r\n }\r\n get gmrCADNumber(): string | null {\r\n return this._props.gmrCADNumber;\r\n }\r\n get isLocked(): boolean | null {\r\n return this._props.isLocked;\r\n }\r\n get operationId(): string | null {\r\n return this._props.operationId;\r\n }\r\n get requestId(): string | null {\r\n return this._props.requestId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAwaitingAssignment() {\r\n return this._props.status === CardStatus.AwaitingAssignment;\r\n }\r\n public get isAwaitingLaunch() {\r\n return this._props.status === CardStatus.AwaitingLaunch;\r\n }\r\n public get isClosed() {\r\n return this._props.status === CardStatus.Closed;\r\n }\r\n public get isCompleted() {\r\n return this._props.status === CardStatus.Completed;\r\n }\r\n public get isUnderway() {\r\n return this._props.status === CardStatus.Underway;\r\n }\r\n public get isMechanicalAbort() {\r\n return this._props.notBillableType === NotBillableType.MechanicalAbort;\r\n }\r\n public get isOther() {\r\n return this._props.notBillableType === NotBillableType.Other;\r\n }\r\n public get isPatientCondition() {\r\n return this._props.notBillableType === NotBillableType.PatientCondition;\r\n }\r\n public get isPatientExpiredOrQL() {\r\n return this._props.notBillableType === NotBillableType.PatientExpiredOrQL;\r\n }\r\n public get isPatientWentByGround() {\r\n return this._props.notBillableType === NotBillableType.PatientWentByGround;\r\n }\r\n public get isWeatherAbort() {\r\n return this._props.notBillableType === NotBillableType.WeatherAbort;\r\n }\r\n public get isDiversion() {\r\n return this._props.diversionType === DiversionType.Diversion;\r\n }\r\n public get isFollowOn() {\r\n return this._props.diversionType === DiversionType.FollowOn;\r\n }\r\n public get isNoResourcesAvailable() {\r\n return this._props.gmrUtilizationStatus === AmrUtilizationStatus.NoResourcesAvailable;\r\n }\r\n public get isNoServiceAvailable() {\r\n return this._props.gmrUtilizationStatus === AmrUtilizationStatus.NoServiceAvailable;\r\n }\r\n public get isNotConsidered() {\r\n return this._props.gmrUtilizationStatus === AmrUtilizationStatus.NotConsidered;\r\n }\r\n public get isUnsatisfactoryEta() {\r\n return this._props.gmrUtilizationStatus === AmrUtilizationStatus.UnsatisfactoryEta;\r\n }\r\n public get isUnspecified() {\r\n return this._props.gmrUtilizationStatus === AmrUtilizationStatus.Unspecified;\r\n }\r\n public get isUtilized() {\r\n return this._props.gmrUtilizationStatus === AmrUtilizationStatus.Utilized;\r\n }\r\n\r\n public isAnyStatus(...cardStatus: CardStatus[]) {\r\n return cardStatus.includes(this._props.status);\r\n }\r\n public isAnyNotBillableType(...notBillableType: NotBillableType[]) {\r\n return (\r\n this._props.notBillableType != null && notBillableType.includes(this._props.notBillableType)\r\n );\r\n }\r\n public isAnyDiversionType(...diversionType: DiversionType[]) {\r\n return this._props.diversionType != null && diversionType.includes(this._props.diversionType);\r\n }\r\n public isAnyGmrUtilizationStatus(...amrUtilizationStatus: AmrUtilizationStatus[]) {\r\n return (\r\n this._props.gmrUtilizationStatus != null &&\r\n amrUtilizationStatus.includes(this._props.gmrUtilizationStatus)\r\n );\r\n }\r\n\r\n constructor(props: CardProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n status: this._props.status,\r\n cardNumber: this._props.cardNumber,\r\n dateCardClosed: this._props.dateCardClosed,\r\n transferredToCardId: this._props.transferredToCardId,\r\n transferredFromCardId: this._props.transferredFromCardId,\r\n linkedCardId: this._props.linkedCardId,\r\n closeComment: this._props.closeComment,\r\n reOpenComment: this._props.reOpenComment,\r\n postTransportDebriefCompleted: this._props.postTransportDebriefCompleted,\r\n isBillable: this._props.isBillable,\r\n notBillableType: this._props.notBillableType,\r\n notBillableComment: this._props.notBillableComment,\r\n apiWebhookSubscriptionId: this._props.apiWebhookSubscriptionId,\r\n createdById: this._props.createdById,\r\n plannedCompletionTime: this._props.plannedCompletionTime,\r\n reOpenReasonId: this._props.reOpenReasonId,\r\n lastOperationId: this._props.lastOperationId,\r\n diversionType: this._props.diversionType,\r\n gmrUtilizationStatus: this._props.gmrUtilizationStatus,\r\n gmrCADNumber: this._props.gmrCADNumber,\r\n isLocked: this._props.isLocked,\r\n operationId: this._props.operationId,\r\n requestId: this._props.requestId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCardEntities = (state: AppState) => state.entityStores.card.entities;\r\n\r\nexport const selectCardById = (id: string) => (state: AppState) =>\r\n state.entityStores.card.entities.get(id);\r\n\r\nexport const selectCardMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.card.meta.get(id);\r\n\r\nexport const selectCardAndMetadataById = (id: string) =>\r\n createSelector(selectCardById(id), selectCardMetadataById(id), (card, meta) => ({ card, meta }));\r\n\r\nexport function selectCardEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCardEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CardRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByStatus(status: CardStatus) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByCardNumber(cardNumber: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.cardNumber === cardNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByDateCardClosed(dateCardClosed: Date) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.dateCardClosed === dateCardClosed).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByTransferredToCardId(transferredToCardId: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.transferredToCardId === transferredToCardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByTransferredFromCardId(transferredFromCardId: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.transferredFromCardId === transferredFromCardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByLinkedCardId(linkedCardId: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.linkedCardId === linkedCardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByCloseComment(closeComment: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.closeComment === closeComment).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByReOpenComment(reOpenComment: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.reOpenComment === reOpenComment).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByPostTransportDebriefCompleted(\r\n postTransportDebriefCompleted: boolean,\r\n) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities\r\n .filter((e) => e.postTransportDebriefCompleted === postTransportDebriefCompleted)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByIsBillable(isBillable: boolean) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.isBillable === isBillable).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByNotBillableType(notBillableType: NotBillableType) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.notBillableType === notBillableType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByNotBillableComment(notBillableComment: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.notBillableComment === notBillableComment).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByApiWebhookSubscriptionId(apiWebhookSubscriptionId: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.apiWebhookSubscriptionId === apiWebhookSubscriptionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByCreatedById(createdById: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.createdById === createdById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByPlannedCompletionTime(plannedCompletionTime: Date) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.plannedCompletionTime === plannedCompletionTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByReOpenReasonId(reOpenReasonId: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.reOpenReasonId === reOpenReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByLastOperationId(lastOperationId: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.lastOperationId === lastOperationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByDiversionType(diversionType: DiversionType) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.diversionType === diversionType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByGmrUtilizationStatus(\r\n gmrUtilizationStatus: AmrUtilizationStatus,\r\n) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.gmrUtilizationStatus === gmrUtilizationStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByGmrCADNumber(gmrCADNumber: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.gmrCADNumber === gmrCADNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByIsLocked(isLocked: boolean) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.isLocked === isLocked).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByOperationId(operationId: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.operationId === operationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByRequestId(requestId: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.requestId === requestId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllCardEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { CardLinkType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CardLinkProps {\r\n id: string;\r\n type: CardLinkType;\r\n fromCardId: string;\r\n toCardId: string;\r\n toCardNumber: string;\r\n rendezvousRequestId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CardLinkRecord extends Record({\r\n id: null as any,\r\n type: null as any,\r\n fromCardId: null as any,\r\n toCardId: null as any,\r\n toCardNumber: null as any,\r\n rendezvousRequestId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n type: CardLinkType;\r\n fromCardId: string;\r\n toCardId: string;\r\n toCardNumber: string;\r\n rendezvousRequestId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CardLinkRecord {\r\n if (json == null) {\r\n throw new Error('CardLinkRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CardLinkRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CardLinkJson.id'),\r\n type: getFromOrThrow(json, (j) => j.type, 'CardLinkJson.type'),\r\n fromCardId: getFromOrThrow(json, (j) => j.fromCardId, 'CardLinkJson.fromCardId'),\r\n toCardId: getFromOrThrow(json, (j) => j.toCardId, 'CardLinkJson.toCardId'),\r\n toCardNumber: getFromOrThrow(json, (j) => j.toCardNumber, 'CardLinkJson.toCardNumber'),\r\n rendezvousRequestId: json.rendezvousRequestId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'CardLinkJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n type: CardLinkType;\r\n fromCardId: string;\r\n toCardId: string;\r\n toCardNumber: string;\r\n rendezvousRequestId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CardLinkRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CardLinkRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CardLinkRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CardLinkJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'CardLinkJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fromCardId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.fromCardId, 'CardLinkJson.fromCardId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n toCardId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.toCardId, 'CardLinkJson.toCardId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n toCardNumber: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.toCardNumber, 'CardLinkJson.toCardNumber'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n rendezvousRequestId: tryOrDefault(\r\n () => json.rendezvousRequestId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'CardLinkJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CardLinkProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CardLinkRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CardLinkViewModelBase implements CardLinkProps {\r\n protected readonly _props: CardLinkProps;\r\n private _json?: CardLinkProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get type(): CardLinkType {\r\n return this._props.type;\r\n }\r\n get fromCardId(): string {\r\n return this._props.fromCardId;\r\n }\r\n get toCardId(): string {\r\n return this._props.toCardId;\r\n }\r\n get toCardNumber(): string {\r\n return this._props.toCardNumber;\r\n }\r\n get rendezvousRequestId(): string | null {\r\n return this._props.rendezvousRequestId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isReferral() {\r\n return this._props.type === CardLinkType.Referral;\r\n }\r\n public get isSupportLeg() {\r\n return this._props.type === CardLinkType.SupportLeg;\r\n }\r\n\r\n public isAnyType(...cardLinkType: CardLinkType[]) {\r\n return cardLinkType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: CardLinkProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n type: this._props.type,\r\n fromCardId: this._props.fromCardId,\r\n toCardId: this._props.toCardId,\r\n toCardNumber: this._props.toCardNumber,\r\n rendezvousRequestId: this._props.rendezvousRequestId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCardLinkEntities = (state: AppState) => state.entityStores.cardLink.entities;\r\n\r\nexport const selectCardLinkById = (id: string) => (state: AppState) =>\r\n state.entityStores.cardLink.entities.get(id);\r\n\r\nexport const selectCardLinkMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.cardLink.meta.get(id);\r\n\r\nexport const selectCardLinkAndMetadataById = (id: string) =>\r\n createSelector(selectCardLinkById(id), selectCardLinkMetadataById(id), (cardLink, meta) => ({\r\n cardLink,\r\n meta,\r\n }));\r\n\r\nexport function selectCardLinkEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCardLinkEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CardLinkRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCardLinkEntitiesByType(type: CardLinkType) {\r\n return createSelector(selectAllCardLinkEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardLinkEntitiesByFromCardId(fromCardId: string) {\r\n return createSelector(selectAllCardLinkEntities, (entities) =>\r\n entities.filter((e) => e.fromCardId === fromCardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardLinkEntitiesByToCardId(toCardId: string) {\r\n return createSelector(selectAllCardLinkEntities, (entities) =>\r\n entities.filter((e) => e.toCardId === toCardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardLinkEntitiesByToCardNumber(toCardNumber: string) {\r\n return createSelector(selectAllCardLinkEntities, (entities) =>\r\n entities.filter((e) => e.toCardNumber === toCardNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardLinkEntitiesByRendezvousRequestId(rendezvousRequestId: string) {\r\n return createSelector(selectAllCardLinkEntities, (entities) =>\r\n entities.filter((e) => e.rendezvousRequestId === rendezvousRequestId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardLinkEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllCardLinkEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CardNoteArchiveProps {\r\n id: string;\r\n content: string;\r\n noteTime: Date;\r\n authorId: string | null;\r\n isInternal: boolean;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n isSystem: boolean;\r\n dateArchived: Date;\r\n cardId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CardNoteArchiveRecord extends Record({\r\n id: null as any,\r\n content: null as any,\r\n noteTime: null as any,\r\n authorId: null as any,\r\n isInternal: null as any,\r\n noteCategory: null as any,\r\n noteMetadataJson: null as any,\r\n isSystem: null as any,\r\n dateArchived: null as any,\r\n cardId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n content: string;\r\n noteTime: string | number | Date;\r\n authorId: string | null;\r\n isInternal: boolean;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n isSystem: boolean;\r\n dateArchived: string | number | Date;\r\n cardId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CardNoteArchiveRecord {\r\n if (json == null) {\r\n throw new Error('CardNoteArchiveRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CardNoteArchiveRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CardNoteArchiveJson.id'),\r\n content: getFromOrThrow(json, (j) => j.content, 'CardNoteArchiveJson.content'),\r\n noteTime: new Date(getFromOrThrow(json, (j) => j.noteTime, 'CardNoteArchiveJson.noteTime')),\r\n authorId: json.authorId,\r\n isInternal: getFromOrThrow(json, (j) => j.isInternal, 'CardNoteArchiveJson.isInternal'),\r\n noteCategory: json.noteCategory,\r\n noteMetadataJson: json.noteMetadataJson,\r\n isSystem: getFromOrThrow(json, (j) => j.isSystem, 'CardNoteArchiveJson.isSystem'),\r\n dateArchived: new Date(\r\n getFromOrThrow(json, (j) => j.dateArchived, 'CardNoteArchiveJson.dateArchived'),\r\n ),\r\n cardId: getFromOrThrow(json, (j) => j.cardId, 'CardNoteArchiveJson.cardId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'CardNoteArchiveJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n content: string;\r\n noteTime: string | number | Date;\r\n authorId: string | null;\r\n isInternal: boolean;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n isSystem: boolean;\r\n dateArchived: string | number | Date;\r\n cardId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CardNoteArchiveRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CardNoteArchiveRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CardNoteArchiveRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CardNoteArchiveJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n content: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.content, 'CardNoteArchiveJson.content'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n noteTime: tryOrDefault(\r\n () => new Date(getFromOrThrow(json, (j) => j.noteTime, 'CardNoteArchiveJson.noteTime')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n authorId: tryOrDefault(\r\n () => json.authorId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isInternal: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isInternal, 'CardNoteArchiveJson.isInternal'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n noteCategory: tryOrDefault(\r\n () => json.noteCategory,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n noteMetadataJson: tryOrDefault(\r\n () => json.noteMetadataJson,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isSystem: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isSystem, 'CardNoteArchiveJson.isSystem'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateArchived: tryOrDefault(\r\n () =>\r\n new Date(getFromOrThrow(json, (j) => j.dateArchived, 'CardNoteArchiveJson.dateArchived')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cardId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.cardId, 'CardNoteArchiveJson.cardId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'CardNoteArchiveJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CardNoteArchiveProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CardNoteArchiveRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CardNoteArchiveViewModelBase implements CardNoteArchiveProps {\r\n protected readonly _props: CardNoteArchiveProps;\r\n private _json?: CardNoteArchiveProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get content(): string {\r\n return this._props.content;\r\n }\r\n get noteTime(): Date {\r\n return this._props.noteTime;\r\n }\r\n get authorId(): string | null {\r\n return this._props.authorId;\r\n }\r\n get isInternal(): boolean {\r\n return this._props.isInternal;\r\n }\r\n get noteCategory(): string | null {\r\n return this._props.noteCategory;\r\n }\r\n get noteMetadataJson(): string | null {\r\n return this._props.noteMetadataJson;\r\n }\r\n get isSystem(): boolean {\r\n return this._props.isSystem;\r\n }\r\n get dateArchived(): Date {\r\n return this._props.dateArchived;\r\n }\r\n get cardId(): string {\r\n return this._props.cardId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: CardNoteArchiveProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n content: this._props.content,\r\n noteTime: this._props.noteTime,\r\n authorId: this._props.authorId,\r\n isInternal: this._props.isInternal,\r\n noteCategory: this._props.noteCategory,\r\n noteMetadataJson: this._props.noteMetadataJson,\r\n isSystem: this._props.isSystem,\r\n dateArchived: this._props.dateArchived,\r\n cardId: this._props.cardId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCardNoteArchiveEntities = (state: AppState) =>\r\n state.entityStores.cardNoteArchive.entities;\r\n\r\nexport const selectCardNoteArchiveById = (id: string) => (state: AppState) =>\r\n state.entityStores.cardNoteArchive.entities.get(id);\r\n\r\nexport const selectCardNoteArchiveMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.cardNoteArchive.meta.get(id);\r\n\r\nexport const selectCardNoteArchiveAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectCardNoteArchiveById(id),\r\n selectCardNoteArchiveMetadataById(id),\r\n (cardNoteArchive, meta) => ({ cardNoteArchive, meta }),\r\n );\r\n\r\nexport function selectCardNoteArchiveEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCardNoteArchiveEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CardNoteArchiveRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCardNoteArchiveEntitiesByContent(content: string) {\r\n return createSelector(selectAllCardNoteArchiveEntities, (entities) =>\r\n entities.filter((e) => e.content === content).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteArchiveEntitiesByNoteTime(noteTime: Date) {\r\n return createSelector(selectAllCardNoteArchiveEntities, (entities) =>\r\n entities.filter((e) => e.noteTime === noteTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteArchiveEntitiesByAuthorId(authorId: string) {\r\n return createSelector(selectAllCardNoteArchiveEntities, (entities) =>\r\n entities.filter((e) => e.authorId === authorId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteArchiveEntitiesByIsInternal(isInternal: boolean) {\r\n return createSelector(selectAllCardNoteArchiveEntities, (entities) =>\r\n entities.filter((e) => e.isInternal === isInternal).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteArchiveEntitiesByNoteCategory(noteCategory: string) {\r\n return createSelector(selectAllCardNoteArchiveEntities, (entities) =>\r\n entities.filter((e) => e.noteCategory === noteCategory).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteArchiveEntitiesByNoteMetadataJson(noteMetadataJson: string) {\r\n return createSelector(selectAllCardNoteArchiveEntities, (entities) =>\r\n entities.filter((e) => e.noteMetadataJson === noteMetadataJson).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteArchiveEntitiesByIsSystem(isSystem: boolean) {\r\n return createSelector(selectAllCardNoteArchiveEntities, (entities) =>\r\n entities.filter((e) => e.isSystem === isSystem).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteArchiveEntitiesByDateArchived(dateArchived: Date) {\r\n return createSelector(selectAllCardNoteArchiveEntities, (entities) =>\r\n entities.filter((e) => e.dateArchived === dateArchived).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteArchiveEntitiesByCardId(cardId: string) {\r\n return createSelector(selectAllCardNoteArchiveEntities, (entities) =>\r\n entities.filter((e) => e.cardId === cardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteArchiveEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllCardNoteArchiveEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CardNoteProps {\r\n id: string;\r\n content: string;\r\n noteTime: Date;\r\n authorId: string | null;\r\n isInternal: boolean;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n isSystem: boolean;\r\n cardId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CardNoteRecord extends Record({\r\n id: null as any,\r\n content: null as any,\r\n noteTime: null as any,\r\n authorId: null as any,\r\n isInternal: null as any,\r\n noteCategory: null as any,\r\n noteMetadataJson: null as any,\r\n isSystem: null as any,\r\n cardId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n content: string;\r\n noteTime: string | number | Date;\r\n authorId: string | null;\r\n isInternal: boolean;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n isSystem: boolean;\r\n cardId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CardNoteRecord {\r\n if (json == null) {\r\n throw new Error('CardNoteRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CardNoteRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CardNoteJson.id'),\r\n content: getFromOrThrow(json, (j) => j.content, 'CardNoteJson.content'),\r\n noteTime: new Date(getFromOrThrow(json, (j) => j.noteTime, 'CardNoteJson.noteTime')),\r\n authorId: json.authorId,\r\n isInternal: getFromOrThrow(json, (j) => j.isInternal, 'CardNoteJson.isInternal'),\r\n noteCategory: json.noteCategory,\r\n noteMetadataJson: json.noteMetadataJson,\r\n isSystem: getFromOrThrow(json, (j) => j.isSystem, 'CardNoteJson.isSystem'),\r\n cardId: getFromOrThrow(json, (j) => j.cardId, 'CardNoteJson.cardId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'CardNoteJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n content: string;\r\n noteTime: string | number | Date;\r\n authorId: string | null;\r\n isInternal: boolean;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n isSystem: boolean;\r\n cardId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CardNoteRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CardNoteRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CardNoteRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CardNoteJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n content: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.content, 'CardNoteJson.content'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n noteTime: tryOrDefault(\r\n () => new Date(getFromOrThrow(json, (j) => j.noteTime, 'CardNoteJson.noteTime')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n authorId: tryOrDefault(\r\n () => json.authorId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isInternal: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isInternal, 'CardNoteJson.isInternal'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n noteCategory: tryOrDefault(\r\n () => json.noteCategory,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n noteMetadataJson: tryOrDefault(\r\n () => json.noteMetadataJson,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isSystem: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isSystem, 'CardNoteJson.isSystem'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cardId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.cardId, 'CardNoteJson.cardId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'CardNoteJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CardNoteProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CardNoteRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CardNoteViewModelBase implements CardNoteProps {\r\n protected readonly _props: CardNoteProps;\r\n private _json?: CardNoteProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get content(): string {\r\n return this._props.content;\r\n }\r\n get noteTime(): Date {\r\n return this._props.noteTime;\r\n }\r\n get authorId(): string | null {\r\n return this._props.authorId;\r\n }\r\n get isInternal(): boolean {\r\n return this._props.isInternal;\r\n }\r\n get noteCategory(): string | null {\r\n return this._props.noteCategory;\r\n }\r\n get noteMetadataJson(): string | null {\r\n return this._props.noteMetadataJson;\r\n }\r\n get isSystem(): boolean {\r\n return this._props.isSystem;\r\n }\r\n get cardId(): string {\r\n return this._props.cardId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: CardNoteProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n content: this._props.content,\r\n noteTime: this._props.noteTime,\r\n authorId: this._props.authorId,\r\n isInternal: this._props.isInternal,\r\n noteCategory: this._props.noteCategory,\r\n noteMetadataJson: this._props.noteMetadataJson,\r\n isSystem: this._props.isSystem,\r\n cardId: this._props.cardId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCardNoteEntities = (state: AppState) => state.entityStores.cardNote.entities;\r\n\r\nexport const selectCardNoteById = (id: string) => (state: AppState) =>\r\n state.entityStores.cardNote.entities.get(id);\r\n\r\nexport const selectCardNoteMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.cardNote.meta.get(id);\r\n\r\nexport const selectCardNoteAndMetadataById = (id: string) =>\r\n createSelector(selectCardNoteById(id), selectCardNoteMetadataById(id), (cardNote, meta) => ({\r\n cardNote,\r\n meta,\r\n }));\r\n\r\nexport function selectCardNoteEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCardNoteEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CardNoteRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCardNoteEntitiesByContent(content: string) {\r\n return createSelector(selectAllCardNoteEntities, (entities) =>\r\n entities.filter((e) => e.content === content).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteEntitiesByNoteTime(noteTime: Date) {\r\n return createSelector(selectAllCardNoteEntities, (entities) =>\r\n entities.filter((e) => e.noteTime === noteTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteEntitiesByAuthorId(authorId: string) {\r\n return createSelector(selectAllCardNoteEntities, (entities) =>\r\n entities.filter((e) => e.authorId === authorId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteEntitiesByIsInternal(isInternal: boolean) {\r\n return createSelector(selectAllCardNoteEntities, (entities) =>\r\n entities.filter((e) => e.isInternal === isInternal).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteEntitiesByNoteCategory(noteCategory: string) {\r\n return createSelector(selectAllCardNoteEntities, (entities) =>\r\n entities.filter((e) => e.noteCategory === noteCategory).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteEntitiesByNoteMetadataJson(noteMetadataJson: string) {\r\n return createSelector(selectAllCardNoteEntities, (entities) =>\r\n entities.filter((e) => e.noteMetadataJson === noteMetadataJson).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteEntitiesByIsSystem(isSystem: boolean) {\r\n return createSelector(selectAllCardNoteEntities, (entities) =>\r\n entities.filter((e) => e.isSystem === isSystem).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteEntitiesByCardId(cardId: string) {\r\n return createSelector(selectAllCardNoteEntities, (entities) =>\r\n entities.filter((e) => e.cardId === cardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardNoteEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllCardNoteEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CardReOpenReasonProps {\r\n id: string;\r\n name: string;\r\n affectsTrip: boolean;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CardReOpenReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n affectsTrip: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n affectsTrip: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CardReOpenReasonRecord {\r\n if (json == null) {\r\n throw new Error('CardReOpenReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CardReOpenReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CardReOpenReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'CardReOpenReasonJson.name'),\r\n affectsTrip: getFromOrThrow(json, (j) => j.affectsTrip, 'CardReOpenReasonJson.affectsTrip'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n affectsTrip: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CardReOpenReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CardReOpenReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CardReOpenReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CardReOpenReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'CardReOpenReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n affectsTrip: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.affectsTrip, 'CardReOpenReasonJson.affectsTrip'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CardReOpenReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CardReOpenReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CardReOpenReasonViewModelBase implements CardReOpenReasonProps {\r\n protected readonly _props: CardReOpenReasonProps;\r\n private _json?: CardReOpenReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get affectsTrip(): boolean {\r\n return this._props.affectsTrip;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: CardReOpenReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n affectsTrip: this._props.affectsTrip,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCardReOpenReasonEntities = (state: AppState) =>\r\n state.entityStores.cardReOpenReason.entities;\r\n\r\nexport const selectCardReOpenReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.cardReOpenReason.entities.get(id);\r\n\r\nexport const selectCardReOpenReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.cardReOpenReason.meta.get(id);\r\n\r\nexport const selectCardReOpenReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectCardReOpenReasonById(id),\r\n selectCardReOpenReasonMetadataById(id),\r\n (cardReOpenReason, meta) => ({ cardReOpenReason, meta }),\r\n );\r\n\r\nexport function selectCardReOpenReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCardReOpenReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CardReOpenReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCardReOpenReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllCardReOpenReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardReOpenReasonEntitiesByAffectsTrip(affectsTrip: boolean) {\r\n return createSelector(selectAllCardReOpenReasonEntities, (entities) =>\r\n entities.filter((e) => e.affectsTrip === affectsTrip).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { OperationStatus } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface OperationSummaryProps {\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n}\r\n\r\nexport class OperationSummaryRecord extends Record({\r\n id: null as any,\r\n status: null as any,\r\n unitId: null as any,\r\n vehicleId: null as any,\r\n riskAnalysisNumber: null as any,\r\n riskAnalysisAcknowledged: null as any,\r\n tripId: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n }): OperationSummaryRecord {\r\n if (json == null) {\r\n throw new Error('OperationSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new OperationSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'OperationSummaryJson.id'),\r\n status: getFromOrThrow(json, (j) => j.status, 'OperationSummaryJson.status'),\r\n unitId: json.unitId,\r\n vehicleId: json.vehicleId,\r\n riskAnalysisNumber: json.riskAnalysisNumber,\r\n riskAnalysisAcknowledged: json.riskAnalysisAcknowledged,\r\n tripId: json.tripId,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n status: OperationStatus;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n riskAnalysisNumber: string | null;\r\n riskAnalysisAcknowledged: boolean | null;\r\n tripId: string | null;\r\n }): [OperationSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('OperationSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new OperationSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'OperationSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'OperationSummaryJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => json.unitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => json.vehicleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n riskAnalysisNumber: tryOrDefault(\r\n () => json.riskAnalysisNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n riskAnalysisAcknowledged: tryOrDefault(\r\n () => json.riskAnalysisAcknowledged,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tripId: tryOrDefault(\r\n () => json.tripId,\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: OperationSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('OperationSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class OperationSummaryViewModelBase implements OperationSummaryProps {\r\n protected readonly _props: OperationSummaryProps;\r\n private _json?: OperationSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get status(): OperationStatus {\r\n return this._props.status;\r\n }\r\n get unitId(): string | null {\r\n return this._props.unitId;\r\n }\r\n get vehicleId(): string | null {\r\n return this._props.vehicleId;\r\n }\r\n get riskAnalysisNumber(): string | null {\r\n return this._props.riskAnalysisNumber;\r\n }\r\n get riskAnalysisAcknowledged(): boolean | null {\r\n return this._props.riskAnalysisAcknowledged;\r\n }\r\n get tripId(): string | null {\r\n return this._props.tripId;\r\n }\r\n\r\n public get isAborted() {\r\n return this._props.status === OperationStatus.Aborted;\r\n }\r\n public get isCancelled() {\r\n return this._props.status === OperationStatus.Cancelled;\r\n }\r\n public get isCompleted() {\r\n return this._props.status === OperationStatus.Completed;\r\n }\r\n public get isCrewAccepted() {\r\n return this._props.status === OperationStatus.CrewAccepted;\r\n }\r\n public get isOnStandby() {\r\n return this._props.status === OperationStatus.OnStandby;\r\n }\r\n public get isScheduled() {\r\n return this._props.status === OperationStatus.Scheduled;\r\n }\r\n public get isUnderway() {\r\n return this._props.status === OperationStatus.Underway;\r\n }\r\n public get isUnitActivated() {\r\n return this._props.status === OperationStatus.UnitActivated;\r\n }\r\n\r\n public isAnyStatus(...operationStatus: OperationStatus[]) {\r\n return operationStatus.includes(this._props.status);\r\n }\r\n\r\n constructor(props: OperationSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n status: this._props.status,\r\n unitId: this._props.unitId,\r\n vehicleId: this._props.vehicleId,\r\n riskAnalysisNumber: this._props.riskAnalysisNumber,\r\n riskAnalysisAcknowledged: this._props.riskAnalysisAcknowledged,\r\n tripId: this._props.tripId,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { MissionRoleType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RequesterSummaryProps {\r\n id: string;\r\n missionRole: MissionRoleType;\r\n}\r\n\r\nexport class RequesterSummaryRecord extends Record({\r\n id: null as any,\r\n missionRole: null as any,\r\n}) {\r\n public static fromJS(json: { id: string; missionRole: MissionRoleType }): RequesterSummaryRecord {\r\n if (json == null) {\r\n throw new Error('RequesterSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RequesterSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RequesterSummaryJson.id'),\r\n missionRole: getFromOrThrow(json, (j) => j.missionRole, 'RequesterSummaryJson.missionRole'),\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n missionRole: MissionRoleType;\r\n }): [RequesterSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RequesterSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RequesterSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RequesterSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n missionRole: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.missionRole, 'RequesterSummaryJson.missionRole'),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RequesterSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RequesterSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RequesterSummaryViewModelBase implements RequesterSummaryProps {\r\n protected readonly _props: RequesterSummaryProps;\r\n private _json?: RequesterSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get missionRole(): MissionRoleType {\r\n return this._props.missionRole;\r\n }\r\n\r\n public get isANMC() {\r\n return this._props.missionRole === MissionRoleType.ANMC;\r\n }\r\n public get isCharter() {\r\n return this._props.missionRole === MissionRoleType.Charter;\r\n }\r\n public get isFlightFollowing() {\r\n return this._props.missionRole === MissionRoleType.FlightFollowing;\r\n }\r\n public get isFullService() {\r\n return this._props.missionRole === MissionRoleType.FullService;\r\n }\r\n public get isHospice() {\r\n return this._props.missionRole === MissionRoleType.Hospice;\r\n }\r\n public get isMassCasualty() {\r\n return this._props.missionRole === MissionRoleType.MassCasualty;\r\n }\r\n public get isPrecautionaryEvacuation() {\r\n return this._props.missionRole === MissionRoleType.PrecautionaryEvacuation;\r\n }\r\n public get isQuote() {\r\n return this._props.missionRole === MissionRoleType.Quote;\r\n }\r\n public get isSEARHC() {\r\n return this._props.missionRole === MissionRoleType.SEARHC;\r\n }\r\n public get isSupplemental() {\r\n return this._props.missionRole === MissionRoleType.Supplemental;\r\n }\r\n public get isTeamFlight() {\r\n return this._props.missionRole === MissionRoleType.TeamFlight;\r\n }\r\n\r\n public isAnyMissionRole(...missionRoleType: MissionRoleType[]) {\r\n return missionRoleType.includes(this._props.missionRole);\r\n }\r\n\r\n constructor(props: RequesterSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n missionRole: this._props.missionRole,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { WaypointType } from 'src/graphql/generated/graphql.generated';\r\nimport { AddressRecord, AddressProps } from 'src/store/generated/address-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RequestLocationSummaryProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: AddressProps | null;\r\n}\r\n\r\nexport class RequestLocationSummaryRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n type: null as any,\r\n address: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: any;\r\n }): RequestLocationSummaryRecord {\r\n if (json == null) {\r\n throw new Error('RequestLocationSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RequestLocationSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RequestLocationSummaryJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'RequestLocationSummaryJson.name'),\r\n abbreviation: getFromOrThrow(\r\n json,\r\n (j) => j.abbreviation,\r\n 'RequestLocationSummaryJson.abbreviation',\r\n ),\r\n type: getFromOrThrow(json, (j) => j.type, 'RequestLocationSummaryJson.type'),\r\n address: json.address != null ? new AddressRecord(json.address) : null,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: any;\r\n }): [RequestLocationSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RequestLocationSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RequestLocationSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RequestLocationSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'RequestLocationSummaryJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.abbreviation, 'RequestLocationSummaryJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'RequestLocationSummaryJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n address: tryOrDefault(\r\n () => (json.address != null ? new AddressRecord(json.address) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RequestLocationSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RequestLocationSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RequestLocationSummaryViewModelBase implements RequestLocationSummaryProps {\r\n protected readonly _props: RequestLocationSummaryProps;\r\n private _json?: RequestLocationSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get type(): WaypointType {\r\n return this._props.type;\r\n }\r\n get address(): AddressProps | null {\r\n return this._props.address;\r\n }\r\n\r\n public get isDropoffTeam() {\r\n return this._props.type === WaypointType.DropoffTeam;\r\n }\r\n public get isEnRouteDiversion() {\r\n return this._props.type === WaypointType.EnRouteDiversion;\r\n }\r\n public get isFuelLocation() {\r\n return this._props.type === WaypointType.FuelLocation;\r\n }\r\n public get isOther() {\r\n return this._props.type === WaypointType.Other;\r\n }\r\n public get isPatientDropoffRendezvous() {\r\n return this._props.type === WaypointType.PatientDropoffRendezvous;\r\n }\r\n public get isPatientPickupRendezvous() {\r\n return this._props.type === WaypointType.PatientPickupRendezvous;\r\n }\r\n public get isPickupTeam() {\r\n return this._props.type === WaypointType.PickupTeam;\r\n }\r\n public get isPost() {\r\n return this._props.type === WaypointType.Post;\r\n }\r\n public get isPublicRelationsSite() {\r\n return this._props.type === WaypointType.PublicRelationsSite;\r\n }\r\n public get isReceivingFacility() {\r\n return this._props.type === WaypointType.ReceivingFacility;\r\n }\r\n public get isRendezvousPoint() {\r\n return this._props.type === WaypointType.RendezvousPoint;\r\n }\r\n public get isSceneLocation() {\r\n return this._props.type === WaypointType.SceneLocation;\r\n }\r\n public get isSendingFacility() {\r\n return this._props.type === WaypointType.SendingFacility;\r\n }\r\n\r\n public isAnyType(...waypointType: WaypointType[]) {\r\n return waypointType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: RequestLocationSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n type: this._props.type,\r\n address: this._props.address,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { RequestStatus } from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n RequesterSummaryRecord,\r\n RequesterSummaryProps,\r\n} from 'src/store/generated/requester-summary-record.generated';\r\nimport {\r\n RequestLocationSummaryRecord,\r\n RequestLocationSummaryProps,\r\n} from 'src/store/generated/request-location-summary-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RequestSummaryProps {\r\n id: string;\r\n status: RequestStatus;\r\n requester: RequesterSummaryProps | null;\r\n from: RequestLocationSummaryProps | null;\r\n to: RequestLocationSummaryProps | null;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: Date | null;\r\n}\r\n\r\nexport class RequestSummaryRecord extends Record({\r\n id: null as any,\r\n status: null as any,\r\n requester: null as any,\r\n from: null as any,\r\n to: null as any,\r\n isStandbyRequest: null as any,\r\n isSisterCompanyReferral: null as any,\r\n standbyActivationRequested: null as any,\r\n assignmentDelayedReason: null as any,\r\n transportTrackingLink: null as any,\r\n latestWeatherDeclineUnitId: null as any,\r\n latestWeatherDeclineTime: null as any,\r\n latestWeatherDeclineReasonId: null as any,\r\n latestWeatherDeclineSecondaryReasonId: null as any,\r\n assignmentDelayedTime: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n status: RequestStatus;\r\n requester: any;\r\n from: any;\r\n to: any;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: string | number | Date | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: string | number | Date | null;\r\n }): RequestSummaryRecord {\r\n if (json == null) {\r\n throw new Error('RequestSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RequestSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RequestSummaryJson.id'),\r\n status: getFromOrThrow(json, (j) => j.status, 'RequestSummaryJson.status'),\r\n requester: json.requester != null ? new RequesterSummaryRecord(json.requester) : null,\r\n from: json.from != null ? new RequestLocationSummaryRecord(json.from) : null,\r\n to: json.to != null ? new RequestLocationSummaryRecord(json.to) : null,\r\n isStandbyRequest: getFromOrThrow(\r\n json,\r\n (j) => j.isStandbyRequest,\r\n 'RequestSummaryJson.isStandbyRequest',\r\n ),\r\n isSisterCompanyReferral: getFromOrThrow(\r\n json,\r\n (j) => j.isSisterCompanyReferral,\r\n 'RequestSummaryJson.isSisterCompanyReferral',\r\n ),\r\n standbyActivationRequested: getFromOrThrow(\r\n json,\r\n (j) => j.standbyActivationRequested,\r\n 'RequestSummaryJson.standbyActivationRequested',\r\n ),\r\n assignmentDelayedReason: json.assignmentDelayedReason,\r\n transportTrackingLink: json.transportTrackingLink,\r\n latestWeatherDeclineUnitId: json.latestWeatherDeclineUnitId,\r\n latestWeatherDeclineTime:\r\n json.latestWeatherDeclineTime != null ? new Date(json.latestWeatherDeclineTime) : null,\r\n latestWeatherDeclineReasonId: json.latestWeatherDeclineReasonId,\r\n latestWeatherDeclineSecondaryReasonId: json.latestWeatherDeclineSecondaryReasonId,\r\n assignmentDelayedTime:\r\n json.assignmentDelayedTime != null ? new Date(json.assignmentDelayedTime) : null,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n status: RequestStatus;\r\n requester: any;\r\n from: any;\r\n to: any;\r\n isStandbyRequest: boolean;\r\n isSisterCompanyReferral: boolean;\r\n standbyActivationRequested: boolean;\r\n assignmentDelayedReason: string | null;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: string | number | Date | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n assignmentDelayedTime: string | number | Date | null;\r\n }): [RequestSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RequestSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RequestSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RequestSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'RequestSummaryJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requester: tryOrDefault(\r\n () => (json.requester != null ? new RequesterSummaryRecord(json.requester) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n from: tryOrDefault(\r\n () => (json.from != null ? new RequestLocationSummaryRecord(json.from) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n to: tryOrDefault(\r\n () => (json.to != null ? new RequestLocationSummaryRecord(json.to) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isStandbyRequest: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.isStandbyRequest, 'RequestSummaryJson.isStandbyRequest'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isSisterCompanyReferral: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.isSisterCompanyReferral,\r\n 'RequestSummaryJson.isSisterCompanyReferral',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n standbyActivationRequested: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.standbyActivationRequested,\r\n 'RequestSummaryJson.standbyActivationRequested',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n assignmentDelayedReason: tryOrDefault(\r\n () => json.assignmentDelayedReason,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportTrackingLink: tryOrDefault(\r\n () => json.transportTrackingLink,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latestWeatherDeclineUnitId: tryOrDefault(\r\n () => json.latestWeatherDeclineUnitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latestWeatherDeclineTime: tryOrDefault(\r\n () =>\r\n json.latestWeatherDeclineTime != null ? new Date(json.latestWeatherDeclineTime) : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latestWeatherDeclineReasonId: tryOrDefault(\r\n () => json.latestWeatherDeclineReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latestWeatherDeclineSecondaryReasonId: tryOrDefault(\r\n () => json.latestWeatherDeclineSecondaryReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n assignmentDelayedTime: tryOrDefault(\r\n () => (json.assignmentDelayedTime != null ? new Date(json.assignmentDelayedTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RequestSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RequestSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RequestSummaryViewModelBase implements RequestSummaryProps {\r\n protected readonly _props: RequestSummaryProps;\r\n private _json?: RequestSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get status(): RequestStatus {\r\n return this._props.status;\r\n }\r\n get requester(): RequesterSummaryProps | null {\r\n return this._props.requester;\r\n }\r\n get from(): RequestLocationSummaryProps | null {\r\n return this._props.from;\r\n }\r\n get to(): RequestLocationSummaryProps | null {\r\n return this._props.to;\r\n }\r\n get isStandbyRequest(): boolean {\r\n return this._props.isStandbyRequest;\r\n }\r\n get isSisterCompanyReferral(): boolean {\r\n return this._props.isSisterCompanyReferral;\r\n }\r\n get standbyActivationRequested(): boolean {\r\n return this._props.standbyActivationRequested;\r\n }\r\n get assignmentDelayedReason(): string | null {\r\n return this._props.assignmentDelayedReason;\r\n }\r\n get transportTrackingLink(): string | null {\r\n return this._props.transportTrackingLink;\r\n }\r\n get latestWeatherDeclineUnitId(): string | null {\r\n return this._props.latestWeatherDeclineUnitId;\r\n }\r\n get latestWeatherDeclineTime(): Date | null {\r\n return this._props.latestWeatherDeclineTime;\r\n }\r\n get latestWeatherDeclineReasonId(): string | null {\r\n return this._props.latestWeatherDeclineReasonId;\r\n }\r\n get latestWeatherDeclineSecondaryReasonId(): string | null {\r\n return this._props.latestWeatherDeclineSecondaryReasonId;\r\n }\r\n get assignmentDelayedTime(): Date | null {\r\n return this._props.assignmentDelayedTime;\r\n }\r\n\r\n public get isAssigned() {\r\n return this._props.status === RequestStatus.Assigned;\r\n }\r\n public get isAssignmentDelayed() {\r\n return this._props.status === RequestStatus.AssignmentDelayed;\r\n }\r\n public get isCallReceived() {\r\n return this._props.status === RequestStatus.CallReceived;\r\n }\r\n public get isCancelled() {\r\n return this._props.status === RequestStatus.Cancelled;\r\n }\r\n public get isOffered() {\r\n return this._props.status === RequestStatus.Offered;\r\n }\r\n public get isOffering() {\r\n return this._props.status === RequestStatus.Offering;\r\n }\r\n\r\n public isAnyStatus(...requestStatus: RequestStatus[]) {\r\n return requestStatus.includes(this._props.status);\r\n }\r\n\r\n constructor(props: RequestSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n status: this._props.status,\r\n requester: this._props.requester,\r\n from: this._props.from,\r\n to: this._props.to,\r\n isStandbyRequest: this._props.isStandbyRequest,\r\n isSisterCompanyReferral: this._props.isSisterCompanyReferral,\r\n standbyActivationRequested: this._props.standbyActivationRequested,\r\n assignmentDelayedReason: this._props.assignmentDelayedReason,\r\n transportTrackingLink: this._props.transportTrackingLink,\r\n latestWeatherDeclineUnitId: this._props.latestWeatherDeclineUnitId,\r\n latestWeatherDeclineTime: this._props.latestWeatherDeclineTime,\r\n latestWeatherDeclineReasonId: this._props.latestWeatherDeclineReasonId,\r\n latestWeatherDeclineSecondaryReasonId: this._props.latestWeatherDeclineSecondaryReasonId,\r\n assignmentDelayedTime: this._props.assignmentDelayedTime,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RequestPatientSummaryProps {\r\n id: string;\r\n dateOfBirth: Date | null;\r\n weightInKg: number | null;\r\n dateCreated: Date | null;\r\n}\r\n\r\nexport class RequestPatientSummaryRecord extends Record({\r\n id: null as any,\r\n dateOfBirth: null as any,\r\n weightInKg: null as any,\r\n dateCreated: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n dateOfBirth: string | number | Date | null;\r\n weightInKg: number | null;\r\n dateCreated: string | number | Date | null;\r\n }): RequestPatientSummaryRecord {\r\n if (json == null) {\r\n throw new Error('RequestPatientSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RequestPatientSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RequestPatientSummaryJson.id'),\r\n dateOfBirth: json.dateOfBirth != null ? new Date(json.dateOfBirth) : null,\r\n weightInKg: json.weightInKg,\r\n dateCreated: json.dateCreated != null ? new Date(json.dateCreated) : null,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n dateOfBirth: string | number | Date | null;\r\n weightInKg: number | null;\r\n dateCreated: string | number | Date | null;\r\n }): [RequestPatientSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RequestPatientSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RequestPatientSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RequestPatientSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateOfBirth: tryOrDefault(\r\n () => (json.dateOfBirth != null ? new Date(json.dateOfBirth) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n weightInKg: tryOrDefault(\r\n () => json.weightInKg,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateCreated: tryOrDefault(\r\n () => (json.dateCreated != null ? new Date(json.dateCreated) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RequestPatientSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RequestPatientSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RequestPatientSummaryViewModelBase implements RequestPatientSummaryProps {\r\n protected readonly _props: RequestPatientSummaryProps;\r\n private _json?: RequestPatientSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get dateOfBirth(): Date | null {\r\n return this._props.dateOfBirth;\r\n }\r\n get weightInKg(): number | null {\r\n return this._props.weightInKg;\r\n }\r\n get dateCreated(): Date | null {\r\n return this._props.dateCreated;\r\n }\r\n\r\n constructor(props: RequestPatientSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n dateOfBirth: this._props.dateOfBirth,\r\n weightInKg: this._props.weightInKg,\r\n dateCreated: this._props.dateCreated,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n AmrUtilizationStatus,\r\n CardStatus,\r\n DiversionType,\r\n OperationType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n OperationSummaryRecord,\r\n OperationSummaryProps,\r\n} from 'src/store/generated/operation-summary-record.generated';\r\nimport {\r\n RequestSummaryRecord,\r\n RequestSummaryProps,\r\n} from 'src/store/generated/request-summary-record.generated';\r\nimport {\r\n RequestPatientSummaryRecord,\r\n RequestPatientSummaryProps,\r\n} from 'src/store/generated/request-patient-summary-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CardSummaryProps {\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operation: OperationSummaryProps | null;\r\n request: RequestSummaryProps | null;\r\n patients: List | null;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: Date | null;\r\n operationType: OperationType;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n regionId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n}\r\n\r\nexport class CardSummaryRecord extends Record({\r\n id: null as any,\r\n status: null as any,\r\n cardNumber: null as any,\r\n operation: null as any,\r\n request: null as any,\r\n patients: null as any,\r\n apiWebhookSubscriptionId: null as any,\r\n webOrderAcknowledgedTime: null as any,\r\n operationType: null as any,\r\n diversionType: null as any,\r\n gmrUtilizationStatus: null as any,\r\n gmrCADNumber: null as any,\r\n vehicleId: null as any,\r\n vehicleSummaryId: null as any,\r\n communicationCenterId: null as any,\r\n unitId: null as any,\r\n unitSummaryId: null as any,\r\n regionId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operation: any;\r\n request: any;\r\n patients: any;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: string | number | Date | null;\r\n operationType: OperationType;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n regionId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n }): CardSummaryRecord {\r\n if (json == null) {\r\n throw new Error('CardSummaryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CardSummaryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CardSummaryJson.id'),\r\n status: getFromOrThrow(json, (j) => j.status, 'CardSummaryJson.status'),\r\n cardNumber: getFromOrThrow(json, (j) => j.cardNumber, 'CardSummaryJson.cardNumber'),\r\n operation: json.operation != null ? new OperationSummaryRecord(json.operation) : null,\r\n request: json.request != null ? new RequestSummaryRecord(json.request) : null,\r\n patients:\r\n json.patients != null\r\n ? List(\r\n json.patients.map((o: any) => new RequestPatientSummaryRecord(o)),\r\n )\r\n : null,\r\n apiWebhookSubscriptionId: json.apiWebhookSubscriptionId,\r\n webOrderAcknowledgedTime:\r\n json.webOrderAcknowledgedTime != null ? new Date(json.webOrderAcknowledgedTime) : null,\r\n operationType: getFromOrThrow(json, (j) => j.operationType, 'CardSummaryJson.operationType'),\r\n diversionType: json.diversionType,\r\n gmrUtilizationStatus: json.gmrUtilizationStatus,\r\n gmrCADNumber: json.gmrCADNumber,\r\n vehicleId: json.vehicleId,\r\n vehicleSummaryId: json.vehicleSummaryId,\r\n communicationCenterId: json.communicationCenterId,\r\n unitId: json.unitId,\r\n unitSummaryId: json.unitSummaryId,\r\n regionId: getFromOrThrow(json, (j) => j.regionId, 'CardSummaryJson.regionId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'CardSummaryJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n status: CardStatus;\r\n cardNumber: string;\r\n operation: any;\r\n request: any;\r\n patients: any;\r\n apiWebhookSubscriptionId: string | null;\r\n webOrderAcknowledgedTime: string | number | Date | null;\r\n operationType: OperationType;\r\n diversionType: DiversionType | null;\r\n gmrUtilizationStatus: AmrUtilizationStatus | null;\r\n gmrCADNumber: string | null;\r\n vehicleId: string | null;\r\n vehicleSummaryId: string | null;\r\n communicationCenterId: string | null;\r\n unitId: string | null;\r\n unitSummaryId: string | null;\r\n regionId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n }): [CardSummaryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CardSummaryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CardSummaryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CardSummaryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'CardSummaryJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cardNumber: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.cardNumber, 'CardSummaryJson.cardNumber'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n operation: tryOrDefault(\r\n () => (json.operation != null ? new OperationSummaryRecord(json.operation) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n request: tryOrDefault(\r\n () => (json.request != null ? new RequestSummaryRecord(json.request) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n patients: tryOrDefault(\r\n () =>\r\n json.patients != null\r\n ? List(\r\n json.patients.map((o: any) => new RequestPatientSummaryRecord(o)),\r\n )\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n apiWebhookSubscriptionId: tryOrDefault(\r\n () => json.apiWebhookSubscriptionId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n webOrderAcknowledgedTime: tryOrDefault(\r\n () =>\r\n json.webOrderAcknowledgedTime != null ? new Date(json.webOrderAcknowledgedTime) : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n operationType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.operationType, 'CardSummaryJson.operationType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n diversionType: tryOrDefault(\r\n () => json.diversionType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n gmrUtilizationStatus: tryOrDefault(\r\n () => json.gmrUtilizationStatus,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n gmrCADNumber: tryOrDefault(\r\n () => json.gmrCADNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => json.vehicleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleSummaryId: tryOrDefault(\r\n () => json.vehicleSummaryId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n communicationCenterId: tryOrDefault(\r\n () => json.communicationCenterId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => json.unitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitSummaryId: tryOrDefault(\r\n () => json.unitSummaryId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.regionId, 'CardSummaryJson.regionId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'CardSummaryJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CardSummaryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CardSummaryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CardSummaryViewModelBase implements CardSummaryProps {\r\n protected readonly _props: CardSummaryProps;\r\n private _json?: CardSummaryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get status(): CardStatus {\r\n return this._props.status;\r\n }\r\n get cardNumber(): string {\r\n return this._props.cardNumber;\r\n }\r\n get operation(): OperationSummaryProps | null {\r\n return this._props.operation;\r\n }\r\n get request(): RequestSummaryProps | null {\r\n return this._props.request;\r\n }\r\n get patients(): List | null {\r\n return this._props.patients;\r\n }\r\n get apiWebhookSubscriptionId(): string | null {\r\n return this._props.apiWebhookSubscriptionId;\r\n }\r\n get webOrderAcknowledgedTime(): Date | null {\r\n return this._props.webOrderAcknowledgedTime;\r\n }\r\n get operationType(): OperationType {\r\n return this._props.operationType;\r\n }\r\n get diversionType(): DiversionType | null {\r\n return this._props.diversionType;\r\n }\r\n get gmrUtilizationStatus(): AmrUtilizationStatus | null {\r\n return this._props.gmrUtilizationStatus;\r\n }\r\n get gmrCADNumber(): string | null {\r\n return this._props.gmrCADNumber;\r\n }\r\n get vehicleId(): string | null {\r\n return this._props.vehicleId;\r\n }\r\n get vehicleSummaryId(): string | null {\r\n return this._props.vehicleSummaryId;\r\n }\r\n get communicationCenterId(): string | null {\r\n return this._props.communicationCenterId;\r\n }\r\n get unitId(): string | null {\r\n return this._props.unitId;\r\n }\r\n get unitSummaryId(): string | null {\r\n return this._props.unitSummaryId;\r\n }\r\n get regionId(): string {\r\n return this._props.regionId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n\r\n public get isAwaitingAssignment() {\r\n return this._props.status === CardStatus.AwaitingAssignment;\r\n }\r\n public get isAwaitingLaunch() {\r\n return this._props.status === CardStatus.AwaitingLaunch;\r\n }\r\n public get isClosed() {\r\n return this._props.status === CardStatus.Closed;\r\n }\r\n public get isCompleted() {\r\n return this._props.status === CardStatus.Completed;\r\n }\r\n public get isUnderway() {\r\n return this._props.status === CardStatus.Underway;\r\n }\r\n public get isGroundRun() {\r\n return this._props.operationType === OperationType.GroundRun;\r\n }\r\n public get isMaintenance() {\r\n return this._props.operationType === OperationType.Maintenance;\r\n }\r\n public get isNonPatientShuttle() {\r\n return this._props.operationType === OperationType.NonPatientShuttle;\r\n }\r\n public get isPatientShuttle() {\r\n return this._props.operationType === OperationType.PatientShuttle;\r\n }\r\n public get isPublicRelations() {\r\n return this._props.operationType === OperationType.PublicRelations;\r\n }\r\n public get isPublicUtility() {\r\n return this._props.operationType === OperationType.PublicUtility;\r\n }\r\n public get isReposition() {\r\n return this._props.operationType === OperationType.Reposition;\r\n }\r\n public get isResidence() {\r\n return this._props.operationType === OperationType.Residence;\r\n }\r\n public get isSceneCall() {\r\n return this._props.operationType === OperationType.SceneCall;\r\n }\r\n public get isSearchAndAssist() {\r\n return this._props.operationType === OperationType.SearchAndAssist;\r\n }\r\n public get isTraining() {\r\n return this._props.operationType === OperationType.Training;\r\n }\r\n public get isTransfer() {\r\n return this._props.operationType === OperationType.Transfer;\r\n }\r\n public get isTransferCenter() {\r\n return this._props.operationType === OperationType.TransferCenter;\r\n }\r\n public get isDiversion() {\r\n return this._props.diversionType === DiversionType.Diversion;\r\n }\r\n public get isFollowOn() {\r\n return this._props.diversionType === DiversionType.FollowOn;\r\n }\r\n public get isNoResourcesAvailable() {\r\n return this._props.gmrUtilizationStatus === AmrUtilizationStatus.NoResourcesAvailable;\r\n }\r\n public get isNoServiceAvailable() {\r\n return this._props.gmrUtilizationStatus === AmrUtilizationStatus.NoServiceAvailable;\r\n }\r\n public get isNotConsidered() {\r\n return this._props.gmrUtilizationStatus === AmrUtilizationStatus.NotConsidered;\r\n }\r\n public get isUnsatisfactoryEta() {\r\n return this._props.gmrUtilizationStatus === AmrUtilizationStatus.UnsatisfactoryEta;\r\n }\r\n public get isUnspecified() {\r\n return this._props.gmrUtilizationStatus === AmrUtilizationStatus.Unspecified;\r\n }\r\n public get isUtilized() {\r\n return this._props.gmrUtilizationStatus === AmrUtilizationStatus.Utilized;\r\n }\r\n\r\n public isAnyStatus(...cardStatus: CardStatus[]) {\r\n return cardStatus.includes(this._props.status);\r\n }\r\n public isAnyOperationType(...operationType: OperationType[]) {\r\n return operationType.includes(this._props.operationType);\r\n }\r\n public isAnyDiversionType(...diversionType: DiversionType[]) {\r\n return this._props.diversionType != null && diversionType.includes(this._props.diversionType);\r\n }\r\n public isAnyGmrUtilizationStatus(...amrUtilizationStatus: AmrUtilizationStatus[]) {\r\n return (\r\n this._props.gmrUtilizationStatus != null &&\r\n amrUtilizationStatus.includes(this._props.gmrUtilizationStatus)\r\n );\r\n }\r\n\r\n constructor(props: CardSummaryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n status: this._props.status,\r\n cardNumber: this._props.cardNumber,\r\n operation: this._props.operation,\r\n request: this._props.request,\r\n patients: this._props.patients,\r\n apiWebhookSubscriptionId: this._props.apiWebhookSubscriptionId,\r\n webOrderAcknowledgedTime: this._props.webOrderAcknowledgedTime,\r\n operationType: this._props.operationType,\r\n diversionType: this._props.diversionType,\r\n gmrUtilizationStatus: this._props.gmrUtilizationStatus,\r\n gmrCADNumber: this._props.gmrCADNumber,\r\n vehicleId: this._props.vehicleId,\r\n vehicleSummaryId: this._props.vehicleSummaryId,\r\n communicationCenterId: this._props.communicationCenterId,\r\n unitId: this._props.unitId,\r\n unitSummaryId: this._props.unitSummaryId,\r\n regionId: this._props.regionId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCardSummaryEntities = (state: AppState) =>\r\n state.entityStores.cardSummary.entities;\r\n\r\nexport const selectCardSummaryById = (id: string) => (state: AppState) =>\r\n state.entityStores.cardSummary.entities.get(id);\r\n\r\nexport const selectCardSummaryMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.cardSummary.meta.get(id);\r\n\r\nexport const selectCardSummaryAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectCardSummaryById(id),\r\n selectCardSummaryMetadataById(id),\r\n (cardSummary, meta) => ({ cardSummary, meta }),\r\n );\r\n\r\nexport function selectCardSummaryEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCardSummaryEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CardSummaryRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByStatus(status: CardStatus) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByCardNumber(cardNumber: string) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.cardNumber === cardNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByApiWebhookSubscriptionId(\r\n apiWebhookSubscriptionId: string,\r\n) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.apiWebhookSubscriptionId === apiWebhookSubscriptionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByWebOrderAcknowledgedTime(\r\n webOrderAcknowledgedTime: Date,\r\n) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.webOrderAcknowledgedTime === webOrderAcknowledgedTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByOperationType(operationType: OperationType) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.operationType === operationType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByDiversionType(diversionType: DiversionType) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.diversionType === diversionType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByGmrUtilizationStatus(\r\n gmrUtilizationStatus: AmrUtilizationStatus,\r\n) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.gmrUtilizationStatus === gmrUtilizationStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByGmrCADNumber(gmrCADNumber: string) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.gmrCADNumber === gmrCADNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByVehicleSummaryId(vehicleSummaryId: string) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.vehicleSummaryId === vehicleSummaryId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByCommunicationCenterId(communicationCenterId: string) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.communicationCenterId === communicationCenterId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByUnitSummaryId(unitSummaryId: string) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.unitSummaryId === unitSummaryId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCardSummaryEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllCardSummaryEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ConfigurationSettingProps {\r\n id: string;\r\n companyId: string | null;\r\n defaultUnitCommittedDeclineReasonId: string | null;\r\n defaultUnitOutOfServiceDeclineReasonId: string | null;\r\n requestReferredInternallyCancellationReasonId: string | null;\r\n requestReferredExternallyCancellationReasonId: string | null;\r\n crewGoingByGroundOutOfServiceReasonId: string | null;\r\n assetReassignedDeclineReasonId: string | null;\r\n externallyCancelledCancellationReasonId: string | null;\r\n pilotReportGracePeriodInMinutes: number | null;\r\n sameDestinationWarningThresholdInMinutes: number | null;\r\n bugRequestEmail: string | null;\r\n featureRequestEmail: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ConfigurationSettingRecord extends Record({\r\n id: null as any,\r\n companyId: null as any,\r\n defaultUnitCommittedDeclineReasonId: null as any,\r\n defaultUnitOutOfServiceDeclineReasonId: null as any,\r\n requestReferredInternallyCancellationReasonId: null as any,\r\n requestReferredExternallyCancellationReasonId: null as any,\r\n crewGoingByGroundOutOfServiceReasonId: null as any,\r\n assetReassignedDeclineReasonId: null as any,\r\n externallyCancelledCancellationReasonId: null as any,\r\n pilotReportGracePeriodInMinutes: null as any,\r\n sameDestinationWarningThresholdInMinutes: null as any,\r\n bugRequestEmail: null as any,\r\n featureRequestEmail: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n companyId: string | null;\r\n defaultUnitCommittedDeclineReasonId: string | null;\r\n defaultUnitOutOfServiceDeclineReasonId: string | null;\r\n requestReferredInternallyCancellationReasonId: string | null;\r\n requestReferredExternallyCancellationReasonId: string | null;\r\n crewGoingByGroundOutOfServiceReasonId: string | null;\r\n assetReassignedDeclineReasonId: string | null;\r\n externallyCancelledCancellationReasonId: string | null;\r\n pilotReportGracePeriodInMinutes: number | null;\r\n sameDestinationWarningThresholdInMinutes: number | null;\r\n bugRequestEmail: string | null;\r\n featureRequestEmail: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ConfigurationSettingRecord {\r\n if (json == null) {\r\n throw new Error('ConfigurationSettingRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ConfigurationSettingRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ConfigurationSettingJson.id'),\r\n companyId: json.companyId,\r\n defaultUnitCommittedDeclineReasonId: json.defaultUnitCommittedDeclineReasonId,\r\n defaultUnitOutOfServiceDeclineReasonId: json.defaultUnitOutOfServiceDeclineReasonId,\r\n requestReferredInternallyCancellationReasonId:\r\n json.requestReferredInternallyCancellationReasonId,\r\n requestReferredExternallyCancellationReasonId:\r\n json.requestReferredExternallyCancellationReasonId,\r\n crewGoingByGroundOutOfServiceReasonId: json.crewGoingByGroundOutOfServiceReasonId,\r\n assetReassignedDeclineReasonId: json.assetReassignedDeclineReasonId,\r\n externallyCancelledCancellationReasonId: json.externallyCancelledCancellationReasonId,\r\n pilotReportGracePeriodInMinutes: json.pilotReportGracePeriodInMinutes,\r\n sameDestinationWarningThresholdInMinutes: json.sameDestinationWarningThresholdInMinutes,\r\n bugRequestEmail: json.bugRequestEmail,\r\n featureRequestEmail: json.featureRequestEmail,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n companyId: string | null;\r\n defaultUnitCommittedDeclineReasonId: string | null;\r\n defaultUnitOutOfServiceDeclineReasonId: string | null;\r\n requestReferredInternallyCancellationReasonId: string | null;\r\n requestReferredExternallyCancellationReasonId: string | null;\r\n crewGoingByGroundOutOfServiceReasonId: string | null;\r\n assetReassignedDeclineReasonId: string | null;\r\n externallyCancelledCancellationReasonId: string | null;\r\n pilotReportGracePeriodInMinutes: number | null;\r\n sameDestinationWarningThresholdInMinutes: number | null;\r\n bugRequestEmail: string | null;\r\n featureRequestEmail: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ConfigurationSettingRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ConfigurationSettingRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ConfigurationSettingRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ConfigurationSettingJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => json.companyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n defaultUnitCommittedDeclineReasonId: tryOrDefault(\r\n () => json.defaultUnitCommittedDeclineReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n defaultUnitOutOfServiceDeclineReasonId: tryOrDefault(\r\n () => json.defaultUnitOutOfServiceDeclineReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestReferredInternallyCancellationReasonId: tryOrDefault(\r\n () => json.requestReferredInternallyCancellationReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestReferredExternallyCancellationReasonId: tryOrDefault(\r\n () => json.requestReferredExternallyCancellationReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n crewGoingByGroundOutOfServiceReasonId: tryOrDefault(\r\n () => json.crewGoingByGroundOutOfServiceReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n assetReassignedDeclineReasonId: tryOrDefault(\r\n () => json.assetReassignedDeclineReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n externallyCancelledCancellationReasonId: tryOrDefault(\r\n () => json.externallyCancelledCancellationReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n pilotReportGracePeriodInMinutes: tryOrDefault(\r\n () => json.pilotReportGracePeriodInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n sameDestinationWarningThresholdInMinutes: tryOrDefault(\r\n () => json.sameDestinationWarningThresholdInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n bugRequestEmail: tryOrDefault(\r\n () => json.bugRequestEmail,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n featureRequestEmail: tryOrDefault(\r\n () => json.featureRequestEmail,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ConfigurationSettingProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ConfigurationSettingRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ConfigurationSettingViewModelBase implements ConfigurationSettingProps {\r\n protected readonly _props: ConfigurationSettingProps;\r\n private _json?: ConfigurationSettingProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get companyId(): string | null {\r\n return this._props.companyId;\r\n }\r\n get defaultUnitCommittedDeclineReasonId(): string | null {\r\n return this._props.defaultUnitCommittedDeclineReasonId;\r\n }\r\n get defaultUnitOutOfServiceDeclineReasonId(): string | null {\r\n return this._props.defaultUnitOutOfServiceDeclineReasonId;\r\n }\r\n get requestReferredInternallyCancellationReasonId(): string | null {\r\n return this._props.requestReferredInternallyCancellationReasonId;\r\n }\r\n get requestReferredExternallyCancellationReasonId(): string | null {\r\n return this._props.requestReferredExternallyCancellationReasonId;\r\n }\r\n get crewGoingByGroundOutOfServiceReasonId(): string | null {\r\n return this._props.crewGoingByGroundOutOfServiceReasonId;\r\n }\r\n get assetReassignedDeclineReasonId(): string | null {\r\n return this._props.assetReassignedDeclineReasonId;\r\n }\r\n get externallyCancelledCancellationReasonId(): string | null {\r\n return this._props.externallyCancelledCancellationReasonId;\r\n }\r\n get pilotReportGracePeriodInMinutes(): number | null {\r\n return this._props.pilotReportGracePeriodInMinutes;\r\n }\r\n get sameDestinationWarningThresholdInMinutes(): number | null {\r\n return this._props.sameDestinationWarningThresholdInMinutes;\r\n }\r\n get bugRequestEmail(): string | null {\r\n return this._props.bugRequestEmail;\r\n }\r\n get featureRequestEmail(): string | null {\r\n return this._props.featureRequestEmail;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: ConfigurationSettingProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n companyId: this._props.companyId,\r\n defaultUnitCommittedDeclineReasonId: this._props.defaultUnitCommittedDeclineReasonId,\r\n defaultUnitOutOfServiceDeclineReasonId: this._props.defaultUnitOutOfServiceDeclineReasonId,\r\n requestReferredInternallyCancellationReasonId:\r\n this._props.requestReferredInternallyCancellationReasonId,\r\n requestReferredExternallyCancellationReasonId:\r\n this._props.requestReferredExternallyCancellationReasonId,\r\n crewGoingByGroundOutOfServiceReasonId: this._props.crewGoingByGroundOutOfServiceReasonId,\r\n assetReassignedDeclineReasonId: this._props.assetReassignedDeclineReasonId,\r\n externallyCancelledCancellationReasonId:\r\n this._props.externallyCancelledCancellationReasonId,\r\n pilotReportGracePeriodInMinutes: this._props.pilotReportGracePeriodInMinutes,\r\n sameDestinationWarningThresholdInMinutes:\r\n this._props.sameDestinationWarningThresholdInMinutes,\r\n bugRequestEmail: this._props.bugRequestEmail,\r\n featureRequestEmail: this._props.featureRequestEmail,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllConfigurationSettingEntities = (state: AppState) =>\r\n state.entityStores.configurationSetting.entities;\r\n\r\nexport const selectConfigurationSettingById = (id: string) => (state: AppState) =>\r\n state.entityStores.configurationSetting.entities.get(id);\r\n\r\nexport const selectConfigurationSettingMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.configurationSetting.meta.get(id);\r\n\r\nexport const selectConfigurationSettingAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectConfigurationSettingById(id),\r\n selectConfigurationSettingMetadataById(id),\r\n (configurationSetting, meta) => ({ configurationSetting, meta }),\r\n );\r\n\r\nexport function selectConfigurationSettingEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllConfigurationSettingEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ConfigurationSettingRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectConfigurationSettingEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllConfigurationSettingEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectConfigurationSettingEntitiesByDefaultUnitCommittedDeclineReasonId(\r\n defaultUnitCommittedDeclineReasonId: string,\r\n) {\r\n return createSelector(selectAllConfigurationSettingEntities, (entities) =>\r\n entities\r\n .filter((e) => e.defaultUnitCommittedDeclineReasonId === defaultUnitCommittedDeclineReasonId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectConfigurationSettingEntitiesByDefaultUnitOutOfServiceDeclineReasonId(\r\n defaultUnitOutOfServiceDeclineReasonId: string,\r\n) {\r\n return createSelector(selectAllConfigurationSettingEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) => e.defaultUnitOutOfServiceDeclineReasonId === defaultUnitOutOfServiceDeclineReasonId,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectConfigurationSettingEntitiesByRequestReferredInternallyCancellationReasonId(\r\n requestReferredInternallyCancellationReasonId: string,\r\n) {\r\n return createSelector(selectAllConfigurationSettingEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) =>\r\n e.requestReferredInternallyCancellationReasonId ===\r\n requestReferredInternallyCancellationReasonId,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectConfigurationSettingEntitiesByRequestReferredExternallyCancellationReasonId(\r\n requestReferredExternallyCancellationReasonId: string,\r\n) {\r\n return createSelector(selectAllConfigurationSettingEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) =>\r\n e.requestReferredExternallyCancellationReasonId ===\r\n requestReferredExternallyCancellationReasonId,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectConfigurationSettingEntitiesByCrewGoingByGroundOutOfServiceReasonId(\r\n crewGoingByGroundOutOfServiceReasonId: string,\r\n) {\r\n return createSelector(selectAllConfigurationSettingEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) => e.crewGoingByGroundOutOfServiceReasonId === crewGoingByGroundOutOfServiceReasonId,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectConfigurationSettingEntitiesByAssetReassignedDeclineReasonId(\r\n assetReassignedDeclineReasonId: string,\r\n) {\r\n return createSelector(selectAllConfigurationSettingEntities, (entities) =>\r\n entities\r\n .filter((e) => e.assetReassignedDeclineReasonId === assetReassignedDeclineReasonId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectConfigurationSettingEntitiesByExternallyCancelledCancellationReasonId(\r\n externallyCancelledCancellationReasonId: string,\r\n) {\r\n return createSelector(selectAllConfigurationSettingEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) =>\r\n e.externallyCancelledCancellationReasonId === externallyCancelledCancellationReasonId,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectConfigurationSettingEntitiesByPilotReportGracePeriodInMinutes(\r\n pilotReportGracePeriodInMinutes: number,\r\n) {\r\n return createSelector(selectAllConfigurationSettingEntities, (entities) =>\r\n entities\r\n .filter((e) => e.pilotReportGracePeriodInMinutes === pilotReportGracePeriodInMinutes)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectConfigurationSettingEntitiesBySameDestinationWarningThresholdInMinutes(\r\n sameDestinationWarningThresholdInMinutes: number,\r\n) {\r\n return createSelector(selectAllConfigurationSettingEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) =>\r\n e.sameDestinationWarningThresholdInMinutes === sameDestinationWarningThresholdInMinutes,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectConfigurationSettingEntitiesByBugRequestEmail(bugRequestEmail: string) {\r\n return createSelector(selectAllConfigurationSettingEntities, (entities) =>\r\n entities.filter((e) => e.bugRequestEmail === bugRequestEmail).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectConfigurationSettingEntitiesByFeatureRequestEmail(\r\n featureRequestEmail: string,\r\n) {\r\n return createSelector(selectAllConfigurationSettingEntities, (entities) =>\r\n entities.filter((e) => e.featureRequestEmail === featureRequestEmail).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface DeclineCategoryProps {\r\n id: string;\r\n name: string;\r\n defaultDeclineReasonId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class DeclineCategoryRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n defaultDeclineReasonId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n defaultDeclineReasonId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): DeclineCategoryRecord {\r\n if (json == null) {\r\n throw new Error('DeclineCategoryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new DeclineCategoryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'DeclineCategoryJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'DeclineCategoryJson.name'),\r\n defaultDeclineReasonId: json.defaultDeclineReasonId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n defaultDeclineReasonId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [DeclineCategoryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('DeclineCategoryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new DeclineCategoryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'DeclineCategoryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'DeclineCategoryJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n defaultDeclineReasonId: tryOrDefault(\r\n () => json.defaultDeclineReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: DeclineCategoryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('DeclineCategoryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class DeclineCategoryViewModelBase implements DeclineCategoryProps {\r\n protected readonly _props: DeclineCategoryProps;\r\n private _json?: DeclineCategoryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get defaultDeclineReasonId(): string | null {\r\n return this._props.defaultDeclineReasonId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: DeclineCategoryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n defaultDeclineReasonId: this._props.defaultDeclineReasonId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllDeclineCategoryEntities = (state: AppState) =>\r\n state.entityStores.declineCategory.entities;\r\n\r\nexport const selectDeclineCategoryById = (id: string) => (state: AppState) =>\r\n state.entityStores.declineCategory.entities.get(id);\r\n\r\nexport const selectDeclineCategoryMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.declineCategory.meta.get(id);\r\n\r\nexport const selectDeclineCategoryAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectDeclineCategoryById(id),\r\n selectDeclineCategoryMetadataById(id),\r\n (declineCategory, meta) => ({ declineCategory, meta }),\r\n );\r\n\r\nexport function selectDeclineCategoryEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllDeclineCategoryEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, DeclineCategoryRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectDeclineCategoryEntitiesByName(name: string) {\r\n return createSelector(selectAllDeclineCategoryEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectDeclineCategoryEntitiesByDefaultDeclineReasonId(\r\n defaultDeclineReasonId: string,\r\n) {\r\n return createSelector(selectAllDeclineCategoryEntities, (entities) =>\r\n entities.filter((e) => e.defaultDeclineReasonId === defaultDeclineReasonId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface DeclineReasonProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n declineCategoryId: string;\r\n controllable: boolean;\r\n canBeSkipReason: boolean;\r\n canBeAbortReason: boolean;\r\n canBeBulkSkipReason: boolean;\r\n canBeOneCallSkipReason: boolean;\r\n isUnitAvailableAfterAbort: boolean;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class DeclineReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n declineCategoryId: null as any,\r\n controllable: null as any,\r\n canBeSkipReason: null as any,\r\n canBeAbortReason: null as any,\r\n canBeBulkSkipReason: null as any,\r\n canBeOneCallSkipReason: null as any,\r\n isUnitAvailableAfterAbort: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n declineCategoryId: string;\r\n controllable: boolean;\r\n canBeSkipReason: boolean;\r\n canBeAbortReason: boolean;\r\n canBeBulkSkipReason: boolean;\r\n canBeOneCallSkipReason: boolean;\r\n isUnitAvailableAfterAbort: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): DeclineReasonRecord {\r\n if (json == null) {\r\n throw new Error('DeclineReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new DeclineReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'DeclineReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'DeclineReasonJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'DeclineReasonJson.abbreviation'),\r\n declineCategoryId: getFromOrThrow(\r\n json,\r\n (j) => j.declineCategoryId,\r\n 'DeclineReasonJson.declineCategoryId',\r\n ),\r\n controllable: getFromOrThrow(json, (j) => j.controllable, 'DeclineReasonJson.controllable'),\r\n canBeSkipReason: getFromOrThrow(\r\n json,\r\n (j) => j.canBeSkipReason,\r\n 'DeclineReasonJson.canBeSkipReason',\r\n ),\r\n canBeAbortReason: getFromOrThrow(\r\n json,\r\n (j) => j.canBeAbortReason,\r\n 'DeclineReasonJson.canBeAbortReason',\r\n ),\r\n canBeBulkSkipReason: getFromOrThrow(\r\n json,\r\n (j) => j.canBeBulkSkipReason,\r\n 'DeclineReasonJson.canBeBulkSkipReason',\r\n ),\r\n canBeOneCallSkipReason: getFromOrThrow(\r\n json,\r\n (j) => j.canBeOneCallSkipReason,\r\n 'DeclineReasonJson.canBeOneCallSkipReason',\r\n ),\r\n isUnitAvailableAfterAbort: getFromOrThrow(\r\n json,\r\n (j) => j.isUnitAvailableAfterAbort,\r\n 'DeclineReasonJson.isUnitAvailableAfterAbort',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n declineCategoryId: string;\r\n controllable: boolean;\r\n canBeSkipReason: boolean;\r\n canBeAbortReason: boolean;\r\n canBeBulkSkipReason: boolean;\r\n canBeOneCallSkipReason: boolean;\r\n isUnitAvailableAfterAbort: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [DeclineReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('DeclineReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new DeclineReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'DeclineReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'DeclineReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'DeclineReasonJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n declineCategoryId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.declineCategoryId, 'DeclineReasonJson.declineCategoryId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n controllable: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.controllable, 'DeclineReasonJson.controllable'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n canBeSkipReason: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.canBeSkipReason, 'DeclineReasonJson.canBeSkipReason'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n canBeAbortReason: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.canBeAbortReason, 'DeclineReasonJson.canBeAbortReason'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n canBeBulkSkipReason: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.canBeBulkSkipReason,\r\n 'DeclineReasonJson.canBeBulkSkipReason',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n canBeOneCallSkipReason: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.canBeOneCallSkipReason,\r\n 'DeclineReasonJson.canBeOneCallSkipReason',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isUnitAvailableAfterAbort: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.isUnitAvailableAfterAbort,\r\n 'DeclineReasonJson.isUnitAvailableAfterAbort',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: DeclineReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('DeclineReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class DeclineReasonViewModelBase implements DeclineReasonProps {\r\n protected readonly _props: DeclineReasonProps;\r\n private _json?: DeclineReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get declineCategoryId(): string {\r\n return this._props.declineCategoryId;\r\n }\r\n get controllable(): boolean {\r\n return this._props.controllable;\r\n }\r\n get canBeSkipReason(): boolean {\r\n return this._props.canBeSkipReason;\r\n }\r\n get canBeAbortReason(): boolean {\r\n return this._props.canBeAbortReason;\r\n }\r\n get canBeBulkSkipReason(): boolean {\r\n return this._props.canBeBulkSkipReason;\r\n }\r\n get canBeOneCallSkipReason(): boolean {\r\n return this._props.canBeOneCallSkipReason;\r\n }\r\n get isUnitAvailableAfterAbort(): boolean {\r\n return this._props.isUnitAvailableAfterAbort;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: DeclineReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n declineCategoryId: this._props.declineCategoryId,\r\n controllable: this._props.controllable,\r\n canBeSkipReason: this._props.canBeSkipReason,\r\n canBeAbortReason: this._props.canBeAbortReason,\r\n canBeBulkSkipReason: this._props.canBeBulkSkipReason,\r\n canBeOneCallSkipReason: this._props.canBeOneCallSkipReason,\r\n isUnitAvailableAfterAbort: this._props.isUnitAvailableAfterAbort,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllDeclineReasonEntities = (state: AppState) =>\r\n state.entityStores.declineReason.entities;\r\n\r\nexport const selectDeclineReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.declineReason.entities.get(id);\r\n\r\nexport const selectDeclineReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.declineReason.meta.get(id);\r\n\r\nexport const selectDeclineReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectDeclineReasonById(id),\r\n selectDeclineReasonMetadataById(id),\r\n (declineReason, meta) => ({ declineReason, meta }),\r\n );\r\n\r\nexport function selectDeclineReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllDeclineReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, DeclineReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectDeclineReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllDeclineReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectDeclineReasonEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllDeclineReasonEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectDeclineReasonEntitiesByDeclineCategoryId(declineCategoryId: string) {\r\n return createSelector(selectAllDeclineReasonEntities, (entities) =>\r\n entities.filter((e) => e.declineCategoryId === declineCategoryId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectDeclineReasonEntitiesByControllable(controllable: boolean) {\r\n return createSelector(selectAllDeclineReasonEntities, (entities) =>\r\n entities.filter((e) => e.controllable === controllable).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectDeclineReasonEntitiesByCanBeSkipReason(canBeSkipReason: boolean) {\r\n return createSelector(selectAllDeclineReasonEntities, (entities) =>\r\n entities.filter((e) => e.canBeSkipReason === canBeSkipReason).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectDeclineReasonEntitiesByCanBeAbortReason(canBeAbortReason: boolean) {\r\n return createSelector(selectAllDeclineReasonEntities, (entities) =>\r\n entities.filter((e) => e.canBeAbortReason === canBeAbortReason).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectDeclineReasonEntitiesByCanBeBulkSkipReason(canBeBulkSkipReason: boolean) {\r\n return createSelector(selectAllDeclineReasonEntities, (entities) =>\r\n entities.filter((e) => e.canBeBulkSkipReason === canBeBulkSkipReason).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectDeclineReasonEntitiesByCanBeOneCallSkipReason(\r\n canBeOneCallSkipReason: boolean,\r\n) {\r\n return createSelector(selectAllDeclineReasonEntities, (entities) =>\r\n entities.filter((e) => e.canBeOneCallSkipReason === canBeOneCallSkipReason).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectDeclineReasonEntitiesByIsUnitAvailableAfterAbort(\r\n isUnitAvailableAfterAbort: boolean,\r\n) {\r\n return createSelector(selectAllDeclineReasonEntities, (entities) =>\r\n entities.filter((e) => e.isUnitAvailableAfterAbort === isUnitAvailableAfterAbort).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface DeclineSecondaryReasonProps {\r\n id: string;\r\n name: string;\r\n declineReasonId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class DeclineSecondaryReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n declineReasonId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n declineReasonId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): DeclineSecondaryReasonRecord {\r\n if (json == null) {\r\n throw new Error('DeclineSecondaryReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new DeclineSecondaryReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'DeclineSecondaryReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'DeclineSecondaryReasonJson.name'),\r\n declineReasonId: getFromOrThrow(\r\n json,\r\n (j) => j.declineReasonId,\r\n 'DeclineSecondaryReasonJson.declineReasonId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n declineReasonId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [DeclineSecondaryReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('DeclineSecondaryReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new DeclineSecondaryReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'DeclineSecondaryReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'DeclineSecondaryReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n declineReasonId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.declineReasonId,\r\n 'DeclineSecondaryReasonJson.declineReasonId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: DeclineSecondaryReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('DeclineSecondaryReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class DeclineSecondaryReasonViewModelBase implements DeclineSecondaryReasonProps {\r\n protected readonly _props: DeclineSecondaryReasonProps;\r\n private _json?: DeclineSecondaryReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get declineReasonId(): string {\r\n return this._props.declineReasonId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: DeclineSecondaryReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n declineReasonId: this._props.declineReasonId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllDeclineSecondaryReasonEntities = (state: AppState) =>\r\n state.entityStores.declineSecondaryReason.entities;\r\n\r\nexport const selectDeclineSecondaryReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.declineSecondaryReason.entities.get(id);\r\n\r\nexport const selectDeclineSecondaryReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.declineSecondaryReason.meta.get(id);\r\n\r\nexport const selectDeclineSecondaryReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectDeclineSecondaryReasonById(id),\r\n selectDeclineSecondaryReasonMetadataById(id),\r\n (declineSecondaryReason, meta) => ({ declineSecondaryReason, meta }),\r\n );\r\n\r\nexport function selectDeclineSecondaryReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllDeclineSecondaryReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, DeclineSecondaryReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectDeclineSecondaryReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllDeclineSecondaryReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectDeclineSecondaryReasonEntitiesByDeclineReasonId(declineReasonId: string) {\r\n return createSelector(selectAllDeclineSecondaryReasonEntities, (entities) =>\r\n entities.filter((e) => e.declineReasonId === declineReasonId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface DiversionReasonProps {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class DiversionReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): DiversionReasonRecord {\r\n if (json == null) {\r\n throw new Error('DiversionReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new DiversionReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'DiversionReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'DiversionReasonJson.name'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [DiversionReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('DiversionReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new DiversionReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'DiversionReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'DiversionReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: DiversionReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('DiversionReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class DiversionReasonViewModelBase implements DiversionReasonProps {\r\n protected readonly _props: DiversionReasonProps;\r\n private _json?: DiversionReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: DiversionReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllDiversionReasonEntities = (state: AppState) =>\r\n state.entityStores.diversionReason.entities;\r\n\r\nexport const selectDiversionReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.diversionReason.entities.get(id);\r\n\r\nexport const selectDiversionReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.diversionReason.meta.get(id);\r\n\r\nexport const selectDiversionReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectDiversionReasonById(id),\r\n selectDiversionReasonMetadataById(id),\r\n (diversionReason, meta) => ({ diversionReason, meta }),\r\n );\r\n\r\nexport function selectDiversionReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllDiversionReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, DiversionReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectDiversionReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllDiversionReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { PatientRelationshipType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface EscortRequestProps {\r\n id: string;\r\n escortName: string;\r\n relationship: PatientRelationshipType;\r\n escortWeightInKg: number;\r\n requestApprovalTime: Date;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class EscortRequestRecord extends Record({\r\n id: null as any,\r\n escortName: null as any,\r\n relationship: null as any,\r\n escortWeightInKg: null as any,\r\n requestApprovalTime: null as any,\r\n requestId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n escortName: string;\r\n relationship: PatientRelationshipType;\r\n escortWeightInKg: number;\r\n requestApprovalTime: string | number | Date;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): EscortRequestRecord {\r\n if (json == null) {\r\n throw new Error('EscortRequestRecord.fromJS: parameter cannot be null');\r\n }\r\n return new EscortRequestRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'EscortRequestJson.id'),\r\n escortName: getFromOrThrow(json, (j) => j.escortName, 'EscortRequestJson.escortName'),\r\n relationship: getFromOrThrow(json, (j) => j.relationship, 'EscortRequestJson.relationship'),\r\n escortWeightInKg: getFromOrThrow(\r\n json,\r\n (j) => j.escortWeightInKg,\r\n 'EscortRequestJson.escortWeightInKg',\r\n ),\r\n requestApprovalTime: new Date(\r\n getFromOrThrow(json, (j) => j.requestApprovalTime, 'EscortRequestJson.requestApprovalTime'),\r\n ),\r\n requestId: getFromOrThrow(json, (j) => j.requestId, 'EscortRequestJson.requestId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'EscortRequestJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n escortName: string;\r\n relationship: PatientRelationshipType;\r\n escortWeightInKg: number;\r\n requestApprovalTime: string | number | Date;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [EscortRequestRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('EscortRequestRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new EscortRequestRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'EscortRequestJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n escortName: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.escortName, 'EscortRequestJson.escortName'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n relationship: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.relationship, 'EscortRequestJson.relationship'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n escortWeightInKg: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.escortWeightInKg, 'EscortRequestJson.escortWeightInKg'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestApprovalTime: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requestApprovalTime,\r\n 'EscortRequestJson.requestApprovalTime',\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.requestId, 'EscortRequestJson.requestId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'EscortRequestJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: EscortRequestProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('EscortRequestRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class EscortRequestViewModelBase implements EscortRequestProps {\r\n protected readonly _props: EscortRequestProps;\r\n private _json?: EscortRequestProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get escortName(): string {\r\n return this._props.escortName;\r\n }\r\n get relationship(): PatientRelationshipType {\r\n return this._props.relationship;\r\n }\r\n get escortWeightInKg(): number {\r\n return this._props.escortWeightInKg;\r\n }\r\n get requestApprovalTime(): Date {\r\n return this._props.requestApprovalTime;\r\n }\r\n get requestId(): string {\r\n return this._props.requestId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isOther() {\r\n return this._props.relationship === PatientRelationshipType.Other;\r\n }\r\n public get isParentOrGuardian() {\r\n return this._props.relationship === PatientRelationshipType.ParentOrGuardian;\r\n }\r\n public get isSpouse() {\r\n return this._props.relationship === PatientRelationshipType.Spouse;\r\n }\r\n public get isUnspecified() {\r\n return this._props.relationship === PatientRelationshipType.Unspecified;\r\n }\r\n\r\n public isAnyRelationship(...patientRelationshipType: PatientRelationshipType[]) {\r\n return patientRelationshipType.includes(this._props.relationship);\r\n }\r\n\r\n constructor(props: EscortRequestProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n escortName: this._props.escortName,\r\n relationship: this._props.relationship,\r\n escortWeightInKg: this._props.escortWeightInKg,\r\n requestApprovalTime: this._props.requestApprovalTime,\r\n requestId: this._props.requestId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllEscortRequestEntities = (state: AppState) =>\r\n state.entityStores.escortRequest.entities;\r\n\r\nexport const selectEscortRequestById = (id: string) => (state: AppState) =>\r\n state.entityStores.escortRequest.entities.get(id);\r\n\r\nexport const selectEscortRequestMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.escortRequest.meta.get(id);\r\n\r\nexport const selectEscortRequestAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectEscortRequestById(id),\r\n selectEscortRequestMetadataById(id),\r\n (escortRequest, meta) => ({ escortRequest, meta }),\r\n );\r\n\r\nexport function selectEscortRequestEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllEscortRequestEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, EscortRequestRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectEscortRequestEntitiesByEscortName(escortName: string) {\r\n return createSelector(selectAllEscortRequestEntities, (entities) =>\r\n entities.filter((e) => e.escortName === escortName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEscortRequestEntitiesByRelationship(relationship: PatientRelationshipType) {\r\n return createSelector(selectAllEscortRequestEntities, (entities) =>\r\n entities.filter((e) => e.relationship === relationship).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEscortRequestEntitiesByEscortWeightInKg(escortWeightInKg: number) {\r\n return createSelector(selectAllEscortRequestEntities, (entities) =>\r\n entities.filter((e) => e.escortWeightInKg === escortWeightInKg).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEscortRequestEntitiesByRequestApprovalTime(requestApprovalTime: Date) {\r\n return createSelector(selectAllEscortRequestEntities, (entities) =>\r\n entities.filter((e) => e.requestApprovalTime === requestApprovalTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEscortRequestEntitiesByRequestId(requestId: string) {\r\n return createSelector(selectAllEscortRequestEntities, (entities) =>\r\n entities.filter((e) => e.requestId === requestId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEscortRequestEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllEscortRequestEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n EstimatedDurationSource,\r\n EstimatedDurationType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface EstimatedDurationProps {\r\n id: string;\r\n asOfTime: Date;\r\n durationInMinutes: number;\r\n isOfficial: boolean;\r\n estimateSource: EstimatedDurationSource;\r\n durationType: EstimatedDurationType;\r\n ownerId: string;\r\n tripId: string;\r\n positionReportId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class EstimatedDurationRecord extends Record({\r\n id: null as any,\r\n asOfTime: null as any,\r\n durationInMinutes: null as any,\r\n isOfficial: null as any,\r\n estimateSource: null as any,\r\n durationType: null as any,\r\n ownerId: null as any,\r\n tripId: null as any,\r\n positionReportId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n asOfTime: string | number | Date;\r\n durationInMinutes: number;\r\n isOfficial: boolean;\r\n estimateSource: EstimatedDurationSource;\r\n durationType: EstimatedDurationType;\r\n ownerId: string;\r\n tripId: string;\r\n positionReportId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): EstimatedDurationRecord {\r\n if (json == null) {\r\n throw new Error('EstimatedDurationRecord.fromJS: parameter cannot be null');\r\n }\r\n return new EstimatedDurationRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'EstimatedDurationJson.id'),\r\n asOfTime: new Date(getFromOrThrow(json, (j) => j.asOfTime, 'EstimatedDurationJson.asOfTime')),\r\n durationInMinutes: getFromOrThrow(\r\n json,\r\n (j) => j.durationInMinutes,\r\n 'EstimatedDurationJson.durationInMinutes',\r\n ),\r\n isOfficial: getFromOrThrow(json, (j) => j.isOfficial, 'EstimatedDurationJson.isOfficial'),\r\n estimateSource: getFromOrThrow(\r\n json,\r\n (j) => j.estimateSource,\r\n 'EstimatedDurationJson.estimateSource',\r\n ),\r\n durationType: getFromOrThrow(\r\n json,\r\n (j) => j.durationType,\r\n 'EstimatedDurationJson.durationType',\r\n ),\r\n ownerId: getFromOrThrow(json, (j) => j.ownerId, 'EstimatedDurationJson.ownerId'),\r\n tripId: getFromOrThrow(json, (j) => j.tripId, 'EstimatedDurationJson.tripId'),\r\n positionReportId: json.positionReportId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'EstimatedDurationJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n asOfTime: string | number | Date;\r\n durationInMinutes: number;\r\n isOfficial: boolean;\r\n estimateSource: EstimatedDurationSource;\r\n durationType: EstimatedDurationType;\r\n ownerId: string;\r\n tripId: string;\r\n positionReportId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [EstimatedDurationRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('EstimatedDurationRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new EstimatedDurationRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'EstimatedDurationJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n asOfTime: tryOrDefault(\r\n () => new Date(getFromOrThrow(json, (j) => j.asOfTime, 'EstimatedDurationJson.asOfTime')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n durationInMinutes: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.durationInMinutes,\r\n 'EstimatedDurationJson.durationInMinutes',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isOfficial: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isOfficial, 'EstimatedDurationJson.isOfficial'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimateSource: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.estimateSource, 'EstimatedDurationJson.estimateSource'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n durationType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.durationType, 'EstimatedDurationJson.durationType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n ownerId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.ownerId, 'EstimatedDurationJson.ownerId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tripId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.tripId, 'EstimatedDurationJson.tripId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n positionReportId: tryOrDefault(\r\n () => json.positionReportId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'EstimatedDurationJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: EstimatedDurationProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('EstimatedDurationRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class EstimatedDurationViewModelBase implements EstimatedDurationProps {\r\n protected readonly _props: EstimatedDurationProps;\r\n private _json?: EstimatedDurationProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get asOfTime(): Date {\r\n return this._props.asOfTime;\r\n }\r\n get durationInMinutes(): number {\r\n return this._props.durationInMinutes;\r\n }\r\n get isOfficial(): boolean {\r\n return this._props.isOfficial;\r\n }\r\n get estimateSource(): EstimatedDurationSource {\r\n return this._props.estimateSource;\r\n }\r\n get durationType(): EstimatedDurationType {\r\n return this._props.durationType;\r\n }\r\n get ownerId(): string {\r\n return this._props.ownerId;\r\n }\r\n get tripId(): string {\r\n return this._props.tripId;\r\n }\r\n get positionReportId(): string | null {\r\n return this._props.positionReportId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isGps() {\r\n return this._props.estimateSource === EstimatedDurationSource.Gps;\r\n }\r\n public get isPilot() {\r\n return this._props.estimateSource === EstimatedDurationSource.Pilot;\r\n }\r\n public get isTripLeg() {\r\n return this._props.durationType === EstimatedDurationType.TripLeg;\r\n }\r\n public get isWaypoint() {\r\n return this._props.durationType === EstimatedDurationType.Waypoint;\r\n }\r\n\r\n public isAnyEstimateSource(...estimatedDurationSource: EstimatedDurationSource[]) {\r\n return estimatedDurationSource.includes(this._props.estimateSource);\r\n }\r\n public isAnyDurationType(...estimatedDurationType: EstimatedDurationType[]) {\r\n return estimatedDurationType.includes(this._props.durationType);\r\n }\r\n\r\n constructor(props: EstimatedDurationProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n asOfTime: this._props.asOfTime,\r\n durationInMinutes: this._props.durationInMinutes,\r\n isOfficial: this._props.isOfficial,\r\n estimateSource: this._props.estimateSource,\r\n durationType: this._props.durationType,\r\n ownerId: this._props.ownerId,\r\n tripId: this._props.tripId,\r\n positionReportId: this._props.positionReportId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllEstimatedDurationEntities = (state: AppState) =>\r\n state.entityStores.estimatedDuration.entities;\r\n\r\nexport const selectEstimatedDurationById = (id: string) => (state: AppState) =>\r\n state.entityStores.estimatedDuration.entities.get(id);\r\n\r\nexport const selectEstimatedDurationMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.estimatedDuration.meta.get(id);\r\n\r\nexport const selectEstimatedDurationAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectEstimatedDurationById(id),\r\n selectEstimatedDurationMetadataById(id),\r\n (estimatedDuration, meta) => ({ estimatedDuration, meta }),\r\n );\r\n\r\nexport function selectEstimatedDurationEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllEstimatedDurationEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, EstimatedDurationRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectEstimatedDurationEntitiesByAsOfTime(asOfTime: Date) {\r\n return createSelector(selectAllEstimatedDurationEntities, (entities) =>\r\n entities.filter((e) => e.asOfTime === asOfTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEstimatedDurationEntitiesByDurationInMinutes(durationInMinutes: number) {\r\n return createSelector(selectAllEstimatedDurationEntities, (entities) =>\r\n entities.filter((e) => e.durationInMinutes === durationInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEstimatedDurationEntitiesByIsOfficial(isOfficial: boolean) {\r\n return createSelector(selectAllEstimatedDurationEntities, (entities) =>\r\n entities.filter((e) => e.isOfficial === isOfficial).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEstimatedDurationEntitiesByEstimateSource(\r\n estimateSource: EstimatedDurationSource,\r\n) {\r\n return createSelector(selectAllEstimatedDurationEntities, (entities) =>\r\n entities.filter((e) => e.estimateSource === estimateSource).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEstimatedDurationEntitiesByDurationType(durationType: EstimatedDurationType) {\r\n return createSelector(selectAllEstimatedDurationEntities, (entities) =>\r\n entities.filter((e) => e.durationType === durationType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEstimatedDurationEntitiesByOwnerId(ownerId: string) {\r\n return createSelector(selectAllEstimatedDurationEntities, (entities) =>\r\n entities.filter((e) => e.ownerId === ownerId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEstimatedDurationEntitiesByTripId(tripId: string) {\r\n return createSelector(selectAllEstimatedDurationEntities, (entities) =>\r\n entities.filter((e) => e.tripId === tripId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEstimatedDurationEntitiesByPositionReportId(positionReportId: string) {\r\n return createSelector(selectAllEstimatedDurationEntities, (entities) =>\r\n entities.filter((e) => e.positionReportId === positionReportId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEstimatedDurationEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllEstimatedDurationEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface EtaProps {\r\n id: string;\r\n asOfTime: Date;\r\n estimatedArrivalTime: Date;\r\n calculatedArrivalTime: Date;\r\n currentTripId: string;\r\n waypointId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class EtaRecord extends Record({\r\n id: null as any,\r\n asOfTime: null as any,\r\n estimatedArrivalTime: null as any,\r\n calculatedArrivalTime: null as any,\r\n currentTripId: null as any,\r\n waypointId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n asOfTime: string | number | Date;\r\n estimatedArrivalTime: string | number | Date;\r\n calculatedArrivalTime: string | number | Date;\r\n currentTripId: string;\r\n waypointId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): EtaRecord {\r\n if (json == null) {\r\n throw new Error('EtaRecord.fromJS: parameter cannot be null');\r\n }\r\n return new EtaRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'EtaJson.id'),\r\n asOfTime: new Date(getFromOrThrow(json, (j) => j.asOfTime, 'EtaJson.asOfTime')),\r\n estimatedArrivalTime: new Date(\r\n getFromOrThrow(json, (j) => j.estimatedArrivalTime, 'EtaJson.estimatedArrivalTime'),\r\n ),\r\n calculatedArrivalTime: new Date(\r\n getFromOrThrow(json, (j) => j.calculatedArrivalTime, 'EtaJson.calculatedArrivalTime'),\r\n ),\r\n currentTripId: getFromOrThrow(json, (j) => j.currentTripId, 'EtaJson.currentTripId'),\r\n waypointId: getFromOrThrow(json, (j) => j.waypointId, 'EtaJson.waypointId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'EtaJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n asOfTime: string | number | Date;\r\n estimatedArrivalTime: string | number | Date;\r\n calculatedArrivalTime: string | number | Date;\r\n currentTripId: string;\r\n waypointId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [EtaRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('EtaRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new EtaRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'EtaJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n asOfTime: tryOrDefault(\r\n () => new Date(getFromOrThrow(json, (j) => j.asOfTime, 'EtaJson.asOfTime')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedArrivalTime: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(json, (j) => j.estimatedArrivalTime, 'EtaJson.estimatedArrivalTime'),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n calculatedArrivalTime: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(json, (j) => j.calculatedArrivalTime, 'EtaJson.calculatedArrivalTime'),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentTripId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.currentTripId, 'EtaJson.currentTripId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n waypointId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.waypointId, 'EtaJson.waypointId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'EtaJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: EtaProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('EtaRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class EtaViewModelBase implements EtaProps {\r\n protected readonly _props: EtaProps;\r\n private _json?: EtaProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get asOfTime(): Date {\r\n return this._props.asOfTime;\r\n }\r\n get estimatedArrivalTime(): Date {\r\n return this._props.estimatedArrivalTime;\r\n }\r\n get calculatedArrivalTime(): Date {\r\n return this._props.calculatedArrivalTime;\r\n }\r\n get currentTripId(): string {\r\n return this._props.currentTripId;\r\n }\r\n get waypointId(): string {\r\n return this._props.waypointId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: EtaProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n asOfTime: this._props.asOfTime,\r\n estimatedArrivalTime: this._props.estimatedArrivalTime,\r\n calculatedArrivalTime: this._props.calculatedArrivalTime,\r\n currentTripId: this._props.currentTripId,\r\n waypointId: this._props.waypointId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllEtaEntities = (state: AppState) => state.entityStores.eta.entities;\r\n\r\nexport const selectEtaById = (id: string) => (state: AppState) =>\r\n state.entityStores.eta.entities.get(id);\r\n\r\nexport const selectEtaMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.eta.meta.get(id);\r\n\r\nexport const selectEtaAndMetadataById = (id: string) =>\r\n createSelector(selectEtaById(id), selectEtaMetadataById(id), (eta, meta) => ({ eta, meta }));\r\n\r\nexport function selectEtaEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllEtaEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, EtaRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectEtaEntitiesByAsOfTime(asOfTime: Date) {\r\n return createSelector(selectAllEtaEntities, (entities) =>\r\n entities.filter((e) => e.asOfTime === asOfTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEtaEntitiesByEstimatedArrivalTime(estimatedArrivalTime: Date) {\r\n return createSelector(selectAllEtaEntities, (entities) =>\r\n entities.filter((e) => e.estimatedArrivalTime === estimatedArrivalTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEtaEntitiesByCalculatedArrivalTime(calculatedArrivalTime: Date) {\r\n return createSelector(selectAllEtaEntities, (entities) =>\r\n entities.filter((e) => e.calculatedArrivalTime === calculatedArrivalTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEtaEntitiesByCurrentTripId(currentTripId: string) {\r\n return createSelector(selectAllEtaEntities, (entities) =>\r\n entities.filter((e) => e.currentTripId === currentTripId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEtaEntitiesByWaypointId(waypointId: string) {\r\n return createSelector(selectAllEtaEntities, (entities) =>\r\n entities.filter((e) => e.waypointId === waypointId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEtaEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllEtaEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { EntityType, ExternalActionStatus } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ExternalActionProps {\r\n id: string;\r\n entityId: string;\r\n status: ExternalActionStatus;\r\n entityType: EntityType;\r\n actionTypeId: string;\r\n actionBodyJson: string;\r\n completedById: string | null;\r\n dateCompleted: Date | null;\r\n notes: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ExternalActionRecord extends Record({\r\n id: null as any,\r\n entityId: null as any,\r\n status: null as any,\r\n entityType: null as any,\r\n actionTypeId: null as any,\r\n actionBodyJson: null as any,\r\n completedById: null as any,\r\n dateCompleted: null as any,\r\n notes: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n entityId: string;\r\n status: ExternalActionStatus;\r\n entityType: EntityType;\r\n actionTypeId: string;\r\n actionBodyJson: string;\r\n completedById: string | null;\r\n dateCompleted: string | number | Date | null;\r\n notes: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ExternalActionRecord {\r\n if (json == null) {\r\n throw new Error('ExternalActionRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ExternalActionRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ExternalActionJson.id'),\r\n entityId: getFromOrThrow(json, (j) => j.entityId, 'ExternalActionJson.entityId'),\r\n status: getFromOrThrow(json, (j) => j.status, 'ExternalActionJson.status'),\r\n entityType: getFromOrThrow(json, (j) => j.entityType, 'ExternalActionJson.entityType'),\r\n actionTypeId: getFromOrThrow(json, (j) => j.actionTypeId, 'ExternalActionJson.actionTypeId'),\r\n actionBodyJson: getFromOrThrow(\r\n json,\r\n (j) => j.actionBodyJson,\r\n 'ExternalActionJson.actionBodyJson',\r\n ),\r\n completedById: json.completedById,\r\n dateCompleted: json.dateCompleted != null ? new Date(json.dateCompleted) : null,\r\n notes: json.notes,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'ExternalActionJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n entityId: string;\r\n status: ExternalActionStatus;\r\n entityType: EntityType;\r\n actionTypeId: string;\r\n actionBodyJson: string;\r\n completedById: string | null;\r\n dateCompleted: string | number | Date | null;\r\n notes: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ExternalActionRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ExternalActionRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ExternalActionRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ExternalActionJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.entityId, 'ExternalActionJson.entityId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'ExternalActionJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.entityType, 'ExternalActionJson.entityType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n actionTypeId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.actionTypeId, 'ExternalActionJson.actionTypeId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n actionBodyJson: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.actionBodyJson, 'ExternalActionJson.actionBodyJson'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n completedById: tryOrDefault(\r\n () => json.completedById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateCompleted: tryOrDefault(\r\n () => (json.dateCompleted != null ? new Date(json.dateCompleted) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'ExternalActionJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ExternalActionProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ExternalActionRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ExternalActionViewModelBase implements ExternalActionProps {\r\n protected readonly _props: ExternalActionProps;\r\n private _json?: ExternalActionProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get entityId(): string {\r\n return this._props.entityId;\r\n }\r\n get status(): ExternalActionStatus {\r\n return this._props.status;\r\n }\r\n get entityType(): EntityType {\r\n return this._props.entityType;\r\n }\r\n get actionTypeId(): string {\r\n return this._props.actionTypeId;\r\n }\r\n get actionBodyJson(): string {\r\n return this._props.actionBodyJson;\r\n }\r\n get completedById(): string | null {\r\n return this._props.completedById;\r\n }\r\n get dateCompleted(): Date | null {\r\n return this._props.dateCompleted;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCompleted() {\r\n return this._props.status === ExternalActionStatus.Completed;\r\n }\r\n public get isDisregarded() {\r\n return this._props.status === ExternalActionStatus.Disregarded;\r\n }\r\n public get isRequested() {\r\n return this._props.status === ExternalActionStatus.Requested;\r\n }\r\n public get isUnknown() {\r\n return this._props.status === ExternalActionStatus.Unknown;\r\n }\r\n public get isAirport() {\r\n return this._props.entityType === EntityType.Airport;\r\n }\r\n public get isBase() {\r\n return this._props.entityType === EntityType.Base;\r\n }\r\n public get isCard() {\r\n return this._props.entityType === EntityType.Card;\r\n }\r\n public get isCommunicationCenter() {\r\n return this._props.entityType === EntityType.CommunicationCenter;\r\n }\r\n public get isCompany() {\r\n return this._props.entityType === EntityType.Company;\r\n }\r\n public get isControlZone() {\r\n return this._props.entityType === EntityType.ControlZone;\r\n }\r\n public get isLocation() {\r\n return this._props.entityType === EntityType.Location;\r\n }\r\n public get isMedicalFacility() {\r\n return this._props.entityType === EntityType.MedicalFacility;\r\n }\r\n public get isOutOfServiceEvent() {\r\n return this._props.entityType === EntityType.OutOfServiceEvent;\r\n }\r\n public get isPerson() {\r\n return this._props.entityType === EntityType.Person;\r\n }\r\n public get isProgram() {\r\n return this._props.entityType === EntityType.Program;\r\n }\r\n public get isRegion() {\r\n return this._props.entityType === EntityType.Region;\r\n }\r\n public get isTimer() {\r\n return this._props.entityType === EntityType.Timer;\r\n }\r\n public get isUnit() {\r\n return this._props.entityType === EntityType.Unit;\r\n }\r\n public get isUnspecified() {\r\n return this._props.entityType === EntityType.Unspecified;\r\n }\r\n public get isVehicle() {\r\n return this._props.entityType === EntityType.Vehicle;\r\n }\r\n\r\n public isAnyStatus(...externalActionStatus: ExternalActionStatus[]) {\r\n return externalActionStatus.includes(this._props.status);\r\n }\r\n public isAnyEntityType(...entityType: EntityType[]) {\r\n return entityType.includes(this._props.entityType);\r\n }\r\n\r\n constructor(props: ExternalActionProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n entityId: this._props.entityId,\r\n status: this._props.status,\r\n entityType: this._props.entityType,\r\n actionTypeId: this._props.actionTypeId,\r\n actionBodyJson: this._props.actionBodyJson,\r\n completedById: this._props.completedById,\r\n dateCompleted: this._props.dateCompleted,\r\n notes: this._props.notes,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllExternalActionEntities = (state: AppState) =>\r\n state.entityStores.externalAction.entities;\r\n\r\nexport const selectExternalActionById = (id: string) => (state: AppState) =>\r\n state.entityStores.externalAction.entities.get(id);\r\n\r\nexport const selectExternalActionMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.externalAction.meta.get(id);\r\n\r\nexport const selectExternalActionAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectExternalActionById(id),\r\n selectExternalActionMetadataById(id),\r\n (externalAction, meta) => ({ externalAction, meta }),\r\n );\r\n\r\nexport function selectExternalActionEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllExternalActionEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ExternalActionRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectExternalActionEntitiesByEntityId(entityId: string) {\r\n return createSelector(selectAllExternalActionEntities, (entities) =>\r\n entities.filter((e) => e.entityId === entityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalActionEntitiesByStatus(status: ExternalActionStatus) {\r\n return createSelector(selectAllExternalActionEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalActionEntitiesByEntityType(entityType: EntityType) {\r\n return createSelector(selectAllExternalActionEntities, (entities) =>\r\n entities.filter((e) => e.entityType === entityType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalActionEntitiesByActionTypeId(actionTypeId: string) {\r\n return createSelector(selectAllExternalActionEntities, (entities) =>\r\n entities.filter((e) => e.actionTypeId === actionTypeId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalActionEntitiesByActionBodyJson(actionBodyJson: string) {\r\n return createSelector(selectAllExternalActionEntities, (entities) =>\r\n entities.filter((e) => e.actionBodyJson === actionBodyJson).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalActionEntitiesByCompletedById(completedById: string) {\r\n return createSelector(selectAllExternalActionEntities, (entities) =>\r\n entities.filter((e) => e.completedById === completedById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalActionEntitiesByDateCompleted(dateCompleted: Date) {\r\n return createSelector(selectAllExternalActionEntities, (entities) =>\r\n entities.filter((e) => e.dateCompleted === dateCompleted).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalActionEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllExternalActionEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalActionEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllExternalActionEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ExternalActionTypeProps {\r\n id: string;\r\n actionTypeName: string;\r\n actionTypeDescription: string;\r\n priority: number;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ExternalActionTypeRecord extends Record({\r\n id: null as any,\r\n actionTypeName: null as any,\r\n actionTypeDescription: null as any,\r\n priority: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n actionTypeName: string;\r\n actionTypeDescription: string;\r\n priority: number;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ExternalActionTypeRecord {\r\n if (json == null) {\r\n throw new Error('ExternalActionTypeRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ExternalActionTypeRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ExternalActionTypeJson.id'),\r\n actionTypeName: getFromOrThrow(\r\n json,\r\n (j) => j.actionTypeName,\r\n 'ExternalActionTypeJson.actionTypeName',\r\n ),\r\n actionTypeDescription: getFromOrThrow(\r\n json,\r\n (j) => j.actionTypeDescription,\r\n 'ExternalActionTypeJson.actionTypeDescription',\r\n ),\r\n priority: getFromOrThrow(json, (j) => j.priority, 'ExternalActionTypeJson.priority'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n actionTypeName: string;\r\n actionTypeDescription: string;\r\n priority: number;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ExternalActionTypeRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ExternalActionTypeRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ExternalActionTypeRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ExternalActionTypeJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n actionTypeName: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.actionTypeName, 'ExternalActionTypeJson.actionTypeName'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n actionTypeDescription: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.actionTypeDescription,\r\n 'ExternalActionTypeJson.actionTypeDescription',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n priority: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.priority, 'ExternalActionTypeJson.priority'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ExternalActionTypeProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ExternalActionTypeRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ExternalActionTypeViewModelBase implements ExternalActionTypeProps {\r\n protected readonly _props: ExternalActionTypeProps;\r\n private _json?: ExternalActionTypeProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get actionTypeName(): string {\r\n return this._props.actionTypeName;\r\n }\r\n get actionTypeDescription(): string {\r\n return this._props.actionTypeDescription;\r\n }\r\n get priority(): number {\r\n return this._props.priority;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: ExternalActionTypeProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n actionTypeName: this._props.actionTypeName,\r\n actionTypeDescription: this._props.actionTypeDescription,\r\n priority: this._props.priority,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllExternalActionTypeEntities = (state: AppState) =>\r\n state.entityStores.externalActionType.entities;\r\n\r\nexport const selectExternalActionTypeById = (id: string) => (state: AppState) =>\r\n state.entityStores.externalActionType.entities.get(id);\r\n\r\nexport const selectExternalActionTypeMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.externalActionType.meta.get(id);\r\n\r\nexport const selectExternalActionTypeAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectExternalActionTypeById(id),\r\n selectExternalActionTypeMetadataById(id),\r\n (externalActionType, meta) => ({ externalActionType, meta }),\r\n );\r\n\r\nexport function selectExternalActionTypeEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllExternalActionTypeEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ExternalActionTypeRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectExternalActionTypeEntitiesByActionTypeName(actionTypeName: string) {\r\n return createSelector(selectAllExternalActionTypeEntities, (entities) =>\r\n entities.filter((e) => e.actionTypeName === actionTypeName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalActionTypeEntitiesByActionTypeDescription(\r\n actionTypeDescription: string,\r\n) {\r\n return createSelector(selectAllExternalActionTypeEntities, (entities) =>\r\n entities.filter((e) => e.actionTypeDescription === actionTypeDescription).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalActionTypeEntitiesByPriority(priority: number) {\r\n return createSelector(selectAllExternalActionTypeEntities, (entities) =>\r\n entities.filter((e) => e.priority === priority).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { UnitStatus, VehicleStatus, VehicleType } from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n OutOfServiceEventSummaryRecord,\r\n OutOfServiceEventSummaryProps,\r\n} from 'src/store/generated/out-of-service-event-summary-record.generated';\r\nimport {\r\n CoordinatesRecord,\r\n CoordinatesProps,\r\n} from 'src/store/generated/coordinates-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ExternalSystemUnitProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n unitId: string;\r\n vehicleId: string;\r\n regionId: string;\r\n companyId: string;\r\n unitStatus: UnitStatus;\r\n outOfServiceEvents: List;\r\n vehicleType: VehicleType;\r\n registrationNumber: string;\r\n vehicleStatus: VehicleStatus;\r\n vehicleStatusDescription: string;\r\n currentCardNumber: string | null;\r\n lastKnownLocationName: string | null;\r\n lastKnownCoordinates: CoordinatesProps | null;\r\n lastQualifyingPositionReportTime: Date | null;\r\n baseId: string | null;\r\n modelName: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ExternalSystemUnitRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n unitId: null as any,\r\n vehicleId: null as any,\r\n regionId: null as any,\r\n companyId: null as any,\r\n unitStatus: null as any,\r\n outOfServiceEvents: null as any,\r\n vehicleType: null as any,\r\n registrationNumber: null as any,\r\n vehicleStatus: null as any,\r\n vehicleStatusDescription: null as any,\r\n currentCardNumber: null as any,\r\n lastKnownLocationName: null as any,\r\n lastKnownCoordinates: null as any,\r\n lastQualifyingPositionReportTime: null as any,\r\n baseId: null as any,\r\n modelName: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n unitId: string;\r\n vehicleId: string;\r\n regionId: string;\r\n companyId: string;\r\n unitStatus: UnitStatus;\r\n outOfServiceEvents: any;\r\n vehicleType: VehicleType;\r\n registrationNumber: string;\r\n vehicleStatus: VehicleStatus;\r\n vehicleStatusDescription: string;\r\n currentCardNumber: string | null;\r\n lastKnownLocationName: string | null;\r\n lastKnownCoordinates: any;\r\n lastQualifyingPositionReportTime: string | number | Date | null;\r\n baseId: string | null;\r\n modelName: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ExternalSystemUnitRecord {\r\n if (json == null) {\r\n throw new Error('ExternalSystemUnitRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ExternalSystemUnitRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ExternalSystemUnitJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'ExternalSystemUnitJson.name'),\r\n abbreviation: getFromOrThrow(\r\n json,\r\n (j) => j.abbreviation,\r\n 'ExternalSystemUnitJson.abbreviation',\r\n ),\r\n unitId: getFromOrThrow(json, (j) => j.unitId, 'ExternalSystemUnitJson.unitId'),\r\n vehicleId: getFromOrThrow(json, (j) => j.vehicleId, 'ExternalSystemUnitJson.vehicleId'),\r\n regionId: getFromOrThrow(json, (j) => j.regionId, 'ExternalSystemUnitJson.regionId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'ExternalSystemUnitJson.companyId'),\r\n unitStatus: getFromOrThrow(json, (j) => j.unitStatus, 'ExternalSystemUnitJson.unitStatus'),\r\n outOfServiceEvents: List(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.outOfServiceEvents,\r\n 'ExternalSystemUnitJson.outOfServiceEvents',\r\n ).map((o: any) => new OutOfServiceEventSummaryRecord(o)),\r\n ),\r\n vehicleType: getFromOrThrow(json, (j) => j.vehicleType, 'ExternalSystemUnitJson.vehicleType'),\r\n registrationNumber: getFromOrThrow(\r\n json,\r\n (j) => j.registrationNumber,\r\n 'ExternalSystemUnitJson.registrationNumber',\r\n ),\r\n vehicleStatus: getFromOrThrow(\r\n json,\r\n (j) => j.vehicleStatus,\r\n 'ExternalSystemUnitJson.vehicleStatus',\r\n ),\r\n vehicleStatusDescription: getFromOrThrow(\r\n json,\r\n (j) => j.vehicleStatusDescription,\r\n 'ExternalSystemUnitJson.vehicleStatusDescription',\r\n ),\r\n currentCardNumber: json.currentCardNumber,\r\n lastKnownLocationName: json.lastKnownLocationName,\r\n lastKnownCoordinates:\r\n json.lastKnownCoordinates != null ? new CoordinatesRecord(json.lastKnownCoordinates) : null,\r\n lastQualifyingPositionReportTime:\r\n json.lastQualifyingPositionReportTime != null\r\n ? new Date(json.lastQualifyingPositionReportTime)\r\n : null,\r\n baseId: json.baseId,\r\n modelName: json.modelName,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n unitId: string;\r\n vehicleId: string;\r\n regionId: string;\r\n companyId: string;\r\n unitStatus: UnitStatus;\r\n outOfServiceEvents: any;\r\n vehicleType: VehicleType;\r\n registrationNumber: string;\r\n vehicleStatus: VehicleStatus;\r\n vehicleStatusDescription: string;\r\n currentCardNumber: string | null;\r\n lastKnownLocationName: string | null;\r\n lastKnownCoordinates: any;\r\n lastQualifyingPositionReportTime: string | number | Date | null;\r\n baseId: string | null;\r\n modelName: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ExternalSystemUnitRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ExternalSystemUnitRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ExternalSystemUnitRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ExternalSystemUnitJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'ExternalSystemUnitJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'ExternalSystemUnitJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitId, 'ExternalSystemUnitJson.unitId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.vehicleId, 'ExternalSystemUnitJson.vehicleId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.regionId, 'ExternalSystemUnitJson.regionId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'ExternalSystemUnitJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitStatus: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitStatus, 'ExternalSystemUnitJson.unitStatus'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n outOfServiceEvents: tryOrDefault(\r\n () =>\r\n List(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.outOfServiceEvents,\r\n 'ExternalSystemUnitJson.outOfServiceEvents',\r\n ).map((o: any) => new OutOfServiceEventSummaryRecord(o)),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.vehicleType, 'ExternalSystemUnitJson.vehicleType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n registrationNumber: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.registrationNumber,\r\n 'ExternalSystemUnitJson.registrationNumber',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleStatus: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.vehicleStatus, 'ExternalSystemUnitJson.vehicleStatus'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleStatusDescription: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.vehicleStatusDescription,\r\n 'ExternalSystemUnitJson.vehicleStatusDescription',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentCardNumber: tryOrDefault(\r\n () => json.currentCardNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastKnownLocationName: tryOrDefault(\r\n () => json.lastKnownLocationName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastKnownCoordinates: tryOrDefault(\r\n () =>\r\n json.lastKnownCoordinates != null\r\n ? new CoordinatesRecord(json.lastKnownCoordinates)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastQualifyingPositionReportTime: tryOrDefault(\r\n () =>\r\n json.lastQualifyingPositionReportTime != null\r\n ? new Date(json.lastQualifyingPositionReportTime)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseId: tryOrDefault(\r\n () => json.baseId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n modelName: tryOrDefault(\r\n () => json.modelName,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ExternalSystemUnitProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ExternalSystemUnitRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ExternalSystemUnitViewModelBase implements ExternalSystemUnitProps {\r\n protected readonly _props: ExternalSystemUnitProps;\r\n private _json?: ExternalSystemUnitProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get unitId(): string {\r\n return this._props.unitId;\r\n }\r\n get vehicleId(): string {\r\n return this._props.vehicleId;\r\n }\r\n get regionId(): string {\r\n return this._props.regionId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n get unitStatus(): UnitStatus {\r\n return this._props.unitStatus;\r\n }\r\n get outOfServiceEvents(): List {\r\n return this._props.outOfServiceEvents;\r\n }\r\n get vehicleType(): VehicleType {\r\n return this._props.vehicleType;\r\n }\r\n get registrationNumber(): string {\r\n return this._props.registrationNumber;\r\n }\r\n get vehicleStatus(): VehicleStatus {\r\n return this._props.vehicleStatus;\r\n }\r\n get vehicleStatusDescription(): string {\r\n return this._props.vehicleStatusDescription;\r\n }\r\n get currentCardNumber(): string | null {\r\n return this._props.currentCardNumber;\r\n }\r\n get lastKnownLocationName(): string | null {\r\n return this._props.lastKnownLocationName;\r\n }\r\n get lastKnownCoordinates(): CoordinatesProps | null {\r\n return this._props.lastKnownCoordinates;\r\n }\r\n get lastQualifyingPositionReportTime(): Date | null {\r\n return this._props.lastQualifyingPositionReportTime;\r\n }\r\n get baseId(): string | null {\r\n return this._props.baseId;\r\n }\r\n get modelName(): string | null {\r\n return this._props.modelName;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAvailable() {\r\n return this._props.unitStatus === UnitStatus.Available;\r\n }\r\n public get isCommitted() {\r\n return this._props.unitStatus === UnitStatus.Committed;\r\n }\r\n public get isOnStandby() {\r\n return this._props.unitStatus === UnitStatus.OnStandby;\r\n }\r\n public get isOutOfService() {\r\n return this._props.unitStatus === UnitStatus.OutOfService;\r\n }\r\n public get isPartiallyAvailable() {\r\n return this._props.unitStatus === UnitStatus.PartiallyAvailable;\r\n }\r\n public get isFixedWing() {\r\n return this._props.vehicleType === VehicleType.FixedWing;\r\n }\r\n public get isGround() {\r\n return this._props.vehicleType === VehicleType.Ground;\r\n }\r\n public get isRotorWing() {\r\n return this._props.vehicleType === VehicleType.RotorWing;\r\n }\r\n public get isUnspecified() {\r\n return this._props.vehicleType === VehicleType.Unspecified;\r\n }\r\n public get isAtWaypoint() {\r\n return this._props.vehicleStatus === VehicleStatus.AtWaypoint;\r\n }\r\n public get isEnRoute() {\r\n return this._props.vehicleStatus === VehicleStatus.EnRoute;\r\n }\r\n\r\n public isAnyUnitStatus(...unitStatus: UnitStatus[]) {\r\n return unitStatus.includes(this._props.unitStatus);\r\n }\r\n public isAnyVehicleType(...vehicleType: VehicleType[]) {\r\n return vehicleType.includes(this._props.vehicleType);\r\n }\r\n public isAnyVehicleStatus(...vehicleStatus: VehicleStatus[]) {\r\n return vehicleStatus.includes(this._props.vehicleStatus);\r\n }\r\n\r\n constructor(props: ExternalSystemUnitProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n unitId: this._props.unitId,\r\n vehicleId: this._props.vehicleId,\r\n regionId: this._props.regionId,\r\n companyId: this._props.companyId,\r\n unitStatus: this._props.unitStatus,\r\n outOfServiceEvents: this._props.outOfServiceEvents,\r\n vehicleType: this._props.vehicleType,\r\n registrationNumber: this._props.registrationNumber,\r\n vehicleStatus: this._props.vehicleStatus,\r\n vehicleStatusDescription: this._props.vehicleStatusDescription,\r\n currentCardNumber: this._props.currentCardNumber,\r\n lastKnownLocationName: this._props.lastKnownLocationName,\r\n lastKnownCoordinates: this._props.lastKnownCoordinates,\r\n lastQualifyingPositionReportTime: this._props.lastQualifyingPositionReportTime,\r\n baseId: this._props.baseId,\r\n modelName: this._props.modelName,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllExternalSystemUnitEntities = (state: AppState) =>\r\n state.entityStores.externalSystemUnit.entities;\r\n\r\nexport const selectExternalSystemUnitById = (id: string) => (state: AppState) =>\r\n state.entityStores.externalSystemUnit.entities.get(id);\r\n\r\nexport const selectExternalSystemUnitMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.externalSystemUnit.meta.get(id);\r\n\r\nexport const selectExternalSystemUnitAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectExternalSystemUnitById(id),\r\n selectExternalSystemUnitMetadataById(id),\r\n (externalSystemUnit, meta) => ({ externalSystemUnit, meta }),\r\n );\r\n\r\nexport function selectExternalSystemUnitEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllExternalSystemUnitEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ExternalSystemUnitRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByName(name: string) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByUnitStatus(unitStatus: UnitStatus) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.unitStatus === unitStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByVehicleType(vehicleType: VehicleType) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.vehicleType === vehicleType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByRegistrationNumber(registrationNumber: string) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.registrationNumber === registrationNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByVehicleStatus(vehicleStatus: VehicleStatus) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.vehicleStatus === vehicleStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByVehicleStatusDescription(\r\n vehicleStatusDescription: string,\r\n) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.vehicleStatusDescription === vehicleStatusDescription).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByCurrentCardNumber(currentCardNumber: string) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.currentCardNumber === currentCardNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByLastKnownLocationName(\r\n lastKnownLocationName: string,\r\n) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.lastKnownLocationName === lastKnownLocationName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByLastQualifyingPositionReportTime(\r\n lastQualifyingPositionReportTime: Date,\r\n) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities\r\n .filter((e) => e.lastQualifyingPositionReportTime === lastQualifyingPositionReportTime)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByBaseId(baseId: string) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.baseId === baseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalSystemUnitEntitiesByModelName(modelName: string) {\r\n return createSelector(selectAllExternalSystemUnitEntities, (entities) =>\r\n entities.filter((e) => e.modelName === modelName).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { NonAcceptanceType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface FacilityNonAcceptanceReasonProps {\r\n id: string;\r\n name: string;\r\n facilityNonAcceptanceReasonType: NonAcceptanceType;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class FacilityNonAcceptanceReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n facilityNonAcceptanceReasonType: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n facilityNonAcceptanceReasonType: NonAcceptanceType;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): FacilityNonAcceptanceReasonRecord {\r\n if (json == null) {\r\n throw new Error('FacilityNonAcceptanceReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new FacilityNonAcceptanceReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'FacilityNonAcceptanceReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'FacilityNonAcceptanceReasonJson.name'),\r\n facilityNonAcceptanceReasonType: getFromOrThrow(\r\n json,\r\n (j) => j.facilityNonAcceptanceReasonType,\r\n 'FacilityNonAcceptanceReasonJson.facilityNonAcceptanceReasonType',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n facilityNonAcceptanceReasonType: NonAcceptanceType;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [FacilityNonAcceptanceReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('FacilityNonAcceptanceReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new FacilityNonAcceptanceReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'FacilityNonAcceptanceReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'FacilityNonAcceptanceReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n facilityNonAcceptanceReasonType: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.facilityNonAcceptanceReasonType,\r\n 'FacilityNonAcceptanceReasonJson.facilityNonAcceptanceReasonType',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: FacilityNonAcceptanceReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('FacilityNonAcceptanceReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class FacilityNonAcceptanceReasonViewModelBase\r\n implements FacilityNonAcceptanceReasonProps\r\n{\r\n protected readonly _props: FacilityNonAcceptanceReasonProps;\r\n private _json?: FacilityNonAcceptanceReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get facilityNonAcceptanceReasonType(): NonAcceptanceType {\r\n return this._props.facilityNonAcceptanceReasonType;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCancelled() {\r\n return this._props.facilityNonAcceptanceReasonType === NonAcceptanceType.Cancelled;\r\n }\r\n public get isDenied() {\r\n return this._props.facilityNonAcceptanceReasonType === NonAcceptanceType.Denied;\r\n }\r\n public get isDiverted() {\r\n return this._props.facilityNonAcceptanceReasonType === NonAcceptanceType.Diverted;\r\n }\r\n public get isReferred() {\r\n return this._props.facilityNonAcceptanceReasonType === NonAcceptanceType.Referred;\r\n }\r\n\r\n public isAnyFacilityNonAcceptanceReasonType(...nonAcceptanceType: NonAcceptanceType[]) {\r\n return nonAcceptanceType.includes(this._props.facilityNonAcceptanceReasonType);\r\n }\r\n\r\n constructor(props: FacilityNonAcceptanceReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n facilityNonAcceptanceReasonType: this._props.facilityNonAcceptanceReasonType,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllFacilityNonAcceptanceReasonEntities = (state: AppState) =>\r\n state.entityStores.facilityNonAcceptanceReason.entities;\r\n\r\nexport const selectFacilityNonAcceptanceReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.facilityNonAcceptanceReason.entities.get(id);\r\n\r\nexport const selectFacilityNonAcceptanceReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.facilityNonAcceptanceReason.meta.get(id);\r\n\r\nexport const selectFacilityNonAcceptanceReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectFacilityNonAcceptanceReasonById(id),\r\n selectFacilityNonAcceptanceReasonMetadataById(id),\r\n (facilityNonAcceptanceReason, meta) => ({ facilityNonAcceptanceReason, meta }),\r\n );\r\n\r\nexport function selectFacilityNonAcceptanceReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllFacilityNonAcceptanceReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, FacilityNonAcceptanceReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectFacilityNonAcceptanceReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllFacilityNonAcceptanceReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFacilityNonAcceptanceReasonEntitiesByFacilityNonAcceptanceReasonType(\r\n facilityNonAcceptanceReasonType: NonAcceptanceType,\r\n) {\r\n return createSelector(selectAllFacilityNonAcceptanceReasonEntities, (entities) =>\r\n entities\r\n .filter((e) => e.facilityNonAcceptanceReasonType === facilityNonAcceptanceReasonType)\r\n .valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AccessControlAction } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface FirewallRuleProps {\r\n id: string;\r\n name: string;\r\n action: AccessControlAction;\r\n ipRange: string;\r\n enabled: boolean;\r\n companyId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class FirewallRuleRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n action: null as any,\r\n ipRange: null as any,\r\n enabled: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n action: AccessControlAction;\r\n ipRange: string;\r\n enabled: boolean;\r\n companyId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): FirewallRuleRecord {\r\n if (json == null) {\r\n throw new Error('FirewallRuleRecord.fromJS: parameter cannot be null');\r\n }\r\n return new FirewallRuleRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'FirewallRuleJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'FirewallRuleJson.name'),\r\n action: getFromOrThrow(json, (j) => j.action, 'FirewallRuleJson.action'),\r\n ipRange: getFromOrThrow(json, (j) => j.ipRange, 'FirewallRuleJson.ipRange'),\r\n enabled: getFromOrThrow(json, (j) => j.enabled, 'FirewallRuleJson.enabled'),\r\n companyId: json.companyId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n action: AccessControlAction;\r\n ipRange: string;\r\n enabled: boolean;\r\n companyId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [FirewallRuleRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('FirewallRuleRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new FirewallRuleRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'FirewallRuleJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'FirewallRuleJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n action: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.action, 'FirewallRuleJson.action'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n ipRange: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.ipRange, 'FirewallRuleJson.ipRange'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n enabled: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.enabled, 'FirewallRuleJson.enabled'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => json.companyId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: FirewallRuleProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('FirewallRuleRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class FirewallRuleViewModelBase implements FirewallRuleProps {\r\n protected readonly _props: FirewallRuleProps;\r\n private _json?: FirewallRuleProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get action(): AccessControlAction {\r\n return this._props.action;\r\n }\r\n get ipRange(): string {\r\n return this._props.ipRange;\r\n }\r\n get enabled(): boolean {\r\n return this._props.enabled;\r\n }\r\n get companyId(): string | null {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAllow() {\r\n return this._props.action === AccessControlAction.Allow;\r\n }\r\n public get isDeny() {\r\n return this._props.action === AccessControlAction.Deny;\r\n }\r\n\r\n public isAnyAction(...accessControlAction: AccessControlAction[]) {\r\n return accessControlAction.includes(this._props.action);\r\n }\r\n\r\n constructor(props: FirewallRuleProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n action: this._props.action,\r\n ipRange: this._props.ipRange,\r\n enabled: this._props.enabled,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllFirewallRuleEntities = (state: AppState) =>\r\n state.entityStores.firewallRule.entities;\r\n\r\nexport const selectFirewallRuleById = (id: string) => (state: AppState) =>\r\n state.entityStores.firewallRule.entities.get(id);\r\n\r\nexport const selectFirewallRuleMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.firewallRule.meta.get(id);\r\n\r\nexport const selectFirewallRuleAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectFirewallRuleById(id),\r\n selectFirewallRuleMetadataById(id),\r\n (firewallRule, meta) => ({ firewallRule, meta }),\r\n );\r\n\r\nexport function selectFirewallRuleEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllFirewallRuleEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, FirewallRuleRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectFirewallRuleEntitiesByName(name: string) {\r\n return createSelector(selectAllFirewallRuleEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFirewallRuleEntitiesByAction(action: AccessControlAction) {\r\n return createSelector(selectAllFirewallRuleEntities, (entities) =>\r\n entities.filter((e) => e.action === action).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFirewallRuleEntitiesByIpRange(ipRange: string) {\r\n return createSelector(selectAllFirewallRuleEntities, (entities) =>\r\n entities.filter((e) => e.ipRange === ipRange).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFirewallRuleEntitiesByEnabled(enabled: boolean) {\r\n return createSelector(selectAllFirewallRuleEntities, (entities) =>\r\n entities.filter((e) => e.enabled === enabled).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFirewallRuleEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllFirewallRuleEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { FlightRule, FlightType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface FlightFollowingReportProps {\r\n id: string;\r\n summary: string | null;\r\n fuel: string | null;\r\n estimatedTimeEnrouteMinutes: number | null;\r\n riskAnalysis: string | null;\r\n flightType: FlightType | null;\r\n soulsOnBoard: number | null;\r\n highestFeatureEnroute: number | null;\r\n takeOffWeight: number | null;\r\n centerOfGravity: number | null;\r\n destination: string | null;\r\n trackingViaGps: boolean | null;\r\n flightRule: FlightRule | null;\r\n tripLegId: string | null;\r\n confirmedFboId: string | null;\r\n cruisingAltitude: number | null;\r\n medicalCrewRA: number | null;\r\n tripId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class FlightFollowingReportRecord extends Record({\r\n id: null as any,\r\n summary: null as any,\r\n fuel: null as any,\r\n estimatedTimeEnrouteMinutes: null as any,\r\n riskAnalysis: null as any,\r\n flightType: null as any,\r\n soulsOnBoard: null as any,\r\n highestFeatureEnroute: null as any,\r\n takeOffWeight: null as any,\r\n centerOfGravity: null as any,\r\n destination: null as any,\r\n trackingViaGps: null as any,\r\n flightRule: null as any,\r\n tripLegId: null as any,\r\n confirmedFboId: null as any,\r\n cruisingAltitude: null as any,\r\n medicalCrewRA: null as any,\r\n tripId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n summary: string | null;\r\n fuel: string | null;\r\n estimatedTimeEnrouteMinutes: number | null;\r\n riskAnalysis: string | null;\r\n flightType: FlightType | null;\r\n soulsOnBoard: number | null;\r\n highestFeatureEnroute: number | null;\r\n takeOffWeight: number | null;\r\n centerOfGravity: number | null;\r\n destination: string | null;\r\n trackingViaGps: boolean | null;\r\n flightRule: FlightRule | null;\r\n tripLegId: string | null;\r\n confirmedFboId: string | null;\r\n cruisingAltitude: number | null;\r\n medicalCrewRA: number | null;\r\n tripId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): FlightFollowingReportRecord {\r\n if (json == null) {\r\n throw new Error('FlightFollowingReportRecord.fromJS: parameter cannot be null');\r\n }\r\n return new FlightFollowingReportRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'FlightFollowingReportJson.id'),\r\n summary: json.summary,\r\n fuel: json.fuel,\r\n estimatedTimeEnrouteMinutes: json.estimatedTimeEnrouteMinutes,\r\n riskAnalysis: json.riskAnalysis,\r\n flightType: json.flightType,\r\n soulsOnBoard: json.soulsOnBoard,\r\n highestFeatureEnroute: json.highestFeatureEnroute,\r\n takeOffWeight: json.takeOffWeight,\r\n centerOfGravity: json.centerOfGravity,\r\n destination: json.destination,\r\n trackingViaGps: json.trackingViaGps,\r\n flightRule: json.flightRule,\r\n tripLegId: json.tripLegId,\r\n confirmedFboId: json.confirmedFboId,\r\n cruisingAltitude: json.cruisingAltitude,\r\n medicalCrewRA: json.medicalCrewRA,\r\n tripId: getFromOrThrow(json, (j) => j.tripId, 'FlightFollowingReportJson.tripId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'FlightFollowingReportJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n summary: string | null;\r\n fuel: string | null;\r\n estimatedTimeEnrouteMinutes: number | null;\r\n riskAnalysis: string | null;\r\n flightType: FlightType | null;\r\n soulsOnBoard: number | null;\r\n highestFeatureEnroute: number | null;\r\n takeOffWeight: number | null;\r\n centerOfGravity: number | null;\r\n destination: string | null;\r\n trackingViaGps: boolean | null;\r\n flightRule: FlightRule | null;\r\n tripLegId: string | null;\r\n confirmedFboId: string | null;\r\n cruisingAltitude: number | null;\r\n medicalCrewRA: number | null;\r\n tripId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [FlightFollowingReportRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('FlightFollowingReportRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new FlightFollowingReportRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'FlightFollowingReportJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n summary: tryOrDefault(\r\n () => json.summary,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fuel: tryOrDefault(\r\n () => json.fuel,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedTimeEnrouteMinutes: tryOrDefault(\r\n () => json.estimatedTimeEnrouteMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n riskAnalysis: tryOrDefault(\r\n () => json.riskAnalysis,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n flightType: tryOrDefault(\r\n () => json.flightType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n soulsOnBoard: tryOrDefault(\r\n () => json.soulsOnBoard,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n highestFeatureEnroute: tryOrDefault(\r\n () => json.highestFeatureEnroute,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n takeOffWeight: tryOrDefault(\r\n () => json.takeOffWeight,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n centerOfGravity: tryOrDefault(\r\n () => json.centerOfGravity,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n destination: tryOrDefault(\r\n () => json.destination,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n trackingViaGps: tryOrDefault(\r\n () => json.trackingViaGps,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n flightRule: tryOrDefault(\r\n () => json.flightRule,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tripLegId: tryOrDefault(\r\n () => json.tripLegId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n confirmedFboId: tryOrDefault(\r\n () => json.confirmedFboId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cruisingAltitude: tryOrDefault(\r\n () => json.cruisingAltitude,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n medicalCrewRA: tryOrDefault(\r\n () => json.medicalCrewRA,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tripId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.tripId, 'FlightFollowingReportJson.tripId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'FlightFollowingReportJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: FlightFollowingReportProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('FlightFollowingReportRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class FlightFollowingReportViewModelBase implements FlightFollowingReportProps {\r\n protected readonly _props: FlightFollowingReportProps;\r\n private _json?: FlightFollowingReportProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get summary(): string | null {\r\n return this._props.summary;\r\n }\r\n get fuel(): string | null {\r\n return this._props.fuel;\r\n }\r\n get estimatedTimeEnrouteMinutes(): number | null {\r\n return this._props.estimatedTimeEnrouteMinutes;\r\n }\r\n get riskAnalysis(): string | null {\r\n return this._props.riskAnalysis;\r\n }\r\n get flightType(): FlightType | null {\r\n return this._props.flightType;\r\n }\r\n get soulsOnBoard(): number | null {\r\n return this._props.soulsOnBoard;\r\n }\r\n get highestFeatureEnroute(): number | null {\r\n return this._props.highestFeatureEnroute;\r\n }\r\n get takeOffWeight(): number | null {\r\n return this._props.takeOffWeight;\r\n }\r\n get centerOfGravity(): number | null {\r\n return this._props.centerOfGravity;\r\n }\r\n get destination(): string | null {\r\n return this._props.destination;\r\n }\r\n get trackingViaGps(): boolean | null {\r\n return this._props.trackingViaGps;\r\n }\r\n get flightRule(): FlightRule | null {\r\n return this._props.flightRule;\r\n }\r\n get tripLegId(): string | null {\r\n return this._props.tripLegId;\r\n }\r\n get confirmedFboId(): string | null {\r\n return this._props.confirmedFboId;\r\n }\r\n get cruisingAltitude(): number | null {\r\n return this._props.cruisingAltitude;\r\n }\r\n get medicalCrewRA(): number | null {\r\n return this._props.medicalCrewRA;\r\n }\r\n get tripId(): string {\r\n return this._props.tripId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isPt133() {\r\n return this._props.flightType === FlightType.Pt133;\r\n }\r\n public get isPt135() {\r\n return this._props.flightType === FlightType.Pt135;\r\n }\r\n public get isPt91() {\r\n return this._props.flightType === FlightType.Pt91;\r\n }\r\n public get isIfr() {\r\n return this._props.flightRule === FlightRule.Ifr;\r\n }\r\n public get isNone() {\r\n return this._props.flightRule === FlightRule.None;\r\n }\r\n public get isVfr() {\r\n return this._props.flightRule === FlightRule.Vfr;\r\n }\r\n\r\n public isAnyFlightType(...flightType: FlightType[]) {\r\n return this._props.flightType != null && flightType.includes(this._props.flightType);\r\n }\r\n public isAnyFlightRule(...flightRule: FlightRule[]) {\r\n return this._props.flightRule != null && flightRule.includes(this._props.flightRule);\r\n }\r\n\r\n constructor(props: FlightFollowingReportProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n summary: this._props.summary,\r\n fuel: this._props.fuel,\r\n estimatedTimeEnrouteMinutes: this._props.estimatedTimeEnrouteMinutes,\r\n riskAnalysis: this._props.riskAnalysis,\r\n flightType: this._props.flightType,\r\n soulsOnBoard: this._props.soulsOnBoard,\r\n highestFeatureEnroute: this._props.highestFeatureEnroute,\r\n takeOffWeight: this._props.takeOffWeight,\r\n centerOfGravity: this._props.centerOfGravity,\r\n destination: this._props.destination,\r\n trackingViaGps: this._props.trackingViaGps,\r\n flightRule: this._props.flightRule,\r\n tripLegId: this._props.tripLegId,\r\n confirmedFboId: this._props.confirmedFboId,\r\n cruisingAltitude: this._props.cruisingAltitude,\r\n medicalCrewRA: this._props.medicalCrewRA,\r\n tripId: this._props.tripId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllFlightFollowingReportEntities = (state: AppState) =>\r\n state.entityStores.flightFollowingReport.entities;\r\n\r\nexport const selectFlightFollowingReportById = (id: string) => (state: AppState) =>\r\n state.entityStores.flightFollowingReport.entities.get(id);\r\n\r\nexport const selectFlightFollowingReportMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.flightFollowingReport.meta.get(id);\r\n\r\nexport const selectFlightFollowingReportAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectFlightFollowingReportById(id),\r\n selectFlightFollowingReportMetadataById(id),\r\n (flightFollowingReport, meta) => ({ flightFollowingReport, meta }),\r\n );\r\n\r\nexport function selectFlightFollowingReportEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllFlightFollowingReportEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, FlightFollowingReportRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesBySummary(summary: string) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.summary === summary).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByFuel(fuel: string) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.fuel === fuel).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByEstimatedTimeEnrouteMinutes(\r\n estimatedTimeEnrouteMinutes: number,\r\n) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities\r\n .filter((e) => e.estimatedTimeEnrouteMinutes === estimatedTimeEnrouteMinutes)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByRiskAnalysis(riskAnalysis: string) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.riskAnalysis === riskAnalysis).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByFlightType(flightType: FlightType) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.flightType === flightType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesBySoulsOnBoard(soulsOnBoard: number) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.soulsOnBoard === soulsOnBoard).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByHighestFeatureEnroute(\r\n highestFeatureEnroute: number,\r\n) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.highestFeatureEnroute === highestFeatureEnroute).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByTakeOffWeight(takeOffWeight: number) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.takeOffWeight === takeOffWeight).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByCenterOfGravity(centerOfGravity: number) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.centerOfGravity === centerOfGravity).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByDestination(destination: string) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.destination === destination).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByTrackingViaGps(trackingViaGps: boolean) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.trackingViaGps === trackingViaGps).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByFlightRule(flightRule: FlightRule) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.flightRule === flightRule).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByTripLegId(tripLegId: string) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.tripLegId === tripLegId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByConfirmedFboId(confirmedFboId: string) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.confirmedFboId === confirmedFboId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByCruisingAltitude(cruisingAltitude: number) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.cruisingAltitude === cruisingAltitude).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByMedicalCrewRA(medicalCrewRA: number) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.medicalCrewRA === medicalCrewRA).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByTripId(tripId: string) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.tripId === tripId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFlightFollowingReportEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllFlightFollowingReportEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface LandingZoneOutOfServiceReasonProps {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class LandingZoneOutOfServiceReasonRecord extends Record(\r\n {\r\n id: null as any,\r\n name: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n },\r\n) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): LandingZoneOutOfServiceReasonRecord {\r\n if (json == null) {\r\n throw new Error('LandingZoneOutOfServiceReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new LandingZoneOutOfServiceReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'LandingZoneOutOfServiceReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'LandingZoneOutOfServiceReasonJson.name'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [LandingZoneOutOfServiceReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('LandingZoneOutOfServiceReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new LandingZoneOutOfServiceReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'LandingZoneOutOfServiceReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'LandingZoneOutOfServiceReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: LandingZoneOutOfServiceReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('LandingZoneOutOfServiceReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class LandingZoneOutOfServiceReasonViewModelBase\r\n implements LandingZoneOutOfServiceReasonProps\r\n{\r\n protected readonly _props: LandingZoneOutOfServiceReasonProps;\r\n private _json?: LandingZoneOutOfServiceReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: LandingZoneOutOfServiceReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllLandingZoneOutOfServiceReasonEntities = (state: AppState) =>\r\n state.entityStores.landingZoneOutOfServiceReason.entities;\r\n\r\nexport const selectLandingZoneOutOfServiceReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.landingZoneOutOfServiceReason.entities.get(id);\r\n\r\nexport const selectLandingZoneOutOfServiceReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.landingZoneOutOfServiceReason.meta.get(id);\r\n\r\nexport const selectLandingZoneOutOfServiceReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectLandingZoneOutOfServiceReasonById(id),\r\n selectLandingZoneOutOfServiceReasonMetadataById(id),\r\n (landingZoneOutOfServiceReason, meta) => ({ landingZoneOutOfServiceReason, meta }),\r\n );\r\n\r\nexport function selectLandingZoneOutOfServiceReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllLandingZoneOutOfServiceReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, LandingZoneOutOfServiceReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectLandingZoneOutOfServiceReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllLandingZoneOutOfServiceReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface LocationHazardAttachmentProps {\r\n id: string;\r\n locationHazardId: string;\r\n fileName: string;\r\n fileSizeInBytes: number | null;\r\n contentType: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class LocationHazardAttachmentRecord extends Record({\r\n id: null as any,\r\n locationHazardId: null as any,\r\n fileName: null as any,\r\n fileSizeInBytes: null as any,\r\n contentType: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n locationHazardId: string;\r\n fileName: string;\r\n fileSizeInBytes: number | null;\r\n contentType: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): LocationHazardAttachmentRecord {\r\n if (json == null) {\r\n throw new Error('LocationHazardAttachmentRecord.fromJS: parameter cannot be null');\r\n }\r\n return new LocationHazardAttachmentRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'LocationHazardAttachmentJson.id'),\r\n locationHazardId: getFromOrThrow(\r\n json,\r\n (j) => j.locationHazardId,\r\n 'LocationHazardAttachmentJson.locationHazardId',\r\n ),\r\n fileName: getFromOrThrow(json, (j) => j.fileName, 'LocationHazardAttachmentJson.fileName'),\r\n fileSizeInBytes: json.fileSizeInBytes,\r\n contentType: json.contentType,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'LocationHazardAttachmentJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n locationHazardId: string;\r\n fileName: string;\r\n fileSizeInBytes: number | null;\r\n contentType: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [LocationHazardAttachmentRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('LocationHazardAttachmentRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new LocationHazardAttachmentRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'LocationHazardAttachmentJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationHazardId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.locationHazardId,\r\n 'LocationHazardAttachmentJson.locationHazardId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fileName: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.fileName, 'LocationHazardAttachmentJson.fileName'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fileSizeInBytes: tryOrDefault(\r\n () => json.fileSizeInBytes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n contentType: tryOrDefault(\r\n () => json.contentType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'LocationHazardAttachmentJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: LocationHazardAttachmentProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('LocationHazardAttachmentRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class LocationHazardAttachmentViewModelBase\r\n implements LocationHazardAttachmentProps\r\n{\r\n protected readonly _props: LocationHazardAttachmentProps;\r\n private _json?: LocationHazardAttachmentProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get locationHazardId(): string {\r\n return this._props.locationHazardId;\r\n }\r\n get fileName(): string {\r\n return this._props.fileName;\r\n }\r\n get fileSizeInBytes(): number | null {\r\n return this._props.fileSizeInBytes;\r\n }\r\n get contentType(): string | null {\r\n return this._props.contentType;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: LocationHazardAttachmentProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n locationHazardId: this._props.locationHazardId,\r\n fileName: this._props.fileName,\r\n fileSizeInBytes: this._props.fileSizeInBytes,\r\n contentType: this._props.contentType,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllLocationHazardAttachmentEntities = (state: AppState) =>\r\n state.entityStores.locationHazardAttachment.entities;\r\n\r\nexport const selectLocationHazardAttachmentById = (id: string) => (state: AppState) =>\r\n state.entityStores.locationHazardAttachment.entities.get(id);\r\n\r\nexport const selectLocationHazardAttachmentMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.locationHazardAttachment.meta.get(id);\r\n\r\nexport const selectLocationHazardAttachmentAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectLocationHazardAttachmentById(id),\r\n selectLocationHazardAttachmentMetadataById(id),\r\n (locationHazardAttachment, meta) => ({ locationHazardAttachment, meta }),\r\n );\r\n\r\nexport function selectLocationHazardAttachmentEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllLocationHazardAttachmentEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, LocationHazardAttachmentRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectLocationHazardAttachmentEntitiesByLocationHazardId(locationHazardId: string) {\r\n return createSelector(selectAllLocationHazardAttachmentEntities, (entities) =>\r\n entities.filter((e) => e.locationHazardId === locationHazardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationHazardAttachmentEntitiesByFileName(fileName: string) {\r\n return createSelector(selectAllLocationHazardAttachmentEntities, (entities) =>\r\n entities.filter((e) => e.fileName === fileName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationHazardAttachmentEntitiesByFileSizeInBytes(fileSizeInBytes: number) {\r\n return createSelector(selectAllLocationHazardAttachmentEntities, (entities) =>\r\n entities.filter((e) => e.fileSizeInBytes === fileSizeInBytes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationHazardAttachmentEntitiesByContentType(contentType: string) {\r\n return createSelector(selectAllLocationHazardAttachmentEntities, (entities) =>\r\n entities.filter((e) => e.contentType === contentType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationHazardAttachmentEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllLocationHazardAttachmentEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface LocationHazardProps {\r\n id: string;\r\n locationId: string;\r\n hazard: string;\r\n effectiveDate: Date | null;\r\n expirationDate: Date | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class LocationHazardRecord extends Record({\r\n id: null as any,\r\n locationId: null as any,\r\n hazard: null as any,\r\n effectiveDate: null as any,\r\n expirationDate: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n locationId: string;\r\n hazard: string;\r\n effectiveDate: string | number | Date | null;\r\n expirationDate: string | number | Date | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): LocationHazardRecord {\r\n if (json == null) {\r\n throw new Error('LocationHazardRecord.fromJS: parameter cannot be null');\r\n }\r\n return new LocationHazardRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'LocationHazardJson.id'),\r\n locationId: getFromOrThrow(json, (j) => j.locationId, 'LocationHazardJson.locationId'),\r\n hazard: getFromOrThrow(json, (j) => j.hazard, 'LocationHazardJson.hazard'),\r\n effectiveDate: json.effectiveDate != null ? new Date(json.effectiveDate) : null,\r\n expirationDate: json.expirationDate != null ? new Date(json.expirationDate) : null,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'LocationHazardJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n locationId: string;\r\n hazard: string;\r\n effectiveDate: string | number | Date | null;\r\n expirationDate: string | number | Date | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [LocationHazardRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('LocationHazardRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new LocationHazardRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'LocationHazardJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.locationId, 'LocationHazardJson.locationId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n hazard: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.hazard, 'LocationHazardJson.hazard'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n effectiveDate: tryOrDefault(\r\n () => (json.effectiveDate != null ? new Date(json.effectiveDate) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n expirationDate: tryOrDefault(\r\n () => (json.expirationDate != null ? new Date(json.expirationDate) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'LocationHazardJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: LocationHazardProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('LocationHazardRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class LocationHazardViewModelBase implements LocationHazardProps {\r\n protected readonly _props: LocationHazardProps;\r\n private _json?: LocationHazardProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get locationId(): string {\r\n return this._props.locationId;\r\n }\r\n get hazard(): string {\r\n return this._props.hazard;\r\n }\r\n get effectiveDate(): Date | null {\r\n return this._props.effectiveDate;\r\n }\r\n get expirationDate(): Date | null {\r\n return this._props.expirationDate;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: LocationHazardProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n locationId: this._props.locationId,\r\n hazard: this._props.hazard,\r\n effectiveDate: this._props.effectiveDate,\r\n expirationDate: this._props.expirationDate,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllLocationHazardEntities = (state: AppState) =>\r\n state.entityStores.locationHazard.entities;\r\n\r\nexport const selectLocationHazardById = (id: string) => (state: AppState) =>\r\n state.entityStores.locationHazard.entities.get(id);\r\n\r\nexport const selectLocationHazardMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.locationHazard.meta.get(id);\r\n\r\nexport const selectLocationHazardAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectLocationHazardById(id),\r\n selectLocationHazardMetadataById(id),\r\n (locationHazard, meta) => ({ locationHazard, meta }),\r\n );\r\n\r\nexport function selectLocationHazardEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllLocationHazardEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, LocationHazardRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectLocationHazardEntitiesByLocationId(locationId: string) {\r\n return createSelector(selectAllLocationHazardEntities, (entities) =>\r\n entities.filter((e) => e.locationId === locationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationHazardEntitiesByHazard(hazard: string) {\r\n return createSelector(selectAllLocationHazardEntities, (entities) =>\r\n entities.filter((e) => e.hazard === hazard).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationHazardEntitiesByEffectiveDate(effectiveDate: Date) {\r\n return createSelector(selectAllLocationHazardEntities, (entities) =>\r\n entities.filter((e) => e.effectiveDate === effectiveDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationHazardEntitiesByExpirationDate(expirationDate: Date) {\r\n return createSelector(selectAllLocationHazardEntities, (entities) =>\r\n entities.filter((e) => e.expirationDate === expirationDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationHazardEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllLocationHazardEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ManifestEntryProps {\r\n id: string;\r\n passengerId: string;\r\n confirmedAt: Date | null;\r\n confirmedById: string | null;\r\n tripLegId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ManifestEntryRecord extends Record({\r\n id: null as any,\r\n passengerId: null as any,\r\n confirmedAt: null as any,\r\n confirmedById: null as any,\r\n tripLegId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n passengerId: string;\r\n confirmedAt: string | number | Date | null;\r\n confirmedById: string | null;\r\n tripLegId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ManifestEntryRecord {\r\n if (json == null) {\r\n throw new Error('ManifestEntryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ManifestEntryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ManifestEntryJson.id'),\r\n passengerId: getFromOrThrow(json, (j) => j.passengerId, 'ManifestEntryJson.passengerId'),\r\n confirmedAt: json.confirmedAt != null ? new Date(json.confirmedAt) : null,\r\n confirmedById: json.confirmedById,\r\n tripLegId: getFromOrThrow(json, (j) => j.tripLegId, 'ManifestEntryJson.tripLegId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'ManifestEntryJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n passengerId: string;\r\n confirmedAt: string | number | Date | null;\r\n confirmedById: string | null;\r\n tripLegId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ManifestEntryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ManifestEntryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ManifestEntryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ManifestEntryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n passengerId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.passengerId, 'ManifestEntryJson.passengerId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n confirmedAt: tryOrDefault(\r\n () => (json.confirmedAt != null ? new Date(json.confirmedAt) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n confirmedById: tryOrDefault(\r\n () => json.confirmedById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tripLegId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.tripLegId, 'ManifestEntryJson.tripLegId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'ManifestEntryJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ManifestEntryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ManifestEntryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ManifestEntryViewModelBase implements ManifestEntryProps {\r\n protected readonly _props: ManifestEntryProps;\r\n private _json?: ManifestEntryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get passengerId(): string {\r\n return this._props.passengerId;\r\n }\r\n get confirmedAt(): Date | null {\r\n return this._props.confirmedAt;\r\n }\r\n get confirmedById(): string | null {\r\n return this._props.confirmedById;\r\n }\r\n get tripLegId(): string {\r\n return this._props.tripLegId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: ManifestEntryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n passengerId: this._props.passengerId,\r\n confirmedAt: this._props.confirmedAt,\r\n confirmedById: this._props.confirmedById,\r\n tripLegId: this._props.tripLegId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllManifestEntryEntities = (state: AppState) =>\r\n state.entityStores.manifestEntry.entities;\r\n\r\nexport const selectManifestEntryById = (id: string) => (state: AppState) =>\r\n state.entityStores.manifestEntry.entities.get(id);\r\n\r\nexport const selectManifestEntryMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.manifestEntry.meta.get(id);\r\n\r\nexport const selectManifestEntryAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectManifestEntryById(id),\r\n selectManifestEntryMetadataById(id),\r\n (manifestEntry, meta) => ({ manifestEntry, meta }),\r\n );\r\n\r\nexport function selectManifestEntryEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllManifestEntryEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ManifestEntryRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectManifestEntryEntitiesByPassengerId(passengerId: string) {\r\n return createSelector(selectAllManifestEntryEntities, (entities) =>\r\n entities.filter((e) => e.passengerId === passengerId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectManifestEntryEntitiesByConfirmedAt(confirmedAt: Date) {\r\n return createSelector(selectAllManifestEntryEntities, (entities) =>\r\n entities.filter((e) => e.confirmedAt === confirmedAt).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectManifestEntryEntitiesByConfirmedById(confirmedById: string) {\r\n return createSelector(selectAllManifestEntryEntities, (entities) =>\r\n entities.filter((e) => e.confirmedById === confirmedById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectManifestEntryEntitiesByTripLegId(tripLegId: string) {\r\n return createSelector(selectAllManifestEntryEntities, (entities) =>\r\n entities.filter((e) => e.tripLegId === tripLegId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectManifestEntryEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllManifestEntryEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface MedicalControlContactLogEntryProps {\r\n id: string;\r\n cardId: string;\r\n timestampId: string;\r\n personId: string;\r\n isSuccessful: boolean;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class MedicalControlContactLogEntryRecord extends Record(\r\n {\r\n id: null as any,\r\n cardId: null as any,\r\n timestampId: null as any,\r\n personId: null as any,\r\n isSuccessful: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n },\r\n) {\r\n public static fromJS(json: {\r\n id: string;\r\n cardId: string;\r\n timestampId: string;\r\n personId: string;\r\n isSuccessful: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): MedicalControlContactLogEntryRecord {\r\n if (json == null) {\r\n throw new Error('MedicalControlContactLogEntryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new MedicalControlContactLogEntryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'MedicalControlContactLogEntryJson.id'),\r\n cardId: getFromOrThrow(json, (j) => j.cardId, 'MedicalControlContactLogEntryJson.cardId'),\r\n timestampId: getFromOrThrow(\r\n json,\r\n (j) => j.timestampId,\r\n 'MedicalControlContactLogEntryJson.timestampId',\r\n ),\r\n personId: getFromOrThrow(\r\n json,\r\n (j) => j.personId,\r\n 'MedicalControlContactLogEntryJson.personId',\r\n ),\r\n isSuccessful: getFromOrThrow(\r\n json,\r\n (j) => j.isSuccessful,\r\n 'MedicalControlContactLogEntryJson.isSuccessful',\r\n ),\r\n companyId: getFromOrThrow(\r\n json,\r\n (j) => j.companyId,\r\n 'MedicalControlContactLogEntryJson.companyId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n cardId: string;\r\n timestampId: string;\r\n personId: string;\r\n isSuccessful: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [MedicalControlContactLogEntryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('MedicalControlContactLogEntryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new MedicalControlContactLogEntryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'MedicalControlContactLogEntryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cardId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.cardId, 'MedicalControlContactLogEntryJson.cardId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timestampId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.timestampId,\r\n 'MedicalControlContactLogEntryJson.timestampId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n personId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.personId, 'MedicalControlContactLogEntryJson.personId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isSuccessful: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.isSuccessful,\r\n 'MedicalControlContactLogEntryJson.isSuccessful',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.companyId, 'MedicalControlContactLogEntryJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: MedicalControlContactLogEntryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('MedicalControlContactLogEntryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class MedicalControlContactLogEntryViewModelBase\r\n implements MedicalControlContactLogEntryProps\r\n{\r\n protected readonly _props: MedicalControlContactLogEntryProps;\r\n private _json?: MedicalControlContactLogEntryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get cardId(): string {\r\n return this._props.cardId;\r\n }\r\n get timestampId(): string {\r\n return this._props.timestampId;\r\n }\r\n get personId(): string {\r\n return this._props.personId;\r\n }\r\n get isSuccessful(): boolean {\r\n return this._props.isSuccessful;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: MedicalControlContactLogEntryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n cardId: this._props.cardId,\r\n timestampId: this._props.timestampId,\r\n personId: this._props.personId,\r\n isSuccessful: this._props.isSuccessful,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllMedicalControlContactLogEntryEntities = (state: AppState) =>\r\n state.entityStores.medicalControlContactLogEntry.entities;\r\n\r\nexport const selectMedicalControlContactLogEntryById = (id: string) => (state: AppState) =>\r\n state.entityStores.medicalControlContactLogEntry.entities.get(id);\r\n\r\nexport const selectMedicalControlContactLogEntryMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.medicalControlContactLogEntry.meta.get(id);\r\n\r\nexport const selectMedicalControlContactLogEntryAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectMedicalControlContactLogEntryById(id),\r\n selectMedicalControlContactLogEntryMetadataById(id),\r\n (medicalControlContactLogEntry, meta) => ({ medicalControlContactLogEntry, meta }),\r\n );\r\n\r\nexport function selectMedicalControlContactLogEntryEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllMedicalControlContactLogEntryEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, MedicalControlContactLogEntryRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectMedicalControlContactLogEntryEntitiesByCardId(cardId: string) {\r\n return createSelector(selectAllMedicalControlContactLogEntryEntities, (entities) =>\r\n entities.filter((e) => e.cardId === cardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalControlContactLogEntryEntitiesByTimestampId(timestampId: string) {\r\n return createSelector(selectAllMedicalControlContactLogEntryEntities, (entities) =>\r\n entities.filter((e) => e.timestampId === timestampId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalControlContactLogEntryEntitiesByPersonId(personId: string) {\r\n return createSelector(selectAllMedicalControlContactLogEntryEntities, (entities) =>\r\n entities.filter((e) => e.personId === personId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalControlContactLogEntryEntitiesByIsSuccessful(isSuccessful: boolean) {\r\n return createSelector(selectAllMedicalControlContactLogEntryEntities, (entities) =>\r\n entities.filter((e) => e.isSuccessful === isSuccessful).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalControlContactLogEntryEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllMedicalControlContactLogEntryEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { MessageStatus } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface MessageStatusUpdateProps {\r\n id: string;\r\n status: MessageStatus;\r\n error: string | null;\r\n vendorMessage: string | null;\r\n metadataJson: string | null;\r\n trackedMessageId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class MessageStatusUpdateRecord extends Record({\r\n id: null as any,\r\n status: null as any,\r\n error: null as any,\r\n vendorMessage: null as any,\r\n metadataJson: null as any,\r\n trackedMessageId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n status: MessageStatus;\r\n error: string | null;\r\n vendorMessage: string | null;\r\n metadataJson: string | null;\r\n trackedMessageId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): MessageStatusUpdateRecord {\r\n if (json == null) {\r\n throw new Error('MessageStatusUpdateRecord.fromJS: parameter cannot be null');\r\n }\r\n return new MessageStatusUpdateRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'MessageStatusUpdateJson.id'),\r\n status: getFromOrThrow(json, (j) => j.status, 'MessageStatusUpdateJson.status'),\r\n error: json.error,\r\n vendorMessage: json.vendorMessage,\r\n metadataJson: json.metadataJson,\r\n trackedMessageId: getFromOrThrow(\r\n json,\r\n (j) => j.trackedMessageId,\r\n 'MessageStatusUpdateJson.trackedMessageId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n status: MessageStatus;\r\n error: string | null;\r\n vendorMessage: string | null;\r\n metadataJson: string | null;\r\n trackedMessageId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [MessageStatusUpdateRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('MessageStatusUpdateRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new MessageStatusUpdateRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'MessageStatusUpdateJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'MessageStatusUpdateJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n error: tryOrDefault(\r\n () => json.error,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vendorMessage: tryOrDefault(\r\n () => json.vendorMessage,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n metadataJson: tryOrDefault(\r\n () => json.metadataJson,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n trackedMessageId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.trackedMessageId,\r\n 'MessageStatusUpdateJson.trackedMessageId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: MessageStatusUpdateProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('MessageStatusUpdateRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class MessageStatusUpdateViewModelBase implements MessageStatusUpdateProps {\r\n protected readonly _props: MessageStatusUpdateProps;\r\n private _json?: MessageStatusUpdateProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get status(): MessageStatus {\r\n return this._props.status;\r\n }\r\n get error(): string | null {\r\n return this._props.error;\r\n }\r\n get vendorMessage(): string | null {\r\n return this._props.vendorMessage;\r\n }\r\n get metadataJson(): string | null {\r\n return this._props.metadataJson;\r\n }\r\n get trackedMessageId(): string {\r\n return this._props.trackedMessageId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCreated() {\r\n return this._props.status === MessageStatus.Created;\r\n }\r\n public get isFailed() {\r\n return this._props.status === MessageStatus.Failed;\r\n }\r\n public get isReceivedByRecipient() {\r\n return this._props.status === MessageStatus.ReceivedByRecipient;\r\n }\r\n public get isSentToProvider() {\r\n return this._props.status === MessageStatus.SentToProvider;\r\n }\r\n public get isSentToRecipient() {\r\n return this._props.status === MessageStatus.SentToRecipient;\r\n }\r\n\r\n public isAnyStatus(...messageStatus: MessageStatus[]) {\r\n return messageStatus.includes(this._props.status);\r\n }\r\n\r\n constructor(props: MessageStatusUpdateProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n status: this._props.status,\r\n error: this._props.error,\r\n vendorMessage: this._props.vendorMessage,\r\n metadataJson: this._props.metadataJson,\r\n trackedMessageId: this._props.trackedMessageId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllMessageStatusUpdateEntities = (state: AppState) =>\r\n state.entityStores.messageStatusUpdate.entities;\r\n\r\nexport const selectMessageStatusUpdateById = (id: string) => (state: AppState) =>\r\n state.entityStores.messageStatusUpdate.entities.get(id);\r\n\r\nexport const selectMessageStatusUpdateMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.messageStatusUpdate.meta.get(id);\r\n\r\nexport const selectMessageStatusUpdateAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectMessageStatusUpdateById(id),\r\n selectMessageStatusUpdateMetadataById(id),\r\n (messageStatusUpdate, meta) => ({ messageStatusUpdate, meta }),\r\n );\r\n\r\nexport function selectMessageStatusUpdateEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllMessageStatusUpdateEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, MessageStatusUpdateRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectMessageStatusUpdateEntitiesByStatus(status: MessageStatus) {\r\n return createSelector(selectAllMessageStatusUpdateEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMessageStatusUpdateEntitiesByError(error: string) {\r\n return createSelector(selectAllMessageStatusUpdateEntities, (entities) =>\r\n entities.filter((e) => e.error === error).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMessageStatusUpdateEntitiesByVendorMessage(vendorMessage: string) {\r\n return createSelector(selectAllMessageStatusUpdateEntities, (entities) =>\r\n entities.filter((e) => e.vendorMessage === vendorMessage).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMessageStatusUpdateEntitiesByMetadataJson(metadataJson: string) {\r\n return createSelector(selectAllMessageStatusUpdateEntities, (entities) =>\r\n entities.filter((e) => e.metadataJson === metadataJson).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMessageStatusUpdateEntitiesByTrackedMessageId(trackedMessageId: string) {\r\n return createSelector(selectAllMessageStatusUpdateEntities, (entities) =>\r\n entities.filter((e) => e.trackedMessageId === trackedMessageId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface NextDueTypeProps {\r\n id: string;\r\n name: string;\r\n dataType: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class NextDueTypeRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n dataType: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n dataType: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): NextDueTypeRecord {\r\n if (json == null) {\r\n throw new Error('NextDueTypeRecord.fromJS: parameter cannot be null');\r\n }\r\n return new NextDueTypeRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'NextDueTypeJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'NextDueTypeJson.name'),\r\n dataType: getFromOrThrow(json, (j) => j.dataType, 'NextDueTypeJson.dataType'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n dataType: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [NextDueTypeRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('NextDueTypeRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new NextDueTypeRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'NextDueTypeJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'NextDueTypeJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dataType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.dataType, 'NextDueTypeJson.dataType'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: NextDueTypeProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('NextDueTypeRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class NextDueTypeViewModelBase implements NextDueTypeProps {\r\n protected readonly _props: NextDueTypeProps;\r\n private _json?: NextDueTypeProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get dataType(): string {\r\n return this._props.dataType;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: NextDueTypeProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n dataType: this._props.dataType,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllNextDueTypeEntities = (state: AppState) =>\r\n state.entityStores.nextDueType.entities;\r\n\r\nexport const selectNextDueTypeById = (id: string) => (state: AppState) =>\r\n state.entityStores.nextDueType.entities.get(id);\r\n\r\nexport const selectNextDueTypeMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.nextDueType.meta.get(id);\r\n\r\nexport const selectNextDueTypeAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectNextDueTypeById(id),\r\n selectNextDueTypeMetadataById(id),\r\n (nextDueType, meta) => ({ nextDueType, meta }),\r\n );\r\n\r\nexport function selectNextDueTypeEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllNextDueTypeEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, NextDueTypeRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectNextDueTypeEntitiesByName(name: string) {\r\n return createSelector(selectAllNextDueTypeEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNextDueTypeEntitiesByDataType(dataType: string) {\r\n return createSelector(selectAllNextDueTypeEntities, (entities) =>\r\n entities.filter((e) => e.dataType === dataType).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface NonReferralReasonProps {\r\n id: string;\r\n name: string;\r\n associatedCancellationReasonId: string | null;\r\n associatedCancellationSecondaryReasonId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class NonReferralReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n associatedCancellationReasonId: null as any,\r\n associatedCancellationSecondaryReasonId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n associatedCancellationReasonId: string | null;\r\n associatedCancellationSecondaryReasonId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): NonReferralReasonRecord {\r\n if (json == null) {\r\n throw new Error('NonReferralReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new NonReferralReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'NonReferralReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'NonReferralReasonJson.name'),\r\n associatedCancellationReasonId: json.associatedCancellationReasonId,\r\n associatedCancellationSecondaryReasonId: json.associatedCancellationSecondaryReasonId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n associatedCancellationReasonId: string | null;\r\n associatedCancellationSecondaryReasonId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [NonReferralReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('NonReferralReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new NonReferralReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'NonReferralReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'NonReferralReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n associatedCancellationReasonId: tryOrDefault(\r\n () => json.associatedCancellationReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n associatedCancellationSecondaryReasonId: tryOrDefault(\r\n () => json.associatedCancellationSecondaryReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: NonReferralReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('NonReferralReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class NonReferralReasonViewModelBase implements NonReferralReasonProps {\r\n protected readonly _props: NonReferralReasonProps;\r\n private _json?: NonReferralReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get associatedCancellationReasonId(): string | null {\r\n return this._props.associatedCancellationReasonId;\r\n }\r\n get associatedCancellationSecondaryReasonId(): string | null {\r\n return this._props.associatedCancellationSecondaryReasonId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: NonReferralReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n associatedCancellationReasonId: this._props.associatedCancellationReasonId,\r\n associatedCancellationSecondaryReasonId:\r\n this._props.associatedCancellationSecondaryReasonId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllNonReferralReasonEntities = (state: AppState) =>\r\n state.entityStores.nonReferralReason.entities;\r\n\r\nexport const selectNonReferralReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.nonReferralReason.entities.get(id);\r\n\r\nexport const selectNonReferralReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.nonReferralReason.meta.get(id);\r\n\r\nexport const selectNonReferralReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectNonReferralReasonById(id),\r\n selectNonReferralReasonMetadataById(id),\r\n (nonReferralReason, meta) => ({ nonReferralReason, meta }),\r\n );\r\n\r\nexport function selectNonReferralReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllNonReferralReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, NonReferralReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectNonReferralReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllNonReferralReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNonReferralReasonEntitiesByAssociatedCancellationReasonId(\r\n associatedCancellationReasonId: string,\r\n) {\r\n return createSelector(selectAllNonReferralReasonEntities, (entities) =>\r\n entities\r\n .filter((e) => e.associatedCancellationReasonId === associatedCancellationReasonId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNonReferralReasonEntitiesByAssociatedCancellationSecondaryReasonId(\r\n associatedCancellationSecondaryReasonId: string,\r\n) {\r\n return createSelector(selectAllNonReferralReasonEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) =>\r\n e.associatedCancellationSecondaryReasonId === associatedCancellationSecondaryReasonId,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { EntityType, NotificationStatus } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface NotificationProps {\r\n id: string;\r\n cardId: string | null;\r\n status: NotificationStatus;\r\n subject: string | null;\r\n body: string;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class NotificationRecord extends Record({\r\n id: null as any,\r\n cardId: null as any,\r\n status: null as any,\r\n subject: null as any,\r\n body: null as any,\r\n sourceTemplateId: null as any,\r\n entityType: null as any,\r\n entityId: null as any,\r\n createdById: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n cardId: string | null;\r\n status: NotificationStatus;\r\n subject: string | null;\r\n body: string;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): NotificationRecord {\r\n if (json == null) {\r\n throw new Error('NotificationRecord.fromJS: parameter cannot be null');\r\n }\r\n return new NotificationRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'NotificationJson.id'),\r\n cardId: json.cardId,\r\n status: getFromOrThrow(json, (j) => j.status, 'NotificationJson.status'),\r\n subject: json.subject,\r\n body: getFromOrThrow(json, (j) => j.body, 'NotificationJson.body'),\r\n sourceTemplateId: json.sourceTemplateId,\r\n entityType: json.entityType,\r\n entityId: json.entityId,\r\n createdById: json.createdById,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'NotificationJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n cardId: string | null;\r\n status: NotificationStatus;\r\n subject: string | null;\r\n body: string;\r\n sourceTemplateId: string | null;\r\n entityType: EntityType | null;\r\n entityId: string | null;\r\n createdById: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [NotificationRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('NotificationRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new NotificationRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'NotificationJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cardId: tryOrDefault(\r\n () => json.cardId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'NotificationJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n subject: tryOrDefault(\r\n () => json.subject,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n body: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.body, 'NotificationJson.body'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n sourceTemplateId: tryOrDefault(\r\n () => json.sourceTemplateId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityType: tryOrDefault(\r\n () => json.entityType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityId: tryOrDefault(\r\n () => json.entityId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n createdById: tryOrDefault(\r\n () => json.createdById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'NotificationJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: NotificationProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('NotificationRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class NotificationViewModelBase implements NotificationProps {\r\n protected readonly _props: NotificationProps;\r\n private _json?: NotificationProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get cardId(): string | null {\r\n return this._props.cardId;\r\n }\r\n get status(): NotificationStatus {\r\n return this._props.status;\r\n }\r\n get subject(): string | null {\r\n return this._props.subject;\r\n }\r\n get body(): string {\r\n return this._props.body;\r\n }\r\n get sourceTemplateId(): string | null {\r\n return this._props.sourceTemplateId;\r\n }\r\n get entityType(): EntityType | null {\r\n return this._props.entityType;\r\n }\r\n get entityId(): string | null {\r\n return this._props.entityId;\r\n }\r\n get createdById(): string | null {\r\n return this._props.createdById;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAwaitingApproval() {\r\n return this._props.status === NotificationStatus.AwaitingApproval;\r\n }\r\n public get isCancelled() {\r\n return this._props.status === NotificationStatus.Cancelled;\r\n }\r\n public get isDraft() {\r\n return this._props.status === NotificationStatus.Draft;\r\n }\r\n public get isFailed() {\r\n return this._props.status === NotificationStatus.Failed;\r\n }\r\n public get isPartiallyFailed() {\r\n return this._props.status === NotificationStatus.PartiallyFailed;\r\n }\r\n public get isSending() {\r\n return this._props.status === NotificationStatus.Sending;\r\n }\r\n public get isSent() {\r\n return this._props.status === NotificationStatus.Sent;\r\n }\r\n public get isAirport() {\r\n return this._props.entityType === EntityType.Airport;\r\n }\r\n public get isBase() {\r\n return this._props.entityType === EntityType.Base;\r\n }\r\n public get isCard() {\r\n return this._props.entityType === EntityType.Card;\r\n }\r\n public get isCommunicationCenter() {\r\n return this._props.entityType === EntityType.CommunicationCenter;\r\n }\r\n public get isCompany() {\r\n return this._props.entityType === EntityType.Company;\r\n }\r\n public get isControlZone() {\r\n return this._props.entityType === EntityType.ControlZone;\r\n }\r\n public get isLocation() {\r\n return this._props.entityType === EntityType.Location;\r\n }\r\n public get isMedicalFacility() {\r\n return this._props.entityType === EntityType.MedicalFacility;\r\n }\r\n public get isOutOfServiceEvent() {\r\n return this._props.entityType === EntityType.OutOfServiceEvent;\r\n }\r\n public get isPerson() {\r\n return this._props.entityType === EntityType.Person;\r\n }\r\n public get isProgram() {\r\n return this._props.entityType === EntityType.Program;\r\n }\r\n public get isRegion() {\r\n return this._props.entityType === EntityType.Region;\r\n }\r\n public get isTimer() {\r\n return this._props.entityType === EntityType.Timer;\r\n }\r\n public get isUnit() {\r\n return this._props.entityType === EntityType.Unit;\r\n }\r\n public get isUnspecified() {\r\n return this._props.entityType === EntityType.Unspecified;\r\n }\r\n public get isVehicle() {\r\n return this._props.entityType === EntityType.Vehicle;\r\n }\r\n\r\n public isAnyStatus(...notificationStatus: NotificationStatus[]) {\r\n return notificationStatus.includes(this._props.status);\r\n }\r\n public isAnyEntityType(...entityType: EntityType[]) {\r\n return this._props.entityType != null && entityType.includes(this._props.entityType);\r\n }\r\n\r\n constructor(props: NotificationProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n cardId: this._props.cardId,\r\n status: this._props.status,\r\n subject: this._props.subject,\r\n body: this._props.body,\r\n sourceTemplateId: this._props.sourceTemplateId,\r\n entityType: this._props.entityType,\r\n entityId: this._props.entityId,\r\n createdById: this._props.createdById,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllNotificationEntities = (state: AppState) =>\r\n state.entityStores.notification.entities;\r\n\r\nexport const selectNotificationById = (id: string) => (state: AppState) =>\r\n state.entityStores.notification.entities.get(id);\r\n\r\nexport const selectNotificationMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.notification.meta.get(id);\r\n\r\nexport const selectNotificationAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectNotificationById(id),\r\n selectNotificationMetadataById(id),\r\n (notification, meta) => ({ notification, meta }),\r\n );\r\n\r\nexport function selectNotificationEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllNotificationEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, NotificationRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectNotificationEntitiesByCardId(cardId: string) {\r\n return createSelector(selectAllNotificationEntities, (entities) =>\r\n entities.filter((e) => e.cardId === cardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationEntitiesByStatus(status: NotificationStatus) {\r\n return createSelector(selectAllNotificationEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationEntitiesBySubject(subject: string) {\r\n return createSelector(selectAllNotificationEntities, (entities) =>\r\n entities.filter((e) => e.subject === subject).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationEntitiesByBody(body: string) {\r\n return createSelector(selectAllNotificationEntities, (entities) =>\r\n entities.filter((e) => e.body === body).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationEntitiesBySourceTemplateId(sourceTemplateId: string) {\r\n return createSelector(selectAllNotificationEntities, (entities) =>\r\n entities.filter((e) => e.sourceTemplateId === sourceTemplateId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationEntitiesByEntityType(entityType: EntityType) {\r\n return createSelector(selectAllNotificationEntities, (entities) =>\r\n entities.filter((e) => e.entityType === entityType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationEntitiesByEntityId(entityId: string) {\r\n return createSelector(selectAllNotificationEntities, (entities) =>\r\n entities.filter((e) => e.entityId === entityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationEntitiesByCreatedById(createdById: string) {\r\n return createSelector(selectAllNotificationEntities, (entities) =>\r\n entities.filter((e) => e.createdById === createdById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllNotificationEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { NotificationGroupType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface NotificationGroupProps {\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n unitId: string | null;\r\n regionId: string | null;\r\n type: NotificationGroupType | null;\r\n types: Set | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class NotificationGroupRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n companyId: null as any,\r\n unitId: null as any,\r\n regionId: null as any,\r\n type: null as any,\r\n types: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n unitId: string | null;\r\n regionId: string | null;\r\n type: NotificationGroupType | null;\r\n types: any;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): NotificationGroupRecord {\r\n if (json == null) {\r\n throw new Error('NotificationGroupRecord.fromJS: parameter cannot be null');\r\n }\r\n return new NotificationGroupRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'NotificationGroupJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'NotificationGroupJson.name'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'NotificationGroupJson.companyId'),\r\n unitId: json.unitId,\r\n regionId: json.regionId,\r\n type: json.type,\r\n types: json.types != null ? Set(json.types) : null,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n unitId: string | null;\r\n regionId: string | null;\r\n type: NotificationGroupType | null;\r\n types: any;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [NotificationGroupRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('NotificationGroupRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new NotificationGroupRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'NotificationGroupJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'NotificationGroupJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'NotificationGroupJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => json.unitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => json.regionId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => json.type,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n types: tryOrDefault(\r\n () => (json.types != null ? Set(json.types) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: NotificationGroupProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('NotificationGroupRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class NotificationGroupViewModelBase implements NotificationGroupProps {\r\n protected readonly _props: NotificationGroupProps;\r\n private _json?: NotificationGroupProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n get unitId(): string | null {\r\n return this._props.unitId;\r\n }\r\n get regionId(): string | null {\r\n return this._props.regionId;\r\n }\r\n get type(): NotificationGroupType | null {\r\n return this._props.type;\r\n }\r\n get types(): Set | null {\r\n return this._props.types;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAviationGroup() {\r\n return this._props.type === NotificationGroupType.AviationGroup;\r\n }\r\n public get isClinicalGroup() {\r\n return this._props.type === NotificationGroupType.ClinicalGroup;\r\n }\r\n public get isMaintenanceController() {\r\n return this._props.type === NotificationGroupType.MaintenanceController;\r\n }\r\n public get isOccGroup() {\r\n return this._props.type === NotificationGroupType.OccGroup;\r\n }\r\n public get isOnlyCrew() {\r\n return this._props.type === NotificationGroupType.OnlyCrew;\r\n }\r\n public get isOnlyPilots() {\r\n return this._props.type === NotificationGroupType.OnlyPilots;\r\n }\r\n public get isOperationsGroup() {\r\n return this._props.type === NotificationGroupType.OperationsGroup;\r\n }\r\n public get isSpecialityGroup() {\r\n return this._props.type === NotificationGroupType.SpecialityGroup;\r\n }\r\n\r\n public isAnyType(...notificationGroupType: NotificationGroupType[]) {\r\n return this._props.type != null && notificationGroupType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: NotificationGroupProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n companyId: this._props.companyId,\r\n unitId: this._props.unitId,\r\n regionId: this._props.regionId,\r\n type: this._props.type,\r\n types: this._props.types,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllNotificationGroupEntities = (state: AppState) =>\r\n state.entityStores.notificationGroup.entities;\r\n\r\nexport const selectNotificationGroupById = (id: string) => (state: AppState) =>\r\n state.entityStores.notificationGroup.entities.get(id);\r\n\r\nexport const selectNotificationGroupMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.notificationGroup.meta.get(id);\r\n\r\nexport const selectNotificationGroupAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectNotificationGroupById(id),\r\n selectNotificationGroupMetadataById(id),\r\n (notificationGroup, meta) => ({ notificationGroup, meta }),\r\n );\r\n\r\nexport function selectNotificationGroupEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllNotificationGroupEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, NotificationGroupRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectNotificationGroupEntitiesByName(name: string) {\r\n return createSelector(selectAllNotificationGroupEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationGroupEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllNotificationGroupEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationGroupEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllNotificationGroupEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationGroupEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllNotificationGroupEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationGroupEntitiesByType(type: NotificationGroupType) {\r\n return createSelector(selectAllNotificationGroupEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface NotificationGroupMemberProps {\r\n id: string;\r\n name: string;\r\n userId: string | null;\r\n notificationAddress: string | null;\r\n notificationGroupId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class NotificationGroupMemberRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n userId: null as any,\r\n notificationAddress: null as any,\r\n notificationGroupId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n userId: string | null;\r\n notificationAddress: string | null;\r\n notificationGroupId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): NotificationGroupMemberRecord {\r\n if (json == null) {\r\n throw new Error('NotificationGroupMemberRecord.fromJS: parameter cannot be null');\r\n }\r\n return new NotificationGroupMemberRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'NotificationGroupMemberJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'NotificationGroupMemberJson.name'),\r\n userId: json.userId,\r\n notificationAddress: json.notificationAddress,\r\n notificationGroupId: getFromOrThrow(\r\n json,\r\n (j) => j.notificationGroupId,\r\n 'NotificationGroupMemberJson.notificationGroupId',\r\n ),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'NotificationGroupMemberJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n userId: string | null;\r\n notificationAddress: string | null;\r\n notificationGroupId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [NotificationGroupMemberRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('NotificationGroupMemberRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new NotificationGroupMemberRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'NotificationGroupMemberJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'NotificationGroupMemberJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n userId: tryOrDefault(\r\n () => json.userId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notificationAddress: tryOrDefault(\r\n () => json.notificationAddress,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notificationGroupId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.notificationGroupId,\r\n 'NotificationGroupMemberJson.notificationGroupId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'NotificationGroupMemberJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: NotificationGroupMemberProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('NotificationGroupMemberRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class NotificationGroupMemberViewModelBase implements NotificationGroupMemberProps {\r\n protected readonly _props: NotificationGroupMemberProps;\r\n private _json?: NotificationGroupMemberProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get userId(): string | null {\r\n return this._props.userId;\r\n }\r\n get notificationAddress(): string | null {\r\n return this._props.notificationAddress;\r\n }\r\n get notificationGroupId(): string {\r\n return this._props.notificationGroupId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: NotificationGroupMemberProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n userId: this._props.userId,\r\n notificationAddress: this._props.notificationAddress,\r\n notificationGroupId: this._props.notificationGroupId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllNotificationGroupMemberEntities = (state: AppState) =>\r\n state.entityStores.notificationGroupMember.entities;\r\n\r\nexport const selectNotificationGroupMemberById = (id: string) => (state: AppState) =>\r\n state.entityStores.notificationGroupMember.entities.get(id);\r\n\r\nexport const selectNotificationGroupMemberMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.notificationGroupMember.meta.get(id);\r\n\r\nexport const selectNotificationGroupMemberAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectNotificationGroupMemberById(id),\r\n selectNotificationGroupMemberMetadataById(id),\r\n (notificationGroupMember, meta) => ({ notificationGroupMember, meta }),\r\n );\r\n\r\nexport function selectNotificationGroupMemberEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllNotificationGroupMemberEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, NotificationGroupMemberRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectNotificationGroupMemberEntitiesByName(name: string) {\r\n return createSelector(selectAllNotificationGroupMemberEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationGroupMemberEntitiesByUserId(userId: string) {\r\n return createSelector(selectAllNotificationGroupMemberEntities, (entities) =>\r\n entities.filter((e) => e.userId === userId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationGroupMemberEntitiesByNotificationAddress(\r\n notificationAddress: string,\r\n) {\r\n return createSelector(selectAllNotificationGroupMemberEntities, (entities) =>\r\n entities.filter((e) => e.notificationAddress === notificationAddress).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationGroupMemberEntitiesByNotificationGroupId(\r\n notificationGroupId: string,\r\n) {\r\n return createSelector(selectAllNotificationGroupMemberEntities, (entities) =>\r\n entities.filter((e) => e.notificationGroupId === notificationGroupId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationGroupMemberEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllNotificationGroupMemberEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { MessageStatus } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface NotificationRecipientProps {\r\n id: string;\r\n name: string | null;\r\n notificationAddress: string | null;\r\n userId: string | null;\r\n messageId: string | null;\r\n messageStatus: MessageStatus | null;\r\n notificationId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class NotificationRecipientRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n notificationAddress: null as any,\r\n userId: null as any,\r\n messageId: null as any,\r\n messageStatus: null as any,\r\n notificationId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string | null;\r\n notificationAddress: string | null;\r\n userId: string | null;\r\n messageId: string | null;\r\n messageStatus: MessageStatus | null;\r\n notificationId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): NotificationRecipientRecord {\r\n if (json == null) {\r\n throw new Error('NotificationRecipientRecord.fromJS: parameter cannot be null');\r\n }\r\n return new NotificationRecipientRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'NotificationRecipientJson.id'),\r\n name: json.name,\r\n notificationAddress: json.notificationAddress,\r\n userId: json.userId,\r\n messageId: json.messageId,\r\n messageStatus: json.messageStatus,\r\n notificationId: getFromOrThrow(\r\n json,\r\n (j) => j.notificationId,\r\n 'NotificationRecipientJson.notificationId',\r\n ),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'NotificationRecipientJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string | null;\r\n notificationAddress: string | null;\r\n userId: string | null;\r\n messageId: string | null;\r\n messageStatus: MessageStatus | null;\r\n notificationId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [NotificationRecipientRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('NotificationRecipientRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new NotificationRecipientRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'NotificationRecipientJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => json.name,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notificationAddress: tryOrDefault(\r\n () => json.notificationAddress,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n userId: tryOrDefault(\r\n () => json.userId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n messageId: tryOrDefault(\r\n () => json.messageId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n messageStatus: tryOrDefault(\r\n () => json.messageStatus,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notificationId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.notificationId, 'NotificationRecipientJson.notificationId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'NotificationRecipientJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: NotificationRecipientProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('NotificationRecipientRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class NotificationRecipientViewModelBase implements NotificationRecipientProps {\r\n protected readonly _props: NotificationRecipientProps;\r\n private _json?: NotificationRecipientProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string | null {\r\n return this._props.name;\r\n }\r\n get notificationAddress(): string | null {\r\n return this._props.notificationAddress;\r\n }\r\n get userId(): string | null {\r\n return this._props.userId;\r\n }\r\n get messageId(): string | null {\r\n return this._props.messageId;\r\n }\r\n get messageStatus(): MessageStatus | null {\r\n return this._props.messageStatus;\r\n }\r\n get notificationId(): string {\r\n return this._props.notificationId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCreated() {\r\n return this._props.messageStatus === MessageStatus.Created;\r\n }\r\n public get isFailed() {\r\n return this._props.messageStatus === MessageStatus.Failed;\r\n }\r\n public get isReceivedByRecipient() {\r\n return this._props.messageStatus === MessageStatus.ReceivedByRecipient;\r\n }\r\n public get isSentToProvider() {\r\n return this._props.messageStatus === MessageStatus.SentToProvider;\r\n }\r\n public get isSentToRecipient() {\r\n return this._props.messageStatus === MessageStatus.SentToRecipient;\r\n }\r\n\r\n public isAnyMessageStatus(...messageStatus: MessageStatus[]) {\r\n return this._props.messageStatus != null && messageStatus.includes(this._props.messageStatus);\r\n }\r\n\r\n constructor(props: NotificationRecipientProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n notificationAddress: this._props.notificationAddress,\r\n userId: this._props.userId,\r\n messageId: this._props.messageId,\r\n messageStatus: this._props.messageStatus,\r\n notificationId: this._props.notificationId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllNotificationRecipientEntities = (state: AppState) =>\r\n state.entityStores.notificationRecipient.entities;\r\n\r\nexport const selectNotificationRecipientById = (id: string) => (state: AppState) =>\r\n state.entityStores.notificationRecipient.entities.get(id);\r\n\r\nexport const selectNotificationRecipientMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.notificationRecipient.meta.get(id);\r\n\r\nexport const selectNotificationRecipientAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectNotificationRecipientById(id),\r\n selectNotificationRecipientMetadataById(id),\r\n (notificationRecipient, meta) => ({ notificationRecipient, meta }),\r\n );\r\n\r\nexport function selectNotificationRecipientEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllNotificationRecipientEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, NotificationRecipientRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectNotificationRecipientEntitiesByName(name: string) {\r\n return createSelector(selectAllNotificationRecipientEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationRecipientEntitiesByNotificationAddress(\r\n notificationAddress: string,\r\n) {\r\n return createSelector(selectAllNotificationRecipientEntities, (entities) =>\r\n entities.filter((e) => e.notificationAddress === notificationAddress).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationRecipientEntitiesByUserId(userId: string) {\r\n return createSelector(selectAllNotificationRecipientEntities, (entities) =>\r\n entities.filter((e) => e.userId === userId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationRecipientEntitiesByMessageId(messageId: string) {\r\n return createSelector(selectAllNotificationRecipientEntities, (entities) =>\r\n entities.filter((e) => e.messageId === messageId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationRecipientEntitiesByMessageStatus(messageStatus: MessageStatus) {\r\n return createSelector(selectAllNotificationRecipientEntities, (entities) =>\r\n entities.filter((e) => e.messageStatus === messageStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationRecipientEntitiesByNotificationId(notificationId: string) {\r\n return createSelector(selectAllNotificationRecipientEntities, (entities) =>\r\n entities.filter((e) => e.notificationId === notificationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationRecipientEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllNotificationRecipientEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface NotificationSubscriptionProps {\r\n id: string;\r\n name: string;\r\n unitId: string;\r\n notificationGroupId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class NotificationSubscriptionRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n unitId: null as any,\r\n notificationGroupId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n unitId: string;\r\n notificationGroupId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): NotificationSubscriptionRecord {\r\n if (json == null) {\r\n throw new Error('NotificationSubscriptionRecord.fromJS: parameter cannot be null');\r\n }\r\n return new NotificationSubscriptionRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'NotificationSubscriptionJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'NotificationSubscriptionJson.name'),\r\n unitId: getFromOrThrow(json, (j) => j.unitId, 'NotificationSubscriptionJson.unitId'),\r\n notificationGroupId: getFromOrThrow(\r\n json,\r\n (j) => j.notificationGroupId,\r\n 'NotificationSubscriptionJson.notificationGroupId',\r\n ),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'NotificationSubscriptionJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n unitId: string;\r\n notificationGroupId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [NotificationSubscriptionRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('NotificationSubscriptionRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new NotificationSubscriptionRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'NotificationSubscriptionJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'NotificationSubscriptionJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitId, 'NotificationSubscriptionJson.unitId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notificationGroupId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.notificationGroupId,\r\n 'NotificationSubscriptionJson.notificationGroupId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'NotificationSubscriptionJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: NotificationSubscriptionProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('NotificationSubscriptionRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class NotificationSubscriptionViewModelBase\r\n implements NotificationSubscriptionProps\r\n{\r\n protected readonly _props: NotificationSubscriptionProps;\r\n private _json?: NotificationSubscriptionProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get unitId(): string {\r\n return this._props.unitId;\r\n }\r\n get notificationGroupId(): string {\r\n return this._props.notificationGroupId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: NotificationSubscriptionProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n unitId: this._props.unitId,\r\n notificationGroupId: this._props.notificationGroupId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllNotificationSubscriptionEntities = (state: AppState) =>\r\n state.entityStores.notificationSubscription.entities;\r\n\r\nexport const selectNotificationSubscriptionById = (id: string) => (state: AppState) =>\r\n state.entityStores.notificationSubscription.entities.get(id);\r\n\r\nexport const selectNotificationSubscriptionMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.notificationSubscription.meta.get(id);\r\n\r\nexport const selectNotificationSubscriptionAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectNotificationSubscriptionById(id),\r\n selectNotificationSubscriptionMetadataById(id),\r\n (notificationSubscription, meta) => ({ notificationSubscription, meta }),\r\n );\r\n\r\nexport function selectNotificationSubscriptionEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllNotificationSubscriptionEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, NotificationSubscriptionRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectNotificationSubscriptionEntitiesByName(name: string) {\r\n return createSelector(selectAllNotificationSubscriptionEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationSubscriptionEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllNotificationSubscriptionEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationSubscriptionEntitiesByNotificationGroupId(\r\n notificationGroupId: string,\r\n) {\r\n return createSelector(selectAllNotificationSubscriptionEntities, (entities) =>\r\n entities.filter((e) => e.notificationGroupId === notificationGroupId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationSubscriptionEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllNotificationSubscriptionEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n EntityType,\r\n NotificationGroupType,\r\n NotificationRecipientType,\r\n NotificationTriggerType,\r\n NotificationType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface NotificationTemplateProps {\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n triggerType: NotificationTriggerType | null;\r\n triggerValue: string | null;\r\n activationRuleId: string | null;\r\n recipientTypes: Set | null;\r\n contextType: EntityType;\r\n subjectTemplate: string | null;\r\n bodyTemplate: string;\r\n requiresApproval: boolean | null;\r\n groupTypes: Set | null;\r\n canBeManualTrigger: boolean;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class NotificationTemplateRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n companyId: null as any,\r\n triggerType: null as any,\r\n triggerValue: null as any,\r\n activationRuleId: null as any,\r\n recipientTypes: null as any,\r\n contextType: null as any,\r\n subjectTemplate: null as any,\r\n bodyTemplate: null as any,\r\n requiresApproval: null as any,\r\n groupTypes: null as any,\r\n canBeManualTrigger: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n triggerType: NotificationTriggerType | null;\r\n triggerValue: string | null;\r\n activationRuleId: string | null;\r\n recipientTypes: any;\r\n contextType: EntityType;\r\n subjectTemplate: string | null;\r\n bodyTemplate: string;\r\n requiresApproval: boolean | null;\r\n groupTypes: any;\r\n canBeManualTrigger: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): NotificationTemplateRecord {\r\n if (json == null) {\r\n throw new Error('NotificationTemplateRecord.fromJS: parameter cannot be null');\r\n }\r\n return new NotificationTemplateRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'NotificationTemplateJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'NotificationTemplateJson.name'),\r\n companyId: json.companyId,\r\n triggerType: json.triggerType,\r\n triggerValue: json.triggerValue,\r\n activationRuleId: json.activationRuleId,\r\n recipientTypes:\r\n json.recipientTypes != null ? Set(json.recipientTypes) : null,\r\n contextType: getFromOrThrow(\r\n json,\r\n (j) => j.contextType,\r\n 'NotificationTemplateJson.contextType',\r\n ),\r\n subjectTemplate: json.subjectTemplate,\r\n bodyTemplate: getFromOrThrow(\r\n json,\r\n (j) => j.bodyTemplate,\r\n 'NotificationTemplateJson.bodyTemplate',\r\n ),\r\n requiresApproval: json.requiresApproval,\r\n groupTypes: json.groupTypes != null ? Set(json.groupTypes) : null,\r\n canBeManualTrigger: getFromOrThrow(\r\n json,\r\n (j) => j.canBeManualTrigger,\r\n 'NotificationTemplateJson.canBeManualTrigger',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n triggerType: NotificationTriggerType | null;\r\n triggerValue: string | null;\r\n activationRuleId: string | null;\r\n recipientTypes: any;\r\n contextType: EntityType;\r\n subjectTemplate: string | null;\r\n bodyTemplate: string;\r\n requiresApproval: boolean | null;\r\n groupTypes: any;\r\n canBeManualTrigger: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [NotificationTemplateRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('NotificationTemplateRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new NotificationTemplateRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'NotificationTemplateJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'NotificationTemplateJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => json.companyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n triggerType: tryOrDefault(\r\n () => json.triggerType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n triggerValue: tryOrDefault(\r\n () => json.triggerValue,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n activationRuleId: tryOrDefault(\r\n () => json.activationRuleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n recipientTypes: tryOrDefault(\r\n () =>\r\n json.recipientTypes != null ? Set(json.recipientTypes) : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n contextType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.contextType, 'NotificationTemplateJson.contextType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n subjectTemplate: tryOrDefault(\r\n () => json.subjectTemplate,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n bodyTemplate: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.bodyTemplate, 'NotificationTemplateJson.bodyTemplate'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requiresApproval: tryOrDefault(\r\n () => json.requiresApproval,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n groupTypes: tryOrDefault(\r\n () => (json.groupTypes != null ? Set(json.groupTypes) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n canBeManualTrigger: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.canBeManualTrigger,\r\n 'NotificationTemplateJson.canBeManualTrigger',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: NotificationTemplateProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('NotificationTemplateRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class NotificationTemplateViewModelBase implements NotificationTemplateProps {\r\n protected readonly _props: NotificationTemplateProps;\r\n private _json?: NotificationTemplateProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get companyId(): string | null {\r\n return this._props.companyId;\r\n }\r\n get triggerType(): NotificationTriggerType | null {\r\n return this._props.triggerType;\r\n }\r\n get triggerValue(): string | null {\r\n return this._props.triggerValue;\r\n }\r\n get activationRuleId(): string | null {\r\n return this._props.activationRuleId;\r\n }\r\n get recipientTypes(): Set | null {\r\n return this._props.recipientTypes;\r\n }\r\n get contextType(): EntityType {\r\n return this._props.contextType;\r\n }\r\n get subjectTemplate(): string | null {\r\n return this._props.subjectTemplate;\r\n }\r\n get bodyTemplate(): string {\r\n return this._props.bodyTemplate;\r\n }\r\n get requiresApproval(): boolean | null {\r\n return this._props.requiresApproval;\r\n }\r\n get groupTypes(): Set | null {\r\n return this._props.groupTypes;\r\n }\r\n get canBeManualTrigger(): boolean {\r\n return this._props.canBeManualTrigger;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isActivity() {\r\n return this._props.triggerType === NotificationTriggerType.Activity;\r\n }\r\n public get isManual() {\r\n return this._props.triggerType === NotificationTriggerType.Manual;\r\n }\r\n public get isAirport() {\r\n return this._props.contextType === EntityType.Airport;\r\n }\r\n public get isBase() {\r\n return this._props.contextType === EntityType.Base;\r\n }\r\n public get isCard() {\r\n return this._props.contextType === EntityType.Card;\r\n }\r\n public get isCommunicationCenter() {\r\n return this._props.contextType === EntityType.CommunicationCenter;\r\n }\r\n public get isCompany() {\r\n return this._props.contextType === EntityType.Company;\r\n }\r\n public get isControlZone() {\r\n return this._props.contextType === EntityType.ControlZone;\r\n }\r\n public get isLocation() {\r\n return this._props.contextType === EntityType.Location;\r\n }\r\n public get isMedicalFacility() {\r\n return this._props.contextType === EntityType.MedicalFacility;\r\n }\r\n public get isOutOfServiceEvent() {\r\n return this._props.contextType === EntityType.OutOfServiceEvent;\r\n }\r\n public get isPerson() {\r\n return this._props.contextType === EntityType.Person;\r\n }\r\n public get isProgram() {\r\n return this._props.contextType === EntityType.Program;\r\n }\r\n public get isRegion() {\r\n return this._props.contextType === EntityType.Region;\r\n }\r\n public get isTimer() {\r\n return this._props.contextType === EntityType.Timer;\r\n }\r\n public get isUnit() {\r\n return this._props.contextType === EntityType.Unit;\r\n }\r\n public get isUnspecified() {\r\n return this._props.contextType === EntityType.Unspecified;\r\n }\r\n public get isVehicle() {\r\n return this._props.contextType === EntityType.Vehicle;\r\n }\r\n\r\n public isAnyTriggerType(...notificationTriggerType: NotificationTriggerType[]) {\r\n return (\r\n this._props.triggerType != null && notificationTriggerType.includes(this._props.triggerType)\r\n );\r\n }\r\n public isAnyContextType(...entityType: EntityType[]) {\r\n return entityType.includes(this._props.contextType);\r\n }\r\n\r\n constructor(props: NotificationTemplateProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n companyId: this._props.companyId,\r\n triggerType: this._props.triggerType,\r\n triggerValue: this._props.triggerValue,\r\n activationRuleId: this._props.activationRuleId,\r\n recipientTypes: this._props.recipientTypes,\r\n contextType: this._props.contextType,\r\n subjectTemplate: this._props.subjectTemplate,\r\n bodyTemplate: this._props.bodyTemplate,\r\n requiresApproval: this._props.requiresApproval,\r\n groupTypes: this._props.groupTypes,\r\n canBeManualTrigger: this._props.canBeManualTrigger,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllNotificationTemplateEntities = (state: AppState) =>\r\n state.entityStores.notificationTemplate.entities;\r\n\r\nexport const selectNotificationTemplateById = (id: string) => (state: AppState) =>\r\n state.entityStores.notificationTemplate.entities.get(id);\r\n\r\nexport const selectNotificationTemplateMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.notificationTemplate.meta.get(id);\r\n\r\nexport const selectNotificationTemplateAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectNotificationTemplateById(id),\r\n selectNotificationTemplateMetadataById(id),\r\n (notificationTemplate, meta) => ({ notificationTemplate, meta }),\r\n );\r\n\r\nexport function selectNotificationTemplateEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllNotificationTemplateEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, NotificationTemplateRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectNotificationTemplateEntitiesByName(name: string) {\r\n return createSelector(selectAllNotificationTemplateEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationTemplateEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllNotificationTemplateEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationTemplateEntitiesByTriggerType(\r\n triggerType: NotificationTriggerType,\r\n) {\r\n return createSelector(selectAllNotificationTemplateEntities, (entities) =>\r\n entities.filter((e) => e.triggerType === triggerType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationTemplateEntitiesByTriggerValue(triggerValue: string) {\r\n return createSelector(selectAllNotificationTemplateEntities, (entities) =>\r\n entities.filter((e) => e.triggerValue === triggerValue).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationTemplateEntitiesByActivationRuleId(activationRuleId: string) {\r\n return createSelector(selectAllNotificationTemplateEntities, (entities) =>\r\n entities.filter((e) => e.activationRuleId === activationRuleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationTemplateEntitiesByContextType(contextType: EntityType) {\r\n return createSelector(selectAllNotificationTemplateEntities, (entities) =>\r\n entities.filter((e) => e.contextType === contextType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationTemplateEntitiesBySubjectTemplate(subjectTemplate: string) {\r\n return createSelector(selectAllNotificationTemplateEntities, (entities) =>\r\n entities.filter((e) => e.subjectTemplate === subjectTemplate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationTemplateEntitiesByBodyTemplate(bodyTemplate: string) {\r\n return createSelector(selectAllNotificationTemplateEntities, (entities) =>\r\n entities.filter((e) => e.bodyTemplate === bodyTemplate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationTemplateEntitiesByRequiresApproval(requiresApproval: boolean) {\r\n return createSelector(selectAllNotificationTemplateEntities, (entities) =>\r\n entities.filter((e) => e.requiresApproval === requiresApproval).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectNotificationTemplateEntitiesByCanBeManualTrigger(\r\n canBeManualTrigger: boolean,\r\n) {\r\n return createSelector(selectAllNotificationTemplateEntities, (entities) =>\r\n entities.filter((e) => e.canBeManualTrigger === canBeManualTrigger).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { OemActivityType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface OemActivityProps {\r\n id: string;\r\n oemPlanId: string;\r\n time: Date | null;\r\n authorId: string | null;\r\n content: string | null;\r\n activityType: OemActivityType;\r\n priorStatus: string | null;\r\n currentStatus: string | null;\r\n oemPlanChangeRequestId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class OemActivityRecord extends Record({\r\n id: null as any,\r\n oemPlanId: null as any,\r\n time: null as any,\r\n authorId: null as any,\r\n content: null as any,\r\n activityType: null as any,\r\n priorStatus: null as any,\r\n currentStatus: null as any,\r\n oemPlanChangeRequestId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n oemPlanId: string;\r\n time: string | number | Date | null;\r\n authorId: string | null;\r\n content: string | null;\r\n activityType: OemActivityType;\r\n priorStatus: string | null;\r\n currentStatus: string | null;\r\n oemPlanChangeRequestId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): OemActivityRecord {\r\n if (json == null) {\r\n throw new Error('OemActivityRecord.fromJS: parameter cannot be null');\r\n }\r\n return new OemActivityRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'OemActivityJson.id'),\r\n oemPlanId: getFromOrThrow(json, (j) => j.oemPlanId, 'OemActivityJson.oemPlanId'),\r\n time: json.time != null ? new Date(json.time) : null,\r\n authorId: json.authorId,\r\n content: json.content,\r\n activityType: getFromOrThrow(json, (j) => j.activityType, 'OemActivityJson.activityType'),\r\n priorStatus: json.priorStatus,\r\n currentStatus: json.currentStatus,\r\n oemPlanChangeRequestId: json.oemPlanChangeRequestId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n oemPlanId: string;\r\n time: string | number | Date | null;\r\n authorId: string | null;\r\n content: string | null;\r\n activityType: OemActivityType;\r\n priorStatus: string | null;\r\n currentStatus: string | null;\r\n oemPlanChangeRequestId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [OemActivityRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('OemActivityRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new OemActivityRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'OemActivityJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n oemPlanId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.oemPlanId, 'OemActivityJson.oemPlanId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n time: tryOrDefault(\r\n () => (json.time != null ? new Date(json.time) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n authorId: tryOrDefault(\r\n () => json.authorId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n content: tryOrDefault(\r\n () => json.content,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n activityType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.activityType, 'OemActivityJson.activityType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n priorStatus: tryOrDefault(\r\n () => json.priorStatus,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentStatus: tryOrDefault(\r\n () => json.currentStatus,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n oemPlanChangeRequestId: tryOrDefault(\r\n () => json.oemPlanChangeRequestId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: OemActivityProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('OemActivityRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class OemActivityViewModelBase implements OemActivityProps {\r\n protected readonly _props: OemActivityProps;\r\n private _json?: OemActivityProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get oemPlanId(): string {\r\n return this._props.oemPlanId;\r\n }\r\n get time(): Date | null {\r\n return this._props.time;\r\n }\r\n get authorId(): string | null {\r\n return this._props.authorId;\r\n }\r\n get content(): string | null {\r\n return this._props.content;\r\n }\r\n get activityType(): OemActivityType {\r\n return this._props.activityType;\r\n }\r\n get priorStatus(): string | null {\r\n return this._props.priorStatus;\r\n }\r\n get currentStatus(): string | null {\r\n return this._props.currentStatus;\r\n }\r\n get oemPlanChangeRequestId(): string | null {\r\n return this._props.oemPlanChangeRequestId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAssetChangeNote() {\r\n return this._props.activityType === OemActivityType.AssetChangeNote;\r\n }\r\n public get isPlanChangeNote() {\r\n return this._props.activityType === OemActivityType.PlanChangeNote;\r\n }\r\n public get isUserNote() {\r\n return this._props.activityType === OemActivityType.UserNote;\r\n }\r\n\r\n public isAnyActivityType(...oemActivityType: OemActivityType[]) {\r\n return oemActivityType.includes(this._props.activityType);\r\n }\r\n\r\n constructor(props: OemActivityProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n oemPlanId: this._props.oemPlanId,\r\n time: this._props.time,\r\n authorId: this._props.authorId,\r\n content: this._props.content,\r\n activityType: this._props.activityType,\r\n priorStatus: this._props.priorStatus,\r\n currentStatus: this._props.currentStatus,\r\n oemPlanChangeRequestId: this._props.oemPlanChangeRequestId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllOemActivityEntities = (state: AppState) =>\r\n state.entityStores.oemActivity.entities;\r\n\r\nexport const selectOemActivityById = (id: string) => (state: AppState) =>\r\n state.entityStores.oemActivity.entities.get(id);\r\n\r\nexport const selectOemActivityMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.oemActivity.meta.get(id);\r\n\r\nexport const selectOemActivityAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectOemActivityById(id),\r\n selectOemActivityMetadataById(id),\r\n (oemActivity, meta) => ({ oemActivity, meta }),\r\n );\r\n\r\nexport function selectOemActivityEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllOemActivityEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, OemActivityRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectOemActivityEntitiesByOemPlanId(oemPlanId: string) {\r\n return createSelector(selectAllOemActivityEntities, (entities) =>\r\n entities.filter((e) => e.oemPlanId === oemPlanId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemActivityEntitiesByTime(time: Date) {\r\n return createSelector(selectAllOemActivityEntities, (entities) =>\r\n entities.filter((e) => e.time === time).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemActivityEntitiesByAuthorId(authorId: string) {\r\n return createSelector(selectAllOemActivityEntities, (entities) =>\r\n entities.filter((e) => e.authorId === authorId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemActivityEntitiesByContent(content: string) {\r\n return createSelector(selectAllOemActivityEntities, (entities) =>\r\n entities.filter((e) => e.content === content).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemActivityEntitiesByActivityType(activityType: OemActivityType) {\r\n return createSelector(selectAllOemActivityEntities, (entities) =>\r\n entities.filter((e) => e.activityType === activityType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemActivityEntitiesByPriorStatus(priorStatus: string) {\r\n return createSelector(selectAllOemActivityEntities, (entities) =>\r\n entities.filter((e) => e.priorStatus === priorStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemActivityEntitiesByCurrentStatus(currentStatus: string) {\r\n return createSelector(selectAllOemActivityEntities, (entities) =>\r\n entities.filter((e) => e.currentStatus === currentStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemActivityEntitiesByOemPlanChangeRequestId(oemPlanChangeRequestId: string) {\r\n return createSelector(selectAllOemActivityEntities, (entities) =>\r\n entities.filter((e) => e.oemPlanChangeRequestId === oemPlanChangeRequestId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { OemAssetStatus, OemAssetType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface OemAssetProps {\r\n id: string;\r\n oemPlanId: string;\r\n assetId: string;\r\n assetType: OemAssetType;\r\n assetDispatchCompanyId: string | null;\r\n status: OemAssetStatus;\r\n originalUnitId: string | null;\r\n oemUnitId: string | null;\r\n requestedPlacardNumber: string | null;\r\n requestedUnitName: string | null;\r\n requestedUnitAbbreviation: string | null;\r\n requestedBaseId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class OemAssetRecord extends Record({\r\n id: null as any,\r\n oemPlanId: null as any,\r\n assetId: null as any,\r\n assetType: null as any,\r\n assetDispatchCompanyId: null as any,\r\n status: null as any,\r\n originalUnitId: null as any,\r\n oemUnitId: null as any,\r\n requestedPlacardNumber: null as any,\r\n requestedUnitName: null as any,\r\n requestedUnitAbbreviation: null as any,\r\n requestedBaseId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n oemPlanId: string;\r\n assetId: string;\r\n assetType: OemAssetType;\r\n assetDispatchCompanyId: string | null;\r\n status: OemAssetStatus;\r\n originalUnitId: string | null;\r\n oemUnitId: string | null;\r\n requestedPlacardNumber: string | null;\r\n requestedUnitName: string | null;\r\n requestedUnitAbbreviation: string | null;\r\n requestedBaseId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): OemAssetRecord {\r\n if (json == null) {\r\n throw new Error('OemAssetRecord.fromJS: parameter cannot be null');\r\n }\r\n return new OemAssetRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'OemAssetJson.id'),\r\n oemPlanId: getFromOrThrow(json, (j) => j.oemPlanId, 'OemAssetJson.oemPlanId'),\r\n assetId: getFromOrThrow(json, (j) => j.assetId, 'OemAssetJson.assetId'),\r\n assetType: getFromOrThrow(json, (j) => j.assetType, 'OemAssetJson.assetType'),\r\n assetDispatchCompanyId: json.assetDispatchCompanyId,\r\n status: getFromOrThrow(json, (j) => j.status, 'OemAssetJson.status'),\r\n originalUnitId: json.originalUnitId,\r\n oemUnitId: json.oemUnitId,\r\n requestedPlacardNumber: json.requestedPlacardNumber,\r\n requestedUnitName: json.requestedUnitName,\r\n requestedUnitAbbreviation: json.requestedUnitAbbreviation,\r\n requestedBaseId: json.requestedBaseId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n oemPlanId: string;\r\n assetId: string;\r\n assetType: OemAssetType;\r\n assetDispatchCompanyId: string | null;\r\n status: OemAssetStatus;\r\n originalUnitId: string | null;\r\n oemUnitId: string | null;\r\n requestedPlacardNumber: string | null;\r\n requestedUnitName: string | null;\r\n requestedUnitAbbreviation: string | null;\r\n requestedBaseId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [OemAssetRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('OemAssetRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new OemAssetRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'OemAssetJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n oemPlanId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.oemPlanId, 'OemAssetJson.oemPlanId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n assetId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.assetId, 'OemAssetJson.assetId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n assetType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.assetType, 'OemAssetJson.assetType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n assetDispatchCompanyId: tryOrDefault(\r\n () => json.assetDispatchCompanyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'OemAssetJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n originalUnitId: tryOrDefault(\r\n () => json.originalUnitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n oemUnitId: tryOrDefault(\r\n () => json.oemUnitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestedPlacardNumber: tryOrDefault(\r\n () => json.requestedPlacardNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestedUnitName: tryOrDefault(\r\n () => json.requestedUnitName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestedUnitAbbreviation: tryOrDefault(\r\n () => json.requestedUnitAbbreviation,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestedBaseId: tryOrDefault(\r\n () => json.requestedBaseId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: OemAssetProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('OemAssetRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class OemAssetViewModelBase implements OemAssetProps {\r\n protected readonly _props: OemAssetProps;\r\n private _json?: OemAssetProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get oemPlanId(): string {\r\n return this._props.oemPlanId;\r\n }\r\n get assetId(): string {\r\n return this._props.assetId;\r\n }\r\n get assetType(): OemAssetType {\r\n return this._props.assetType;\r\n }\r\n get assetDispatchCompanyId(): string | null {\r\n return this._props.assetDispatchCompanyId;\r\n }\r\n get status(): OemAssetStatus {\r\n return this._props.status;\r\n }\r\n get originalUnitId(): string | null {\r\n return this._props.originalUnitId;\r\n }\r\n get oemUnitId(): string | null {\r\n return this._props.oemUnitId;\r\n }\r\n get requestedPlacardNumber(): string | null {\r\n return this._props.requestedPlacardNumber;\r\n }\r\n get requestedUnitName(): string | null {\r\n return this._props.requestedUnitName;\r\n }\r\n get requestedUnitAbbreviation(): string | null {\r\n return this._props.requestedUnitAbbreviation;\r\n }\r\n get requestedBaseId(): string | null {\r\n return this._props.requestedBaseId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isPersonal() {\r\n return this._props.assetType === OemAssetType.Personal;\r\n }\r\n public get isVehicle() {\r\n return this._props.assetType === OemAssetType.Vehicle;\r\n }\r\n public get isActivated() {\r\n return this._props.status === OemAssetStatus.Activated;\r\n }\r\n public get isDemobilized() {\r\n return this._props.status === OemAssetStatus.Demobilized;\r\n }\r\n public get isStandby() {\r\n return this._props.status === OemAssetStatus.Standby;\r\n }\r\n\r\n public isAnyAssetType(...oemAssetType: OemAssetType[]) {\r\n return oemAssetType.includes(this._props.assetType);\r\n }\r\n public isAnyStatus(...oemAssetStatus: OemAssetStatus[]) {\r\n return oemAssetStatus.includes(this._props.status);\r\n }\r\n\r\n constructor(props: OemAssetProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n oemPlanId: this._props.oemPlanId,\r\n assetId: this._props.assetId,\r\n assetType: this._props.assetType,\r\n assetDispatchCompanyId: this._props.assetDispatchCompanyId,\r\n status: this._props.status,\r\n originalUnitId: this._props.originalUnitId,\r\n oemUnitId: this._props.oemUnitId,\r\n requestedPlacardNumber: this._props.requestedPlacardNumber,\r\n requestedUnitName: this._props.requestedUnitName,\r\n requestedUnitAbbreviation: this._props.requestedUnitAbbreviation,\r\n requestedBaseId: this._props.requestedBaseId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllOemAssetEntities = (state: AppState) => state.entityStores.oemAsset.entities;\r\n\r\nexport const selectOemAssetById = (id: string) => (state: AppState) =>\r\n state.entityStores.oemAsset.entities.get(id);\r\n\r\nexport const selectOemAssetMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.oemAsset.meta.get(id);\r\n\r\nexport const selectOemAssetAndMetadataById = (id: string) =>\r\n createSelector(selectOemAssetById(id), selectOemAssetMetadataById(id), (oemAsset, meta) => ({\r\n oemAsset,\r\n meta,\r\n }));\r\n\r\nexport function selectOemAssetEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllOemAssetEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, OemAssetRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectOemAssetEntitiesByOemPlanId(oemPlanId: string) {\r\n return createSelector(selectAllOemAssetEntities, (entities) =>\r\n entities.filter((e) => e.oemPlanId === oemPlanId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemAssetEntitiesByAssetId(assetId: string) {\r\n return createSelector(selectAllOemAssetEntities, (entities) =>\r\n entities.filter((e) => e.assetId === assetId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemAssetEntitiesByAssetType(assetType: OemAssetType) {\r\n return createSelector(selectAllOemAssetEntities, (entities) =>\r\n entities.filter((e) => e.assetType === assetType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemAssetEntitiesByAssetDispatchCompanyId(assetDispatchCompanyId: string) {\r\n return createSelector(selectAllOemAssetEntities, (entities) =>\r\n entities.filter((e) => e.assetDispatchCompanyId === assetDispatchCompanyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemAssetEntitiesByStatus(status: OemAssetStatus) {\r\n return createSelector(selectAllOemAssetEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemAssetEntitiesByOriginalUnitId(originalUnitId: string) {\r\n return createSelector(selectAllOemAssetEntities, (entities) =>\r\n entities.filter((e) => e.originalUnitId === originalUnitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemAssetEntitiesByOemUnitId(oemUnitId: string) {\r\n return createSelector(selectAllOemAssetEntities, (entities) =>\r\n entities.filter((e) => e.oemUnitId === oemUnitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemAssetEntitiesByRequestedPlacardNumber(requestedPlacardNumber: string) {\r\n return createSelector(selectAllOemAssetEntities, (entities) =>\r\n entities.filter((e) => e.requestedPlacardNumber === requestedPlacardNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemAssetEntitiesByRequestedUnitName(requestedUnitName: string) {\r\n return createSelector(selectAllOemAssetEntities, (entities) =>\r\n entities.filter((e) => e.requestedUnitName === requestedUnitName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemAssetEntitiesByRequestedUnitAbbreviation(\r\n requestedUnitAbbreviation: string,\r\n) {\r\n return createSelector(selectAllOemAssetEntities, (entities) =>\r\n entities.filter((e) => e.requestedUnitAbbreviation === requestedUnitAbbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemAssetEntitiesByRequestedBaseId(requestedBaseId: string) {\r\n return createSelector(selectAllOemAssetEntities, (entities) =>\r\n entities.filter((e) => e.requestedBaseId === requestedBaseId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n OemAssetStatus,\r\n OemPlanChangeRequestStatus,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface OemPlanChangeRequestProps {\r\n id: string;\r\n oemPlanId: string;\r\n oemAssetId: string;\r\n status: OemPlanChangeRequestStatus;\r\n originalAssetStatus: OemAssetStatus;\r\n requestedAssetStatus: OemAssetStatus;\r\n requestedById: string | null;\r\n dateRequested: Date | null;\r\n dateCompleted: Date | null;\r\n dateCancelled: Date | null;\r\n notes: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class OemPlanChangeRequestRecord extends Record({\r\n id: null as any,\r\n oemPlanId: null as any,\r\n oemAssetId: null as any,\r\n status: null as any,\r\n originalAssetStatus: null as any,\r\n requestedAssetStatus: null as any,\r\n requestedById: null as any,\r\n dateRequested: null as any,\r\n dateCompleted: null as any,\r\n dateCancelled: null as any,\r\n notes: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n oemPlanId: string;\r\n oemAssetId: string;\r\n status: OemPlanChangeRequestStatus;\r\n originalAssetStatus: OemAssetStatus;\r\n requestedAssetStatus: OemAssetStatus;\r\n requestedById: string | null;\r\n dateRequested: string | number | Date | null;\r\n dateCompleted: string | number | Date | null;\r\n dateCancelled: string | number | Date | null;\r\n notes: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): OemPlanChangeRequestRecord {\r\n if (json == null) {\r\n throw new Error('OemPlanChangeRequestRecord.fromJS: parameter cannot be null');\r\n }\r\n return new OemPlanChangeRequestRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'OemPlanChangeRequestJson.id'),\r\n oemPlanId: getFromOrThrow(json, (j) => j.oemPlanId, 'OemPlanChangeRequestJson.oemPlanId'),\r\n oemAssetId: getFromOrThrow(json, (j) => j.oemAssetId, 'OemPlanChangeRequestJson.oemAssetId'),\r\n status: getFromOrThrow(json, (j) => j.status, 'OemPlanChangeRequestJson.status'),\r\n originalAssetStatus: getFromOrThrow(\r\n json,\r\n (j) => j.originalAssetStatus,\r\n 'OemPlanChangeRequestJson.originalAssetStatus',\r\n ),\r\n requestedAssetStatus: getFromOrThrow(\r\n json,\r\n (j) => j.requestedAssetStatus,\r\n 'OemPlanChangeRequestJson.requestedAssetStatus',\r\n ),\r\n requestedById: json.requestedById,\r\n dateRequested: json.dateRequested != null ? new Date(json.dateRequested) : null,\r\n dateCompleted: json.dateCompleted != null ? new Date(json.dateCompleted) : null,\r\n dateCancelled: json.dateCancelled != null ? new Date(json.dateCancelled) : null,\r\n notes: json.notes,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n oemPlanId: string;\r\n oemAssetId: string;\r\n status: OemPlanChangeRequestStatus;\r\n originalAssetStatus: OemAssetStatus;\r\n requestedAssetStatus: OemAssetStatus;\r\n requestedById: string | null;\r\n dateRequested: string | number | Date | null;\r\n dateCompleted: string | number | Date | null;\r\n dateCancelled: string | number | Date | null;\r\n notes: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [OemPlanChangeRequestRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('OemPlanChangeRequestRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new OemPlanChangeRequestRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'OemPlanChangeRequestJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n oemPlanId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.oemPlanId, 'OemPlanChangeRequestJson.oemPlanId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n oemAssetId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.oemAssetId, 'OemPlanChangeRequestJson.oemAssetId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'OemPlanChangeRequestJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n originalAssetStatus: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.originalAssetStatus,\r\n 'OemPlanChangeRequestJson.originalAssetStatus',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestedAssetStatus: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requestedAssetStatus,\r\n 'OemPlanChangeRequestJson.requestedAssetStatus',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestedById: tryOrDefault(\r\n () => json.requestedById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateRequested: tryOrDefault(\r\n () => (json.dateRequested != null ? new Date(json.dateRequested) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateCompleted: tryOrDefault(\r\n () => (json.dateCompleted != null ? new Date(json.dateCompleted) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateCancelled: tryOrDefault(\r\n () => (json.dateCancelled != null ? new Date(json.dateCancelled) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: OemPlanChangeRequestProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('OemPlanChangeRequestRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class OemPlanChangeRequestViewModelBase implements OemPlanChangeRequestProps {\r\n protected readonly _props: OemPlanChangeRequestProps;\r\n private _json?: OemPlanChangeRequestProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get oemPlanId(): string {\r\n return this._props.oemPlanId;\r\n }\r\n get oemAssetId(): string {\r\n return this._props.oemAssetId;\r\n }\r\n get status(): OemPlanChangeRequestStatus {\r\n return this._props.status;\r\n }\r\n get originalAssetStatus(): OemAssetStatus {\r\n return this._props.originalAssetStatus;\r\n }\r\n get requestedAssetStatus(): OemAssetStatus {\r\n return this._props.requestedAssetStatus;\r\n }\r\n get requestedById(): string | null {\r\n return this._props.requestedById;\r\n }\r\n get dateRequested(): Date | null {\r\n return this._props.dateRequested;\r\n }\r\n get dateCompleted(): Date | null {\r\n return this._props.dateCompleted;\r\n }\r\n get dateCancelled(): Date | null {\r\n return this._props.dateCancelled;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCancelled() {\r\n return this._props.status === OemPlanChangeRequestStatus.Cancelled;\r\n }\r\n public get isCompleted() {\r\n return this._props.status === OemPlanChangeRequestStatus.Completed;\r\n }\r\n public get isDraft() {\r\n return this._props.status === OemPlanChangeRequestStatus.Draft;\r\n }\r\n public get isRequested() {\r\n return this._props.status === OemPlanChangeRequestStatus.Requested;\r\n }\r\n public get isOriginalAssetStatusActivated() {\r\n return this._props.originalAssetStatus === OemAssetStatus.Activated;\r\n }\r\n public get isRequestedAssetStatusActivated() {\r\n return this._props.requestedAssetStatus === OemAssetStatus.Activated;\r\n }\r\n public get isOriginalAssetStatusDemobilized() {\r\n return this._props.originalAssetStatus === OemAssetStatus.Demobilized;\r\n }\r\n public get isRequestedAssetStatusDemobilized() {\r\n return this._props.requestedAssetStatus === OemAssetStatus.Demobilized;\r\n }\r\n public get isOriginalAssetStatusStandby() {\r\n return this._props.originalAssetStatus === OemAssetStatus.Standby;\r\n }\r\n public get isRequestedAssetStatusStandby() {\r\n return this._props.requestedAssetStatus === OemAssetStatus.Standby;\r\n }\r\n\r\n public isAnyStatus(...oemPlanChangeRequestStatus: OemPlanChangeRequestStatus[]) {\r\n return oemPlanChangeRequestStatus.includes(this._props.status);\r\n }\r\n public isAnyOriginalAssetStatus(...oemAssetStatus: OemAssetStatus[]) {\r\n return oemAssetStatus.includes(this._props.originalAssetStatus);\r\n }\r\n public isAnyRequestedAssetStatus(...oemAssetStatus: OemAssetStatus[]) {\r\n return oemAssetStatus.includes(this._props.requestedAssetStatus);\r\n }\r\n\r\n constructor(props: OemPlanChangeRequestProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n oemPlanId: this._props.oemPlanId,\r\n oemAssetId: this._props.oemAssetId,\r\n status: this._props.status,\r\n originalAssetStatus: this._props.originalAssetStatus,\r\n requestedAssetStatus: this._props.requestedAssetStatus,\r\n requestedById: this._props.requestedById,\r\n dateRequested: this._props.dateRequested,\r\n dateCompleted: this._props.dateCompleted,\r\n dateCancelled: this._props.dateCancelled,\r\n notes: this._props.notes,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllOemPlanChangeRequestEntities = (state: AppState) =>\r\n state.entityStores.oemPlanChangeRequest.entities;\r\n\r\nexport const selectOemPlanChangeRequestById = (id: string) => (state: AppState) =>\r\n state.entityStores.oemPlanChangeRequest.entities.get(id);\r\n\r\nexport const selectOemPlanChangeRequestMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.oemPlanChangeRequest.meta.get(id);\r\n\r\nexport const selectOemPlanChangeRequestAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectOemPlanChangeRequestById(id),\r\n selectOemPlanChangeRequestMetadataById(id),\r\n (oemPlanChangeRequest, meta) => ({ oemPlanChangeRequest, meta }),\r\n );\r\n\r\nexport function selectOemPlanChangeRequestEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllOemPlanChangeRequestEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, OemPlanChangeRequestRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectOemPlanChangeRequestEntitiesByOemPlanId(oemPlanId: string) {\r\n return createSelector(selectAllOemPlanChangeRequestEntities, (entities) =>\r\n entities.filter((e) => e.oemPlanId === oemPlanId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanChangeRequestEntitiesByOemAssetId(oemAssetId: string) {\r\n return createSelector(selectAllOemPlanChangeRequestEntities, (entities) =>\r\n entities.filter((e) => e.oemAssetId === oemAssetId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanChangeRequestEntitiesByStatus(status: OemPlanChangeRequestStatus) {\r\n return createSelector(selectAllOemPlanChangeRequestEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanChangeRequestEntitiesByOriginalAssetStatus(\r\n originalAssetStatus: OemAssetStatus,\r\n) {\r\n return createSelector(selectAllOemPlanChangeRequestEntities, (entities) =>\r\n entities.filter((e) => e.originalAssetStatus === originalAssetStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanChangeRequestEntitiesByRequestedAssetStatus(\r\n requestedAssetStatus: OemAssetStatus,\r\n) {\r\n return createSelector(selectAllOemPlanChangeRequestEntities, (entities) =>\r\n entities.filter((e) => e.requestedAssetStatus === requestedAssetStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanChangeRequestEntitiesByRequestedById(requestedById: string) {\r\n return createSelector(selectAllOemPlanChangeRequestEntities, (entities) =>\r\n entities.filter((e) => e.requestedById === requestedById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanChangeRequestEntitiesByDateRequested(dateRequested: Date) {\r\n return createSelector(selectAllOemPlanChangeRequestEntities, (entities) =>\r\n entities.filter((e) => e.dateRequested === dateRequested).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanChangeRequestEntitiesByDateCompleted(dateCompleted: Date) {\r\n return createSelector(selectAllOemPlanChangeRequestEntities, (entities) =>\r\n entities.filter((e) => e.dateCompleted === dateCompleted).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanChangeRequestEntitiesByDateCancelled(dateCancelled: Date) {\r\n return createSelector(selectAllOemPlanChangeRequestEntities, (entities) =>\r\n entities.filter((e) => e.dateCancelled === dateCancelled).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanChangeRequestEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllOemPlanChangeRequestEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { OemPlanStatus } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface OemPlanProps {\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n oemCompanyId: string;\r\n outOfServiceReasonId: string;\r\n defaultBaseId: string;\r\n planStatus: OemPlanStatus;\r\n planYear: number;\r\n description: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class OemPlanRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n companyId: null as any,\r\n oemCompanyId: null as any,\r\n outOfServiceReasonId: null as any,\r\n defaultBaseId: null as any,\r\n planStatus: null as any,\r\n planYear: null as any,\r\n description: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n oemCompanyId: string;\r\n outOfServiceReasonId: string;\r\n defaultBaseId: string;\r\n planStatus: OemPlanStatus;\r\n planYear: number;\r\n description: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): OemPlanRecord {\r\n if (json == null) {\r\n throw new Error('OemPlanRecord.fromJS: parameter cannot be null');\r\n }\r\n return new OemPlanRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'OemPlanJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'OemPlanJson.name'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'OemPlanJson.companyId'),\r\n oemCompanyId: getFromOrThrow(json, (j) => j.oemCompanyId, 'OemPlanJson.oemCompanyId'),\r\n outOfServiceReasonId: getFromOrThrow(\r\n json,\r\n (j) => j.outOfServiceReasonId,\r\n 'OemPlanJson.outOfServiceReasonId',\r\n ),\r\n defaultBaseId: getFromOrThrow(json, (j) => j.defaultBaseId, 'OemPlanJson.defaultBaseId'),\r\n planStatus: getFromOrThrow(json, (j) => j.planStatus, 'OemPlanJson.planStatus'),\r\n planYear: getFromOrThrow(json, (j) => j.planYear, 'OemPlanJson.planYear'),\r\n description: json.description,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n oemCompanyId: string;\r\n outOfServiceReasonId: string;\r\n defaultBaseId: string;\r\n planStatus: OemPlanStatus;\r\n planYear: number;\r\n description: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [OemPlanRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('OemPlanRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new OemPlanRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'OemPlanJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'OemPlanJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'OemPlanJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n oemCompanyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.oemCompanyId, 'OemPlanJson.oemCompanyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n outOfServiceReasonId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.outOfServiceReasonId, 'OemPlanJson.outOfServiceReasonId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n defaultBaseId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.defaultBaseId, 'OemPlanJson.defaultBaseId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n planStatus: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.planStatus, 'OemPlanJson.planStatus'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n planYear: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.planYear, 'OemPlanJson.planYear'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n description: tryOrDefault(\r\n () => json.description,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: OemPlanProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('OemPlanRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class OemPlanViewModelBase implements OemPlanProps {\r\n protected readonly _props: OemPlanProps;\r\n private _json?: OemPlanProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n get oemCompanyId(): string {\r\n return this._props.oemCompanyId;\r\n }\r\n get outOfServiceReasonId(): string {\r\n return this._props.outOfServiceReasonId;\r\n }\r\n get defaultBaseId(): string {\r\n return this._props.defaultBaseId;\r\n }\r\n get planStatus(): OemPlanStatus {\r\n return this._props.planStatus;\r\n }\r\n get planYear(): number {\r\n return this._props.planYear;\r\n }\r\n get description(): string | null {\r\n return this._props.description;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCancelled() {\r\n return this._props.planStatus === OemPlanStatus.Cancelled;\r\n }\r\n public get isDemobilized() {\r\n return this._props.planStatus === OemPlanStatus.Demobilized;\r\n }\r\n public get isDemobilizing() {\r\n return this._props.planStatus === OemPlanStatus.Demobilizing;\r\n }\r\n public get isDeployed() {\r\n return this._props.planStatus === OemPlanStatus.Deployed;\r\n }\r\n public get isDraft() {\r\n return this._props.planStatus === OemPlanStatus.Draft;\r\n }\r\n\r\n public isAnyPlanStatus(...oemPlanStatus: OemPlanStatus[]) {\r\n return oemPlanStatus.includes(this._props.planStatus);\r\n }\r\n\r\n constructor(props: OemPlanProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n companyId: this._props.companyId,\r\n oemCompanyId: this._props.oemCompanyId,\r\n outOfServiceReasonId: this._props.outOfServiceReasonId,\r\n defaultBaseId: this._props.defaultBaseId,\r\n planStatus: this._props.planStatus,\r\n planYear: this._props.planYear,\r\n description: this._props.description,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllOemPlanEntities = (state: AppState) => state.entityStores.oemPlan.entities;\r\n\r\nexport const selectOemPlanById = (id: string) => (state: AppState) =>\r\n state.entityStores.oemPlan.entities.get(id);\r\n\r\nexport const selectOemPlanMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.oemPlan.meta.get(id);\r\n\r\nexport const selectOemPlanAndMetadataById = (id: string) =>\r\n createSelector(selectOemPlanById(id), selectOemPlanMetadataById(id), (oemPlan, meta) => ({\r\n oemPlan,\r\n meta,\r\n }));\r\n\r\nexport function selectOemPlanEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllOemPlanEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, OemPlanRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectOemPlanEntitiesByName(name: string) {\r\n return createSelector(selectAllOemPlanEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllOemPlanEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanEntitiesByOemCompanyId(oemCompanyId: string) {\r\n return createSelector(selectAllOemPlanEntities, (entities) =>\r\n entities.filter((e) => e.oemCompanyId === oemCompanyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanEntitiesByOutOfServiceReasonId(outOfServiceReasonId: string) {\r\n return createSelector(selectAllOemPlanEntities, (entities) =>\r\n entities.filter((e) => e.outOfServiceReasonId === outOfServiceReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanEntitiesByDefaultBaseId(defaultBaseId: string) {\r\n return createSelector(selectAllOemPlanEntities, (entities) =>\r\n entities.filter((e) => e.defaultBaseId === defaultBaseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanEntitiesByPlanStatus(planStatus: OemPlanStatus) {\r\n return createSelector(selectAllOemPlanEntities, (entities) =>\r\n entities.filter((e) => e.planStatus === planStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanEntitiesByPlanYear(planYear: number) {\r\n return createSelector(selectAllOemPlanEntities, (entities) =>\r\n entities.filter((e) => e.planYear === planYear).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOemPlanEntitiesByDescription(description: string) {\r\n return createSelector(selectAllOemPlanEntities, (entities) =>\r\n entities.filter((e) => e.description === description).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { PreferredUnitType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface PreferredUnitProps {\r\n id: string;\r\n unitAbbreviation: string;\r\n rank: number;\r\n type: PreferredUnitType;\r\n}\r\n\r\nexport class PreferredUnitRecord extends Record({\r\n id: null as any,\r\n unitAbbreviation: null as any,\r\n rank: null as any,\r\n type: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n unitAbbreviation: string;\r\n rank: number;\r\n type: PreferredUnitType;\r\n }): PreferredUnitRecord {\r\n if (json == null) {\r\n throw new Error('PreferredUnitRecord.fromJS: parameter cannot be null');\r\n }\r\n return new PreferredUnitRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'PreferredUnitJson.id'),\r\n unitAbbreviation: getFromOrThrow(\r\n json,\r\n (j) => j.unitAbbreviation,\r\n 'PreferredUnitJson.unitAbbreviation',\r\n ),\r\n rank: getFromOrThrow(json, (j) => j.rank, 'PreferredUnitJson.rank'),\r\n type: getFromOrThrow(json, (j) => j.type, 'PreferredUnitJson.type'),\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n unitAbbreviation: string;\r\n rank: number;\r\n type: PreferredUnitType;\r\n }): [PreferredUnitRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('PreferredUnitRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new PreferredUnitRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'PreferredUnitJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitAbbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitAbbreviation, 'PreferredUnitJson.unitAbbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n rank: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.rank, 'PreferredUnitJson.rank'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'PreferredUnitJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: PreferredUnitProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('PreferredUnitRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class PreferredUnitViewModelBase implements PreferredUnitProps {\r\n protected readonly _props: PreferredUnitProps;\r\n private _json?: PreferredUnitProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get unitAbbreviation(): string {\r\n return this._props.unitAbbreviation;\r\n }\r\n get rank(): number {\r\n return this._props.rank;\r\n }\r\n get type(): PreferredUnitType {\r\n return this._props.type;\r\n }\r\n\r\n public get isAgencyLocation() {\r\n return this._props.type === PreferredUnitType.AgencyLocation;\r\n }\r\n public get isUnit() {\r\n return this._props.type === PreferredUnitType.Unit;\r\n }\r\n\r\n public isAnyType(...preferredUnitType: PreferredUnitType[]) {\r\n return preferredUnitType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: PreferredUnitProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n unitAbbreviation: this._props.unitAbbreviation,\r\n rank: this._props.rank,\r\n type: this._props.type,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n DistanceCalculation,\r\n FlightRule,\r\n TransportOfferAlgorithm,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n PreferredUnitRecord,\r\n PreferredUnitProps,\r\n} from 'src/store/generated/preferred-unit-record.generated';\r\nimport {\r\n IdListItemRecord,\r\n IdListItemProps,\r\n} from 'src/store/generated/id-list-item-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface OfferAlgorithmProps {\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n oneCallAgreement: boolean;\r\n rank: number;\r\n transportOfferAlgorithm: TransportOfferAlgorithm;\r\n distanceCalculation: DistanceCalculation;\r\n activationRuleId: string;\r\n minimumFlightRule: FlightRule | null;\r\n companyId: string;\r\n preferredUnits: List;\r\n companies: List | null;\r\n isEnabled: boolean;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class OfferAlgorithmRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n includeCompetitors: null as any,\r\n oneCallAgreement: null as any,\r\n rank: null as any,\r\n transportOfferAlgorithm: null as any,\r\n distanceCalculation: null as any,\r\n activationRuleId: null as any,\r\n minimumFlightRule: null as any,\r\n companyId: null as any,\r\n preferredUnits: null as any,\r\n companies: null as any,\r\n isEnabled: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n oneCallAgreement: boolean;\r\n rank: number;\r\n transportOfferAlgorithm: TransportOfferAlgorithm;\r\n distanceCalculation: DistanceCalculation;\r\n activationRuleId: string;\r\n minimumFlightRule: FlightRule | null;\r\n companyId: string;\r\n preferredUnits: any;\r\n companies: any;\r\n isEnabled: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): OfferAlgorithmRecord {\r\n if (json == null) {\r\n throw new Error('OfferAlgorithmRecord.fromJS: parameter cannot be null');\r\n }\r\n return new OfferAlgorithmRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'OfferAlgorithmJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'OfferAlgorithmJson.name'),\r\n includeCompetitors: getFromOrThrow(\r\n json,\r\n (j) => j.includeCompetitors,\r\n 'OfferAlgorithmJson.includeCompetitors',\r\n ),\r\n oneCallAgreement: getFromOrThrow(\r\n json,\r\n (j) => j.oneCallAgreement,\r\n 'OfferAlgorithmJson.oneCallAgreement',\r\n ),\r\n rank: getFromOrThrow(json, (j) => j.rank, 'OfferAlgorithmJson.rank'),\r\n transportOfferAlgorithm: getFromOrThrow(\r\n json,\r\n (j) => j.transportOfferAlgorithm,\r\n 'OfferAlgorithmJson.transportOfferAlgorithm',\r\n ),\r\n distanceCalculation: getFromOrThrow(\r\n json,\r\n (j) => j.distanceCalculation,\r\n 'OfferAlgorithmJson.distanceCalculation',\r\n ),\r\n activationRuleId: getFromOrThrow(\r\n json,\r\n (j) => j.activationRuleId,\r\n 'OfferAlgorithmJson.activationRuleId',\r\n ),\r\n minimumFlightRule: json.minimumFlightRule,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'OfferAlgorithmJson.companyId'),\r\n preferredUnits: List(\r\n getFromOrThrow(json, (j) => j.preferredUnits, 'OfferAlgorithmJson.preferredUnits').map(\r\n (o: any) => new PreferredUnitRecord(o),\r\n ),\r\n ),\r\n companies:\r\n json.companies != null\r\n ? List(json.companies.map((o: any) => new IdListItemRecord(o)))\r\n : null,\r\n isEnabled: getFromOrThrow(json, (j) => j.isEnabled, 'OfferAlgorithmJson.isEnabled '),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n includeCompetitors: boolean;\r\n oneCallAgreement: boolean;\r\n rank: number;\r\n transportOfferAlgorithm: TransportOfferAlgorithm;\r\n distanceCalculation: DistanceCalculation;\r\n activationRuleId: string;\r\n minimumFlightRule: FlightRule | null;\r\n companyId: string;\r\n preferredUnits: any;\r\n companies: any;\r\n isEnabled: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [OfferAlgorithmRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('OfferAlgorithmRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new OfferAlgorithmRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'OfferAlgorithmJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'OfferAlgorithmJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n includeCompetitors: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.includeCompetitors,\r\n 'OfferAlgorithmJson.includeCompetitors',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n oneCallAgreement: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.oneCallAgreement, 'OfferAlgorithmJson.oneCallAgreement'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n rank: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.rank, 'OfferAlgorithmJson.rank'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportOfferAlgorithm: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.transportOfferAlgorithm,\r\n 'OfferAlgorithmJson.transportOfferAlgorithm',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n distanceCalculation: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.distanceCalculation,\r\n 'OfferAlgorithmJson.distanceCalculation',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n activationRuleId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.activationRuleId, 'OfferAlgorithmJson.activationRuleId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n minimumFlightRule: tryOrDefault(\r\n () => json.minimumFlightRule,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'OfferAlgorithmJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n preferredUnits: tryOrDefault(\r\n () =>\r\n List(\r\n getFromOrThrow(json, (j) => j.preferredUnits, 'OfferAlgorithmJson.preferredUnits').map(\r\n (o: any) => new PreferredUnitRecord(o),\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companies: tryOrDefault(\r\n () =>\r\n json.companies != null\r\n ? List(json.companies.map((o: any) => new IdListItemRecord(o)))\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isEnabled: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isEnabled, 'OfferAlgorithmJson.isEnabled '),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: OfferAlgorithmProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('OfferAlgorithmRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class OfferAlgorithmViewModelBase implements OfferAlgorithmProps {\r\n protected readonly _props: OfferAlgorithmProps;\r\n private _json?: OfferAlgorithmProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get includeCompetitors(): boolean {\r\n return this._props.includeCompetitors;\r\n }\r\n get oneCallAgreement(): boolean {\r\n return this._props.oneCallAgreement;\r\n }\r\n get rank(): number {\r\n return this._props.rank;\r\n }\r\n get transportOfferAlgorithm(): TransportOfferAlgorithm {\r\n return this._props.transportOfferAlgorithm;\r\n }\r\n get distanceCalculation(): DistanceCalculation {\r\n return this._props.distanceCalculation;\r\n }\r\n get activationRuleId(): string {\r\n return this._props.activationRuleId;\r\n }\r\n get minimumFlightRule(): FlightRule | null {\r\n return this._props.minimumFlightRule;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n get preferredUnits(): List {\r\n return this._props.preferredUnits;\r\n }\r\n get companies(): List | null {\r\n return this._props.companies;\r\n }\r\n get isEnabled(): boolean {\r\n return this._props.isEnabled;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isShortestDistance() {\r\n return this._props.transportOfferAlgorithm === TransportOfferAlgorithm.ShortestDistance;\r\n }\r\n public get isShortestEta() {\r\n return this._props.transportOfferAlgorithm === TransportOfferAlgorithm.ShortestEta;\r\n }\r\n public get isFromAircraft() {\r\n return this._props.distanceCalculation === DistanceCalculation.FromAircraft;\r\n }\r\n public get isFromBase() {\r\n return this._props.distanceCalculation === DistanceCalculation.FromBase;\r\n }\r\n public get isIfr() {\r\n return this._props.minimumFlightRule === FlightRule.Ifr;\r\n }\r\n public get isNone() {\r\n return this._props.minimumFlightRule === FlightRule.None;\r\n }\r\n public get isVfr() {\r\n return this._props.minimumFlightRule === FlightRule.Vfr;\r\n }\r\n\r\n public isAnyTransportOfferAlgorithm(...transportOfferAlgorithm: TransportOfferAlgorithm[]) {\r\n return transportOfferAlgorithm.includes(this._props.transportOfferAlgorithm);\r\n }\r\n public isAnyDistanceCalculation(...distanceCalculation: DistanceCalculation[]) {\r\n return distanceCalculation.includes(this._props.distanceCalculation);\r\n }\r\n public isAnyMinimumFlightRule(...flightRule: FlightRule[]) {\r\n return (\r\n this._props.minimumFlightRule != null && flightRule.includes(this._props.minimumFlightRule)\r\n );\r\n }\r\n\r\n constructor(props: OfferAlgorithmProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n includeCompetitors: this._props.includeCompetitors,\r\n oneCallAgreement: this._props.oneCallAgreement,\r\n rank: this._props.rank,\r\n transportOfferAlgorithm: this._props.transportOfferAlgorithm,\r\n distanceCalculation: this._props.distanceCalculation,\r\n activationRuleId: this._props.activationRuleId,\r\n minimumFlightRule: this._props.minimumFlightRule,\r\n companyId: this._props.companyId,\r\n preferredUnits: this._props.preferredUnits,\r\n companies: this._props.companies,\r\n isEnabled: this._props.isEnabled,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllOfferAlgorithmEntities = (state: AppState) =>\r\n state.entityStores.offerAlgorithm.entities;\r\n\r\nexport const selectOfferAlgorithmById = (id: string) => (state: AppState) =>\r\n state.entityStores.offerAlgorithm.entities.get(id);\r\n\r\nexport const selectOfferAlgorithmMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.offerAlgorithm.meta.get(id);\r\n\r\nexport const selectOfferAlgorithmAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectOfferAlgorithmById(id),\r\n selectOfferAlgorithmMetadataById(id),\r\n (offerAlgorithm, meta) => ({ offerAlgorithm, meta }),\r\n );\r\n\r\nexport function selectOfferAlgorithmEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllOfferAlgorithmEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, OfferAlgorithmRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectOfferAlgorithmEntitiesByName(name: string) {\r\n return createSelector(selectAllOfferAlgorithmEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOfferAlgorithmEntitiesByIncludeCompetitors(includeCompetitors: boolean) {\r\n return createSelector(selectAllOfferAlgorithmEntities, (entities) =>\r\n entities.filter((e) => e.includeCompetitors === includeCompetitors).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOfferAlgorithmEntitiesByOneCallAgreement(oneCallAgreement: boolean) {\r\n return createSelector(selectAllOfferAlgorithmEntities, (entities) =>\r\n entities.filter((e) => e.oneCallAgreement === oneCallAgreement).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOfferAlgorithmEntitiesByRank(rank: number) {\r\n return createSelector(selectAllOfferAlgorithmEntities, (entities) =>\r\n entities.filter((e) => e.rank === rank).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOfferAlgorithmEntitiesByTransportOfferAlgorithm(\r\n transportOfferAlgorithm: TransportOfferAlgorithm,\r\n) {\r\n return createSelector(selectAllOfferAlgorithmEntities, (entities) =>\r\n entities.filter((e) => e.transportOfferAlgorithm === transportOfferAlgorithm).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOfferAlgorithmEntitiesByDistanceCalculation(\r\n distanceCalculation: DistanceCalculation,\r\n) {\r\n return createSelector(selectAllOfferAlgorithmEntities, (entities) =>\r\n entities.filter((e) => e.distanceCalculation === distanceCalculation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOfferAlgorithmEntitiesByActivationRuleId(activationRuleId: string) {\r\n return createSelector(selectAllOfferAlgorithmEntities, (entities) =>\r\n entities.filter((e) => e.activationRuleId === activationRuleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOfferAlgorithmEntitiesByMinimumFlightRule(minimumFlightRule: FlightRule) {\r\n return createSelector(selectAllOfferAlgorithmEntities, (entities) =>\r\n entities.filter((e) => e.minimumFlightRule === minimumFlightRule).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOfferAlgorithmEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllOfferAlgorithmEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOfferAlgorithmEntitiesByIsEnabled(isEnabled: boolean) {\r\n return createSelector(selectAllOfferAlgorithmEntities, (entities) =>\r\n entities.filter((e) => e.isEnabled === isEnabled).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n OperationStatus,\r\n OperationType,\r\n StandbyActivationType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface OperationProps {\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n unitId: string | null;\r\n vehicleId: string;\r\n dateOperationStarted: Date;\r\n dateOperationEnded: Date | null;\r\n unitActivationTime: Date | null;\r\n riskAnalysisNumber: string | null;\r\n standbyActivationType: StandbyActivationType | null;\r\n caller: string | null;\r\n callbackNumber: string | null;\r\n initialOperationType: OperationType | null;\r\n riskAnalysisAcknowledged: boolean;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class OperationRecord extends Record({\r\n id: null as any,\r\n status: null as any,\r\n type: null as any,\r\n unitId: null as any,\r\n vehicleId: null as any,\r\n dateOperationStarted: null as any,\r\n dateOperationEnded: null as any,\r\n unitActivationTime: null as any,\r\n riskAnalysisNumber: null as any,\r\n standbyActivationType: null as any,\r\n caller: null as any,\r\n callbackNumber: null as any,\r\n initialOperationType: null as any,\r\n riskAnalysisAcknowledged: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n unitId: string | null;\r\n vehicleId: string;\r\n dateOperationStarted: string | number | Date;\r\n dateOperationEnded: string | number | Date | null;\r\n unitActivationTime: string | number | Date | null;\r\n riskAnalysisNumber: string | null;\r\n standbyActivationType: StandbyActivationType | null;\r\n caller: string | null;\r\n callbackNumber: string | null;\r\n initialOperationType: OperationType | null;\r\n riskAnalysisAcknowledged: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): OperationRecord {\r\n if (json == null) {\r\n throw new Error('OperationRecord.fromJS: parameter cannot be null');\r\n }\r\n return new OperationRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'OperationJson.id'),\r\n status: getFromOrThrow(json, (j) => j.status, 'OperationJson.status'),\r\n type: getFromOrThrow(json, (j) => j.type, 'OperationJson.type'),\r\n unitId: json.unitId,\r\n vehicleId: getFromOrThrow(json, (j) => j.vehicleId, 'OperationJson.vehicleId'),\r\n dateOperationStarted: new Date(\r\n getFromOrThrow(json, (j) => j.dateOperationStarted, 'OperationJson.dateOperationStarted'),\r\n ),\r\n dateOperationEnded:\r\n json.dateOperationEnded != null ? new Date(json.dateOperationEnded) : null,\r\n unitActivationTime:\r\n json.unitActivationTime != null ? new Date(json.unitActivationTime) : null,\r\n riskAnalysisNumber: json.riskAnalysisNumber,\r\n standbyActivationType: json.standbyActivationType,\r\n caller: json.caller,\r\n callbackNumber: json.callbackNumber,\r\n initialOperationType: json.initialOperationType,\r\n riskAnalysisAcknowledged: getFromOrThrow(\r\n json,\r\n (j) => j.riskAnalysisAcknowledged,\r\n 'OperationJson.riskAnalysisAcknowledged',\r\n ),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'OperationJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n status: OperationStatus;\r\n type: OperationType;\r\n unitId: string | null;\r\n vehicleId: string;\r\n dateOperationStarted: string | number | Date;\r\n dateOperationEnded: string | number | Date | null;\r\n unitActivationTime: string | number | Date | null;\r\n riskAnalysisNumber: string | null;\r\n standbyActivationType: StandbyActivationType | null;\r\n caller: string | null;\r\n callbackNumber: string | null;\r\n initialOperationType: OperationType | null;\r\n riskAnalysisAcknowledged: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [OperationRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('OperationRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new OperationRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'OperationJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'OperationJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'OperationJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => json.unitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.vehicleId, 'OperationJson.vehicleId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateOperationStarted: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.dateOperationStarted,\r\n 'OperationJson.dateOperationStarted',\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateOperationEnded: tryOrDefault(\r\n () => (json.dateOperationEnded != null ? new Date(json.dateOperationEnded) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitActivationTime: tryOrDefault(\r\n () => (json.unitActivationTime != null ? new Date(json.unitActivationTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n riskAnalysisNumber: tryOrDefault(\r\n () => json.riskAnalysisNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n standbyActivationType: tryOrDefault(\r\n () => json.standbyActivationType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n caller: tryOrDefault(\r\n () => json.caller,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n callbackNumber: tryOrDefault(\r\n () => json.callbackNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n initialOperationType: tryOrDefault(\r\n () => json.initialOperationType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n riskAnalysisAcknowledged: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.riskAnalysisAcknowledged,\r\n 'OperationJson.riskAnalysisAcknowledged',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'OperationJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: OperationProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('OperationRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class OperationViewModelBase implements OperationProps {\r\n protected readonly _props: OperationProps;\r\n private _json?: OperationProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get status(): OperationStatus {\r\n return this._props.status;\r\n }\r\n get type(): OperationType {\r\n return this._props.type;\r\n }\r\n get unitId(): string | null {\r\n return this._props.unitId;\r\n }\r\n get vehicleId(): string {\r\n return this._props.vehicleId;\r\n }\r\n get dateOperationStarted(): Date {\r\n return this._props.dateOperationStarted;\r\n }\r\n get dateOperationEnded(): Date | null {\r\n return this._props.dateOperationEnded;\r\n }\r\n get unitActivationTime(): Date | null {\r\n return this._props.unitActivationTime;\r\n }\r\n get riskAnalysisNumber(): string | null {\r\n return this._props.riskAnalysisNumber;\r\n }\r\n get standbyActivationType(): StandbyActivationType | null {\r\n return this._props.standbyActivationType;\r\n }\r\n get caller(): string | null {\r\n return this._props.caller;\r\n }\r\n get callbackNumber(): string | null {\r\n return this._props.callbackNumber;\r\n }\r\n get initialOperationType(): OperationType | null {\r\n return this._props.initialOperationType;\r\n }\r\n get riskAnalysisAcknowledged(): boolean {\r\n return this._props.riskAnalysisAcknowledged;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAborted() {\r\n return this._props.status === OperationStatus.Aborted;\r\n }\r\n public get isCancelled() {\r\n return this._props.status === OperationStatus.Cancelled;\r\n }\r\n public get isCompleted() {\r\n return this._props.status === OperationStatus.Completed;\r\n }\r\n public get isCrewAccepted() {\r\n return this._props.status === OperationStatus.CrewAccepted;\r\n }\r\n public get isOnStandby() {\r\n return this._props.status === OperationStatus.OnStandby;\r\n }\r\n public get isScheduled() {\r\n return this._props.status === OperationStatus.Scheduled;\r\n }\r\n public get isUnderway() {\r\n return this._props.status === OperationStatus.Underway;\r\n }\r\n public get isUnitActivated() {\r\n return this._props.status === OperationStatus.UnitActivated;\r\n }\r\n public get isTypeGroundRun() {\r\n return this._props.type === OperationType.GroundRun;\r\n }\r\n public get isInitialOperationTypeGroundRun() {\r\n return this._props.initialOperationType === OperationType.GroundRun;\r\n }\r\n public get isTypeMaintenance() {\r\n return this._props.type === OperationType.Maintenance;\r\n }\r\n public get isInitialOperationTypeMaintenance() {\r\n return this._props.initialOperationType === OperationType.Maintenance;\r\n }\r\n public get isTypeNonPatientShuttle() {\r\n return this._props.type === OperationType.NonPatientShuttle;\r\n }\r\n public get isInitialOperationTypeNonPatientShuttle() {\r\n return this._props.initialOperationType === OperationType.NonPatientShuttle;\r\n }\r\n public get isTypePatientShuttle() {\r\n return this._props.type === OperationType.PatientShuttle;\r\n }\r\n public get isInitialOperationTypePatientShuttle() {\r\n return this._props.initialOperationType === OperationType.PatientShuttle;\r\n }\r\n public get isTypePublicRelations() {\r\n return this._props.type === OperationType.PublicRelations;\r\n }\r\n public get isInitialOperationTypePublicRelations() {\r\n return this._props.initialOperationType === OperationType.PublicRelations;\r\n }\r\n public get isTypePublicUtility() {\r\n return this._props.type === OperationType.PublicUtility;\r\n }\r\n public get isInitialOperationTypePublicUtility() {\r\n return this._props.initialOperationType === OperationType.PublicUtility;\r\n }\r\n public get isTypeReposition() {\r\n return this._props.type === OperationType.Reposition;\r\n }\r\n public get isInitialOperationTypeReposition() {\r\n return this._props.initialOperationType === OperationType.Reposition;\r\n }\r\n public get isTypeResidence() {\r\n return this._props.type === OperationType.Residence;\r\n }\r\n public get isInitialOperationTypeResidence() {\r\n return this._props.initialOperationType === OperationType.Residence;\r\n }\r\n public get isTypeSceneCall() {\r\n return this._props.type === OperationType.SceneCall;\r\n }\r\n public get isInitialOperationTypeSceneCall() {\r\n return this._props.initialOperationType === OperationType.SceneCall;\r\n }\r\n public get isTypeSearchAndAssist() {\r\n return this._props.type === OperationType.SearchAndAssist;\r\n }\r\n public get isInitialOperationTypeSearchAndAssist() {\r\n return this._props.initialOperationType === OperationType.SearchAndAssist;\r\n }\r\n public get isTypeTraining() {\r\n return this._props.type === OperationType.Training;\r\n }\r\n public get isInitialOperationTypeTraining() {\r\n return this._props.initialOperationType === OperationType.Training;\r\n }\r\n public get isTypeTransfer() {\r\n return this._props.type === OperationType.Transfer;\r\n }\r\n public get isInitialOperationTypeTransfer() {\r\n return this._props.initialOperationType === OperationType.Transfer;\r\n }\r\n public get isTypeTransferCenter() {\r\n return this._props.type === OperationType.TransferCenter;\r\n }\r\n public get isInitialOperationTypeTransferCenter() {\r\n return this._props.initialOperationType === OperationType.TransferCenter;\r\n }\r\n public get isAutoLaunch() {\r\n return this._props.standbyActivationType === StandbyActivationType.AutoLaunch;\r\n }\r\n public get isCustomerActivation() {\r\n return this._props.standbyActivationType === StandbyActivationType.CustomerActivation;\r\n }\r\n\r\n public isAnyStatus(...operationStatus: OperationStatus[]) {\r\n return operationStatus.includes(this._props.status);\r\n }\r\n public isAnyType(...operationType: OperationType[]) {\r\n return operationType.includes(this._props.type);\r\n }\r\n public isAnyStandbyActivationType(...standbyActivationType: StandbyActivationType[]) {\r\n return (\r\n this._props.standbyActivationType != null &&\r\n standbyActivationType.includes(this._props.standbyActivationType)\r\n );\r\n }\r\n public isAnyInitialOperationType(...operationType: OperationType[]) {\r\n return (\r\n this._props.initialOperationType != null &&\r\n operationType.includes(this._props.initialOperationType)\r\n );\r\n }\r\n\r\n constructor(props: OperationProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n status: this._props.status,\r\n type: this._props.type,\r\n unitId: this._props.unitId,\r\n vehicleId: this._props.vehicleId,\r\n dateOperationStarted: this._props.dateOperationStarted,\r\n dateOperationEnded: this._props.dateOperationEnded,\r\n unitActivationTime: this._props.unitActivationTime,\r\n riskAnalysisNumber: this._props.riskAnalysisNumber,\r\n standbyActivationType: this._props.standbyActivationType,\r\n caller: this._props.caller,\r\n callbackNumber: this._props.callbackNumber,\r\n initialOperationType: this._props.initialOperationType,\r\n riskAnalysisAcknowledged: this._props.riskAnalysisAcknowledged,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllOperationEntities = (state: AppState) =>\r\n state.entityStores.operation.entities;\r\n\r\nexport const selectOperationById = (id: string) => (state: AppState) =>\r\n state.entityStores.operation.entities.get(id);\r\n\r\nexport const selectOperationMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.operation.meta.get(id);\r\n\r\nexport const selectOperationAndMetadataById = (id: string) =>\r\n createSelector(selectOperationById(id), selectOperationMetadataById(id), (operation, meta) => ({\r\n operation,\r\n meta,\r\n }));\r\n\r\nexport function selectOperationEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllOperationEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, OperationRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByStatus(status: OperationStatus) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByType(type: OperationType) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByDateOperationStarted(dateOperationStarted: Date) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.dateOperationStarted === dateOperationStarted).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByDateOperationEnded(dateOperationEnded: Date) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.dateOperationEnded === dateOperationEnded).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByUnitActivationTime(unitActivationTime: Date) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.unitActivationTime === unitActivationTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByRiskAnalysisNumber(riskAnalysisNumber: string) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.riskAnalysisNumber === riskAnalysisNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByStandbyActivationType(\r\n standbyActivationType: StandbyActivationType,\r\n) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.standbyActivationType === standbyActivationType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByCaller(caller: string) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.caller === caller).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByCallbackNumber(callbackNumber: string) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.callbackNumber === callbackNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByInitialOperationType(initialOperationType: OperationType) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.initialOperationType === initialOperationType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByRiskAnalysisAcknowledged(\r\n riskAnalysisAcknowledged: boolean,\r\n) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.riskAnalysisAcknowledged === riskAnalysisAcknowledged).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOperationEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllOperationEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface OutOfServiceEventNoteProps {\r\n id: string;\r\n outOfServiceEventId: string;\r\n content: string;\r\n noteTime: Date;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n isSystem: boolean;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class OutOfServiceEventNoteRecord extends Record({\r\n id: null as any,\r\n outOfServiceEventId: null as any,\r\n content: null as any,\r\n noteTime: null as any,\r\n authorId: null as any,\r\n noteCategory: null as any,\r\n noteMetadataJson: null as any,\r\n isSystem: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n outOfServiceEventId: string;\r\n content: string;\r\n noteTime: string | number | Date;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n isSystem: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): OutOfServiceEventNoteRecord {\r\n if (json == null) {\r\n throw new Error('OutOfServiceEventNoteRecord.fromJS: parameter cannot be null');\r\n }\r\n return new OutOfServiceEventNoteRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'OutOfServiceEventNoteJson.id'),\r\n outOfServiceEventId: getFromOrThrow(\r\n json,\r\n (j) => j.outOfServiceEventId,\r\n 'OutOfServiceEventNoteJson.outOfServiceEventId',\r\n ),\r\n content: getFromOrThrow(json, (j) => j.content, 'OutOfServiceEventNoteJson.content'),\r\n noteTime: new Date(\r\n getFromOrThrow(json, (j) => j.noteTime, 'OutOfServiceEventNoteJson.noteTime'),\r\n ),\r\n authorId: json.authorId,\r\n noteCategory: json.noteCategory,\r\n noteMetadataJson: json.noteMetadataJson,\r\n isSystem: getFromOrThrow(json, (j) => j.isSystem, 'OutOfServiceEventNoteJson.isSystem'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'OutOfServiceEventNoteJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n outOfServiceEventId: string;\r\n content: string;\r\n noteTime: string | number | Date;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n isSystem: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [OutOfServiceEventNoteRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('OutOfServiceEventNoteRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new OutOfServiceEventNoteRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'OutOfServiceEventNoteJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n outOfServiceEventId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.outOfServiceEventId,\r\n 'OutOfServiceEventNoteJson.outOfServiceEventId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n content: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.content, 'OutOfServiceEventNoteJson.content'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n noteTime: tryOrDefault(\r\n () =>\r\n new Date(getFromOrThrow(json, (j) => j.noteTime, 'OutOfServiceEventNoteJson.noteTime')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n authorId: tryOrDefault(\r\n () => json.authorId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n noteCategory: tryOrDefault(\r\n () => json.noteCategory,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n noteMetadataJson: tryOrDefault(\r\n () => json.noteMetadataJson,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isSystem: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isSystem, 'OutOfServiceEventNoteJson.isSystem'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'OutOfServiceEventNoteJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: OutOfServiceEventNoteProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('OutOfServiceEventNoteRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class OutOfServiceEventNoteViewModelBase implements OutOfServiceEventNoteProps {\r\n protected readonly _props: OutOfServiceEventNoteProps;\r\n private _json?: OutOfServiceEventNoteProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get outOfServiceEventId(): string {\r\n return this._props.outOfServiceEventId;\r\n }\r\n get content(): string {\r\n return this._props.content;\r\n }\r\n get noteTime(): Date {\r\n return this._props.noteTime;\r\n }\r\n get authorId(): string | null {\r\n return this._props.authorId;\r\n }\r\n get noteCategory(): string | null {\r\n return this._props.noteCategory;\r\n }\r\n get noteMetadataJson(): string | null {\r\n return this._props.noteMetadataJson;\r\n }\r\n get isSystem(): boolean {\r\n return this._props.isSystem;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: OutOfServiceEventNoteProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n outOfServiceEventId: this._props.outOfServiceEventId,\r\n content: this._props.content,\r\n noteTime: this._props.noteTime,\r\n authorId: this._props.authorId,\r\n noteCategory: this._props.noteCategory,\r\n noteMetadataJson: this._props.noteMetadataJson,\r\n isSystem: this._props.isSystem,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllOutOfServiceEventNoteEntities = (state: AppState) =>\r\n state.entityStores.outOfServiceEventNote.entities;\r\n\r\nexport const selectOutOfServiceEventNoteById = (id: string) => (state: AppState) =>\r\n state.entityStores.outOfServiceEventNote.entities.get(id);\r\n\r\nexport const selectOutOfServiceEventNoteMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.outOfServiceEventNote.meta.get(id);\r\n\r\nexport const selectOutOfServiceEventNoteAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectOutOfServiceEventNoteById(id),\r\n selectOutOfServiceEventNoteMetadataById(id),\r\n (outOfServiceEventNote, meta) => ({ outOfServiceEventNote, meta }),\r\n );\r\n\r\nexport function selectOutOfServiceEventNoteEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllOutOfServiceEventNoteEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, OutOfServiceEventNoteRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventNoteEntitiesByOutOfServiceEventId(\r\n outOfServiceEventId: string,\r\n) {\r\n return createSelector(selectAllOutOfServiceEventNoteEntities, (entities) =>\r\n entities.filter((e) => e.outOfServiceEventId === outOfServiceEventId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventNoteEntitiesByContent(content: string) {\r\n return createSelector(selectAllOutOfServiceEventNoteEntities, (entities) =>\r\n entities.filter((e) => e.content === content).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventNoteEntitiesByNoteTime(noteTime: Date) {\r\n return createSelector(selectAllOutOfServiceEventNoteEntities, (entities) =>\r\n entities.filter((e) => e.noteTime === noteTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventNoteEntitiesByAuthorId(authorId: string) {\r\n return createSelector(selectAllOutOfServiceEventNoteEntities, (entities) =>\r\n entities.filter((e) => e.authorId === authorId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventNoteEntitiesByNoteCategory(noteCategory: string) {\r\n return createSelector(selectAllOutOfServiceEventNoteEntities, (entities) =>\r\n entities.filter((e) => e.noteCategory === noteCategory).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventNoteEntitiesByNoteMetadataJson(noteMetadataJson: string) {\r\n return createSelector(selectAllOutOfServiceEventNoteEntities, (entities) =>\r\n entities.filter((e) => e.noteMetadataJson === noteMetadataJson).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventNoteEntitiesByIsSystem(isSystem: boolean) {\r\n return createSelector(selectAllOutOfServiceEventNoteEntities, (entities) =>\r\n entities.filter((e) => e.isSystem === isSystem).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectOutOfServiceEventNoteEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllOutOfServiceEventNoteEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface PassdownLogAcknowledgementProps {\r\n id: string;\r\n passdownLogId: string;\r\n dateAcknowledged: Date;\r\n acknowledgedById: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class PassdownLogAcknowledgementRecord extends Record({\r\n id: null as any,\r\n passdownLogId: null as any,\r\n dateAcknowledged: null as any,\r\n acknowledgedById: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n passdownLogId: string;\r\n dateAcknowledged: string | number | Date;\r\n acknowledgedById: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): PassdownLogAcknowledgementRecord {\r\n if (json == null) {\r\n throw new Error('PassdownLogAcknowledgementRecord.fromJS: parameter cannot be null');\r\n }\r\n return new PassdownLogAcknowledgementRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'PassdownLogAcknowledgementJson.id'),\r\n passdownLogId: getFromOrThrow(\r\n json,\r\n (j) => j.passdownLogId,\r\n 'PassdownLogAcknowledgementJson.passdownLogId',\r\n ),\r\n dateAcknowledged: new Date(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.dateAcknowledged,\r\n 'PassdownLogAcknowledgementJson.dateAcknowledged',\r\n ),\r\n ),\r\n acknowledgedById: getFromOrThrow(\r\n json,\r\n (j) => j.acknowledgedById,\r\n 'PassdownLogAcknowledgementJson.acknowledgedById',\r\n ),\r\n companyId: getFromOrThrow(\r\n json,\r\n (j) => j.companyId,\r\n 'PassdownLogAcknowledgementJson.companyId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n passdownLogId: string;\r\n dateAcknowledged: string | number | Date;\r\n acknowledgedById: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [PassdownLogAcknowledgementRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('PassdownLogAcknowledgementRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new PassdownLogAcknowledgementRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'PassdownLogAcknowledgementJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n passdownLogId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.passdownLogId,\r\n 'PassdownLogAcknowledgementJson.passdownLogId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateAcknowledged: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.dateAcknowledged,\r\n 'PassdownLogAcknowledgementJson.dateAcknowledged',\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n acknowledgedById: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.acknowledgedById,\r\n 'PassdownLogAcknowledgementJson.acknowledgedById',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'PassdownLogAcknowledgementJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: PassdownLogAcknowledgementProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('PassdownLogAcknowledgementRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class PassdownLogAcknowledgementViewModelBase\r\n implements PassdownLogAcknowledgementProps\r\n{\r\n protected readonly _props: PassdownLogAcknowledgementProps;\r\n private _json?: PassdownLogAcknowledgementProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get passdownLogId(): string {\r\n return this._props.passdownLogId;\r\n }\r\n get dateAcknowledged(): Date {\r\n return this._props.dateAcknowledged;\r\n }\r\n get acknowledgedById(): string {\r\n return this._props.acknowledgedById;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: PassdownLogAcknowledgementProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n passdownLogId: this._props.passdownLogId,\r\n dateAcknowledged: this._props.dateAcknowledged,\r\n acknowledgedById: this._props.acknowledgedById,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllPassdownLogAcknowledgementEntities = (state: AppState) =>\r\n state.entityStores.passdownLogAcknowledgement.entities;\r\n\r\nexport const selectPassdownLogAcknowledgementById = (id: string) => (state: AppState) =>\r\n state.entityStores.passdownLogAcknowledgement.entities.get(id);\r\n\r\nexport const selectPassdownLogAcknowledgementMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.passdownLogAcknowledgement.meta.get(id);\r\n\r\nexport const selectPassdownLogAcknowledgementAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectPassdownLogAcknowledgementById(id),\r\n selectPassdownLogAcknowledgementMetadataById(id),\r\n (passdownLogAcknowledgement, meta) => ({ passdownLogAcknowledgement, meta }),\r\n );\r\n\r\nexport function selectPassdownLogAcknowledgementEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllPassdownLogAcknowledgementEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, PassdownLogAcknowledgementRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectPassdownLogAcknowledgementEntitiesByPassdownLogId(passdownLogId: string) {\r\n return createSelector(selectAllPassdownLogAcknowledgementEntities, (entities) =>\r\n entities.filter((e) => e.passdownLogId === passdownLogId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPassdownLogAcknowledgementEntitiesByDateAcknowledged(dateAcknowledged: Date) {\r\n return createSelector(selectAllPassdownLogAcknowledgementEntities, (entities) =>\r\n entities.filter((e) => e.dateAcknowledged === dateAcknowledged).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPassdownLogAcknowledgementEntitiesByAcknowledgedById(\r\n acknowledgedById: string,\r\n) {\r\n return createSelector(selectAllPassdownLogAcknowledgementEntities, (entities) =>\r\n entities.filter((e) => e.acknowledgedById === acknowledgedById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPassdownLogAcknowledgementEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllPassdownLogAcknowledgementEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface PassdownLogProps {\r\n id: string;\r\n name: string;\r\n regionId: string;\r\n logDate: Date;\r\n body: string;\r\n requiresAcknowledgement: boolean;\r\n dateAcknowledged: Date | null;\r\n acknowledgedById: string | null;\r\n authorId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class PassdownLogRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n regionId: null as any,\r\n logDate: null as any,\r\n body: null as any,\r\n requiresAcknowledgement: null as any,\r\n dateAcknowledged: null as any,\r\n acknowledgedById: null as any,\r\n authorId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n regionId: string;\r\n logDate: string | number | Date;\r\n body: string;\r\n requiresAcknowledgement: boolean;\r\n dateAcknowledged: string | number | Date | null;\r\n acknowledgedById: string | null;\r\n authorId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): PassdownLogRecord {\r\n if (json == null) {\r\n throw new Error('PassdownLogRecord.fromJS: parameter cannot be null');\r\n }\r\n return new PassdownLogRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'PassdownLogJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'PassdownLogJson.name'),\r\n regionId: getFromOrThrow(json, (j) => j.regionId, 'PassdownLogJson.regionId'),\r\n logDate: new Date(getFromOrThrow(json, (j) => j.logDate, 'PassdownLogJson.logDate')),\r\n body: getFromOrThrow(json, (j) => j.body, 'PassdownLogJson.body'),\r\n requiresAcknowledgement: getFromOrThrow(\r\n json,\r\n (j) => j.requiresAcknowledgement,\r\n 'PassdownLogJson.requiresAcknowledgement',\r\n ),\r\n dateAcknowledged: json.dateAcknowledged != null ? new Date(json.dateAcknowledged) : null,\r\n acknowledgedById: json.acknowledgedById,\r\n authorId: json.authorId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'PassdownLogJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n regionId: string;\r\n logDate: string | number | Date;\r\n body: string;\r\n requiresAcknowledgement: boolean;\r\n dateAcknowledged: string | number | Date | null;\r\n acknowledgedById: string | null;\r\n authorId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [PassdownLogRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('PassdownLogRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new PassdownLogRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'PassdownLogJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'PassdownLogJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.regionId, 'PassdownLogJson.regionId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n logDate: tryOrDefault(\r\n () => new Date(getFromOrThrow(json, (j) => j.logDate, 'PassdownLogJson.logDate')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n body: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.body, 'PassdownLogJson.body'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requiresAcknowledgement: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requiresAcknowledgement,\r\n 'PassdownLogJson.requiresAcknowledgement',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateAcknowledged: tryOrDefault(\r\n () => (json.dateAcknowledged != null ? new Date(json.dateAcknowledged) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n acknowledgedById: tryOrDefault(\r\n () => json.acknowledgedById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n authorId: tryOrDefault(\r\n () => json.authorId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'PassdownLogJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: PassdownLogProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('PassdownLogRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class PassdownLogViewModelBase implements PassdownLogProps {\r\n protected readonly _props: PassdownLogProps;\r\n private _json?: PassdownLogProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get regionId(): string {\r\n return this._props.regionId;\r\n }\r\n get logDate(): Date {\r\n return this._props.logDate;\r\n }\r\n get body(): string {\r\n return this._props.body;\r\n }\r\n get requiresAcknowledgement(): boolean {\r\n return this._props.requiresAcknowledgement;\r\n }\r\n get dateAcknowledged(): Date | null {\r\n return this._props.dateAcknowledged;\r\n }\r\n get acknowledgedById(): string | null {\r\n return this._props.acknowledgedById;\r\n }\r\n get authorId(): string | null {\r\n return this._props.authorId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: PassdownLogProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n regionId: this._props.regionId,\r\n logDate: this._props.logDate,\r\n body: this._props.body,\r\n requiresAcknowledgement: this._props.requiresAcknowledgement,\r\n dateAcknowledged: this._props.dateAcknowledged,\r\n acknowledgedById: this._props.acknowledgedById,\r\n authorId: this._props.authorId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllPassdownLogEntities = (state: AppState) =>\r\n state.entityStores.passdownLog.entities;\r\n\r\nexport const selectPassdownLogById = (id: string) => (state: AppState) =>\r\n state.entityStores.passdownLog.entities.get(id);\r\n\r\nexport const selectPassdownLogMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.passdownLog.meta.get(id);\r\n\r\nexport const selectPassdownLogAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectPassdownLogById(id),\r\n selectPassdownLogMetadataById(id),\r\n (passdownLog, meta) => ({ passdownLog, meta }),\r\n );\r\n\r\nexport function selectPassdownLogEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllPassdownLogEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, PassdownLogRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectPassdownLogEntitiesByName(name: string) {\r\n return createSelector(selectAllPassdownLogEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPassdownLogEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllPassdownLogEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPassdownLogEntitiesByLogDate(logDate: Date) {\r\n return createSelector(selectAllPassdownLogEntities, (entities) =>\r\n entities.filter((e) => e.logDate === logDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPassdownLogEntitiesByBody(body: string) {\r\n return createSelector(selectAllPassdownLogEntities, (entities) =>\r\n entities.filter((e) => e.body === body).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPassdownLogEntitiesByRequiresAcknowledgement(\r\n requiresAcknowledgement: boolean,\r\n) {\r\n return createSelector(selectAllPassdownLogEntities, (entities) =>\r\n entities.filter((e) => e.requiresAcknowledgement === requiresAcknowledgement).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPassdownLogEntitiesByDateAcknowledged(dateAcknowledged: Date) {\r\n return createSelector(selectAllPassdownLogEntities, (entities) =>\r\n entities.filter((e) => e.dateAcknowledged === dateAcknowledged).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPassdownLogEntitiesByAcknowledgedById(acknowledgedById: string) {\r\n return createSelector(selectAllPassdownLogEntities, (entities) =>\r\n entities.filter((e) => e.acknowledgedById === acknowledgedById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPassdownLogEntitiesByAuthorId(authorId: string) {\r\n return createSelector(selectAllPassdownLogEntities, (entities) =>\r\n entities.filter((e) => e.authorId === authorId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPassdownLogEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllPassdownLogEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { Gender } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface PatientProps {\r\n id: string;\r\n name: string;\r\n firstName: string | null;\r\n lastName: string | null;\r\n gender: Gender;\r\n dateOfBirth: Date | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class PatientRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n firstName: null as any,\r\n lastName: null as any,\r\n gender: null as any,\r\n dateOfBirth: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n firstName: string | null;\r\n lastName: string | null;\r\n gender: Gender;\r\n dateOfBirth: string | number | Date | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): PatientRecord {\r\n if (json == null) {\r\n throw new Error('PatientRecord.fromJS: parameter cannot be null');\r\n }\r\n return new PatientRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'PatientJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'PatientJson.name'),\r\n firstName: json.firstName,\r\n lastName: json.lastName,\r\n gender: getFromOrThrow(json, (j) => j.gender, 'PatientJson.gender'),\r\n dateOfBirth: json.dateOfBirth != null ? new Date(json.dateOfBirth) : null,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'PatientJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n firstName: string | null;\r\n lastName: string | null;\r\n gender: Gender;\r\n dateOfBirth: string | number | Date | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [PatientRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('PatientRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new PatientRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'PatientJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'PatientJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n firstName: tryOrDefault(\r\n () => json.firstName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastName: tryOrDefault(\r\n () => json.lastName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n gender: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.gender, 'PatientJson.gender'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateOfBirth: tryOrDefault(\r\n () => (json.dateOfBirth != null ? new Date(json.dateOfBirth) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'PatientJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: PatientProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('PatientRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class PatientViewModelBase implements PatientProps {\r\n protected readonly _props: PatientProps;\r\n private _json?: PatientProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get firstName(): string | null {\r\n return this._props.firstName;\r\n }\r\n get lastName(): string | null {\r\n return this._props.lastName;\r\n }\r\n get gender(): Gender {\r\n return this._props.gender;\r\n }\r\n get dateOfBirth(): Date | null {\r\n return this._props.dateOfBirth;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isFemale() {\r\n return this._props.gender === Gender.Female;\r\n }\r\n public get isMale() {\r\n return this._props.gender === Gender.Male;\r\n }\r\n public get isOther() {\r\n return this._props.gender === Gender.Other;\r\n }\r\n public get isUnspecified() {\r\n return this._props.gender === Gender.Unspecified;\r\n }\r\n\r\n public isAnyGender(...gender: Gender[]) {\r\n return gender.includes(this._props.gender);\r\n }\r\n\r\n constructor(props: PatientProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n firstName: this._props.firstName,\r\n lastName: this._props.lastName,\r\n gender: this._props.gender,\r\n dateOfBirth: this._props.dateOfBirth,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllPatientEntities = (state: AppState) => state.entityStores.patient.entities;\r\n\r\nexport const selectPatientById = (id: string) => (state: AppState) =>\r\n state.entityStores.patient.entities.get(id);\r\n\r\nexport const selectPatientMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.patient.meta.get(id);\r\n\r\nexport const selectPatientAndMetadataById = (id: string) =>\r\n createSelector(selectPatientById(id), selectPatientMetadataById(id), (patient, meta) => ({\r\n patient,\r\n meta,\r\n }));\r\n\r\nexport function selectPatientEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllPatientEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, PatientRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectPatientEntitiesByName(name: string) {\r\n return createSelector(selectAllPatientEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPatientEntitiesByFirstName(firstName: string) {\r\n return createSelector(selectAllPatientEntities, (entities) =>\r\n entities.filter((e) => e.firstName === firstName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPatientEntitiesByLastName(lastName: string) {\r\n return createSelector(selectAllPatientEntities, (entities) =>\r\n entities.filter((e) => e.lastName === lastName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPatientEntitiesByGender(gender: Gender) {\r\n return createSelector(selectAllPatientEntities, (entities) =>\r\n entities.filter((e) => e.gender === gender).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPatientEntitiesByDateOfBirth(dateOfBirth: Date) {\r\n return createSelector(selectAllPatientEntities, (entities) =>\r\n entities.filter((e) => e.dateOfBirth === dateOfBirth).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPatientEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllPatientEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface PositionReportAlertProps {\r\n id: string;\r\n vehicleId: string;\r\n hasReceivedQualifyingReport: boolean;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class PositionReportAlertRecord extends Record({\r\n id: null as any,\r\n vehicleId: null as any,\r\n hasReceivedQualifyingReport: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n vehicleId: string;\r\n hasReceivedQualifyingReport: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): PositionReportAlertRecord {\r\n if (json == null) {\r\n throw new Error('PositionReportAlertRecord.fromJS: parameter cannot be null');\r\n }\r\n return new PositionReportAlertRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'PositionReportAlertJson.id'),\r\n vehicleId: getFromOrThrow(json, (j) => j.vehicleId, 'PositionReportAlertJson.vehicleId'),\r\n hasReceivedQualifyingReport: getFromOrThrow(\r\n json,\r\n (j) => j.hasReceivedQualifyingReport,\r\n 'PositionReportAlertJson.hasReceivedQualifyingReport',\r\n ),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'PositionReportAlertJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n vehicleId: string;\r\n hasReceivedQualifyingReport: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [PositionReportAlertRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('PositionReportAlertRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new PositionReportAlertRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'PositionReportAlertJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.vehicleId, 'PositionReportAlertJson.vehicleId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n hasReceivedQualifyingReport: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.hasReceivedQualifyingReport,\r\n 'PositionReportAlertJson.hasReceivedQualifyingReport',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'PositionReportAlertJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: PositionReportAlertProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('PositionReportAlertRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class PositionReportAlertViewModelBase implements PositionReportAlertProps {\r\n protected readonly _props: PositionReportAlertProps;\r\n private _json?: PositionReportAlertProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get vehicleId(): string {\r\n return this._props.vehicleId;\r\n }\r\n get hasReceivedQualifyingReport(): boolean {\r\n return this._props.hasReceivedQualifyingReport;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: PositionReportAlertProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n vehicleId: this._props.vehicleId,\r\n hasReceivedQualifyingReport: this._props.hasReceivedQualifyingReport,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllPositionReportAlertEntities = (state: AppState) =>\r\n state.entityStores.positionReportAlert.entities;\r\n\r\nexport const selectPositionReportAlertById = (id: string) => (state: AppState) =>\r\n state.entityStores.positionReportAlert.entities.get(id);\r\n\r\nexport const selectPositionReportAlertMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.positionReportAlert.meta.get(id);\r\n\r\nexport const selectPositionReportAlertAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectPositionReportAlertById(id),\r\n selectPositionReportAlertMetadataById(id),\r\n (positionReportAlert, meta) => ({ positionReportAlert, meta }),\r\n );\r\n\r\nexport function selectPositionReportAlertEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllPositionReportAlertEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, PositionReportAlertRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectPositionReportAlertEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllPositionReportAlertEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportAlertEntitiesByHasReceivedQualifyingReport(\r\n hasReceivedQualifyingReport: boolean,\r\n) {\r\n return createSelector(selectAllPositionReportAlertEntities, (entities) =>\r\n entities\r\n .filter((e) => e.hasReceivedQualifyingReport === hasReceivedQualifyingReport)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportAlertEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllPositionReportAlertEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { PositionReportSource } from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n CoordinatesRecord,\r\n CoordinatesProps,\r\n} from 'src/store/generated/coordinates-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface PositionReportArchiveProps {\r\n id: string;\r\n positionTime: Date;\r\n source: PositionReportSource;\r\n dateArchived: Date;\r\n tripId: string;\r\n coordinates: CoordinatesProps | null;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: Date | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class PositionReportArchiveRecord extends Record({\r\n id: null as any,\r\n positionTime: null as any,\r\n source: null as any,\r\n dateArchived: null as any,\r\n tripId: null as any,\r\n coordinates: null as any,\r\n altitude: null as any,\r\n speedInKnots: null as any,\r\n heading: null as any,\r\n estimatedMinutesEnRoute: null as any,\r\n fuelRemaining: null as any,\r\n timezoneCd: null as any,\r\n dateConfirmed: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n positionTime: string | number | Date;\r\n source: PositionReportSource;\r\n dateArchived: string | number | Date;\r\n tripId: string;\r\n coordinates: any;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: string | number | Date | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): PositionReportArchiveRecord {\r\n if (json == null) {\r\n throw new Error('PositionReportArchiveRecord.fromJS: parameter cannot be null');\r\n }\r\n return new PositionReportArchiveRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'PositionReportArchiveJson.id'),\r\n positionTime: new Date(\r\n getFromOrThrow(json, (j) => j.positionTime, 'PositionReportArchiveJson.positionTime'),\r\n ),\r\n source: getFromOrThrow(json, (j) => j.source, 'PositionReportArchiveJson.source'),\r\n dateArchived: new Date(\r\n getFromOrThrow(json, (j) => j.dateArchived, 'PositionReportArchiveJson.dateArchived'),\r\n ),\r\n tripId: getFromOrThrow(json, (j) => j.tripId, 'PositionReportArchiveJson.tripId'),\r\n coordinates: json.coordinates != null ? new CoordinatesRecord(json.coordinates) : null,\r\n altitude: json.altitude,\r\n speedInKnots: json.speedInKnots,\r\n heading: json.heading,\r\n estimatedMinutesEnRoute: json.estimatedMinutesEnRoute,\r\n fuelRemaining: json.fuelRemaining,\r\n timezoneCd: json.timezoneCd,\r\n dateConfirmed: json.dateConfirmed != null ? new Date(json.dateConfirmed) : null,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'PositionReportArchiveJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n positionTime: string | number | Date;\r\n source: PositionReportSource;\r\n dateArchived: string | number | Date;\r\n tripId: string;\r\n coordinates: any;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: string | number | Date | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [PositionReportArchiveRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('PositionReportArchiveRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new PositionReportArchiveRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'PositionReportArchiveJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n positionTime: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(json, (j) => j.positionTime, 'PositionReportArchiveJson.positionTime'),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n source: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.source, 'PositionReportArchiveJson.source'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateArchived: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(json, (j) => j.dateArchived, 'PositionReportArchiveJson.dateArchived'),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tripId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.tripId, 'PositionReportArchiveJson.tripId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n coordinates: tryOrDefault(\r\n () => (json.coordinates != null ? new CoordinatesRecord(json.coordinates) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n altitude: tryOrDefault(\r\n () => json.altitude,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n speedInKnots: tryOrDefault(\r\n () => json.speedInKnots,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n heading: tryOrDefault(\r\n () => json.heading,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedMinutesEnRoute: tryOrDefault(\r\n () => json.estimatedMinutesEnRoute,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fuelRemaining: tryOrDefault(\r\n () => json.fuelRemaining,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timezoneCd: tryOrDefault(\r\n () => json.timezoneCd,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateConfirmed: tryOrDefault(\r\n () => (json.dateConfirmed != null ? new Date(json.dateConfirmed) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'PositionReportArchiveJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: PositionReportArchiveProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('PositionReportArchiveRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class PositionReportArchiveViewModelBase implements PositionReportArchiveProps {\r\n protected readonly _props: PositionReportArchiveProps;\r\n private _json?: PositionReportArchiveProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get positionTime(): Date {\r\n return this._props.positionTime;\r\n }\r\n get source(): PositionReportSource {\r\n return this._props.source;\r\n }\r\n get dateArchived(): Date {\r\n return this._props.dateArchived;\r\n }\r\n get tripId(): string {\r\n return this._props.tripId;\r\n }\r\n get coordinates(): CoordinatesProps | null {\r\n return this._props.coordinates;\r\n }\r\n get altitude(): number | null {\r\n return this._props.altitude;\r\n }\r\n get speedInKnots(): number | null {\r\n return this._props.speedInKnots;\r\n }\r\n get heading(): number | null {\r\n return this._props.heading;\r\n }\r\n get estimatedMinutesEnRoute(): number | null {\r\n return this._props.estimatedMinutesEnRoute;\r\n }\r\n get fuelRemaining(): string | null {\r\n return this._props.fuelRemaining;\r\n }\r\n get timezoneCd(): string | null {\r\n return this._props.timezoneCd;\r\n }\r\n get dateConfirmed(): Date | null {\r\n return this._props.dateConfirmed;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isGpsAuto() {\r\n return this._props.source === PositionReportSource.GpsAuto;\r\n }\r\n public get isGpsManual() {\r\n return this._props.source === PositionReportSource.GpsManual;\r\n }\r\n public get isPilot() {\r\n return this._props.source === PositionReportSource.Pilot;\r\n }\r\n public get isTCS() {\r\n return this._props.source === PositionReportSource.TCS;\r\n }\r\n\r\n public isAnySource(...positionReportSource: PositionReportSource[]) {\r\n return positionReportSource.includes(this._props.source);\r\n }\r\n\r\n constructor(props: PositionReportArchiveProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n positionTime: this._props.positionTime,\r\n source: this._props.source,\r\n dateArchived: this._props.dateArchived,\r\n tripId: this._props.tripId,\r\n coordinates: this._props.coordinates,\r\n altitude: this._props.altitude,\r\n speedInKnots: this._props.speedInKnots,\r\n heading: this._props.heading,\r\n estimatedMinutesEnRoute: this._props.estimatedMinutesEnRoute,\r\n fuelRemaining: this._props.fuelRemaining,\r\n timezoneCd: this._props.timezoneCd,\r\n dateConfirmed: this._props.dateConfirmed,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllPositionReportArchiveEntities = (state: AppState) =>\r\n state.entityStores.positionReportArchive.entities;\r\n\r\nexport const selectPositionReportArchiveById = (id: string) => (state: AppState) =>\r\n state.entityStores.positionReportArchive.entities.get(id);\r\n\r\nexport const selectPositionReportArchiveMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.positionReportArchive.meta.get(id);\r\n\r\nexport const selectPositionReportArchiveAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectPositionReportArchiveById(id),\r\n selectPositionReportArchiveMetadataById(id),\r\n (positionReportArchive, meta) => ({ positionReportArchive, meta }),\r\n );\r\n\r\nexport function selectPositionReportArchiveEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllPositionReportArchiveEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, PositionReportArchiveRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectPositionReportArchiveEntitiesByPositionTime(positionTime: Date) {\r\n return createSelector(selectAllPositionReportArchiveEntities, (entities) =>\r\n entities.filter((e) => e.positionTime === positionTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportArchiveEntitiesBySource(source: PositionReportSource) {\r\n return createSelector(selectAllPositionReportArchiveEntities, (entities) =>\r\n entities.filter((e) => e.source === source).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportArchiveEntitiesByDateArchived(dateArchived: Date) {\r\n return createSelector(selectAllPositionReportArchiveEntities, (entities) =>\r\n entities.filter((e) => e.dateArchived === dateArchived).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportArchiveEntitiesByTripId(tripId: string) {\r\n return createSelector(selectAllPositionReportArchiveEntities, (entities) =>\r\n entities.filter((e) => e.tripId === tripId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportArchiveEntitiesByAltitude(altitude: number) {\r\n return createSelector(selectAllPositionReportArchiveEntities, (entities) =>\r\n entities.filter((e) => e.altitude === altitude).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportArchiveEntitiesBySpeedInKnots(speedInKnots: number) {\r\n return createSelector(selectAllPositionReportArchiveEntities, (entities) =>\r\n entities.filter((e) => e.speedInKnots === speedInKnots).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportArchiveEntitiesByHeading(heading: number) {\r\n return createSelector(selectAllPositionReportArchiveEntities, (entities) =>\r\n entities.filter((e) => e.heading === heading).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportArchiveEntitiesByEstimatedMinutesEnRoute(\r\n estimatedMinutesEnRoute: number,\r\n) {\r\n return createSelector(selectAllPositionReportArchiveEntities, (entities) =>\r\n entities.filter((e) => e.estimatedMinutesEnRoute === estimatedMinutesEnRoute).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportArchiveEntitiesByFuelRemaining(fuelRemaining: string) {\r\n return createSelector(selectAllPositionReportArchiveEntities, (entities) =>\r\n entities.filter((e) => e.fuelRemaining === fuelRemaining).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportArchiveEntitiesByTimezoneCd(timezoneCd: string) {\r\n return createSelector(selectAllPositionReportArchiveEntities, (entities) =>\r\n entities.filter((e) => e.timezoneCd === timezoneCd).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportArchiveEntitiesByDateConfirmed(dateConfirmed: Date) {\r\n return createSelector(selectAllPositionReportArchiveEntities, (entities) =>\r\n entities.filter((e) => e.dateConfirmed === dateConfirmed).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportArchiveEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllPositionReportArchiveEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { PositionReportSource } from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n CoordinatesRecord,\r\n CoordinatesProps,\r\n} from 'src/store/generated/coordinates-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface PositionReportProps {\r\n id: string;\r\n positionTime: Date;\r\n source: PositionReportSource;\r\n coordinates: CoordinatesProps | null;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: Date | null;\r\n tripId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class PositionReportRecord extends Record({\r\n id: null as any,\r\n positionTime: null as any,\r\n source: null as any,\r\n coordinates: null as any,\r\n altitude: null as any,\r\n speedInKnots: null as any,\r\n heading: null as any,\r\n estimatedMinutesEnRoute: null as any,\r\n fuelRemaining: null as any,\r\n timezoneCd: null as any,\r\n dateConfirmed: null as any,\r\n tripId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n positionTime: string | number | Date;\r\n source: PositionReportSource;\r\n coordinates: any;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: string | number | Date | null;\r\n tripId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): PositionReportRecord {\r\n if (json == null) {\r\n throw new Error('PositionReportRecord.fromJS: parameter cannot be null');\r\n }\r\n return new PositionReportRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'PositionReportJson.id'),\r\n positionTime: new Date(\r\n getFromOrThrow(json, (j) => j.positionTime, 'PositionReportJson.positionTime'),\r\n ),\r\n source: getFromOrThrow(json, (j) => j.source, 'PositionReportJson.source'),\r\n coordinates: json.coordinates != null ? new CoordinatesRecord(json.coordinates) : null,\r\n altitude: json.altitude,\r\n speedInKnots: json.speedInKnots,\r\n heading: json.heading,\r\n estimatedMinutesEnRoute: json.estimatedMinutesEnRoute,\r\n fuelRemaining: json.fuelRemaining,\r\n timezoneCd: json.timezoneCd,\r\n dateConfirmed: json.dateConfirmed != null ? new Date(json.dateConfirmed) : null,\r\n tripId: getFromOrThrow(json, (j) => j.tripId, 'PositionReportJson.tripId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'PositionReportJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n positionTime: string | number | Date;\r\n source: PositionReportSource;\r\n coordinates: any;\r\n altitude: number | null;\r\n speedInKnots: number | null;\r\n heading: number | null;\r\n estimatedMinutesEnRoute: number | null;\r\n fuelRemaining: string | null;\r\n timezoneCd: string | null;\r\n dateConfirmed: string | number | Date | null;\r\n tripId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [PositionReportRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('PositionReportRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new PositionReportRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'PositionReportJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n positionTime: tryOrDefault(\r\n () =>\r\n new Date(getFromOrThrow(json, (j) => j.positionTime, 'PositionReportJson.positionTime')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n source: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.source, 'PositionReportJson.source'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n coordinates: tryOrDefault(\r\n () => (json.coordinates != null ? new CoordinatesRecord(json.coordinates) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n altitude: tryOrDefault(\r\n () => json.altitude,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n speedInKnots: tryOrDefault(\r\n () => json.speedInKnots,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n heading: tryOrDefault(\r\n () => json.heading,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedMinutesEnRoute: tryOrDefault(\r\n () => json.estimatedMinutesEnRoute,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fuelRemaining: tryOrDefault(\r\n () => json.fuelRemaining,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timezoneCd: tryOrDefault(\r\n () => json.timezoneCd,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateConfirmed: tryOrDefault(\r\n () => (json.dateConfirmed != null ? new Date(json.dateConfirmed) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tripId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.tripId, 'PositionReportJson.tripId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'PositionReportJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: PositionReportProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('PositionReportRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class PositionReportViewModelBase implements PositionReportProps {\r\n protected readonly _props: PositionReportProps;\r\n private _json?: PositionReportProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get positionTime(): Date {\r\n return this._props.positionTime;\r\n }\r\n get source(): PositionReportSource {\r\n return this._props.source;\r\n }\r\n get coordinates(): CoordinatesProps | null {\r\n return this._props.coordinates;\r\n }\r\n get altitude(): number | null {\r\n return this._props.altitude;\r\n }\r\n get speedInKnots(): number | null {\r\n return this._props.speedInKnots;\r\n }\r\n get heading(): number | null {\r\n return this._props.heading;\r\n }\r\n get estimatedMinutesEnRoute(): number | null {\r\n return this._props.estimatedMinutesEnRoute;\r\n }\r\n get fuelRemaining(): string | null {\r\n return this._props.fuelRemaining;\r\n }\r\n get timezoneCd(): string | null {\r\n return this._props.timezoneCd;\r\n }\r\n get dateConfirmed(): Date | null {\r\n return this._props.dateConfirmed;\r\n }\r\n get tripId(): string {\r\n return this._props.tripId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isGpsAuto() {\r\n return this._props.source === PositionReportSource.GpsAuto;\r\n }\r\n public get isGpsManual() {\r\n return this._props.source === PositionReportSource.GpsManual;\r\n }\r\n public get isPilot() {\r\n return this._props.source === PositionReportSource.Pilot;\r\n }\r\n public get isTCS() {\r\n return this._props.source === PositionReportSource.TCS;\r\n }\r\n\r\n public isAnySource(...positionReportSource: PositionReportSource[]) {\r\n return positionReportSource.includes(this._props.source);\r\n }\r\n\r\n constructor(props: PositionReportProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n positionTime: this._props.positionTime,\r\n source: this._props.source,\r\n coordinates: this._props.coordinates,\r\n altitude: this._props.altitude,\r\n speedInKnots: this._props.speedInKnots,\r\n heading: this._props.heading,\r\n estimatedMinutesEnRoute: this._props.estimatedMinutesEnRoute,\r\n fuelRemaining: this._props.fuelRemaining,\r\n timezoneCd: this._props.timezoneCd,\r\n dateConfirmed: this._props.dateConfirmed,\r\n tripId: this._props.tripId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllPositionReportEntities = (state: AppState) =>\r\n state.entityStores.positionReport.entities;\r\n\r\nexport const selectPositionReportById = (id: string) => (state: AppState) =>\r\n state.entityStores.positionReport.entities.get(id);\r\n\r\nexport const selectPositionReportMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.positionReport.meta.get(id);\r\n\r\nexport const selectPositionReportAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectPositionReportById(id),\r\n selectPositionReportMetadataById(id),\r\n (positionReport, meta) => ({ positionReport, meta }),\r\n );\r\n\r\nexport function selectPositionReportEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllPositionReportEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, PositionReportRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectPositionReportEntitiesByPositionTime(positionTime: Date) {\r\n return createSelector(selectAllPositionReportEntities, (entities) =>\r\n entities.filter((e) => e.positionTime === positionTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportEntitiesBySource(source: PositionReportSource) {\r\n return createSelector(selectAllPositionReportEntities, (entities) =>\r\n entities.filter((e) => e.source === source).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportEntitiesByAltitude(altitude: number) {\r\n return createSelector(selectAllPositionReportEntities, (entities) =>\r\n entities.filter((e) => e.altitude === altitude).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportEntitiesBySpeedInKnots(speedInKnots: number) {\r\n return createSelector(selectAllPositionReportEntities, (entities) =>\r\n entities.filter((e) => e.speedInKnots === speedInKnots).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportEntitiesByHeading(heading: number) {\r\n return createSelector(selectAllPositionReportEntities, (entities) =>\r\n entities.filter((e) => e.heading === heading).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportEntitiesByEstimatedMinutesEnRoute(\r\n estimatedMinutesEnRoute: number,\r\n) {\r\n return createSelector(selectAllPositionReportEntities, (entities) =>\r\n entities.filter((e) => e.estimatedMinutesEnRoute === estimatedMinutesEnRoute).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportEntitiesByFuelRemaining(fuelRemaining: string) {\r\n return createSelector(selectAllPositionReportEntities, (entities) =>\r\n entities.filter((e) => e.fuelRemaining === fuelRemaining).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportEntitiesByTimezoneCd(timezoneCd: string) {\r\n return createSelector(selectAllPositionReportEntities, (entities) =>\r\n entities.filter((e) => e.timezoneCd === timezoneCd).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportEntitiesByDateConfirmed(dateConfirmed: Date) {\r\n return createSelector(selectAllPositionReportEntities, (entities) =>\r\n entities.filter((e) => e.dateConfirmed === dateConfirmed).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportEntitiesByTripId(tripId: string) {\r\n return createSelector(selectAllPositionReportEntities, (entities) =>\r\n entities.filter((e) => e.tripId === tripId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPositionReportEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllPositionReportEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface QuestionChoiceProps {\r\n id: string;\r\n label: string;\r\n value: string;\r\n questionId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class QuestionChoiceRecord extends Record({\r\n id: null as any,\r\n label: null as any,\r\n value: null as any,\r\n questionId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n label: string;\r\n value: string;\r\n questionId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): QuestionChoiceRecord {\r\n if (json == null) {\r\n throw new Error('QuestionChoiceRecord.fromJS: parameter cannot be null');\r\n }\r\n return new QuestionChoiceRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'QuestionChoiceJson.id'),\r\n label: getFromOrThrow(json, (j) => j.label, 'QuestionChoiceJson.label'),\r\n value: getFromOrThrow(json, (j) => j.value, 'QuestionChoiceJson.value'),\r\n questionId: getFromOrThrow(json, (j) => j.questionId, 'QuestionChoiceJson.questionId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n label: string;\r\n value: string;\r\n questionId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [QuestionChoiceRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('QuestionChoiceRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new QuestionChoiceRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'QuestionChoiceJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n label: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.label, 'QuestionChoiceJson.label'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n value: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.value, 'QuestionChoiceJson.value'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n questionId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.questionId, 'QuestionChoiceJson.questionId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: QuestionChoiceProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('QuestionChoiceRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class QuestionChoiceViewModelBase implements QuestionChoiceProps {\r\n protected readonly _props: QuestionChoiceProps;\r\n private _json?: QuestionChoiceProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get label(): string {\r\n return this._props.label;\r\n }\r\n get value(): string {\r\n return this._props.value;\r\n }\r\n get questionId(): string {\r\n return this._props.questionId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: QuestionChoiceProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n label: this._props.label,\r\n value: this._props.value,\r\n questionId: this._props.questionId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllQuestionChoiceEntities = (state: AppState) =>\r\n state.entityStores.questionChoice.entities;\r\n\r\nexport const selectQuestionChoiceById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionChoice.entities.get(id);\r\n\r\nexport const selectQuestionChoiceMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionChoice.meta.get(id);\r\n\r\nexport const selectQuestionChoiceAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectQuestionChoiceById(id),\r\n selectQuestionChoiceMetadataById(id),\r\n (questionChoice, meta) => ({ questionChoice, meta }),\r\n );\r\n\r\nexport function selectQuestionChoiceEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllQuestionChoiceEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, QuestionChoiceRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectQuestionChoiceEntitiesByLabel(label: string) {\r\n return createSelector(selectAllQuestionChoiceEntities, (entities) =>\r\n entities.filter((e) => e.label === label).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionChoiceEntitiesByValue(value: string) {\r\n return createSelector(selectAllQuestionChoiceEntities, (entities) =>\r\n entities.filter((e) => e.value === value).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionChoiceEntitiesByQuestionId(questionId: string) {\r\n return createSelector(selectAllQuestionChoiceEntities, (entities) =>\r\n entities.filter((e) => e.questionId === questionId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { QuestionDataType, QuestionType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface QuestionProps {\r\n id: string;\r\n name: string;\r\n question: string;\r\n questionType: QuestionType;\r\n dataType: QuestionDataType | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class QuestionRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n question: null as any,\r\n questionType: null as any,\r\n dataType: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n question: string;\r\n questionType: QuestionType;\r\n dataType: QuestionDataType | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): QuestionRecord {\r\n if (json == null) {\r\n throw new Error('QuestionRecord.fromJS: parameter cannot be null');\r\n }\r\n return new QuestionRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'QuestionJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'QuestionJson.name'),\r\n question: getFromOrThrow(json, (j) => j.question, 'QuestionJson.question'),\r\n questionType: getFromOrThrow(json, (j) => j.questionType, 'QuestionJson.questionType'),\r\n dataType: json.dataType,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n question: string;\r\n questionType: QuestionType;\r\n dataType: QuestionDataType | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [QuestionRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('QuestionRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new QuestionRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'QuestionJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'QuestionJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n question: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.question, 'QuestionJson.question'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n questionType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.questionType, 'QuestionJson.questionType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dataType: tryOrDefault(\r\n () => json.dataType,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: QuestionProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('QuestionRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class QuestionViewModelBase implements QuestionProps {\r\n protected readonly _props: QuestionProps;\r\n private _json?: QuestionProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get question(): string {\r\n return this._props.question;\r\n }\r\n get questionType(): QuestionType {\r\n return this._props.questionType;\r\n }\r\n get dataType(): QuestionDataType | null {\r\n return this._props.dataType;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isChoice() {\r\n return this._props.questionType === QuestionType.Choice;\r\n }\r\n public get isFreeText() {\r\n return this._props.questionType === QuestionType.FreeText;\r\n }\r\n public get isYesNo() {\r\n return this._props.questionType === QuestionType.YesNo;\r\n }\r\n public get isBoolean() {\r\n return this._props.dataType === QuestionDataType.Boolean;\r\n }\r\n public get isDecimal() {\r\n return this._props.dataType === QuestionDataType.Decimal;\r\n }\r\n public get isInteger() {\r\n return this._props.dataType === QuestionDataType.Integer;\r\n }\r\n public get isString() {\r\n return this._props.dataType === QuestionDataType.String;\r\n }\r\n\r\n public isAnyQuestionType(...questionType: QuestionType[]) {\r\n return questionType.includes(this._props.questionType);\r\n }\r\n public isAnyDataType(...questionDataType: QuestionDataType[]) {\r\n return this._props.dataType != null && questionDataType.includes(this._props.dataType);\r\n }\r\n\r\n constructor(props: QuestionProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n question: this._props.question,\r\n questionType: this._props.questionType,\r\n dataType: this._props.dataType,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllQuestionEntities = (state: AppState) => state.entityStores.question.entities;\r\n\r\nexport const selectQuestionById = (id: string) => (state: AppState) =>\r\n state.entityStores.question.entities.get(id);\r\n\r\nexport const selectQuestionMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.question.meta.get(id);\r\n\r\nexport const selectQuestionAndMetadataById = (id: string) =>\r\n createSelector(selectQuestionById(id), selectQuestionMetadataById(id), (question, meta) => ({\r\n question,\r\n meta,\r\n }));\r\n\r\nexport function selectQuestionEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllQuestionEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, QuestionRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectQuestionEntitiesByName(name: string) {\r\n return createSelector(selectAllQuestionEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionEntitiesByQuestion(question: string) {\r\n return createSelector(selectAllQuestionEntities, (entities) =>\r\n entities.filter((e) => e.question === question).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionEntitiesByQuestionType(questionType: QuestionType) {\r\n return createSelector(selectAllQuestionEntities, (entities) =>\r\n entities.filter((e) => e.questionType === questionType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionEntitiesByDataType(dataType: QuestionDataType) {\r\n return createSelector(selectAllQuestionEntities, (entities) =>\r\n entities.filter((e) => e.dataType === dataType).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { QuestionnaireType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface QuestionnaireProps {\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n type: QuestionnaireType;\r\n communicationCenterId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class QuestionnaireRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n companyId: null as any,\r\n type: null as any,\r\n communicationCenterId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n type: QuestionnaireType;\r\n communicationCenterId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): QuestionnaireRecord {\r\n if (json == null) {\r\n throw new Error('QuestionnaireRecord.fromJS: parameter cannot be null');\r\n }\r\n return new QuestionnaireRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'QuestionnaireJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'QuestionnaireJson.name'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'QuestionnaireJson.companyId'),\r\n type: getFromOrThrow(json, (j) => j.type, 'QuestionnaireJson.type'),\r\n communicationCenterId: json.communicationCenterId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n type: QuestionnaireType;\r\n communicationCenterId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [QuestionnaireRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('QuestionnaireRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new QuestionnaireRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'QuestionnaireJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'QuestionnaireJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'QuestionnaireJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'QuestionnaireJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n communicationCenterId: tryOrDefault(\r\n () => json.communicationCenterId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: QuestionnaireProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('QuestionnaireRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class QuestionnaireViewModelBase implements QuestionnaireProps {\r\n protected readonly _props: QuestionnaireProps;\r\n private _json?: QuestionnaireProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n get type(): QuestionnaireType {\r\n return this._props.type;\r\n }\r\n get communicationCenterId(): string | null {\r\n return this._props.communicationCenterId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isQualityAssurance() {\r\n return this._props.type === QuestionnaireType.QualityAssurance;\r\n }\r\n\r\n public isAnyType(...questionnaireType: QuestionnaireType[]) {\r\n return questionnaireType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: QuestionnaireProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n companyId: this._props.companyId,\r\n type: this._props.type,\r\n communicationCenterId: this._props.communicationCenterId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllQuestionnaireEntities = (state: AppState) =>\r\n state.entityStores.questionnaire.entities;\r\n\r\nexport const selectQuestionnaireById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionnaire.entities.get(id);\r\n\r\nexport const selectQuestionnaireMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionnaire.meta.get(id);\r\n\r\nexport const selectQuestionnaireAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectQuestionnaireById(id),\r\n selectQuestionnaireMetadataById(id),\r\n (questionnaire, meta) => ({ questionnaire, meta }),\r\n );\r\n\r\nexport function selectQuestionnaireEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllQuestionnaireEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, QuestionnaireRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireEntitiesByName(name: string) {\r\n return createSelector(selectAllQuestionnaireEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllQuestionnaireEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireEntitiesByType(type: QuestionnaireType) {\r\n return createSelector(selectAllQuestionnaireEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireEntitiesByCommunicationCenterId(communicationCenterId: string) {\r\n return createSelector(selectAllQuestionnaireEntities, (entities) =>\r\n entities.filter((e) => e.communicationCenterId === communicationCenterId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { RuleMatchType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface QuestionnaireQuestionResponseProps {\r\n id: string;\r\n questionnaireResponseId: string;\r\n questionnaireSectionQuestionId: string;\r\n matchType: RuleMatchType;\r\n responseValue: string | null;\r\n explanation: string | null;\r\n reviewRequired: boolean;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class QuestionnaireQuestionResponseRecord extends Record(\r\n {\r\n id: null as any,\r\n questionnaireResponseId: null as any,\r\n questionnaireSectionQuestionId: null as any,\r\n matchType: null as any,\r\n responseValue: null as any,\r\n explanation: null as any,\r\n reviewRequired: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n },\r\n) {\r\n public static fromJS(json: {\r\n id: string;\r\n questionnaireResponseId: string;\r\n questionnaireSectionQuestionId: string;\r\n matchType: RuleMatchType;\r\n responseValue: string | null;\r\n explanation: string | null;\r\n reviewRequired: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): QuestionnaireQuestionResponseRecord {\r\n if (json == null) {\r\n throw new Error('QuestionnaireQuestionResponseRecord.fromJS: parameter cannot be null');\r\n }\r\n return new QuestionnaireQuestionResponseRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'QuestionnaireQuestionResponseJson.id'),\r\n questionnaireResponseId: getFromOrThrow(\r\n json,\r\n (j) => j.questionnaireResponseId,\r\n 'QuestionnaireQuestionResponseJson.questionnaireResponseId',\r\n ),\r\n questionnaireSectionQuestionId: getFromOrThrow(\r\n json,\r\n (j) => j.questionnaireSectionQuestionId,\r\n 'QuestionnaireQuestionResponseJson.questionnaireSectionQuestionId',\r\n ),\r\n matchType: getFromOrThrow(\r\n json,\r\n (j) => j.matchType,\r\n 'QuestionnaireQuestionResponseJson.matchType',\r\n ),\r\n responseValue: json.responseValue,\r\n explanation: json.explanation,\r\n reviewRequired: getFromOrThrow(\r\n json,\r\n (j) => j.reviewRequired,\r\n 'QuestionnaireQuestionResponseJson.reviewRequired',\r\n ),\r\n companyId: getFromOrThrow(\r\n json,\r\n (j) => j.companyId,\r\n 'QuestionnaireQuestionResponseJson.companyId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n questionnaireResponseId: string;\r\n questionnaireSectionQuestionId: string;\r\n matchType: RuleMatchType;\r\n responseValue: string | null;\r\n explanation: string | null;\r\n reviewRequired: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [QuestionnaireQuestionResponseRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('QuestionnaireQuestionResponseRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new QuestionnaireQuestionResponseRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'QuestionnaireQuestionResponseJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n questionnaireResponseId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.questionnaireResponseId,\r\n 'QuestionnaireQuestionResponseJson.questionnaireResponseId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n questionnaireSectionQuestionId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.questionnaireSectionQuestionId,\r\n 'QuestionnaireQuestionResponseJson.questionnaireSectionQuestionId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n matchType: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.matchType, 'QuestionnaireQuestionResponseJson.matchType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n responseValue: tryOrDefault(\r\n () => json.responseValue,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n explanation: tryOrDefault(\r\n () => json.explanation,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n reviewRequired: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.reviewRequired,\r\n 'QuestionnaireQuestionResponseJson.reviewRequired',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.companyId, 'QuestionnaireQuestionResponseJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: QuestionnaireQuestionResponseProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('QuestionnaireQuestionResponseRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class QuestionnaireQuestionResponseViewModelBase\r\n implements QuestionnaireQuestionResponseProps\r\n{\r\n protected readonly _props: QuestionnaireQuestionResponseProps;\r\n private _json?: QuestionnaireQuestionResponseProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get questionnaireResponseId(): string {\r\n return this._props.questionnaireResponseId;\r\n }\r\n get questionnaireSectionQuestionId(): string {\r\n return this._props.questionnaireSectionQuestionId;\r\n }\r\n get matchType(): RuleMatchType {\r\n return this._props.matchType;\r\n }\r\n get responseValue(): string | null {\r\n return this._props.responseValue;\r\n }\r\n get explanation(): string | null {\r\n return this._props.explanation;\r\n }\r\n get reviewRequired(): boolean {\r\n return this._props.reviewRequired;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isDropoffLocation() {\r\n return this._props.matchType === RuleMatchType.DropoffLocation;\r\n }\r\n public get isPickupLocation() {\r\n return this._props.matchType === RuleMatchType.PickupLocation;\r\n }\r\n public get isUnspecified() {\r\n return this._props.matchType === RuleMatchType.Unspecified;\r\n }\r\n\r\n public isAnyMatchType(...ruleMatchType: RuleMatchType[]) {\r\n return ruleMatchType.includes(this._props.matchType);\r\n }\r\n\r\n constructor(props: QuestionnaireQuestionResponseProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n questionnaireResponseId: this._props.questionnaireResponseId,\r\n questionnaireSectionQuestionId: this._props.questionnaireSectionQuestionId,\r\n matchType: this._props.matchType,\r\n responseValue: this._props.responseValue,\r\n explanation: this._props.explanation,\r\n reviewRequired: this._props.reviewRequired,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllQuestionnaireQuestionResponseEntities = (state: AppState) =>\r\n state.entityStores.questionnaireQuestionResponse.entities;\r\n\r\nexport const selectQuestionnaireQuestionResponseById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionnaireQuestionResponse.entities.get(id);\r\n\r\nexport const selectQuestionnaireQuestionResponseMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionnaireQuestionResponse.meta.get(id);\r\n\r\nexport const selectQuestionnaireQuestionResponseAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectQuestionnaireQuestionResponseById(id),\r\n selectQuestionnaireQuestionResponseMetadataById(id),\r\n (questionnaireQuestionResponse, meta) => ({ questionnaireQuestionResponse, meta }),\r\n );\r\n\r\nexport function selectQuestionnaireQuestionResponseEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllQuestionnaireQuestionResponseEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, QuestionnaireQuestionResponseRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireQuestionResponseEntitiesByQuestionnaireResponseId(\r\n questionnaireResponseId: string,\r\n) {\r\n return createSelector(selectAllQuestionnaireQuestionResponseEntities, (entities) =>\r\n entities.filter((e) => e.questionnaireResponseId === questionnaireResponseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireQuestionResponseEntitiesByQuestionnaireSectionQuestionId(\r\n questionnaireSectionQuestionId: string,\r\n) {\r\n return createSelector(selectAllQuestionnaireQuestionResponseEntities, (entities) =>\r\n entities\r\n .filter((e) => e.questionnaireSectionQuestionId === questionnaireSectionQuestionId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireQuestionResponseEntitiesByMatchType(matchType: RuleMatchType) {\r\n return createSelector(selectAllQuestionnaireQuestionResponseEntities, (entities) =>\r\n entities.filter((e) => e.matchType === matchType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireQuestionResponseEntitiesByResponseValue(responseValue: string) {\r\n return createSelector(selectAllQuestionnaireQuestionResponseEntities, (entities) =>\r\n entities.filter((e) => e.responseValue === responseValue).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireQuestionResponseEntitiesByExplanation(explanation: string) {\r\n return createSelector(selectAllQuestionnaireQuestionResponseEntities, (entities) =>\r\n entities.filter((e) => e.explanation === explanation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireQuestionResponseEntitiesByReviewRequired(\r\n reviewRequired: boolean,\r\n) {\r\n return createSelector(selectAllQuestionnaireQuestionResponseEntities, (entities) =>\r\n entities.filter((e) => e.reviewRequired === reviewRequired).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireQuestionResponseEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllQuestionnaireQuestionResponseEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface QuestionnaireQuestionResponseNoteProps {\r\n id: string;\r\n questionnaireQuestionResponseId: string;\r\n authorId: string;\r\n dateAuthored: Date;\r\n note: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class QuestionnaireQuestionResponseNoteRecord extends Record(\r\n {\r\n id: null as any,\r\n questionnaireQuestionResponseId: null as any,\r\n authorId: null as any,\r\n dateAuthored: null as any,\r\n note: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n },\r\n) {\r\n public static fromJS(json: {\r\n id: string;\r\n questionnaireQuestionResponseId: string;\r\n authorId: string;\r\n dateAuthored: string | number | Date;\r\n note: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): QuestionnaireQuestionResponseNoteRecord {\r\n if (json == null) {\r\n throw new Error('QuestionnaireQuestionResponseNoteRecord.fromJS: parameter cannot be null');\r\n }\r\n return new QuestionnaireQuestionResponseNoteRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'QuestionnaireQuestionResponseNoteJson.id'),\r\n questionnaireQuestionResponseId: getFromOrThrow(\r\n json,\r\n (j) => j.questionnaireQuestionResponseId,\r\n 'QuestionnaireQuestionResponseNoteJson.questionnaireQuestionResponseId',\r\n ),\r\n authorId: getFromOrThrow(\r\n json,\r\n (j) => j.authorId,\r\n 'QuestionnaireQuestionResponseNoteJson.authorId',\r\n ),\r\n dateAuthored: new Date(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.dateAuthored,\r\n 'QuestionnaireQuestionResponseNoteJson.dateAuthored',\r\n ),\r\n ),\r\n note: getFromOrThrow(json, (j) => j.note, 'QuestionnaireQuestionResponseNoteJson.note'),\r\n companyId: getFromOrThrow(\r\n json,\r\n (j) => j.companyId,\r\n 'QuestionnaireQuestionResponseNoteJson.companyId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n questionnaireQuestionResponseId: string;\r\n authorId: string;\r\n dateAuthored: string | number | Date;\r\n note: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [QuestionnaireQuestionResponseNoteRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error(\r\n 'QuestionnaireQuestionResponseNoteRecord.fromJSUnsafe: parameter cannot be null',\r\n );\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new QuestionnaireQuestionResponseNoteRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'QuestionnaireQuestionResponseNoteJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n questionnaireQuestionResponseId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.questionnaireQuestionResponseId,\r\n 'QuestionnaireQuestionResponseNoteJson.questionnaireQuestionResponseId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n authorId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.authorId, 'QuestionnaireQuestionResponseNoteJson.authorId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateAuthored: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.dateAuthored,\r\n 'QuestionnaireQuestionResponseNoteJson.dateAuthored',\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n note: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.note, 'QuestionnaireQuestionResponseNoteJson.note'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.companyId,\r\n 'QuestionnaireQuestionResponseNoteJson.companyId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: QuestionnaireQuestionResponseNoteProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error(\r\n 'QuestionnaireQuestionResponseNoteRecord constructor parameter cannot be null',\r\n );\r\n }\r\n }\r\n}\r\n\r\nexport abstract class QuestionnaireQuestionResponseNoteViewModelBase\r\n implements QuestionnaireQuestionResponseNoteProps\r\n{\r\n protected readonly _props: QuestionnaireQuestionResponseNoteProps;\r\n private _json?: QuestionnaireQuestionResponseNoteProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get questionnaireQuestionResponseId(): string {\r\n return this._props.questionnaireQuestionResponseId;\r\n }\r\n get authorId(): string {\r\n return this._props.authorId;\r\n }\r\n get dateAuthored(): Date {\r\n return this._props.dateAuthored;\r\n }\r\n get note(): string {\r\n return this._props.note;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: QuestionnaireQuestionResponseNoteProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n questionnaireQuestionResponseId: this._props.questionnaireQuestionResponseId,\r\n authorId: this._props.authorId,\r\n dateAuthored: this._props.dateAuthored,\r\n note: this._props.note,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllQuestionnaireQuestionResponseNoteEntities = (state: AppState) =>\r\n state.entityStores.questionnaireQuestionResponseNote.entities;\r\n\r\nexport const selectQuestionnaireQuestionResponseNoteById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionnaireQuestionResponseNote.entities.get(id);\r\n\r\nexport const selectQuestionnaireQuestionResponseNoteMetadataById =\r\n (id: string) => (state: AppState) =>\r\n state.entityStores.questionnaireQuestionResponseNote.meta.get(id);\r\n\r\nexport const selectQuestionnaireQuestionResponseNoteAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectQuestionnaireQuestionResponseNoteById(id),\r\n selectQuestionnaireQuestionResponseNoteMetadataById(id),\r\n (questionnaireQuestionResponseNote, meta) => ({ questionnaireQuestionResponseNote, meta }),\r\n );\r\n\r\nexport function selectQuestionnaireQuestionResponseNoteEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllQuestionnaireQuestionResponseNoteEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, QuestionnaireQuestionResponseNoteRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireQuestionResponseNoteEntitiesByQuestionnaireQuestionResponseId(\r\n questionnaireQuestionResponseId: string,\r\n) {\r\n return createSelector(selectAllQuestionnaireQuestionResponseNoteEntities, (entities) =>\r\n entities\r\n .filter((e) => e.questionnaireQuestionResponseId === questionnaireQuestionResponseId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireQuestionResponseNoteEntitiesByAuthorId(authorId: string) {\r\n return createSelector(selectAllQuestionnaireQuestionResponseNoteEntities, (entities) =>\r\n entities.filter((e) => e.authorId === authorId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireQuestionResponseNoteEntitiesByDateAuthored(dateAuthored: Date) {\r\n return createSelector(selectAllQuestionnaireQuestionResponseNoteEntities, (entities) =>\r\n entities.filter((e) => e.dateAuthored === dateAuthored).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireQuestionResponseNoteEntitiesByNote(note: string) {\r\n return createSelector(selectAllQuestionnaireQuestionResponseNoteEntities, (entities) =>\r\n entities.filter((e) => e.note === note).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireQuestionResponseNoteEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllQuestionnaireQuestionResponseNoteEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { QuestionnaireResponseStatus, UserRole } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface QuestionnaireResponseProps {\r\n id: string;\r\n status: QuestionnaireResponseStatus;\r\n currentReviewLevel: UserRole | null;\r\n questionnaireId: string;\r\n completedById: string | null;\r\n dateCompleted: Date | null;\r\n communicationsReviewById: string | null;\r\n dateCommunicationsReviewed: Date | null;\r\n supervisorReviewById: string | null;\r\n dateSupervisorReviewed: Date | null;\r\n managerReviewById: string | null;\r\n dateManagerReviewed: Date | null;\r\n companyId: string;\r\n cardId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class QuestionnaireResponseRecord extends Record({\r\n id: null as any,\r\n status: null as any,\r\n currentReviewLevel: null as any,\r\n questionnaireId: null as any,\r\n completedById: null as any,\r\n dateCompleted: null as any,\r\n communicationsReviewById: null as any,\r\n dateCommunicationsReviewed: null as any,\r\n supervisorReviewById: null as any,\r\n dateSupervisorReviewed: null as any,\r\n managerReviewById: null as any,\r\n dateManagerReviewed: null as any,\r\n companyId: null as any,\r\n cardId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n status: QuestionnaireResponseStatus;\r\n currentReviewLevel: UserRole | null;\r\n questionnaireId: string;\r\n completedById: string | null;\r\n dateCompleted: string | number | Date | null;\r\n communicationsReviewById: string | null;\r\n dateCommunicationsReviewed: string | number | Date | null;\r\n supervisorReviewById: string | null;\r\n dateSupervisorReviewed: string | number | Date | null;\r\n managerReviewById: string | null;\r\n dateManagerReviewed: string | number | Date | null;\r\n companyId: string;\r\n cardId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): QuestionnaireResponseRecord {\r\n if (json == null) {\r\n throw new Error('QuestionnaireResponseRecord.fromJS: parameter cannot be null');\r\n }\r\n return new QuestionnaireResponseRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'QuestionnaireResponseJson.id'),\r\n status: getFromOrThrow(json, (j) => j.status, 'QuestionnaireResponseJson.status'),\r\n currentReviewLevel: json.currentReviewLevel,\r\n questionnaireId: getFromOrThrow(\r\n json,\r\n (j) => j.questionnaireId,\r\n 'QuestionnaireResponseJson.questionnaireId',\r\n ),\r\n completedById: json.completedById,\r\n dateCompleted: json.dateCompleted != null ? new Date(json.dateCompleted) : null,\r\n communicationsReviewById: json.communicationsReviewById,\r\n dateCommunicationsReviewed:\r\n json.dateCommunicationsReviewed != null ? new Date(json.dateCommunicationsReviewed) : null,\r\n supervisorReviewById: json.supervisorReviewById,\r\n dateSupervisorReviewed:\r\n json.dateSupervisorReviewed != null ? new Date(json.dateSupervisorReviewed) : null,\r\n managerReviewById: json.managerReviewById,\r\n dateManagerReviewed:\r\n json.dateManagerReviewed != null ? new Date(json.dateManagerReviewed) : null,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'QuestionnaireResponseJson.companyId'),\r\n cardId: getFromOrThrow(json, (j) => j.cardId, 'QuestionnaireResponseJson.cardId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n status: QuestionnaireResponseStatus;\r\n currentReviewLevel: UserRole | null;\r\n questionnaireId: string;\r\n completedById: string | null;\r\n dateCompleted: string | number | Date | null;\r\n communicationsReviewById: string | null;\r\n dateCommunicationsReviewed: string | number | Date | null;\r\n supervisorReviewById: string | null;\r\n dateSupervisorReviewed: string | number | Date | null;\r\n managerReviewById: string | null;\r\n dateManagerReviewed: string | number | Date | null;\r\n companyId: string;\r\n cardId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [QuestionnaireResponseRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('QuestionnaireResponseRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new QuestionnaireResponseRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'QuestionnaireResponseJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'QuestionnaireResponseJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentReviewLevel: tryOrDefault(\r\n () => json.currentReviewLevel,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n questionnaireId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.questionnaireId,\r\n 'QuestionnaireResponseJson.questionnaireId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n completedById: tryOrDefault(\r\n () => json.completedById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateCompleted: tryOrDefault(\r\n () => (json.dateCompleted != null ? new Date(json.dateCompleted) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n communicationsReviewById: tryOrDefault(\r\n () => json.communicationsReviewById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateCommunicationsReviewed: tryOrDefault(\r\n () =>\r\n json.dateCommunicationsReviewed != null\r\n ? new Date(json.dateCommunicationsReviewed)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n supervisorReviewById: tryOrDefault(\r\n () => json.supervisorReviewById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateSupervisorReviewed: tryOrDefault(\r\n () => (json.dateSupervisorReviewed != null ? new Date(json.dateSupervisorReviewed) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n managerReviewById: tryOrDefault(\r\n () => json.managerReviewById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateManagerReviewed: tryOrDefault(\r\n () => (json.dateManagerReviewed != null ? new Date(json.dateManagerReviewed) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'QuestionnaireResponseJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cardId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.cardId, 'QuestionnaireResponseJson.cardId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: QuestionnaireResponseProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('QuestionnaireResponseRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class QuestionnaireResponseViewModelBase implements QuestionnaireResponseProps {\r\n protected readonly _props: QuestionnaireResponseProps;\r\n private _json?: QuestionnaireResponseProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get status(): QuestionnaireResponseStatus {\r\n return this._props.status;\r\n }\r\n get currentReviewLevel(): UserRole | null {\r\n return this._props.currentReviewLevel;\r\n }\r\n get questionnaireId(): string {\r\n return this._props.questionnaireId;\r\n }\r\n get completedById(): string | null {\r\n return this._props.completedById;\r\n }\r\n get dateCompleted(): Date | null {\r\n return this._props.dateCompleted;\r\n }\r\n get communicationsReviewById(): string | null {\r\n return this._props.communicationsReviewById;\r\n }\r\n get dateCommunicationsReviewed(): Date | null {\r\n return this._props.dateCommunicationsReviewed;\r\n }\r\n get supervisorReviewById(): string | null {\r\n return this._props.supervisorReviewById;\r\n }\r\n get dateSupervisorReviewed(): Date | null {\r\n return this._props.dateSupervisorReviewed;\r\n }\r\n get managerReviewById(): string | null {\r\n return this._props.managerReviewById;\r\n }\r\n get dateManagerReviewed(): Date | null {\r\n return this._props.dateManagerReviewed;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n get cardId(): string {\r\n return this._props.cardId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAwaitingReview() {\r\n return this._props.status === QuestionnaireResponseStatus.AwaitingReview;\r\n }\r\n public get isCompleted() {\r\n return this._props.status === QuestionnaireResponseStatus.Completed;\r\n }\r\n public get isDraft() {\r\n return this._props.status === QuestionnaireResponseStatus.Draft;\r\n }\r\n public get isNotStarted() {\r\n return this._props.status === QuestionnaireResponseStatus.NotStarted;\r\n }\r\n public get isAsbDataManager() {\r\n return this._props.currentReviewLevel === UserRole.AsbDataManager;\r\n }\r\n public get isAsbViewer() {\r\n return this._props.currentReviewLevel === UserRole.AsbViewer;\r\n }\r\n public get isAviationDataManager() {\r\n return this._props.currentReviewLevel === UserRole.AviationDataManager;\r\n }\r\n public get isAviationPermissionsManager() {\r\n return this._props.currentReviewLevel === UserRole.AviationPermissionsManager;\r\n }\r\n public get isAviationSupervisor() {\r\n return this._props.currentReviewLevel === UserRole.AviationSupervisor;\r\n }\r\n public get isBiller() {\r\n return this._props.currentReviewLevel === UserRole.Biller;\r\n }\r\n public get isBillerCorrectionsTeam() {\r\n return this._props.currentReviewLevel === UserRole.BillerCorrectionsTeam;\r\n }\r\n public get isClinical() {\r\n return this._props.currentReviewLevel === UserRole.Clinical;\r\n }\r\n public get isCommunications() {\r\n return this._props.currentReviewLevel === UserRole.Communications;\r\n }\r\n public get isCommunicationsSupervisor() {\r\n return this._props.currentReviewLevel === UserRole.CommunicationsSupervisor;\r\n }\r\n public get isComplianceManager() {\r\n return this._props.currentReviewLevel === UserRole.ComplianceManager;\r\n }\r\n public get isDeveloper() {\r\n return this._props.currentReviewLevel === UserRole.Developer;\r\n }\r\n public get isExecutive() {\r\n return this._props.currentReviewLevel === UserRole.Executive;\r\n }\r\n public get isExternal() {\r\n return this._props.currentReviewLevel === UserRole.External;\r\n }\r\n public get isFixedWingCoordinator() {\r\n return this._props.currentReviewLevel === UserRole.FixedWingCoordinator;\r\n }\r\n public get isFleetStatusOperations() {\r\n return this._props.currentReviewLevel === UserRole.FleetStatusOperations;\r\n }\r\n public get isFleetStatusViewer() {\r\n return this._props.currentReviewLevel === UserRole.FleetStatusViewer;\r\n }\r\n public get isFlightLogViewer() {\r\n return this._props.currentReviewLevel === UserRole.FlightLogViewer;\r\n }\r\n public get isGlobalDataManager() {\r\n return this._props.currentReviewLevel === UserRole.GlobalDataManager;\r\n }\r\n public get isGlobalPermissionsManager() {\r\n return this._props.currentReviewLevel === UserRole.GlobalPermissionsManager;\r\n }\r\n public get isImageTrend() {\r\n return this._props.currentReviewLevel === UserRole.ImageTrend;\r\n }\r\n public get isOCC() {\r\n return this._props.currentReviewLevel === UserRole.OCC;\r\n }\r\n public get isOccReader() {\r\n return this._props.currentReviewLevel === UserRole.OccReader;\r\n }\r\n public get isOosMaintenanceController() {\r\n return this._props.currentReviewLevel === UserRole.OosMaintenanceController;\r\n }\r\n public get isOosViewer() {\r\n return this._props.currentReviewLevel === UserRole.OosViewer;\r\n }\r\n public get isOperationsDataManager() {\r\n return this._props.currentReviewLevel === UserRole.OperationsDataManager;\r\n }\r\n public get isOperationsPermissionsManager() {\r\n return this._props.currentReviewLevel === UserRole.OperationsPermissionsManager;\r\n }\r\n public get isOpsReader() {\r\n return this._props.currentReviewLevel === UserRole.OpsReader;\r\n }\r\n public get isPilot() {\r\n return this._props.currentReviewLevel === UserRole.Pilot;\r\n }\r\n public get isPrdAdmin() {\r\n return this._props.currentReviewLevel === UserRole.PrdAdmin;\r\n }\r\n public get isPrdUser() {\r\n return this._props.currentReviewLevel === UserRole.PrdUser;\r\n }\r\n public get isProgramManager() {\r\n return this._props.currentReviewLevel === UserRole.ProgramManager;\r\n }\r\n public get isQaManager() {\r\n return this._props.currentReviewLevel === UserRole.QaManager;\r\n }\r\n public get isQaSupervisor() {\r\n return this._props.currentReviewLevel === UserRole.QaSupervisor;\r\n }\r\n public get isRemoteUser() {\r\n return this._props.currentReviewLevel === UserRole.RemoteUser;\r\n }\r\n public get isStakeholder() {\r\n return this._props.currentReviewLevel === UserRole.Stakeholder;\r\n }\r\n public get isTrmProgramAdmin() {\r\n return this._props.currentReviewLevel === UserRole.TrmProgramAdmin;\r\n }\r\n\r\n public isAnyStatus(...questionnaireResponseStatus: QuestionnaireResponseStatus[]) {\r\n return questionnaireResponseStatus.includes(this._props.status);\r\n }\r\n public isAnyCurrentReviewLevel(...userRole: UserRole[]) {\r\n return (\r\n this._props.currentReviewLevel != null && userRole.includes(this._props.currentReviewLevel)\r\n );\r\n }\r\n\r\n constructor(props: QuestionnaireResponseProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n status: this._props.status,\r\n currentReviewLevel: this._props.currentReviewLevel,\r\n questionnaireId: this._props.questionnaireId,\r\n completedById: this._props.completedById,\r\n dateCompleted: this._props.dateCompleted,\r\n communicationsReviewById: this._props.communicationsReviewById,\r\n dateCommunicationsReviewed: this._props.dateCommunicationsReviewed,\r\n supervisorReviewById: this._props.supervisorReviewById,\r\n dateSupervisorReviewed: this._props.dateSupervisorReviewed,\r\n managerReviewById: this._props.managerReviewById,\r\n dateManagerReviewed: this._props.dateManagerReviewed,\r\n companyId: this._props.companyId,\r\n cardId: this._props.cardId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllQuestionnaireResponseEntities = (state: AppState) =>\r\n state.entityStores.questionnaireResponse.entities;\r\n\r\nexport const selectQuestionnaireResponseById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionnaireResponse.entities.get(id);\r\n\r\nexport const selectQuestionnaireResponseMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionnaireResponse.meta.get(id);\r\n\r\nexport const selectQuestionnaireResponseAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectQuestionnaireResponseById(id),\r\n selectQuestionnaireResponseMetadataById(id),\r\n (questionnaireResponse, meta) => ({ questionnaireResponse, meta }),\r\n );\r\n\r\nexport function selectQuestionnaireResponseEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllQuestionnaireResponseEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, QuestionnaireResponseRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesByStatus(status: QuestionnaireResponseStatus) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesByCurrentReviewLevel(\r\n currentReviewLevel: UserRole,\r\n) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.currentReviewLevel === currentReviewLevel).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesByQuestionnaireId(questionnaireId: string) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.questionnaireId === questionnaireId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesByCompletedById(completedById: string) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.completedById === completedById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesByDateCompleted(dateCompleted: Date) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.dateCompleted === dateCompleted).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesByCommunicationsReviewById(\r\n communicationsReviewById: string,\r\n) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.communicationsReviewById === communicationsReviewById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesByDateCommunicationsReviewed(\r\n dateCommunicationsReviewed: Date,\r\n) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.dateCommunicationsReviewed === dateCommunicationsReviewed).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesBySupervisorReviewById(\r\n supervisorReviewById: string,\r\n) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.supervisorReviewById === supervisorReviewById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesByDateSupervisorReviewed(\r\n dateSupervisorReviewed: Date,\r\n) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.dateSupervisorReviewed === dateSupervisorReviewed).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesByManagerReviewById(managerReviewById: string) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.managerReviewById === managerReviewById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesByDateManagerReviewed(\r\n dateManagerReviewed: Date,\r\n) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.dateManagerReviewed === dateManagerReviewed).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireResponseEntitiesByCardId(cardId: string) {\r\n return createSelector(selectAllQuestionnaireResponseEntities, (entities) =>\r\n entities.filter((e) => e.cardId === cardId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface QuestionnaireSectionProps {\r\n id: string;\r\n name: string;\r\n questionnaireId: string;\r\n sequence: number;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class QuestionnaireSectionRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n questionnaireId: null as any,\r\n sequence: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n questionnaireId: string;\r\n sequence: number;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): QuestionnaireSectionRecord {\r\n if (json == null) {\r\n throw new Error('QuestionnaireSectionRecord.fromJS: parameter cannot be null');\r\n }\r\n return new QuestionnaireSectionRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'QuestionnaireSectionJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'QuestionnaireSectionJson.name'),\r\n questionnaireId: getFromOrThrow(\r\n json,\r\n (j) => j.questionnaireId,\r\n 'QuestionnaireSectionJson.questionnaireId',\r\n ),\r\n sequence: getFromOrThrow(json, (j) => j.sequence, 'QuestionnaireSectionJson.sequence'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n questionnaireId: string;\r\n sequence: number;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [QuestionnaireSectionRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('QuestionnaireSectionRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new QuestionnaireSectionRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'QuestionnaireSectionJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'QuestionnaireSectionJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n questionnaireId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.questionnaireId,\r\n 'QuestionnaireSectionJson.questionnaireId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n sequence: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.sequence, 'QuestionnaireSectionJson.sequence'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: QuestionnaireSectionProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('QuestionnaireSectionRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class QuestionnaireSectionViewModelBase implements QuestionnaireSectionProps {\r\n protected readonly _props: QuestionnaireSectionProps;\r\n private _json?: QuestionnaireSectionProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get questionnaireId(): string {\r\n return this._props.questionnaireId;\r\n }\r\n get sequence(): number {\r\n return this._props.sequence;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: QuestionnaireSectionProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n questionnaireId: this._props.questionnaireId,\r\n sequence: this._props.sequence,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllQuestionnaireSectionEntities = (state: AppState) =>\r\n state.entityStores.questionnaireSection.entities;\r\n\r\nexport const selectQuestionnaireSectionById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionnaireSection.entities.get(id);\r\n\r\nexport const selectQuestionnaireSectionMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionnaireSection.meta.get(id);\r\n\r\nexport const selectQuestionnaireSectionAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectQuestionnaireSectionById(id),\r\n selectQuestionnaireSectionMetadataById(id),\r\n (questionnaireSection, meta) => ({ questionnaireSection, meta }),\r\n );\r\n\r\nexport function selectQuestionnaireSectionEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllQuestionnaireSectionEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, QuestionnaireSectionRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireSectionEntitiesByName(name: string) {\r\n return createSelector(selectAllQuestionnaireSectionEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireSectionEntitiesByQuestionnaireId(questionnaireId: string) {\r\n return createSelector(selectAllQuestionnaireSectionEntities, (entities) =>\r\n entities.filter((e) => e.questionnaireId === questionnaireId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireSectionEntitiesBySequence(sequence: number) {\r\n return createSelector(selectAllQuestionnaireSectionEntities, (entities) =>\r\n entities.filter((e) => e.sequence === sequence).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { UserRole } from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n IdListItemRecord,\r\n IdListItemProps,\r\n} from 'src/store/generated/id-list-item-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface QuestionnaireSectionQuestionProps {\r\n id: string;\r\n questionnaireSectionId: string;\r\n questionId: string;\r\n explanationRequiredChoices: List | null;\r\n reviewRequiredChoices: List | null;\r\n responsibleRole: UserRole;\r\n sequence: number;\r\n activationRuleId: string | null;\r\n isDisabled: boolean;\r\n activityType: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class QuestionnaireSectionQuestionRecord extends Record({\r\n id: null as any,\r\n questionnaireSectionId: null as any,\r\n questionId: null as any,\r\n explanationRequiredChoices: null as any,\r\n reviewRequiredChoices: null as any,\r\n responsibleRole: null as any,\r\n sequence: null as any,\r\n activationRuleId: null as any,\r\n isDisabled: null as any,\r\n activityType: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n questionnaireSectionId: string;\r\n questionId: string;\r\n explanationRequiredChoices: any;\r\n reviewRequiredChoices: any;\r\n responsibleRole: UserRole;\r\n sequence: number;\r\n activationRuleId: string | null;\r\n isDisabled: boolean;\r\n activityType: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): QuestionnaireSectionQuestionRecord {\r\n if (json == null) {\r\n throw new Error('QuestionnaireSectionQuestionRecord.fromJS: parameter cannot be null');\r\n }\r\n return new QuestionnaireSectionQuestionRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'QuestionnaireSectionQuestionJson.id'),\r\n questionnaireSectionId: getFromOrThrow(\r\n json,\r\n (j) => j.questionnaireSectionId,\r\n 'QuestionnaireSectionQuestionJson.questionnaireSectionId',\r\n ),\r\n questionId: getFromOrThrow(\r\n json,\r\n (j) => j.questionId,\r\n 'QuestionnaireSectionQuestionJson.questionId',\r\n ),\r\n explanationRequiredChoices:\r\n json.explanationRequiredChoices != null\r\n ? List(\r\n json.explanationRequiredChoices.map((o: any) => new IdListItemRecord(o)),\r\n )\r\n : null,\r\n reviewRequiredChoices:\r\n json.reviewRequiredChoices != null\r\n ? List(\r\n json.reviewRequiredChoices.map((o: any) => new IdListItemRecord(o)),\r\n )\r\n : null,\r\n responsibleRole: getFromOrThrow(\r\n json,\r\n (j) => j.responsibleRole,\r\n 'QuestionnaireSectionQuestionJson.responsibleRole',\r\n ),\r\n sequence: getFromOrThrow(\r\n json,\r\n (j) => j.sequence,\r\n 'QuestionnaireSectionQuestionJson.sequence',\r\n ),\r\n activationRuleId: json.activationRuleId,\r\n isDisabled: getFromOrThrow(\r\n json,\r\n (j) => j.isDisabled,\r\n 'QuestionnaireSectionQuestionJson.isDisabled',\r\n ),\r\n activityType: json.activityType,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n questionnaireSectionId: string;\r\n questionId: string;\r\n explanationRequiredChoices: any;\r\n reviewRequiredChoices: any;\r\n responsibleRole: UserRole;\r\n sequence: number;\r\n activationRuleId: string | null;\r\n isDisabled: boolean;\r\n activityType: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [QuestionnaireSectionQuestionRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('QuestionnaireSectionQuestionRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new QuestionnaireSectionQuestionRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'QuestionnaireSectionQuestionJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n questionnaireSectionId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.questionnaireSectionId,\r\n 'QuestionnaireSectionQuestionJson.questionnaireSectionId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n questionId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.questionId, 'QuestionnaireSectionQuestionJson.questionId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n explanationRequiredChoices: tryOrDefault(\r\n () =>\r\n json.explanationRequiredChoices != null\r\n ? List(\r\n json.explanationRequiredChoices.map((o: any) => new IdListItemRecord(o)),\r\n )\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n reviewRequiredChoices: tryOrDefault(\r\n () =>\r\n json.reviewRequiredChoices != null\r\n ? List(\r\n json.reviewRequiredChoices.map((o: any) => new IdListItemRecord(o)),\r\n )\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n responsibleRole: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.responsibleRole,\r\n 'QuestionnaireSectionQuestionJson.responsibleRole',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n sequence: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.sequence, 'QuestionnaireSectionQuestionJson.sequence'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n activationRuleId: tryOrDefault(\r\n () => json.activationRuleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isDisabled: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.isDisabled, 'QuestionnaireSectionQuestionJson.isDisabled'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n activityType: tryOrDefault(\r\n () => json.activityType,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: QuestionnaireSectionQuestionProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('QuestionnaireSectionQuestionRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class QuestionnaireSectionQuestionViewModelBase\r\n implements QuestionnaireSectionQuestionProps\r\n{\r\n protected readonly _props: QuestionnaireSectionQuestionProps;\r\n private _json?: QuestionnaireSectionQuestionProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get questionnaireSectionId(): string {\r\n return this._props.questionnaireSectionId;\r\n }\r\n get questionId(): string {\r\n return this._props.questionId;\r\n }\r\n get explanationRequiredChoices(): List | null {\r\n return this._props.explanationRequiredChoices;\r\n }\r\n get reviewRequiredChoices(): List | null {\r\n return this._props.reviewRequiredChoices;\r\n }\r\n get responsibleRole(): UserRole {\r\n return this._props.responsibleRole;\r\n }\r\n get sequence(): number {\r\n return this._props.sequence;\r\n }\r\n get activationRuleId(): string | null {\r\n return this._props.activationRuleId;\r\n }\r\n get isDisabled(): boolean {\r\n return this._props.isDisabled;\r\n }\r\n get activityType(): string | null {\r\n return this._props.activityType;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAsbDataManager() {\r\n return this._props.responsibleRole === UserRole.AsbDataManager;\r\n }\r\n public get isAsbViewer() {\r\n return this._props.responsibleRole === UserRole.AsbViewer;\r\n }\r\n public get isAviationDataManager() {\r\n return this._props.responsibleRole === UserRole.AviationDataManager;\r\n }\r\n public get isAviationPermissionsManager() {\r\n return this._props.responsibleRole === UserRole.AviationPermissionsManager;\r\n }\r\n public get isAviationSupervisor() {\r\n return this._props.responsibleRole === UserRole.AviationSupervisor;\r\n }\r\n public get isBiller() {\r\n return this._props.responsibleRole === UserRole.Biller;\r\n }\r\n public get isBillerCorrectionsTeam() {\r\n return this._props.responsibleRole === UserRole.BillerCorrectionsTeam;\r\n }\r\n public get isClinical() {\r\n return this._props.responsibleRole === UserRole.Clinical;\r\n }\r\n public get isCommunications() {\r\n return this._props.responsibleRole === UserRole.Communications;\r\n }\r\n public get isCommunicationsSupervisor() {\r\n return this._props.responsibleRole === UserRole.CommunicationsSupervisor;\r\n }\r\n public get isComplianceManager() {\r\n return this._props.responsibleRole === UserRole.ComplianceManager;\r\n }\r\n public get isDeveloper() {\r\n return this._props.responsibleRole === UserRole.Developer;\r\n }\r\n public get isExecutive() {\r\n return this._props.responsibleRole === UserRole.Executive;\r\n }\r\n public get isExternal() {\r\n return this._props.responsibleRole === UserRole.External;\r\n }\r\n public get isFixedWingCoordinator() {\r\n return this._props.responsibleRole === UserRole.FixedWingCoordinator;\r\n }\r\n public get isFleetStatusOperations() {\r\n return this._props.responsibleRole === UserRole.FleetStatusOperations;\r\n }\r\n public get isFleetStatusViewer() {\r\n return this._props.responsibleRole === UserRole.FleetStatusViewer;\r\n }\r\n public get isFlightLogViewer() {\r\n return this._props.responsibleRole === UserRole.FlightLogViewer;\r\n }\r\n public get isGlobalDataManager() {\r\n return this._props.responsibleRole === UserRole.GlobalDataManager;\r\n }\r\n public get isGlobalPermissionsManager() {\r\n return this._props.responsibleRole === UserRole.GlobalPermissionsManager;\r\n }\r\n public get isImageTrend() {\r\n return this._props.responsibleRole === UserRole.ImageTrend;\r\n }\r\n public get isOCC() {\r\n return this._props.responsibleRole === UserRole.OCC;\r\n }\r\n public get isOccReader() {\r\n return this._props.responsibleRole === UserRole.OccReader;\r\n }\r\n public get isOosMaintenanceController() {\r\n return this._props.responsibleRole === UserRole.OosMaintenanceController;\r\n }\r\n public get isOosViewer() {\r\n return this._props.responsibleRole === UserRole.OosViewer;\r\n }\r\n public get isOperationsDataManager() {\r\n return this._props.responsibleRole === UserRole.OperationsDataManager;\r\n }\r\n public get isOperationsPermissionsManager() {\r\n return this._props.responsibleRole === UserRole.OperationsPermissionsManager;\r\n }\r\n public get isOpsReader() {\r\n return this._props.responsibleRole === UserRole.OpsReader;\r\n }\r\n public get isPilot() {\r\n return this._props.responsibleRole === UserRole.Pilot;\r\n }\r\n public get isPrdAdmin() {\r\n return this._props.responsibleRole === UserRole.PrdAdmin;\r\n }\r\n public get isPrdUser() {\r\n return this._props.responsibleRole === UserRole.PrdUser;\r\n }\r\n public get isProgramManager() {\r\n return this._props.responsibleRole === UserRole.ProgramManager;\r\n }\r\n public get isQaManager() {\r\n return this._props.responsibleRole === UserRole.QaManager;\r\n }\r\n public get isQaSupervisor() {\r\n return this._props.responsibleRole === UserRole.QaSupervisor;\r\n }\r\n public get isRemoteUser() {\r\n return this._props.responsibleRole === UserRole.RemoteUser;\r\n }\r\n public get isStakeholder() {\r\n return this._props.responsibleRole === UserRole.Stakeholder;\r\n }\r\n public get isTrmProgramAdmin() {\r\n return this._props.responsibleRole === UserRole.TrmProgramAdmin;\r\n }\r\n\r\n public isAnyResponsibleRole(...userRole: UserRole[]) {\r\n return userRole.includes(this._props.responsibleRole);\r\n }\r\n\r\n constructor(props: QuestionnaireSectionQuestionProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n questionnaireSectionId: this._props.questionnaireSectionId,\r\n questionId: this._props.questionId,\r\n explanationRequiredChoices: this._props.explanationRequiredChoices,\r\n reviewRequiredChoices: this._props.reviewRequiredChoices,\r\n responsibleRole: this._props.responsibleRole,\r\n sequence: this._props.sequence,\r\n activationRuleId: this._props.activationRuleId,\r\n isDisabled: this._props.isDisabled,\r\n activityType: this._props.activityType,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllQuestionnaireSectionQuestionEntities = (state: AppState) =>\r\n state.entityStores.questionnaireSectionQuestion.entities;\r\n\r\nexport const selectQuestionnaireSectionQuestionById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionnaireSectionQuestion.entities.get(id);\r\n\r\nexport const selectQuestionnaireSectionQuestionMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.questionnaireSectionQuestion.meta.get(id);\r\n\r\nexport const selectQuestionnaireSectionQuestionAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectQuestionnaireSectionQuestionById(id),\r\n selectQuestionnaireSectionQuestionMetadataById(id),\r\n (questionnaireSectionQuestion, meta) => ({ questionnaireSectionQuestion, meta }),\r\n );\r\n\r\nexport function selectQuestionnaireSectionQuestionEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllQuestionnaireSectionQuestionEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, QuestionnaireSectionQuestionRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireSectionQuestionEntitiesByQuestionnaireSectionId(\r\n questionnaireSectionId: string,\r\n) {\r\n return createSelector(selectAllQuestionnaireSectionQuestionEntities, (entities) =>\r\n entities.filter((e) => e.questionnaireSectionId === questionnaireSectionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireSectionQuestionEntitiesByQuestionId(questionId: string) {\r\n return createSelector(selectAllQuestionnaireSectionQuestionEntities, (entities) =>\r\n entities.filter((e) => e.questionId === questionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireSectionQuestionEntitiesByResponsibleRole(\r\n responsibleRole: UserRole,\r\n) {\r\n return createSelector(selectAllQuestionnaireSectionQuestionEntities, (entities) =>\r\n entities.filter((e) => e.responsibleRole === responsibleRole).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireSectionQuestionEntitiesBySequence(sequence: number) {\r\n return createSelector(selectAllQuestionnaireSectionQuestionEntities, (entities) =>\r\n entities.filter((e) => e.sequence === sequence).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireSectionQuestionEntitiesByActivationRuleId(\r\n activationRuleId: string,\r\n) {\r\n return createSelector(selectAllQuestionnaireSectionQuestionEntities, (entities) =>\r\n entities.filter((e) => e.activationRuleId === activationRuleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireSectionQuestionEntitiesByIsDisabled(isDisabled: boolean) {\r\n return createSelector(selectAllQuestionnaireSectionQuestionEntities, (entities) =>\r\n entities.filter((e) => e.isDisabled === isDisabled).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectQuestionnaireSectionQuestionEntitiesByActivityType(activityType: string) {\r\n return createSelector(selectAllQuestionnaireSectionQuestionEntities, (entities) =>\r\n entities.filter((e) => e.activityType === activityType).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n NonAcceptanceType,\r\n ReceivingFacilityRequestStatus,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ReceivingFacilityRequestProps {\r\n id: string;\r\n status: ReceivingFacilityRequestStatus;\r\n cardId: string;\r\n requestId: string;\r\n medicalFacilityId: string;\r\n nonAcceptanceType: NonAcceptanceType | null;\r\n nonAcceptanceReasonId: string | null;\r\n referredToFacilityId: string | null;\r\n requestLocationId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ReceivingFacilityRequestRecord extends Record({\r\n id: null as any,\r\n status: null as any,\r\n cardId: null as any,\r\n requestId: null as any,\r\n medicalFacilityId: null as any,\r\n nonAcceptanceType: null as any,\r\n nonAcceptanceReasonId: null as any,\r\n referredToFacilityId: null as any,\r\n requestLocationId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n status: ReceivingFacilityRequestStatus;\r\n cardId: string;\r\n requestId: string;\r\n medicalFacilityId: string;\r\n nonAcceptanceType: NonAcceptanceType | null;\r\n nonAcceptanceReasonId: string | null;\r\n referredToFacilityId: string | null;\r\n requestLocationId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ReceivingFacilityRequestRecord {\r\n if (json == null) {\r\n throw new Error('ReceivingFacilityRequestRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ReceivingFacilityRequestRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ReceivingFacilityRequestJson.id'),\r\n status: getFromOrThrow(json, (j) => j.status, 'ReceivingFacilityRequestJson.status'),\r\n cardId: getFromOrThrow(json, (j) => j.cardId, 'ReceivingFacilityRequestJson.cardId'),\r\n requestId: getFromOrThrow(json, (j) => j.requestId, 'ReceivingFacilityRequestJson.requestId'),\r\n medicalFacilityId: getFromOrThrow(\r\n json,\r\n (j) => j.medicalFacilityId,\r\n 'ReceivingFacilityRequestJson.medicalFacilityId',\r\n ),\r\n nonAcceptanceType: json.nonAcceptanceType,\r\n nonAcceptanceReasonId: json.nonAcceptanceReasonId,\r\n referredToFacilityId: json.referredToFacilityId,\r\n requestLocationId: getFromOrThrow(\r\n json,\r\n (j) => j.requestLocationId,\r\n 'ReceivingFacilityRequestJson.requestLocationId',\r\n ),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'ReceivingFacilityRequestJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n status: ReceivingFacilityRequestStatus;\r\n cardId: string;\r\n requestId: string;\r\n medicalFacilityId: string;\r\n nonAcceptanceType: NonAcceptanceType | null;\r\n nonAcceptanceReasonId: string | null;\r\n referredToFacilityId: string | null;\r\n requestLocationId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ReceivingFacilityRequestRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ReceivingFacilityRequestRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ReceivingFacilityRequestRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ReceivingFacilityRequestJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'ReceivingFacilityRequestJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cardId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.cardId, 'ReceivingFacilityRequestJson.cardId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.requestId, 'ReceivingFacilityRequestJson.requestId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n medicalFacilityId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.medicalFacilityId,\r\n 'ReceivingFacilityRequestJson.medicalFacilityId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n nonAcceptanceType: tryOrDefault(\r\n () => json.nonAcceptanceType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n nonAcceptanceReasonId: tryOrDefault(\r\n () => json.nonAcceptanceReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n referredToFacilityId: tryOrDefault(\r\n () => json.referredToFacilityId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestLocationId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requestLocationId,\r\n 'ReceivingFacilityRequestJson.requestLocationId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'ReceivingFacilityRequestJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ReceivingFacilityRequestProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ReceivingFacilityRequestRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ReceivingFacilityRequestViewModelBase\r\n implements ReceivingFacilityRequestProps\r\n{\r\n protected readonly _props: ReceivingFacilityRequestProps;\r\n private _json?: ReceivingFacilityRequestProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get status(): ReceivingFacilityRequestStatus {\r\n return this._props.status;\r\n }\r\n get cardId(): string {\r\n return this._props.cardId;\r\n }\r\n get requestId(): string {\r\n return this._props.requestId;\r\n }\r\n get medicalFacilityId(): string {\r\n return this._props.medicalFacilityId;\r\n }\r\n get nonAcceptanceType(): NonAcceptanceType | null {\r\n return this._props.nonAcceptanceType;\r\n }\r\n get nonAcceptanceReasonId(): string | null {\r\n return this._props.nonAcceptanceReasonId;\r\n }\r\n get referredToFacilityId(): string | null {\r\n return this._props.referredToFacilityId;\r\n }\r\n get requestLocationId(): string {\r\n return this._props.requestLocationId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAccepted() {\r\n return this._props.status === ReceivingFacilityRequestStatus.Accepted;\r\n }\r\n public get isStatusCancelled() {\r\n return this._props.status === ReceivingFacilityRequestStatus.Cancelled;\r\n }\r\n public get isNonAcceptanceTypeCancelled() {\r\n return this._props.nonAcceptanceType === NonAcceptanceType.Cancelled;\r\n }\r\n public get isStatusDenied() {\r\n return this._props.status === ReceivingFacilityRequestStatus.Denied;\r\n }\r\n public get isNonAcceptanceTypeDenied() {\r\n return this._props.nonAcceptanceType === NonAcceptanceType.Denied;\r\n }\r\n public get isStatusDiverted() {\r\n return this._props.status === ReceivingFacilityRequestStatus.Diverted;\r\n }\r\n public get isNonAcceptanceTypeDiverted() {\r\n return this._props.nonAcceptanceType === NonAcceptanceType.Diverted;\r\n }\r\n public get isPending() {\r\n return this._props.status === ReceivingFacilityRequestStatus.Pending;\r\n }\r\n public get isReferred() {\r\n return this._props.nonAcceptanceType === NonAcceptanceType.Referred;\r\n }\r\n\r\n public isAnyStatus(...receivingFacilityRequestStatus: ReceivingFacilityRequestStatus[]) {\r\n return receivingFacilityRequestStatus.includes(this._props.status);\r\n }\r\n public isAnyNonAcceptanceType(...nonAcceptanceType: NonAcceptanceType[]) {\r\n return (\r\n this._props.nonAcceptanceType != null &&\r\n nonAcceptanceType.includes(this._props.nonAcceptanceType)\r\n );\r\n }\r\n\r\n constructor(props: ReceivingFacilityRequestProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n status: this._props.status,\r\n cardId: this._props.cardId,\r\n requestId: this._props.requestId,\r\n medicalFacilityId: this._props.medicalFacilityId,\r\n nonAcceptanceType: this._props.nonAcceptanceType,\r\n nonAcceptanceReasonId: this._props.nonAcceptanceReasonId,\r\n referredToFacilityId: this._props.referredToFacilityId,\r\n requestLocationId: this._props.requestLocationId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllReceivingFacilityRequestEntities = (state: AppState) =>\r\n state.entityStores.receivingFacilityRequest.entities;\r\n\r\nexport const selectReceivingFacilityRequestById = (id: string) => (state: AppState) =>\r\n state.entityStores.receivingFacilityRequest.entities.get(id);\r\n\r\nexport const selectReceivingFacilityRequestMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.receivingFacilityRequest.meta.get(id);\r\n\r\nexport const selectReceivingFacilityRequestAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectReceivingFacilityRequestById(id),\r\n selectReceivingFacilityRequestMetadataById(id),\r\n (receivingFacilityRequest, meta) => ({ receivingFacilityRequest, meta }),\r\n );\r\n\r\nexport function selectReceivingFacilityRequestEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllReceivingFacilityRequestEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ReceivingFacilityRequestRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectReceivingFacilityRequestEntitiesByStatus(\r\n status: ReceivingFacilityRequestStatus,\r\n) {\r\n return createSelector(selectAllReceivingFacilityRequestEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectReceivingFacilityRequestEntitiesByCardId(cardId: string) {\r\n return createSelector(selectAllReceivingFacilityRequestEntities, (entities) =>\r\n entities.filter((e) => e.cardId === cardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectReceivingFacilityRequestEntitiesByRequestId(requestId: string) {\r\n return createSelector(selectAllReceivingFacilityRequestEntities, (entities) =>\r\n entities.filter((e) => e.requestId === requestId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectReceivingFacilityRequestEntitiesByMedicalFacilityId(\r\n medicalFacilityId: string,\r\n) {\r\n return createSelector(selectAllReceivingFacilityRequestEntities, (entities) =>\r\n entities.filter((e) => e.medicalFacilityId === medicalFacilityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectReceivingFacilityRequestEntitiesByNonAcceptanceType(\r\n nonAcceptanceType: NonAcceptanceType,\r\n) {\r\n return createSelector(selectAllReceivingFacilityRequestEntities, (entities) =>\r\n entities.filter((e) => e.nonAcceptanceType === nonAcceptanceType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectReceivingFacilityRequestEntitiesByNonAcceptanceReasonId(\r\n nonAcceptanceReasonId: string,\r\n) {\r\n return createSelector(selectAllReceivingFacilityRequestEntities, (entities) =>\r\n entities.filter((e) => e.nonAcceptanceReasonId === nonAcceptanceReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectReceivingFacilityRequestEntitiesByReferredToFacilityId(\r\n referredToFacilityId: string,\r\n) {\r\n return createSelector(selectAllReceivingFacilityRequestEntities, (entities) =>\r\n entities.filter((e) => e.referredToFacilityId === referredToFacilityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectReceivingFacilityRequestEntitiesByRequestLocationId(\r\n requestLocationId: string,\r\n) {\r\n return createSelector(selectAllReceivingFacilityRequestEntities, (entities) =>\r\n entities.filter((e) => e.requestLocationId === requestLocationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectReceivingFacilityRequestEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllReceivingFacilityRequestEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AmrUtilizationStatus, SupplementalLegType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RendezvousRequestProps {\r\n id: string;\r\n type: SupplementalLegType;\r\n agencyLocationId: string | null;\r\n agencyEta: Date | null;\r\n rendezvousLocationDescription: string | null;\r\n contactInformation: string | null;\r\n confirmedAt: Date | null;\r\n departedLzAt: Date | null;\r\n arrivedDestAt: Date | null;\r\n departedDestAt: Date | null;\r\n arrivedLzAt: Date | null;\r\n cancelledAt: Date | null;\r\n notes: string | null;\r\n utilizationStatus: AmrUtilizationStatus;\r\n transportUnitNumber: string | null;\r\n requestLocationId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class RendezvousRequestRecord extends Record({\r\n id: null as any,\r\n type: null as any,\r\n agencyLocationId: null as any,\r\n agencyEta: null as any,\r\n rendezvousLocationDescription: null as any,\r\n contactInformation: null as any,\r\n confirmedAt: null as any,\r\n departedLzAt: null as any,\r\n arrivedDestAt: null as any,\r\n departedDestAt: null as any,\r\n arrivedLzAt: null as any,\r\n cancelledAt: null as any,\r\n notes: null as any,\r\n utilizationStatus: null as any,\r\n transportUnitNumber: null as any,\r\n requestLocationId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n type: SupplementalLegType;\r\n agencyLocationId: string | null;\r\n agencyEta: string | number | Date | null;\r\n rendezvousLocationDescription: string | null;\r\n contactInformation: string | null;\r\n confirmedAt: string | number | Date | null;\r\n departedLzAt: string | number | Date | null;\r\n arrivedDestAt: string | number | Date | null;\r\n departedDestAt: string | number | Date | null;\r\n arrivedLzAt: string | number | Date | null;\r\n cancelledAt: string | number | Date | null;\r\n notes: string | null;\r\n utilizationStatus: AmrUtilizationStatus;\r\n transportUnitNumber: string | null;\r\n requestLocationId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): RendezvousRequestRecord {\r\n if (json == null) {\r\n throw new Error('RendezvousRequestRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RendezvousRequestRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RendezvousRequestJson.id'),\r\n type: getFromOrThrow(json, (j) => j.type, 'RendezvousRequestJson.type'),\r\n agencyLocationId: json.agencyLocationId,\r\n agencyEta: json.agencyEta != null ? new Date(json.agencyEta) : null,\r\n rendezvousLocationDescription: json.rendezvousLocationDescription,\r\n contactInformation: json.contactInformation,\r\n confirmedAt: json.confirmedAt != null ? new Date(json.confirmedAt) : null,\r\n departedLzAt: json.departedLzAt != null ? new Date(json.departedLzAt) : null,\r\n arrivedDestAt: json.arrivedDestAt != null ? new Date(json.arrivedDestAt) : null,\r\n departedDestAt: json.departedDestAt != null ? new Date(json.departedDestAt) : null,\r\n arrivedLzAt: json.arrivedLzAt != null ? new Date(json.arrivedLzAt) : null,\r\n cancelledAt: json.cancelledAt != null ? new Date(json.cancelledAt) : null,\r\n notes: json.notes,\r\n utilizationStatus: getFromOrThrow(\r\n json,\r\n (j) => j.utilizationStatus,\r\n 'RendezvousRequestJson.utilizationStatus',\r\n ),\r\n transportUnitNumber: json.transportUnitNumber,\r\n requestLocationId: getFromOrThrow(\r\n json,\r\n (j) => j.requestLocationId,\r\n 'RendezvousRequestJson.requestLocationId',\r\n ),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'RendezvousRequestJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n type: SupplementalLegType;\r\n agencyLocationId: string | null;\r\n agencyEta: string | number | Date | null;\r\n rendezvousLocationDescription: string | null;\r\n contactInformation: string | null;\r\n confirmedAt: string | number | Date | null;\r\n departedLzAt: string | number | Date | null;\r\n arrivedDestAt: string | number | Date | null;\r\n departedDestAt: string | number | Date | null;\r\n arrivedLzAt: string | number | Date | null;\r\n cancelledAt: string | number | Date | null;\r\n notes: string | null;\r\n utilizationStatus: AmrUtilizationStatus;\r\n transportUnitNumber: string | null;\r\n requestLocationId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [RendezvousRequestRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RendezvousRequestRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RendezvousRequestRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RendezvousRequestJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'RendezvousRequestJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n agencyLocationId: tryOrDefault(\r\n () => json.agencyLocationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n agencyEta: tryOrDefault(\r\n () => (json.agencyEta != null ? new Date(json.agencyEta) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n rendezvousLocationDescription: tryOrDefault(\r\n () => json.rendezvousLocationDescription,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n contactInformation: tryOrDefault(\r\n () => json.contactInformation,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n confirmedAt: tryOrDefault(\r\n () => (json.confirmedAt != null ? new Date(json.confirmedAt) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n departedLzAt: tryOrDefault(\r\n () => (json.departedLzAt != null ? new Date(json.departedLzAt) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n arrivedDestAt: tryOrDefault(\r\n () => (json.arrivedDestAt != null ? new Date(json.arrivedDestAt) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n departedDestAt: tryOrDefault(\r\n () => (json.departedDestAt != null ? new Date(json.departedDestAt) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n arrivedLzAt: tryOrDefault(\r\n () => (json.arrivedLzAt != null ? new Date(json.arrivedLzAt) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cancelledAt: tryOrDefault(\r\n () => (json.cancelledAt != null ? new Date(json.cancelledAt) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n utilizationStatus: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.utilizationStatus,\r\n 'RendezvousRequestJson.utilizationStatus',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportUnitNumber: tryOrDefault(\r\n () => json.transportUnitNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestLocationId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requestLocationId,\r\n 'RendezvousRequestJson.requestLocationId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'RendezvousRequestJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RendezvousRequestProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RendezvousRequestRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RendezvousRequestViewModelBase implements RendezvousRequestProps {\r\n protected readonly _props: RendezvousRequestProps;\r\n private _json?: RendezvousRequestProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get type(): SupplementalLegType {\r\n return this._props.type;\r\n }\r\n get agencyLocationId(): string | null {\r\n return this._props.agencyLocationId;\r\n }\r\n get agencyEta(): Date | null {\r\n return this._props.agencyEta;\r\n }\r\n get rendezvousLocationDescription(): string | null {\r\n return this._props.rendezvousLocationDescription;\r\n }\r\n get contactInformation(): string | null {\r\n return this._props.contactInformation;\r\n }\r\n get confirmedAt(): Date | null {\r\n return this._props.confirmedAt;\r\n }\r\n get departedLzAt(): Date | null {\r\n return this._props.departedLzAt;\r\n }\r\n get arrivedDestAt(): Date | null {\r\n return this._props.arrivedDestAt;\r\n }\r\n get departedDestAt(): Date | null {\r\n return this._props.departedDestAt;\r\n }\r\n get arrivedLzAt(): Date | null {\r\n return this._props.arrivedLzAt;\r\n }\r\n get cancelledAt(): Date | null {\r\n return this._props.cancelledAt;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get utilizationStatus(): AmrUtilizationStatus {\r\n return this._props.utilizationStatus;\r\n }\r\n get transportUnitNumber(): string | null {\r\n return this._props.transportUnitNumber;\r\n }\r\n get requestLocationId(): string {\r\n return this._props.requestLocationId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCompanyUnit() {\r\n return this._props.type === SupplementalLegType.CompanyUnit;\r\n }\r\n public get isExternalAgency() {\r\n return this._props.type === SupplementalLegType.ExternalAgency;\r\n }\r\n public get isSisterCompanyUnit() {\r\n return this._props.type === SupplementalLegType.SisterCompanyUnit;\r\n }\r\n public get isNoResourcesAvailable() {\r\n return this._props.utilizationStatus === AmrUtilizationStatus.NoResourcesAvailable;\r\n }\r\n public get isNoServiceAvailable() {\r\n return this._props.utilizationStatus === AmrUtilizationStatus.NoServiceAvailable;\r\n }\r\n public get isNotConsidered() {\r\n return this._props.utilizationStatus === AmrUtilizationStatus.NotConsidered;\r\n }\r\n public get isUnsatisfactoryEta() {\r\n return this._props.utilizationStatus === AmrUtilizationStatus.UnsatisfactoryEta;\r\n }\r\n public get isUnspecified() {\r\n return this._props.utilizationStatus === AmrUtilizationStatus.Unspecified;\r\n }\r\n public get isUtilized() {\r\n return this._props.utilizationStatus === AmrUtilizationStatus.Utilized;\r\n }\r\n\r\n public isAnyType(...supplementalLegType: SupplementalLegType[]) {\r\n return supplementalLegType.includes(this._props.type);\r\n }\r\n public isAnyUtilizationStatus(...amrUtilizationStatus: AmrUtilizationStatus[]) {\r\n return amrUtilizationStatus.includes(this._props.utilizationStatus);\r\n }\r\n\r\n constructor(props: RendezvousRequestProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n type: this._props.type,\r\n agencyLocationId: this._props.agencyLocationId,\r\n agencyEta: this._props.agencyEta,\r\n rendezvousLocationDescription: this._props.rendezvousLocationDescription,\r\n contactInformation: this._props.contactInformation,\r\n confirmedAt: this._props.confirmedAt,\r\n departedLzAt: this._props.departedLzAt,\r\n arrivedDestAt: this._props.arrivedDestAt,\r\n departedDestAt: this._props.departedDestAt,\r\n arrivedLzAt: this._props.arrivedLzAt,\r\n cancelledAt: this._props.cancelledAt,\r\n notes: this._props.notes,\r\n utilizationStatus: this._props.utilizationStatus,\r\n transportUnitNumber: this._props.transportUnitNumber,\r\n requestLocationId: this._props.requestLocationId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllRendezvousRequestEntities = (state: AppState) =>\r\n state.entityStores.rendezvousRequest.entities;\r\n\r\nexport const selectRendezvousRequestById = (id: string) => (state: AppState) =>\r\n state.entityStores.rendezvousRequest.entities.get(id);\r\n\r\nexport const selectRendezvousRequestMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.rendezvousRequest.meta.get(id);\r\n\r\nexport const selectRendezvousRequestAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectRendezvousRequestById(id),\r\n selectRendezvousRequestMetadataById(id),\r\n (rendezvousRequest, meta) => ({ rendezvousRequest, meta }),\r\n );\r\n\r\nexport function selectRendezvousRequestEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllRendezvousRequestEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, RendezvousRequestRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByType(type: SupplementalLegType) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByAgencyLocationId(agencyLocationId: string) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.agencyLocationId === agencyLocationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByAgencyEta(agencyEta: Date) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.agencyEta === agencyEta).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByRendezvousLocationDescription(\r\n rendezvousLocationDescription: string,\r\n) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities\r\n .filter((e) => e.rendezvousLocationDescription === rendezvousLocationDescription)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByContactInformation(contactInformation: string) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.contactInformation === contactInformation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByConfirmedAt(confirmedAt: Date) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.confirmedAt === confirmedAt).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByDepartedLzAt(departedLzAt: Date) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.departedLzAt === departedLzAt).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByArrivedDestAt(arrivedDestAt: Date) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.arrivedDestAt === arrivedDestAt).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByDepartedDestAt(departedDestAt: Date) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.departedDestAt === departedDestAt).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByArrivedLzAt(arrivedLzAt: Date) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.arrivedLzAt === arrivedLzAt).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByCancelledAt(cancelledAt: Date) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.cancelledAt === cancelledAt).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByUtilizationStatus(\r\n utilizationStatus: AmrUtilizationStatus,\r\n) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.utilizationStatus === utilizationStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByTransportUnitNumber(transportUnitNumber: string) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.transportUnitNumber === transportUnitNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByRequestLocationId(requestLocationId: string) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.requestLocationId === requestLocationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRendezvousRequestEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllRendezvousRequestEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface SafetyQuestionsProps {\r\n otherServiceDeclined: boolean | null;\r\n otherServiceDescription: string | null;\r\n otherServicesAreRespondingToTransferring: boolean | null;\r\n otherServiceResponseDescription: string | null;\r\n}\r\n\r\nexport class SafetyQuestionsRecord extends Record({\r\n otherServiceDeclined: null as any,\r\n otherServiceDescription: null as any,\r\n otherServicesAreRespondingToTransferring: null as any,\r\n otherServiceResponseDescription: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n otherServiceDeclined: boolean | null;\r\n otherServiceDescription: string | null;\r\n otherServicesAreRespondingToTransferring: boolean | null;\r\n otherServiceResponseDescription: string | null;\r\n }): SafetyQuestionsRecord {\r\n if (json == null) {\r\n throw new Error('SafetyQuestionsRecord.fromJS: parameter cannot be null');\r\n }\r\n return new SafetyQuestionsRecord({\r\n otherServiceDeclined: json.otherServiceDeclined,\r\n otherServiceDescription: json.otherServiceDescription,\r\n otherServicesAreRespondingToTransferring: json.otherServicesAreRespondingToTransferring,\r\n otherServiceResponseDescription: json.otherServiceResponseDescription,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n otherServiceDeclined: boolean | null;\r\n otherServiceDescription: string | null;\r\n otherServicesAreRespondingToTransferring: boolean | null;\r\n otherServiceResponseDescription: string | null;\r\n }): [SafetyQuestionsRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('SafetyQuestionsRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new SafetyQuestionsRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n otherServiceDeclined: tryOrDefault(\r\n () => json.otherServiceDeclined,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n otherServiceDescription: tryOrDefault(\r\n () => json.otherServiceDescription,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n otherServicesAreRespondingToTransferring: tryOrDefault(\r\n () => json.otherServicesAreRespondingToTransferring,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n otherServiceResponseDescription: tryOrDefault(\r\n () => json.otherServiceResponseDescription,\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: SafetyQuestionsProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('SafetyQuestionsRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class SafetyQuestionsViewModelBase implements SafetyQuestionsProps {\r\n protected readonly _props: SafetyQuestionsProps;\r\n private _json?: SafetyQuestionsProps;\r\n\r\n get otherServiceDeclined(): boolean | null {\r\n return this._props.otherServiceDeclined;\r\n }\r\n get otherServiceDescription(): string | null {\r\n return this._props.otherServiceDescription;\r\n }\r\n get otherServicesAreRespondingToTransferring(): boolean | null {\r\n return this._props.otherServicesAreRespondingToTransferring;\r\n }\r\n get otherServiceResponseDescription(): string | null {\r\n return this._props.otherServiceResponseDescription;\r\n }\r\n\r\n constructor(props: SafetyQuestionsProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n otherServiceDeclined: this._props.otherServiceDeclined,\r\n otherServiceDescription: this._props.otherServiceDescription,\r\n otherServicesAreRespondingToTransferring:\r\n this._props.otherServicesAreRespondingToTransferring,\r\n otherServiceResponseDescription: this._props.otherServiceResponseDescription,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RequiredCapabilityProps {\r\n id: string;\r\n}\r\n\r\nexport class RequiredCapabilityRecord extends Record({\r\n id: null as any,\r\n}) {\r\n public static fromJS(json: { id: string }): RequiredCapabilityRecord {\r\n if (json == null) {\r\n throw new Error('RequiredCapabilityRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RequiredCapabilityRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RequiredCapabilityJson.id'),\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: { id: string }): [RequiredCapabilityRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RequiredCapabilityRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RequiredCapabilityRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RequiredCapabilityJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RequiredCapabilityProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RequiredCapabilityRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RequiredCapabilityViewModelBase implements RequiredCapabilityProps {\r\n protected readonly _props: RequiredCapabilityProps;\r\n private _json?: RequiredCapabilityProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n\r\n constructor(props: RequiredCapabilityProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n FlightRule,\r\n MissionConfiguration,\r\n MissionProfile,\r\n OperationType,\r\n RequestStatus,\r\n TransportOfferAlgorithm,\r\n VehicleType,\r\n WebOrderCallType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n SafetyQuestionsRecord,\r\n SafetyQuestionsProps,\r\n} from 'src/store/generated/safety-questions-record.generated';\r\nimport {\r\n RequiredCapabilityRecord,\r\n RequiredCapabilityProps,\r\n} from 'src/store/generated/required-capability-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RequestProps {\r\n id: string;\r\n status: RequestStatus;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n requestedVehicleType: VehicleType | null;\r\n requestedOperationType: OperationType;\r\n primaryUnitServiceAreaId: string | null;\r\n isStandbyRequest: boolean;\r\n commitUnitToStandby: boolean | null;\r\n standbyActivationRequested: boolean;\r\n safetyQuestions: SafetyQuestionsProps;\r\n assignmentDelayedTime: Date | null;\r\n assignmentDelayedReasonId: string | null;\r\n regionId: string | null;\r\n includeCompetitors: boolean | null;\r\n transportOfferAlgorithmId: string | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n requiredCapabilities: List;\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: Date | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n webOrderCallType: WebOrderCallType | null;\r\n etloInMinutes: number | null;\r\n atloInMinutes: number | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class RequestRecord extends Record({\r\n id: null as any,\r\n status: null as any,\r\n cancellationReasonId: null as any,\r\n cancellationSecondaryReasonId: null as any,\r\n cancellationReasonNotes: null as any,\r\n requestedVehicleType: null as any,\r\n requestedOperationType: null as any,\r\n primaryUnitServiceAreaId: null as any,\r\n isStandbyRequest: null as any,\r\n commitUnitToStandby: null as any,\r\n standbyActivationRequested: null as any,\r\n safetyQuestions: null as any,\r\n assignmentDelayedTime: null as any,\r\n assignmentDelayedReasonId: null as any,\r\n regionId: null as any,\r\n includeCompetitors: null as any,\r\n transportOfferAlgorithmId: null as any,\r\n transportOfferAlgorithm: null as any,\r\n minimumFlightRule: null as any,\r\n requiredCapabilities: null as any,\r\n missionConfiguration: null as any,\r\n missionProfile: null as any,\r\n transportTrackingLink: null as any,\r\n latestWeatherDeclineUnitId: null as any,\r\n latestWeatherDeclineTime: null as any,\r\n latestWeatherDeclineReasonId: null as any,\r\n latestWeatherDeclineSecondaryReasonId: null as any,\r\n webOrderCallType: null as any,\r\n etloInMinutes: null as any,\r\n atloInMinutes: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n status: RequestStatus;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n requestedVehicleType: VehicleType | null;\r\n requestedOperationType: OperationType;\r\n primaryUnitServiceAreaId: string | null;\r\n isStandbyRequest: boolean;\r\n commitUnitToStandby: boolean | null;\r\n standbyActivationRequested: boolean;\r\n safetyQuestions: any;\r\n assignmentDelayedTime: string | number | Date | null;\r\n assignmentDelayedReasonId: string | null;\r\n regionId: string | null;\r\n includeCompetitors: boolean | null;\r\n transportOfferAlgorithmId: string | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n requiredCapabilities: any;\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: string | number | Date | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n webOrderCallType: WebOrderCallType | null;\r\n etloInMinutes: number | null;\r\n atloInMinutes: number | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): RequestRecord {\r\n if (json == null) {\r\n throw new Error('RequestRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RequestRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RequestJson.id'),\r\n status: getFromOrThrow(json, (j) => j.status, 'RequestJson.status'),\r\n cancellationReasonId: json.cancellationReasonId,\r\n cancellationSecondaryReasonId: json.cancellationSecondaryReasonId,\r\n cancellationReasonNotes: json.cancellationReasonNotes,\r\n requestedVehicleType: json.requestedVehicleType,\r\n requestedOperationType: getFromOrThrow(\r\n json,\r\n (j) => j.requestedOperationType,\r\n 'RequestJson.requestedOperationType',\r\n ),\r\n primaryUnitServiceAreaId: json.primaryUnitServiceAreaId,\r\n isStandbyRequest: getFromOrThrow(\r\n json,\r\n (j) => j.isStandbyRequest,\r\n 'RequestJson.isStandbyRequest',\r\n ),\r\n commitUnitToStandby: json.commitUnitToStandby,\r\n standbyActivationRequested: getFromOrThrow(\r\n json,\r\n (j) => j.standbyActivationRequested,\r\n 'RequestJson.standbyActivationRequested',\r\n ),\r\n safetyQuestions: new SafetyQuestionsRecord(\r\n getFromOrThrow(json, (j) => j.safetyQuestions, 'RequestJson.safetyQuestions'),\r\n ),\r\n assignmentDelayedTime:\r\n json.assignmentDelayedTime != null ? new Date(json.assignmentDelayedTime) : null,\r\n assignmentDelayedReasonId: json.assignmentDelayedReasonId,\r\n regionId: json.regionId,\r\n includeCompetitors: json.includeCompetitors,\r\n transportOfferAlgorithmId: json.transportOfferAlgorithmId,\r\n transportOfferAlgorithm: json.transportOfferAlgorithm,\r\n minimumFlightRule: json.minimumFlightRule,\r\n requiredCapabilities: List(\r\n getFromOrThrow(json, (j) => j.requiredCapabilities, 'RequestJson.requiredCapabilities').map(\r\n (o: any) => new RequiredCapabilityRecord(o),\r\n ),\r\n ),\r\n missionConfiguration: getFromOrThrow(\r\n json,\r\n (j) => j.missionConfiguration,\r\n 'RequestJson.missionConfiguration',\r\n ),\r\n missionProfile: getFromOrThrow(json, (j) => j.missionProfile, 'RequestJson.missionProfile'),\r\n transportTrackingLink: json.transportTrackingLink,\r\n latestWeatherDeclineUnitId: json.latestWeatherDeclineUnitId,\r\n latestWeatherDeclineTime:\r\n json.latestWeatherDeclineTime != null ? new Date(json.latestWeatherDeclineTime) : null,\r\n latestWeatherDeclineReasonId: json.latestWeatherDeclineReasonId,\r\n latestWeatherDeclineSecondaryReasonId: json.latestWeatherDeclineSecondaryReasonId,\r\n webOrderCallType: json.webOrderCallType,\r\n etloInMinutes: json.etloInMinutes,\r\n atloInMinutes: json.atloInMinutes,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'RequestJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n status: RequestStatus;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n requestedVehicleType: VehicleType | null;\r\n requestedOperationType: OperationType;\r\n primaryUnitServiceAreaId: string | null;\r\n isStandbyRequest: boolean;\r\n commitUnitToStandby: boolean | null;\r\n standbyActivationRequested: boolean;\r\n safetyQuestions: any;\r\n assignmentDelayedTime: string | number | Date | null;\r\n assignmentDelayedReasonId: string | null;\r\n regionId: string | null;\r\n includeCompetitors: boolean | null;\r\n transportOfferAlgorithmId: string | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n requiredCapabilities: any;\r\n missionConfiguration: MissionConfiguration;\r\n missionProfile: MissionProfile;\r\n transportTrackingLink: string | null;\r\n latestWeatherDeclineUnitId: string | null;\r\n latestWeatherDeclineTime: string | number | Date | null;\r\n latestWeatherDeclineReasonId: string | null;\r\n latestWeatherDeclineSecondaryReasonId: string | null;\r\n webOrderCallType: WebOrderCallType | null;\r\n etloInMinutes: number | null;\r\n atloInMinutes: number | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [RequestRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RequestRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RequestRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RequestJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'RequestJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cancellationReasonId: tryOrDefault(\r\n () => json.cancellationReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cancellationSecondaryReasonId: tryOrDefault(\r\n () => json.cancellationSecondaryReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cancellationReasonNotes: tryOrDefault(\r\n () => json.cancellationReasonNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestedVehicleType: tryOrDefault(\r\n () => json.requestedVehicleType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestedOperationType: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requestedOperationType,\r\n 'RequestJson.requestedOperationType',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n primaryUnitServiceAreaId: tryOrDefault(\r\n () => json.primaryUnitServiceAreaId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isStandbyRequest: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isStandbyRequest, 'RequestJson.isStandbyRequest'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n commitUnitToStandby: tryOrDefault(\r\n () => json.commitUnitToStandby,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n standbyActivationRequested: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.standbyActivationRequested,\r\n 'RequestJson.standbyActivationRequested',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n safetyQuestions: tryOrDefault(\r\n () =>\r\n new SafetyQuestionsRecord(\r\n getFromOrThrow(json, (j) => j.safetyQuestions, 'RequestJson.safetyQuestions'),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n assignmentDelayedTime: tryOrDefault(\r\n () => (json.assignmentDelayedTime != null ? new Date(json.assignmentDelayedTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n assignmentDelayedReasonId: tryOrDefault(\r\n () => json.assignmentDelayedReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => json.regionId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n includeCompetitors: tryOrDefault(\r\n () => json.includeCompetitors,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportOfferAlgorithmId: tryOrDefault(\r\n () => json.transportOfferAlgorithmId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportOfferAlgorithm: tryOrDefault(\r\n () => json.transportOfferAlgorithm,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n minimumFlightRule: tryOrDefault(\r\n () => json.minimumFlightRule,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requiredCapabilities: tryOrDefault(\r\n () =>\r\n List(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requiredCapabilities,\r\n 'RequestJson.requiredCapabilities',\r\n ).map((o: any) => new RequiredCapabilityRecord(o)),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n missionConfiguration: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.missionConfiguration, 'RequestJson.missionConfiguration'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n missionProfile: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.missionProfile, 'RequestJson.missionProfile'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportTrackingLink: tryOrDefault(\r\n () => json.transportTrackingLink,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latestWeatherDeclineUnitId: tryOrDefault(\r\n () => json.latestWeatherDeclineUnitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latestWeatherDeclineTime: tryOrDefault(\r\n () =>\r\n json.latestWeatherDeclineTime != null ? new Date(json.latestWeatherDeclineTime) : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latestWeatherDeclineReasonId: tryOrDefault(\r\n () => json.latestWeatherDeclineReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latestWeatherDeclineSecondaryReasonId: tryOrDefault(\r\n () => json.latestWeatherDeclineSecondaryReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n webOrderCallType: tryOrDefault(\r\n () => json.webOrderCallType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n etloInMinutes: tryOrDefault(\r\n () => json.etloInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n atloInMinutes: tryOrDefault(\r\n () => json.atloInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'RequestJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RequestProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RequestRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RequestViewModelBase implements RequestProps {\r\n protected readonly _props: RequestProps;\r\n private _json?: RequestProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get status(): RequestStatus {\r\n return this._props.status;\r\n }\r\n get cancellationReasonId(): string | null {\r\n return this._props.cancellationReasonId;\r\n }\r\n get cancellationSecondaryReasonId(): string | null {\r\n return this._props.cancellationSecondaryReasonId;\r\n }\r\n get cancellationReasonNotes(): string | null {\r\n return this._props.cancellationReasonNotes;\r\n }\r\n get requestedVehicleType(): VehicleType | null {\r\n return this._props.requestedVehicleType;\r\n }\r\n get requestedOperationType(): OperationType {\r\n return this._props.requestedOperationType;\r\n }\r\n get primaryUnitServiceAreaId(): string | null {\r\n return this._props.primaryUnitServiceAreaId;\r\n }\r\n get isStandbyRequest(): boolean {\r\n return this._props.isStandbyRequest;\r\n }\r\n get commitUnitToStandby(): boolean | null {\r\n return this._props.commitUnitToStandby;\r\n }\r\n get standbyActivationRequested(): boolean {\r\n return this._props.standbyActivationRequested;\r\n }\r\n get safetyQuestions(): SafetyQuestionsProps {\r\n return this._props.safetyQuestions;\r\n }\r\n get assignmentDelayedTime(): Date | null {\r\n return this._props.assignmentDelayedTime;\r\n }\r\n get assignmentDelayedReasonId(): string | null {\r\n return this._props.assignmentDelayedReasonId;\r\n }\r\n get regionId(): string | null {\r\n return this._props.regionId;\r\n }\r\n get includeCompetitors(): boolean | null {\r\n return this._props.includeCompetitors;\r\n }\r\n get transportOfferAlgorithmId(): string | null {\r\n return this._props.transportOfferAlgorithmId;\r\n }\r\n get transportOfferAlgorithm(): TransportOfferAlgorithm | null {\r\n return this._props.transportOfferAlgorithm;\r\n }\r\n get minimumFlightRule(): FlightRule | null {\r\n return this._props.minimumFlightRule;\r\n }\r\n get requiredCapabilities(): List {\r\n return this._props.requiredCapabilities;\r\n }\r\n get missionConfiguration(): MissionConfiguration {\r\n return this._props.missionConfiguration;\r\n }\r\n get missionProfile(): MissionProfile {\r\n return this._props.missionProfile;\r\n }\r\n get transportTrackingLink(): string | null {\r\n return this._props.transportTrackingLink;\r\n }\r\n get latestWeatherDeclineUnitId(): string | null {\r\n return this._props.latestWeatherDeclineUnitId;\r\n }\r\n get latestWeatherDeclineTime(): Date | null {\r\n return this._props.latestWeatherDeclineTime;\r\n }\r\n get latestWeatherDeclineReasonId(): string | null {\r\n return this._props.latestWeatherDeclineReasonId;\r\n }\r\n get latestWeatherDeclineSecondaryReasonId(): string | null {\r\n return this._props.latestWeatherDeclineSecondaryReasonId;\r\n }\r\n get webOrderCallType(): WebOrderCallType | null {\r\n return this._props.webOrderCallType;\r\n }\r\n get etloInMinutes(): number | null {\r\n return this._props.etloInMinutes;\r\n }\r\n get atloInMinutes(): number | null {\r\n return this._props.atloInMinutes;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAssigned() {\r\n return this._props.status === RequestStatus.Assigned;\r\n }\r\n public get isAssignmentDelayed() {\r\n return this._props.status === RequestStatus.AssignmentDelayed;\r\n }\r\n public get isCallReceived() {\r\n return this._props.status === RequestStatus.CallReceived;\r\n }\r\n public get isCancelled() {\r\n return this._props.status === RequestStatus.Cancelled;\r\n }\r\n public get isOffered() {\r\n return this._props.status === RequestStatus.Offered;\r\n }\r\n public get isOffering() {\r\n return this._props.status === RequestStatus.Offering;\r\n }\r\n public get isFixedWing() {\r\n return this._props.requestedVehicleType === VehicleType.FixedWing;\r\n }\r\n public get isGround() {\r\n return this._props.requestedVehicleType === VehicleType.Ground;\r\n }\r\n public get isRotorWing() {\r\n return this._props.requestedVehicleType === VehicleType.RotorWing;\r\n }\r\n public get isRequestedVehicleTypeUnspecified() {\r\n return this._props.requestedVehicleType === VehicleType.Unspecified;\r\n }\r\n public get isMissionConfigurationUnspecified() {\r\n return this._props.missionConfiguration === MissionConfiguration.Unspecified;\r\n }\r\n public get isMissionProfileUnspecified() {\r\n return this._props.missionProfile === MissionProfile.Unspecified;\r\n }\r\n public get isGroundRun() {\r\n return this._props.requestedOperationType === OperationType.GroundRun;\r\n }\r\n public get isMaintenance() {\r\n return this._props.requestedOperationType === OperationType.Maintenance;\r\n }\r\n public get isNonPatientShuttle() {\r\n return this._props.requestedOperationType === OperationType.NonPatientShuttle;\r\n }\r\n public get isPatientShuttle() {\r\n return this._props.requestedOperationType === OperationType.PatientShuttle;\r\n }\r\n public get isPublicRelations() {\r\n return this._props.requestedOperationType === OperationType.PublicRelations;\r\n }\r\n public get isPublicUtility() {\r\n return this._props.requestedOperationType === OperationType.PublicUtility;\r\n }\r\n public get isReposition() {\r\n return this._props.requestedOperationType === OperationType.Reposition;\r\n }\r\n public get isResidence() {\r\n return this._props.requestedOperationType === OperationType.Residence;\r\n }\r\n public get isSceneCall() {\r\n return this._props.requestedOperationType === OperationType.SceneCall;\r\n }\r\n public get isSearchAndAssist() {\r\n return this._props.requestedOperationType === OperationType.SearchAndAssist;\r\n }\r\n public get isTraining() {\r\n return this._props.requestedOperationType === OperationType.Training;\r\n }\r\n public get isTransfer() {\r\n return this._props.requestedOperationType === OperationType.Transfer;\r\n }\r\n public get isTransferCenter() {\r\n return this._props.requestedOperationType === OperationType.TransferCenter;\r\n }\r\n public get isShortestDistance() {\r\n return this._props.transportOfferAlgorithm === TransportOfferAlgorithm.ShortestDistance;\r\n }\r\n public get isShortestEta() {\r\n return this._props.transportOfferAlgorithm === TransportOfferAlgorithm.ShortestEta;\r\n }\r\n public get isIfr() {\r\n return this._props.minimumFlightRule === FlightRule.Ifr;\r\n }\r\n public get isNone() {\r\n return this._props.minimumFlightRule === FlightRule.None;\r\n }\r\n public get isVfr() {\r\n return this._props.minimumFlightRule === FlightRule.Vfr;\r\n }\r\n public get isCommunityRequest() {\r\n return this._props.missionConfiguration === MissionConfiguration.CommunityRequest;\r\n }\r\n public get isContractServices() {\r\n return this._props.missionConfiguration === MissionConfiguration.ContractServices;\r\n }\r\n public get isGovernmentIncident() {\r\n return this._props.missionConfiguration === MissionConfiguration.GovernmentIncident;\r\n }\r\n public get isAerialOperation() {\r\n return this._props.missionProfile === MissionProfile.AerialOperation;\r\n }\r\n public get isFireSuppression() {\r\n return this._props.missionProfile === MissionProfile.FireSuppression;\r\n }\r\n public get isHoistRescue() {\r\n return this._props.missionProfile === MissionProfile.HoistRescue;\r\n }\r\n public get isRapidCall() {\r\n return this._props.webOrderCallType === WebOrderCallType.RapidCall;\r\n }\r\n public get isWebOrder() {\r\n return this._props.webOrderCallType === WebOrderCallType.WebOrder;\r\n }\r\n\r\n public isAnyStatus(...requestStatus: RequestStatus[]) {\r\n return requestStatus.includes(this._props.status);\r\n }\r\n public isAnyRequestedVehicleType(...vehicleType: VehicleType[]) {\r\n return (\r\n this._props.requestedVehicleType != null &&\r\n vehicleType.includes(this._props.requestedVehicleType)\r\n );\r\n }\r\n public isAnyRequestedOperationType(...operationType: OperationType[]) {\r\n return operationType.includes(this._props.requestedOperationType);\r\n }\r\n public isAnyTransportOfferAlgorithm(...transportOfferAlgorithm: TransportOfferAlgorithm[]) {\r\n return (\r\n this._props.transportOfferAlgorithm != null &&\r\n transportOfferAlgorithm.includes(this._props.transportOfferAlgorithm)\r\n );\r\n }\r\n public isAnyMinimumFlightRule(...flightRule: FlightRule[]) {\r\n return (\r\n this._props.minimumFlightRule != null && flightRule.includes(this._props.minimumFlightRule)\r\n );\r\n }\r\n public isAnyMissionConfiguration(...missionConfiguration: MissionConfiguration[]) {\r\n return missionConfiguration.includes(this._props.missionConfiguration);\r\n }\r\n public isAnyMissionProfile(...missionProfile: MissionProfile[]) {\r\n return missionProfile.includes(this._props.missionProfile);\r\n }\r\n public isAnyWebOrderCallType(...webOrderCallType: WebOrderCallType[]) {\r\n return (\r\n this._props.webOrderCallType != null &&\r\n webOrderCallType.includes(this._props.webOrderCallType)\r\n );\r\n }\r\n\r\n constructor(props: RequestProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n status: this._props.status,\r\n cancellationReasonId: this._props.cancellationReasonId,\r\n cancellationSecondaryReasonId: this._props.cancellationSecondaryReasonId,\r\n cancellationReasonNotes: this._props.cancellationReasonNotes,\r\n requestedVehicleType: this._props.requestedVehicleType,\r\n requestedOperationType: this._props.requestedOperationType,\r\n primaryUnitServiceAreaId: this._props.primaryUnitServiceAreaId,\r\n isStandbyRequest: this._props.isStandbyRequest,\r\n commitUnitToStandby: this._props.commitUnitToStandby,\r\n standbyActivationRequested: this._props.standbyActivationRequested,\r\n safetyQuestions: this._props.safetyQuestions,\r\n assignmentDelayedTime: this._props.assignmentDelayedTime,\r\n assignmentDelayedReasonId: this._props.assignmentDelayedReasonId,\r\n regionId: this._props.regionId,\r\n includeCompetitors: this._props.includeCompetitors,\r\n transportOfferAlgorithmId: this._props.transportOfferAlgorithmId,\r\n transportOfferAlgorithm: this._props.transportOfferAlgorithm,\r\n minimumFlightRule: this._props.minimumFlightRule,\r\n requiredCapabilities: this._props.requiredCapabilities,\r\n missionConfiguration: this._props.missionConfiguration,\r\n missionProfile: this._props.missionProfile,\r\n transportTrackingLink: this._props.transportTrackingLink,\r\n latestWeatherDeclineUnitId: this._props.latestWeatherDeclineUnitId,\r\n latestWeatherDeclineTime: this._props.latestWeatherDeclineTime,\r\n latestWeatherDeclineReasonId: this._props.latestWeatherDeclineReasonId,\r\n latestWeatherDeclineSecondaryReasonId: this._props.latestWeatherDeclineSecondaryReasonId,\r\n webOrderCallType: this._props.webOrderCallType,\r\n etloInMinutes: this._props.etloInMinutes,\r\n atloInMinutes: this._props.atloInMinutes,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllRequestEntities = (state: AppState) => state.entityStores.request.entities;\r\n\r\nexport const selectRequestById = (id: string) => (state: AppState) =>\r\n state.entityStores.request.entities.get(id);\r\n\r\nexport const selectRequestMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.request.meta.get(id);\r\n\r\nexport const selectRequestAndMetadataById = (id: string) =>\r\n createSelector(selectRequestById(id), selectRequestMetadataById(id), (request, meta) => ({\r\n request,\r\n meta,\r\n }));\r\n\r\nexport function selectRequestEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllRequestEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, RequestRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByStatus(status: RequestStatus) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByCancellationReasonId(cancellationReasonId: string) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.cancellationReasonId === cancellationReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByCancellationSecondaryReasonId(\r\n cancellationSecondaryReasonId: string,\r\n) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities\r\n .filter((e) => e.cancellationSecondaryReasonId === cancellationSecondaryReasonId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByCancellationReasonNotes(cancellationReasonNotes: string) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.cancellationReasonNotes === cancellationReasonNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByRequestedVehicleType(requestedVehicleType: VehicleType) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.requestedVehicleType === requestedVehicleType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByRequestedOperationType(\r\n requestedOperationType: OperationType,\r\n) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.requestedOperationType === requestedOperationType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByPrimaryUnitServiceAreaId(primaryUnitServiceAreaId: string) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.primaryUnitServiceAreaId === primaryUnitServiceAreaId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByIsStandbyRequest(isStandbyRequest: boolean) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.isStandbyRequest === isStandbyRequest).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByCommitUnitToStandby(commitUnitToStandby: boolean) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.commitUnitToStandby === commitUnitToStandby).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByStandbyActivationRequested(\r\n standbyActivationRequested: boolean,\r\n) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.standbyActivationRequested === standbyActivationRequested).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByAssignmentDelayedTime(assignmentDelayedTime: Date) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.assignmentDelayedTime === assignmentDelayedTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByAssignmentDelayedReasonId(\r\n assignmentDelayedReasonId: string,\r\n) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.assignmentDelayedReasonId === assignmentDelayedReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByIncludeCompetitors(includeCompetitors: boolean) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.includeCompetitors === includeCompetitors).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByTransportOfferAlgorithmId(\r\n transportOfferAlgorithmId: string,\r\n) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.transportOfferAlgorithmId === transportOfferAlgorithmId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByTransportOfferAlgorithm(\r\n transportOfferAlgorithm: TransportOfferAlgorithm,\r\n) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.transportOfferAlgorithm === transportOfferAlgorithm).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByMinimumFlightRule(minimumFlightRule: FlightRule) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.minimumFlightRule === minimumFlightRule).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByMissionConfiguration(\r\n missionConfiguration: MissionConfiguration,\r\n) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.missionConfiguration === missionConfiguration).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByMissionProfile(missionProfile: MissionProfile) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.missionProfile === missionProfile).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByTransportTrackingLink(transportTrackingLink: string) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.transportTrackingLink === transportTrackingLink).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByLatestWeatherDeclineUnitId(\r\n latestWeatherDeclineUnitId: string,\r\n) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.latestWeatherDeclineUnitId === latestWeatherDeclineUnitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByLatestWeatherDeclineTime(latestWeatherDeclineTime: Date) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.latestWeatherDeclineTime === latestWeatherDeclineTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByLatestWeatherDeclineReasonId(\r\n latestWeatherDeclineReasonId: string,\r\n) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities\r\n .filter((e) => e.latestWeatherDeclineReasonId === latestWeatherDeclineReasonId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByLatestWeatherDeclineSecondaryReasonId(\r\n latestWeatherDeclineSecondaryReasonId: string,\r\n) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) => e.latestWeatherDeclineSecondaryReasonId === latestWeatherDeclineSecondaryReasonId,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByWebOrderCallType(webOrderCallType: WebOrderCallType) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.webOrderCallType === webOrderCallType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByEtloInMinutes(etloInMinutes: number) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.etloInMinutes === etloInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByAtloInMinutes(atloInMinutes: number) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.atloInMinutes === atloInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllRequestEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n AffiliationType,\r\n CareLevel,\r\n MissionRoleType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n IdListItemRecord,\r\n IdListItemProps,\r\n} from 'src/store/generated/id-list-item-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RequesterProps {\r\n id: string;\r\n affiliationType: AffiliationType | null;\r\n caller: string | null;\r\n roleId: string | null;\r\n missionRole: MissionRoleType | null;\r\n callbackNumber: string | null;\r\n email: string | null;\r\n facilityId: string | null;\r\n agencyLocationId: string | null;\r\n referringCompanyId: string | null;\r\n referringAgencyLocationId: string | null;\r\n referralReasonId: string | null;\r\n referringRecordNumber: string | null;\r\n specialtyTeamNotes: string | null;\r\n specialtyTeamId: string | null;\r\n specialtyTeamMembers: List;\r\n careLevelRequested: CareLevel | null;\r\n transferCenterId: string | null;\r\n transferCenterNotes: string | null;\r\n transportingAgencyLocationId: string | null;\r\n isDoublePatient: boolean | null;\r\n isWingToWing: boolean | null;\r\n requestId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class RequesterRecord extends Record({\r\n id: null as any,\r\n affiliationType: null as any,\r\n caller: null as any,\r\n roleId: null as any,\r\n missionRole: null as any,\r\n callbackNumber: null as any,\r\n email: null as any,\r\n facilityId: null as any,\r\n agencyLocationId: null as any,\r\n referringCompanyId: null as any,\r\n referringAgencyLocationId: null as any,\r\n referralReasonId: null as any,\r\n referringRecordNumber: null as any,\r\n specialtyTeamNotes: null as any,\r\n specialtyTeamId: null as any,\r\n specialtyTeamMembers: null as any,\r\n careLevelRequested: null as any,\r\n transferCenterId: null as any,\r\n transferCenterNotes: null as any,\r\n transportingAgencyLocationId: null as any,\r\n isDoublePatient: null as any,\r\n isWingToWing: null as any,\r\n requestId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n affiliationType: AffiliationType | null;\r\n caller: string | null;\r\n roleId: string | null;\r\n missionRole: MissionRoleType | null;\r\n callbackNumber: string | null;\r\n email: string | null;\r\n facilityId: string | null;\r\n agencyLocationId: string | null;\r\n referringCompanyId: string | null;\r\n referringAgencyLocationId: string | null;\r\n referralReasonId: string | null;\r\n referringRecordNumber: string | null;\r\n specialtyTeamNotes: string | null;\r\n specialtyTeamId: string | null;\r\n specialtyTeamMembers: any;\r\n careLevelRequested: CareLevel | null;\r\n transferCenterId: string | null;\r\n transferCenterNotes: string | null;\r\n transportingAgencyLocationId: string | null;\r\n isDoublePatient: boolean | null;\r\n isWingToWing: boolean | null;\r\n requestId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): RequesterRecord {\r\n if (json == null) {\r\n throw new Error('RequesterRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RequesterRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RequesterJson.id'),\r\n affiliationType: json.affiliationType,\r\n caller: json.caller,\r\n roleId: json.roleId,\r\n missionRole: json.missionRole,\r\n callbackNumber: json.callbackNumber,\r\n email: json.email,\r\n facilityId: json.facilityId,\r\n agencyLocationId: json.agencyLocationId,\r\n referringCompanyId: json.referringCompanyId,\r\n referringAgencyLocationId: json.referringAgencyLocationId,\r\n referralReasonId: json.referralReasonId,\r\n referringRecordNumber: json.referringRecordNumber,\r\n specialtyTeamNotes: json.specialtyTeamNotes,\r\n specialtyTeamId: json.specialtyTeamId,\r\n specialtyTeamMembers: List(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.specialtyTeamMembers,\r\n 'RequesterJson.specialtyTeamMembers',\r\n ).map((o: any) => new IdListItemRecord(o)),\r\n ),\r\n careLevelRequested: json.careLevelRequested,\r\n transferCenterId: json.transferCenterId,\r\n transferCenterNotes: json.transferCenterNotes,\r\n transportingAgencyLocationId: json.transportingAgencyLocationId,\r\n isDoublePatient: json.isDoublePatient,\r\n isWingToWing: json.isWingToWing,\r\n requestId: json.requestId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'RequesterJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n affiliationType: AffiliationType | null;\r\n caller: string | null;\r\n roleId: string | null;\r\n missionRole: MissionRoleType | null;\r\n callbackNumber: string | null;\r\n email: string | null;\r\n facilityId: string | null;\r\n agencyLocationId: string | null;\r\n referringCompanyId: string | null;\r\n referringAgencyLocationId: string | null;\r\n referralReasonId: string | null;\r\n referringRecordNumber: string | null;\r\n specialtyTeamNotes: string | null;\r\n specialtyTeamId: string | null;\r\n specialtyTeamMembers: any;\r\n careLevelRequested: CareLevel | null;\r\n transferCenterId: string | null;\r\n transferCenterNotes: string | null;\r\n transportingAgencyLocationId: string | null;\r\n isDoublePatient: boolean | null;\r\n isWingToWing: boolean | null;\r\n requestId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [RequesterRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RequesterRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RequesterRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RequesterJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n affiliationType: tryOrDefault(\r\n () => json.affiliationType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n caller: tryOrDefault(\r\n () => json.caller,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n roleId: tryOrDefault(\r\n () => json.roleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n missionRole: tryOrDefault(\r\n () => json.missionRole,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n callbackNumber: tryOrDefault(\r\n () => json.callbackNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n email: tryOrDefault(\r\n () => json.email,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n facilityId: tryOrDefault(\r\n () => json.facilityId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n agencyLocationId: tryOrDefault(\r\n () => json.agencyLocationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n referringCompanyId: tryOrDefault(\r\n () => json.referringCompanyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n referringAgencyLocationId: tryOrDefault(\r\n () => json.referringAgencyLocationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n referralReasonId: tryOrDefault(\r\n () => json.referralReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n referringRecordNumber: tryOrDefault(\r\n () => json.referringRecordNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n specialtyTeamNotes: tryOrDefault(\r\n () => json.specialtyTeamNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n specialtyTeamId: tryOrDefault(\r\n () => json.specialtyTeamId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n specialtyTeamMembers: tryOrDefault(\r\n () =>\r\n List(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.specialtyTeamMembers,\r\n 'RequesterJson.specialtyTeamMembers',\r\n ).map((o: any) => new IdListItemRecord(o)),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n careLevelRequested: tryOrDefault(\r\n () => json.careLevelRequested,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transferCenterId: tryOrDefault(\r\n () => json.transferCenterId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transferCenterNotes: tryOrDefault(\r\n () => json.transferCenterNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportingAgencyLocationId: tryOrDefault(\r\n () => json.transportingAgencyLocationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isDoublePatient: tryOrDefault(\r\n () => json.isDoublePatient,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isWingToWing: tryOrDefault(\r\n () => json.isWingToWing,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestId: tryOrDefault(\r\n () => json.requestId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'RequesterJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RequesterProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RequesterRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RequesterViewModelBase implements RequesterProps {\r\n protected readonly _props: RequesterProps;\r\n private _json?: RequesterProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get affiliationType(): AffiliationType | null {\r\n return this._props.affiliationType;\r\n }\r\n get caller(): string | null {\r\n return this._props.caller;\r\n }\r\n get roleId(): string | null {\r\n return this._props.roleId;\r\n }\r\n get missionRole(): MissionRoleType | null {\r\n return this._props.missionRole;\r\n }\r\n get callbackNumber(): string | null {\r\n return this._props.callbackNumber;\r\n }\r\n get email(): string | null {\r\n return this._props.email;\r\n }\r\n get facilityId(): string | null {\r\n return this._props.facilityId;\r\n }\r\n get agencyLocationId(): string | null {\r\n return this._props.agencyLocationId;\r\n }\r\n get referringCompanyId(): string | null {\r\n return this._props.referringCompanyId;\r\n }\r\n get referringAgencyLocationId(): string | null {\r\n return this._props.referringAgencyLocationId;\r\n }\r\n get referralReasonId(): string | null {\r\n return this._props.referralReasonId;\r\n }\r\n get referringRecordNumber(): string | null {\r\n return this._props.referringRecordNumber;\r\n }\r\n get specialtyTeamNotes(): string | null {\r\n return this._props.specialtyTeamNotes;\r\n }\r\n get specialtyTeamId(): string | null {\r\n return this._props.specialtyTeamId;\r\n }\r\n get specialtyTeamMembers(): List {\r\n return this._props.specialtyTeamMembers;\r\n }\r\n get careLevelRequested(): CareLevel | null {\r\n return this._props.careLevelRequested;\r\n }\r\n get transferCenterId(): string | null {\r\n return this._props.transferCenterId;\r\n }\r\n get transferCenterNotes(): string | null {\r\n return this._props.transferCenterNotes;\r\n }\r\n get transportingAgencyLocationId(): string | null {\r\n return this._props.transportingAgencyLocationId;\r\n }\r\n get isDoublePatient(): boolean | null {\r\n return this._props.isDoublePatient;\r\n }\r\n get isWingToWing(): boolean | null {\r\n return this._props.isWingToWing;\r\n }\r\n get requestId(): string | null {\r\n return this._props.requestId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAgency() {\r\n return this._props.affiliationType === AffiliationType.Agency;\r\n }\r\n public get isCompetitor() {\r\n return this._props.affiliationType === AffiliationType.Competitor;\r\n }\r\n public get isInternal() {\r\n return this._props.affiliationType === AffiliationType.Internal;\r\n }\r\n public get isOther() {\r\n return this._props.affiliationType === AffiliationType.Other;\r\n }\r\n public get isPsap() {\r\n return this._props.affiliationType === AffiliationType.Psap;\r\n }\r\n public get isReceivingFacility() {\r\n return this._props.affiliationType === AffiliationType.ReceivingFacility;\r\n }\r\n public get isSendingFacility() {\r\n return this._props.affiliationType === AffiliationType.SendingFacility;\r\n }\r\n public get isSisterCompany() {\r\n return this._props.affiliationType === AffiliationType.SisterCompany;\r\n }\r\n public get isUnspecified() {\r\n return this._props.affiliationType === AffiliationType.Unspecified;\r\n }\r\n public get isANMC() {\r\n return this._props.missionRole === MissionRoleType.ANMC;\r\n }\r\n public get isCharter() {\r\n return this._props.missionRole === MissionRoleType.Charter;\r\n }\r\n public get isFlightFollowing() {\r\n return this._props.missionRole === MissionRoleType.FlightFollowing;\r\n }\r\n public get isFullService() {\r\n return this._props.missionRole === MissionRoleType.FullService;\r\n }\r\n public get isHospice() {\r\n return this._props.missionRole === MissionRoleType.Hospice;\r\n }\r\n public get isMassCasualty() {\r\n return this._props.missionRole === MissionRoleType.MassCasualty;\r\n }\r\n public get isPrecautionaryEvacuation() {\r\n return this._props.missionRole === MissionRoleType.PrecautionaryEvacuation;\r\n }\r\n public get isQuote() {\r\n return this._props.missionRole === MissionRoleType.Quote;\r\n }\r\n public get isSEARHC() {\r\n return this._props.missionRole === MissionRoleType.SEARHC;\r\n }\r\n public get isSupplemental() {\r\n return this._props.missionRole === MissionRoleType.Supplemental;\r\n }\r\n public get isTeamFlight() {\r\n return this._props.missionRole === MissionRoleType.TeamFlight;\r\n }\r\n public get isALS() {\r\n return this._props.careLevelRequested === CareLevel.ALS;\r\n }\r\n public get isBLS() {\r\n return this._props.careLevelRequested === CareLevel.BLS;\r\n }\r\n public get isCCT() {\r\n return this._props.careLevelRequested === CareLevel.CCT;\r\n }\r\n\r\n public isAnyAffiliationType(...affiliationType: AffiliationType[]) {\r\n return (\r\n this._props.affiliationType != null && affiliationType.includes(this._props.affiliationType)\r\n );\r\n }\r\n public isAnyMissionRole(...missionRoleType: MissionRoleType[]) {\r\n return this._props.missionRole != null && missionRoleType.includes(this._props.missionRole);\r\n }\r\n public isAnyCareLevelRequested(...careLevel: CareLevel[]) {\r\n return (\r\n this._props.careLevelRequested != null && careLevel.includes(this._props.careLevelRequested)\r\n );\r\n }\r\n\r\n constructor(props: RequesterProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n affiliationType: this._props.affiliationType,\r\n caller: this._props.caller,\r\n roleId: this._props.roleId,\r\n missionRole: this._props.missionRole,\r\n callbackNumber: this._props.callbackNumber,\r\n email: this._props.email,\r\n facilityId: this._props.facilityId,\r\n agencyLocationId: this._props.agencyLocationId,\r\n referringCompanyId: this._props.referringCompanyId,\r\n referringAgencyLocationId: this._props.referringAgencyLocationId,\r\n referralReasonId: this._props.referralReasonId,\r\n referringRecordNumber: this._props.referringRecordNumber,\r\n specialtyTeamNotes: this._props.specialtyTeamNotes,\r\n specialtyTeamId: this._props.specialtyTeamId,\r\n specialtyTeamMembers: this._props.specialtyTeamMembers,\r\n careLevelRequested: this._props.careLevelRequested,\r\n transferCenterId: this._props.transferCenterId,\r\n transferCenterNotes: this._props.transferCenterNotes,\r\n transportingAgencyLocationId: this._props.transportingAgencyLocationId,\r\n isDoublePatient: this._props.isDoublePatient,\r\n isWingToWing: this._props.isWingToWing,\r\n requestId: this._props.requestId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllRequesterEntities = (state: AppState) =>\r\n state.entityStores.requester.entities;\r\n\r\nexport const selectRequesterById = (id: string) => (state: AppState) =>\r\n state.entityStores.requester.entities.get(id);\r\n\r\nexport const selectRequesterMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.requester.meta.get(id);\r\n\r\nexport const selectRequesterAndMetadataById = (id: string) =>\r\n createSelector(selectRequesterById(id), selectRequesterMetadataById(id), (requester, meta) => ({\r\n requester,\r\n meta,\r\n }));\r\n\r\nexport function selectRequesterEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllRequesterEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, RequesterRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByAffiliationType(affiliationType: AffiliationType) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.affiliationType === affiliationType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByCaller(caller: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.caller === caller).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByRoleId(roleId: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.roleId === roleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByMissionRole(missionRole: MissionRoleType) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.missionRole === missionRole).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByCallbackNumber(callbackNumber: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.callbackNumber === callbackNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByEmail(email: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.email === email).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByFacilityId(facilityId: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.facilityId === facilityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByAgencyLocationId(agencyLocationId: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.agencyLocationId === agencyLocationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByReferringCompanyId(referringCompanyId: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.referringCompanyId === referringCompanyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByReferringAgencyLocationId(\r\n referringAgencyLocationId: string,\r\n) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.referringAgencyLocationId === referringAgencyLocationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByReferralReasonId(referralReasonId: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.referralReasonId === referralReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByReferringRecordNumber(referringRecordNumber: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.referringRecordNumber === referringRecordNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesBySpecialtyTeamNotes(specialtyTeamNotes: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.specialtyTeamNotes === specialtyTeamNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesBySpecialtyTeamId(specialtyTeamId: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.specialtyTeamId === specialtyTeamId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByCareLevelRequested(careLevelRequested: CareLevel) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.careLevelRequested === careLevelRequested).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByTransferCenterId(transferCenterId: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.transferCenterId === transferCenterId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByTransferCenterNotes(transferCenterNotes: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.transferCenterNotes === transferCenterNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByTransportingAgencyLocationId(\r\n transportingAgencyLocationId: string,\r\n) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities\r\n .filter((e) => e.transportingAgencyLocationId === transportingAgencyLocationId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByIsDoublePatient(isDoublePatient: boolean) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.isDoublePatient === isDoublePatient).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByIsWingToWing(isWingToWing: boolean) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.isWingToWing === isWingToWing).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByRequestId(requestId: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.requestId === requestId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequesterEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllRequesterEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RequesterReferralReasonProps {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class RequesterReferralReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): RequesterReferralReasonRecord {\r\n if (json == null) {\r\n throw new Error('RequesterReferralReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RequesterReferralReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RequesterReferralReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'RequesterReferralReasonJson.name'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [RequesterReferralReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RequesterReferralReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RequesterReferralReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RequesterReferralReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'RequesterReferralReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RequesterReferralReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RequesterReferralReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RequesterReferralReasonViewModelBase implements RequesterReferralReasonProps {\r\n protected readonly _props: RequesterReferralReasonProps;\r\n private _json?: RequesterReferralReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: RequesterReferralReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllRequesterReferralReasonEntities = (state: AppState) =>\r\n state.entityStores.requesterReferralReason.entities;\r\n\r\nexport const selectRequesterReferralReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.requesterReferralReason.entities.get(id);\r\n\r\nexport const selectRequesterReferralReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.requesterReferralReason.meta.get(id);\r\n\r\nexport const selectRequesterReferralReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectRequesterReferralReasonById(id),\r\n selectRequesterReferralReasonMetadataById(id),\r\n (requesterReferralReason, meta) => ({ requesterReferralReason, meta }),\r\n );\r\n\r\nexport function selectRequesterReferralReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllRequesterReferralReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, RequesterReferralReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRequesterReferralReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllRequesterReferralReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RequesterRoleProps {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class RequesterRoleRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): RequesterRoleRecord {\r\n if (json == null) {\r\n throw new Error('RequesterRoleRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RequesterRoleRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RequesterRoleJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'RequesterRoleJson.name'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [RequesterRoleRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RequesterRoleRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RequesterRoleRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RequesterRoleJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'RequesterRoleJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RequesterRoleProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RequesterRoleRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RequesterRoleViewModelBase implements RequesterRoleProps {\r\n protected readonly _props: RequesterRoleProps;\r\n private _json?: RequesterRoleProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: RequesterRoleProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllRequesterRoleEntities = (state: AppState) =>\r\n state.entityStores.requesterRole.entities;\r\n\r\nexport const selectRequesterRoleById = (id: string) => (state: AppState) =>\r\n state.entityStores.requesterRole.entities.get(id);\r\n\r\nexport const selectRequesterRoleMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.requesterRole.meta.get(id);\r\n\r\nexport const selectRequesterRoleAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectRequesterRoleById(id),\r\n selectRequesterRoleMetadataById(id),\r\n (requesterRole, meta) => ({ requesterRole, meta }),\r\n );\r\n\r\nexport function selectRequesterRoleEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllRequesterRoleEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, RequesterRoleRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRequesterRoleEntitiesByName(name: string) {\r\n return createSelector(selectAllRequesterRoleEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { WaypointType } from 'src/graphql/generated/graphql.generated';\r\nimport { AddressRecord, AddressProps } from 'src/store/generated/address-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RequestLocationProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n locationId: string | null;\r\n address: AddressProps;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n medicalFacilityId: string | null;\r\n roomNumber: string | null;\r\n medicalFacilityUnitId: string | null;\r\n notes: string | null;\r\n groundContact: string | null;\r\n estimatedRendezvousTimeInMinutes: number | null;\r\n estimatedGroundTimeInMinutes: number | null;\r\n fboId: string | null;\r\n physicianId: string | null;\r\n diversionReasonId: string | null;\r\n diversionReasonOtherNotes: string | null;\r\n isAutoAccepted: boolean | null;\r\n dateConfirmed: Date | null;\r\n confirmedByUserId: string | null;\r\n unConfirmed: boolean | null;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class RequestLocationRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n type: null as any,\r\n locationId: null as any,\r\n address: null as any,\r\n timezoneCd: null as any,\r\n isRotorWingLz: null as any,\r\n medicalFacilityId: null as any,\r\n roomNumber: null as any,\r\n medicalFacilityUnitId: null as any,\r\n notes: null as any,\r\n groundContact: null as any,\r\n estimatedRendezvousTimeInMinutes: null as any,\r\n estimatedGroundTimeInMinutes: null as any,\r\n fboId: null as any,\r\n physicianId: null as any,\r\n diversionReasonId: null as any,\r\n diversionReasonOtherNotes: null as any,\r\n isAutoAccepted: null as any,\r\n dateConfirmed: null as any,\r\n confirmedByUserId: null as any,\r\n unConfirmed: null as any,\r\n requestId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n locationId: string | null;\r\n address: any;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n medicalFacilityId: string | null;\r\n roomNumber: string | null;\r\n medicalFacilityUnitId: string | null;\r\n notes: string | null;\r\n groundContact: string | null;\r\n estimatedRendezvousTimeInMinutes: number | null;\r\n estimatedGroundTimeInMinutes: number | null;\r\n fboId: string | null;\r\n physicianId: string | null;\r\n diversionReasonId: string | null;\r\n diversionReasonOtherNotes: string | null;\r\n isAutoAccepted: boolean | null;\r\n dateConfirmed: string | number | Date | null;\r\n confirmedByUserId: string | null;\r\n unConfirmed: boolean | null;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): RequestLocationRecord {\r\n if (json == null) {\r\n throw new Error('RequestLocationRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RequestLocationRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RequestLocationJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'RequestLocationJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'RequestLocationJson.abbreviation'),\r\n type: getFromOrThrow(json, (j) => j.type, 'RequestLocationJson.type'),\r\n locationId: json.locationId,\r\n address: new AddressRecord(\r\n getFromOrThrow(json, (j) => j.address, 'RequestLocationJson.address'),\r\n ),\r\n timezoneCd: json.timezoneCd,\r\n isRotorWingLz: json.isRotorWingLz,\r\n medicalFacilityId: json.medicalFacilityId,\r\n roomNumber: json.roomNumber,\r\n medicalFacilityUnitId: json.medicalFacilityUnitId,\r\n notes: json.notes,\r\n groundContact: json.groundContact,\r\n estimatedRendezvousTimeInMinutes: json.estimatedRendezvousTimeInMinutes,\r\n estimatedGroundTimeInMinutes: json.estimatedGroundTimeInMinutes,\r\n fboId: json.fboId,\r\n physicianId: json.physicianId,\r\n diversionReasonId: json.diversionReasonId,\r\n diversionReasonOtherNotes: json.diversionReasonOtherNotes,\r\n isAutoAccepted: json.isAutoAccepted,\r\n dateConfirmed: json.dateConfirmed != null ? new Date(json.dateConfirmed) : null,\r\n confirmedByUserId: json.confirmedByUserId,\r\n unConfirmed: json.unConfirmed,\r\n requestId: getFromOrThrow(json, (j) => j.requestId, 'RequestLocationJson.requestId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'RequestLocationJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n locationId: string | null;\r\n address: any;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n medicalFacilityId: string | null;\r\n roomNumber: string | null;\r\n medicalFacilityUnitId: string | null;\r\n notes: string | null;\r\n groundContact: string | null;\r\n estimatedRendezvousTimeInMinutes: number | null;\r\n estimatedGroundTimeInMinutes: number | null;\r\n fboId: string | null;\r\n physicianId: string | null;\r\n diversionReasonId: string | null;\r\n diversionReasonOtherNotes: string | null;\r\n isAutoAccepted: boolean | null;\r\n dateConfirmed: string | number | Date | null;\r\n confirmedByUserId: string | null;\r\n unConfirmed: boolean | null;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [RequestLocationRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RequestLocationRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RequestLocationRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RequestLocationJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'RequestLocationJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'RequestLocationJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'RequestLocationJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationId: tryOrDefault(\r\n () => json.locationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n address: tryOrDefault(\r\n () =>\r\n new AddressRecord(getFromOrThrow(json, (j) => j.address, 'RequestLocationJson.address')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timezoneCd: tryOrDefault(\r\n () => json.timezoneCd,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isRotorWingLz: tryOrDefault(\r\n () => json.isRotorWingLz,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n medicalFacilityId: tryOrDefault(\r\n () => json.medicalFacilityId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n roomNumber: tryOrDefault(\r\n () => json.roomNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n medicalFacilityUnitId: tryOrDefault(\r\n () => json.medicalFacilityUnitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n groundContact: tryOrDefault(\r\n () => json.groundContact,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedRendezvousTimeInMinutes: tryOrDefault(\r\n () => json.estimatedRendezvousTimeInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedGroundTimeInMinutes: tryOrDefault(\r\n () => json.estimatedGroundTimeInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fboId: tryOrDefault(\r\n () => json.fboId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n physicianId: tryOrDefault(\r\n () => json.physicianId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n diversionReasonId: tryOrDefault(\r\n () => json.diversionReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n diversionReasonOtherNotes: tryOrDefault(\r\n () => json.diversionReasonOtherNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isAutoAccepted: tryOrDefault(\r\n () => json.isAutoAccepted,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateConfirmed: tryOrDefault(\r\n () => (json.dateConfirmed != null ? new Date(json.dateConfirmed) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n confirmedByUserId: tryOrDefault(\r\n () => json.confirmedByUserId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unConfirmed: tryOrDefault(\r\n () => json.unConfirmed,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.requestId, 'RequestLocationJson.requestId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'RequestLocationJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RequestLocationProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RequestLocationRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RequestLocationViewModelBase implements RequestLocationProps {\r\n protected readonly _props: RequestLocationProps;\r\n private _json?: RequestLocationProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get type(): WaypointType {\r\n return this._props.type;\r\n }\r\n get locationId(): string | null {\r\n return this._props.locationId;\r\n }\r\n get address(): AddressProps {\r\n return this._props.address;\r\n }\r\n get timezoneCd(): string | null {\r\n return this._props.timezoneCd;\r\n }\r\n get isRotorWingLz(): boolean | null {\r\n return this._props.isRotorWingLz;\r\n }\r\n get medicalFacilityId(): string | null {\r\n return this._props.medicalFacilityId;\r\n }\r\n get roomNumber(): string | null {\r\n return this._props.roomNumber;\r\n }\r\n get medicalFacilityUnitId(): string | null {\r\n return this._props.medicalFacilityUnitId;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get groundContact(): string | null {\r\n return this._props.groundContact;\r\n }\r\n get estimatedRendezvousTimeInMinutes(): number | null {\r\n return this._props.estimatedRendezvousTimeInMinutes;\r\n }\r\n get estimatedGroundTimeInMinutes(): number | null {\r\n return this._props.estimatedGroundTimeInMinutes;\r\n }\r\n get fboId(): string | null {\r\n return this._props.fboId;\r\n }\r\n get physicianId(): string | null {\r\n return this._props.physicianId;\r\n }\r\n get diversionReasonId(): string | null {\r\n return this._props.diversionReasonId;\r\n }\r\n get diversionReasonOtherNotes(): string | null {\r\n return this._props.diversionReasonOtherNotes;\r\n }\r\n get isAutoAccepted(): boolean | null {\r\n return this._props.isAutoAccepted;\r\n }\r\n get dateConfirmed(): Date | null {\r\n return this._props.dateConfirmed;\r\n }\r\n get confirmedByUserId(): string | null {\r\n return this._props.confirmedByUserId;\r\n }\r\n get unConfirmed(): boolean | null {\r\n return this._props.unConfirmed;\r\n }\r\n get requestId(): string {\r\n return this._props.requestId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isDropoffTeam() {\r\n return this._props.type === WaypointType.DropoffTeam;\r\n }\r\n public get isEnRouteDiversion() {\r\n return this._props.type === WaypointType.EnRouteDiversion;\r\n }\r\n public get isFuelLocation() {\r\n return this._props.type === WaypointType.FuelLocation;\r\n }\r\n public get isOther() {\r\n return this._props.type === WaypointType.Other;\r\n }\r\n public get isPatientDropoffRendezvous() {\r\n return this._props.type === WaypointType.PatientDropoffRendezvous;\r\n }\r\n public get isPatientPickupRendezvous() {\r\n return this._props.type === WaypointType.PatientPickupRendezvous;\r\n }\r\n public get isPickupTeam() {\r\n return this._props.type === WaypointType.PickupTeam;\r\n }\r\n public get isPost() {\r\n return this._props.type === WaypointType.Post;\r\n }\r\n public get isPublicRelationsSite() {\r\n return this._props.type === WaypointType.PublicRelationsSite;\r\n }\r\n public get isReceivingFacility() {\r\n return this._props.type === WaypointType.ReceivingFacility;\r\n }\r\n public get isRendezvousPoint() {\r\n return this._props.type === WaypointType.RendezvousPoint;\r\n }\r\n public get isSceneLocation() {\r\n return this._props.type === WaypointType.SceneLocation;\r\n }\r\n public get isSendingFacility() {\r\n return this._props.type === WaypointType.SendingFacility;\r\n }\r\n\r\n public isAnyType(...waypointType: WaypointType[]) {\r\n return waypointType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: RequestLocationProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n type: this._props.type,\r\n locationId: this._props.locationId,\r\n address: this._props.address,\r\n timezoneCd: this._props.timezoneCd,\r\n isRotorWingLz: this._props.isRotorWingLz,\r\n medicalFacilityId: this._props.medicalFacilityId,\r\n roomNumber: this._props.roomNumber,\r\n medicalFacilityUnitId: this._props.medicalFacilityUnitId,\r\n notes: this._props.notes,\r\n groundContact: this._props.groundContact,\r\n estimatedRendezvousTimeInMinutes: this._props.estimatedRendezvousTimeInMinutes,\r\n estimatedGroundTimeInMinutes: this._props.estimatedGroundTimeInMinutes,\r\n fboId: this._props.fboId,\r\n physicianId: this._props.physicianId,\r\n diversionReasonId: this._props.diversionReasonId,\r\n diversionReasonOtherNotes: this._props.diversionReasonOtherNotes,\r\n isAutoAccepted: this._props.isAutoAccepted,\r\n dateConfirmed: this._props.dateConfirmed,\r\n confirmedByUserId: this._props.confirmedByUserId,\r\n unConfirmed: this._props.unConfirmed,\r\n requestId: this._props.requestId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllRequestLocationEntities = (state: AppState) =>\r\n state.entityStores.requestLocation.entities;\r\n\r\nexport const selectRequestLocationById = (id: string) => (state: AppState) =>\r\n state.entityStores.requestLocation.entities.get(id);\r\n\r\nexport const selectRequestLocationMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.requestLocation.meta.get(id);\r\n\r\nexport const selectRequestLocationAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectRequestLocationById(id),\r\n selectRequestLocationMetadataById(id),\r\n (requestLocation, meta) => ({ requestLocation, meta }),\r\n );\r\n\r\nexport function selectRequestLocationEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllRequestLocationEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, RequestLocationRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByName(name: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByType(type: WaypointType) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByLocationId(locationId: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.locationId === locationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByTimezoneCd(timezoneCd: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.timezoneCd === timezoneCd).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByIsRotorWingLz(isRotorWingLz: boolean) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.isRotorWingLz === isRotorWingLz).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByMedicalFacilityId(medicalFacilityId: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.medicalFacilityId === medicalFacilityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByRoomNumber(roomNumber: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.roomNumber === roomNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByMedicalFacilityUnitId(\r\n medicalFacilityUnitId: string,\r\n) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.medicalFacilityUnitId === medicalFacilityUnitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByGroundContact(groundContact: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.groundContact === groundContact).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByEstimatedRendezvousTimeInMinutes(\r\n estimatedRendezvousTimeInMinutes: number,\r\n) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities\r\n .filter((e) => e.estimatedRendezvousTimeInMinutes === estimatedRendezvousTimeInMinutes)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByEstimatedGroundTimeInMinutes(\r\n estimatedGroundTimeInMinutes: number,\r\n) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities\r\n .filter((e) => e.estimatedGroundTimeInMinutes === estimatedGroundTimeInMinutes)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByFboId(fboId: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.fboId === fboId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByPhysicianId(physicianId: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.physicianId === physicianId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByDiversionReasonId(diversionReasonId: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.diversionReasonId === diversionReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByDiversionReasonOtherNotes(\r\n diversionReasonOtherNotes: string,\r\n) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.diversionReasonOtherNotes === diversionReasonOtherNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByIsAutoAccepted(isAutoAccepted: boolean) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.isAutoAccepted === isAutoAccepted).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByDateConfirmed(dateConfirmed: Date) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.dateConfirmed === dateConfirmed).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByConfirmedByUserId(confirmedByUserId: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.confirmedByUserId === confirmedByUserId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByUnConfirmed(unConfirmed: boolean) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.unConfirmed === unConfirmed).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByRequestId(requestId: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.requestId === requestId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestLocationEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllRequestLocationEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n Gender,\r\n IsoletteType,\r\n TransportReasonCategory,\r\n YesNoType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RequestPatientProps {\r\n id: string;\r\n patientId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n gender: Gender;\r\n dateOfBirth: Date | null;\r\n weightInKg: number | null;\r\n transportReasonId: string | null;\r\n notes: string | null;\r\n chiefComplaintNotes: string | null;\r\n transportReasonCategory: TransportReasonCategory | null;\r\n isIntubated: boolean | null;\r\n numberOfDrips: number | null;\r\n specialtyEquipment: string | null;\r\n rideAlongRequested: YesNoType | null;\r\n isoletteType: IsoletteType | null;\r\n isoletteNotes: string | null;\r\n isIsolette: boolean;\r\n transferReasonId: string | null;\r\n estimatedAgeInHours: number | null;\r\n gcs: number | null;\r\n bpSystolic: number | null;\r\n bpDiastolic: number | null;\r\n heartRate: number | null;\r\n oxygenSaturation: number | null;\r\n respiratoryRate: number | null;\r\n temperatureInCelsius: number | null;\r\n rideAlongWeightInKg: number | null;\r\n medicalRecordNumber: string | null;\r\n rideAlongName: string | null;\r\n rideAlongDateOfBirth: Date | null;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class RequestPatientRecord extends Record({\r\n id: null as any,\r\n patientId: null as any,\r\n firstName: null as any,\r\n lastName: null as any,\r\n gender: null as any,\r\n dateOfBirth: null as any,\r\n weightInKg: null as any,\r\n transportReasonId: null as any,\r\n notes: null as any,\r\n chiefComplaintNotes: null as any,\r\n transportReasonCategory: null as any,\r\n isIntubated: null as any,\r\n numberOfDrips: null as any,\r\n specialtyEquipment: null as any,\r\n rideAlongRequested: null as any,\r\n isoletteType: null as any,\r\n isoletteNotes: null as any,\r\n isIsolette: null as any,\r\n transferReasonId: null as any,\r\n estimatedAgeInHours: null as any,\r\n gcs: null as any,\r\n bpSystolic: null as any,\r\n bpDiastolic: null as any,\r\n heartRate: null as any,\r\n oxygenSaturation: null as any,\r\n respiratoryRate: null as any,\r\n temperatureInCelsius: null as any,\r\n rideAlongWeightInKg: null as any,\r\n medicalRecordNumber: null as any,\r\n rideAlongName: null as any,\r\n rideAlongDateOfBirth: null as any,\r\n requestId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n patientId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n gender: Gender;\r\n dateOfBirth: string | number | Date | null;\r\n weightInKg: number | null;\r\n transportReasonId: string | null;\r\n notes: string | null;\r\n chiefComplaintNotes: string | null;\r\n transportReasonCategory: TransportReasonCategory | null;\r\n isIntubated: boolean | null;\r\n numberOfDrips: number | null;\r\n specialtyEquipment: string | null;\r\n rideAlongRequested: YesNoType | null;\r\n isoletteType: IsoletteType | null;\r\n isoletteNotes: string | null;\r\n isIsolette: boolean;\r\n transferReasonId: string | null;\r\n estimatedAgeInHours: number | null;\r\n gcs: number | null;\r\n bpSystolic: number | null;\r\n bpDiastolic: number | null;\r\n heartRate: number | null;\r\n oxygenSaturation: number | null;\r\n respiratoryRate: number | null;\r\n temperatureInCelsius: number | null;\r\n rideAlongWeightInKg: number | null;\r\n medicalRecordNumber: string | null;\r\n rideAlongName: string | null;\r\n rideAlongDateOfBirth: string | number | Date | null;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): RequestPatientRecord {\r\n if (json == null) {\r\n throw new Error('RequestPatientRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RequestPatientRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RequestPatientJson.id'),\r\n patientId: json.patientId,\r\n firstName: json.firstName,\r\n lastName: json.lastName,\r\n gender: getFromOrThrow(json, (j) => j.gender, 'RequestPatientJson.gender'),\r\n dateOfBirth: json.dateOfBirth != null ? new Date(json.dateOfBirth) : null,\r\n weightInKg: json.weightInKg,\r\n transportReasonId: json.transportReasonId,\r\n notes: json.notes,\r\n chiefComplaintNotes: json.chiefComplaintNotes,\r\n transportReasonCategory: json.transportReasonCategory,\r\n isIntubated: json.isIntubated,\r\n numberOfDrips: json.numberOfDrips,\r\n specialtyEquipment: json.specialtyEquipment,\r\n rideAlongRequested: json.rideAlongRequested,\r\n isoletteType: json.isoletteType,\r\n isoletteNotes: json.isoletteNotes,\r\n isIsolette: getFromOrThrow(json, (j) => j.isIsolette, 'RequestPatientJson.isIsolette'),\r\n transferReasonId: json.transferReasonId,\r\n estimatedAgeInHours: json.estimatedAgeInHours,\r\n gcs: json.gcs,\r\n bpSystolic: json.bpSystolic,\r\n bpDiastolic: json.bpDiastolic,\r\n heartRate: json.heartRate,\r\n oxygenSaturation: json.oxygenSaturation,\r\n respiratoryRate: json.respiratoryRate,\r\n temperatureInCelsius: json.temperatureInCelsius,\r\n rideAlongWeightInKg: json.rideAlongWeightInKg,\r\n medicalRecordNumber: json.medicalRecordNumber,\r\n rideAlongName: json.rideAlongName,\r\n rideAlongDateOfBirth:\r\n json.rideAlongDateOfBirth != null ? new Date(json.rideAlongDateOfBirth) : null,\r\n requestId: getFromOrThrow(json, (j) => j.requestId, 'RequestPatientJson.requestId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'RequestPatientJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n patientId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n gender: Gender;\r\n dateOfBirth: string | number | Date | null;\r\n weightInKg: number | null;\r\n transportReasonId: string | null;\r\n notes: string | null;\r\n chiefComplaintNotes: string | null;\r\n transportReasonCategory: TransportReasonCategory | null;\r\n isIntubated: boolean | null;\r\n numberOfDrips: number | null;\r\n specialtyEquipment: string | null;\r\n rideAlongRequested: YesNoType | null;\r\n isoletteType: IsoletteType | null;\r\n isoletteNotes: string | null;\r\n isIsolette: boolean;\r\n transferReasonId: string | null;\r\n estimatedAgeInHours: number | null;\r\n gcs: number | null;\r\n bpSystolic: number | null;\r\n bpDiastolic: number | null;\r\n heartRate: number | null;\r\n oxygenSaturation: number | null;\r\n respiratoryRate: number | null;\r\n temperatureInCelsius: number | null;\r\n rideAlongWeightInKg: number | null;\r\n medicalRecordNumber: string | null;\r\n rideAlongName: string | null;\r\n rideAlongDateOfBirth: string | number | Date | null;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [RequestPatientRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RequestPatientRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RequestPatientRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RequestPatientJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n patientId: tryOrDefault(\r\n () => json.patientId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n firstName: tryOrDefault(\r\n () => json.firstName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastName: tryOrDefault(\r\n () => json.lastName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n gender: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.gender, 'RequestPatientJson.gender'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateOfBirth: tryOrDefault(\r\n () => (json.dateOfBirth != null ? new Date(json.dateOfBirth) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n weightInKg: tryOrDefault(\r\n () => json.weightInKg,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportReasonId: tryOrDefault(\r\n () => json.transportReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n chiefComplaintNotes: tryOrDefault(\r\n () => json.chiefComplaintNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportReasonCategory: tryOrDefault(\r\n () => json.transportReasonCategory,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isIntubated: tryOrDefault(\r\n () => json.isIntubated,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n numberOfDrips: tryOrDefault(\r\n () => json.numberOfDrips,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n specialtyEquipment: tryOrDefault(\r\n () => json.specialtyEquipment,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n rideAlongRequested: tryOrDefault(\r\n () => json.rideAlongRequested,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isoletteType: tryOrDefault(\r\n () => json.isoletteType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isoletteNotes: tryOrDefault(\r\n () => json.isoletteNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isIsolette: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isIsolette, 'RequestPatientJson.isIsolette'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transferReasonId: tryOrDefault(\r\n () => json.transferReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedAgeInHours: tryOrDefault(\r\n () => json.estimatedAgeInHours,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n gcs: tryOrDefault(\r\n () => json.gcs,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n bpSystolic: tryOrDefault(\r\n () => json.bpSystolic,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n bpDiastolic: tryOrDefault(\r\n () => json.bpDiastolic,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n heartRate: tryOrDefault(\r\n () => json.heartRate,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n oxygenSaturation: tryOrDefault(\r\n () => json.oxygenSaturation,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n respiratoryRate: tryOrDefault(\r\n () => json.respiratoryRate,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n temperatureInCelsius: tryOrDefault(\r\n () => json.temperatureInCelsius,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n rideAlongWeightInKg: tryOrDefault(\r\n () => json.rideAlongWeightInKg,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n medicalRecordNumber: tryOrDefault(\r\n () => json.medicalRecordNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n rideAlongName: tryOrDefault(\r\n () => json.rideAlongName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n rideAlongDateOfBirth: tryOrDefault(\r\n () => (json.rideAlongDateOfBirth != null ? new Date(json.rideAlongDateOfBirth) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.requestId, 'RequestPatientJson.requestId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'RequestPatientJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RequestPatientProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RequestPatientRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RequestPatientViewModelBase implements RequestPatientProps {\r\n protected readonly _props: RequestPatientProps;\r\n private _json?: RequestPatientProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get patientId(): string | null {\r\n return this._props.patientId;\r\n }\r\n get firstName(): string | null {\r\n return this._props.firstName;\r\n }\r\n get lastName(): string | null {\r\n return this._props.lastName;\r\n }\r\n get gender(): Gender {\r\n return this._props.gender;\r\n }\r\n get dateOfBirth(): Date | null {\r\n return this._props.dateOfBirth;\r\n }\r\n get weightInKg(): number | null {\r\n return this._props.weightInKg;\r\n }\r\n get transportReasonId(): string | null {\r\n return this._props.transportReasonId;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get chiefComplaintNotes(): string | null {\r\n return this._props.chiefComplaintNotes;\r\n }\r\n get transportReasonCategory(): TransportReasonCategory | null {\r\n return this._props.transportReasonCategory;\r\n }\r\n get isIntubated(): boolean | null {\r\n return this._props.isIntubated;\r\n }\r\n get numberOfDrips(): number | null {\r\n return this._props.numberOfDrips;\r\n }\r\n get specialtyEquipment(): string | null {\r\n return this._props.specialtyEquipment;\r\n }\r\n get rideAlongRequested(): YesNoType | null {\r\n return this._props.rideAlongRequested;\r\n }\r\n get isoletteType(): IsoletteType | null {\r\n return this._props.isoletteType;\r\n }\r\n get isoletteNotes(): string | null {\r\n return this._props.isoletteNotes;\r\n }\r\n get isIsolette(): boolean {\r\n return this._props.isIsolette;\r\n }\r\n get transferReasonId(): string | null {\r\n return this._props.transferReasonId;\r\n }\r\n get estimatedAgeInHours(): number | null {\r\n return this._props.estimatedAgeInHours;\r\n }\r\n get gcs(): number | null {\r\n return this._props.gcs;\r\n }\r\n get bpSystolic(): number | null {\r\n return this._props.bpSystolic;\r\n }\r\n get bpDiastolic(): number | null {\r\n return this._props.bpDiastolic;\r\n }\r\n get heartRate(): number | null {\r\n return this._props.heartRate;\r\n }\r\n get oxygenSaturation(): number | null {\r\n return this._props.oxygenSaturation;\r\n }\r\n get respiratoryRate(): number | null {\r\n return this._props.respiratoryRate;\r\n }\r\n get temperatureInCelsius(): number | null {\r\n return this._props.temperatureInCelsius;\r\n }\r\n get rideAlongWeightInKg(): number | null {\r\n return this._props.rideAlongWeightInKg;\r\n }\r\n get medicalRecordNumber(): string | null {\r\n return this._props.medicalRecordNumber;\r\n }\r\n get rideAlongName(): string | null {\r\n return this._props.rideAlongName;\r\n }\r\n get rideAlongDateOfBirth(): Date | null {\r\n return this._props.rideAlongDateOfBirth;\r\n }\r\n get requestId(): string {\r\n return this._props.requestId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isFemale() {\r\n return this._props.gender === Gender.Female;\r\n }\r\n public get isMale() {\r\n return this._props.gender === Gender.Male;\r\n }\r\n public get isOther() {\r\n return this._props.gender === Gender.Other;\r\n }\r\n public get isGenderUnspecified() {\r\n return this._props.gender === Gender.Unspecified;\r\n }\r\n public get isRideAlongRequestedUnspecified() {\r\n return this._props.rideAlongRequested === YesNoType.Unspecified;\r\n }\r\n public get isIsoletteTypeUnspecified() {\r\n return this._props.isoletteType === IsoletteType.Unspecified;\r\n }\r\n public get isEndocrine() {\r\n return this._props.transportReasonCategory === TransportReasonCategory.Endocrine;\r\n }\r\n public get isOB() {\r\n return this._props.transportReasonCategory === TransportReasonCategory.OB;\r\n }\r\n public get isSurgery() {\r\n return this._props.transportReasonCategory === TransportReasonCategory.Surgery;\r\n }\r\n public get isNo() {\r\n return this._props.rideAlongRequested === YesNoType.No;\r\n }\r\n public get isYes() {\r\n return this._props.rideAlongRequested === YesNoType.Yes;\r\n }\r\n public get isDraegerIsolette() {\r\n return this._props.isoletteType === IsoletteType.DraegerIsolette;\r\n }\r\n public get isLifeportDeck() {\r\n return this._props.isoletteType === IsoletteType.LifeportDeck;\r\n }\r\n public get isMetroPallet() {\r\n return this._props.isoletteType === IsoletteType.MetroPallet;\r\n }\r\n public get isSpectrumSled() {\r\n return this._props.isoletteType === IsoletteType.SpectrumSled;\r\n }\r\n public get isUnconfirmed() {\r\n return this._props.isoletteType === IsoletteType.Unconfirmed;\r\n }\r\n public get isVoyagerIsolette() {\r\n return this._props.isoletteType === IsoletteType.VoyagerIsolette;\r\n }\r\n public get isVoyagerIsolette1() {\r\n return this._props.isoletteType === IsoletteType.VoyagerIsolette1;\r\n }\r\n public get isVoyagerIsolette2() {\r\n return this._props.isoletteType === IsoletteType.VoyagerIsolette2;\r\n }\r\n public get isVoyagerIsolette4() {\r\n return this._props.isoletteType === IsoletteType.VoyagerIsolette4;\r\n }\r\n public get isVoyagerIsolette6() {\r\n return this._props.isoletteType === IsoletteType.VoyagerIsolette6;\r\n }\r\n\r\n public isAnyGender(...gender: Gender[]) {\r\n return gender.includes(this._props.gender);\r\n }\r\n public isAnyTransportReasonCategory(...transportReasonCategory: TransportReasonCategory[]) {\r\n return (\r\n this._props.transportReasonCategory != null &&\r\n transportReasonCategory.includes(this._props.transportReasonCategory)\r\n );\r\n }\r\n public isAnyRideAlongRequested(...yesNoType: YesNoType[]) {\r\n return (\r\n this._props.rideAlongRequested != null && yesNoType.includes(this._props.rideAlongRequested)\r\n );\r\n }\r\n public isAnyIsoletteType(...isoletteType: IsoletteType[]) {\r\n return this._props.isoletteType != null && isoletteType.includes(this._props.isoletteType);\r\n }\r\n\r\n constructor(props: RequestPatientProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n patientId: this._props.patientId,\r\n firstName: this._props.firstName,\r\n lastName: this._props.lastName,\r\n gender: this._props.gender,\r\n dateOfBirth: this._props.dateOfBirth,\r\n weightInKg: this._props.weightInKg,\r\n transportReasonId: this._props.transportReasonId,\r\n notes: this._props.notes,\r\n chiefComplaintNotes: this._props.chiefComplaintNotes,\r\n transportReasonCategory: this._props.transportReasonCategory,\r\n isIntubated: this._props.isIntubated,\r\n numberOfDrips: this._props.numberOfDrips,\r\n specialtyEquipment: this._props.specialtyEquipment,\r\n rideAlongRequested: this._props.rideAlongRequested,\r\n isoletteType: this._props.isoletteType,\r\n isoletteNotes: this._props.isoletteNotes,\r\n isIsolette: this._props.isIsolette,\r\n transferReasonId: this._props.transferReasonId,\r\n estimatedAgeInHours: this._props.estimatedAgeInHours,\r\n gcs: this._props.gcs,\r\n bpSystolic: this._props.bpSystolic,\r\n bpDiastolic: this._props.bpDiastolic,\r\n heartRate: this._props.heartRate,\r\n oxygenSaturation: this._props.oxygenSaturation,\r\n respiratoryRate: this._props.respiratoryRate,\r\n temperatureInCelsius: this._props.temperatureInCelsius,\r\n rideAlongWeightInKg: this._props.rideAlongWeightInKg,\r\n medicalRecordNumber: this._props.medicalRecordNumber,\r\n rideAlongName: this._props.rideAlongName,\r\n rideAlongDateOfBirth: this._props.rideAlongDateOfBirth,\r\n requestId: this._props.requestId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllRequestPatientEntities = (state: AppState) =>\r\n state.entityStores.requestPatient.entities;\r\n\r\nexport const selectRequestPatientById = (id: string) => (state: AppState) =>\r\n state.entityStores.requestPatient.entities.get(id);\r\n\r\nexport const selectRequestPatientMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.requestPatient.meta.get(id);\r\n\r\nexport const selectRequestPatientAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectRequestPatientById(id),\r\n selectRequestPatientMetadataById(id),\r\n (requestPatient, meta) => ({ requestPatient, meta }),\r\n );\r\n\r\nexport function selectRequestPatientEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllRequestPatientEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, RequestPatientRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByPatientId(patientId: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.patientId === patientId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByFirstName(firstName: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.firstName === firstName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByLastName(lastName: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.lastName === lastName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByGender(gender: Gender) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.gender === gender).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByDateOfBirth(dateOfBirth: Date) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.dateOfBirth === dateOfBirth).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByWeightInKg(weightInKg: number) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.weightInKg === weightInKg).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByTransportReasonId(transportReasonId: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.transportReasonId === transportReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByChiefComplaintNotes(chiefComplaintNotes: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.chiefComplaintNotes === chiefComplaintNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByTransportReasonCategory(\r\n transportReasonCategory: TransportReasonCategory,\r\n) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.transportReasonCategory === transportReasonCategory).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByIsIntubated(isIntubated: boolean) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.isIntubated === isIntubated).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByNumberOfDrips(numberOfDrips: number) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.numberOfDrips === numberOfDrips).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesBySpecialtyEquipment(specialtyEquipment: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.specialtyEquipment === specialtyEquipment).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByRideAlongRequested(rideAlongRequested: YesNoType) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.rideAlongRequested === rideAlongRequested).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByIsoletteType(isoletteType: IsoletteType) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.isoletteType === isoletteType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByIsoletteNotes(isoletteNotes: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.isoletteNotes === isoletteNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByIsIsolette(isIsolette: boolean) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.isIsolette === isIsolette).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByTransferReasonId(transferReasonId: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.transferReasonId === transferReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByEstimatedAgeInHours(estimatedAgeInHours: number) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.estimatedAgeInHours === estimatedAgeInHours).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByGcs(gcs: number) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.gcs === gcs).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByBpSystolic(bpSystolic: number) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.bpSystolic === bpSystolic).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByBpDiastolic(bpDiastolic: number) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.bpDiastolic === bpDiastolic).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByHeartRate(heartRate: number) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.heartRate === heartRate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByOxygenSaturation(oxygenSaturation: number) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.oxygenSaturation === oxygenSaturation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByRespiratoryRate(respiratoryRate: number) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.respiratoryRate === respiratoryRate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByTemperatureInCelsius(temperatureInCelsius: number) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.temperatureInCelsius === temperatureInCelsius).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByRideAlongWeightInKg(rideAlongWeightInKg: number) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.rideAlongWeightInKg === rideAlongWeightInKg).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByMedicalRecordNumber(medicalRecordNumber: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.medicalRecordNumber === medicalRecordNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByRideAlongName(rideAlongName: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.rideAlongName === rideAlongName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByRideAlongDateOfBirth(rideAlongDateOfBirth: Date) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.rideAlongDateOfBirth === rideAlongDateOfBirth).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByRequestId(requestId: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.requestId === requestId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRequestPatientEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllRequestPatientEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface SystemTimerProps {\r\n id: string;\r\n name: string;\r\n description: string;\r\n commandName: string;\r\n runIntervalInSeconds: number;\r\n hasRunCondition: boolean;\r\n isEnqueued: boolean;\r\n lastRunDate: Date | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class SystemTimerRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n description: null as any,\r\n commandName: null as any,\r\n runIntervalInSeconds: null as any,\r\n hasRunCondition: null as any,\r\n isEnqueued: null as any,\r\n lastRunDate: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n description: string;\r\n commandName: string;\r\n runIntervalInSeconds: number;\r\n hasRunCondition: boolean;\r\n isEnqueued: boolean;\r\n lastRunDate: string | number | Date | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): SystemTimerRecord {\r\n if (json == null) {\r\n throw new Error('SystemTimerRecord.fromJS: parameter cannot be null');\r\n }\r\n return new SystemTimerRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'SystemTimerJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'SystemTimerJson.name'),\r\n description: getFromOrThrow(json, (j) => j.description, 'SystemTimerJson.description'),\r\n commandName: getFromOrThrow(json, (j) => j.commandName, 'SystemTimerJson.commandName'),\r\n runIntervalInSeconds: getFromOrThrow(\r\n json,\r\n (j) => j.runIntervalInSeconds,\r\n 'SystemTimerJson.runIntervalInSeconds',\r\n ),\r\n hasRunCondition: getFromOrThrow(\r\n json,\r\n (j) => j.hasRunCondition,\r\n 'SystemTimerJson.hasRunCondition',\r\n ),\r\n isEnqueued: getFromOrThrow(json, (j) => j.isEnqueued, 'SystemTimerJson.isEnqueued'),\r\n lastRunDate: json.lastRunDate != null ? new Date(json.lastRunDate) : null,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n description: string;\r\n commandName: string;\r\n runIntervalInSeconds: number;\r\n hasRunCondition: boolean;\r\n isEnqueued: boolean;\r\n lastRunDate: string | number | Date | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [SystemTimerRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('SystemTimerRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new SystemTimerRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'SystemTimerJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'SystemTimerJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n description: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.description, 'SystemTimerJson.description'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n commandName: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.commandName, 'SystemTimerJson.commandName'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n runIntervalInSeconds: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.runIntervalInSeconds,\r\n 'SystemTimerJson.runIntervalInSeconds',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n hasRunCondition: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.hasRunCondition, 'SystemTimerJson.hasRunCondition'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isEnqueued: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isEnqueued, 'SystemTimerJson.isEnqueued'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastRunDate: tryOrDefault(\r\n () => (json.lastRunDate != null ? new Date(json.lastRunDate) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: SystemTimerProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('SystemTimerRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class SystemTimerViewModelBase implements SystemTimerProps {\r\n protected readonly _props: SystemTimerProps;\r\n private _json?: SystemTimerProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get description(): string {\r\n return this._props.description;\r\n }\r\n get commandName(): string {\r\n return this._props.commandName;\r\n }\r\n get runIntervalInSeconds(): number {\r\n return this._props.runIntervalInSeconds;\r\n }\r\n get hasRunCondition(): boolean {\r\n return this._props.hasRunCondition;\r\n }\r\n get isEnqueued(): boolean {\r\n return this._props.isEnqueued;\r\n }\r\n get lastRunDate(): Date | null {\r\n return this._props.lastRunDate;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: SystemTimerProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n description: this._props.description,\r\n commandName: this._props.commandName,\r\n runIntervalInSeconds: this._props.runIntervalInSeconds,\r\n hasRunCondition: this._props.hasRunCondition,\r\n isEnqueued: this._props.isEnqueued,\r\n lastRunDate: this._props.lastRunDate,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllSystemTimerEntities = (state: AppState) =>\r\n state.entityStores.systemTimer.entities;\r\n\r\nexport const selectSystemTimerById = (id: string) => (state: AppState) =>\r\n state.entityStores.systemTimer.entities.get(id);\r\n\r\nexport const selectSystemTimerMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.systemTimer.meta.get(id);\r\n\r\nexport const selectSystemTimerAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectSystemTimerById(id),\r\n selectSystemTimerMetadataById(id),\r\n (systemTimer, meta) => ({ systemTimer, meta }),\r\n );\r\n\r\nexport function selectSystemTimerEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllSystemTimerEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, SystemTimerRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectSystemTimerEntitiesByName(name: string) {\r\n return createSelector(selectAllSystemTimerEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSystemTimerEntitiesByDescription(description: string) {\r\n return createSelector(selectAllSystemTimerEntities, (entities) =>\r\n entities.filter((e) => e.description === description).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSystemTimerEntitiesByCommandName(commandName: string) {\r\n return createSelector(selectAllSystemTimerEntities, (entities) =>\r\n entities.filter((e) => e.commandName === commandName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSystemTimerEntitiesByRunIntervalInSeconds(runIntervalInSeconds: number) {\r\n return createSelector(selectAllSystemTimerEntities, (entities) =>\r\n entities.filter((e) => e.runIntervalInSeconds === runIntervalInSeconds).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSystemTimerEntitiesByHasRunCondition(hasRunCondition: boolean) {\r\n return createSelector(selectAllSystemTimerEntities, (entities) =>\r\n entities.filter((e) => e.hasRunCondition === hasRunCondition).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSystemTimerEntitiesByIsEnqueued(isEnqueued: boolean) {\r\n return createSelector(selectAllSystemTimerEntities, (entities) =>\r\n entities.filter((e) => e.isEnqueued === isEnqueued).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSystemTimerEntitiesByLastRunDate(lastRunDate: Date) {\r\n return createSelector(selectAllSystemTimerEntities, (entities) =>\r\n entities.filter((e) => e.lastRunDate === lastRunDate).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TimelineProps {\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n activationRuleId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TimelineRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n companyId: null as any,\r\n activationRuleId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n activationRuleId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TimelineRecord {\r\n if (json == null) {\r\n throw new Error('TimelineRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TimelineRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TimelineJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'TimelineJson.name'),\r\n companyId: json.companyId,\r\n activationRuleId: json.activationRuleId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n companyId: string | null;\r\n activationRuleId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TimelineRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TimelineRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TimelineRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TimelineJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'TimelineJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => json.companyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n activationRuleId: tryOrDefault(\r\n () => json.activationRuleId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TimelineProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TimelineRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TimelineViewModelBase implements TimelineProps {\r\n protected readonly _props: TimelineProps;\r\n private _json?: TimelineProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get companyId(): string | null {\r\n return this._props.companyId;\r\n }\r\n get activationRuleId(): string | null {\r\n return this._props.activationRuleId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: TimelineProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n companyId: this._props.companyId,\r\n activationRuleId: this._props.activationRuleId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTimelineEntities = (state: AppState) => state.entityStores.timeline.entities;\r\n\r\nexport const selectTimelineById = (id: string) => (state: AppState) =>\r\n state.entityStores.timeline.entities.get(id);\r\n\r\nexport const selectTimelineMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.timeline.meta.get(id);\r\n\r\nexport const selectTimelineAndMetadataById = (id: string) =>\r\n createSelector(selectTimelineById(id), selectTimelineMetadataById(id), (timeline, meta) => ({\r\n timeline,\r\n meta,\r\n }));\r\n\r\nexport function selectTimelineEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTimelineEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TimelineRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTimelineEntitiesByName(name: string) {\r\n return createSelector(selectAllTimelineEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimelineEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllTimelineEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimelineEntitiesByActivationRuleId(activationRuleId: string) {\r\n return createSelector(selectAllTimelineEntities, (entities) =>\r\n entities.filter((e) => e.activationRuleId === activationRuleId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TimelineItemProps {\r\n id: string;\r\n timestampTypeId: string;\r\n required: boolean;\r\n sequence: number;\r\n timelineId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TimelineItemRecord extends Record({\r\n id: null as any,\r\n timestampTypeId: null as any,\r\n required: null as any,\r\n sequence: null as any,\r\n timelineId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n timestampTypeId: string;\r\n required: boolean;\r\n sequence: number;\r\n timelineId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TimelineItemRecord {\r\n if (json == null) {\r\n throw new Error('TimelineItemRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TimelineItemRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TimelineItemJson.id'),\r\n timestampTypeId: getFromOrThrow(\r\n json,\r\n (j) => j.timestampTypeId,\r\n 'TimelineItemJson.timestampTypeId',\r\n ),\r\n required: getFromOrThrow(json, (j) => j.required, 'TimelineItemJson.required'),\r\n sequence: getFromOrThrow(json, (j) => j.sequence, 'TimelineItemJson.sequence'),\r\n timelineId: getFromOrThrow(json, (j) => j.timelineId, 'TimelineItemJson.timelineId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n timestampTypeId: string;\r\n required: boolean;\r\n sequence: number;\r\n timelineId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TimelineItemRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TimelineItemRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TimelineItemRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TimelineItemJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timestampTypeId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.timestampTypeId, 'TimelineItemJson.timestampTypeId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n required: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.required, 'TimelineItemJson.required'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n sequence: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.sequence, 'TimelineItemJson.sequence'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timelineId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.timelineId, 'TimelineItemJson.timelineId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TimelineItemProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TimelineItemRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TimelineItemViewModelBase implements TimelineItemProps {\r\n protected readonly _props: TimelineItemProps;\r\n private _json?: TimelineItemProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get timestampTypeId(): string {\r\n return this._props.timestampTypeId;\r\n }\r\n get required(): boolean {\r\n return this._props.required;\r\n }\r\n get sequence(): number {\r\n return this._props.sequence;\r\n }\r\n get timelineId(): string {\r\n return this._props.timelineId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: TimelineItemProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n timestampTypeId: this._props.timestampTypeId,\r\n required: this._props.required,\r\n sequence: this._props.sequence,\r\n timelineId: this._props.timelineId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTimelineItemEntities = (state: AppState) =>\r\n state.entityStores.timelineItem.entities;\r\n\r\nexport const selectTimelineItemById = (id: string) => (state: AppState) =>\r\n state.entityStores.timelineItem.entities.get(id);\r\n\r\nexport const selectTimelineItemMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.timelineItem.meta.get(id);\r\n\r\nexport const selectTimelineItemAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectTimelineItemById(id),\r\n selectTimelineItemMetadataById(id),\r\n (timelineItem, meta) => ({ timelineItem, meta }),\r\n );\r\n\r\nexport function selectTimelineItemEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTimelineItemEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TimelineItemRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTimelineItemEntitiesByTimestampTypeId(timestampTypeId: string) {\r\n return createSelector(selectAllTimelineItemEntities, (entities) =>\r\n entities.filter((e) => e.timestampTypeId === timestampTypeId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimelineItemEntitiesByRequired(required: boolean) {\r\n return createSelector(selectAllTimelineItemEntities, (entities) =>\r\n entities.filter((e) => e.required === required).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimelineItemEntitiesBySequence(sequence: number) {\r\n return createSelector(selectAllTimelineItemEntities, (entities) =>\r\n entities.filter((e) => e.sequence === sequence).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimelineItemEntitiesByTimelineId(timelineId: string) {\r\n return createSelector(selectAllTimelineItemEntities, (entities) =>\r\n entities.filter((e) => e.timelineId === timelineId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TimestampProps {\r\n id: string;\r\n time: Date;\r\n userId: string | null;\r\n note: string | null;\r\n typeId: string;\r\n cardId: string;\r\n requestId: string | null;\r\n operationId: string | null;\r\n personsInvolved: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TimestampRecord extends Record({\r\n id: null as any,\r\n time: null as any,\r\n userId: null as any,\r\n note: null as any,\r\n typeId: null as any,\r\n cardId: null as any,\r\n requestId: null as any,\r\n operationId: null as any,\r\n personsInvolved: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n time: string | number | Date;\r\n userId: string | null;\r\n note: string | null;\r\n typeId: string;\r\n cardId: string;\r\n requestId: string | null;\r\n operationId: string | null;\r\n personsInvolved: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TimestampRecord {\r\n if (json == null) {\r\n throw new Error('TimestampRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TimestampRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TimestampJson.id'),\r\n time: new Date(getFromOrThrow(json, (j) => j.time, 'TimestampJson.time')),\r\n userId: json.userId,\r\n note: json.note,\r\n typeId: getFromOrThrow(json, (j) => j.typeId, 'TimestampJson.typeId'),\r\n cardId: getFromOrThrow(json, (j) => j.cardId, 'TimestampJson.cardId'),\r\n requestId: json.requestId,\r\n operationId: json.operationId,\r\n personsInvolved: json.personsInvolved,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'TimestampJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n time: string | number | Date;\r\n userId: string | null;\r\n note: string | null;\r\n typeId: string;\r\n cardId: string;\r\n requestId: string | null;\r\n operationId: string | null;\r\n personsInvolved: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TimestampRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TimestampRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TimestampRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TimestampJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n time: tryOrDefault(\r\n () => new Date(getFromOrThrow(json, (j) => j.time, 'TimestampJson.time')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n userId: tryOrDefault(\r\n () => json.userId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n note: tryOrDefault(\r\n () => json.note,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n typeId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.typeId, 'TimestampJson.typeId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cardId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.cardId, 'TimestampJson.cardId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestId: tryOrDefault(\r\n () => json.requestId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n operationId: tryOrDefault(\r\n () => json.operationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n personsInvolved: tryOrDefault(\r\n () => json.personsInvolved,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'TimestampJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TimestampProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TimestampRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TimestampViewModelBase implements TimestampProps {\r\n protected readonly _props: TimestampProps;\r\n private _json?: TimestampProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get time(): Date {\r\n return this._props.time;\r\n }\r\n get userId(): string | null {\r\n return this._props.userId;\r\n }\r\n get note(): string | null {\r\n return this._props.note;\r\n }\r\n get typeId(): string {\r\n return this._props.typeId;\r\n }\r\n get cardId(): string {\r\n return this._props.cardId;\r\n }\r\n get requestId(): string | null {\r\n return this._props.requestId;\r\n }\r\n get operationId(): string | null {\r\n return this._props.operationId;\r\n }\r\n get personsInvolved(): string | null {\r\n return this._props.personsInvolved;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: TimestampProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n time: this._props.time,\r\n userId: this._props.userId,\r\n note: this._props.note,\r\n typeId: this._props.typeId,\r\n cardId: this._props.cardId,\r\n requestId: this._props.requestId,\r\n operationId: this._props.operationId,\r\n personsInvolved: this._props.personsInvolved,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTimestampEntities = (state: AppState) =>\r\n state.entityStores.timestamp.entities;\r\n\r\nexport const selectTimestampById = (id: string) => (state: AppState) =>\r\n state.entityStores.timestamp.entities.get(id);\r\n\r\nexport const selectTimestampMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.timestamp.meta.get(id);\r\n\r\nexport const selectTimestampAndMetadataById = (id: string) =>\r\n createSelector(selectTimestampById(id), selectTimestampMetadataById(id), (timestamp, meta) => ({\r\n timestamp,\r\n meta,\r\n }));\r\n\r\nexport function selectTimestampEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTimestampEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TimestampRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTimestampEntitiesByTime(time: Date) {\r\n return createSelector(selectAllTimestampEntities, (entities) =>\r\n entities.filter((e) => e.time === time).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimestampEntitiesByUserId(userId: string) {\r\n return createSelector(selectAllTimestampEntities, (entities) =>\r\n entities.filter((e) => e.userId === userId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimestampEntitiesByNote(note: string) {\r\n return createSelector(selectAllTimestampEntities, (entities) =>\r\n entities.filter((e) => e.note === note).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimestampEntitiesByTypeId(typeId: string) {\r\n return createSelector(selectAllTimestampEntities, (entities) =>\r\n entities.filter((e) => e.typeId === typeId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimestampEntitiesByCardId(cardId: string) {\r\n return createSelector(selectAllTimestampEntities, (entities) =>\r\n entities.filter((e) => e.cardId === cardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimestampEntitiesByRequestId(requestId: string) {\r\n return createSelector(selectAllTimestampEntities, (entities) =>\r\n entities.filter((e) => e.requestId === requestId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimestampEntitiesByOperationId(operationId: string) {\r\n return createSelector(selectAllTimestampEntities, (entities) =>\r\n entities.filter((e) => e.operationId === operationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimestampEntitiesByPersonsInvolved(personsInvolved: string) {\r\n return createSelector(selectAllTimestampEntities, (entities) =>\r\n entities.filter((e) => e.personsInvolved === personsInvolved).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimestampEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllTimestampEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { SystemTimestampType } from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n IdListItemRecord,\r\n IdListItemProps,\r\n} from 'src/store/generated/id-list-item-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TimestampTypeProps {\r\n id: string;\r\n name: string;\r\n systemTimestampType: SystemTimestampType | null;\r\n order: number;\r\n description: string | null;\r\n companies: List | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TimestampTypeRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n systemTimestampType: null as any,\r\n order: null as any,\r\n description: null as any,\r\n companies: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n systemTimestampType: SystemTimestampType | null;\r\n order: number;\r\n description: string | null;\r\n companies: any;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TimestampTypeRecord {\r\n if (json == null) {\r\n throw new Error('TimestampTypeRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TimestampTypeRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TimestampTypeJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'TimestampTypeJson.name'),\r\n systemTimestampType: json.systemTimestampType,\r\n order: getFromOrThrow(json, (j) => j.order, 'TimestampTypeJson.order'),\r\n description: json.description,\r\n companies:\r\n json.companies != null\r\n ? List(json.companies.map((o: any) => new IdListItemRecord(o)))\r\n : null,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n systemTimestampType: SystemTimestampType | null;\r\n order: number;\r\n description: string | null;\r\n companies: any;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TimestampTypeRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TimestampTypeRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TimestampTypeRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TimestampTypeJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'TimestampTypeJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n systemTimestampType: tryOrDefault(\r\n () => json.systemTimestampType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n order: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.order, 'TimestampTypeJson.order'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n description: tryOrDefault(\r\n () => json.description,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companies: tryOrDefault(\r\n () =>\r\n json.companies != null\r\n ? List(json.companies.map((o: any) => new IdListItemRecord(o)))\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TimestampTypeProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TimestampTypeRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TimestampTypeViewModelBase implements TimestampTypeProps {\r\n protected readonly _props: TimestampTypeProps;\r\n private _json?: TimestampTypeProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get systemTimestampType(): SystemTimestampType | null {\r\n return this._props.systemTimestampType;\r\n }\r\n get order(): number {\r\n return this._props.order;\r\n }\r\n get description(): string | null {\r\n return this._props.description;\r\n }\r\n get companies(): List | null {\r\n return this._props.companies;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isArriveBase() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveBase;\r\n }\r\n public get isArriveBedsideReceiving() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveBedsideReceiving;\r\n }\r\n public get isArriveDropoff() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveDropoff;\r\n }\r\n public get isArriveDropoffLzViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveDropoffLzViaGround;\r\n }\r\n public get isArrivePatient() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArrivePatient;\r\n }\r\n public get isArrivePickup() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArrivePickup;\r\n }\r\n public get isArrivePickupLzViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArrivePickupLzViaGround;\r\n }\r\n public get isArriveReceivingViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveReceivingViaGround;\r\n }\r\n public get isArriveSendingViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveSendingViaGround;\r\n }\r\n public get isArriveWaypoint() {\r\n return this._props.systemTimestampType === SystemTimestampType.ArriveWaypoint;\r\n }\r\n public get isAssignmentStarted() {\r\n return this._props.systemTimestampType === SystemTimestampType.AssignmentStarted;\r\n }\r\n public get isCardClosed() {\r\n return this._props.systemTimestampType === SystemTimestampType.CardClosed;\r\n }\r\n public get isConfirmedDropoffGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.ConfirmedDropoffGround;\r\n }\r\n public get isConfirmedPickupGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.ConfirmedPickupGround;\r\n }\r\n public get isCrewNotificationReceived() {\r\n return this._props.systemTimestampType === SystemTimestampType.CrewNotificationReceived;\r\n }\r\n public get isCrewNotified() {\r\n return this._props.systemTimestampType === SystemTimestampType.CrewNotified;\r\n }\r\n public get isCustom() {\r\n return this._props.systemTimestampType === SystemTimestampType.Custom;\r\n }\r\n public get isDepartBase() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartBase;\r\n }\r\n public get isDepartBedsideReceiving() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartBedsideReceiving;\r\n }\r\n public get isDepartDropoff() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartDropoff;\r\n }\r\n public get isDepartDropoffLzViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartDropoffLzViaGround;\r\n }\r\n public get isDepartPickup() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartPickup;\r\n }\r\n public get isDepartPickupLzViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartPickupLzViaGround;\r\n }\r\n public get isDepartReceivingViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartReceivingViaGround;\r\n }\r\n public get isDepartSendingViaGround() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartSendingViaGround;\r\n }\r\n public get isDepartWaypoint() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartWaypoint;\r\n }\r\n public get isDepartWithPatient() {\r\n return this._props.systemTimestampType === SystemTimestampType.DepartWithPatient;\r\n }\r\n public get isEmsReport() {\r\n return this._props.systemTimestampType === SystemTimestampType.EmsReport;\r\n }\r\n public get isEnRouteToPatient() {\r\n return this._props.systemTimestampType === SystemTimestampType.EnRouteToPatient;\r\n }\r\n public get isEnRouteToPickup() {\r\n return this._props.systemTimestampType === SystemTimestampType.EnRouteToPickup;\r\n }\r\n public get isEtaProvided() {\r\n return this._props.systemTimestampType === SystemTimestampType.EtaProvided;\r\n }\r\n public get isExternalActionCancellationRequested() {\r\n return (\r\n this._props.systemTimestampType === SystemTimestampType.ExternalActionCancellationRequested\r\n );\r\n }\r\n public get isExternalActionRemoveStandby() {\r\n return this._props.systemTimestampType === SystemTimestampType.ExternalActionRemoveStandby;\r\n }\r\n public get isExternalRequestDisregarded() {\r\n return this._props.systemTimestampType === SystemTimestampType.ExternalRequestDisregarded;\r\n }\r\n public get isFboConfirmed() {\r\n return this._props.systemTimestampType === SystemTimestampType.FboConfirmed;\r\n }\r\n public get isInitialDeparture() {\r\n return this._props.systemTimestampType === SystemTimestampType.InitialDeparture;\r\n }\r\n public get isManifestConfirmed() {\r\n return this._props.systemTimestampType === SystemTimestampType.ManifestConfirmed;\r\n }\r\n public get isMedicalControlContactAttempted() {\r\n return this._props.systemTimestampType === SystemTimestampType.MedicalControlContactAttempted;\r\n }\r\n public get isOperationCancelled() {\r\n return this._props.systemTimestampType === SystemTimestampType.OperationCancelled;\r\n }\r\n public get isOperationCompleted() {\r\n return this._props.systemTimestampType === SystemTimestampType.OperationCompleted;\r\n }\r\n public get isOverheadDropoff() {\r\n return this._props.systemTimestampType === SystemTimestampType.OverheadDropoff;\r\n }\r\n public get isOverheadPickup() {\r\n return this._props.systemTimestampType === SystemTimestampType.OverheadPickup;\r\n }\r\n public get isPaipEvent() {\r\n return this._props.systemTimestampType === SystemTimestampType.PaipEvent;\r\n }\r\n public get isPatientInfoMessageSent() {\r\n return this._props.systemTimestampType === SystemTimestampType.PatientInfoMessageSent;\r\n }\r\n public get isPlacedOnStandby() {\r\n return this._props.systemTimestampType === SystemTimestampType.PlacedOnStandby;\r\n }\r\n public get isReceivingFacilityRequestAccepted() {\r\n return this._props.systemTimestampType === SystemTimestampType.ReceivingFacilityRequestAccepted;\r\n }\r\n public get isReceivingFacilityRequestCancelled() {\r\n return (\r\n this._props.systemTimestampType === SystemTimestampType.ReceivingFacilityRequestCancelled\r\n );\r\n }\r\n public get isReceivingFacilityRequestDenied() {\r\n return this._props.systemTimestampType === SystemTimestampType.ReceivingFacilityRequestDenied;\r\n }\r\n public get isReceivingFacilityRequestDiverted() {\r\n return this._props.systemTimestampType === SystemTimestampType.ReceivingFacilityRequestDiverted;\r\n }\r\n public get isReceivingFacilityRequestReferred() {\r\n return this._props.systemTimestampType === SystemTimestampType.ReceivingFacilityRequestReferred;\r\n }\r\n public get isReferRequest() {\r\n return this._props.systemTimestampType === SystemTimestampType.ReferRequest;\r\n }\r\n public get isRequestCancelled() {\r\n return this._props.systemTimestampType === SystemTimestampType.RequestCancelled;\r\n }\r\n public get isRequestReactivated() {\r\n return this._props.systemTimestampType === SystemTimestampType.RequestReactivated;\r\n }\r\n public get isRequestReceived() {\r\n return this._props.systemTimestampType === SystemTimestampType.RequestReceived;\r\n }\r\n public get isResendToDW() {\r\n return this._props.systemTimestampType === SystemTimestampType.ResendToDW;\r\n }\r\n public get isSentToImageTrend() {\r\n return this._props.systemTimestampType === SystemTimestampType.SentToImageTrend;\r\n }\r\n public get isStandbyRemoved() {\r\n return this._props.systemTimestampType === SystemTimestampType.StandbyRemoved;\r\n }\r\n public get isTransportCheckInitiated() {\r\n return this._props.systemTimestampType === SystemTimestampType.TransportCheckInitiated;\r\n }\r\n public get isUnitAborted() {\r\n return this._props.systemTimestampType === SystemTimestampType.UnitAborted;\r\n }\r\n public get isUnitActivated() {\r\n return this._props.systemTimestampType === SystemTimestampType.UnitActivated;\r\n }\r\n public get isUnitAssigned() {\r\n return this._props.systemTimestampType === SystemTimestampType.UnitAssigned;\r\n }\r\n public get isUnitOffered() {\r\n return this._props.systemTimestampType === SystemTimestampType.UnitOffered;\r\n }\r\n public get isWebOrderAcknowledged() {\r\n return this._props.systemTimestampType === SystemTimestampType.WebOrderAcknowledged;\r\n }\r\n\r\n public isAnySystemTimestampType(...systemTimestampType: SystemTimestampType[]) {\r\n return (\r\n this._props.systemTimestampType != null &&\r\n systemTimestampType.includes(this._props.systemTimestampType)\r\n );\r\n }\r\n\r\n constructor(props: TimestampTypeProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n systemTimestampType: this._props.systemTimestampType,\r\n order: this._props.order,\r\n description: this._props.description,\r\n companies: this._props.companies,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTimestampTypeEntities = (state: AppState) =>\r\n state.entityStores.timestampType.entities;\r\n\r\nexport const selectTimestampTypeById = (id: string) => (state: AppState) =>\r\n state.entityStores.timestampType.entities.get(id);\r\n\r\nexport const selectTimestampTypeMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.timestampType.meta.get(id);\r\n\r\nexport const selectTimestampTypeAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectTimestampTypeById(id),\r\n selectTimestampTypeMetadataById(id),\r\n (timestampType, meta) => ({ timestampType, meta }),\r\n );\r\n\r\nexport function selectTimestampTypeEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTimestampTypeEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TimestampTypeRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTimestampTypeEntitiesByName(name: string) {\r\n return createSelector(selectAllTimestampTypeEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimestampTypeEntitiesBySystemTimestampType(\r\n systemTimestampType: SystemTimestampType,\r\n) {\r\n return createSelector(selectAllTimestampTypeEntities, (entities) =>\r\n entities.filter((e) => e.systemTimestampType === systemTimestampType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimestampTypeEntitiesByOrder(order: number) {\r\n return createSelector(selectAllTimestampTypeEntities, (entities) =>\r\n entities.filter((e) => e.order === order).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimestampTypeEntitiesByDescription(description: string) {\r\n return createSelector(selectAllTimestampTypeEntities, (entities) =>\r\n entities.filter((e) => e.description === description).valueSeq(),\r\n );\r\n}\r\n\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { MessageStatus, MessageTransport } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TrackedMessageProps {\r\n id: string;\r\n recipientName: string | null;\r\n recipientAddress: string;\r\n subject: string | null;\r\n body: string;\r\n fromName: string | null;\r\n fromAddress: string | null;\r\n doNotDivert: boolean | null;\r\n medium: MessageTransport | null;\r\n status: MessageStatus;\r\n vendorId: string | null;\r\n vendorMessageId: string | null;\r\n referenceNumber: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TrackedMessageRecord extends Record({\r\n id: null as any,\r\n recipientName: null as any,\r\n recipientAddress: null as any,\r\n subject: null as any,\r\n body: null as any,\r\n fromName: null as any,\r\n fromAddress: null as any,\r\n doNotDivert: null as any,\r\n medium: null as any,\r\n status: null as any,\r\n vendorId: null as any,\r\n vendorMessageId: null as any,\r\n referenceNumber: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n recipientName: string | null;\r\n recipientAddress: string;\r\n subject: string | null;\r\n body: string;\r\n fromName: string | null;\r\n fromAddress: string | null;\r\n doNotDivert: boolean | null;\r\n medium: MessageTransport | null;\r\n status: MessageStatus;\r\n vendorId: string | null;\r\n vendorMessageId: string | null;\r\n referenceNumber: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TrackedMessageRecord {\r\n if (json == null) {\r\n throw new Error('TrackedMessageRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TrackedMessageRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TrackedMessageJson.id'),\r\n recipientName: json.recipientName,\r\n recipientAddress: getFromOrThrow(\r\n json,\r\n (j) => j.recipientAddress,\r\n 'TrackedMessageJson.recipientAddress',\r\n ),\r\n subject: json.subject,\r\n body: getFromOrThrow(json, (j) => j.body, 'TrackedMessageJson.body'),\r\n fromName: json.fromName,\r\n fromAddress: json.fromAddress,\r\n doNotDivert: json.doNotDivert,\r\n medium: json.medium,\r\n status: getFromOrThrow(json, (j) => j.status, 'TrackedMessageJson.status'),\r\n vendorId: json.vendorId,\r\n vendorMessageId: json.vendorMessageId,\r\n referenceNumber: json.referenceNumber,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n recipientName: string | null;\r\n recipientAddress: string;\r\n subject: string | null;\r\n body: string;\r\n fromName: string | null;\r\n fromAddress: string | null;\r\n doNotDivert: boolean | null;\r\n medium: MessageTransport | null;\r\n status: MessageStatus;\r\n vendorId: string | null;\r\n vendorMessageId: string | null;\r\n referenceNumber: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TrackedMessageRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TrackedMessageRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TrackedMessageRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TrackedMessageJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n recipientName: tryOrDefault(\r\n () => json.recipientName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n recipientAddress: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.recipientAddress, 'TrackedMessageJson.recipientAddress'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n subject: tryOrDefault(\r\n () => json.subject,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n body: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.body, 'TrackedMessageJson.body'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fromName: tryOrDefault(\r\n () => json.fromName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fromAddress: tryOrDefault(\r\n () => json.fromAddress,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n doNotDivert: tryOrDefault(\r\n () => json.doNotDivert,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n medium: tryOrDefault(\r\n () => json.medium,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'TrackedMessageJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vendorId: tryOrDefault(\r\n () => json.vendorId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vendorMessageId: tryOrDefault(\r\n () => json.vendorMessageId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n referenceNumber: tryOrDefault(\r\n () => json.referenceNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TrackedMessageProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TrackedMessageRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TrackedMessageViewModelBase implements TrackedMessageProps {\r\n protected readonly _props: TrackedMessageProps;\r\n private _json?: TrackedMessageProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get recipientName(): string | null {\r\n return this._props.recipientName;\r\n }\r\n get recipientAddress(): string {\r\n return this._props.recipientAddress;\r\n }\r\n get subject(): string | null {\r\n return this._props.subject;\r\n }\r\n get body(): string {\r\n return this._props.body;\r\n }\r\n get fromName(): string | null {\r\n return this._props.fromName;\r\n }\r\n get fromAddress(): string | null {\r\n return this._props.fromAddress;\r\n }\r\n get doNotDivert(): boolean | null {\r\n return this._props.doNotDivert;\r\n }\r\n get medium(): MessageTransport | null {\r\n return this._props.medium;\r\n }\r\n get status(): MessageStatus {\r\n return this._props.status;\r\n }\r\n get vendorId(): string | null {\r\n return this._props.vendorId;\r\n }\r\n get vendorMessageId(): string | null {\r\n return this._props.vendorMessageId;\r\n }\r\n get referenceNumber(): string | null {\r\n return this._props.referenceNumber;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isEmail() {\r\n return this._props.medium === MessageTransport.Email;\r\n }\r\n public get isSms() {\r\n return this._props.medium === MessageTransport.Sms;\r\n }\r\n public get isCreated() {\r\n return this._props.status === MessageStatus.Created;\r\n }\r\n public get isFailed() {\r\n return this._props.status === MessageStatus.Failed;\r\n }\r\n public get isReceivedByRecipient() {\r\n return this._props.status === MessageStatus.ReceivedByRecipient;\r\n }\r\n public get isSentToProvider() {\r\n return this._props.status === MessageStatus.SentToProvider;\r\n }\r\n public get isSentToRecipient() {\r\n return this._props.status === MessageStatus.SentToRecipient;\r\n }\r\n\r\n public isAnyMedium(...messageTransport: MessageTransport[]) {\r\n return this._props.medium != null && messageTransport.includes(this._props.medium);\r\n }\r\n public isAnyStatus(...messageStatus: MessageStatus[]) {\r\n return messageStatus.includes(this._props.status);\r\n }\r\n\r\n constructor(props: TrackedMessageProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n recipientName: this._props.recipientName,\r\n recipientAddress: this._props.recipientAddress,\r\n subject: this._props.subject,\r\n body: this._props.body,\r\n fromName: this._props.fromName,\r\n fromAddress: this._props.fromAddress,\r\n doNotDivert: this._props.doNotDivert,\r\n medium: this._props.medium,\r\n status: this._props.status,\r\n vendorId: this._props.vendorId,\r\n vendorMessageId: this._props.vendorMessageId,\r\n referenceNumber: this._props.referenceNumber,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTrackedMessageEntities = (state: AppState) =>\r\n state.entityStores.trackedMessage.entities;\r\n\r\nexport const selectTrackedMessageById = (id: string) => (state: AppState) =>\r\n state.entityStores.trackedMessage.entities.get(id);\r\n\r\nexport const selectTrackedMessageMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.trackedMessage.meta.get(id);\r\n\r\nexport const selectTrackedMessageAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectTrackedMessageById(id),\r\n selectTrackedMessageMetadataById(id),\r\n (trackedMessage, meta) => ({ trackedMessage, meta }),\r\n );\r\n\r\nexport function selectTrackedMessageEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTrackedMessageEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TrackedMessageRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTrackedMessageEntitiesByRecipientName(recipientName: string) {\r\n return createSelector(selectAllTrackedMessageEntities, (entities) =>\r\n entities.filter((e) => e.recipientName === recipientName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrackedMessageEntitiesByRecipientAddress(recipientAddress: string) {\r\n return createSelector(selectAllTrackedMessageEntities, (entities) =>\r\n entities.filter((e) => e.recipientAddress === recipientAddress).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrackedMessageEntitiesBySubject(subject: string) {\r\n return createSelector(selectAllTrackedMessageEntities, (entities) =>\r\n entities.filter((e) => e.subject === subject).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrackedMessageEntitiesByBody(body: string) {\r\n return createSelector(selectAllTrackedMessageEntities, (entities) =>\r\n entities.filter((e) => e.body === body).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrackedMessageEntitiesByFromName(fromName: string) {\r\n return createSelector(selectAllTrackedMessageEntities, (entities) =>\r\n entities.filter((e) => e.fromName === fromName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrackedMessageEntitiesByFromAddress(fromAddress: string) {\r\n return createSelector(selectAllTrackedMessageEntities, (entities) =>\r\n entities.filter((e) => e.fromAddress === fromAddress).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrackedMessageEntitiesByDoNotDivert(doNotDivert: boolean) {\r\n return createSelector(selectAllTrackedMessageEntities, (entities) =>\r\n entities.filter((e) => e.doNotDivert === doNotDivert).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrackedMessageEntitiesByMedium(medium: MessageTransport) {\r\n return createSelector(selectAllTrackedMessageEntities, (entities) =>\r\n entities.filter((e) => e.medium === medium).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrackedMessageEntitiesByStatus(status: MessageStatus) {\r\n return createSelector(selectAllTrackedMessageEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrackedMessageEntitiesByVendorId(vendorId: string) {\r\n return createSelector(selectAllTrackedMessageEntities, (entities) =>\r\n entities.filter((e) => e.vendorId === vendorId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrackedMessageEntitiesByVendorMessageId(vendorMessageId: string) {\r\n return createSelector(selectAllTrackedMessageEntities, (entities) =>\r\n entities.filter((e) => e.vendorMessageId === vendorMessageId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrackedMessageEntitiesByReferenceNumber(referenceNumber: string) {\r\n return createSelector(selectAllTrackedMessageEntities, (entities) =>\r\n entities.filter((e) => e.referenceNumber === referenceNumber).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TransferReasonProps {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TransferReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TransferReasonRecord {\r\n if (json == null) {\r\n throw new Error('TransferReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TransferReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TransferReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'TransferReasonJson.name'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TransferReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TransferReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TransferReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TransferReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'TransferReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TransferReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TransferReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TransferReasonViewModelBase implements TransferReasonProps {\r\n protected readonly _props: TransferReasonProps;\r\n private _json?: TransferReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: TransferReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTransferReasonEntities = (state: AppState) =>\r\n state.entityStores.transferReason.entities;\r\n\r\nexport const selectTransferReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.transferReason.entities.get(id);\r\n\r\nexport const selectTransferReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.transferReason.meta.get(id);\r\n\r\nexport const selectTransferReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectTransferReasonById(id),\r\n selectTransferReasonMetadataById(id),\r\n (transferReason, meta) => ({ transferReason, meta }),\r\n );\r\n\r\nexport function selectTransferReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTransferReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TransferReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTransferReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllTransferReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n TransportOfferResponse,\r\n TransportOfferStatus,\r\n VehicleType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n CoordinatesRecord,\r\n CoordinatesProps,\r\n} from 'src/store/generated/coordinates-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TransportOfferProps {\r\n id: string;\r\n status: TransportOfferStatus;\r\n rank: number;\r\n distanceInMiles: number | null;\r\n bearingInDegrees: number | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n estimatedTimeEnRouteInMinutes: number | null;\r\n offerTime: Date | null;\r\n crewNotified: Date | null;\r\n transportCheckInitiated: Date | null;\r\n notificationAcknowledged: Date | null;\r\n responseReceived: Date | null;\r\n response: TransportOfferResponse;\r\n declineReasonId: string | null;\r\n declineSecondaryReasonId: string | null;\r\n nonReferralReasonId: string | null;\r\n nonReferralReasonNotes: string | null;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n outOfServiceEventId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n agencyLocationId: string | null;\r\n unitDescription: string | null;\r\n isReferral: boolean | null;\r\n vehicleType: VehicleType | null;\r\n patientOriginatesAtUnit: boolean | null;\r\n vehicleCoordinates: CoordinatesProps | null;\r\n homeBaseDistanceInMiles: number | null;\r\n baseId: string | null;\r\n preferredRank: number | null;\r\n notes: string | null;\r\n wasBulkSkip: boolean;\r\n onBaseETAInMinutes: number | null;\r\n isOnDelay: boolean;\r\n isOneCallAgreement: boolean;\r\n specialtyTeamETLOInMinutes: number | null;\r\n specialtyTeamETEInMinutes: number | null;\r\n isInternalAgency: boolean;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TransportOfferRecord extends Record({\r\n id: null as any,\r\n status: null as any,\r\n rank: null as any,\r\n distanceInMiles: null as any,\r\n bearingInDegrees: null as any,\r\n estimatedDepartureTimeInMinutes: null as any,\r\n estimatedTimeEnRouteInMinutes: null as any,\r\n offerTime: null as any,\r\n crewNotified: null as any,\r\n transportCheckInitiated: null as any,\r\n notificationAcknowledged: null as any,\r\n responseReceived: null as any,\r\n response: null as any,\r\n declineReasonId: null as any,\r\n declineSecondaryReasonId: null as any,\r\n nonReferralReasonId: null as any,\r\n nonReferralReasonNotes: null as any,\r\n cancellationReasonId: null as any,\r\n cancellationSecondaryReasonId: null as any,\r\n cancellationReasonNotes: null as any,\r\n outOfServiceEventId: null as any,\r\n unitId: null as any,\r\n vehicleId: null as any,\r\n agencyLocationId: null as any,\r\n unitDescription: null as any,\r\n isReferral: null as any,\r\n vehicleType: null as any,\r\n patientOriginatesAtUnit: null as any,\r\n vehicleCoordinates: null as any,\r\n homeBaseDistanceInMiles: null as any,\r\n baseId: null as any,\r\n preferredRank: null as any,\r\n notes: null as any,\r\n wasBulkSkip: null as any,\r\n onBaseETAInMinutes: null as any,\r\n isOnDelay: null as any,\r\n isOneCallAgreement: null as any,\r\n specialtyTeamETLOInMinutes: null as any,\r\n specialtyTeamETEInMinutes: null as any,\r\n isInternalAgency: null as any,\r\n requestId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n status: TransportOfferStatus;\r\n rank: number;\r\n distanceInMiles: number | null;\r\n bearingInDegrees: number | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n estimatedTimeEnRouteInMinutes: number | null;\r\n offerTime: string | number | Date | null;\r\n crewNotified: string | number | Date | null;\r\n transportCheckInitiated: string | number | Date | null;\r\n notificationAcknowledged: string | number | Date | null;\r\n responseReceived: string | number | Date | null;\r\n response: TransportOfferResponse;\r\n declineReasonId: string | null;\r\n declineSecondaryReasonId: string | null;\r\n nonReferralReasonId: string | null;\r\n nonReferralReasonNotes: string | null;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n outOfServiceEventId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n agencyLocationId: string | null;\r\n unitDescription: string | null;\r\n isReferral: boolean | null;\r\n vehicleType: VehicleType | null;\r\n patientOriginatesAtUnit: boolean | null;\r\n vehicleCoordinates: any;\r\n homeBaseDistanceInMiles: number | null;\r\n baseId: string | null;\r\n preferredRank: number | null;\r\n notes: string | null;\r\n wasBulkSkip: boolean;\r\n onBaseETAInMinutes: number | null;\r\n isOnDelay: boolean;\r\n isOneCallAgreement: boolean;\r\n specialtyTeamETLOInMinutes: number | null;\r\n specialtyTeamETEInMinutes: number | null;\r\n isInternalAgency: boolean;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TransportOfferRecord {\r\n if (json == null) {\r\n throw new Error('TransportOfferRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TransportOfferRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TransportOfferJson.id'),\r\n status: getFromOrThrow(json, (j) => j.status, 'TransportOfferJson.status'),\r\n rank: getFromOrThrow(json, (j) => j.rank, 'TransportOfferJson.rank'),\r\n distanceInMiles: json.distanceInMiles,\r\n bearingInDegrees: json.bearingInDegrees,\r\n estimatedDepartureTimeInMinutes: json.estimatedDepartureTimeInMinutes,\r\n estimatedTimeEnRouteInMinutes: json.estimatedTimeEnRouteInMinutes,\r\n offerTime: json.offerTime != null ? new Date(json.offerTime) : null,\r\n crewNotified: json.crewNotified != null ? new Date(json.crewNotified) : null,\r\n transportCheckInitiated:\r\n json.transportCheckInitiated != null ? new Date(json.transportCheckInitiated) : null,\r\n notificationAcknowledged:\r\n json.notificationAcknowledged != null ? new Date(json.notificationAcknowledged) : null,\r\n responseReceived: json.responseReceived != null ? new Date(json.responseReceived) : null,\r\n response: getFromOrThrow(json, (j) => j.response, 'TransportOfferJson.response'),\r\n declineReasonId: json.declineReasonId,\r\n declineSecondaryReasonId: json.declineSecondaryReasonId,\r\n nonReferralReasonId: json.nonReferralReasonId,\r\n nonReferralReasonNotes: json.nonReferralReasonNotes,\r\n cancellationReasonId: json.cancellationReasonId,\r\n cancellationSecondaryReasonId: json.cancellationSecondaryReasonId,\r\n cancellationReasonNotes: json.cancellationReasonNotes,\r\n outOfServiceEventId: json.outOfServiceEventId,\r\n unitId: json.unitId,\r\n vehicleId: json.vehicleId,\r\n agencyLocationId: json.agencyLocationId,\r\n unitDescription: json.unitDescription,\r\n isReferral: json.isReferral,\r\n vehicleType: json.vehicleType,\r\n patientOriginatesAtUnit: json.patientOriginatesAtUnit,\r\n vehicleCoordinates:\r\n json.vehicleCoordinates != null ? new CoordinatesRecord(json.vehicleCoordinates) : null,\r\n homeBaseDistanceInMiles: json.homeBaseDistanceInMiles,\r\n baseId: json.baseId,\r\n preferredRank: json.preferredRank,\r\n notes: json.notes,\r\n wasBulkSkip: getFromOrThrow(json, (j) => j.wasBulkSkip, 'TransportOfferJson.wasBulkSkip'),\r\n onBaseETAInMinutes: json.onBaseETAInMinutes,\r\n isOnDelay: getFromOrThrow(json, (j) => j.isOnDelay, 'TransportOfferJson.isOnDelay'),\r\n isOneCallAgreement: getFromOrThrow(\r\n json,\r\n (j) => j.isOneCallAgreement,\r\n 'TransportOfferJson.isOneCallAgreement',\r\n ),\r\n specialtyTeamETLOInMinutes: json.specialtyTeamETLOInMinutes,\r\n specialtyTeamETEInMinutes: json.specialtyTeamETEInMinutes,\r\n isInternalAgency: getFromOrThrow(\r\n json,\r\n (j) => j.isInternalAgency,\r\n 'TransportOfferJson.isInternalAgency',\r\n ),\r\n requestId: getFromOrThrow(json, (j) => j.requestId, 'TransportOfferJson.requestId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'TransportOfferJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n status: TransportOfferStatus;\r\n rank: number;\r\n distanceInMiles: number | null;\r\n bearingInDegrees: number | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n estimatedTimeEnRouteInMinutes: number | null;\r\n offerTime: string | number | Date | null;\r\n crewNotified: string | number | Date | null;\r\n transportCheckInitiated: string | number | Date | null;\r\n notificationAcknowledged: string | number | Date | null;\r\n responseReceived: string | number | Date | null;\r\n response: TransportOfferResponse;\r\n declineReasonId: string | null;\r\n declineSecondaryReasonId: string | null;\r\n nonReferralReasonId: string | null;\r\n nonReferralReasonNotes: string | null;\r\n cancellationReasonId: string | null;\r\n cancellationSecondaryReasonId: string | null;\r\n cancellationReasonNotes: string | null;\r\n outOfServiceEventId: string | null;\r\n unitId: string | null;\r\n vehicleId: string | null;\r\n agencyLocationId: string | null;\r\n unitDescription: string | null;\r\n isReferral: boolean | null;\r\n vehicleType: VehicleType | null;\r\n patientOriginatesAtUnit: boolean | null;\r\n vehicleCoordinates: any;\r\n homeBaseDistanceInMiles: number | null;\r\n baseId: string | null;\r\n preferredRank: number | null;\r\n notes: string | null;\r\n wasBulkSkip: boolean;\r\n onBaseETAInMinutes: number | null;\r\n isOnDelay: boolean;\r\n isOneCallAgreement: boolean;\r\n specialtyTeamETLOInMinutes: number | null;\r\n specialtyTeamETEInMinutes: number | null;\r\n isInternalAgency: boolean;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TransportOfferRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TransportOfferRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TransportOfferRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TransportOfferJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'TransportOfferJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n rank: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.rank, 'TransportOfferJson.rank'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n distanceInMiles: tryOrDefault(\r\n () => json.distanceInMiles,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n bearingInDegrees: tryOrDefault(\r\n () => json.bearingInDegrees,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedDepartureTimeInMinutes: tryOrDefault(\r\n () => json.estimatedDepartureTimeInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedTimeEnRouteInMinutes: tryOrDefault(\r\n () => json.estimatedTimeEnRouteInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n offerTime: tryOrDefault(\r\n () => (json.offerTime != null ? new Date(json.offerTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n crewNotified: tryOrDefault(\r\n () => (json.crewNotified != null ? new Date(json.crewNotified) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportCheckInitiated: tryOrDefault(\r\n () =>\r\n json.transportCheckInitiated != null ? new Date(json.transportCheckInitiated) : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notificationAcknowledged: tryOrDefault(\r\n () =>\r\n json.notificationAcknowledged != null ? new Date(json.notificationAcknowledged) : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n responseReceived: tryOrDefault(\r\n () => (json.responseReceived != null ? new Date(json.responseReceived) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n response: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.response, 'TransportOfferJson.response'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n declineReasonId: tryOrDefault(\r\n () => json.declineReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n declineSecondaryReasonId: tryOrDefault(\r\n () => json.declineSecondaryReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n nonReferralReasonId: tryOrDefault(\r\n () => json.nonReferralReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n nonReferralReasonNotes: tryOrDefault(\r\n () => json.nonReferralReasonNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cancellationReasonId: tryOrDefault(\r\n () => json.cancellationReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cancellationSecondaryReasonId: tryOrDefault(\r\n () => json.cancellationSecondaryReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cancellationReasonNotes: tryOrDefault(\r\n () => json.cancellationReasonNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n outOfServiceEventId: tryOrDefault(\r\n () => json.outOfServiceEventId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => json.unitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => json.vehicleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n agencyLocationId: tryOrDefault(\r\n () => json.agencyLocationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitDescription: tryOrDefault(\r\n () => json.unitDescription,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isReferral: tryOrDefault(\r\n () => json.isReferral,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleType: tryOrDefault(\r\n () => json.vehicleType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n patientOriginatesAtUnit: tryOrDefault(\r\n () => json.patientOriginatesAtUnit,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleCoordinates: tryOrDefault(\r\n () =>\r\n json.vehicleCoordinates != null ? new CoordinatesRecord(json.vehicleCoordinates) : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n homeBaseDistanceInMiles: tryOrDefault(\r\n () => json.homeBaseDistanceInMiles,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseId: tryOrDefault(\r\n () => json.baseId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n preferredRank: tryOrDefault(\r\n () => json.preferredRank,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n wasBulkSkip: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.wasBulkSkip, 'TransportOfferJson.wasBulkSkip'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n onBaseETAInMinutes: tryOrDefault(\r\n () => json.onBaseETAInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isOnDelay: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isOnDelay, 'TransportOfferJson.isOnDelay'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isOneCallAgreement: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.isOneCallAgreement,\r\n 'TransportOfferJson.isOneCallAgreement',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n specialtyTeamETLOInMinutes: tryOrDefault(\r\n () => json.specialtyTeamETLOInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n specialtyTeamETEInMinutes: tryOrDefault(\r\n () => json.specialtyTeamETEInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isInternalAgency: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.isInternalAgency, 'TransportOfferJson.isInternalAgency'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.requestId, 'TransportOfferJson.requestId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'TransportOfferJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TransportOfferProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TransportOfferRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TransportOfferViewModelBase implements TransportOfferProps {\r\n protected readonly _props: TransportOfferProps;\r\n private _json?: TransportOfferProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get status(): TransportOfferStatus {\r\n return this._props.status;\r\n }\r\n get rank(): number {\r\n return this._props.rank;\r\n }\r\n get distanceInMiles(): number | null {\r\n return this._props.distanceInMiles;\r\n }\r\n get bearingInDegrees(): number | null {\r\n return this._props.bearingInDegrees;\r\n }\r\n get estimatedDepartureTimeInMinutes(): number | null {\r\n return this._props.estimatedDepartureTimeInMinutes;\r\n }\r\n get estimatedTimeEnRouteInMinutes(): number | null {\r\n return this._props.estimatedTimeEnRouteInMinutes;\r\n }\r\n get offerTime(): Date | null {\r\n return this._props.offerTime;\r\n }\r\n get crewNotified(): Date | null {\r\n return this._props.crewNotified;\r\n }\r\n get transportCheckInitiated(): Date | null {\r\n return this._props.transportCheckInitiated;\r\n }\r\n get notificationAcknowledged(): Date | null {\r\n return this._props.notificationAcknowledged;\r\n }\r\n get responseReceived(): Date | null {\r\n return this._props.responseReceived;\r\n }\r\n get response(): TransportOfferResponse {\r\n return this._props.response;\r\n }\r\n get declineReasonId(): string | null {\r\n return this._props.declineReasonId;\r\n }\r\n get declineSecondaryReasonId(): string | null {\r\n return this._props.declineSecondaryReasonId;\r\n }\r\n get nonReferralReasonId(): string | null {\r\n return this._props.nonReferralReasonId;\r\n }\r\n get nonReferralReasonNotes(): string | null {\r\n return this._props.nonReferralReasonNotes;\r\n }\r\n get cancellationReasonId(): string | null {\r\n return this._props.cancellationReasonId;\r\n }\r\n get cancellationSecondaryReasonId(): string | null {\r\n return this._props.cancellationSecondaryReasonId;\r\n }\r\n get cancellationReasonNotes(): string | null {\r\n return this._props.cancellationReasonNotes;\r\n }\r\n get outOfServiceEventId(): string | null {\r\n return this._props.outOfServiceEventId;\r\n }\r\n get unitId(): string | null {\r\n return this._props.unitId;\r\n }\r\n get vehicleId(): string | null {\r\n return this._props.vehicleId;\r\n }\r\n get agencyLocationId(): string | null {\r\n return this._props.agencyLocationId;\r\n }\r\n get unitDescription(): string | null {\r\n return this._props.unitDescription;\r\n }\r\n get isReferral(): boolean | null {\r\n return this._props.isReferral;\r\n }\r\n get vehicleType(): VehicleType | null {\r\n return this._props.vehicleType;\r\n }\r\n get patientOriginatesAtUnit(): boolean | null {\r\n return this._props.patientOriginatesAtUnit;\r\n }\r\n get vehicleCoordinates(): CoordinatesProps | null {\r\n return this._props.vehicleCoordinates;\r\n }\r\n get homeBaseDistanceInMiles(): number | null {\r\n return this._props.homeBaseDistanceInMiles;\r\n }\r\n get baseId(): string | null {\r\n return this._props.baseId;\r\n }\r\n get preferredRank(): number | null {\r\n return this._props.preferredRank;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get wasBulkSkip(): boolean {\r\n return this._props.wasBulkSkip;\r\n }\r\n get onBaseETAInMinutes(): number | null {\r\n return this._props.onBaseETAInMinutes;\r\n }\r\n get isOnDelay(): boolean {\r\n return this._props.isOnDelay;\r\n }\r\n get isOneCallAgreement(): boolean {\r\n return this._props.isOneCallAgreement;\r\n }\r\n get specialtyTeamETLOInMinutes(): number | null {\r\n return this._props.specialtyTeamETLOInMinutes;\r\n }\r\n get specialtyTeamETEInMinutes(): number | null {\r\n return this._props.specialtyTeamETEInMinutes;\r\n }\r\n get isInternalAgency(): boolean {\r\n return this._props.isInternalAgency;\r\n }\r\n get requestId(): string {\r\n return this._props.requestId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCancelled() {\r\n return this._props.status === TransportOfferStatus.Cancelled;\r\n }\r\n public get isCandidate() {\r\n return this._props.status === TransportOfferStatus.Candidate;\r\n }\r\n public get isOffered() {\r\n return this._props.status === TransportOfferStatus.Offered;\r\n }\r\n public get isResponded() {\r\n return this._props.status === TransportOfferStatus.Responded;\r\n }\r\n public get isSkipped() {\r\n return this._props.status === TransportOfferStatus.Skipped;\r\n }\r\n public get isAborted() {\r\n return this._props.response === TransportOfferResponse.Aborted;\r\n }\r\n public get isAccepted() {\r\n return this._props.response === TransportOfferResponse.Accepted;\r\n }\r\n public get isDeclined() {\r\n return this._props.response === TransportOfferResponse.Declined;\r\n }\r\n public get isPending() {\r\n return this._props.response === TransportOfferResponse.Pending;\r\n }\r\n public get isFixedWing() {\r\n return this._props.vehicleType === VehicleType.FixedWing;\r\n }\r\n public get isGround() {\r\n return this._props.vehicleType === VehicleType.Ground;\r\n }\r\n public get isRotorWing() {\r\n return this._props.vehicleType === VehicleType.RotorWing;\r\n }\r\n public get isUnspecified() {\r\n return this._props.vehicleType === VehicleType.Unspecified;\r\n }\r\n\r\n public isAnyStatus(...transportOfferStatus: TransportOfferStatus[]) {\r\n return transportOfferStatus.includes(this._props.status);\r\n }\r\n public isAnyResponse(...transportOfferResponse: TransportOfferResponse[]) {\r\n return transportOfferResponse.includes(this._props.response);\r\n }\r\n public isAnyVehicleType(...vehicleType: VehicleType[]) {\r\n return this._props.vehicleType != null && vehicleType.includes(this._props.vehicleType);\r\n }\r\n\r\n constructor(props: TransportOfferProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n status: this._props.status,\r\n rank: this._props.rank,\r\n distanceInMiles: this._props.distanceInMiles,\r\n bearingInDegrees: this._props.bearingInDegrees,\r\n estimatedDepartureTimeInMinutes: this._props.estimatedDepartureTimeInMinutes,\r\n estimatedTimeEnRouteInMinutes: this._props.estimatedTimeEnRouteInMinutes,\r\n offerTime: this._props.offerTime,\r\n crewNotified: this._props.crewNotified,\r\n transportCheckInitiated: this._props.transportCheckInitiated,\r\n notificationAcknowledged: this._props.notificationAcknowledged,\r\n responseReceived: this._props.responseReceived,\r\n response: this._props.response,\r\n declineReasonId: this._props.declineReasonId,\r\n declineSecondaryReasonId: this._props.declineSecondaryReasonId,\r\n nonReferralReasonId: this._props.nonReferralReasonId,\r\n nonReferralReasonNotes: this._props.nonReferralReasonNotes,\r\n cancellationReasonId: this._props.cancellationReasonId,\r\n cancellationSecondaryReasonId: this._props.cancellationSecondaryReasonId,\r\n cancellationReasonNotes: this._props.cancellationReasonNotes,\r\n outOfServiceEventId: this._props.outOfServiceEventId,\r\n unitId: this._props.unitId,\r\n vehicleId: this._props.vehicleId,\r\n agencyLocationId: this._props.agencyLocationId,\r\n unitDescription: this._props.unitDescription,\r\n isReferral: this._props.isReferral,\r\n vehicleType: this._props.vehicleType,\r\n patientOriginatesAtUnit: this._props.patientOriginatesAtUnit,\r\n vehicleCoordinates: this._props.vehicleCoordinates,\r\n homeBaseDistanceInMiles: this._props.homeBaseDistanceInMiles,\r\n baseId: this._props.baseId,\r\n preferredRank: this._props.preferredRank,\r\n notes: this._props.notes,\r\n wasBulkSkip: this._props.wasBulkSkip,\r\n onBaseETAInMinutes: this._props.onBaseETAInMinutes,\r\n isOnDelay: this._props.isOnDelay,\r\n isOneCallAgreement: this._props.isOneCallAgreement,\r\n specialtyTeamETLOInMinutes: this._props.specialtyTeamETLOInMinutes,\r\n specialtyTeamETEInMinutes: this._props.specialtyTeamETEInMinutes,\r\n isInternalAgency: this._props.isInternalAgency,\r\n requestId: this._props.requestId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTransportOfferEntities = (state: AppState) =>\r\n state.entityStores.transportOffer.entities;\r\n\r\nexport const selectTransportOfferById = (id: string) => (state: AppState) =>\r\n state.entityStores.transportOffer.entities.get(id);\r\n\r\nexport const selectTransportOfferMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.transportOffer.meta.get(id);\r\n\r\nexport const selectTransportOfferAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectTransportOfferById(id),\r\n selectTransportOfferMetadataById(id),\r\n (transportOffer, meta) => ({ transportOffer, meta }),\r\n );\r\n\r\nexport function selectTransportOfferEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTransportOfferEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TransportOfferRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByStatus(status: TransportOfferStatus) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByRank(rank: number) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.rank === rank).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByDistanceInMiles(distanceInMiles: number) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.distanceInMiles === distanceInMiles).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByBearingInDegrees(bearingInDegrees: number) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.bearingInDegrees === bearingInDegrees).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByEstimatedDepartureTimeInMinutes(\r\n estimatedDepartureTimeInMinutes: number,\r\n) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities\r\n .filter((e) => e.estimatedDepartureTimeInMinutes === estimatedDepartureTimeInMinutes)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByEstimatedTimeEnRouteInMinutes(\r\n estimatedTimeEnRouteInMinutes: number,\r\n) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities\r\n .filter((e) => e.estimatedTimeEnRouteInMinutes === estimatedTimeEnRouteInMinutes)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByOfferTime(offerTime: Date) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.offerTime === offerTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByCrewNotified(crewNotified: Date) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.crewNotified === crewNotified).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByTransportCheckInitiated(\r\n transportCheckInitiated: Date,\r\n) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.transportCheckInitiated === transportCheckInitiated).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByNotificationAcknowledged(\r\n notificationAcknowledged: Date,\r\n) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.notificationAcknowledged === notificationAcknowledged).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByResponseReceived(responseReceived: Date) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.responseReceived === responseReceived).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByResponse(response: TransportOfferResponse) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.response === response).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByDeclineReasonId(declineReasonId: string) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.declineReasonId === declineReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByDeclineSecondaryReasonId(\r\n declineSecondaryReasonId: string,\r\n) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.declineSecondaryReasonId === declineSecondaryReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByNonReferralReasonId(nonReferralReasonId: string) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.nonReferralReasonId === nonReferralReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByNonReferralReasonNotes(\r\n nonReferralReasonNotes: string,\r\n) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.nonReferralReasonNotes === nonReferralReasonNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByCancellationReasonId(cancellationReasonId: string) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.cancellationReasonId === cancellationReasonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByCancellationSecondaryReasonId(\r\n cancellationSecondaryReasonId: string,\r\n) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities\r\n .filter((e) => e.cancellationSecondaryReasonId === cancellationSecondaryReasonId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByCancellationReasonNotes(\r\n cancellationReasonNotes: string,\r\n) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.cancellationReasonNotes === cancellationReasonNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByOutOfServiceEventId(outOfServiceEventId: string) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.outOfServiceEventId === outOfServiceEventId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByAgencyLocationId(agencyLocationId: string) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.agencyLocationId === agencyLocationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByUnitDescription(unitDescription: string) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.unitDescription === unitDescription).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByIsReferral(isReferral: boolean) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.isReferral === isReferral).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByVehicleType(vehicleType: VehicleType) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.vehicleType === vehicleType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByPatientOriginatesAtUnit(\r\n patientOriginatesAtUnit: boolean,\r\n) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.patientOriginatesAtUnit === patientOriginatesAtUnit).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByHomeBaseDistanceInMiles(\r\n homeBaseDistanceInMiles: number,\r\n) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.homeBaseDistanceInMiles === homeBaseDistanceInMiles).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByBaseId(baseId: string) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.baseId === baseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByPreferredRank(preferredRank: number) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.preferredRank === preferredRank).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByWasBulkSkip(wasBulkSkip: boolean) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.wasBulkSkip === wasBulkSkip).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByOnBaseETAInMinutes(onBaseETAInMinutes: number) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.onBaseETAInMinutes === onBaseETAInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByIsOnDelay(isOnDelay: boolean) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.isOnDelay === isOnDelay).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByIsOneCallAgreement(isOneCallAgreement: boolean) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.isOneCallAgreement === isOneCallAgreement).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesBySpecialtyTeamETLOInMinutes(\r\n specialtyTeamETLOInMinutes: number,\r\n) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.specialtyTeamETLOInMinutes === specialtyTeamETLOInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesBySpecialtyTeamETEInMinutes(\r\n specialtyTeamETEInMinutes: number,\r\n) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.specialtyTeamETEInMinutes === specialtyTeamETEInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByIsInternalAgency(isInternalAgency: boolean) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.isInternalAgency === isInternalAgency).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByRequestId(requestId: string) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.requestId === requestId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllTransportOfferEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n FlightRule,\r\n TransportOfferAlgorithm,\r\n TransportOfferOptionType,\r\n VehicleType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n RequiredCapabilityRecord,\r\n RequiredCapabilityProps,\r\n} from 'src/store/generated/required-capability-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TransportOfferOptionProps {\r\n id: string;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n includeAbortedUnit: boolean;\r\n type: TransportOfferOptionType;\r\n requiredCapabilities: List;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TransportOfferOptionRecord extends Record({\r\n id: null as any,\r\n requestedVehicleType: null as any,\r\n transportOfferAlgorithm: null as any,\r\n minimumFlightRule: null as any,\r\n includeCompetitors: null as any,\r\n includeAbortedUnit: null as any,\r\n type: null as any,\r\n requiredCapabilities: null as any,\r\n requestId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n includeAbortedUnit: boolean;\r\n type: TransportOfferOptionType;\r\n requiredCapabilities: any;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TransportOfferOptionRecord {\r\n if (json == null) {\r\n throw new Error('TransportOfferOptionRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TransportOfferOptionRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TransportOfferOptionJson.id'),\r\n requestedVehicleType: json.requestedVehicleType,\r\n transportOfferAlgorithm: json.transportOfferAlgorithm,\r\n minimumFlightRule: json.minimumFlightRule,\r\n includeCompetitors: json.includeCompetitors,\r\n includeAbortedUnit: getFromOrThrow(\r\n json,\r\n (j) => j.includeAbortedUnit,\r\n 'TransportOfferOptionJson.includeAbortedUnit',\r\n ),\r\n type: getFromOrThrow(json, (j) => j.type, 'TransportOfferOptionJson.type'),\r\n requiredCapabilities: List(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requiredCapabilities,\r\n 'TransportOfferOptionJson.requiredCapabilities',\r\n ).map((o: any) => new RequiredCapabilityRecord(o)),\r\n ),\r\n requestId: getFromOrThrow(json, (j) => j.requestId, 'TransportOfferOptionJson.requestId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'TransportOfferOptionJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n includeAbortedUnit: boolean;\r\n type: TransportOfferOptionType;\r\n requiredCapabilities: any;\r\n requestId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TransportOfferOptionRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TransportOfferOptionRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TransportOfferOptionRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TransportOfferOptionJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestedVehicleType: tryOrDefault(\r\n () => json.requestedVehicleType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportOfferAlgorithm: tryOrDefault(\r\n () => json.transportOfferAlgorithm,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n minimumFlightRule: tryOrDefault(\r\n () => json.minimumFlightRule,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n includeCompetitors: tryOrDefault(\r\n () => json.includeCompetitors,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n includeAbortedUnit: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.includeAbortedUnit,\r\n 'TransportOfferOptionJson.includeAbortedUnit',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'TransportOfferOptionJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requiredCapabilities: tryOrDefault(\r\n () =>\r\n List(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requiredCapabilities,\r\n 'TransportOfferOptionJson.requiredCapabilities',\r\n ).map((o: any) => new RequiredCapabilityRecord(o)),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.requestId, 'TransportOfferOptionJson.requestId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'TransportOfferOptionJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TransportOfferOptionProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TransportOfferOptionRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TransportOfferOptionViewModelBase implements TransportOfferOptionProps {\r\n protected readonly _props: TransportOfferOptionProps;\r\n private _json?: TransportOfferOptionProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get requestedVehicleType(): VehicleType | null {\r\n return this._props.requestedVehicleType;\r\n }\r\n get transportOfferAlgorithm(): TransportOfferAlgorithm | null {\r\n return this._props.transportOfferAlgorithm;\r\n }\r\n get minimumFlightRule(): FlightRule | null {\r\n return this._props.minimumFlightRule;\r\n }\r\n get includeCompetitors(): boolean | null {\r\n return this._props.includeCompetitors;\r\n }\r\n get includeAbortedUnit(): boolean {\r\n return this._props.includeAbortedUnit;\r\n }\r\n get type(): TransportOfferOptionType {\r\n return this._props.type;\r\n }\r\n get requiredCapabilities(): List {\r\n return this._props.requiredCapabilities;\r\n }\r\n get requestId(): string {\r\n return this._props.requestId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isFixedWing() {\r\n return this._props.requestedVehicleType === VehicleType.FixedWing;\r\n }\r\n public get isGround() {\r\n return this._props.requestedVehicleType === VehicleType.Ground;\r\n }\r\n public get isRotorWing() {\r\n return this._props.requestedVehicleType === VehicleType.RotorWing;\r\n }\r\n public get isUnspecified() {\r\n return this._props.requestedVehicleType === VehicleType.Unspecified;\r\n }\r\n public get isShortestDistance() {\r\n return this._props.transportOfferAlgorithm === TransportOfferAlgorithm.ShortestDistance;\r\n }\r\n public get isShortestEta() {\r\n return this._props.transportOfferAlgorithm === TransportOfferAlgorithm.ShortestEta;\r\n }\r\n public get isIfr() {\r\n return this._props.minimumFlightRule === FlightRule.Ifr;\r\n }\r\n public get isNone() {\r\n return this._props.minimumFlightRule === FlightRule.None;\r\n }\r\n public get isVfr() {\r\n return this._props.minimumFlightRule === FlightRule.Vfr;\r\n }\r\n public get isApplied() {\r\n return this._props.type === TransportOfferOptionType.Applied;\r\n }\r\n public get isUser() {\r\n return this._props.type === TransportOfferOptionType.User;\r\n }\r\n\r\n public isAnyRequestedVehicleType(...vehicleType: VehicleType[]) {\r\n return (\r\n this._props.requestedVehicleType != null &&\r\n vehicleType.includes(this._props.requestedVehicleType)\r\n );\r\n }\r\n public isAnyTransportOfferAlgorithm(...transportOfferAlgorithm: TransportOfferAlgorithm[]) {\r\n return (\r\n this._props.transportOfferAlgorithm != null &&\r\n transportOfferAlgorithm.includes(this._props.transportOfferAlgorithm)\r\n );\r\n }\r\n public isAnyMinimumFlightRule(...flightRule: FlightRule[]) {\r\n return (\r\n this._props.minimumFlightRule != null && flightRule.includes(this._props.minimumFlightRule)\r\n );\r\n }\r\n public isAnyType(...transportOfferOptionType: TransportOfferOptionType[]) {\r\n return transportOfferOptionType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: TransportOfferOptionProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n requestedVehicleType: this._props.requestedVehicleType,\r\n transportOfferAlgorithm: this._props.transportOfferAlgorithm,\r\n minimumFlightRule: this._props.minimumFlightRule,\r\n includeCompetitors: this._props.includeCompetitors,\r\n includeAbortedUnit: this._props.includeAbortedUnit,\r\n type: this._props.type,\r\n requiredCapabilities: this._props.requiredCapabilities,\r\n requestId: this._props.requestId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTransportOfferOptionEntities = (state: AppState) =>\r\n state.entityStores.transportOfferOption.entities;\r\n\r\nexport const selectTransportOfferOptionById = (id: string) => (state: AppState) =>\r\n state.entityStores.transportOfferOption.entities.get(id);\r\n\r\nexport const selectTransportOfferOptionMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.transportOfferOption.meta.get(id);\r\n\r\nexport const selectTransportOfferOptionAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectTransportOfferOptionById(id),\r\n selectTransportOfferOptionMetadataById(id),\r\n (transportOfferOption, meta) => ({ transportOfferOption, meta }),\r\n );\r\n\r\nexport function selectTransportOfferOptionEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTransportOfferOptionEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TransportOfferOptionRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTransportOfferOptionEntitiesByRequestedVehicleType(\r\n requestedVehicleType: VehicleType,\r\n) {\r\n return createSelector(selectAllTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.requestedVehicleType === requestedVehicleType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferOptionEntitiesByTransportOfferAlgorithm(\r\n transportOfferAlgorithm: TransportOfferAlgorithm,\r\n) {\r\n return createSelector(selectAllTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.transportOfferAlgorithm === transportOfferAlgorithm).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferOptionEntitiesByMinimumFlightRule(\r\n minimumFlightRule: FlightRule,\r\n) {\r\n return createSelector(selectAllTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.minimumFlightRule === minimumFlightRule).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferOptionEntitiesByIncludeCompetitors(\r\n includeCompetitors: boolean,\r\n) {\r\n return createSelector(selectAllTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.includeCompetitors === includeCompetitors).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferOptionEntitiesByIncludeAbortedUnit(\r\n includeAbortedUnit: boolean,\r\n) {\r\n return createSelector(selectAllTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.includeAbortedUnit === includeAbortedUnit).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferOptionEntitiesByType(type: TransportOfferOptionType) {\r\n return createSelector(selectAllTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferOptionEntitiesByRequestId(requestId: string) {\r\n return createSelector(selectAllTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.requestId === requestId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportOfferOptionEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { OperationType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TransportReasonProps {\r\n id: string;\r\n name: string;\r\n operationType: OperationType | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TransportReasonRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n operationType: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n operationType: OperationType | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TransportReasonRecord {\r\n if (json == null) {\r\n throw new Error('TransportReasonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TransportReasonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TransportReasonJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'TransportReasonJson.name'),\r\n operationType: json.operationType,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n operationType: OperationType | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TransportReasonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TransportReasonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TransportReasonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TransportReasonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'TransportReasonJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n operationType: tryOrDefault(\r\n () => json.operationType,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TransportReasonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TransportReasonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TransportReasonViewModelBase implements TransportReasonProps {\r\n protected readonly _props: TransportReasonProps;\r\n private _json?: TransportReasonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get operationType(): OperationType | null {\r\n return this._props.operationType;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isGroundRun() {\r\n return this._props.operationType === OperationType.GroundRun;\r\n }\r\n public get isMaintenance() {\r\n return this._props.operationType === OperationType.Maintenance;\r\n }\r\n public get isNonPatientShuttle() {\r\n return this._props.operationType === OperationType.NonPatientShuttle;\r\n }\r\n public get isPatientShuttle() {\r\n return this._props.operationType === OperationType.PatientShuttle;\r\n }\r\n public get isPublicRelations() {\r\n return this._props.operationType === OperationType.PublicRelations;\r\n }\r\n public get isPublicUtility() {\r\n return this._props.operationType === OperationType.PublicUtility;\r\n }\r\n public get isReposition() {\r\n return this._props.operationType === OperationType.Reposition;\r\n }\r\n public get isResidence() {\r\n return this._props.operationType === OperationType.Residence;\r\n }\r\n public get isSceneCall() {\r\n return this._props.operationType === OperationType.SceneCall;\r\n }\r\n public get isSearchAndAssist() {\r\n return this._props.operationType === OperationType.SearchAndAssist;\r\n }\r\n public get isTraining() {\r\n return this._props.operationType === OperationType.Training;\r\n }\r\n public get isTransfer() {\r\n return this._props.operationType === OperationType.Transfer;\r\n }\r\n public get isTransferCenter() {\r\n return this._props.operationType === OperationType.TransferCenter;\r\n }\r\n\r\n public isAnyOperationType(...operationType: OperationType[]) {\r\n return this._props.operationType != null && operationType.includes(this._props.operationType);\r\n }\r\n\r\n constructor(props: TransportReasonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n operationType: this._props.operationType,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTransportReasonEntities = (state: AppState) =>\r\n state.entityStores.transportReason.entities;\r\n\r\nexport const selectTransportReasonById = (id: string) => (state: AppState) =>\r\n state.entityStores.transportReason.entities.get(id);\r\n\r\nexport const selectTransportReasonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.transportReason.meta.get(id);\r\n\r\nexport const selectTransportReasonAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectTransportReasonById(id),\r\n selectTransportReasonMetadataById(id),\r\n (transportReason, meta) => ({ transportReason, meta }),\r\n );\r\n\r\nexport function selectTransportReasonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTransportReasonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TransportReasonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTransportReasonEntitiesByName(name: string) {\r\n return createSelector(selectAllTransportReasonEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransportReasonEntitiesByOperationType(operationType: OperationType) {\r\n return createSelector(selectAllTransportReasonEntities, (entities) =>\r\n entities.filter((e) => e.operationType === operationType).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TripProps {\r\n id: string;\r\n vehicleId: string | null;\r\n agencyId: string | null;\r\n agencyLocationId: string | null;\r\n calculatedLoadedMiles: number | null;\r\n gpsLoadedMiles: number | null;\r\n operationId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TripRecord extends Record({\r\n id: null as any,\r\n vehicleId: null as any,\r\n agencyId: null as any,\r\n agencyLocationId: null as any,\r\n calculatedLoadedMiles: null as any,\r\n gpsLoadedMiles: null as any,\r\n operationId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n vehicleId: string | null;\r\n agencyId: string | null;\r\n agencyLocationId: string | null;\r\n calculatedLoadedMiles: number | null;\r\n gpsLoadedMiles: number | null;\r\n operationId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TripRecord {\r\n if (json == null) {\r\n throw new Error('TripRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TripRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TripJson.id'),\r\n vehicleId: json.vehicleId,\r\n agencyId: json.agencyId,\r\n agencyLocationId: json.agencyLocationId,\r\n calculatedLoadedMiles: json.calculatedLoadedMiles,\r\n gpsLoadedMiles: json.gpsLoadedMiles,\r\n operationId: getFromOrThrow(json, (j) => j.operationId, 'TripJson.operationId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'TripJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n vehicleId: string | null;\r\n agencyId: string | null;\r\n agencyLocationId: string | null;\r\n calculatedLoadedMiles: number | null;\r\n gpsLoadedMiles: number | null;\r\n operationId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TripRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TripRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TripRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TripJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => json.vehicleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n agencyId: tryOrDefault(\r\n () => json.agencyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n agencyLocationId: tryOrDefault(\r\n () => json.agencyLocationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n calculatedLoadedMiles: tryOrDefault(\r\n () => json.calculatedLoadedMiles,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n gpsLoadedMiles: tryOrDefault(\r\n () => json.gpsLoadedMiles,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n operationId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.operationId, 'TripJson.operationId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'TripJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TripProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TripRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TripViewModelBase implements TripProps {\r\n protected readonly _props: TripProps;\r\n private _json?: TripProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get vehicleId(): string | null {\r\n return this._props.vehicleId;\r\n }\r\n get agencyId(): string | null {\r\n return this._props.agencyId;\r\n }\r\n get agencyLocationId(): string | null {\r\n return this._props.agencyLocationId;\r\n }\r\n get calculatedLoadedMiles(): number | null {\r\n return this._props.calculatedLoadedMiles;\r\n }\r\n get gpsLoadedMiles(): number | null {\r\n return this._props.gpsLoadedMiles;\r\n }\r\n get operationId(): string {\r\n return this._props.operationId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: TripProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n vehicleId: this._props.vehicleId,\r\n agencyId: this._props.agencyId,\r\n agencyLocationId: this._props.agencyLocationId,\r\n calculatedLoadedMiles: this._props.calculatedLoadedMiles,\r\n gpsLoadedMiles: this._props.gpsLoadedMiles,\r\n operationId: this._props.operationId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTripEntities = (state: AppState) => state.entityStores.trip.entities;\r\n\r\nexport const selectTripById = (id: string) => (state: AppState) =>\r\n state.entityStores.trip.entities.get(id);\r\n\r\nexport const selectTripMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.trip.meta.get(id);\r\n\r\nexport const selectTripAndMetadataById = (id: string) =>\r\n createSelector(selectTripById(id), selectTripMetadataById(id), (trip, meta) => ({ trip, meta }));\r\n\r\nexport function selectTripEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTripEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TripRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTripEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllTripEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripEntitiesByAgencyId(agencyId: string) {\r\n return createSelector(selectAllTripEntities, (entities) =>\r\n entities.filter((e) => e.agencyId === agencyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripEntitiesByAgencyLocationId(agencyLocationId: string) {\r\n return createSelector(selectAllTripEntities, (entities) =>\r\n entities.filter((e) => e.agencyLocationId === agencyLocationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripEntitiesByCalculatedLoadedMiles(calculatedLoadedMiles: number) {\r\n return createSelector(selectAllTripEntities, (entities) =>\r\n entities.filter((e) => e.calculatedLoadedMiles === calculatedLoadedMiles).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripEntitiesByGpsLoadedMiles(gpsLoadedMiles: number) {\r\n return createSelector(selectAllTripEntities, (entities) =>\r\n entities.filter((e) => e.gpsLoadedMiles === gpsLoadedMiles).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripEntitiesByOperationId(operationId: string) {\r\n return createSelector(selectAllTripEntities, (entities) =>\r\n entities.filter((e) => e.operationId === operationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllTripEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { TripLegStatus } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TripLegProps {\r\n id: string;\r\n status: TripLegStatus;\r\n sequence: number;\r\n estimatedDistanceInMiles: number | null;\r\n departingOdometerReading: number | null;\r\n departingNote: string | null;\r\n arrivingOdometerReading: number | null;\r\n arrivingNote: string | null;\r\n isEmergent: boolean | null;\r\n officialEteId: string | null;\r\n calculatedEteId: string | null;\r\n endingWaypointId: string | null;\r\n startingWaypointId: string | null;\r\n tripId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TripLegRecord extends Record({\r\n id: null as any,\r\n status: null as any,\r\n sequence: null as any,\r\n estimatedDistanceInMiles: null as any,\r\n departingOdometerReading: null as any,\r\n departingNote: null as any,\r\n arrivingOdometerReading: null as any,\r\n arrivingNote: null as any,\r\n isEmergent: null as any,\r\n officialEteId: null as any,\r\n calculatedEteId: null as any,\r\n endingWaypointId: null as any,\r\n startingWaypointId: null as any,\r\n tripId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n status: TripLegStatus;\r\n sequence: number;\r\n estimatedDistanceInMiles: number | null;\r\n departingOdometerReading: number | null;\r\n departingNote: string | null;\r\n arrivingOdometerReading: number | null;\r\n arrivingNote: string | null;\r\n isEmergent: boolean | null;\r\n officialEteId: string | null;\r\n calculatedEteId: string | null;\r\n endingWaypointId: string | null;\r\n startingWaypointId: string | null;\r\n tripId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TripLegRecord {\r\n if (json == null) {\r\n throw new Error('TripLegRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TripLegRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TripLegJson.id'),\r\n status: getFromOrThrow(json, (j) => j.status, 'TripLegJson.status'),\r\n sequence: getFromOrThrow(json, (j) => j.sequence, 'TripLegJson.sequence'),\r\n estimatedDistanceInMiles: json.estimatedDistanceInMiles,\r\n departingOdometerReading: json.departingOdometerReading,\r\n departingNote: json.departingNote,\r\n arrivingOdometerReading: json.arrivingOdometerReading,\r\n arrivingNote: json.arrivingNote,\r\n isEmergent: json.isEmergent,\r\n officialEteId: json.officialEteId,\r\n calculatedEteId: json.calculatedEteId,\r\n endingWaypointId: json.endingWaypointId,\r\n startingWaypointId: json.startingWaypointId,\r\n tripId: getFromOrThrow(json, (j) => j.tripId, 'TripLegJson.tripId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'TripLegJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n status: TripLegStatus;\r\n sequence: number;\r\n estimatedDistanceInMiles: number | null;\r\n departingOdometerReading: number | null;\r\n departingNote: string | null;\r\n arrivingOdometerReading: number | null;\r\n arrivingNote: string | null;\r\n isEmergent: boolean | null;\r\n officialEteId: string | null;\r\n calculatedEteId: string | null;\r\n endingWaypointId: string | null;\r\n startingWaypointId: string | null;\r\n tripId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TripLegRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TripLegRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TripLegRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TripLegJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'TripLegJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n sequence: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.sequence, 'TripLegJson.sequence'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedDistanceInMiles: tryOrDefault(\r\n () => json.estimatedDistanceInMiles,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n departingOdometerReading: tryOrDefault(\r\n () => json.departingOdometerReading,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n departingNote: tryOrDefault(\r\n () => json.departingNote,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n arrivingOdometerReading: tryOrDefault(\r\n () => json.arrivingOdometerReading,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n arrivingNote: tryOrDefault(\r\n () => json.arrivingNote,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isEmergent: tryOrDefault(\r\n () => json.isEmergent,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n officialEteId: tryOrDefault(\r\n () => json.officialEteId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n calculatedEteId: tryOrDefault(\r\n () => json.calculatedEteId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n endingWaypointId: tryOrDefault(\r\n () => json.endingWaypointId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n startingWaypointId: tryOrDefault(\r\n () => json.startingWaypointId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tripId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.tripId, 'TripLegJson.tripId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'TripLegJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TripLegProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TripLegRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TripLegViewModelBase implements TripLegProps {\r\n protected readonly _props: TripLegProps;\r\n private _json?: TripLegProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get status(): TripLegStatus {\r\n return this._props.status;\r\n }\r\n get sequence(): number {\r\n return this._props.sequence;\r\n }\r\n get estimatedDistanceInMiles(): number | null {\r\n return this._props.estimatedDistanceInMiles;\r\n }\r\n get departingOdometerReading(): number | null {\r\n return this._props.departingOdometerReading;\r\n }\r\n get departingNote(): string | null {\r\n return this._props.departingNote;\r\n }\r\n get arrivingOdometerReading(): number | null {\r\n return this._props.arrivingOdometerReading;\r\n }\r\n get arrivingNote(): string | null {\r\n return this._props.arrivingNote;\r\n }\r\n get isEmergent(): boolean | null {\r\n return this._props.isEmergent;\r\n }\r\n get officialEteId(): string | null {\r\n return this._props.officialEteId;\r\n }\r\n get calculatedEteId(): string | null {\r\n return this._props.calculatedEteId;\r\n }\r\n get endingWaypointId(): string | null {\r\n return this._props.endingWaypointId;\r\n }\r\n get startingWaypointId(): string | null {\r\n return this._props.startingWaypointId;\r\n }\r\n get tripId(): string {\r\n return this._props.tripId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCancelled() {\r\n return this._props.status === TripLegStatus.Cancelled;\r\n }\r\n public get isComplete() {\r\n return this._props.status === TripLegStatus.Complete;\r\n }\r\n public get isEnRoute() {\r\n return this._props.status === TripLegStatus.EnRoute;\r\n }\r\n public get isPlanned() {\r\n return this._props.status === TripLegStatus.Planned;\r\n }\r\n\r\n public isAnyStatus(...tripLegStatus: TripLegStatus[]) {\r\n return tripLegStatus.includes(this._props.status);\r\n }\r\n\r\n constructor(props: TripLegProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n status: this._props.status,\r\n sequence: this._props.sequence,\r\n estimatedDistanceInMiles: this._props.estimatedDistanceInMiles,\r\n departingOdometerReading: this._props.departingOdometerReading,\r\n departingNote: this._props.departingNote,\r\n arrivingOdometerReading: this._props.arrivingOdometerReading,\r\n arrivingNote: this._props.arrivingNote,\r\n isEmergent: this._props.isEmergent,\r\n officialEteId: this._props.officialEteId,\r\n calculatedEteId: this._props.calculatedEteId,\r\n endingWaypointId: this._props.endingWaypointId,\r\n startingWaypointId: this._props.startingWaypointId,\r\n tripId: this._props.tripId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTripLegEntities = (state: AppState) => state.entityStores.tripLeg.entities;\r\n\r\nexport const selectTripLegById = (id: string) => (state: AppState) =>\r\n state.entityStores.tripLeg.entities.get(id);\r\n\r\nexport const selectTripLegMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.tripLeg.meta.get(id);\r\n\r\nexport const selectTripLegAndMetadataById = (id: string) =>\r\n createSelector(selectTripLegById(id), selectTripLegMetadataById(id), (tripLeg, meta) => ({\r\n tripLeg,\r\n meta,\r\n }));\r\n\r\nexport function selectTripLegEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTripLegEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TripLegRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByStatus(status: TripLegStatus) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesBySequence(sequence: number) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.sequence === sequence).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByEstimatedDistanceInMiles(estimatedDistanceInMiles: number) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.estimatedDistanceInMiles === estimatedDistanceInMiles).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByDepartingOdometerReading(departingOdometerReading: number) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.departingOdometerReading === departingOdometerReading).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByDepartingNote(departingNote: string) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.departingNote === departingNote).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByArrivingOdometerReading(arrivingOdometerReading: number) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.arrivingOdometerReading === arrivingOdometerReading).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByArrivingNote(arrivingNote: string) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.arrivingNote === arrivingNote).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByIsEmergent(isEmergent: boolean) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.isEmergent === isEmergent).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByOfficialEteId(officialEteId: string) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.officialEteId === officialEteId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByCalculatedEteId(calculatedEteId: string) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.calculatedEteId === calculatedEteId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByEndingWaypointId(endingWaypointId: string) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.endingWaypointId === endingWaypointId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByStartingWaypointId(startingWaypointId: string) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.startingWaypointId === startingWaypointId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByTripId(tripId: string) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.tripId === tripId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripLegEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllTripLegEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { PassengerType, UnitPositionType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TripPassengerProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n weightInKg: number | null;\r\n type: PassengerType;\r\n positionName: string | null;\r\n positionType: UnitPositionType | null;\r\n notificationAddress: string | null;\r\n personId: string | null;\r\n crewMemberId: string | null;\r\n tripId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TripPassengerRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n weightInKg: null as any,\r\n type: null as any,\r\n positionName: null as any,\r\n positionType: null as any,\r\n notificationAddress: null as any,\r\n personId: null as any,\r\n crewMemberId: null as any,\r\n tripId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n weightInKg: number | null;\r\n type: PassengerType;\r\n positionName: string | null;\r\n positionType: UnitPositionType | null;\r\n notificationAddress: string | null;\r\n personId: string | null;\r\n crewMemberId: string | null;\r\n tripId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TripPassengerRecord {\r\n if (json == null) {\r\n throw new Error('TripPassengerRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TripPassengerRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TripPassengerJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'TripPassengerJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'TripPassengerJson.abbreviation'),\r\n weightInKg: json.weightInKg,\r\n type: getFromOrThrow(json, (j) => j.type, 'TripPassengerJson.type'),\r\n positionName: json.positionName,\r\n positionType: json.positionType,\r\n notificationAddress: json.notificationAddress,\r\n personId: json.personId,\r\n crewMemberId: json.crewMemberId,\r\n tripId: getFromOrThrow(json, (j) => j.tripId, 'TripPassengerJson.tripId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'TripPassengerJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n weightInKg: number | null;\r\n type: PassengerType;\r\n positionName: string | null;\r\n positionType: UnitPositionType | null;\r\n notificationAddress: string | null;\r\n personId: string | null;\r\n crewMemberId: string | null;\r\n tripId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TripPassengerRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TripPassengerRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TripPassengerRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TripPassengerJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'TripPassengerJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'TripPassengerJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n weightInKg: tryOrDefault(\r\n () => json.weightInKg,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'TripPassengerJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n positionName: tryOrDefault(\r\n () => json.positionName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n positionType: tryOrDefault(\r\n () => json.positionType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notificationAddress: tryOrDefault(\r\n () => json.notificationAddress,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n personId: tryOrDefault(\r\n () => json.personId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n crewMemberId: tryOrDefault(\r\n () => json.crewMemberId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tripId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.tripId, 'TripPassengerJson.tripId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'TripPassengerJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TripPassengerProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TripPassengerRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TripPassengerViewModelBase implements TripPassengerProps {\r\n protected readonly _props: TripPassengerProps;\r\n private _json?: TripPassengerProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get weightInKg(): number | null {\r\n return this._props.weightInKg;\r\n }\r\n get type(): PassengerType {\r\n return this._props.type;\r\n }\r\n get positionName(): string | null {\r\n return this._props.positionName;\r\n }\r\n get positionType(): UnitPositionType | null {\r\n return this._props.positionType;\r\n }\r\n get notificationAddress(): string | null {\r\n return this._props.notificationAddress;\r\n }\r\n get personId(): string | null {\r\n return this._props.personId;\r\n }\r\n get crewMemberId(): string | null {\r\n return this._props.crewMemberId;\r\n }\r\n get tripId(): string {\r\n return this._props.tripId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isTypeCoPilot() {\r\n return this._props.type === PassengerType.CoPilot;\r\n }\r\n public get isPositionTypeCoPilot() {\r\n return this._props.positionType === UnitPositionType.CoPilot;\r\n }\r\n public get isCrewMember() {\r\n return this._props.type === PassengerType.CrewMember;\r\n }\r\n public get isTypeDriver() {\r\n return this._props.type === PassengerType.Driver;\r\n }\r\n public get isPositionTypeDriver() {\r\n return this._props.positionType === UnitPositionType.Driver;\r\n }\r\n public get isEscort() {\r\n return this._props.type === PassengerType.Escort;\r\n }\r\n public get isGuard() {\r\n return this._props.type === PassengerType.Guard;\r\n }\r\n public get isTypeOther() {\r\n return this._props.type === PassengerType.Other;\r\n }\r\n public get isPositionTypeOther() {\r\n return this._props.positionType === UnitPositionType.Other;\r\n }\r\n public get isPatient() {\r\n return this._props.type === PassengerType.Patient;\r\n }\r\n public get isPilotInCommand() {\r\n return this._props.type === PassengerType.PilotInCommand;\r\n }\r\n public get isRideAlong() {\r\n return this._props.type === PassengerType.RideAlong;\r\n }\r\n public get isSpecialyTeamMember() {\r\n return this._props.type === PassengerType.SpecialyTeamMember;\r\n }\r\n public get isClinician() {\r\n return this._props.positionType === UnitPositionType.Clinician;\r\n }\r\n public get isClinicianTrainee() {\r\n return this._props.positionType === UnitPositionType.ClinicianTrainee;\r\n }\r\n public get isMechanic() {\r\n return this._props.positionType === UnitPositionType.Mechanic;\r\n }\r\n public get isNurse() {\r\n return this._props.positionType === UnitPositionType.Nurse;\r\n }\r\n public get isObserver() {\r\n return this._props.positionType === UnitPositionType.Observer;\r\n }\r\n public get isParamedic() {\r\n return this._props.positionType === UnitPositionType.Paramedic;\r\n }\r\n public get isPilot() {\r\n return this._props.positionType === UnitPositionType.Pilot;\r\n }\r\n public get isPilotTrainee() {\r\n return this._props.positionType === UnitPositionType.PilotTrainee;\r\n }\r\n\r\n public isAnyType(...passengerType: PassengerType[]) {\r\n return passengerType.includes(this._props.type);\r\n }\r\n public isAnyPositionType(...unitPositionType: UnitPositionType[]) {\r\n return this._props.positionType != null && unitPositionType.includes(this._props.positionType);\r\n }\r\n\r\n constructor(props: TripPassengerProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n weightInKg: this._props.weightInKg,\r\n type: this._props.type,\r\n positionName: this._props.positionName,\r\n positionType: this._props.positionType,\r\n notificationAddress: this._props.notificationAddress,\r\n personId: this._props.personId,\r\n crewMemberId: this._props.crewMemberId,\r\n tripId: this._props.tripId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTripPassengerEntities = (state: AppState) =>\r\n state.entityStores.tripPassenger.entities;\r\n\r\nexport const selectTripPassengerById = (id: string) => (state: AppState) =>\r\n state.entityStores.tripPassenger.entities.get(id);\r\n\r\nexport const selectTripPassengerMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.tripPassenger.meta.get(id);\r\n\r\nexport const selectTripPassengerAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectTripPassengerById(id),\r\n selectTripPassengerMetadataById(id),\r\n (tripPassenger, meta) => ({ tripPassenger, meta }),\r\n );\r\n\r\nexport function selectTripPassengerEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTripPassengerEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TripPassengerRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTripPassengerEntitiesByName(name: string) {\r\n return createSelector(selectAllTripPassengerEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripPassengerEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllTripPassengerEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripPassengerEntitiesByWeightInKg(weightInKg: number) {\r\n return createSelector(selectAllTripPassengerEntities, (entities) =>\r\n entities.filter((e) => e.weightInKg === weightInKg).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripPassengerEntitiesByType(type: PassengerType) {\r\n return createSelector(selectAllTripPassengerEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripPassengerEntitiesByPositionName(positionName: string) {\r\n return createSelector(selectAllTripPassengerEntities, (entities) =>\r\n entities.filter((e) => e.positionName === positionName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripPassengerEntitiesByPositionType(positionType: UnitPositionType) {\r\n return createSelector(selectAllTripPassengerEntities, (entities) =>\r\n entities.filter((e) => e.positionType === positionType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripPassengerEntitiesByNotificationAddress(notificationAddress: string) {\r\n return createSelector(selectAllTripPassengerEntities, (entities) =>\r\n entities.filter((e) => e.notificationAddress === notificationAddress).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripPassengerEntitiesByPersonId(personId: string) {\r\n return createSelector(selectAllTripPassengerEntities, (entities) =>\r\n entities.filter((e) => e.personId === personId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripPassengerEntitiesByCrewMemberId(crewMemberId: string) {\r\n return createSelector(selectAllTripPassengerEntities, (entities) =>\r\n entities.filter((e) => e.crewMemberId === crewMemberId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripPassengerEntitiesByTripId(tripId: string) {\r\n return createSelector(selectAllTripPassengerEntities, (entities) =>\r\n entities.filter((e) => e.tripId === tripId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTripPassengerEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllTripPassengerEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { MissionRoleType, OperationType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface UnitActivationRuleProps {\r\n id: string;\r\n companyId: string;\r\n unitId: string;\r\n operationTypes: Set;\r\n missionRoleTypes: Set;\r\n maximumDistanceInMiles: number | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class UnitActivationRuleRecord extends Record({\r\n id: null as any,\r\n companyId: null as any,\r\n unitId: null as any,\r\n operationTypes: null as any,\r\n missionRoleTypes: null as any,\r\n maximumDistanceInMiles: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n companyId: string;\r\n unitId: string;\r\n operationTypes: any;\r\n missionRoleTypes: any;\r\n maximumDistanceInMiles: number | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): UnitActivationRuleRecord {\r\n if (json == null) {\r\n throw new Error('UnitActivationRuleRecord.fromJS: parameter cannot be null');\r\n }\r\n return new UnitActivationRuleRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'UnitActivationRuleJson.id'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'UnitActivationRuleJson.companyId'),\r\n unitId: getFromOrThrow(json, (j) => j.unitId, 'UnitActivationRuleJson.unitId'),\r\n operationTypes: Set(\r\n getFromOrThrow(json, (j) => j.operationTypes, 'UnitActivationRuleJson.operationTypes'),\r\n ),\r\n missionRoleTypes: Set(\r\n getFromOrThrow(json, (j) => j.missionRoleTypes, 'UnitActivationRuleJson.missionRoleTypes'),\r\n ),\r\n maximumDistanceInMiles: json.maximumDistanceInMiles,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n companyId: string;\r\n unitId: string;\r\n operationTypes: any;\r\n missionRoleTypes: any;\r\n maximumDistanceInMiles: number | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [UnitActivationRuleRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('UnitActivationRuleRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new UnitActivationRuleRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'UnitActivationRuleJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'UnitActivationRuleJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitId, 'UnitActivationRuleJson.unitId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n operationTypes: tryOrDefault(\r\n () =>\r\n Set(\r\n getFromOrThrow(json, (j) => j.operationTypes, 'UnitActivationRuleJson.operationTypes'),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n missionRoleTypes: tryOrDefault(\r\n () =>\r\n Set(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.missionRoleTypes,\r\n 'UnitActivationRuleJson.missionRoleTypes',\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n maximumDistanceInMiles: tryOrDefault(\r\n () => json.maximumDistanceInMiles,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: UnitActivationRuleProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('UnitActivationRuleRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class UnitActivationRuleViewModelBase implements UnitActivationRuleProps {\r\n protected readonly _props: UnitActivationRuleProps;\r\n private _json?: UnitActivationRuleProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n get unitId(): string {\r\n return this._props.unitId;\r\n }\r\n get operationTypes(): Set {\r\n return this._props.operationTypes;\r\n }\r\n get missionRoleTypes(): Set {\r\n return this._props.missionRoleTypes;\r\n }\r\n get maximumDistanceInMiles(): number | null {\r\n return this._props.maximumDistanceInMiles;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: UnitActivationRuleProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n companyId: this._props.companyId,\r\n unitId: this._props.unitId,\r\n operationTypes: this._props.operationTypes,\r\n missionRoleTypes: this._props.missionRoleTypes,\r\n maximumDistanceInMiles: this._props.maximumDistanceInMiles,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllUnitActivationRuleEntities = (state: AppState) =>\r\n state.entityStores.unitActivationRule.entities;\r\n\r\nexport const selectUnitActivationRuleById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitActivationRule.entities.get(id);\r\n\r\nexport const selectUnitActivationRuleMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitActivationRule.meta.get(id);\r\n\r\nexport const selectUnitActivationRuleAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectUnitActivationRuleById(id),\r\n selectUnitActivationRuleMetadataById(id),\r\n (unitActivationRule, meta) => ({ unitActivationRule, meta }),\r\n );\r\n\r\nexport function selectUnitActivationRuleEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllUnitActivationRuleEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, UnitActivationRuleRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitActivationRuleEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllUnitActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitActivationRuleEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllUnitActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitActivationRuleEntitiesByMaximumDistanceInMiles(\r\n maximumDistanceInMiles: number,\r\n) {\r\n return createSelector(selectAllUnitActivationRuleEntities, (entities) =>\r\n entities.filter((e) => e.maximumDistanceInMiles === maximumDistanceInMiles).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface UnitEMSystemMappingProps {\r\n id: string;\r\n resourceId: string;\r\n sendGps: boolean;\r\n divisionName: string | null;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class UnitEMSystemMappingRecord extends Record({\r\n id: null as any,\r\n resourceId: null as any,\r\n sendGps: null as any,\r\n divisionName: null as any,\r\n unitId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n resourceId: string;\r\n sendGps: boolean;\r\n divisionName: string | null;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): UnitEMSystemMappingRecord {\r\n if (json == null) {\r\n throw new Error('UnitEMSystemMappingRecord.fromJS: parameter cannot be null');\r\n }\r\n return new UnitEMSystemMappingRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'UnitEMSystemMappingJson.id'),\r\n resourceId: getFromOrThrow(json, (j) => j.resourceId, 'UnitEMSystemMappingJson.resourceId'),\r\n sendGps: getFromOrThrow(json, (j) => j.sendGps, 'UnitEMSystemMappingJson.sendGps'),\r\n divisionName: json.divisionName,\r\n unitId: getFromOrThrow(json, (j) => j.unitId, 'UnitEMSystemMappingJson.unitId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'UnitEMSystemMappingJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n resourceId: string;\r\n sendGps: boolean;\r\n divisionName: string | null;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [UnitEMSystemMappingRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('UnitEMSystemMappingRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new UnitEMSystemMappingRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'UnitEMSystemMappingJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n resourceId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.resourceId, 'UnitEMSystemMappingJson.resourceId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n sendGps: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.sendGps, 'UnitEMSystemMappingJson.sendGps'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n divisionName: tryOrDefault(\r\n () => json.divisionName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitId, 'UnitEMSystemMappingJson.unitId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'UnitEMSystemMappingJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: UnitEMSystemMappingProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('UnitEMSystemMappingRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class UnitEMSystemMappingViewModelBase implements UnitEMSystemMappingProps {\r\n protected readonly _props: UnitEMSystemMappingProps;\r\n private _json?: UnitEMSystemMappingProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get resourceId(): string {\r\n return this._props.resourceId;\r\n }\r\n get sendGps(): boolean {\r\n return this._props.sendGps;\r\n }\r\n get divisionName(): string | null {\r\n return this._props.divisionName;\r\n }\r\n get unitId(): string {\r\n return this._props.unitId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: UnitEMSystemMappingProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n resourceId: this._props.resourceId,\r\n sendGps: this._props.sendGps,\r\n divisionName: this._props.divisionName,\r\n unitId: this._props.unitId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllUnitEMSystemMappingEntities = (state: AppState) =>\r\n state.entityStores.unitEMSystemMapping.entities;\r\n\r\nexport const selectUnitEMSystemMappingById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitEMSystemMapping.entities.get(id);\r\n\r\nexport const selectUnitEMSystemMappingMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitEMSystemMapping.meta.get(id);\r\n\r\nexport const selectUnitEMSystemMappingAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectUnitEMSystemMappingById(id),\r\n selectUnitEMSystemMappingMetadataById(id),\r\n (unitEMSystemMapping, meta) => ({ unitEMSystemMapping, meta }),\r\n );\r\n\r\nexport function selectUnitEMSystemMappingEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllUnitEMSystemMappingEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, UnitEMSystemMappingRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitEMSystemMappingEntitiesByResourceId(resourceId: string) {\r\n return createSelector(selectAllUnitEMSystemMappingEntities, (entities) =>\r\n entities.filter((e) => e.resourceId === resourceId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEMSystemMappingEntitiesBySendGps(sendGps: boolean) {\r\n return createSelector(selectAllUnitEMSystemMappingEntities, (entities) =>\r\n entities.filter((e) => e.sendGps === sendGps).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEMSystemMappingEntitiesByDivisionName(divisionName: string) {\r\n return createSelector(selectAllUnitEMSystemMappingEntities, (entities) =>\r\n entities.filter((e) => e.divisionName === divisionName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEMSystemMappingEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllUnitEMSystemMappingEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEMSystemMappingEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllUnitEMSystemMappingEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n FlightRule,\r\n IntegrationSystem,\r\n UnitStatus,\r\n WeatherStatus,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface UnitProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n regionId: string;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: Date | null;\r\n lastPilotUpdateById: string | null;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: Date | null;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n integrations: Set;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class UnitRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n status: null as any,\r\n weatherStatus: null as any,\r\n baseId: null as any,\r\n isAdministrative: null as any,\r\n vehicleId: null as any,\r\n regionId: null as any,\r\n isHidden: null as any,\r\n isThirdPartyUnit: null as any,\r\n etloInMinutes: null as any,\r\n pilotNotes: null as any,\r\n lastPilotUpdateTime: null as any,\r\n lastPilotUpdateById: null as any,\r\n isExternallyManaged: null as any,\r\n maximumFlightRule: null as any,\r\n isOnDelay: null as any,\r\n plannedAvailableNotes: null as any,\r\n plannedAvailableTime: null as any,\r\n isEnabled: null as any,\r\n isSpare: null as any,\r\n oemPlacardNumber: null as any,\r\n primaryOutOfServiceEventId: null as any,\r\n emSystemResourceId: null as any,\r\n integrations: null as any,\r\n onBaseETAInMinutes: null as any,\r\n completeFlightInstanceId: null as any,\r\n parentUnitId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n regionId: string;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: string | number | Date | null;\r\n lastPilotUpdateById: string | null;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: string | number | Date | null;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n integrations: any;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): UnitRecord {\r\n if (json == null) {\r\n throw new Error('UnitRecord.fromJS: parameter cannot be null');\r\n }\r\n return new UnitRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'UnitJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'UnitJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'UnitJson.abbreviation'),\r\n status: getFromOrThrow(json, (j) => j.status, 'UnitJson.status'),\r\n weatherStatus: getFromOrThrow(json, (j) => j.weatherStatus, 'UnitJson.weatherStatus'),\r\n baseId: getFromOrThrow(json, (j) => j.baseId, 'UnitJson.baseId'),\r\n isAdministrative: json.isAdministrative,\r\n vehicleId: json.vehicleId,\r\n regionId: getFromOrThrow(json, (j) => j.regionId, 'UnitJson.regionId'),\r\n isHidden: json.isHidden,\r\n isThirdPartyUnit: json.isThirdPartyUnit,\r\n etloInMinutes: json.etloInMinutes,\r\n pilotNotes: json.pilotNotes,\r\n lastPilotUpdateTime:\r\n json.lastPilotUpdateTime != null ? new Date(json.lastPilotUpdateTime) : null,\r\n lastPilotUpdateById: json.lastPilotUpdateById,\r\n isExternallyManaged: getFromOrThrow(\r\n json,\r\n (j) => j.isExternallyManaged,\r\n 'UnitJson.isExternallyManaged',\r\n ),\r\n maximumFlightRule: getFromOrThrow(\r\n json,\r\n (j) => j.maximumFlightRule,\r\n 'UnitJson.maximumFlightRule',\r\n ),\r\n isOnDelay: getFromOrThrow(json, (j) => j.isOnDelay, 'UnitJson.isOnDelay'),\r\n plannedAvailableNotes: json.plannedAvailableNotes,\r\n plannedAvailableTime:\r\n json.plannedAvailableTime != null ? new Date(json.plannedAvailableTime) : null,\r\n isEnabled: getFromOrThrow(json, (j) => j.isEnabled, 'UnitJson.isEnabled'),\r\n isSpare: getFromOrThrow(json, (j) => j.isSpare, 'UnitJson.isSpare'),\r\n oemPlacardNumber: json.oemPlacardNumber,\r\n primaryOutOfServiceEventId: json.primaryOutOfServiceEventId,\r\n emSystemResourceId: json.emSystemResourceId,\r\n integrations: Set(\r\n getFromOrThrow(json, (j) => j.integrations, 'UnitJson.integrations'),\r\n ),\r\n onBaseETAInMinutes: json.onBaseETAInMinutes,\r\n completeFlightInstanceId: json.completeFlightInstanceId,\r\n parentUnitId: json.parentUnitId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'UnitJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n status: UnitStatus;\r\n weatherStatus: WeatherStatus;\r\n baseId: string;\r\n isAdministrative: boolean | null;\r\n vehicleId: string | null;\r\n regionId: string;\r\n isHidden: boolean | null;\r\n isThirdPartyUnit: boolean | null;\r\n etloInMinutes: number | null;\r\n pilotNotes: string | null;\r\n lastPilotUpdateTime: string | number | Date | null;\r\n lastPilotUpdateById: string | null;\r\n isExternallyManaged: boolean;\r\n maximumFlightRule: FlightRule;\r\n isOnDelay: boolean;\r\n plannedAvailableNotes: string | null;\r\n plannedAvailableTime: string | number | Date | null;\r\n isEnabled: boolean;\r\n isSpare: boolean;\r\n oemPlacardNumber: string | null;\r\n primaryOutOfServiceEventId: string | null;\r\n emSystemResourceId: string | null;\r\n integrations: any;\r\n onBaseETAInMinutes: number | null;\r\n completeFlightInstanceId: string | null;\r\n parentUnitId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [UnitRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('UnitRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new UnitRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'UnitJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'UnitJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'UnitJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'UnitJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n weatherStatus: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.weatherStatus, 'UnitJson.weatherStatus'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.baseId, 'UnitJson.baseId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isAdministrative: tryOrDefault(\r\n () => json.isAdministrative,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => json.vehicleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.regionId, 'UnitJson.regionId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isHidden: tryOrDefault(\r\n () => json.isHidden,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isThirdPartyUnit: tryOrDefault(\r\n () => json.isThirdPartyUnit,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n etloInMinutes: tryOrDefault(\r\n () => json.etloInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n pilotNotes: tryOrDefault(\r\n () => json.pilotNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastPilotUpdateTime: tryOrDefault(\r\n () => (json.lastPilotUpdateTime != null ? new Date(json.lastPilotUpdateTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastPilotUpdateById: tryOrDefault(\r\n () => json.lastPilotUpdateById,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isExternallyManaged: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isExternallyManaged, 'UnitJson.isExternallyManaged'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n maximumFlightRule: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.maximumFlightRule, 'UnitJson.maximumFlightRule'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isOnDelay: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isOnDelay, 'UnitJson.isOnDelay'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n plannedAvailableNotes: tryOrDefault(\r\n () => json.plannedAvailableNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n plannedAvailableTime: tryOrDefault(\r\n () => (json.plannedAvailableTime != null ? new Date(json.plannedAvailableTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isEnabled: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isEnabled, 'UnitJson.isEnabled'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isSpare: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isSpare, 'UnitJson.isSpare'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n oemPlacardNumber: tryOrDefault(\r\n () => json.oemPlacardNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n primaryOutOfServiceEventId: tryOrDefault(\r\n () => json.primaryOutOfServiceEventId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n emSystemResourceId: tryOrDefault(\r\n () => json.emSystemResourceId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n integrations: tryOrDefault(\r\n () =>\r\n Set(\r\n getFromOrThrow(json, (j) => j.integrations, 'UnitJson.integrations'),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n onBaseETAInMinutes: tryOrDefault(\r\n () => json.onBaseETAInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n completeFlightInstanceId: tryOrDefault(\r\n () => json.completeFlightInstanceId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n parentUnitId: tryOrDefault(\r\n () => json.parentUnitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'UnitJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: UnitProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('UnitRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class UnitViewModelBase implements UnitProps {\r\n protected readonly _props: UnitProps;\r\n private _json?: UnitProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get status(): UnitStatus {\r\n return this._props.status;\r\n }\r\n get weatherStatus(): WeatherStatus {\r\n return this._props.weatherStatus;\r\n }\r\n get baseId(): string {\r\n return this._props.baseId;\r\n }\r\n get isAdministrative(): boolean | null {\r\n return this._props.isAdministrative;\r\n }\r\n get vehicleId(): string | null {\r\n return this._props.vehicleId;\r\n }\r\n get regionId(): string {\r\n return this._props.regionId;\r\n }\r\n get isHidden(): boolean | null {\r\n return this._props.isHidden;\r\n }\r\n get isThirdPartyUnit(): boolean | null {\r\n return this._props.isThirdPartyUnit;\r\n }\r\n get etloInMinutes(): number | null {\r\n return this._props.etloInMinutes;\r\n }\r\n get pilotNotes(): string | null {\r\n return this._props.pilotNotes;\r\n }\r\n get lastPilotUpdateTime(): Date | null {\r\n return this._props.lastPilotUpdateTime;\r\n }\r\n get lastPilotUpdateById(): string | null {\r\n return this._props.lastPilotUpdateById;\r\n }\r\n get isExternallyManaged(): boolean {\r\n return this._props.isExternallyManaged;\r\n }\r\n get maximumFlightRule(): FlightRule {\r\n return this._props.maximumFlightRule;\r\n }\r\n get isOnDelay(): boolean {\r\n return this._props.isOnDelay;\r\n }\r\n get plannedAvailableNotes(): string | null {\r\n return this._props.plannedAvailableNotes;\r\n }\r\n get plannedAvailableTime(): Date | null {\r\n return this._props.plannedAvailableTime;\r\n }\r\n get isEnabled(): boolean {\r\n return this._props.isEnabled;\r\n }\r\n get isSpare(): boolean {\r\n return this._props.isSpare;\r\n }\r\n get oemPlacardNumber(): string | null {\r\n return this._props.oemPlacardNumber;\r\n }\r\n get primaryOutOfServiceEventId(): string | null {\r\n return this._props.primaryOutOfServiceEventId;\r\n }\r\n get emSystemResourceId(): string | null {\r\n return this._props.emSystemResourceId;\r\n }\r\n get integrations(): Set {\r\n return this._props.integrations;\r\n }\r\n get onBaseETAInMinutes(): number | null {\r\n return this._props.onBaseETAInMinutes;\r\n }\r\n get completeFlightInstanceId(): string | null {\r\n return this._props.completeFlightInstanceId;\r\n }\r\n get parentUnitId(): string | null {\r\n return this._props.parentUnitId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAvailable() {\r\n return this._props.status === UnitStatus.Available;\r\n }\r\n public get isCommitted() {\r\n return this._props.status === UnitStatus.Committed;\r\n }\r\n public get isOnStandby() {\r\n return this._props.status === UnitStatus.OnStandby;\r\n }\r\n public get isOutOfService() {\r\n return this._props.status === UnitStatus.OutOfService;\r\n }\r\n public get isPartiallyAvailable() {\r\n return this._props.status === UnitStatus.PartiallyAvailable;\r\n }\r\n public get isGreen() {\r\n return this._props.weatherStatus === WeatherStatus.Green;\r\n }\r\n public get isRed() {\r\n return this._props.weatherStatus === WeatherStatus.Red;\r\n }\r\n public get isUnspecified() {\r\n return this._props.weatherStatus === WeatherStatus.Unspecified;\r\n }\r\n public get isYellow() {\r\n return this._props.weatherStatus === WeatherStatus.Yellow;\r\n }\r\n public get isIfr() {\r\n return this._props.maximumFlightRule === FlightRule.Ifr;\r\n }\r\n public get isNone() {\r\n return this._props.maximumFlightRule === FlightRule.None;\r\n }\r\n public get isVfr() {\r\n return this._props.maximumFlightRule === FlightRule.Vfr;\r\n }\r\n\r\n public isAnyStatus(...unitStatus: UnitStatus[]) {\r\n return unitStatus.includes(this._props.status);\r\n }\r\n public isAnyWeatherStatus(...weatherStatus: WeatherStatus[]) {\r\n return weatherStatus.includes(this._props.weatherStatus);\r\n }\r\n public isAnyMaximumFlightRule(...flightRule: FlightRule[]) {\r\n return flightRule.includes(this._props.maximumFlightRule);\r\n }\r\n\r\n constructor(props: UnitProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n status: this._props.status,\r\n weatherStatus: this._props.weatherStatus,\r\n baseId: this._props.baseId,\r\n isAdministrative: this._props.isAdministrative,\r\n vehicleId: this._props.vehicleId,\r\n regionId: this._props.regionId,\r\n isHidden: this._props.isHidden,\r\n isThirdPartyUnit: this._props.isThirdPartyUnit,\r\n etloInMinutes: this._props.etloInMinutes,\r\n pilotNotes: this._props.pilotNotes,\r\n lastPilotUpdateTime: this._props.lastPilotUpdateTime,\r\n lastPilotUpdateById: this._props.lastPilotUpdateById,\r\n isExternallyManaged: this._props.isExternallyManaged,\r\n maximumFlightRule: this._props.maximumFlightRule,\r\n isOnDelay: this._props.isOnDelay,\r\n plannedAvailableNotes: this._props.plannedAvailableNotes,\r\n plannedAvailableTime: this._props.plannedAvailableTime,\r\n isEnabled: this._props.isEnabled,\r\n isSpare: this._props.isSpare,\r\n oemPlacardNumber: this._props.oemPlacardNumber,\r\n primaryOutOfServiceEventId: this._props.primaryOutOfServiceEventId,\r\n emSystemResourceId: this._props.emSystemResourceId,\r\n integrations: this._props.integrations,\r\n onBaseETAInMinutes: this._props.onBaseETAInMinutes,\r\n completeFlightInstanceId: this._props.completeFlightInstanceId,\r\n parentUnitId: this._props.parentUnitId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllUnitEntities = (state: AppState) => state.entityStores.unit.entities;\r\n\r\nexport const selectUnitById = (id: string) => (state: AppState) =>\r\n state.entityStores.unit.entities.get(id);\r\n\r\nexport const selectUnitMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.unit.meta.get(id);\r\n\r\nexport const selectUnitAndMetadataById = (id: string) =>\r\n createSelector(selectUnitById(id), selectUnitMetadataById(id), (unit, meta) => ({ unit, meta }));\r\n\r\nexport function selectUnitEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllUnitEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, UnitRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByName(name: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByStatus(status: UnitStatus) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByWeatherStatus(weatherStatus: WeatherStatus) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.weatherStatus === weatherStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByBaseId(baseId: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.baseId === baseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByIsAdministrative(isAdministrative: boolean) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.isAdministrative === isAdministrative).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByIsHidden(isHidden: boolean) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.isHidden === isHidden).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByIsThirdPartyUnit(isThirdPartyUnit: boolean) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.isThirdPartyUnit === isThirdPartyUnit).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByEtloInMinutes(etloInMinutes: number) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.etloInMinutes === etloInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByPilotNotes(pilotNotes: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.pilotNotes === pilotNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByLastPilotUpdateTime(lastPilotUpdateTime: Date) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.lastPilotUpdateTime === lastPilotUpdateTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByLastPilotUpdateById(lastPilotUpdateById: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.lastPilotUpdateById === lastPilotUpdateById).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByIsExternallyManaged(isExternallyManaged: boolean) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.isExternallyManaged === isExternallyManaged).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByMaximumFlightRule(maximumFlightRule: FlightRule) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.maximumFlightRule === maximumFlightRule).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByIsOnDelay(isOnDelay: boolean) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.isOnDelay === isOnDelay).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByPlannedAvailableNotes(plannedAvailableNotes: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.plannedAvailableNotes === plannedAvailableNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByPlannedAvailableTime(plannedAvailableTime: Date) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.plannedAvailableTime === plannedAvailableTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByIsEnabled(isEnabled: boolean) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.isEnabled === isEnabled).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByIsSpare(isSpare: boolean) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.isSpare === isSpare).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByOemPlacardNumber(oemPlacardNumber: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.oemPlacardNumber === oemPlacardNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByPrimaryOutOfServiceEventId(primaryOutOfServiceEventId: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.primaryOutOfServiceEventId === primaryOutOfServiceEventId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByEmSystemResourceId(emSystemResourceId: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.emSystemResourceId === emSystemResourceId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByOnBaseETAInMinutes(onBaseETAInMinutes: number) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.onBaseETAInMinutes === onBaseETAInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByCompleteFlightInstanceId(completeFlightInstanceId: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.completeFlightInstanceId === completeFlightInstanceId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByParentUnitId(parentUnitId: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.parentUnitId === parentUnitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllUnitEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface UnitNoteProps {\r\n id: string;\r\n content: string;\r\n noteTime: Date;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class UnitNoteRecord extends Record({\r\n id: null as any,\r\n content: null as any,\r\n noteTime: null as any,\r\n authorId: null as any,\r\n noteCategory: null as any,\r\n noteMetadataJson: null as any,\r\n unitId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n content: string;\r\n noteTime: string | number | Date;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): UnitNoteRecord {\r\n if (json == null) {\r\n throw new Error('UnitNoteRecord.fromJS: parameter cannot be null');\r\n }\r\n return new UnitNoteRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'UnitNoteJson.id'),\r\n content: getFromOrThrow(json, (j) => j.content, 'UnitNoteJson.content'),\r\n noteTime: new Date(getFromOrThrow(json, (j) => j.noteTime, 'UnitNoteJson.noteTime')),\r\n authorId: json.authorId,\r\n noteCategory: json.noteCategory,\r\n noteMetadataJson: json.noteMetadataJson,\r\n unitId: getFromOrThrow(json, (j) => j.unitId, 'UnitNoteJson.unitId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'UnitNoteJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n content: string;\r\n noteTime: string | number | Date;\r\n authorId: string | null;\r\n noteCategory: string | null;\r\n noteMetadataJson: string | null;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [UnitNoteRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('UnitNoteRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new UnitNoteRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'UnitNoteJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n content: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.content, 'UnitNoteJson.content'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n noteTime: tryOrDefault(\r\n () => new Date(getFromOrThrow(json, (j) => j.noteTime, 'UnitNoteJson.noteTime')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n authorId: tryOrDefault(\r\n () => json.authorId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n noteCategory: tryOrDefault(\r\n () => json.noteCategory,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n noteMetadataJson: tryOrDefault(\r\n () => json.noteMetadataJson,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitId, 'UnitNoteJson.unitId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'UnitNoteJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: UnitNoteProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('UnitNoteRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class UnitNoteViewModelBase implements UnitNoteProps {\r\n protected readonly _props: UnitNoteProps;\r\n private _json?: UnitNoteProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get content(): string {\r\n return this._props.content;\r\n }\r\n get noteTime(): Date {\r\n return this._props.noteTime;\r\n }\r\n get authorId(): string | null {\r\n return this._props.authorId;\r\n }\r\n get noteCategory(): string | null {\r\n return this._props.noteCategory;\r\n }\r\n get noteMetadataJson(): string | null {\r\n return this._props.noteMetadataJson;\r\n }\r\n get unitId(): string {\r\n return this._props.unitId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: UnitNoteProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n content: this._props.content,\r\n noteTime: this._props.noteTime,\r\n authorId: this._props.authorId,\r\n noteCategory: this._props.noteCategory,\r\n noteMetadataJson: this._props.noteMetadataJson,\r\n unitId: this._props.unitId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllUnitNoteEntities = (state: AppState) => state.entityStores.unitNote.entities;\r\n\r\nexport const selectUnitNoteById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitNote.entities.get(id);\r\n\r\nexport const selectUnitNoteMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitNote.meta.get(id);\r\n\r\nexport const selectUnitNoteAndMetadataById = (id: string) =>\r\n createSelector(selectUnitNoteById(id), selectUnitNoteMetadataById(id), (unitNote, meta) => ({\r\n unitNote,\r\n meta,\r\n }));\r\n\r\nexport function selectUnitNoteEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllUnitNoteEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, UnitNoteRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitNoteEntitiesByContent(content: string) {\r\n return createSelector(selectAllUnitNoteEntities, (entities) =>\r\n entities.filter((e) => e.content === content).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitNoteEntitiesByNoteTime(noteTime: Date) {\r\n return createSelector(selectAllUnitNoteEntities, (entities) =>\r\n entities.filter((e) => e.noteTime === noteTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitNoteEntitiesByAuthorId(authorId: string) {\r\n return createSelector(selectAllUnitNoteEntities, (entities) =>\r\n entities.filter((e) => e.authorId === authorId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitNoteEntitiesByNoteCategory(noteCategory: string) {\r\n return createSelector(selectAllUnitNoteEntities, (entities) =>\r\n entities.filter((e) => e.noteCategory === noteCategory).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitNoteEntitiesByNoteMetadataJson(noteMetadataJson: string) {\r\n return createSelector(selectAllUnitNoteEntities, (entities) =>\r\n entities.filter((e) => e.noteMetadataJson === noteMetadataJson).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitNoteEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllUnitNoteEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitNoteEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllUnitNoteEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { UnitPositionType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface UnitPositionProps {\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class UnitPositionRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n type: null as any,\r\n isFlightCrew: null as any,\r\n isNonEmployee: null as any,\r\n notificationAddress: null as any,\r\n teamMemberId: null as any,\r\n firstName: null as any,\r\n lastName: null as any,\r\n unitId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): UnitPositionRecord {\r\n if (json == null) {\r\n throw new Error('UnitPositionRecord.fromJS: parameter cannot be null');\r\n }\r\n return new UnitPositionRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'UnitPositionJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'UnitPositionJson.name'),\r\n type: getFromOrThrow(json, (j) => j.type, 'UnitPositionJson.type'),\r\n isFlightCrew: getFromOrThrow(json, (j) => j.isFlightCrew, 'UnitPositionJson.isFlightCrew'),\r\n isNonEmployee: getFromOrThrow(json, (j) => j.isNonEmployee, 'UnitPositionJson.isNonEmployee'),\r\n notificationAddress: json.notificationAddress,\r\n teamMemberId: json.teamMemberId,\r\n firstName: json.firstName,\r\n lastName: json.lastName,\r\n unitId: getFromOrThrow(json, (j) => j.unitId, 'UnitPositionJson.unitId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'UnitPositionJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n type: UnitPositionType;\r\n isFlightCrew: boolean;\r\n isNonEmployee: boolean;\r\n notificationAddress: string | null;\r\n teamMemberId: string | null;\r\n firstName: string | null;\r\n lastName: string | null;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [UnitPositionRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('UnitPositionRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new UnitPositionRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'UnitPositionJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'UnitPositionJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'UnitPositionJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isFlightCrew: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isFlightCrew, 'UnitPositionJson.isFlightCrew'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isNonEmployee: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isNonEmployee, 'UnitPositionJson.isNonEmployee'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notificationAddress: tryOrDefault(\r\n () => json.notificationAddress,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n teamMemberId: tryOrDefault(\r\n () => json.teamMemberId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n firstName: tryOrDefault(\r\n () => json.firstName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastName: tryOrDefault(\r\n () => json.lastName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitId, 'UnitPositionJson.unitId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'UnitPositionJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: UnitPositionProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('UnitPositionRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class UnitPositionViewModelBase implements UnitPositionProps {\r\n protected readonly _props: UnitPositionProps;\r\n private _json?: UnitPositionProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get type(): UnitPositionType {\r\n return this._props.type;\r\n }\r\n get isFlightCrew(): boolean {\r\n return this._props.isFlightCrew;\r\n }\r\n get isNonEmployee(): boolean {\r\n return this._props.isNonEmployee;\r\n }\r\n get notificationAddress(): string | null {\r\n return this._props.notificationAddress;\r\n }\r\n get teamMemberId(): string | null {\r\n return this._props.teamMemberId;\r\n }\r\n get firstName(): string | null {\r\n return this._props.firstName;\r\n }\r\n get lastName(): string | null {\r\n return this._props.lastName;\r\n }\r\n get unitId(): string {\r\n return this._props.unitId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isClinician() {\r\n return this._props.type === UnitPositionType.Clinician;\r\n }\r\n public get isClinicianTrainee() {\r\n return this._props.type === UnitPositionType.ClinicianTrainee;\r\n }\r\n public get isCoPilot() {\r\n return this._props.type === UnitPositionType.CoPilot;\r\n }\r\n public get isDriver() {\r\n return this._props.type === UnitPositionType.Driver;\r\n }\r\n public get isMechanic() {\r\n return this._props.type === UnitPositionType.Mechanic;\r\n }\r\n public get isNurse() {\r\n return this._props.type === UnitPositionType.Nurse;\r\n }\r\n public get isObserver() {\r\n return this._props.type === UnitPositionType.Observer;\r\n }\r\n public get isOther() {\r\n return this._props.type === UnitPositionType.Other;\r\n }\r\n public get isParamedic() {\r\n return this._props.type === UnitPositionType.Paramedic;\r\n }\r\n public get isPilot() {\r\n return this._props.type === UnitPositionType.Pilot;\r\n }\r\n public get isPilotTrainee() {\r\n return this._props.type === UnitPositionType.PilotTrainee;\r\n }\r\n\r\n public isAnyType(...unitPositionType: UnitPositionType[]) {\r\n return unitPositionType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: UnitPositionProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n type: this._props.type,\r\n isFlightCrew: this._props.isFlightCrew,\r\n isNonEmployee: this._props.isNonEmployee,\r\n notificationAddress: this._props.notificationAddress,\r\n teamMemberId: this._props.teamMemberId,\r\n firstName: this._props.firstName,\r\n lastName: this._props.lastName,\r\n unitId: this._props.unitId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllUnitPositionEntities = (state: AppState) =>\r\n state.entityStores.unitPosition.entities;\r\n\r\nexport const selectUnitPositionById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitPosition.entities.get(id);\r\n\r\nexport const selectUnitPositionMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitPosition.meta.get(id);\r\n\r\nexport const selectUnitPositionAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectUnitPositionById(id),\r\n selectUnitPositionMetadataById(id),\r\n (unitPosition, meta) => ({ unitPosition, meta }),\r\n );\r\n\r\nexport function selectUnitPositionEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllUnitPositionEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, UnitPositionRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitPositionEntitiesByName(name: string) {\r\n return createSelector(selectAllUnitPositionEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitPositionEntitiesByType(type: UnitPositionType) {\r\n return createSelector(selectAllUnitPositionEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitPositionEntitiesByIsFlightCrew(isFlightCrew: boolean) {\r\n return createSelector(selectAllUnitPositionEntities, (entities) =>\r\n entities.filter((e) => e.isFlightCrew === isFlightCrew).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitPositionEntitiesByIsNonEmployee(isNonEmployee: boolean) {\r\n return createSelector(selectAllUnitPositionEntities, (entities) =>\r\n entities.filter((e) => e.isNonEmployee === isNonEmployee).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitPositionEntitiesByNotificationAddress(notificationAddress: string) {\r\n return createSelector(selectAllUnitPositionEntities, (entities) =>\r\n entities.filter((e) => e.notificationAddress === notificationAddress).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitPositionEntitiesByTeamMemberId(teamMemberId: string) {\r\n return createSelector(selectAllUnitPositionEntities, (entities) =>\r\n entities.filter((e) => e.teamMemberId === teamMemberId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitPositionEntitiesByFirstName(firstName: string) {\r\n return createSelector(selectAllUnitPositionEntities, (entities) =>\r\n entities.filter((e) => e.firstName === firstName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitPositionEntitiesByLastName(lastName: string) {\r\n return createSelector(selectAllUnitPositionEntities, (entities) =>\r\n entities.filter((e) => e.lastName === lastName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitPositionEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllUnitPositionEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitPositionEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllUnitPositionEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface UnitShiftProps {\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class UnitShiftRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n startTimeInMinutes: null as any,\r\n endTimeInMinutes: null as any,\r\n unitId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): UnitShiftRecord {\r\n if (json == null) {\r\n throw new Error('UnitShiftRecord.fromJS: parameter cannot be null');\r\n }\r\n return new UnitShiftRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'UnitShiftJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'UnitShiftJson.name'),\r\n startTimeInMinutes: getFromOrThrow(\r\n json,\r\n (j) => j.startTimeInMinutes,\r\n 'UnitShiftJson.startTimeInMinutes',\r\n ),\r\n endTimeInMinutes: getFromOrThrow(\r\n json,\r\n (j) => j.endTimeInMinutes,\r\n 'UnitShiftJson.endTimeInMinutes',\r\n ),\r\n unitId: getFromOrThrow(json, (j) => j.unitId, 'UnitShiftJson.unitId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'UnitShiftJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n startTimeInMinutes: number;\r\n endTimeInMinutes: number;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [UnitShiftRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('UnitShiftRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new UnitShiftRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'UnitShiftJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'UnitShiftJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n startTimeInMinutes: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.startTimeInMinutes, 'UnitShiftJson.startTimeInMinutes'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n endTimeInMinutes: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.endTimeInMinutes, 'UnitShiftJson.endTimeInMinutes'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitId, 'UnitShiftJson.unitId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'UnitShiftJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: UnitShiftProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('UnitShiftRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class UnitShiftViewModelBase implements UnitShiftProps {\r\n protected readonly _props: UnitShiftProps;\r\n private _json?: UnitShiftProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get startTimeInMinutes(): number {\r\n return this._props.startTimeInMinutes;\r\n }\r\n get endTimeInMinutes(): number {\r\n return this._props.endTimeInMinutes;\r\n }\r\n get unitId(): string {\r\n return this._props.unitId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: UnitShiftProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n startTimeInMinutes: this._props.startTimeInMinutes,\r\n endTimeInMinutes: this._props.endTimeInMinutes,\r\n unitId: this._props.unitId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllUnitShiftEntities = (state: AppState) =>\r\n state.entityStores.unitShift.entities;\r\n\r\nexport const selectUnitShiftById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitShift.entities.get(id);\r\n\r\nexport const selectUnitShiftMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitShift.meta.get(id);\r\n\r\nexport const selectUnitShiftAndMetadataById = (id: string) =>\r\n createSelector(selectUnitShiftById(id), selectUnitShiftMetadataById(id), (unitShift, meta) => ({\r\n unitShift,\r\n meta,\r\n }));\r\n\r\nexport function selectUnitShiftEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllUnitShiftEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, UnitShiftRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitShiftEntitiesByName(name: string) {\r\n return createSelector(selectAllUnitShiftEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitShiftEntitiesByStartTimeInMinutes(startTimeInMinutes: number) {\r\n return createSelector(selectAllUnitShiftEntities, (entities) =>\r\n entities.filter((e) => e.startTimeInMinutes === startTimeInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitShiftEntitiesByEndTimeInMinutes(endTimeInMinutes: number) {\r\n return createSelector(selectAllUnitShiftEntities, (entities) =>\r\n entities.filter((e) => e.endTimeInMinutes === endTimeInMinutes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitShiftEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllUnitShiftEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitShiftEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllUnitShiftEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { UnitStatus } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface UnitStatusHistoryEntryProps {\r\n id: string;\r\n startTime: Date;\r\n endTime: Date;\r\n status: UnitStatus;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class UnitStatusHistoryEntryRecord extends Record({\r\n id: null as any,\r\n startTime: null as any,\r\n endTime: null as any,\r\n status: null as any,\r\n unitId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n startTime: string | number | Date;\r\n endTime: string | number | Date;\r\n status: UnitStatus;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): UnitStatusHistoryEntryRecord {\r\n if (json == null) {\r\n throw new Error('UnitStatusHistoryEntryRecord.fromJS: parameter cannot be null');\r\n }\r\n return new UnitStatusHistoryEntryRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'UnitStatusHistoryEntryJson.id'),\r\n startTime: new Date(\r\n getFromOrThrow(json, (j) => j.startTime, 'UnitStatusHistoryEntryJson.startTime'),\r\n ),\r\n endTime: new Date(\r\n getFromOrThrow(json, (j) => j.endTime, 'UnitStatusHistoryEntryJson.endTime'),\r\n ),\r\n status: getFromOrThrow(json, (j) => j.status, 'UnitStatusHistoryEntryJson.status'),\r\n unitId: getFromOrThrow(json, (j) => j.unitId, 'UnitStatusHistoryEntryJson.unitId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'UnitStatusHistoryEntryJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n startTime: string | number | Date;\r\n endTime: string | number | Date;\r\n status: UnitStatus;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [UnitStatusHistoryEntryRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('UnitStatusHistoryEntryRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new UnitStatusHistoryEntryRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'UnitStatusHistoryEntryJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n startTime: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(json, (j) => j.startTime, 'UnitStatusHistoryEntryJson.startTime'),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n endTime: tryOrDefault(\r\n () =>\r\n new Date(getFromOrThrow(json, (j) => j.endTime, 'UnitStatusHistoryEntryJson.endTime')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'UnitStatusHistoryEntryJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitId, 'UnitStatusHistoryEntryJson.unitId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'UnitStatusHistoryEntryJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: UnitStatusHistoryEntryProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('UnitStatusHistoryEntryRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class UnitStatusHistoryEntryViewModelBase implements UnitStatusHistoryEntryProps {\r\n protected readonly _props: UnitStatusHistoryEntryProps;\r\n private _json?: UnitStatusHistoryEntryProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get startTime(): Date {\r\n return this._props.startTime;\r\n }\r\n get endTime(): Date {\r\n return this._props.endTime;\r\n }\r\n get status(): UnitStatus {\r\n return this._props.status;\r\n }\r\n get unitId(): string {\r\n return this._props.unitId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAvailable() {\r\n return this._props.status === UnitStatus.Available;\r\n }\r\n public get isCommitted() {\r\n return this._props.status === UnitStatus.Committed;\r\n }\r\n public get isOnStandby() {\r\n return this._props.status === UnitStatus.OnStandby;\r\n }\r\n public get isOutOfService() {\r\n return this._props.status === UnitStatus.OutOfService;\r\n }\r\n public get isPartiallyAvailable() {\r\n return this._props.status === UnitStatus.PartiallyAvailable;\r\n }\r\n\r\n public isAnyStatus(...unitStatus: UnitStatus[]) {\r\n return unitStatus.includes(this._props.status);\r\n }\r\n\r\n constructor(props: UnitStatusHistoryEntryProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n startTime: this._props.startTime,\r\n endTime: this._props.endTime,\r\n status: this._props.status,\r\n unitId: this._props.unitId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllUnitStatusHistoryEntryEntities = (state: AppState) =>\r\n state.entityStores.unitStatusHistoryEntry.entities;\r\n\r\nexport const selectUnitStatusHistoryEntryById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitStatusHistoryEntry.entities.get(id);\r\n\r\nexport const selectUnitStatusHistoryEntryMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.unitStatusHistoryEntry.meta.get(id);\r\n\r\nexport const selectUnitStatusHistoryEntryAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectUnitStatusHistoryEntryById(id),\r\n selectUnitStatusHistoryEntryMetadataById(id),\r\n (unitStatusHistoryEntry, meta) => ({ unitStatusHistoryEntry, meta }),\r\n );\r\n\r\nexport function selectUnitStatusHistoryEntryEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllUnitStatusHistoryEntryEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, UnitStatusHistoryEntryRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitStatusHistoryEntryEntitiesByStartTime(startTime: Date) {\r\n return createSelector(selectAllUnitStatusHistoryEntryEntities, (entities) =>\r\n entities.filter((e) => e.startTime === startTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitStatusHistoryEntryEntitiesByEndTime(endTime: Date) {\r\n return createSelector(selectAllUnitStatusHistoryEntryEntities, (entities) =>\r\n entities.filter((e) => e.endTime === endTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitStatusHistoryEntryEntitiesByStatus(status: UnitStatus) {\r\n return createSelector(selectAllUnitStatusHistoryEntryEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitStatusHistoryEntryEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllUnitStatusHistoryEntryEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectUnitStatusHistoryEntryEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllUnitStatusHistoryEntryEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { PositionReportSource, VehicleStatus } from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n WaypointSummaryRecord,\r\n WaypointSummaryProps,\r\n} from 'src/store/generated/waypoint-summary-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface VehicleDispositionProps {\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: Date | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: Date | null;\r\n statusDescription: string | null;\r\n from: WaypointSummaryProps | null;\r\n to: WaypointSummaryProps | null;\r\n positionTime: Date | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class VehicleDispositionRecord extends Record({\r\n id: null as any,\r\n vehicleId: null as any,\r\n status: null as any,\r\n currentWaypointId: null as any,\r\n currentTripLegId: null as any,\r\n currentTripId: null as any,\r\n lastTripId: null as any,\r\n currentAgencyLocationId: null as any,\r\n notes: null as any,\r\n isAssetOutOfService: null as any,\r\n lastQualifyingPositionReportTime: null as any,\r\n latitude: null as any,\r\n longitude: null as any,\r\n etlo: null as any,\r\n statusDescription: null as any,\r\n from: null as any,\r\n to: null as any,\r\n positionTime: null as any,\r\n positionSource: null as any,\r\n latestPositionReportId: null as any,\r\n latestFlightFollowingReportId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: string | number | Date | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: string | number | Date | null;\r\n statusDescription: string | null;\r\n from: any;\r\n to: any;\r\n positionTime: string | number | Date | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): VehicleDispositionRecord {\r\n if (json == null) {\r\n throw new Error('VehicleDispositionRecord.fromJS: parameter cannot be null');\r\n }\r\n return new VehicleDispositionRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'VehicleDispositionJson.id'),\r\n vehicleId: getFromOrThrow(json, (j) => j.vehicleId, 'VehicleDispositionJson.vehicleId'),\r\n status: getFromOrThrow(json, (j) => j.status, 'VehicleDispositionJson.status'),\r\n currentWaypointId: json.currentWaypointId,\r\n currentTripLegId: json.currentTripLegId,\r\n currentTripId: json.currentTripId,\r\n lastTripId: json.lastTripId,\r\n currentAgencyLocationId: json.currentAgencyLocationId,\r\n notes: json.notes,\r\n isAssetOutOfService: json.isAssetOutOfService,\r\n lastQualifyingPositionReportTime:\r\n json.lastQualifyingPositionReportTime != null\r\n ? new Date(json.lastQualifyingPositionReportTime)\r\n : null,\r\n latitude: json.latitude,\r\n longitude: json.longitude,\r\n etlo: json.etlo != null ? new Date(json.etlo) : null,\r\n statusDescription: json.statusDescription,\r\n from: json.from != null ? new WaypointSummaryRecord(json.from) : null,\r\n to: json.to != null ? new WaypointSummaryRecord(json.to) : null,\r\n positionTime: json.positionTime != null ? new Date(json.positionTime) : null,\r\n positionSource: json.positionSource,\r\n latestPositionReportId: json.latestPositionReportId,\r\n latestFlightFollowingReportId: json.latestFlightFollowingReportId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'VehicleDispositionJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n vehicleId: string;\r\n status: VehicleStatus;\r\n currentWaypointId: string | null;\r\n currentTripLegId: string | null;\r\n currentTripId: string | null;\r\n lastTripId: string | null;\r\n currentAgencyLocationId: string | null;\r\n notes: string | null;\r\n isAssetOutOfService: boolean | null;\r\n lastQualifyingPositionReportTime: string | number | Date | null;\r\n latitude: number | null;\r\n longitude: number | null;\r\n etlo: string | number | Date | null;\r\n statusDescription: string | null;\r\n from: any;\r\n to: any;\r\n positionTime: string | number | Date | null;\r\n positionSource: PositionReportSource | null;\r\n latestPositionReportId: string | null;\r\n latestFlightFollowingReportId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [VehicleDispositionRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('VehicleDispositionRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new VehicleDispositionRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'VehicleDispositionJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.vehicleId, 'VehicleDispositionJson.vehicleId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.status, 'VehicleDispositionJson.status'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentWaypointId: tryOrDefault(\r\n () => json.currentWaypointId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentTripLegId: tryOrDefault(\r\n () => json.currentTripLegId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentTripId: tryOrDefault(\r\n () => json.currentTripId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastTripId: tryOrDefault(\r\n () => json.lastTripId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentAgencyLocationId: tryOrDefault(\r\n () => json.currentAgencyLocationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isAssetOutOfService: tryOrDefault(\r\n () => json.isAssetOutOfService,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastQualifyingPositionReportTime: tryOrDefault(\r\n () =>\r\n json.lastQualifyingPositionReportTime != null\r\n ? new Date(json.lastQualifyingPositionReportTime)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latitude: tryOrDefault(\r\n () => json.latitude,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n longitude: tryOrDefault(\r\n () => json.longitude,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n etlo: tryOrDefault(\r\n () => (json.etlo != null ? new Date(json.etlo) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n statusDescription: tryOrDefault(\r\n () => json.statusDescription,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n from: tryOrDefault(\r\n () => (json.from != null ? new WaypointSummaryRecord(json.from) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n to: tryOrDefault(\r\n () => (json.to != null ? new WaypointSummaryRecord(json.to) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n positionTime: tryOrDefault(\r\n () => (json.positionTime != null ? new Date(json.positionTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n positionSource: tryOrDefault(\r\n () => json.positionSource,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latestPositionReportId: tryOrDefault(\r\n () => json.latestPositionReportId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n latestFlightFollowingReportId: tryOrDefault(\r\n () => json.latestFlightFollowingReportId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'VehicleDispositionJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: VehicleDispositionProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('VehicleDispositionRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class VehicleDispositionViewModelBase implements VehicleDispositionProps {\r\n protected readonly _props: VehicleDispositionProps;\r\n private _json?: VehicleDispositionProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get vehicleId(): string {\r\n return this._props.vehicleId;\r\n }\r\n get status(): VehicleStatus {\r\n return this._props.status;\r\n }\r\n get currentWaypointId(): string | null {\r\n return this._props.currentWaypointId;\r\n }\r\n get currentTripLegId(): string | null {\r\n return this._props.currentTripLegId;\r\n }\r\n get currentTripId(): string | null {\r\n return this._props.currentTripId;\r\n }\r\n get lastTripId(): string | null {\r\n return this._props.lastTripId;\r\n }\r\n get currentAgencyLocationId(): string | null {\r\n return this._props.currentAgencyLocationId;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get isAssetOutOfService(): boolean | null {\r\n return this._props.isAssetOutOfService;\r\n }\r\n get lastQualifyingPositionReportTime(): Date | null {\r\n return this._props.lastQualifyingPositionReportTime;\r\n }\r\n get latitude(): number | null {\r\n return this._props.latitude;\r\n }\r\n get longitude(): number | null {\r\n return this._props.longitude;\r\n }\r\n get etlo(): Date | null {\r\n return this._props.etlo;\r\n }\r\n get statusDescription(): string | null {\r\n return this._props.statusDescription;\r\n }\r\n get from(): WaypointSummaryProps | null {\r\n return this._props.from;\r\n }\r\n get to(): WaypointSummaryProps | null {\r\n return this._props.to;\r\n }\r\n get positionTime(): Date | null {\r\n return this._props.positionTime;\r\n }\r\n get positionSource(): PositionReportSource | null {\r\n return this._props.positionSource;\r\n }\r\n get latestPositionReportId(): string | null {\r\n return this._props.latestPositionReportId;\r\n }\r\n get latestFlightFollowingReportId(): string | null {\r\n return this._props.latestFlightFollowingReportId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAtWaypoint() {\r\n return this._props.status === VehicleStatus.AtWaypoint;\r\n }\r\n public get isEnRoute() {\r\n return this._props.status === VehicleStatus.EnRoute;\r\n }\r\n public get isGpsAuto() {\r\n return this._props.positionSource === PositionReportSource.GpsAuto;\r\n }\r\n public get isGpsManual() {\r\n return this._props.positionSource === PositionReportSource.GpsManual;\r\n }\r\n public get isPilot() {\r\n return this._props.positionSource === PositionReportSource.Pilot;\r\n }\r\n public get isTCS() {\r\n return this._props.positionSource === PositionReportSource.TCS;\r\n }\r\n\r\n public isAnyStatus(...vehicleStatus: VehicleStatus[]) {\r\n return vehicleStatus.includes(this._props.status);\r\n }\r\n public isAnyPositionSource(...positionReportSource: PositionReportSource[]) {\r\n return (\r\n this._props.positionSource != null &&\r\n positionReportSource.includes(this._props.positionSource)\r\n );\r\n }\r\n\r\n constructor(props: VehicleDispositionProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n vehicleId: this._props.vehicleId,\r\n status: this._props.status,\r\n currentWaypointId: this._props.currentWaypointId,\r\n currentTripLegId: this._props.currentTripLegId,\r\n currentTripId: this._props.currentTripId,\r\n lastTripId: this._props.lastTripId,\r\n currentAgencyLocationId: this._props.currentAgencyLocationId,\r\n notes: this._props.notes,\r\n isAssetOutOfService: this._props.isAssetOutOfService,\r\n lastQualifyingPositionReportTime: this._props.lastQualifyingPositionReportTime,\r\n latitude: this._props.latitude,\r\n longitude: this._props.longitude,\r\n etlo: this._props.etlo,\r\n statusDescription: this._props.statusDescription,\r\n from: this._props.from,\r\n to: this._props.to,\r\n positionTime: this._props.positionTime,\r\n positionSource: this._props.positionSource,\r\n latestPositionReportId: this._props.latestPositionReportId,\r\n latestFlightFollowingReportId: this._props.latestFlightFollowingReportId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllVehicleDispositionEntities = (state: AppState) =>\r\n state.entityStores.vehicleDisposition.entities;\r\n\r\nexport const selectVehicleDispositionById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleDisposition.entities.get(id);\r\n\r\nexport const selectVehicleDispositionMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleDisposition.meta.get(id);\r\n\r\nexport const selectVehicleDispositionAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectVehicleDispositionById(id),\r\n selectVehicleDispositionMetadataById(id),\r\n (vehicleDisposition, meta) => ({ vehicleDisposition, meta }),\r\n );\r\n\r\nexport function selectVehicleDispositionEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllVehicleDispositionEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, VehicleDispositionRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByStatus(status: VehicleStatus) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByCurrentWaypointId(currentWaypointId: string) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.currentWaypointId === currentWaypointId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByCurrentTripLegId(currentTripLegId: string) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.currentTripLegId === currentTripLegId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByCurrentTripId(currentTripId: string) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.currentTripId === currentTripId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByLastTripId(lastTripId: string) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.lastTripId === lastTripId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByCurrentAgencyLocationId(\r\n currentAgencyLocationId: string,\r\n) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.currentAgencyLocationId === currentAgencyLocationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByIsAssetOutOfService(\r\n isAssetOutOfService: boolean,\r\n) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.isAssetOutOfService === isAssetOutOfService).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByLastQualifyingPositionReportTime(\r\n lastQualifyingPositionReportTime: Date,\r\n) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities\r\n .filter((e) => e.lastQualifyingPositionReportTime === lastQualifyingPositionReportTime)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByLatitude(latitude: number) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.latitude === latitude).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByLongitude(longitude: number) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.longitude === longitude).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByEtlo(etlo: Date) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.etlo === etlo).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByStatusDescription(statusDescription: string) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.statusDescription === statusDescription).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByPositionTime(positionTime: Date) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.positionTime === positionTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByPositionSource(\r\n positionSource: PositionReportSource,\r\n) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.positionSource === positionSource).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByLatestPositionReportId(\r\n latestPositionReportId: string,\r\n) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.latestPositionReportId === latestPositionReportId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByLatestFlightFollowingReportId(\r\n latestFlightFollowingReportId: string,\r\n) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities\r\n .filter((e) => e.latestFlightFollowingReportId === latestFlightFollowingReportId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleDispositionEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllVehicleDispositionEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { WaypointType } from 'src/graphql/generated/graphql.generated';\r\nimport { AddressRecord, AddressProps } from 'src/store/generated/address-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface WaypointProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: AddressProps;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n arrivalTime: Date | null;\r\n departureTime: Date | null;\r\n locationId: string | null;\r\n isPatientPickup: boolean | null;\r\n isPatientDropoff: boolean | null;\r\n arrivingType: WaypointType | null;\r\n estimatedDurationId: string | null;\r\n currentEtaId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class WaypointRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n type: null as any,\r\n address: null as any,\r\n timezoneCd: null as any,\r\n isRotorWingLz: null as any,\r\n arrivalTime: null as any,\r\n departureTime: null as any,\r\n locationId: null as any,\r\n isPatientPickup: null as any,\r\n isPatientDropoff: null as any,\r\n arrivingType: null as any,\r\n estimatedDurationId: null as any,\r\n currentEtaId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: any;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n arrivalTime: string | number | Date | null;\r\n departureTime: string | number | Date | null;\r\n locationId: string | null;\r\n isPatientPickup: boolean | null;\r\n isPatientDropoff: boolean | null;\r\n arrivingType: WaypointType | null;\r\n estimatedDurationId: string | null;\r\n currentEtaId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): WaypointRecord {\r\n if (json == null) {\r\n throw new Error('WaypointRecord.fromJS: parameter cannot be null');\r\n }\r\n return new WaypointRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'WaypointJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'WaypointJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'WaypointJson.abbreviation'),\r\n type: getFromOrThrow(json, (j) => j.type, 'WaypointJson.type'),\r\n address: new AddressRecord(getFromOrThrow(json, (j) => j.address, 'WaypointJson.address')),\r\n timezoneCd: json.timezoneCd,\r\n isRotorWingLz: json.isRotorWingLz,\r\n arrivalTime: json.arrivalTime != null ? new Date(json.arrivalTime) : null,\r\n departureTime: json.departureTime != null ? new Date(json.departureTime) : null,\r\n locationId: json.locationId,\r\n isPatientPickup: json.isPatientPickup,\r\n isPatientDropoff: json.isPatientDropoff,\r\n arrivingType: json.arrivingType,\r\n estimatedDurationId: json.estimatedDurationId,\r\n currentEtaId: json.currentEtaId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'WaypointJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: WaypointType;\r\n address: any;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n arrivalTime: string | number | Date | null;\r\n departureTime: string | number | Date | null;\r\n locationId: string | null;\r\n isPatientPickup: boolean | null;\r\n isPatientDropoff: boolean | null;\r\n arrivingType: WaypointType | null;\r\n estimatedDurationId: string | null;\r\n currentEtaId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [WaypointRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('WaypointRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new WaypointRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'WaypointJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'WaypointJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'WaypointJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'WaypointJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n address: tryOrDefault(\r\n () => new AddressRecord(getFromOrThrow(json, (j) => j.address, 'WaypointJson.address')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timezoneCd: tryOrDefault(\r\n () => json.timezoneCd,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isRotorWingLz: tryOrDefault(\r\n () => json.isRotorWingLz,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n arrivalTime: tryOrDefault(\r\n () => (json.arrivalTime != null ? new Date(json.arrivalTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n departureTime: tryOrDefault(\r\n () => (json.departureTime != null ? new Date(json.departureTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationId: tryOrDefault(\r\n () => json.locationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isPatientPickup: tryOrDefault(\r\n () => json.isPatientPickup,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isPatientDropoff: tryOrDefault(\r\n () => json.isPatientDropoff,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n arrivingType: tryOrDefault(\r\n () => json.arrivingType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedDurationId: tryOrDefault(\r\n () => json.estimatedDurationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n currentEtaId: tryOrDefault(\r\n () => json.currentEtaId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'WaypointJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: WaypointProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('WaypointRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class WaypointViewModelBase implements WaypointProps {\r\n protected readonly _props: WaypointProps;\r\n private _json?: WaypointProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get type(): WaypointType {\r\n return this._props.type;\r\n }\r\n get address(): AddressProps {\r\n return this._props.address;\r\n }\r\n get timezoneCd(): string | null {\r\n return this._props.timezoneCd;\r\n }\r\n get isRotorWingLz(): boolean | null {\r\n return this._props.isRotorWingLz;\r\n }\r\n get arrivalTime(): Date | null {\r\n return this._props.arrivalTime;\r\n }\r\n get departureTime(): Date | null {\r\n return this._props.departureTime;\r\n }\r\n get locationId(): string | null {\r\n return this._props.locationId;\r\n }\r\n get isPatientPickup(): boolean | null {\r\n return this._props.isPatientPickup;\r\n }\r\n get isPatientDropoff(): boolean | null {\r\n return this._props.isPatientDropoff;\r\n }\r\n get arrivingType(): WaypointType | null {\r\n return this._props.arrivingType;\r\n }\r\n get estimatedDurationId(): string | null {\r\n return this._props.estimatedDurationId;\r\n }\r\n get currentEtaId(): string | null {\r\n return this._props.currentEtaId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isTypeDropoffTeam() {\r\n return this._props.type === WaypointType.DropoffTeam;\r\n }\r\n public get isArrivingTypeDropoffTeam() {\r\n return this._props.arrivingType === WaypointType.DropoffTeam;\r\n }\r\n public get isTypeEnRouteDiversion() {\r\n return this._props.type === WaypointType.EnRouteDiversion;\r\n }\r\n public get isArrivingTypeEnRouteDiversion() {\r\n return this._props.arrivingType === WaypointType.EnRouteDiversion;\r\n }\r\n public get isTypeFuelLocation() {\r\n return this._props.type === WaypointType.FuelLocation;\r\n }\r\n public get isArrivingTypeFuelLocation() {\r\n return this._props.arrivingType === WaypointType.FuelLocation;\r\n }\r\n public get isTypeOther() {\r\n return this._props.type === WaypointType.Other;\r\n }\r\n public get isArrivingTypeOther() {\r\n return this._props.arrivingType === WaypointType.Other;\r\n }\r\n public get isTypePatientDropoffRendezvous() {\r\n return this._props.type === WaypointType.PatientDropoffRendezvous;\r\n }\r\n public get isArrivingTypePatientDropoffRendezvous() {\r\n return this._props.arrivingType === WaypointType.PatientDropoffRendezvous;\r\n }\r\n public get isTypePatientPickupRendezvous() {\r\n return this._props.type === WaypointType.PatientPickupRendezvous;\r\n }\r\n public get isArrivingTypePatientPickupRendezvous() {\r\n return this._props.arrivingType === WaypointType.PatientPickupRendezvous;\r\n }\r\n public get isTypePickupTeam() {\r\n return this._props.type === WaypointType.PickupTeam;\r\n }\r\n public get isArrivingTypePickupTeam() {\r\n return this._props.arrivingType === WaypointType.PickupTeam;\r\n }\r\n public get isTypePost() {\r\n return this._props.type === WaypointType.Post;\r\n }\r\n public get isArrivingTypePost() {\r\n return this._props.arrivingType === WaypointType.Post;\r\n }\r\n public get isTypePublicRelationsSite() {\r\n return this._props.type === WaypointType.PublicRelationsSite;\r\n }\r\n public get isArrivingTypePublicRelationsSite() {\r\n return this._props.arrivingType === WaypointType.PublicRelationsSite;\r\n }\r\n public get isTypeReceivingFacility() {\r\n return this._props.type === WaypointType.ReceivingFacility;\r\n }\r\n public get isArrivingTypeReceivingFacility() {\r\n return this._props.arrivingType === WaypointType.ReceivingFacility;\r\n }\r\n public get isTypeRendezvousPoint() {\r\n return this._props.type === WaypointType.RendezvousPoint;\r\n }\r\n public get isArrivingTypeRendezvousPoint() {\r\n return this._props.arrivingType === WaypointType.RendezvousPoint;\r\n }\r\n public get isTypeSceneLocation() {\r\n return this._props.type === WaypointType.SceneLocation;\r\n }\r\n public get isArrivingTypeSceneLocation() {\r\n return this._props.arrivingType === WaypointType.SceneLocation;\r\n }\r\n public get isTypeSendingFacility() {\r\n return this._props.type === WaypointType.SendingFacility;\r\n }\r\n public get isArrivingTypeSendingFacility() {\r\n return this._props.arrivingType === WaypointType.SendingFacility;\r\n }\r\n\r\n public isAnyType(...waypointType: WaypointType[]) {\r\n return waypointType.includes(this._props.type);\r\n }\r\n public isAnyArrivingType(...waypointType: WaypointType[]) {\r\n return this._props.arrivingType != null && waypointType.includes(this._props.arrivingType);\r\n }\r\n\r\n constructor(props: WaypointProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n type: this._props.type,\r\n address: this._props.address,\r\n timezoneCd: this._props.timezoneCd,\r\n isRotorWingLz: this._props.isRotorWingLz,\r\n arrivalTime: this._props.arrivalTime,\r\n departureTime: this._props.departureTime,\r\n locationId: this._props.locationId,\r\n isPatientPickup: this._props.isPatientPickup,\r\n isPatientDropoff: this._props.isPatientDropoff,\r\n arrivingType: this._props.arrivingType,\r\n estimatedDurationId: this._props.estimatedDurationId,\r\n currentEtaId: this._props.currentEtaId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllWaypointEntities = (state: AppState) => state.entityStores.waypoint.entities;\r\n\r\nexport const selectWaypointById = (id: string) => (state: AppState) =>\r\n state.entityStores.waypoint.entities.get(id);\r\n\r\nexport const selectWaypointMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.waypoint.meta.get(id);\r\n\r\nexport const selectWaypointAndMetadataById = (id: string) =>\r\n createSelector(selectWaypointById(id), selectWaypointMetadataById(id), (waypoint, meta) => ({\r\n waypoint,\r\n meta,\r\n }));\r\n\r\nexport function selectWaypointEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllWaypointEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, WaypointRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByName(name: string) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByType(type: WaypointType) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByTimezoneCd(timezoneCd: string) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.timezoneCd === timezoneCd).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByIsRotorWingLz(isRotorWingLz: boolean) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.isRotorWingLz === isRotorWingLz).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByArrivalTime(arrivalTime: Date) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.arrivalTime === arrivalTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByDepartureTime(departureTime: Date) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.departureTime === departureTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByLocationId(locationId: string) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.locationId === locationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByIsPatientPickup(isPatientPickup: boolean) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.isPatientPickup === isPatientPickup).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByIsPatientDropoff(isPatientDropoff: boolean) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.isPatientDropoff === isPatientDropoff).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByArrivingType(arrivingType: WaypointType) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.arrivingType === arrivingType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByEstimatedDurationId(estimatedDurationId: string) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.estimatedDurationId === estimatedDurationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByCurrentEtaId(currentEtaId: string) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.currentEtaId === currentEtaId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWaypointEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllWaypointEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface WebOrderLogEntityChangesProps {\r\n id: string;\r\n entityType: string;\r\n fieldName: string;\r\n oldValue: string | null;\r\n newValue: string | null;\r\n}\r\n\r\nexport class WebOrderLogEntityChangesRecord extends Record({\r\n id: null as any,\r\n entityType: null as any,\r\n fieldName: null as any,\r\n oldValue: null as any,\r\n newValue: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n entityType: string;\r\n fieldName: string;\r\n oldValue: string | null;\r\n newValue: string | null;\r\n }): WebOrderLogEntityChangesRecord {\r\n if (json == null) {\r\n throw new Error('WebOrderLogEntityChangesRecord.fromJS: parameter cannot be null');\r\n }\r\n return new WebOrderLogEntityChangesRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'WebOrderLogEntityChangesJson.id'),\r\n entityType: getFromOrThrow(\r\n json,\r\n (j) => j.entityType,\r\n 'WebOrderLogEntityChangesJson.entityType',\r\n ),\r\n fieldName: getFromOrThrow(json, (j) => j.fieldName, 'WebOrderLogEntityChangesJson.fieldName'),\r\n oldValue: json.oldValue,\r\n newValue: json.newValue,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n entityType: string;\r\n fieldName: string;\r\n oldValue: string | null;\r\n newValue: string | null;\r\n }): [WebOrderLogEntityChangesRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('WebOrderLogEntityChangesRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new WebOrderLogEntityChangesRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'WebOrderLogEntityChangesJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.entityType, 'WebOrderLogEntityChangesJson.entityType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fieldName: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.fieldName, 'WebOrderLogEntityChangesJson.fieldName'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n oldValue: tryOrDefault(\r\n () => json.oldValue,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n newValue: tryOrDefault(\r\n () => json.newValue,\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: WebOrderLogEntityChangesProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('WebOrderLogEntityChangesRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class WebOrderLogEntityChangesViewModelBase\r\n implements WebOrderLogEntityChangesProps\r\n{\r\n protected readonly _props: WebOrderLogEntityChangesProps;\r\n private _json?: WebOrderLogEntityChangesProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get entityType(): string {\r\n return this._props.entityType;\r\n }\r\n get fieldName(): string {\r\n return this._props.fieldName;\r\n }\r\n get oldValue(): string | null {\r\n return this._props.oldValue;\r\n }\r\n get newValue(): string | null {\r\n return this._props.newValue;\r\n }\r\n\r\n constructor(props: WebOrderLogEntityChangesProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n entityType: this._props.entityType,\r\n fieldName: this._props.fieldName,\r\n oldValue: this._props.oldValue,\r\n newValue: this._props.newValue,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { EntityType } from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n WebOrderLogEntityChangesRecord,\r\n WebOrderLogEntityChangesProps,\r\n} from 'src/store/generated/web-order-log-entity-changes-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface WebOrderLogProps {\r\n id: string;\r\n requestJson: string;\r\n name: string;\r\n isSuccess: boolean;\r\n errors: string | null;\r\n entityId: string | null;\r\n entityType: EntityType | null;\r\n changes: List | null;\r\n dateAcknowledged: Date | null;\r\n acknowledgedById: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class WebOrderLogRecord extends Record({\r\n id: null as any,\r\n requestJson: null as any,\r\n name: null as any,\r\n isSuccess: null as any,\r\n errors: null as any,\r\n entityId: null as any,\r\n entityType: null as any,\r\n changes: null as any,\r\n dateAcknowledged: null as any,\r\n acknowledgedById: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n requestJson: string;\r\n name: string;\r\n isSuccess: boolean;\r\n errors: string | null;\r\n entityId: string | null;\r\n entityType: EntityType | null;\r\n changes: any;\r\n dateAcknowledged: string | number | Date | null;\r\n acknowledgedById: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): WebOrderLogRecord {\r\n if (json == null) {\r\n throw new Error('WebOrderLogRecord.fromJS: parameter cannot be null');\r\n }\r\n return new WebOrderLogRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'WebOrderLogJson.id'),\r\n requestJson: getFromOrThrow(json, (j) => j.requestJson, 'WebOrderLogJson.requestJson '),\r\n name: getFromOrThrow(json, (j) => j.name, 'WebOrderLogJson.name'),\r\n isSuccess: getFromOrThrow(json, (j) => j.isSuccess, 'WebOrderLogJson.isSuccess'),\r\n errors: json.errors,\r\n entityId: json.entityId,\r\n entityType: json.entityType,\r\n changes:\r\n json.changes != null\r\n ? List(\r\n json.changes.map((o: any) => new WebOrderLogEntityChangesRecord(o)),\r\n )\r\n : null,\r\n dateAcknowledged: json.dateAcknowledged != null ? new Date(json.dateAcknowledged) : null,\r\n acknowledgedById: json.acknowledgedById,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n requestJson: string;\r\n name: string;\r\n isSuccess: boolean;\r\n errors: string | null;\r\n entityId: string | null;\r\n entityType: EntityType | null;\r\n changes: any;\r\n dateAcknowledged: string | number | Date | null;\r\n acknowledgedById: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [WebOrderLogRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('WebOrderLogRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new WebOrderLogRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'WebOrderLogJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestJson: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.requestJson, 'WebOrderLogJson.requestJson '),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'WebOrderLogJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isSuccess: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isSuccess, 'WebOrderLogJson.isSuccess'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n errors: tryOrDefault(\r\n () => json.errors,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityId: tryOrDefault(\r\n () => json.entityId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityType: tryOrDefault(\r\n () => json.entityType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n changes: tryOrDefault(\r\n () =>\r\n json.changes != null\r\n ? List(\r\n json.changes.map((o: any) => new WebOrderLogEntityChangesRecord(o)),\r\n )\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateAcknowledged: tryOrDefault(\r\n () => (json.dateAcknowledged != null ? new Date(json.dateAcknowledged) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n acknowledgedById: tryOrDefault(\r\n () => json.acknowledgedById,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: WebOrderLogProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('WebOrderLogRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class WebOrderLogViewModelBase implements WebOrderLogProps {\r\n protected readonly _props: WebOrderLogProps;\r\n private _json?: WebOrderLogProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get requestJson(): string {\r\n return this._props.requestJson;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get isSuccess(): boolean {\r\n return this._props.isSuccess;\r\n }\r\n get errors(): string | null {\r\n return this._props.errors;\r\n }\r\n get entityId(): string | null {\r\n return this._props.entityId;\r\n }\r\n get entityType(): EntityType | null {\r\n return this._props.entityType;\r\n }\r\n get changes(): List | null {\r\n return this._props.changes;\r\n }\r\n get dateAcknowledged(): Date | null {\r\n return this._props.dateAcknowledged;\r\n }\r\n get acknowledgedById(): string | null {\r\n return this._props.acknowledgedById;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAirport() {\r\n return this._props.entityType === EntityType.Airport;\r\n }\r\n public get isBase() {\r\n return this._props.entityType === EntityType.Base;\r\n }\r\n public get isCard() {\r\n return this._props.entityType === EntityType.Card;\r\n }\r\n public get isCommunicationCenter() {\r\n return this._props.entityType === EntityType.CommunicationCenter;\r\n }\r\n public get isCompany() {\r\n return this._props.entityType === EntityType.Company;\r\n }\r\n public get isControlZone() {\r\n return this._props.entityType === EntityType.ControlZone;\r\n }\r\n public get isLocation() {\r\n return this._props.entityType === EntityType.Location;\r\n }\r\n public get isMedicalFacility() {\r\n return this._props.entityType === EntityType.MedicalFacility;\r\n }\r\n public get isOutOfServiceEvent() {\r\n return this._props.entityType === EntityType.OutOfServiceEvent;\r\n }\r\n public get isPerson() {\r\n return this._props.entityType === EntityType.Person;\r\n }\r\n public get isProgram() {\r\n return this._props.entityType === EntityType.Program;\r\n }\r\n public get isRegion() {\r\n return this._props.entityType === EntityType.Region;\r\n }\r\n public get isTimer() {\r\n return this._props.entityType === EntityType.Timer;\r\n }\r\n public get isUnit() {\r\n return this._props.entityType === EntityType.Unit;\r\n }\r\n public get isUnspecified() {\r\n return this._props.entityType === EntityType.Unspecified;\r\n }\r\n public get isVehicle() {\r\n return this._props.entityType === EntityType.Vehicle;\r\n }\r\n\r\n public isAnyEntityType(...entityType: EntityType[]) {\r\n return this._props.entityType != null && entityType.includes(this._props.entityType);\r\n }\r\n\r\n constructor(props: WebOrderLogProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n requestJson: this._props.requestJson,\r\n name: this._props.name,\r\n isSuccess: this._props.isSuccess,\r\n errors: this._props.errors,\r\n entityId: this._props.entityId,\r\n entityType: this._props.entityType,\r\n changes: this._props.changes,\r\n dateAcknowledged: this._props.dateAcknowledged,\r\n acknowledgedById: this._props.acknowledgedById,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllWebOrderLogEntities = (state: AppState) =>\r\n state.entityStores.webOrderLog.entities;\r\n\r\nexport const selectWebOrderLogById = (id: string) => (state: AppState) =>\r\n state.entityStores.webOrderLog.entities.get(id);\r\n\r\nexport const selectWebOrderLogMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.webOrderLog.meta.get(id);\r\n\r\nexport const selectWebOrderLogAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectWebOrderLogById(id),\r\n selectWebOrderLogMetadataById(id),\r\n (webOrderLog, meta) => ({ webOrderLog, meta }),\r\n );\r\n\r\nexport function selectWebOrderLogEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllWebOrderLogEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, WebOrderLogRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectWebOrderLogEntitiesByRequestJson(requestJson: string) {\r\n return createSelector(selectAllWebOrderLogEntities, (entities) =>\r\n entities.filter((e) => e.requestJson === requestJson).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWebOrderLogEntitiesByName(name: string) {\r\n return createSelector(selectAllWebOrderLogEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWebOrderLogEntitiesByIsSuccess(isSuccess: boolean) {\r\n return createSelector(selectAllWebOrderLogEntities, (entities) =>\r\n entities.filter((e) => e.isSuccess === isSuccess).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWebOrderLogEntitiesByErrors(errors: string) {\r\n return createSelector(selectAllWebOrderLogEntities, (entities) =>\r\n entities.filter((e) => e.errors === errors).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWebOrderLogEntitiesByEntityId(entityId: string) {\r\n return createSelector(selectAllWebOrderLogEntities, (entities) =>\r\n entities.filter((e) => e.entityId === entityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWebOrderLogEntitiesByEntityType(entityType: EntityType) {\r\n return createSelector(selectAllWebOrderLogEntities, (entities) =>\r\n entities.filter((e) => e.entityType === entityType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWebOrderLogEntitiesByDateAcknowledged(dateAcknowledged: Date) {\r\n return createSelector(selectAllWebOrderLogEntities, (entities) =>\r\n entities.filter((e) => e.dateAcknowledged === dateAcknowledged).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectWebOrderLogEntitiesByAcknowledgedById(acknowledgedById: string) {\r\n return createSelector(selectAllWebOrderLogEntities, (entities) =>\r\n entities.filter((e) => e.acknowledgedById === acknowledgedById).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AgencyType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface AgencyProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: AgencyType;\r\n isCompetitor: boolean;\r\n parentCompanyId: string | null;\r\n notes: string | null;\r\n isInternallyOwned: boolean;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class AgencyRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n type: null as any,\r\n isCompetitor: null as any,\r\n parentCompanyId: null as any,\r\n notes: null as any,\r\n isInternallyOwned: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: AgencyType;\r\n isCompetitor: boolean;\r\n parentCompanyId: string | null;\r\n notes: string | null;\r\n isInternallyOwned: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): AgencyRecord {\r\n if (json == null) {\r\n throw new Error('AgencyRecord.fromJS: parameter cannot be null');\r\n }\r\n return new AgencyRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'AgencyJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'AgencyJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'AgencyJson.abbreviation'),\r\n type: getFromOrThrow(json, (j) => j.type, 'AgencyJson.type'),\r\n isCompetitor: getFromOrThrow(json, (j) => j.isCompetitor, 'AgencyJson.isCompetitor'),\r\n parentCompanyId: json.parentCompanyId,\r\n notes: json.notes,\r\n isInternallyOwned: getFromOrThrow(\r\n json,\r\n (j) => j.isInternallyOwned,\r\n 'AgencyJson.isInternallyOwned',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n type: AgencyType;\r\n isCompetitor: boolean;\r\n parentCompanyId: string | null;\r\n notes: string | null;\r\n isInternallyOwned: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [AgencyRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('AgencyRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new AgencyRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'AgencyJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'AgencyJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'AgencyJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'AgencyJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isCompetitor: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isCompetitor, 'AgencyJson.isCompetitor'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n parentCompanyId: tryOrDefault(\r\n () => json.parentCompanyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isInternallyOwned: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isInternallyOwned, 'AgencyJson.isInternallyOwned'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: AgencyProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('AgencyRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class AgencyViewModelBase implements AgencyProps {\r\n protected readonly _props: AgencyProps;\r\n private _json?: AgencyProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get type(): AgencyType {\r\n return this._props.type;\r\n }\r\n get isCompetitor(): boolean {\r\n return this._props.isCompetitor;\r\n }\r\n get parentCompanyId(): string | null {\r\n return this._props.parentCompanyId;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get isInternallyOwned(): boolean {\r\n return this._props.isInternallyOwned;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAirAmbulance() {\r\n return this._props.type === AgencyType.AirAmbulance;\r\n }\r\n public get isFireService() {\r\n return this._props.type === AgencyType.FireService;\r\n }\r\n public get isGroundAmbulance() {\r\n return this._props.type === AgencyType.GroundAmbulance;\r\n }\r\n public get isOther() {\r\n return this._props.type === AgencyType.Other;\r\n }\r\n public get isPsap() {\r\n return this._props.type === AgencyType.Psap;\r\n }\r\n public get isUnspecified() {\r\n return this._props.type === AgencyType.Unspecified;\r\n }\r\n\r\n public isAnyType(...agencyType: AgencyType[]) {\r\n return agencyType.includes(this._props.type);\r\n }\r\n\r\n constructor(props: AgencyProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n type: this._props.type,\r\n isCompetitor: this._props.isCompetitor,\r\n parentCompanyId: this._props.parentCompanyId,\r\n notes: this._props.notes,\r\n isInternallyOwned: this._props.isInternallyOwned,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllAgencyEntities = (state: AppState) => state.entityStores.agency.entities;\r\n\r\nexport const selectAgencyById = (id: string) => (state: AppState) =>\r\n state.entityStores.agency.entities.get(id);\r\n\r\nexport const selectAgencyMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.agency.meta.get(id);\r\n\r\nexport const selectAgencyAndMetadataById = (id: string) =>\r\n createSelector(selectAgencyById(id), selectAgencyMetadataById(id), (agency, meta) => ({\r\n agency,\r\n meta,\r\n }));\r\n\r\nexport function selectAgencyEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllAgencyEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, AgencyRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectAgencyEntitiesByName(name: string) {\r\n return createSelector(selectAllAgencyEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllAgencyEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyEntitiesByType(type: AgencyType) {\r\n return createSelector(selectAllAgencyEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyEntitiesByIsCompetitor(isCompetitor: boolean) {\r\n return createSelector(selectAllAgencyEntities, (entities) =>\r\n entities.filter((e) => e.isCompetitor === isCompetitor).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyEntitiesByParentCompanyId(parentCompanyId: string) {\r\n return createSelector(selectAllAgencyEntities, (entities) =>\r\n entities.filter((e) => e.parentCompanyId === parentCompanyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllAgencyEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyEntitiesByIsInternallyOwned(isInternallyOwned: boolean) {\r\n return createSelector(selectAllAgencyEntities, (entities) =>\r\n entities.filter((e) => e.isInternallyOwned === isInternallyOwned).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { VehicleType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface AgencyLocationProps {\r\n id: string;\r\n name: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n agencyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class AgencyLocationRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n emailAddress: null as any,\r\n primaryPhoneNumber: null as any,\r\n secondaryPhoneNumber: null as any,\r\n smsPhoneNumber: null as any,\r\n faxPhoneNumber: null as any,\r\n notes: null as any,\r\n vehicleType: null as any,\r\n estimatedDepartureTimeInMinutes: null as any,\r\n locationId: null as any,\r\n agencyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n agencyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): AgencyLocationRecord {\r\n if (json == null) {\r\n throw new Error('AgencyLocationRecord.fromJS: parameter cannot be null');\r\n }\r\n return new AgencyLocationRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'AgencyLocationJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'AgencyLocationJson.name'),\r\n emailAddress: json.emailAddress,\r\n primaryPhoneNumber: json.primaryPhoneNumber,\r\n secondaryPhoneNumber: json.secondaryPhoneNumber,\r\n smsPhoneNumber: json.smsPhoneNumber,\r\n faxPhoneNumber: json.faxPhoneNumber,\r\n notes: json.notes,\r\n vehicleType: json.vehicleType,\r\n estimatedDepartureTimeInMinutes: json.estimatedDepartureTimeInMinutes,\r\n locationId: json.locationId,\r\n agencyId: getFromOrThrow(json, (j) => j.agencyId, 'AgencyLocationJson.agencyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n vehicleType: VehicleType | null;\r\n estimatedDepartureTimeInMinutes: number | null;\r\n locationId: string | null;\r\n agencyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [AgencyLocationRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('AgencyLocationRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new AgencyLocationRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'AgencyLocationJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'AgencyLocationJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n emailAddress: tryOrDefault(\r\n () => json.emailAddress,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n primaryPhoneNumber: tryOrDefault(\r\n () => json.primaryPhoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n secondaryPhoneNumber: tryOrDefault(\r\n () => json.secondaryPhoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n smsPhoneNumber: tryOrDefault(\r\n () => json.smsPhoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n faxPhoneNumber: tryOrDefault(\r\n () => json.faxPhoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleType: tryOrDefault(\r\n () => json.vehicleType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedDepartureTimeInMinutes: tryOrDefault(\r\n () => json.estimatedDepartureTimeInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationId: tryOrDefault(\r\n () => json.locationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n agencyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.agencyId, 'AgencyLocationJson.agencyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: AgencyLocationProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('AgencyLocationRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class AgencyLocationViewModelBase implements AgencyLocationProps {\r\n protected readonly _props: AgencyLocationProps;\r\n private _json?: AgencyLocationProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get emailAddress(): string | null {\r\n return this._props.emailAddress;\r\n }\r\n get primaryPhoneNumber(): string | null {\r\n return this._props.primaryPhoneNumber;\r\n }\r\n get secondaryPhoneNumber(): string | null {\r\n return this._props.secondaryPhoneNumber;\r\n }\r\n get smsPhoneNumber(): string | null {\r\n return this._props.smsPhoneNumber;\r\n }\r\n get faxPhoneNumber(): string | null {\r\n return this._props.faxPhoneNumber;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get vehicleType(): VehicleType | null {\r\n return this._props.vehicleType;\r\n }\r\n get estimatedDepartureTimeInMinutes(): number | null {\r\n return this._props.estimatedDepartureTimeInMinutes;\r\n }\r\n get locationId(): string | null {\r\n return this._props.locationId;\r\n }\r\n get agencyId(): string {\r\n return this._props.agencyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isFixedWing() {\r\n return this._props.vehicleType === VehicleType.FixedWing;\r\n }\r\n public get isGround() {\r\n return this._props.vehicleType === VehicleType.Ground;\r\n }\r\n public get isRotorWing() {\r\n return this._props.vehicleType === VehicleType.RotorWing;\r\n }\r\n public get isUnspecified() {\r\n return this._props.vehicleType === VehicleType.Unspecified;\r\n }\r\n\r\n public isAnyVehicleType(...vehicleType: VehicleType[]) {\r\n return this._props.vehicleType != null && vehicleType.includes(this._props.vehicleType);\r\n }\r\n\r\n constructor(props: AgencyLocationProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n emailAddress: this._props.emailAddress,\r\n primaryPhoneNumber: this._props.primaryPhoneNumber,\r\n secondaryPhoneNumber: this._props.secondaryPhoneNumber,\r\n smsPhoneNumber: this._props.smsPhoneNumber,\r\n faxPhoneNumber: this._props.faxPhoneNumber,\r\n notes: this._props.notes,\r\n vehicleType: this._props.vehicleType,\r\n estimatedDepartureTimeInMinutes: this._props.estimatedDepartureTimeInMinutes,\r\n locationId: this._props.locationId,\r\n agencyId: this._props.agencyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllAgencyLocationEntities = (state: AppState) =>\r\n state.entityStores.agencyLocation.entities;\r\n\r\nexport const selectAgencyLocationById = (id: string) => (state: AppState) =>\r\n state.entityStores.agencyLocation.entities.get(id);\r\n\r\nexport const selectAgencyLocationMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.agencyLocation.meta.get(id);\r\n\r\nexport const selectAgencyLocationAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectAgencyLocationById(id),\r\n selectAgencyLocationMetadataById(id),\r\n (agencyLocation, meta) => ({ agencyLocation, meta }),\r\n );\r\n\r\nexport function selectAgencyLocationEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllAgencyLocationEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, AgencyLocationRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectAgencyLocationEntitiesByName(name: string) {\r\n return createSelector(selectAllAgencyLocationEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyLocationEntitiesByEmailAddress(emailAddress: string) {\r\n return createSelector(selectAllAgencyLocationEntities, (entities) =>\r\n entities.filter((e) => e.emailAddress === emailAddress).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyLocationEntitiesByPrimaryPhoneNumber(primaryPhoneNumber: string) {\r\n return createSelector(selectAllAgencyLocationEntities, (entities) =>\r\n entities.filter((e) => e.primaryPhoneNumber === primaryPhoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyLocationEntitiesBySecondaryPhoneNumber(secondaryPhoneNumber: string) {\r\n return createSelector(selectAllAgencyLocationEntities, (entities) =>\r\n entities.filter((e) => e.secondaryPhoneNumber === secondaryPhoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyLocationEntitiesBySmsPhoneNumber(smsPhoneNumber: string) {\r\n return createSelector(selectAllAgencyLocationEntities, (entities) =>\r\n entities.filter((e) => e.smsPhoneNumber === smsPhoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyLocationEntitiesByFaxPhoneNumber(faxPhoneNumber: string) {\r\n return createSelector(selectAllAgencyLocationEntities, (entities) =>\r\n entities.filter((e) => e.faxPhoneNumber === faxPhoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyLocationEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllAgencyLocationEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyLocationEntitiesByVehicleType(vehicleType: VehicleType) {\r\n return createSelector(selectAllAgencyLocationEntities, (entities) =>\r\n entities.filter((e) => e.vehicleType === vehicleType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyLocationEntitiesByEstimatedDepartureTimeInMinutes(\r\n estimatedDepartureTimeInMinutes: number,\r\n) {\r\n return createSelector(selectAllAgencyLocationEntities, (entities) =>\r\n entities\r\n .filter((e) => e.estimatedDepartureTimeInMinutes === estimatedDepartureTimeInMinutes)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyLocationEntitiesByLocationId(locationId: string) {\r\n return createSelector(selectAllAgencyLocationEntities, (entities) =>\r\n entities.filter((e) => e.locationId === locationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAgencyLocationEntitiesByAgencyId(agencyId: string) {\r\n return createSelector(selectAllAgencyLocationEntities, (entities) =>\r\n entities.filter((e) => e.agencyId === agencyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AirportCodeType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface AirportProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n airportType: string;\r\n airportCodeType: AirportCodeType;\r\n sourceSystemId: number | null;\r\n preferredFboId: string | null;\r\n locationId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class AirportRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n code: null as any,\r\n airportType: null as any,\r\n airportCodeType: null as any,\r\n sourceSystemId: null as any,\r\n preferredFboId: null as any,\r\n locationId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n airportType: string;\r\n airportCodeType: AirportCodeType;\r\n sourceSystemId: number | null;\r\n preferredFboId: string | null;\r\n locationId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): AirportRecord {\r\n if (json == null) {\r\n throw new Error('AirportRecord.fromJS: parameter cannot be null');\r\n }\r\n return new AirportRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'AirportJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'AirportJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'AirportJson.abbreviation'),\r\n code: getFromOrThrow(json, (j) => j.code, 'AirportJson.code'),\r\n airportType: getFromOrThrow(json, (j) => j.airportType, 'AirportJson.airportType'),\r\n airportCodeType: getFromOrThrow(\r\n json,\r\n (j) => j.airportCodeType,\r\n 'AirportJson.airportCodeType',\r\n ),\r\n sourceSystemId: json.sourceSystemId,\r\n preferredFboId: json.preferredFboId,\r\n locationId: json.locationId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n airportType: string;\r\n airportCodeType: AirportCodeType;\r\n sourceSystemId: number | null;\r\n preferredFboId: string | null;\r\n locationId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [AirportRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('AirportRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new AirportRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'AirportJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'AirportJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'AirportJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n code: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.code, 'AirportJson.code'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n airportType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.airportType, 'AirportJson.airportType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n airportCodeType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.airportCodeType, 'AirportJson.airportCodeType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n sourceSystemId: tryOrDefault(\r\n () => json.sourceSystemId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n preferredFboId: tryOrDefault(\r\n () => json.preferredFboId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationId: tryOrDefault(\r\n () => json.locationId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: AirportProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('AirportRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class AirportViewModelBase implements AirportProps {\r\n protected readonly _props: AirportProps;\r\n private _json?: AirportProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get code(): string {\r\n return this._props.code;\r\n }\r\n get airportType(): string {\r\n return this._props.airportType;\r\n }\r\n get airportCodeType(): AirportCodeType {\r\n return this._props.airportCodeType;\r\n }\r\n get sourceSystemId(): number | null {\r\n return this._props.sourceSystemId;\r\n }\r\n get preferredFboId(): string | null {\r\n return this._props.preferredFboId;\r\n }\r\n get locationId(): string | null {\r\n return this._props.locationId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isFAA() {\r\n return this._props.airportCodeType === AirportCodeType.FAA;\r\n }\r\n public get isIATA() {\r\n return this._props.airportCodeType === AirportCodeType.IATA;\r\n }\r\n public get isICAO() {\r\n return this._props.airportCodeType === AirportCodeType.ICAO;\r\n }\r\n\r\n public isAnyAirportCodeType(...airportCodeType: AirportCodeType[]) {\r\n return airportCodeType.includes(this._props.airportCodeType);\r\n }\r\n\r\n constructor(props: AirportProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n code: this._props.code,\r\n airportType: this._props.airportType,\r\n airportCodeType: this._props.airportCodeType,\r\n sourceSystemId: this._props.sourceSystemId,\r\n preferredFboId: this._props.preferredFboId,\r\n locationId: this._props.locationId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllAirportEntities = (state: AppState) => state.entityStores.airport.entities;\r\n\r\nexport const selectAirportById = (id: string) => (state: AppState) =>\r\n state.entityStores.airport.entities.get(id);\r\n\r\nexport const selectAirportMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.airport.meta.get(id);\r\n\r\nexport const selectAirportAndMetadataById = (id: string) =>\r\n createSelector(selectAirportById(id), selectAirportMetadataById(id), (airport, meta) => ({\r\n airport,\r\n meta,\r\n }));\r\n\r\nexport function selectAirportEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllAirportEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, AirportRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectAirportEntitiesByName(name: string) {\r\n return createSelector(selectAllAirportEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAirportEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllAirportEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAirportEntitiesByCode(code: string) {\r\n return createSelector(selectAllAirportEntities, (entities) =>\r\n entities.filter((e) => e.code === code).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAirportEntitiesByAirportType(airportType: string) {\r\n return createSelector(selectAllAirportEntities, (entities) =>\r\n entities.filter((e) => e.airportType === airportType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAirportEntitiesByAirportCodeType(airportCodeType: AirportCodeType) {\r\n return createSelector(selectAllAirportEntities, (entities) =>\r\n entities.filter((e) => e.airportCodeType === airportCodeType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAirportEntitiesBySourceSystemId(sourceSystemId: number) {\r\n return createSelector(selectAllAirportEntities, (entities) =>\r\n entities.filter((e) => e.sourceSystemId === sourceSystemId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAirportEntitiesByPreferredFboId(preferredFboId: string) {\r\n return createSelector(selectAllAirportEntities, (entities) =>\r\n entities.filter((e) => e.preferredFboId === preferredFboId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAirportEntitiesByLocationId(locationId: string) {\r\n return createSelector(selectAllAirportEntities, (entities) =>\r\n entities.filter((e) => e.locationId === locationId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { ArchiveEntityType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ArchiveLogProps {\r\n id: string;\r\n archiveEntityType: ArchiveEntityType;\r\n archivedUntilDate: Date;\r\n isError: boolean;\r\n notes: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ArchiveLogRecord extends Record({\r\n id: null as any,\r\n archiveEntityType: null as any,\r\n archivedUntilDate: null as any,\r\n isError: null as any,\r\n notes: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n archiveEntityType: ArchiveEntityType;\r\n archivedUntilDate: string | number | Date;\r\n isError: boolean;\r\n notes: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ArchiveLogRecord {\r\n if (json == null) {\r\n throw new Error('ArchiveLogRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ArchiveLogRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ArchiveLogJson.id'),\r\n archiveEntityType: getFromOrThrow(\r\n json,\r\n (j) => j.archiveEntityType,\r\n 'ArchiveLogJson.archiveEntityType',\r\n ),\r\n archivedUntilDate: new Date(\r\n getFromOrThrow(json, (j) => j.archivedUntilDate, 'ArchiveLogJson.archivedUntilDate'),\r\n ),\r\n isError: getFromOrThrow(json, (j) => j.isError, 'ArchiveLogJson.isError'),\r\n notes: json.notes,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n archiveEntityType: ArchiveEntityType;\r\n archivedUntilDate: string | number | Date;\r\n isError: boolean;\r\n notes: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ArchiveLogRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ArchiveLogRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ArchiveLogRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ArchiveLogJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n archiveEntityType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.archiveEntityType, 'ArchiveLogJson.archiveEntityType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n archivedUntilDate: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(json, (j) => j.archivedUntilDate, 'ArchiveLogJson.archivedUntilDate'),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isError: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isError, 'ArchiveLogJson.isError'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ArchiveLogProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ArchiveLogRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ArchiveLogViewModelBase implements ArchiveLogProps {\r\n protected readonly _props: ArchiveLogProps;\r\n private _json?: ArchiveLogProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get archiveEntityType(): ArchiveEntityType {\r\n return this._props.archiveEntityType;\r\n }\r\n get archivedUntilDate(): Date {\r\n return this._props.archivedUntilDate;\r\n }\r\n get isError(): boolean {\r\n return this._props.isError;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCardNote() {\r\n return this._props.archiveEntityType === ArchiveEntityType.CardNote;\r\n }\r\n public get isEta() {\r\n return this._props.archiveEntityType === ArchiveEntityType.Eta;\r\n }\r\n public get isPositionReport() {\r\n return this._props.archiveEntityType === ArchiveEntityType.PositionReport;\r\n }\r\n public get isTimestamp() {\r\n return this._props.archiveEntityType === ArchiveEntityType.Timestamp;\r\n }\r\n public get isTransportOffer() {\r\n return this._props.archiveEntityType === ArchiveEntityType.TransportOffer;\r\n }\r\n public get isWebhookEventBody() {\r\n return this._props.archiveEntityType === ArchiveEntityType.WebhookEventBody;\r\n }\r\n public get isWebhookSubscription() {\r\n return this._props.archiveEntityType === ArchiveEntityType.WebhookSubscription;\r\n }\r\n public get isWebhookSubscriptionEvent() {\r\n return this._props.archiveEntityType === ArchiveEntityType.WebhookSubscriptionEvent;\r\n }\r\n\r\n public isAnyArchiveEntityType(...archiveEntityType: ArchiveEntityType[]) {\r\n return archiveEntityType.includes(this._props.archiveEntityType);\r\n }\r\n\r\n constructor(props: ArchiveLogProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n archiveEntityType: this._props.archiveEntityType,\r\n archivedUntilDate: this._props.archivedUntilDate,\r\n isError: this._props.isError,\r\n notes: this._props.notes,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllArchiveLogEntities = (state: AppState) =>\r\n state.entityStores.archiveLog.entities;\r\n\r\nexport const selectArchiveLogById = (id: string) => (state: AppState) =>\r\n state.entityStores.archiveLog.entities.get(id);\r\n\r\nexport const selectArchiveLogMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.archiveLog.meta.get(id);\r\n\r\nexport const selectArchiveLogAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectArchiveLogById(id),\r\n selectArchiveLogMetadataById(id),\r\n (archiveLog, meta) => ({ archiveLog, meta }),\r\n );\r\n\r\nexport function selectArchiveLogEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllArchiveLogEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ArchiveLogRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectArchiveLogEntitiesByArchiveEntityType(archiveEntityType: ArchiveEntityType) {\r\n return createSelector(selectAllArchiveLogEntities, (entities) =>\r\n entities.filter((e) => e.archiveEntityType === archiveEntityType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectArchiveLogEntitiesByArchivedUntilDate(archivedUntilDate: Date) {\r\n return createSelector(selectAllArchiveLogEntities, (entities) =>\r\n entities.filter((e) => e.archivedUntilDate === archivedUntilDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectArchiveLogEntitiesByIsError(isError: boolean) {\r\n return createSelector(selectAllArchiveLogEntities, (entities) =>\r\n entities.filter((e) => e.isError === isError).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectArchiveLogEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllArchiveLogEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface BaseControlZoneProps {\r\n id: string;\r\n controlZoneId: string;\r\n baseId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class BaseControlZoneRecord extends Record({\r\n id: null as any,\r\n controlZoneId: null as any,\r\n baseId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n controlZoneId: string;\r\n baseId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): BaseControlZoneRecord {\r\n if (json == null) {\r\n throw new Error('BaseControlZoneRecord.fromJS: parameter cannot be null');\r\n }\r\n return new BaseControlZoneRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'BaseControlZoneJson.id'),\r\n controlZoneId: getFromOrThrow(\r\n json,\r\n (j) => j.controlZoneId,\r\n 'BaseControlZoneJson.controlZoneId',\r\n ),\r\n baseId: getFromOrThrow(json, (j) => j.baseId, 'BaseControlZoneJson.baseId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'BaseControlZoneJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n controlZoneId: string;\r\n baseId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [BaseControlZoneRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('BaseControlZoneRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new BaseControlZoneRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'BaseControlZoneJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n controlZoneId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.controlZoneId, 'BaseControlZoneJson.controlZoneId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.baseId, 'BaseControlZoneJson.baseId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'BaseControlZoneJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: BaseControlZoneProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('BaseControlZoneRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class BaseControlZoneViewModelBase implements BaseControlZoneProps {\r\n protected readonly _props: BaseControlZoneProps;\r\n private _json?: BaseControlZoneProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get controlZoneId(): string {\r\n return this._props.controlZoneId;\r\n }\r\n get baseId(): string {\r\n return this._props.baseId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: BaseControlZoneProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n controlZoneId: this._props.controlZoneId,\r\n baseId: this._props.baseId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllBaseControlZoneEntities = (state: AppState) =>\r\n state.entityStores.baseControlZone.entities;\r\n\r\nexport const selectBaseControlZoneById = (id: string) => (state: AppState) =>\r\n state.entityStores.baseControlZone.entities.get(id);\r\n\r\nexport const selectBaseControlZoneMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.baseControlZone.meta.get(id);\r\n\r\nexport const selectBaseControlZoneAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectBaseControlZoneById(id),\r\n selectBaseControlZoneMetadataById(id),\r\n (baseControlZone, meta) => ({ baseControlZone, meta }),\r\n );\r\n\r\nexport function selectBaseControlZoneEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllBaseControlZoneEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, BaseControlZoneRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectBaseControlZoneEntitiesByControlZoneId(controlZoneId: string) {\r\n return createSelector(selectAllBaseControlZoneEntities, (entities) =>\r\n entities.filter((e) => e.controlZoneId === controlZoneId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseControlZoneEntitiesByBaseId(baseId: string) {\r\n return createSelector(selectAllBaseControlZoneEntities, (entities) =>\r\n entities.filter((e) => e.baseId === baseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseControlZoneEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllBaseControlZoneEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface HoursOfOperationProps {\r\n is24Hours: boolean | null;\r\n startTime: Date | null;\r\n endTime: Date | null;\r\n}\r\n\r\nexport class HoursOfOperationRecord extends Record({\r\n is24Hours: null as any,\r\n startTime: null as any,\r\n endTime: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n is24Hours: boolean | null;\r\n startTime: string | number | Date | null;\r\n endTime: string | number | Date | null;\r\n }): HoursOfOperationRecord {\r\n if (json == null) {\r\n throw new Error('HoursOfOperationRecord.fromJS: parameter cannot be null');\r\n }\r\n return new HoursOfOperationRecord({\r\n is24Hours: json.is24Hours,\r\n startTime: json.startTime != null ? new Date(json.startTime) : null,\r\n endTime: json.endTime != null ? new Date(json.endTime) : null,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n is24Hours: boolean | null;\r\n startTime: string | number | Date | null;\r\n endTime: string | number | Date | null;\r\n }): [HoursOfOperationRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('HoursOfOperationRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new HoursOfOperationRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n is24Hours: tryOrDefault(\r\n () => json.is24Hours,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n startTime: tryOrDefault(\r\n () => (json.startTime != null ? new Date(json.startTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n endTime: tryOrDefault(\r\n () => (json.endTime != null ? new Date(json.endTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: HoursOfOperationProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('HoursOfOperationRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class HoursOfOperationViewModelBase implements HoursOfOperationProps {\r\n protected readonly _props: HoursOfOperationProps;\r\n private _json?: HoursOfOperationProps;\r\n\r\n get is24Hours(): boolean | null {\r\n return this._props.is24Hours;\r\n }\r\n get startTime(): Date | null {\r\n return this._props.startTime;\r\n }\r\n get endTime(): Date | null {\r\n return this._props.endTime;\r\n }\r\n\r\n constructor(props: HoursOfOperationProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n is24Hours: this._props.is24Hours,\r\n startTime: this._props.startTime,\r\n endTime: this._props.endTime,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { BusinessModel } from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n HoursOfOperationRecord,\r\n HoursOfOperationProps,\r\n} from 'src/store/generated/hours-of-operation-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface BaseProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n plannedOperationsStart: Date | null;\r\n operationsStarted: Date | null;\r\n operationsTerminated: Date | null;\r\n dateOfMaturity: Date | null;\r\n primaryPhoneNumber: string | null;\r\n hoursOfOperation: HoursOfOperationProps;\r\n businessModel: BusinessModel;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class BaseRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n locationId: null as any,\r\n plannedOperationsStart: null as any,\r\n operationsStarted: null as any,\r\n operationsTerminated: null as any,\r\n dateOfMaturity: null as any,\r\n primaryPhoneNumber: null as any,\r\n hoursOfOperation: null as any,\r\n businessModel: null as any,\r\n estimatedLiftoffTime: null as any,\r\n licenseNumber: null as any,\r\n enableFlightLogDutyLog: null as any,\r\n dispatchBaseId: null as any,\r\n aviationCompanyId: null as any,\r\n workdayBaseId: null as any,\r\n gmrWorkdayLocationId: null as any,\r\n dateLastUpdatedFromGMRWorkday: null as any,\r\n pilotPhoneNumber: null as any,\r\n crewPhoneNumber1: null as any,\r\n crewPhoneNumber2: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n plannedOperationsStart: string | number | Date | null;\r\n operationsStarted: string | number | Date | null;\r\n operationsTerminated: string | number | Date | null;\r\n dateOfMaturity: string | number | Date | null;\r\n primaryPhoneNumber: string | null;\r\n hoursOfOperation: any;\r\n businessModel: BusinessModel;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: string | number | Date | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): BaseRecord {\r\n if (json == null) {\r\n throw new Error('BaseRecord.fromJS: parameter cannot be null');\r\n }\r\n return new BaseRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'BaseJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'BaseJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'BaseJson.abbreviation'),\r\n locationId: getFromOrThrow(json, (j) => j.locationId, 'BaseJson.locationId'),\r\n plannedOperationsStart:\r\n json.plannedOperationsStart != null ? new Date(json.plannedOperationsStart) : null,\r\n operationsStarted: json.operationsStarted != null ? new Date(json.operationsStarted) : null,\r\n operationsTerminated:\r\n json.operationsTerminated != null ? new Date(json.operationsTerminated) : null,\r\n dateOfMaturity: json.dateOfMaturity != null ? new Date(json.dateOfMaturity) : null,\r\n primaryPhoneNumber: json.primaryPhoneNumber,\r\n hoursOfOperation: new HoursOfOperationRecord(\r\n getFromOrThrow(json, (j) => j.hoursOfOperation, 'BaseJson.hoursOfOperation'),\r\n ),\r\n businessModel: getFromOrThrow(json, (j) => j.businessModel, 'BaseJson.businessModel'),\r\n estimatedLiftoffTime: json.estimatedLiftoffTime,\r\n licenseNumber: json.licenseNumber,\r\n enableFlightLogDutyLog: json.enableFlightLogDutyLog,\r\n dispatchBaseId: json.dispatchBaseId,\r\n aviationCompanyId: json.aviationCompanyId,\r\n workdayBaseId: json.workdayBaseId,\r\n gmrWorkdayLocationId: json.gmrWorkdayLocationId,\r\n dateLastUpdatedFromGMRWorkday:\r\n json.dateLastUpdatedFromGMRWorkday != null\r\n ? new Date(json.dateLastUpdatedFromGMRWorkday)\r\n : null,\r\n pilotPhoneNumber: json.pilotPhoneNumber,\r\n crewPhoneNumber1: json.crewPhoneNumber1,\r\n crewPhoneNumber2: json.crewPhoneNumber2,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'BaseJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationId: string;\r\n plannedOperationsStart: string | number | Date | null;\r\n operationsStarted: string | number | Date | null;\r\n operationsTerminated: string | number | Date | null;\r\n dateOfMaturity: string | number | Date | null;\r\n primaryPhoneNumber: string | null;\r\n hoursOfOperation: any;\r\n businessModel: BusinessModel;\r\n estimatedLiftoffTime: number | null;\r\n licenseNumber: string | null;\r\n enableFlightLogDutyLog: boolean | null;\r\n dispatchBaseId: string | null;\r\n aviationCompanyId: string | null;\r\n workdayBaseId: string | null;\r\n gmrWorkdayLocationId: string | null;\r\n dateLastUpdatedFromGMRWorkday: string | number | Date | null;\r\n pilotPhoneNumber: string | null;\r\n crewPhoneNumber1: string | null;\r\n crewPhoneNumber2: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [BaseRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('BaseRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new BaseRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'BaseJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'BaseJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'BaseJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.locationId, 'BaseJson.locationId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n plannedOperationsStart: tryOrDefault(\r\n () => (json.plannedOperationsStart != null ? new Date(json.plannedOperationsStart) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n operationsStarted: tryOrDefault(\r\n () => (json.operationsStarted != null ? new Date(json.operationsStarted) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n operationsTerminated: tryOrDefault(\r\n () => (json.operationsTerminated != null ? new Date(json.operationsTerminated) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateOfMaturity: tryOrDefault(\r\n () => (json.dateOfMaturity != null ? new Date(json.dateOfMaturity) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n primaryPhoneNumber: tryOrDefault(\r\n () => json.primaryPhoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n hoursOfOperation: tryOrDefault(\r\n () =>\r\n new HoursOfOperationRecord(\r\n getFromOrThrow(json, (j) => j.hoursOfOperation, 'BaseJson.hoursOfOperation'),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n businessModel: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.businessModel, 'BaseJson.businessModel'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n estimatedLiftoffTime: tryOrDefault(\r\n () => json.estimatedLiftoffTime,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n licenseNumber: tryOrDefault(\r\n () => json.licenseNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n enableFlightLogDutyLog: tryOrDefault(\r\n () => json.enableFlightLogDutyLog,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dispatchBaseId: tryOrDefault(\r\n () => json.dispatchBaseId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n aviationCompanyId: tryOrDefault(\r\n () => json.aviationCompanyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n workdayBaseId: tryOrDefault(\r\n () => json.workdayBaseId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n gmrWorkdayLocationId: tryOrDefault(\r\n () => json.gmrWorkdayLocationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateLastUpdatedFromGMRWorkday: tryOrDefault(\r\n () =>\r\n json.dateLastUpdatedFromGMRWorkday != null\r\n ? new Date(json.dateLastUpdatedFromGMRWorkday)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n pilotPhoneNumber: tryOrDefault(\r\n () => json.pilotPhoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n crewPhoneNumber1: tryOrDefault(\r\n () => json.crewPhoneNumber1,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n crewPhoneNumber2: tryOrDefault(\r\n () => json.crewPhoneNumber2,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'BaseJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: BaseProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('BaseRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class BaseViewModelBase implements BaseProps {\r\n protected readonly _props: BaseProps;\r\n private _json?: BaseProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get locationId(): string {\r\n return this._props.locationId;\r\n }\r\n get plannedOperationsStart(): Date | null {\r\n return this._props.plannedOperationsStart;\r\n }\r\n get operationsStarted(): Date | null {\r\n return this._props.operationsStarted;\r\n }\r\n get operationsTerminated(): Date | null {\r\n return this._props.operationsTerminated;\r\n }\r\n get dateOfMaturity(): Date | null {\r\n return this._props.dateOfMaturity;\r\n }\r\n get primaryPhoneNumber(): string | null {\r\n return this._props.primaryPhoneNumber;\r\n }\r\n get hoursOfOperation(): HoursOfOperationProps {\r\n return this._props.hoursOfOperation;\r\n }\r\n get businessModel(): BusinessModel {\r\n return this._props.businessModel;\r\n }\r\n get estimatedLiftoffTime(): number | null {\r\n return this._props.estimatedLiftoffTime;\r\n }\r\n get licenseNumber(): string | null {\r\n return this._props.licenseNumber;\r\n }\r\n get enableFlightLogDutyLog(): boolean | null {\r\n return this._props.enableFlightLogDutyLog;\r\n }\r\n get dispatchBaseId(): string | null {\r\n return this._props.dispatchBaseId;\r\n }\r\n get aviationCompanyId(): string | null {\r\n return this._props.aviationCompanyId;\r\n }\r\n get workdayBaseId(): string | null {\r\n return this._props.workdayBaseId;\r\n }\r\n get gmrWorkdayLocationId(): string | null {\r\n return this._props.gmrWorkdayLocationId;\r\n }\r\n get dateLastUpdatedFromGMRWorkday(): Date | null {\r\n return this._props.dateLastUpdatedFromGMRWorkday;\r\n }\r\n get pilotPhoneNumber(): string | null {\r\n return this._props.pilotPhoneNumber;\r\n }\r\n get crewPhoneNumber1(): string | null {\r\n return this._props.crewPhoneNumber1;\r\n }\r\n get crewPhoneNumber2(): string | null {\r\n return this._props.crewPhoneNumber2;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isCommunity() {\r\n return this._props.businessModel === BusinessModel.Community;\r\n }\r\n public get isGround() {\r\n return this._props.businessModel === BusinessModel.Ground;\r\n }\r\n public get isTraditional() {\r\n return this._props.businessModel === BusinessModel.Traditional;\r\n }\r\n public get isUnspecified() {\r\n return this._props.businessModel === BusinessModel.Unspecified;\r\n }\r\n\r\n public isAnyBusinessModel(...businessModel: BusinessModel[]) {\r\n return businessModel.includes(this._props.businessModel);\r\n }\r\n\r\n constructor(props: BaseProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n locationId: this._props.locationId,\r\n plannedOperationsStart: this._props.plannedOperationsStart,\r\n operationsStarted: this._props.operationsStarted,\r\n operationsTerminated: this._props.operationsTerminated,\r\n dateOfMaturity: this._props.dateOfMaturity,\r\n primaryPhoneNumber: this._props.primaryPhoneNumber,\r\n hoursOfOperation: this._props.hoursOfOperation,\r\n businessModel: this._props.businessModel,\r\n estimatedLiftoffTime: this._props.estimatedLiftoffTime,\r\n licenseNumber: this._props.licenseNumber,\r\n enableFlightLogDutyLog: this._props.enableFlightLogDutyLog,\r\n dispatchBaseId: this._props.dispatchBaseId,\r\n aviationCompanyId: this._props.aviationCompanyId,\r\n workdayBaseId: this._props.workdayBaseId,\r\n gmrWorkdayLocationId: this._props.gmrWorkdayLocationId,\r\n dateLastUpdatedFromGMRWorkday: this._props.dateLastUpdatedFromGMRWorkday,\r\n pilotPhoneNumber: this._props.pilotPhoneNumber,\r\n crewPhoneNumber1: this._props.crewPhoneNumber1,\r\n crewPhoneNumber2: this._props.crewPhoneNumber2,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllBaseEntities = (state: AppState) => state.entityStores.base.entities;\r\n\r\nexport const selectBaseById = (id: string) => (state: AppState) =>\r\n state.entityStores.base.entities.get(id);\r\n\r\nexport const selectBaseMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.base.meta.get(id);\r\n\r\nexport const selectBaseAndMetadataById = (id: string) =>\r\n createSelector(selectBaseById(id), selectBaseMetadataById(id), (base, meta) => ({ base, meta }));\r\n\r\nexport function selectBaseEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllBaseEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, BaseRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByName(name: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByLocationId(locationId: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.locationId === locationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByPlannedOperationsStart(plannedOperationsStart: Date) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.plannedOperationsStart === plannedOperationsStart).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByOperationsStarted(operationsStarted: Date) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.operationsStarted === operationsStarted).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByOperationsTerminated(operationsTerminated: Date) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.operationsTerminated === operationsTerminated).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByDateOfMaturity(dateOfMaturity: Date) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.dateOfMaturity === dateOfMaturity).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByPrimaryPhoneNumber(primaryPhoneNumber: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.primaryPhoneNumber === primaryPhoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByBusinessModel(businessModel: BusinessModel) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.businessModel === businessModel).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByEstimatedLiftoffTime(estimatedLiftoffTime: number) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.estimatedLiftoffTime === estimatedLiftoffTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByLicenseNumber(licenseNumber: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.licenseNumber === licenseNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByEnableFlightLogDutyLog(enableFlightLogDutyLog: boolean) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.enableFlightLogDutyLog === enableFlightLogDutyLog).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByDispatchBaseId(dispatchBaseId: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.dispatchBaseId === dispatchBaseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByAviationCompanyId(aviationCompanyId: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.aviationCompanyId === aviationCompanyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByWorkdayBaseId(workdayBaseId: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.workdayBaseId === workdayBaseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByGmrWorkdayLocationId(gmrWorkdayLocationId: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.gmrWorkdayLocationId === gmrWorkdayLocationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByDateLastUpdatedFromGMRWorkday(\r\n dateLastUpdatedFromGMRWorkday: Date,\r\n) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities\r\n .filter((e) => e.dateLastUpdatedFromGMRWorkday === dateLastUpdatedFromGMRWorkday)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByPilotPhoneNumber(pilotPhoneNumber: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.pilotPhoneNumber === pilotPhoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByCrewPhoneNumber1(crewPhoneNumber1: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.crewPhoneNumber1 === crewPhoneNumber1).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByCrewPhoneNumber2(crewPhoneNumber2: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.crewPhoneNumber2 === crewPhoneNumber2).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllBaseEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface BaseMedicalControlContactProps {\r\n id: string;\r\n personId: string;\r\n rank: number;\r\n specialty: string | null;\r\n baseId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class BaseMedicalControlContactRecord extends Record({\r\n id: null as any,\r\n personId: null as any,\r\n rank: null as any,\r\n specialty: null as any,\r\n baseId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n personId: string;\r\n rank: number;\r\n specialty: string | null;\r\n baseId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): BaseMedicalControlContactRecord {\r\n if (json == null) {\r\n throw new Error('BaseMedicalControlContactRecord.fromJS: parameter cannot be null');\r\n }\r\n return new BaseMedicalControlContactRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'BaseMedicalControlContactJson.id'),\r\n personId: getFromOrThrow(json, (j) => j.personId, 'BaseMedicalControlContactJson.personId'),\r\n rank: getFromOrThrow(json, (j) => j.rank, 'BaseMedicalControlContactJson.rank'),\r\n specialty: json.specialty,\r\n baseId: getFromOrThrow(json, (j) => j.baseId, 'BaseMedicalControlContactJson.baseId'),\r\n companyId: getFromOrThrow(\r\n json,\r\n (j) => j.companyId,\r\n 'BaseMedicalControlContactJson.companyId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n personId: string;\r\n rank: number;\r\n specialty: string | null;\r\n baseId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [BaseMedicalControlContactRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('BaseMedicalControlContactRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new BaseMedicalControlContactRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'BaseMedicalControlContactJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n personId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.personId, 'BaseMedicalControlContactJson.personId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n rank: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.rank, 'BaseMedicalControlContactJson.rank'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n specialty: tryOrDefault(\r\n () => json.specialty,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.baseId, 'BaseMedicalControlContactJson.baseId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'BaseMedicalControlContactJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: BaseMedicalControlContactProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('BaseMedicalControlContactRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class BaseMedicalControlContactViewModelBase\r\n implements BaseMedicalControlContactProps\r\n{\r\n protected readonly _props: BaseMedicalControlContactProps;\r\n private _json?: BaseMedicalControlContactProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get personId(): string {\r\n return this._props.personId;\r\n }\r\n get rank(): number {\r\n return this._props.rank;\r\n }\r\n get specialty(): string | null {\r\n return this._props.specialty;\r\n }\r\n get baseId(): string {\r\n return this._props.baseId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: BaseMedicalControlContactProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n personId: this._props.personId,\r\n rank: this._props.rank,\r\n specialty: this._props.specialty,\r\n baseId: this._props.baseId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllBaseMedicalControlContactEntities = (state: AppState) =>\r\n state.entityStores.baseMedicalControlContact.entities;\r\n\r\nexport const selectBaseMedicalControlContactById = (id: string) => (state: AppState) =>\r\n state.entityStores.baseMedicalControlContact.entities.get(id);\r\n\r\nexport const selectBaseMedicalControlContactMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.baseMedicalControlContact.meta.get(id);\r\n\r\nexport const selectBaseMedicalControlContactAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectBaseMedicalControlContactById(id),\r\n selectBaseMedicalControlContactMetadataById(id),\r\n (baseMedicalControlContact, meta) => ({ baseMedicalControlContact, meta }),\r\n );\r\n\r\nexport function selectBaseMedicalControlContactEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllBaseMedicalControlContactEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, BaseMedicalControlContactRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectBaseMedicalControlContactEntitiesByPersonId(personId: string) {\r\n return createSelector(selectAllBaseMedicalControlContactEntities, (entities) =>\r\n entities.filter((e) => e.personId === personId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseMedicalControlContactEntitiesByRank(rank: number) {\r\n return createSelector(selectAllBaseMedicalControlContactEntities, (entities) =>\r\n entities.filter((e) => e.rank === rank).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseMedicalControlContactEntitiesBySpecialty(specialty: string) {\r\n return createSelector(selectAllBaseMedicalControlContactEntities, (entities) =>\r\n entities.filter((e) => e.specialty === specialty).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseMedicalControlContactEntitiesByBaseId(baseId: string) {\r\n return createSelector(selectAllBaseMedicalControlContactEntities, (entities) =>\r\n entities.filter((e) => e.baseId === baseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseMedicalControlContactEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllBaseMedicalControlContactEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface BaseMedicalControlContactStateProps {\r\n id: string;\r\n stateAbbrevation: string;\r\n baseMedicalControlContactId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class BaseMedicalControlContactStateRecord extends Record(\r\n {\r\n id: null as any,\r\n stateAbbrevation: null as any,\r\n baseMedicalControlContactId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n },\r\n) {\r\n public static fromJS(json: {\r\n id: string;\r\n stateAbbrevation: string;\r\n baseMedicalControlContactId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): BaseMedicalControlContactStateRecord {\r\n if (json == null) {\r\n throw new Error('BaseMedicalControlContactStateRecord.fromJS: parameter cannot be null');\r\n }\r\n return new BaseMedicalControlContactStateRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'BaseMedicalControlContactStateJson.id'),\r\n stateAbbrevation: getFromOrThrow(\r\n json,\r\n (j) => j.stateAbbrevation,\r\n 'BaseMedicalControlContactStateJson.stateAbbrevation',\r\n ),\r\n baseMedicalControlContactId: json.baseMedicalControlContactId,\r\n companyId: getFromOrThrow(\r\n json,\r\n (j) => j.companyId,\r\n 'BaseMedicalControlContactStateJson.companyId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n stateAbbrevation: string;\r\n baseMedicalControlContactId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [BaseMedicalControlContactStateRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error(\r\n 'BaseMedicalControlContactStateRecord.fromJSUnsafe: parameter cannot be null',\r\n );\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new BaseMedicalControlContactStateRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'BaseMedicalControlContactStateJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n stateAbbrevation: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.stateAbbrevation,\r\n 'BaseMedicalControlContactStateJson.stateAbbrevation',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseMedicalControlContactId: tryOrDefault(\r\n () => json.baseMedicalControlContactId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.companyId, 'BaseMedicalControlContactStateJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: BaseMedicalControlContactStateProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('BaseMedicalControlContactStateRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class BaseMedicalControlContactStateViewModelBase\r\n implements BaseMedicalControlContactStateProps\r\n{\r\n protected readonly _props: BaseMedicalControlContactStateProps;\r\n private _json?: BaseMedicalControlContactStateProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get stateAbbrevation(): string {\r\n return this._props.stateAbbrevation;\r\n }\r\n get baseMedicalControlContactId(): string | null {\r\n return this._props.baseMedicalControlContactId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: BaseMedicalControlContactStateProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n stateAbbrevation: this._props.stateAbbrevation,\r\n baseMedicalControlContactId: this._props.baseMedicalControlContactId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllBaseMedicalControlContactStateEntities = (state: AppState) =>\r\n state.entityStores.baseMedicalControlContactState.entities;\r\n\r\nexport const selectBaseMedicalControlContactStateById = (id: string) => (state: AppState) =>\r\n state.entityStores.baseMedicalControlContactState.entities.get(id);\r\n\r\nexport const selectBaseMedicalControlContactStateMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.baseMedicalControlContactState.meta.get(id);\r\n\r\nexport const selectBaseMedicalControlContactStateAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectBaseMedicalControlContactStateById(id),\r\n selectBaseMedicalControlContactStateMetadataById(id),\r\n (baseMedicalControlContactState, meta) => ({ baseMedicalControlContactState, meta }),\r\n );\r\n\r\nexport function selectBaseMedicalControlContactStateEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllBaseMedicalControlContactStateEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, BaseMedicalControlContactStateRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectBaseMedicalControlContactStateEntitiesByStateAbbrevation(\r\n stateAbbrevation: string,\r\n) {\r\n return createSelector(selectAllBaseMedicalControlContactStateEntities, (entities) =>\r\n entities.filter((e) => e.stateAbbrevation === stateAbbrevation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseMedicalControlContactStateEntitiesByBaseMedicalControlContactId(\r\n baseMedicalControlContactId: string,\r\n) {\r\n return createSelector(selectAllBaseMedicalControlContactStateEntities, (entities) =>\r\n entities\r\n .filter((e) => e.baseMedicalControlContactId === baseMedicalControlContactId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectBaseMedicalControlContactStateEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllBaseMedicalControlContactStateEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { EntityType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CapabilityProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CapabilityRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n description: null as any,\r\n entityType: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CapabilityRecord {\r\n if (json == null) {\r\n throw new Error('CapabilityRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CapabilityRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CapabilityJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'CapabilityJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'CapabilityJson.abbreviation'),\r\n description: getFromOrThrow(json, (j) => j.description, 'CapabilityJson.description'),\r\n entityType: getFromOrThrow(json, (j) => j.entityType, 'CapabilityJson.entityType'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n description: string;\r\n entityType: EntityType;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CapabilityRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CapabilityRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CapabilityRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CapabilityJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'CapabilityJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'CapabilityJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n description: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.description, 'CapabilityJson.description'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.entityType, 'CapabilityJson.entityType'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CapabilityProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CapabilityRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CapabilityViewModelBase implements CapabilityProps {\r\n protected readonly _props: CapabilityProps;\r\n private _json?: CapabilityProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get description(): string {\r\n return this._props.description;\r\n }\r\n get entityType(): EntityType {\r\n return this._props.entityType;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAirport() {\r\n return this._props.entityType === EntityType.Airport;\r\n }\r\n public get isBase() {\r\n return this._props.entityType === EntityType.Base;\r\n }\r\n public get isCard() {\r\n return this._props.entityType === EntityType.Card;\r\n }\r\n public get isCommunicationCenter() {\r\n return this._props.entityType === EntityType.CommunicationCenter;\r\n }\r\n public get isCompany() {\r\n return this._props.entityType === EntityType.Company;\r\n }\r\n public get isControlZone() {\r\n return this._props.entityType === EntityType.ControlZone;\r\n }\r\n public get isLocation() {\r\n return this._props.entityType === EntityType.Location;\r\n }\r\n public get isMedicalFacility() {\r\n return this._props.entityType === EntityType.MedicalFacility;\r\n }\r\n public get isOutOfServiceEvent() {\r\n return this._props.entityType === EntityType.OutOfServiceEvent;\r\n }\r\n public get isPerson() {\r\n return this._props.entityType === EntityType.Person;\r\n }\r\n public get isProgram() {\r\n return this._props.entityType === EntityType.Program;\r\n }\r\n public get isRegion() {\r\n return this._props.entityType === EntityType.Region;\r\n }\r\n public get isTimer() {\r\n return this._props.entityType === EntityType.Timer;\r\n }\r\n public get isUnit() {\r\n return this._props.entityType === EntityType.Unit;\r\n }\r\n public get isUnspecified() {\r\n return this._props.entityType === EntityType.Unspecified;\r\n }\r\n public get isVehicle() {\r\n return this._props.entityType === EntityType.Vehicle;\r\n }\r\n\r\n public isAnyEntityType(...entityType: EntityType[]) {\r\n return entityType.includes(this._props.entityType);\r\n }\r\n\r\n constructor(props: CapabilityProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n description: this._props.description,\r\n entityType: this._props.entityType,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCapabilityEntities = (state: AppState) =>\r\n state.entityStores.capability.entities;\r\n\r\nexport const selectCapabilityById = (id: string) => (state: AppState) =>\r\n state.entityStores.capability.entities.get(id);\r\n\r\nexport const selectCapabilityMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.capability.meta.get(id);\r\n\r\nexport const selectCapabilityAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectCapabilityById(id),\r\n selectCapabilityMetadataById(id),\r\n (capability, meta) => ({ capability, meta }),\r\n );\r\n\r\nexport function selectCapabilityEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCapabilityEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CapabilityRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCapabilityEntitiesByName(name: string) {\r\n return createSelector(selectAllCapabilityEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCapabilityEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllCapabilityEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCapabilityEntitiesByDescription(description: string) {\r\n return createSelector(selectAllCapabilityEntities, (entities) =>\r\n entities.filter((e) => e.description === description).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCapabilityEntitiesByEntityType(entityType: EntityType) {\r\n return createSelector(selectAllCapabilityEntities, (entities) =>\r\n entities.filter((e) => e.entityType === entityType).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CommunicationCenterProps {\r\n id: string;\r\n name: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n states: List | null;\r\n includeCompetitors: boolean;\r\n showReferToGmrWarning: boolean | null;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CommunicationCenterRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n timezoneCd: null as any,\r\n primaryPhoneNumber: null as any,\r\n emailAddress: null as any,\r\n states: null as any,\r\n includeCompetitors: null as any,\r\n showReferToGmrWarning: null as any,\r\n playAlertForManualPositionReports: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n states: any;\r\n includeCompetitors: boolean;\r\n showReferToGmrWarning: boolean | null;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CommunicationCenterRecord {\r\n if (json == null) {\r\n throw new Error('CommunicationCenterRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CommunicationCenterRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CommunicationCenterJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'CommunicationCenterJson.name'),\r\n timezoneCd: json.timezoneCd,\r\n primaryPhoneNumber: json.primaryPhoneNumber,\r\n emailAddress: json.emailAddress,\r\n states: json.states != null ? List(json.states.map((o: any) => new String(o))) : null,\r\n includeCompetitors: getFromOrThrow(\r\n json,\r\n (j) => j.includeCompetitors,\r\n 'CommunicationCenterJson.includeCompetitors',\r\n ),\r\n showReferToGmrWarning: json.showReferToGmrWarning,\r\n playAlertForManualPositionReports: getFromOrThrow(\r\n json,\r\n (j) => j.playAlertForManualPositionReports,\r\n 'CommunicationCenterJson.playAlertForManualPositionReports',\r\n ),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'CommunicationCenterJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n timezoneCd: string | null;\r\n primaryPhoneNumber: string | null;\r\n emailAddress: string | null;\r\n states: any;\r\n includeCompetitors: boolean;\r\n showReferToGmrWarning: boolean | null;\r\n playAlertForManualPositionReports: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CommunicationCenterRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CommunicationCenterRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CommunicationCenterRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CommunicationCenterJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'CommunicationCenterJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timezoneCd: tryOrDefault(\r\n () => json.timezoneCd,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n primaryPhoneNumber: tryOrDefault(\r\n () => json.primaryPhoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n emailAddress: tryOrDefault(\r\n () => json.emailAddress,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n states: tryOrDefault(\r\n () =>\r\n json.states != null ? List(json.states.map((o: any) => new String(o))) : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n includeCompetitors: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.includeCompetitors,\r\n 'CommunicationCenterJson.includeCompetitors',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n showReferToGmrWarning: tryOrDefault(\r\n () => json.showReferToGmrWarning,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n playAlertForManualPositionReports: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.playAlertForManualPositionReports,\r\n 'CommunicationCenterJson.playAlertForManualPositionReports',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'CommunicationCenterJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CommunicationCenterProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CommunicationCenterRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CommunicationCenterViewModelBase implements CommunicationCenterProps {\r\n protected readonly _props: CommunicationCenterProps;\r\n private _json?: CommunicationCenterProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get timezoneCd(): string | null {\r\n return this._props.timezoneCd;\r\n }\r\n get primaryPhoneNumber(): string | null {\r\n return this._props.primaryPhoneNumber;\r\n }\r\n get emailAddress(): string | null {\r\n return this._props.emailAddress;\r\n }\r\n get states(): List | null {\r\n return this._props.states;\r\n }\r\n get includeCompetitors(): boolean {\r\n return this._props.includeCompetitors;\r\n }\r\n get showReferToGmrWarning(): boolean | null {\r\n return this._props.showReferToGmrWarning;\r\n }\r\n get playAlertForManualPositionReports(): boolean {\r\n return this._props.playAlertForManualPositionReports;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: CommunicationCenterProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n timezoneCd: this._props.timezoneCd,\r\n primaryPhoneNumber: this._props.primaryPhoneNumber,\r\n emailAddress: this._props.emailAddress,\r\n states: this._props.states,\r\n includeCompetitors: this._props.includeCompetitors,\r\n showReferToGmrWarning: this._props.showReferToGmrWarning,\r\n playAlertForManualPositionReports: this._props.playAlertForManualPositionReports,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCommunicationCenterEntities = (state: AppState) =>\r\n state.entityStores.communicationCenter.entities;\r\n\r\nexport const selectCommunicationCenterById = (id: string) => (state: AppState) =>\r\n state.entityStores.communicationCenter.entities.get(id);\r\n\r\nexport const selectCommunicationCenterMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.communicationCenter.meta.get(id);\r\n\r\nexport const selectCommunicationCenterAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectCommunicationCenterById(id),\r\n selectCommunicationCenterMetadataById(id),\r\n (communicationCenter, meta) => ({ communicationCenter, meta }),\r\n );\r\n\r\nexport function selectCommunicationCenterEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCommunicationCenterEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CommunicationCenterRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterEntitiesByName(name: string) {\r\n return createSelector(selectAllCommunicationCenterEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterEntitiesByTimezoneCd(timezoneCd: string) {\r\n return createSelector(selectAllCommunicationCenterEntities, (entities) =>\r\n entities.filter((e) => e.timezoneCd === timezoneCd).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterEntitiesByPrimaryPhoneNumber(primaryPhoneNumber: string) {\r\n return createSelector(selectAllCommunicationCenterEntities, (entities) =>\r\n entities.filter((e) => e.primaryPhoneNumber === primaryPhoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterEntitiesByEmailAddress(emailAddress: string) {\r\n return createSelector(selectAllCommunicationCenterEntities, (entities) =>\r\n entities.filter((e) => e.emailAddress === emailAddress).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterEntitiesByIncludeCompetitors(includeCompetitors: boolean) {\r\n return createSelector(selectAllCommunicationCenterEntities, (entities) =>\r\n entities.filter((e) => e.includeCompetitors === includeCompetitors).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterEntitiesByShowReferToGmrWarning(\r\n showReferToGmrWarning: boolean,\r\n) {\r\n return createSelector(selectAllCommunicationCenterEntities, (entities) =>\r\n entities.filter((e) => e.showReferToGmrWarning === showReferToGmrWarning).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterEntitiesByPlayAlertForManualPositionReports(\r\n playAlertForManualPositionReports: boolean,\r\n) {\r\n return createSelector(selectAllCommunicationCenterEntities, (entities) =>\r\n entities\r\n .filter((e) => e.playAlertForManualPositionReports === playAlertForManualPositionReports)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllCommunicationCenterEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RequiredCapabilityIdListProps {\r\n id: string;\r\n}\r\n\r\nexport class RequiredCapabilityIdListRecord extends Record({\r\n id: null as any,\r\n}) {\r\n public static fromJS(json: { id: string }): RequiredCapabilityIdListRecord {\r\n if (json == null) {\r\n throw new Error('RequiredCapabilityIdListRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RequiredCapabilityIdListRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RequiredCapabilityIdListJson.id'),\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: { id: string }): [RequiredCapabilityIdListRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RequiredCapabilityIdListRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RequiredCapabilityIdListRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RequiredCapabilityIdListJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RequiredCapabilityIdListProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RequiredCapabilityIdListRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RequiredCapabilityIdListViewModelBase\r\n implements RequiredCapabilityIdListProps\r\n{\r\n protected readonly _props: RequiredCapabilityIdListProps;\r\n private _json?: RequiredCapabilityIdListProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n\r\n constructor(props: RequiredCapabilityIdListProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n FlightRule,\r\n TransportOfferAlgorithm,\r\n VehicleType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n RequiredCapabilityIdListRecord,\r\n RequiredCapabilityIdListProps,\r\n} from 'src/store/generated/required-capability-id-list-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CommunicationCenterTransportOfferOptionProps {\r\n id: string;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n includeAbortedUnit: boolean;\r\n requiredCapabilities: List;\r\n communicationCenterId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CommunicationCenterTransportOfferOptionRecord extends Record(\r\n {\r\n id: null as any,\r\n requestedVehicleType: null as any,\r\n transportOfferAlgorithm: null as any,\r\n minimumFlightRule: null as any,\r\n includeCompetitors: null as any,\r\n includeAbortedUnit: null as any,\r\n requiredCapabilities: null as any,\r\n communicationCenterId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n },\r\n) {\r\n public static fromJS(json: {\r\n id: string;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n includeAbortedUnit: boolean;\r\n requiredCapabilities: any;\r\n communicationCenterId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CommunicationCenterTransportOfferOptionRecord {\r\n if (json == null) {\r\n throw new Error(\r\n 'CommunicationCenterTransportOfferOptionRecord.fromJS: parameter cannot be null',\r\n );\r\n }\r\n return new CommunicationCenterTransportOfferOptionRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CommunicationCenterTransportOfferOptionJson.id'),\r\n requestedVehicleType: json.requestedVehicleType,\r\n transportOfferAlgorithm: json.transportOfferAlgorithm,\r\n minimumFlightRule: json.minimumFlightRule,\r\n includeCompetitors: json.includeCompetitors,\r\n includeAbortedUnit: getFromOrThrow(\r\n json,\r\n (j) => j.includeAbortedUnit,\r\n 'CommunicationCenterTransportOfferOptionJson.includeAbortedUnit',\r\n ),\r\n requiredCapabilities: List(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requiredCapabilities,\r\n 'CommunicationCenterTransportOfferOptionJson.requiredCapabilities',\r\n ).map((o: any) => new RequiredCapabilityIdListRecord(o)),\r\n ),\r\n communicationCenterId: json.communicationCenterId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n requestedVehicleType: VehicleType | null;\r\n transportOfferAlgorithm: TransportOfferAlgorithm | null;\r\n minimumFlightRule: FlightRule | null;\r\n includeCompetitors: boolean | null;\r\n includeAbortedUnit: boolean;\r\n requiredCapabilities: any;\r\n communicationCenterId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CommunicationCenterTransportOfferOptionRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error(\r\n 'CommunicationCenterTransportOfferOptionRecord.fromJSUnsafe: parameter cannot be null',\r\n );\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CommunicationCenterTransportOfferOptionRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CommunicationCenterTransportOfferOptionJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requestedVehicleType: tryOrDefault(\r\n () => json.requestedVehicleType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportOfferAlgorithm: tryOrDefault(\r\n () => json.transportOfferAlgorithm,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n minimumFlightRule: tryOrDefault(\r\n () => json.minimumFlightRule,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n includeCompetitors: tryOrDefault(\r\n () => json.includeCompetitors,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n includeAbortedUnit: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.includeAbortedUnit,\r\n 'CommunicationCenterTransportOfferOptionJson.includeAbortedUnit',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requiredCapabilities: tryOrDefault(\r\n () =>\r\n List(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.requiredCapabilities,\r\n 'CommunicationCenterTransportOfferOptionJson.requiredCapabilities',\r\n ).map((o: any) => new RequiredCapabilityIdListRecord(o)),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n communicationCenterId: tryOrDefault(\r\n () => json.communicationCenterId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CommunicationCenterTransportOfferOptionProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error(\r\n 'CommunicationCenterTransportOfferOptionRecord constructor parameter cannot be null',\r\n );\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CommunicationCenterTransportOfferOptionViewModelBase\r\n implements CommunicationCenterTransportOfferOptionProps\r\n{\r\n protected readonly _props: CommunicationCenterTransportOfferOptionProps;\r\n private _json?: CommunicationCenterTransportOfferOptionProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get requestedVehicleType(): VehicleType | null {\r\n return this._props.requestedVehicleType;\r\n }\r\n get transportOfferAlgorithm(): TransportOfferAlgorithm | null {\r\n return this._props.transportOfferAlgorithm;\r\n }\r\n get minimumFlightRule(): FlightRule | null {\r\n return this._props.minimumFlightRule;\r\n }\r\n get includeCompetitors(): boolean | null {\r\n return this._props.includeCompetitors;\r\n }\r\n get includeAbortedUnit(): boolean {\r\n return this._props.includeAbortedUnit;\r\n }\r\n get requiredCapabilities(): List {\r\n return this._props.requiredCapabilities;\r\n }\r\n get communicationCenterId(): string | null {\r\n return this._props.communicationCenterId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isFixedWing() {\r\n return this._props.requestedVehicleType === VehicleType.FixedWing;\r\n }\r\n public get isGround() {\r\n return this._props.requestedVehicleType === VehicleType.Ground;\r\n }\r\n public get isRotorWing() {\r\n return this._props.requestedVehicleType === VehicleType.RotorWing;\r\n }\r\n public get isUnspecified() {\r\n return this._props.requestedVehicleType === VehicleType.Unspecified;\r\n }\r\n public get isShortestDistance() {\r\n return this._props.transportOfferAlgorithm === TransportOfferAlgorithm.ShortestDistance;\r\n }\r\n public get isShortestEta() {\r\n return this._props.transportOfferAlgorithm === TransportOfferAlgorithm.ShortestEta;\r\n }\r\n public get isIfr() {\r\n return this._props.minimumFlightRule === FlightRule.Ifr;\r\n }\r\n public get isNone() {\r\n return this._props.minimumFlightRule === FlightRule.None;\r\n }\r\n public get isVfr() {\r\n return this._props.minimumFlightRule === FlightRule.Vfr;\r\n }\r\n\r\n public isAnyRequestedVehicleType(...vehicleType: VehicleType[]) {\r\n return (\r\n this._props.requestedVehicleType != null &&\r\n vehicleType.includes(this._props.requestedVehicleType)\r\n );\r\n }\r\n public isAnyTransportOfferAlgorithm(...transportOfferAlgorithm: TransportOfferAlgorithm[]) {\r\n return (\r\n this._props.transportOfferAlgorithm != null &&\r\n transportOfferAlgorithm.includes(this._props.transportOfferAlgorithm)\r\n );\r\n }\r\n public isAnyMinimumFlightRule(...flightRule: FlightRule[]) {\r\n return (\r\n this._props.minimumFlightRule != null && flightRule.includes(this._props.minimumFlightRule)\r\n );\r\n }\r\n\r\n constructor(props: CommunicationCenterTransportOfferOptionProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n requestedVehicleType: this._props.requestedVehicleType,\r\n transportOfferAlgorithm: this._props.transportOfferAlgorithm,\r\n minimumFlightRule: this._props.minimumFlightRule,\r\n includeCompetitors: this._props.includeCompetitors,\r\n includeAbortedUnit: this._props.includeAbortedUnit,\r\n requiredCapabilities: this._props.requiredCapabilities,\r\n communicationCenterId: this._props.communicationCenterId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCommunicationCenterTransportOfferOptionEntities = (state: AppState) =>\r\n state.entityStores.communicationCenterTransportOfferOption.entities;\r\n\r\nexport const selectCommunicationCenterTransportOfferOptionById =\r\n (id: string) => (state: AppState) =>\r\n state.entityStores.communicationCenterTransportOfferOption.entities.get(id);\r\n\r\nexport const selectCommunicationCenterTransportOfferOptionMetadataById =\r\n (id: string) => (state: AppState) =>\r\n state.entityStores.communicationCenterTransportOfferOption.meta.get(id);\r\n\r\nexport const selectCommunicationCenterTransportOfferOptionAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectCommunicationCenterTransportOfferOptionById(id),\r\n selectCommunicationCenterTransportOfferOptionMetadataById(id),\r\n (communicationCenterTransportOfferOption, meta) => ({\r\n communicationCenterTransportOfferOption,\r\n meta,\r\n }),\r\n );\r\n\r\nexport function selectCommunicationCenterTransportOfferOptionEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCommunicationCenterTransportOfferOptionEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CommunicationCenterTransportOfferOptionRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterTransportOfferOptionEntitiesByRequestedVehicleType(\r\n requestedVehicleType: VehicleType,\r\n) {\r\n return createSelector(selectAllCommunicationCenterTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.requestedVehicleType === requestedVehicleType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterTransportOfferOptionEntitiesByTransportOfferAlgorithm(\r\n transportOfferAlgorithm: TransportOfferAlgorithm,\r\n) {\r\n return createSelector(selectAllCommunicationCenterTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.transportOfferAlgorithm === transportOfferAlgorithm).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterTransportOfferOptionEntitiesByMinimumFlightRule(\r\n minimumFlightRule: FlightRule,\r\n) {\r\n return createSelector(selectAllCommunicationCenterTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.minimumFlightRule === minimumFlightRule).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterTransportOfferOptionEntitiesByIncludeCompetitors(\r\n includeCompetitors: boolean,\r\n) {\r\n return createSelector(selectAllCommunicationCenterTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.includeCompetitors === includeCompetitors).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterTransportOfferOptionEntitiesByIncludeAbortedUnit(\r\n includeAbortedUnit: boolean,\r\n) {\r\n return createSelector(selectAllCommunicationCenterTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.includeAbortedUnit === includeAbortedUnit).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCommunicationCenterTransportOfferOptionEntitiesByCommunicationCenterId(\r\n communicationCenterId: string,\r\n) {\r\n return createSelector(selectAllCommunicationCenterTransportOfferOptionEntities, (entities) =>\r\n entities.filter((e) => e.communicationCenterId === communicationCenterId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { FlightFollowingField } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CompanyProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: Set | null;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CompanyRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n companyCode: null as any,\r\n includeCompetitors: null as any,\r\n hasPrivateUnits: null as any,\r\n isOemCompany: null as any,\r\n imageUri: null as any,\r\n gLCode: null as any,\r\n gpsFeedResetsPositionReportTime: null as any,\r\n callNumberPrefix: null as any,\r\n timezoneCd: null as any,\r\n flightFollowingFields: null as any,\r\n requireSkipReasonsForNonCompanyTransportOffers: null as any,\r\n crewPatientInfoPageNotificationTemplateId: null as any,\r\n unitRemainsInServiceWithNoVehicle: null as any,\r\n enableNotificationGroupTypes: null as any,\r\n transportCheckTimerDurationInMinutes: null as any,\r\n restrictRiskAnalysisAcknowledgementToOCCRole: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: any;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CompanyRecord {\r\n if (json == null) {\r\n throw new Error('CompanyRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CompanyRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CompanyJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'CompanyJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'CompanyJson.abbreviation'),\r\n companyCode: getFromOrThrow(json, (j) => j.companyCode, 'CompanyJson.companyCode'),\r\n includeCompetitors: getFromOrThrow(\r\n json,\r\n (j) => j.includeCompetitors,\r\n 'CompanyJson.includeCompetitors',\r\n ),\r\n hasPrivateUnits: getFromOrThrow(\r\n json,\r\n (j) => j.hasPrivateUnits,\r\n 'CompanyJson.hasPrivateUnits',\r\n ),\r\n isOemCompany: getFromOrThrow(json, (j) => j.isOemCompany, 'CompanyJson.isOemCompany'),\r\n imageUri: json.imageUri,\r\n gLCode: json.gLCode,\r\n gpsFeedResetsPositionReportTime: getFromOrThrow(\r\n json,\r\n (j) => j.gpsFeedResetsPositionReportTime,\r\n 'CompanyJson.gpsFeedResetsPositionReportTime',\r\n ),\r\n callNumberPrefix: json.callNumberPrefix,\r\n timezoneCd: json.timezoneCd,\r\n flightFollowingFields:\r\n json.flightFollowingFields != null\r\n ? Set(json.flightFollowingFields)\r\n : null,\r\n requireSkipReasonsForNonCompanyTransportOffers:\r\n json.requireSkipReasonsForNonCompanyTransportOffers,\r\n crewPatientInfoPageNotificationTemplateId: json.crewPatientInfoPageNotificationTemplateId,\r\n unitRemainsInServiceWithNoVehicle: getFromOrThrow(\r\n json,\r\n (j) => j.unitRemainsInServiceWithNoVehicle,\r\n 'CompanyJson.unitRemainsInServiceWithNoVehicle',\r\n ),\r\n enableNotificationGroupTypes: getFromOrThrow(\r\n json,\r\n (j) => j.enableNotificationGroupTypes,\r\n 'CompanyJson.enableNotificationGroupTypes',\r\n ),\r\n transportCheckTimerDurationInMinutes: json.transportCheckTimerDurationInMinutes,\r\n restrictRiskAnalysisAcknowledgementToOCCRole: getFromOrThrow(\r\n json,\r\n (j) => j.restrictRiskAnalysisAcknowledgementToOCCRole,\r\n 'CompanyJson.restrictRiskAnalysisAcknowledgementToOCCRole',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n companyCode: string;\r\n includeCompetitors: boolean;\r\n hasPrivateUnits: boolean;\r\n isOemCompany: boolean;\r\n imageUri: string | null;\r\n gLCode: string | null;\r\n gpsFeedResetsPositionReportTime: boolean;\r\n callNumberPrefix: string | null;\r\n timezoneCd: string | null;\r\n flightFollowingFields: any;\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean | null;\r\n crewPatientInfoPageNotificationTemplateId: string | null;\r\n unitRemainsInServiceWithNoVehicle: boolean;\r\n enableNotificationGroupTypes: boolean;\r\n transportCheckTimerDurationInMinutes: number | null;\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CompanyRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CompanyRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CompanyRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CompanyJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'CompanyJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'CompanyJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyCode: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyCode, 'CompanyJson.companyCode'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n includeCompetitors: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.includeCompetitors, 'CompanyJson.includeCompetitors'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n hasPrivateUnits: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.hasPrivateUnits, 'CompanyJson.hasPrivateUnits'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isOemCompany: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isOemCompany, 'CompanyJson.isOemCompany'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n imageUri: tryOrDefault(\r\n () => json.imageUri,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n gLCode: tryOrDefault(\r\n () => json.gLCode,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n gpsFeedResetsPositionReportTime: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.gpsFeedResetsPositionReportTime,\r\n 'CompanyJson.gpsFeedResetsPositionReportTime',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n callNumberPrefix: tryOrDefault(\r\n () => json.callNumberPrefix,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timezoneCd: tryOrDefault(\r\n () => json.timezoneCd,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n flightFollowingFields: tryOrDefault(\r\n () =>\r\n json.flightFollowingFields != null\r\n ? Set(json.flightFollowingFields)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n requireSkipReasonsForNonCompanyTransportOffers: tryOrDefault(\r\n () => json.requireSkipReasonsForNonCompanyTransportOffers,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n crewPatientInfoPageNotificationTemplateId: tryOrDefault(\r\n () => json.crewPatientInfoPageNotificationTemplateId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitRemainsInServiceWithNoVehicle: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.unitRemainsInServiceWithNoVehicle,\r\n 'CompanyJson.unitRemainsInServiceWithNoVehicle',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n enableNotificationGroupTypes: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.enableNotificationGroupTypes,\r\n 'CompanyJson.enableNotificationGroupTypes',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n transportCheckTimerDurationInMinutes: tryOrDefault(\r\n () => json.transportCheckTimerDurationInMinutes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n restrictRiskAnalysisAcknowledgementToOCCRole: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.restrictRiskAnalysisAcknowledgementToOCCRole,\r\n 'CompanyJson.restrictRiskAnalysisAcknowledgementToOCCRole',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CompanyProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CompanyRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CompanyViewModelBase implements CompanyProps {\r\n protected readonly _props: CompanyProps;\r\n private _json?: CompanyProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get companyCode(): string {\r\n return this._props.companyCode;\r\n }\r\n get includeCompetitors(): boolean {\r\n return this._props.includeCompetitors;\r\n }\r\n get hasPrivateUnits(): boolean {\r\n return this._props.hasPrivateUnits;\r\n }\r\n get isOemCompany(): boolean {\r\n return this._props.isOemCompany;\r\n }\r\n get imageUri(): string | null {\r\n return this._props.imageUri;\r\n }\r\n get gLCode(): string | null {\r\n return this._props.gLCode;\r\n }\r\n get gpsFeedResetsPositionReportTime(): boolean {\r\n return this._props.gpsFeedResetsPositionReportTime;\r\n }\r\n get callNumberPrefix(): string | null {\r\n return this._props.callNumberPrefix;\r\n }\r\n get timezoneCd(): string | null {\r\n return this._props.timezoneCd;\r\n }\r\n get flightFollowingFields(): Set | null {\r\n return this._props.flightFollowingFields;\r\n }\r\n get requireSkipReasonsForNonCompanyTransportOffers(): boolean | null {\r\n return this._props.requireSkipReasonsForNonCompanyTransportOffers;\r\n }\r\n get crewPatientInfoPageNotificationTemplateId(): string | null {\r\n return this._props.crewPatientInfoPageNotificationTemplateId;\r\n }\r\n get unitRemainsInServiceWithNoVehicle(): boolean {\r\n return this._props.unitRemainsInServiceWithNoVehicle;\r\n }\r\n get enableNotificationGroupTypes(): boolean {\r\n return this._props.enableNotificationGroupTypes;\r\n }\r\n get transportCheckTimerDurationInMinutes(): number | null {\r\n return this._props.transportCheckTimerDurationInMinutes;\r\n }\r\n get restrictRiskAnalysisAcknowledgementToOCCRole(): boolean {\r\n return this._props.restrictRiskAnalysisAcknowledgementToOCCRole;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: CompanyProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n companyCode: this._props.companyCode,\r\n includeCompetitors: this._props.includeCompetitors,\r\n hasPrivateUnits: this._props.hasPrivateUnits,\r\n isOemCompany: this._props.isOemCompany,\r\n imageUri: this._props.imageUri,\r\n gLCode: this._props.gLCode,\r\n gpsFeedResetsPositionReportTime: this._props.gpsFeedResetsPositionReportTime,\r\n callNumberPrefix: this._props.callNumberPrefix,\r\n timezoneCd: this._props.timezoneCd,\r\n flightFollowingFields: this._props.flightFollowingFields,\r\n requireSkipReasonsForNonCompanyTransportOffers:\r\n this._props.requireSkipReasonsForNonCompanyTransportOffers,\r\n crewPatientInfoPageNotificationTemplateId:\r\n this._props.crewPatientInfoPageNotificationTemplateId,\r\n unitRemainsInServiceWithNoVehicle: this._props.unitRemainsInServiceWithNoVehicle,\r\n enableNotificationGroupTypes: this._props.enableNotificationGroupTypes,\r\n transportCheckTimerDurationInMinutes: this._props.transportCheckTimerDurationInMinutes,\r\n restrictRiskAnalysisAcknowledgementToOCCRole:\r\n this._props.restrictRiskAnalysisAcknowledgementToOCCRole,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCompanyEntities = (state: AppState) => state.entityStores.company.entities;\r\n\r\nexport const selectCompanyById = (id: string) => (state: AppState) =>\r\n state.entityStores.company.entities.get(id);\r\n\r\nexport const selectCompanyMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.company.meta.get(id);\r\n\r\nexport const selectCompanyAndMetadataById = (id: string) =>\r\n createSelector(selectCompanyById(id), selectCompanyMetadataById(id), (company, meta) => ({\r\n company,\r\n meta,\r\n }));\r\n\r\nexport function selectCompanyEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCompanyEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CompanyRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByName(name: string) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByCompanyCode(companyCode: string) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities.filter((e) => e.companyCode === companyCode).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByIncludeCompetitors(includeCompetitors: boolean) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities.filter((e) => e.includeCompetitors === includeCompetitors).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByHasPrivateUnits(hasPrivateUnits: boolean) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities.filter((e) => e.hasPrivateUnits === hasPrivateUnits).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByIsOemCompany(isOemCompany: boolean) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities.filter((e) => e.isOemCompany === isOemCompany).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByImageUri(imageUri: string) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities.filter((e) => e.imageUri === imageUri).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByGLCode(gLCode: string) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities.filter((e) => e.gLCode === gLCode).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByGpsFeedResetsPositionReportTime(\r\n gpsFeedResetsPositionReportTime: boolean,\r\n) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities\r\n .filter((e) => e.gpsFeedResetsPositionReportTime === gpsFeedResetsPositionReportTime)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByCallNumberPrefix(callNumberPrefix: string) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities.filter((e) => e.callNumberPrefix === callNumberPrefix).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByTimezoneCd(timezoneCd: string) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities.filter((e) => e.timezoneCd === timezoneCd).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByRequireSkipReasonsForNonCompanyTransportOffers(\r\n requireSkipReasonsForNonCompanyTransportOffers: boolean,\r\n) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) =>\r\n e.requireSkipReasonsForNonCompanyTransportOffers ===\r\n requireSkipReasonsForNonCompanyTransportOffers,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByCrewPatientInfoPageNotificationTemplateId(\r\n crewPatientInfoPageNotificationTemplateId: string,\r\n) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) =>\r\n e.crewPatientInfoPageNotificationTemplateId === crewPatientInfoPageNotificationTemplateId,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByUnitRemainsInServiceWithNoVehicle(\r\n unitRemainsInServiceWithNoVehicle: boolean,\r\n) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities\r\n .filter((e) => e.unitRemainsInServiceWithNoVehicle === unitRemainsInServiceWithNoVehicle)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByEnableNotificationGroupTypes(\r\n enableNotificationGroupTypes: boolean,\r\n) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities\r\n .filter((e) => e.enableNotificationGroupTypes === enableNotificationGroupTypes)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByTransportCheckTimerDurationInMinutes(\r\n transportCheckTimerDurationInMinutes: number,\r\n) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) => e.transportCheckTimerDurationInMinutes === transportCheckTimerDurationInMinutes,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompanyEntitiesByRestrictRiskAnalysisAcknowledgementToOCCRole(\r\n restrictRiskAnalysisAcknowledgementToOCCRole: boolean,\r\n) {\r\n return createSelector(selectAllCompanyEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) =>\r\n e.restrictRiskAnalysisAcknowledgementToOCCRole ===\r\n restrictRiskAnalysisAcknowledgementToOCCRole,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface CompleteFlightInstanceProps {\r\n id: string;\r\n completeFlightInstanceName: string;\r\n url: string;\r\n username: string;\r\n apiKey: string;\r\n isPrimary: boolean;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class CompleteFlightInstanceRecord extends Record({\r\n id: null as any,\r\n completeFlightInstanceName: null as any,\r\n url: null as any,\r\n username: null as any,\r\n apiKey: null as any,\r\n isPrimary: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n completeFlightInstanceName: string;\r\n url: string;\r\n username: string;\r\n apiKey: string;\r\n isPrimary: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): CompleteFlightInstanceRecord {\r\n if (json == null) {\r\n throw new Error('CompleteFlightInstanceRecord.fromJS: parameter cannot be null');\r\n }\r\n return new CompleteFlightInstanceRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'CompleteFlightInstanceJson.id'),\r\n completeFlightInstanceName: getFromOrThrow(\r\n json,\r\n (j) => j.completeFlightInstanceName,\r\n 'CompleteFlightInstanceJson.completeFlightInstanceName',\r\n ),\r\n url: getFromOrThrow(json, (j) => j.url, 'CompleteFlightInstanceJson.url'),\r\n username: getFromOrThrow(json, (j) => j.username, 'CompleteFlightInstanceJson.username'),\r\n apiKey: getFromOrThrow(json, (j) => j.apiKey, 'CompleteFlightInstanceJson.apiKey'),\r\n isPrimary: getFromOrThrow(json, (j) => j.isPrimary, 'CompleteFlightInstanceJson.isPrimary'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n completeFlightInstanceName: string;\r\n url: string;\r\n username: string;\r\n apiKey: string;\r\n isPrimary: boolean;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [CompleteFlightInstanceRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('CompleteFlightInstanceRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new CompleteFlightInstanceRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'CompleteFlightInstanceJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n completeFlightInstanceName: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.completeFlightInstanceName,\r\n 'CompleteFlightInstanceJson.completeFlightInstanceName',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n url: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.url, 'CompleteFlightInstanceJson.url'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n username: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.username, 'CompleteFlightInstanceJson.username'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n apiKey: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.apiKey, 'CompleteFlightInstanceJson.apiKey'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isPrimary: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isPrimary, 'CompleteFlightInstanceJson.isPrimary'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: CompleteFlightInstanceProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('CompleteFlightInstanceRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class CompleteFlightInstanceViewModelBase implements CompleteFlightInstanceProps {\r\n protected readonly _props: CompleteFlightInstanceProps;\r\n private _json?: CompleteFlightInstanceProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get completeFlightInstanceName(): string {\r\n return this._props.completeFlightInstanceName;\r\n }\r\n get url(): string {\r\n return this._props.url;\r\n }\r\n get username(): string {\r\n return this._props.username;\r\n }\r\n get apiKey(): string {\r\n return this._props.apiKey;\r\n }\r\n get isPrimary(): boolean {\r\n return this._props.isPrimary;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: CompleteFlightInstanceProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n completeFlightInstanceName: this._props.completeFlightInstanceName,\r\n url: this._props.url,\r\n username: this._props.username,\r\n apiKey: this._props.apiKey,\r\n isPrimary: this._props.isPrimary,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllCompleteFlightInstanceEntities = (state: AppState) =>\r\n state.entityStores.completeFlightInstance.entities;\r\n\r\nexport const selectCompleteFlightInstanceById = (id: string) => (state: AppState) =>\r\n state.entityStores.completeFlightInstance.entities.get(id);\r\n\r\nexport const selectCompleteFlightInstanceMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.completeFlightInstance.meta.get(id);\r\n\r\nexport const selectCompleteFlightInstanceAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectCompleteFlightInstanceById(id),\r\n selectCompleteFlightInstanceMetadataById(id),\r\n (completeFlightInstance, meta) => ({ completeFlightInstance, meta }),\r\n );\r\n\r\nexport function selectCompleteFlightInstanceEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllCompleteFlightInstanceEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, CompleteFlightInstanceRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectCompleteFlightInstanceEntitiesByCompleteFlightInstanceName(\r\n completeFlightInstanceName: string,\r\n) {\r\n return createSelector(selectAllCompleteFlightInstanceEntities, (entities) =>\r\n entities.filter((e) => e.completeFlightInstanceName === completeFlightInstanceName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompleteFlightInstanceEntitiesByUrl(url: string) {\r\n return createSelector(selectAllCompleteFlightInstanceEntities, (entities) =>\r\n entities.filter((e) => e.url === url).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompleteFlightInstanceEntitiesByUsername(username: string) {\r\n return createSelector(selectAllCompleteFlightInstanceEntities, (entities) =>\r\n entities.filter((e) => e.username === username).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompleteFlightInstanceEntitiesByApiKey(apiKey: string) {\r\n return createSelector(selectAllCompleteFlightInstanceEntities, (entities) =>\r\n entities.filter((e) => e.apiKey === apiKey).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectCompleteFlightInstanceEntitiesByIsPrimary(isPrimary: boolean) {\r\n return createSelector(selectAllCompleteFlightInstanceEntities, (entities) =>\r\n entities.filter((e) => e.isPrimary === isPrimary).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ControlZoneProps {\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ControlZoneRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ControlZoneRecord {\r\n if (json == null) {\r\n throw new Error('ControlZoneRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ControlZoneRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ControlZoneJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'ControlZoneJson.name'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'ControlZoneJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ControlZoneRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ControlZoneRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ControlZoneRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ControlZoneJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'ControlZoneJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'ControlZoneJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ControlZoneProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ControlZoneRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ControlZoneViewModelBase implements ControlZoneProps {\r\n protected readonly _props: ControlZoneProps;\r\n private _json?: ControlZoneProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: ControlZoneProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllControlZoneEntities = (state: AppState) =>\r\n state.entityStores.controlZone.entities;\r\n\r\nexport const selectControlZoneById = (id: string) => (state: AppState) =>\r\n state.entityStores.controlZone.entities.get(id);\r\n\r\nexport const selectControlZoneMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.controlZone.meta.get(id);\r\n\r\nexport const selectControlZoneAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectControlZoneById(id),\r\n selectControlZoneMetadataById(id),\r\n (controlZone, meta) => ({ controlZone, meta }),\r\n );\r\n\r\nexport function selectControlZoneEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllControlZoneEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ControlZoneRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectControlZoneEntitiesByName(name: string) {\r\n return createSelector(selectAllControlZoneEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectControlZoneEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllControlZoneEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface DepartmentProps {\r\n id: string;\r\n name: string;\r\n code: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class DepartmentRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n code: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n code: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): DepartmentRecord {\r\n if (json == null) {\r\n throw new Error('DepartmentRecord.fromJS: parameter cannot be null');\r\n }\r\n return new DepartmentRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'DepartmentJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'DepartmentJson.name'),\r\n code: getFromOrThrow(json, (j) => j.code, 'DepartmentJson.code'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n code: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [DepartmentRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('DepartmentRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new DepartmentRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'DepartmentJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'DepartmentJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n code: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.code, 'DepartmentJson.code'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: DepartmentProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('DepartmentRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class DepartmentViewModelBase implements DepartmentProps {\r\n protected readonly _props: DepartmentProps;\r\n private _json?: DepartmentProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get code(): string {\r\n return this._props.code;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: DepartmentProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n code: this._props.code,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllDepartmentEntities = (state: AppState) =>\r\n state.entityStores.department.entities;\r\n\r\nexport const selectDepartmentById = (id: string) => (state: AppState) =>\r\n state.entityStores.department.entities.get(id);\r\n\r\nexport const selectDepartmentMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.department.meta.get(id);\r\n\r\nexport const selectDepartmentAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectDepartmentById(id),\r\n selectDepartmentMetadataById(id),\r\n (department, meta) => ({ department, meta }),\r\n );\r\n\r\nexport function selectDepartmentEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllDepartmentEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, DepartmentRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectDepartmentEntitiesByName(name: string) {\r\n return createSelector(selectAllDepartmentEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectDepartmentEntitiesByCode(code: string) {\r\n return createSelector(selectAllDepartmentEntities, (entities) =>\r\n entities.filter((e) => e.code === code).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { EntityType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface EntityCapabilityProps {\r\n id: string;\r\n capabilityId: string;\r\n entityId: string;\r\n entityType: EntityType;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class EntityCapabilityRecord extends Record({\r\n id: null as any,\r\n capabilityId: null as any,\r\n entityId: null as any,\r\n entityType: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n capabilityId: string;\r\n entityId: string;\r\n entityType: EntityType;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): EntityCapabilityRecord {\r\n if (json == null) {\r\n throw new Error('EntityCapabilityRecord.fromJS: parameter cannot be null');\r\n }\r\n return new EntityCapabilityRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'EntityCapabilityJson.id'),\r\n capabilityId: getFromOrThrow(\r\n json,\r\n (j) => j.capabilityId,\r\n 'EntityCapabilityJson.capabilityId',\r\n ),\r\n entityId: getFromOrThrow(json, (j) => j.entityId, 'EntityCapabilityJson.entityId'),\r\n entityType: getFromOrThrow(json, (j) => j.entityType, 'EntityCapabilityJson.entityType'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n capabilityId: string;\r\n entityId: string;\r\n entityType: EntityType;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [EntityCapabilityRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('EntityCapabilityRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new EntityCapabilityRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'EntityCapabilityJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n capabilityId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.capabilityId, 'EntityCapabilityJson.capabilityId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.entityId, 'EntityCapabilityJson.entityId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.entityType, 'EntityCapabilityJson.entityType'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: EntityCapabilityProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('EntityCapabilityRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class EntityCapabilityViewModelBase implements EntityCapabilityProps {\r\n protected readonly _props: EntityCapabilityProps;\r\n private _json?: EntityCapabilityProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get capabilityId(): string {\r\n return this._props.capabilityId;\r\n }\r\n get entityId(): string {\r\n return this._props.entityId;\r\n }\r\n get entityType(): EntityType {\r\n return this._props.entityType;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAirport() {\r\n return this._props.entityType === EntityType.Airport;\r\n }\r\n public get isBase() {\r\n return this._props.entityType === EntityType.Base;\r\n }\r\n public get isCard() {\r\n return this._props.entityType === EntityType.Card;\r\n }\r\n public get isCommunicationCenter() {\r\n return this._props.entityType === EntityType.CommunicationCenter;\r\n }\r\n public get isCompany() {\r\n return this._props.entityType === EntityType.Company;\r\n }\r\n public get isControlZone() {\r\n return this._props.entityType === EntityType.ControlZone;\r\n }\r\n public get isLocation() {\r\n return this._props.entityType === EntityType.Location;\r\n }\r\n public get isMedicalFacility() {\r\n return this._props.entityType === EntityType.MedicalFacility;\r\n }\r\n public get isOutOfServiceEvent() {\r\n return this._props.entityType === EntityType.OutOfServiceEvent;\r\n }\r\n public get isPerson() {\r\n return this._props.entityType === EntityType.Person;\r\n }\r\n public get isProgram() {\r\n return this._props.entityType === EntityType.Program;\r\n }\r\n public get isRegion() {\r\n return this._props.entityType === EntityType.Region;\r\n }\r\n public get isTimer() {\r\n return this._props.entityType === EntityType.Timer;\r\n }\r\n public get isUnit() {\r\n return this._props.entityType === EntityType.Unit;\r\n }\r\n public get isUnspecified() {\r\n return this._props.entityType === EntityType.Unspecified;\r\n }\r\n public get isVehicle() {\r\n return this._props.entityType === EntityType.Vehicle;\r\n }\r\n\r\n public isAnyEntityType(...entityType: EntityType[]) {\r\n return entityType.includes(this._props.entityType);\r\n }\r\n\r\n constructor(props: EntityCapabilityProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n capabilityId: this._props.capabilityId,\r\n entityId: this._props.entityId,\r\n entityType: this._props.entityType,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllEntityCapabilityEntities = (state: AppState) =>\r\n state.entityStores.entityCapability.entities;\r\n\r\nexport const selectEntityCapabilityById = (id: string) => (state: AppState) =>\r\n state.entityStores.entityCapability.entities.get(id);\r\n\r\nexport const selectEntityCapabilityMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.entityCapability.meta.get(id);\r\n\r\nexport const selectEntityCapabilityAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectEntityCapabilityById(id),\r\n selectEntityCapabilityMetadataById(id),\r\n (entityCapability, meta) => ({ entityCapability, meta }),\r\n );\r\n\r\nexport function selectEntityCapabilityEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllEntityCapabilityEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, EntityCapabilityRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectEntityCapabilityEntitiesByCapabilityId(capabilityId: string) {\r\n return createSelector(selectAllEntityCapabilityEntities, (entities) =>\r\n entities.filter((e) => e.capabilityId === capabilityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEntityCapabilityEntitiesByEntityId(entityId: string) {\r\n return createSelector(selectAllEntityCapabilityEntities, (entities) =>\r\n entities.filter((e) => e.entityId === entityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectEntityCapabilityEntitiesByEntityType(entityType: EntityType) {\r\n return createSelector(selectAllEntityCapabilityEntities, (entities) =>\r\n entities.filter((e) => e.entityType === entityType).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { EntityType, ExternalSystem } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ExternalReferenceProps {\r\n id: string;\r\n externalKey: string;\r\n externalSystem: ExternalSystem;\r\n entityId: string;\r\n entityType: EntityType;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ExternalReferenceRecord extends Record({\r\n id: null as any,\r\n externalKey: null as any,\r\n externalSystem: null as any,\r\n entityId: null as any,\r\n entityType: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n externalKey: string;\r\n externalSystem: ExternalSystem;\r\n entityId: string;\r\n entityType: EntityType;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ExternalReferenceRecord {\r\n if (json == null) {\r\n throw new Error('ExternalReferenceRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ExternalReferenceRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ExternalReferenceJson.id'),\r\n externalKey: getFromOrThrow(json, (j) => j.externalKey, 'ExternalReferenceJson.externalKey'),\r\n externalSystem: getFromOrThrow(\r\n json,\r\n (j) => j.externalSystem,\r\n 'ExternalReferenceJson.externalSystem',\r\n ),\r\n entityId: getFromOrThrow(json, (j) => j.entityId, 'ExternalReferenceJson.entityId'),\r\n entityType: getFromOrThrow(json, (j) => j.entityType, 'ExternalReferenceJson.entityType'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n externalKey: string;\r\n externalSystem: ExternalSystem;\r\n entityId: string;\r\n entityType: EntityType;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ExternalReferenceRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ExternalReferenceRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ExternalReferenceRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ExternalReferenceJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n externalKey: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.externalKey, 'ExternalReferenceJson.externalKey'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n externalSystem: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.externalSystem, 'ExternalReferenceJson.externalSystem'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.entityId, 'ExternalReferenceJson.entityId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n entityType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.entityType, 'ExternalReferenceJson.entityType'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ExternalReferenceProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ExternalReferenceRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ExternalReferenceViewModelBase implements ExternalReferenceProps {\r\n protected readonly _props: ExternalReferenceProps;\r\n private _json?: ExternalReferenceProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get externalKey(): string {\r\n return this._props.externalKey;\r\n }\r\n get externalSystem(): ExternalSystem {\r\n return this._props.externalSystem;\r\n }\r\n get entityId(): string {\r\n return this._props.entityId;\r\n }\r\n get entityType(): EntityType {\r\n return this._props.entityType;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isFlightVector() {\r\n return this._props.externalSystem === ExternalSystem.FlightVector;\r\n }\r\n public get isGoldenHour() {\r\n return this._props.externalSystem === ExternalSystem.GoldenHour;\r\n }\r\n public get isK2() {\r\n return this._props.externalSystem === ExternalSystem.K2;\r\n }\r\n public get isSkyTrac() {\r\n return this._props.externalSystem === ExternalSystem.SkyTrac;\r\n }\r\n public get isWorkday() {\r\n return this._props.externalSystem === ExternalSystem.Workday;\r\n }\r\n public get isAirport() {\r\n return this._props.entityType === EntityType.Airport;\r\n }\r\n public get isBase() {\r\n return this._props.entityType === EntityType.Base;\r\n }\r\n public get isCard() {\r\n return this._props.entityType === EntityType.Card;\r\n }\r\n public get isCommunicationCenter() {\r\n return this._props.entityType === EntityType.CommunicationCenter;\r\n }\r\n public get isCompany() {\r\n return this._props.entityType === EntityType.Company;\r\n }\r\n public get isControlZone() {\r\n return this._props.entityType === EntityType.ControlZone;\r\n }\r\n public get isLocation() {\r\n return this._props.entityType === EntityType.Location;\r\n }\r\n public get isMedicalFacility() {\r\n return this._props.entityType === EntityType.MedicalFacility;\r\n }\r\n public get isOutOfServiceEvent() {\r\n return this._props.entityType === EntityType.OutOfServiceEvent;\r\n }\r\n public get isPerson() {\r\n return this._props.entityType === EntityType.Person;\r\n }\r\n public get isProgram() {\r\n return this._props.entityType === EntityType.Program;\r\n }\r\n public get isRegion() {\r\n return this._props.entityType === EntityType.Region;\r\n }\r\n public get isTimer() {\r\n return this._props.entityType === EntityType.Timer;\r\n }\r\n public get isUnit() {\r\n return this._props.entityType === EntityType.Unit;\r\n }\r\n public get isUnspecified() {\r\n return this._props.entityType === EntityType.Unspecified;\r\n }\r\n public get isVehicle() {\r\n return this._props.entityType === EntityType.Vehicle;\r\n }\r\n\r\n public isAnyExternalSystem(...externalSystem: ExternalSystem[]) {\r\n return externalSystem.includes(this._props.externalSystem);\r\n }\r\n public isAnyEntityType(...entityType: EntityType[]) {\r\n return entityType.includes(this._props.entityType);\r\n }\r\n\r\n constructor(props: ExternalReferenceProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n externalKey: this._props.externalKey,\r\n externalSystem: this._props.externalSystem,\r\n entityId: this._props.entityId,\r\n entityType: this._props.entityType,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllExternalReferenceEntities = (state: AppState) =>\r\n state.entityStores.externalReference.entities;\r\n\r\nexport const selectExternalReferenceById = (id: string) => (state: AppState) =>\r\n state.entityStores.externalReference.entities.get(id);\r\n\r\nexport const selectExternalReferenceMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.externalReference.meta.get(id);\r\n\r\nexport const selectExternalReferenceAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectExternalReferenceById(id),\r\n selectExternalReferenceMetadataById(id),\r\n (externalReference, meta) => ({ externalReference, meta }),\r\n );\r\n\r\nexport function selectExternalReferenceEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllExternalReferenceEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ExternalReferenceRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectExternalReferenceEntitiesByExternalKey(externalKey: string) {\r\n return createSelector(selectAllExternalReferenceEntities, (entities) =>\r\n entities.filter((e) => e.externalKey === externalKey).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalReferenceEntitiesByExternalSystem(externalSystem: ExternalSystem) {\r\n return createSelector(selectAllExternalReferenceEntities, (entities) =>\r\n entities.filter((e) => e.externalSystem === externalSystem).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalReferenceEntitiesByEntityId(entityId: string) {\r\n return createSelector(selectAllExternalReferenceEntities, (entities) =>\r\n entities.filter((e) => e.entityId === entityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectExternalReferenceEntitiesByEntityType(entityType: EntityType) {\r\n return createSelector(selectAllExternalReferenceEntities, (entities) =>\r\n entities.filter((e) => e.entityType === entityType).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { FboType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface FboProps {\r\n id: string;\r\n name: string;\r\n fuelBrand: string | null;\r\n airportId: string;\r\n fboType: FboType;\r\n sourceSystemId: number | null;\r\n locationId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class FboRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n fuelBrand: null as any,\r\n airportId: null as any,\r\n fboType: null as any,\r\n sourceSystemId: null as any,\r\n locationId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n fuelBrand: string | null;\r\n airportId: string;\r\n fboType: FboType;\r\n sourceSystemId: number | null;\r\n locationId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): FboRecord {\r\n if (json == null) {\r\n throw new Error('FboRecord.fromJS: parameter cannot be null');\r\n }\r\n return new FboRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'FboJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'FboJson.name'),\r\n fuelBrand: json.fuelBrand,\r\n airportId: getFromOrThrow(json, (j) => j.airportId, 'FboJson.airportId'),\r\n fboType: getFromOrThrow(json, (j) => j.fboType, 'FboJson.fboType'),\r\n sourceSystemId: json.sourceSystemId,\r\n locationId: json.locationId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n fuelBrand: string | null;\r\n airportId: string;\r\n fboType: FboType;\r\n sourceSystemId: number | null;\r\n locationId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [FboRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('FboRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new FboRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'FboJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'FboJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fuelBrand: tryOrDefault(\r\n () => json.fuelBrand,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n airportId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.airportId, 'FboJson.airportId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fboType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.fboType, 'FboJson.fboType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n sourceSystemId: tryOrDefault(\r\n () => json.sourceSystemId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationId: tryOrDefault(\r\n () => json.locationId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: FboProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('FboRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class FboViewModelBase implements FboProps {\r\n protected readonly _props: FboProps;\r\n private _json?: FboProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get fuelBrand(): string | null {\r\n return this._props.fuelBrand;\r\n }\r\n get airportId(): string {\r\n return this._props.airportId;\r\n }\r\n get fboType(): FboType {\r\n return this._props.fboType;\r\n }\r\n get sourceSystemId(): number | null {\r\n return this._props.sourceSystemId;\r\n }\r\n get locationId(): string | null {\r\n return this._props.locationId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isFBO() {\r\n return this._props.fboType === FboType.FBO;\r\n }\r\n public get isFlightSupportOrganisation() {\r\n return this._props.fboType === FboType.FlightSupportOrganisation;\r\n }\r\n public get isFuelOnly() {\r\n return this._props.fboType === FboType.FuelOnly;\r\n }\r\n public get isHandler() {\r\n return this._props.fboType === FboType.Handler;\r\n }\r\n public get isLineRampEngineering() {\r\n return this._props.fboType === FboType.LineRampEngineering;\r\n }\r\n public get isSupervisingAgent() {\r\n return this._props.fboType === FboType.SupervisingAgent;\r\n }\r\n\r\n public isAnyFboType(...fboType: FboType[]) {\r\n return fboType.includes(this._props.fboType);\r\n }\r\n\r\n constructor(props: FboProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n fuelBrand: this._props.fuelBrand,\r\n airportId: this._props.airportId,\r\n fboType: this._props.fboType,\r\n sourceSystemId: this._props.sourceSystemId,\r\n locationId: this._props.locationId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllFboEntities = (state: AppState) => state.entityStores.fbo.entities;\r\n\r\nexport const selectFboById = (id: string) => (state: AppState) =>\r\n state.entityStores.fbo.entities.get(id);\r\n\r\nexport const selectFboMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.fbo.meta.get(id);\r\n\r\nexport const selectFboAndMetadataById = (id: string) =>\r\n createSelector(selectFboById(id), selectFboMetadataById(id), (fbo, meta) => ({ fbo, meta }));\r\n\r\nexport function selectFboEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllFboEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, FboRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectFboEntitiesByName(name: string) {\r\n return createSelector(selectAllFboEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFboEntitiesByFuelBrand(fuelBrand: string) {\r\n return createSelector(selectAllFboEntities, (entities) =>\r\n entities.filter((e) => e.fuelBrand === fuelBrand).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFboEntitiesByAirportId(airportId: string) {\r\n return createSelector(selectAllFboEntities, (entities) =>\r\n entities.filter((e) => e.airportId === airportId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFboEntitiesByFboType(fboType: FboType) {\r\n return createSelector(selectAllFboEntities, (entities) =>\r\n entities.filter((e) => e.fboType === fboType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFboEntitiesBySourceSystemId(sourceSystemId: number) {\r\n return createSelector(selectAllFboEntities, (entities) =>\r\n entities.filter((e) => e.sourceSystemId === sourceSystemId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFboEntitiesByLocationId(locationId: string) {\r\n return createSelector(selectAllFboEntities, (entities) =>\r\n entities.filter((e) => e.locationId === locationId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface FuelTankProps {\r\n id: string;\r\n code: string;\r\n name: string;\r\n operationsStarted: Date | null;\r\n operationsEnded: Date | null;\r\n locationId: string;\r\n sourceSystemId: number | null;\r\n baseId: string | null;\r\n locationName: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class FuelTankRecord extends Record({\r\n id: null as any,\r\n code: null as any,\r\n name: null as any,\r\n operationsStarted: null as any,\r\n operationsEnded: null as any,\r\n locationId: null as any,\r\n sourceSystemId: null as any,\r\n baseId: null as any,\r\n locationName: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n code: string;\r\n name: string;\r\n operationsStarted: string | number | Date | null;\r\n operationsEnded: string | number | Date | null;\r\n locationId: string;\r\n sourceSystemId: number | null;\r\n baseId: string | null;\r\n locationName: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): FuelTankRecord {\r\n if (json == null) {\r\n throw new Error('FuelTankRecord.fromJS: parameter cannot be null');\r\n }\r\n return new FuelTankRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'FuelTankJson.id'),\r\n code: getFromOrThrow(json, (j) => j.code, 'FuelTankJson.code'),\r\n name: getFromOrThrow(json, (j) => j.name, 'FuelTankJson.name'),\r\n operationsStarted: json.operationsStarted != null ? new Date(json.operationsStarted) : null,\r\n operationsEnded: json.operationsEnded != null ? new Date(json.operationsEnded) : null,\r\n locationId: getFromOrThrow(json, (j) => j.locationId, 'FuelTankJson.locationId'),\r\n sourceSystemId: json.sourceSystemId,\r\n baseId: json.baseId,\r\n locationName: json.locationName,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'FuelTankJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n code: string;\r\n name: string;\r\n operationsStarted: string | number | Date | null;\r\n operationsEnded: string | number | Date | null;\r\n locationId: string;\r\n sourceSystemId: number | null;\r\n baseId: string | null;\r\n locationName: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [FuelTankRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('FuelTankRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new FuelTankRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'FuelTankJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n code: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.code, 'FuelTankJson.code'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'FuelTankJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n operationsStarted: tryOrDefault(\r\n () => (json.operationsStarted != null ? new Date(json.operationsStarted) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n operationsEnded: tryOrDefault(\r\n () => (json.operationsEnded != null ? new Date(json.operationsEnded) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.locationId, 'FuelTankJson.locationId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n sourceSystemId: tryOrDefault(\r\n () => json.sourceSystemId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseId: tryOrDefault(\r\n () => json.baseId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationName: tryOrDefault(\r\n () => json.locationName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'FuelTankJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: FuelTankProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('FuelTankRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class FuelTankViewModelBase implements FuelTankProps {\r\n protected readonly _props: FuelTankProps;\r\n private _json?: FuelTankProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get code(): string {\r\n return this._props.code;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get operationsStarted(): Date | null {\r\n return this._props.operationsStarted;\r\n }\r\n get operationsEnded(): Date | null {\r\n return this._props.operationsEnded;\r\n }\r\n get locationId(): string {\r\n return this._props.locationId;\r\n }\r\n get sourceSystemId(): number | null {\r\n return this._props.sourceSystemId;\r\n }\r\n get baseId(): string | null {\r\n return this._props.baseId;\r\n }\r\n get locationName(): string | null {\r\n return this._props.locationName;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: FuelTankProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n code: this._props.code,\r\n name: this._props.name,\r\n operationsStarted: this._props.operationsStarted,\r\n operationsEnded: this._props.operationsEnded,\r\n locationId: this._props.locationId,\r\n sourceSystemId: this._props.sourceSystemId,\r\n baseId: this._props.baseId,\r\n locationName: this._props.locationName,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllFuelTankEntities = (state: AppState) => state.entityStores.fuelTank.entities;\r\n\r\nexport const selectFuelTankById = (id: string) => (state: AppState) =>\r\n state.entityStores.fuelTank.entities.get(id);\r\n\r\nexport const selectFuelTankMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.fuelTank.meta.get(id);\r\n\r\nexport const selectFuelTankAndMetadataById = (id: string) =>\r\n createSelector(selectFuelTankById(id), selectFuelTankMetadataById(id), (fuelTank, meta) => ({\r\n fuelTank,\r\n meta,\r\n }));\r\n\r\nexport function selectFuelTankEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllFuelTankEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, FuelTankRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectFuelTankEntitiesByCode(code: string) {\r\n return createSelector(selectAllFuelTankEntities, (entities) =>\r\n entities.filter((e) => e.code === code).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFuelTankEntitiesByName(name: string) {\r\n return createSelector(selectAllFuelTankEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFuelTankEntitiesByOperationsStarted(operationsStarted: Date) {\r\n return createSelector(selectAllFuelTankEntities, (entities) =>\r\n entities.filter((e) => e.operationsStarted === operationsStarted).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFuelTankEntitiesByOperationsEnded(operationsEnded: Date) {\r\n return createSelector(selectAllFuelTankEntities, (entities) =>\r\n entities.filter((e) => e.operationsEnded === operationsEnded).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFuelTankEntitiesByLocationId(locationId: string) {\r\n return createSelector(selectAllFuelTankEntities, (entities) =>\r\n entities.filter((e) => e.locationId === locationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFuelTankEntitiesBySourceSystemId(sourceSystemId: number) {\r\n return createSelector(selectAllFuelTankEntities, (entities) =>\r\n entities.filter((e) => e.sourceSystemId === sourceSystemId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFuelTankEntitiesByBaseId(baseId: string) {\r\n return createSelector(selectAllFuelTankEntities, (entities) =>\r\n entities.filter((e) => e.baseId === baseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFuelTankEntitiesByLocationName(locationName: string) {\r\n return createSelector(selectAllFuelTankEntities, (entities) =>\r\n entities.filter((e) => e.locationName === locationName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFuelTankEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllFuelTankEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { LocationType } from 'src/graphql/generated/graphql.generated';\r\nimport { AddressRecord, AddressProps } from 'src/store/generated/address-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface LocationProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n address: AddressProps;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: Date | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: Date | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class LocationRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n locationType: null as any,\r\n address: null as any,\r\n timezoneCd: null as any,\r\n isRotorWingLz: null as any,\r\n notes: null as any,\r\n sourceSystemId: null as any,\r\n closedDate: null as any,\r\n duplicateOfId: null as any,\r\n isLandingZoneOutOfService: null as any,\r\n landingZoneOutOfServiceNotes: null as any,\r\n landingZoneOutOfServiceExpirationDate: null as any,\r\n landingZoneOutOfServiceReasonId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n address: any;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: string | number | Date | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: string | number | Date | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): LocationRecord {\r\n if (json == null) {\r\n throw new Error('LocationRecord.fromJS: parameter cannot be null');\r\n }\r\n return new LocationRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'LocationJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'LocationJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'LocationJson.abbreviation'),\r\n locationType: getFromOrThrow(json, (j) => j.locationType, 'LocationJson.locationType'),\r\n address: new AddressRecord(getFromOrThrow(json, (j) => j.address, 'LocationJson.address')),\r\n timezoneCd: json.timezoneCd,\r\n isRotorWingLz: json.isRotorWingLz,\r\n notes: json.notes,\r\n sourceSystemId: json.sourceSystemId,\r\n closedDate: json.closedDate != null ? new Date(json.closedDate) : null,\r\n duplicateOfId: json.duplicateOfId,\r\n isLandingZoneOutOfService: json.isLandingZoneOutOfService,\r\n landingZoneOutOfServiceNotes: json.landingZoneOutOfServiceNotes,\r\n landingZoneOutOfServiceExpirationDate:\r\n json.landingZoneOutOfServiceExpirationDate != null\r\n ? new Date(json.landingZoneOutOfServiceExpirationDate)\r\n : null,\r\n landingZoneOutOfServiceReasonId: json.landingZoneOutOfServiceReasonId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n locationType: LocationType;\r\n address: any;\r\n timezoneCd: string | null;\r\n isRotorWingLz: boolean | null;\r\n notes: string | null;\r\n sourceSystemId: string | null;\r\n closedDate: string | number | Date | null;\r\n duplicateOfId: string | null;\r\n isLandingZoneOutOfService: boolean | null;\r\n landingZoneOutOfServiceNotes: string | null;\r\n landingZoneOutOfServiceExpirationDate: string | number | Date | null;\r\n landingZoneOutOfServiceReasonId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [LocationRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('LocationRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new LocationRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'LocationJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'LocationJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'LocationJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.locationType, 'LocationJson.locationType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n address: tryOrDefault(\r\n () => new AddressRecord(getFromOrThrow(json, (j) => j.address, 'LocationJson.address')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timezoneCd: tryOrDefault(\r\n () => json.timezoneCd,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isRotorWingLz: tryOrDefault(\r\n () => json.isRotorWingLz,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n sourceSystemId: tryOrDefault(\r\n () => json.sourceSystemId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n closedDate: tryOrDefault(\r\n () => (json.closedDate != null ? new Date(json.closedDate) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n duplicateOfId: tryOrDefault(\r\n () => json.duplicateOfId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isLandingZoneOutOfService: tryOrDefault(\r\n () => json.isLandingZoneOutOfService,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n landingZoneOutOfServiceNotes: tryOrDefault(\r\n () => json.landingZoneOutOfServiceNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n landingZoneOutOfServiceExpirationDate: tryOrDefault(\r\n () =>\r\n json.landingZoneOutOfServiceExpirationDate != null\r\n ? new Date(json.landingZoneOutOfServiceExpirationDate)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n landingZoneOutOfServiceReasonId: tryOrDefault(\r\n () => json.landingZoneOutOfServiceReasonId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: LocationProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('LocationRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class LocationViewModelBase implements LocationProps {\r\n protected readonly _props: LocationProps;\r\n private _json?: LocationProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get locationType(): LocationType {\r\n return this._props.locationType;\r\n }\r\n get address(): AddressProps {\r\n return this._props.address;\r\n }\r\n get timezoneCd(): string | null {\r\n return this._props.timezoneCd;\r\n }\r\n get isRotorWingLz(): boolean | null {\r\n return this._props.isRotorWingLz;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get sourceSystemId(): string | null {\r\n return this._props.sourceSystemId;\r\n }\r\n get closedDate(): Date | null {\r\n return this._props.closedDate;\r\n }\r\n get duplicateOfId(): string | null {\r\n return this._props.duplicateOfId;\r\n }\r\n get isLandingZoneOutOfService(): boolean | null {\r\n return this._props.isLandingZoneOutOfService;\r\n }\r\n get landingZoneOutOfServiceNotes(): string | null {\r\n return this._props.landingZoneOutOfServiceNotes;\r\n }\r\n get landingZoneOutOfServiceExpirationDate(): Date | null {\r\n return this._props.landingZoneOutOfServiceExpirationDate;\r\n }\r\n get landingZoneOutOfServiceReasonId(): string | null {\r\n return this._props.landingZoneOutOfServiceReasonId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isAgency() {\r\n return this._props.locationType === LocationType.Agency;\r\n }\r\n public get isAirport() {\r\n return this._props.locationType === LocationType.Airport;\r\n }\r\n public get isBase() {\r\n return this._props.locationType === LocationType.Base;\r\n }\r\n public get isCommunicationsCenter() {\r\n return this._props.locationType === LocationType.CommunicationsCenter;\r\n }\r\n public get isCorporateOffice() {\r\n return this._props.locationType === LocationType.CorporateOffice;\r\n }\r\n public get isFbo() {\r\n return this._props.locationType === LocationType.Fbo;\r\n }\r\n public get isFuelTank() {\r\n return this._props.locationType === LocationType.FuelTank;\r\n }\r\n public get isHangar() {\r\n return this._props.locationType === LocationType.Hangar;\r\n }\r\n public get isLandingZone() {\r\n return this._props.locationType === LocationType.LandingZone;\r\n }\r\n public get isMaintenanceFacility() {\r\n return this._props.locationType === LocationType.MaintenanceFacility;\r\n }\r\n public get isMedicalFacility() {\r\n return this._props.locationType === LocationType.MedicalFacility;\r\n }\r\n public get isRadioTower() {\r\n return this._props.locationType === LocationType.RadioTower;\r\n }\r\n public get isRemoteMaintenanceFacility() {\r\n return this._props.locationType === LocationType.RemoteMaintenanceFacility;\r\n }\r\n public get isUnspecified() {\r\n return this._props.locationType === LocationType.Unspecified;\r\n }\r\n\r\n public isAnyLocationType(...locationType: LocationType[]) {\r\n return locationType.includes(this._props.locationType);\r\n }\r\n\r\n constructor(props: LocationProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n locationType: this._props.locationType,\r\n address: this._props.address,\r\n timezoneCd: this._props.timezoneCd,\r\n isRotorWingLz: this._props.isRotorWingLz,\r\n notes: this._props.notes,\r\n sourceSystemId: this._props.sourceSystemId,\r\n closedDate: this._props.closedDate,\r\n duplicateOfId: this._props.duplicateOfId,\r\n isLandingZoneOutOfService: this._props.isLandingZoneOutOfService,\r\n landingZoneOutOfServiceNotes: this._props.landingZoneOutOfServiceNotes,\r\n landingZoneOutOfServiceExpirationDate: this._props.landingZoneOutOfServiceExpirationDate,\r\n landingZoneOutOfServiceReasonId: this._props.landingZoneOutOfServiceReasonId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllLocationEntities = (state: AppState) => state.entityStores.location.entities;\r\n\r\nexport const selectLocationById = (id: string) => (state: AppState) =>\r\n state.entityStores.location.entities.get(id);\r\n\r\nexport const selectLocationMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.location.meta.get(id);\r\n\r\nexport const selectLocationAndMetadataById = (id: string) =>\r\n createSelector(selectLocationById(id), selectLocationMetadataById(id), (location, meta) => ({\r\n location,\r\n meta,\r\n }));\r\n\r\nexport function selectLocationEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllLocationEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, LocationRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesByName(name: string) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesByLocationType(locationType: LocationType) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities.filter((e) => e.locationType === locationType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesByTimezoneCd(timezoneCd: string) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities.filter((e) => e.timezoneCd === timezoneCd).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesByIsRotorWingLz(isRotorWingLz: boolean) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities.filter((e) => e.isRotorWingLz === isRotorWingLz).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesBySourceSystemId(sourceSystemId: string) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities.filter((e) => e.sourceSystemId === sourceSystemId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesByClosedDate(closedDate: Date) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities.filter((e) => e.closedDate === closedDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesByDuplicateOfId(duplicateOfId: string) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities.filter((e) => e.duplicateOfId === duplicateOfId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesByIsLandingZoneOutOfService(\r\n isLandingZoneOutOfService: boolean,\r\n) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities.filter((e) => e.isLandingZoneOutOfService === isLandingZoneOutOfService).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesByLandingZoneOutOfServiceNotes(\r\n landingZoneOutOfServiceNotes: string,\r\n) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities\r\n .filter((e) => e.landingZoneOutOfServiceNotes === landingZoneOutOfServiceNotes)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesByLandingZoneOutOfServiceExpirationDate(\r\n landingZoneOutOfServiceExpirationDate: Date,\r\n) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) => e.landingZoneOutOfServiceExpirationDate === landingZoneOutOfServiceExpirationDate,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectLocationEntitiesByLandingZoneOutOfServiceReasonId(\r\n landingZoneOutOfServiceReasonId: string,\r\n) {\r\n return createSelector(selectAllLocationEntities, (entities) =>\r\n entities\r\n .filter((e) => e.landingZoneOutOfServiceReasonId === landingZoneOutOfServiceReasonId)\r\n .valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface MedicalFacilityContactProps {\r\n id: string;\r\n name: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n medicalFacilityId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class MedicalFacilityContactRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n emailAddress: null as any,\r\n primaryPhoneNumber: null as any,\r\n secondaryPhoneNumber: null as any,\r\n smsPhoneNumber: null as any,\r\n faxPhoneNumber: null as any,\r\n notes: null as any,\r\n medicalFacilityId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n medicalFacilityId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): MedicalFacilityContactRecord {\r\n if (json == null) {\r\n throw new Error('MedicalFacilityContactRecord.fromJS: parameter cannot be null');\r\n }\r\n return new MedicalFacilityContactRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'MedicalFacilityContactJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'MedicalFacilityContactJson.name'),\r\n emailAddress: json.emailAddress,\r\n primaryPhoneNumber: json.primaryPhoneNumber,\r\n secondaryPhoneNumber: json.secondaryPhoneNumber,\r\n smsPhoneNumber: json.smsPhoneNumber,\r\n faxPhoneNumber: json.faxPhoneNumber,\r\n notes: json.notes,\r\n medicalFacilityId: getFromOrThrow(\r\n json,\r\n (j) => j.medicalFacilityId,\r\n 'MedicalFacilityContactJson.medicalFacilityId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n emailAddress: string | null;\r\n primaryPhoneNumber: string | null;\r\n secondaryPhoneNumber: string | null;\r\n smsPhoneNumber: string | null;\r\n faxPhoneNumber: string | null;\r\n notes: string | null;\r\n medicalFacilityId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [MedicalFacilityContactRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('MedicalFacilityContactRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new MedicalFacilityContactRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'MedicalFacilityContactJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'MedicalFacilityContactJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n emailAddress: tryOrDefault(\r\n () => json.emailAddress,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n primaryPhoneNumber: tryOrDefault(\r\n () => json.primaryPhoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n secondaryPhoneNumber: tryOrDefault(\r\n () => json.secondaryPhoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n smsPhoneNumber: tryOrDefault(\r\n () => json.smsPhoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n faxPhoneNumber: tryOrDefault(\r\n () => json.faxPhoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n medicalFacilityId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.medicalFacilityId,\r\n 'MedicalFacilityContactJson.medicalFacilityId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: MedicalFacilityContactProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('MedicalFacilityContactRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class MedicalFacilityContactViewModelBase implements MedicalFacilityContactProps {\r\n protected readonly _props: MedicalFacilityContactProps;\r\n private _json?: MedicalFacilityContactProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get emailAddress(): string | null {\r\n return this._props.emailAddress;\r\n }\r\n get primaryPhoneNumber(): string | null {\r\n return this._props.primaryPhoneNumber;\r\n }\r\n get secondaryPhoneNumber(): string | null {\r\n return this._props.secondaryPhoneNumber;\r\n }\r\n get smsPhoneNumber(): string | null {\r\n return this._props.smsPhoneNumber;\r\n }\r\n get faxPhoneNumber(): string | null {\r\n return this._props.faxPhoneNumber;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get medicalFacilityId(): string {\r\n return this._props.medicalFacilityId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: MedicalFacilityContactProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n emailAddress: this._props.emailAddress,\r\n primaryPhoneNumber: this._props.primaryPhoneNumber,\r\n secondaryPhoneNumber: this._props.secondaryPhoneNumber,\r\n smsPhoneNumber: this._props.smsPhoneNumber,\r\n faxPhoneNumber: this._props.faxPhoneNumber,\r\n notes: this._props.notes,\r\n medicalFacilityId: this._props.medicalFacilityId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllMedicalFacilityContactEntities = (state: AppState) =>\r\n state.entityStores.medicalFacilityContact.entities;\r\n\r\nexport const selectMedicalFacilityContactById = (id: string) => (state: AppState) =>\r\n state.entityStores.medicalFacilityContact.entities.get(id);\r\n\r\nexport const selectMedicalFacilityContactMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.medicalFacilityContact.meta.get(id);\r\n\r\nexport const selectMedicalFacilityContactAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectMedicalFacilityContactById(id),\r\n selectMedicalFacilityContactMetadataById(id),\r\n (medicalFacilityContact, meta) => ({ medicalFacilityContact, meta }),\r\n );\r\n\r\nexport function selectMedicalFacilityContactEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllMedicalFacilityContactEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, MedicalFacilityContactRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityContactEntitiesByName(name: string) {\r\n return createSelector(selectAllMedicalFacilityContactEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityContactEntitiesByEmailAddress(emailAddress: string) {\r\n return createSelector(selectAllMedicalFacilityContactEntities, (entities) =>\r\n entities.filter((e) => e.emailAddress === emailAddress).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityContactEntitiesByPrimaryPhoneNumber(\r\n primaryPhoneNumber: string,\r\n) {\r\n return createSelector(selectAllMedicalFacilityContactEntities, (entities) =>\r\n entities.filter((e) => e.primaryPhoneNumber === primaryPhoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityContactEntitiesBySecondaryPhoneNumber(\r\n secondaryPhoneNumber: string,\r\n) {\r\n return createSelector(selectAllMedicalFacilityContactEntities, (entities) =>\r\n entities.filter((e) => e.secondaryPhoneNumber === secondaryPhoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityContactEntitiesBySmsPhoneNumber(smsPhoneNumber: string) {\r\n return createSelector(selectAllMedicalFacilityContactEntities, (entities) =>\r\n entities.filter((e) => e.smsPhoneNumber === smsPhoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityContactEntitiesByFaxPhoneNumber(faxPhoneNumber: string) {\r\n return createSelector(selectAllMedicalFacilityContactEntities, (entities) =>\r\n entities.filter((e) => e.faxPhoneNumber === faxPhoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityContactEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllMedicalFacilityContactEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityContactEntitiesByMedicalFacilityId(medicalFacilityId: string) {\r\n return createSelector(selectAllMedicalFacilityContactEntities, (entities) =>\r\n entities.filter((e) => e.medicalFacilityId === medicalFacilityId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { MedicalFacilityStatus } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface MedicalFacilityProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: Date | null;\r\n locationId: string | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class MedicalFacilityRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n npi: null as any,\r\n providerNumber: null as any,\r\n sourceSystemId: null as any,\r\n masterDataSetId: null as any,\r\n firmType: null as any,\r\n hospitalType: null as any,\r\n hospitalSpecialization: null as any,\r\n website: null as any,\r\n defaultLandingZoneId: null as any,\r\n defaultFixedWingLandingZoneId: null as any,\r\n notes: null as any,\r\n stateSourceSystemId: null as any,\r\n nemsisCode: null as any,\r\n stateFacilityName: null as any,\r\n status: null as any,\r\n archiveNotes: null as any,\r\n archiveClearedDate: null as any,\r\n locationId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: string | number | Date | null;\r\n locationId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): MedicalFacilityRecord {\r\n if (json == null) {\r\n throw new Error('MedicalFacilityRecord.fromJS: parameter cannot be null');\r\n }\r\n return new MedicalFacilityRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'MedicalFacilityJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'MedicalFacilityJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'MedicalFacilityJson.abbreviation'),\r\n npi: getFromOrThrow(json, (j) => j.npi, 'MedicalFacilityJson.npi'),\r\n providerNumber: json.providerNumber,\r\n sourceSystemId: json.sourceSystemId,\r\n masterDataSetId: json.masterDataSetId,\r\n firmType: json.firmType,\r\n hospitalType: json.hospitalType,\r\n hospitalSpecialization: json.hospitalSpecialization,\r\n website: json.website,\r\n defaultLandingZoneId: json.defaultLandingZoneId,\r\n defaultFixedWingLandingZoneId: json.defaultFixedWingLandingZoneId,\r\n notes: json.notes,\r\n stateSourceSystemId: json.stateSourceSystemId,\r\n nemsisCode: json.nemsisCode,\r\n stateFacilityName: json.stateFacilityName,\r\n status: json.status,\r\n archiveNotes: json.archiveNotes,\r\n archiveClearedDate:\r\n json.archiveClearedDate != null ? new Date(json.archiveClearedDate) : null,\r\n locationId: json.locationId,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n npi: string;\r\n providerNumber: string | null;\r\n sourceSystemId: number | null;\r\n masterDataSetId: number | null;\r\n firmType: string | null;\r\n hospitalType: string | null;\r\n hospitalSpecialization: string | null;\r\n website: string | null;\r\n defaultLandingZoneId: string | null;\r\n defaultFixedWingLandingZoneId: string | null;\r\n notes: string | null;\r\n stateSourceSystemId: string | null;\r\n nemsisCode: string | null;\r\n stateFacilityName: string | null;\r\n status: MedicalFacilityStatus | null;\r\n archiveNotes: string | null;\r\n archiveClearedDate: string | number | Date | null;\r\n locationId: string | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [MedicalFacilityRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('MedicalFacilityRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new MedicalFacilityRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'MedicalFacilityJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'MedicalFacilityJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'MedicalFacilityJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n npi: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.npi, 'MedicalFacilityJson.npi'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n providerNumber: tryOrDefault(\r\n () => json.providerNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n sourceSystemId: tryOrDefault(\r\n () => json.sourceSystemId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n masterDataSetId: tryOrDefault(\r\n () => json.masterDataSetId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n firmType: tryOrDefault(\r\n () => json.firmType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n hospitalType: tryOrDefault(\r\n () => json.hospitalType,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n hospitalSpecialization: tryOrDefault(\r\n () => json.hospitalSpecialization,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n website: tryOrDefault(\r\n () => json.website,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n defaultLandingZoneId: tryOrDefault(\r\n () => json.defaultLandingZoneId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n defaultFixedWingLandingZoneId: tryOrDefault(\r\n () => json.defaultFixedWingLandingZoneId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n stateSourceSystemId: tryOrDefault(\r\n () => json.stateSourceSystemId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n nemsisCode: tryOrDefault(\r\n () => json.nemsisCode,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n stateFacilityName: tryOrDefault(\r\n () => json.stateFacilityName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n status: tryOrDefault(\r\n () => json.status,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n archiveNotes: tryOrDefault(\r\n () => json.archiveNotes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n archiveClearedDate: tryOrDefault(\r\n () => (json.archiveClearedDate != null ? new Date(json.archiveClearedDate) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationId: tryOrDefault(\r\n () => json.locationId,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: MedicalFacilityProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('MedicalFacilityRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class MedicalFacilityViewModelBase implements MedicalFacilityProps {\r\n protected readonly _props: MedicalFacilityProps;\r\n private _json?: MedicalFacilityProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get npi(): string {\r\n return this._props.npi;\r\n }\r\n get providerNumber(): string | null {\r\n return this._props.providerNumber;\r\n }\r\n get sourceSystemId(): number | null {\r\n return this._props.sourceSystemId;\r\n }\r\n get masterDataSetId(): number | null {\r\n return this._props.masterDataSetId;\r\n }\r\n get firmType(): string | null {\r\n return this._props.firmType;\r\n }\r\n get hospitalType(): string | null {\r\n return this._props.hospitalType;\r\n }\r\n get hospitalSpecialization(): string | null {\r\n return this._props.hospitalSpecialization;\r\n }\r\n get website(): string | null {\r\n return this._props.website;\r\n }\r\n get defaultLandingZoneId(): string | null {\r\n return this._props.defaultLandingZoneId;\r\n }\r\n get defaultFixedWingLandingZoneId(): string | null {\r\n return this._props.defaultFixedWingLandingZoneId;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get stateSourceSystemId(): string | null {\r\n return this._props.stateSourceSystemId;\r\n }\r\n get nemsisCode(): string | null {\r\n return this._props.nemsisCode;\r\n }\r\n get stateFacilityName(): string | null {\r\n return this._props.stateFacilityName;\r\n }\r\n get status(): MedicalFacilityStatus | null {\r\n return this._props.status;\r\n }\r\n get archiveNotes(): string | null {\r\n return this._props.archiveNotes;\r\n }\r\n get archiveClearedDate(): Date | null {\r\n return this._props.archiveClearedDate;\r\n }\r\n get locationId(): string | null {\r\n return this._props.locationId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isApproved() {\r\n return this._props.status === MedicalFacilityStatus.Approved;\r\n }\r\n public get isArchived() {\r\n return this._props.status === MedicalFacilityStatus.Archived;\r\n }\r\n public get isDuplicate() {\r\n return this._props.status === MedicalFacilityStatus.Duplicate;\r\n }\r\n public get isPendingApproval() {\r\n return this._props.status === MedicalFacilityStatus.PendingApproval;\r\n }\r\n public get isPendingArchive() {\r\n return this._props.status === MedicalFacilityStatus.PendingArchive;\r\n }\r\n\r\n public isAnyStatus(...medicalFacilityStatus: MedicalFacilityStatus[]) {\r\n return this._props.status != null && medicalFacilityStatus.includes(this._props.status);\r\n }\r\n\r\n constructor(props: MedicalFacilityProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n npi: this._props.npi,\r\n providerNumber: this._props.providerNumber,\r\n sourceSystemId: this._props.sourceSystemId,\r\n masterDataSetId: this._props.masterDataSetId,\r\n firmType: this._props.firmType,\r\n hospitalType: this._props.hospitalType,\r\n hospitalSpecialization: this._props.hospitalSpecialization,\r\n website: this._props.website,\r\n defaultLandingZoneId: this._props.defaultLandingZoneId,\r\n defaultFixedWingLandingZoneId: this._props.defaultFixedWingLandingZoneId,\r\n notes: this._props.notes,\r\n stateSourceSystemId: this._props.stateSourceSystemId,\r\n nemsisCode: this._props.nemsisCode,\r\n stateFacilityName: this._props.stateFacilityName,\r\n status: this._props.status,\r\n archiveNotes: this._props.archiveNotes,\r\n archiveClearedDate: this._props.archiveClearedDate,\r\n locationId: this._props.locationId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllMedicalFacilityEntities = (state: AppState) =>\r\n state.entityStores.medicalFacility.entities;\r\n\r\nexport const selectMedicalFacilityById = (id: string) => (state: AppState) =>\r\n state.entityStores.medicalFacility.entities.get(id);\r\n\r\nexport const selectMedicalFacilityMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.medicalFacility.meta.get(id);\r\n\r\nexport const selectMedicalFacilityAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectMedicalFacilityById(id),\r\n selectMedicalFacilityMetadataById(id),\r\n (medicalFacility, meta) => ({ medicalFacility, meta }),\r\n );\r\n\r\nexport function selectMedicalFacilityEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllMedicalFacilityEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, MedicalFacilityRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByName(name: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByNpi(npi: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.npi === npi).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByProviderNumber(providerNumber: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.providerNumber === providerNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesBySourceSystemId(sourceSystemId: number) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.sourceSystemId === sourceSystemId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByMasterDataSetId(masterDataSetId: number) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.masterDataSetId === masterDataSetId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByFirmType(firmType: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.firmType === firmType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByHospitalType(hospitalType: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.hospitalType === hospitalType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByHospitalSpecialization(\r\n hospitalSpecialization: string,\r\n) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.hospitalSpecialization === hospitalSpecialization).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByWebsite(website: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.website === website).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByDefaultLandingZoneId(defaultLandingZoneId: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.defaultLandingZoneId === defaultLandingZoneId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByDefaultFixedWingLandingZoneId(\r\n defaultFixedWingLandingZoneId: string,\r\n) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities\r\n .filter((e) => e.defaultFixedWingLandingZoneId === defaultFixedWingLandingZoneId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByStateSourceSystemId(stateSourceSystemId: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.stateSourceSystemId === stateSourceSystemId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByNemsisCode(nemsisCode: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.nemsisCode === nemsisCode).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByStateFacilityName(stateFacilityName: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.stateFacilityName === stateFacilityName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByStatus(status: MedicalFacilityStatus) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.status === status).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByArchiveNotes(archiveNotes: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.archiveNotes === archiveNotes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByArchiveClearedDate(archiveClearedDate: Date) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.archiveClearedDate === archiveClearedDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityEntitiesByLocationId(locationId: string) {\r\n return createSelector(selectAllMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.locationId === locationId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface MedicalFacilityPhysicianProps {\r\n id: string;\r\n physicianId: string;\r\n medicalFacilityId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class MedicalFacilityPhysicianRecord extends Record({\r\n id: null as any,\r\n physicianId: null as any,\r\n medicalFacilityId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n physicianId: string;\r\n medicalFacilityId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): MedicalFacilityPhysicianRecord {\r\n if (json == null) {\r\n throw new Error('MedicalFacilityPhysicianRecord.fromJS: parameter cannot be null');\r\n }\r\n return new MedicalFacilityPhysicianRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'MedicalFacilityPhysicianJson.id'),\r\n physicianId: getFromOrThrow(\r\n json,\r\n (j) => j.physicianId,\r\n 'MedicalFacilityPhysicianJson.physicianId',\r\n ),\r\n medicalFacilityId: getFromOrThrow(\r\n json,\r\n (j) => j.medicalFacilityId,\r\n 'MedicalFacilityPhysicianJson.medicalFacilityId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n physicianId: string;\r\n medicalFacilityId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [MedicalFacilityPhysicianRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('MedicalFacilityPhysicianRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new MedicalFacilityPhysicianRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'MedicalFacilityPhysicianJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n physicianId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.physicianId, 'MedicalFacilityPhysicianJson.physicianId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n medicalFacilityId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.medicalFacilityId,\r\n 'MedicalFacilityPhysicianJson.medicalFacilityId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: MedicalFacilityPhysicianProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('MedicalFacilityPhysicianRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class MedicalFacilityPhysicianViewModelBase\r\n implements MedicalFacilityPhysicianProps\r\n{\r\n protected readonly _props: MedicalFacilityPhysicianProps;\r\n private _json?: MedicalFacilityPhysicianProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get physicianId(): string {\r\n return this._props.physicianId;\r\n }\r\n get medicalFacilityId(): string {\r\n return this._props.medicalFacilityId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: MedicalFacilityPhysicianProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n physicianId: this._props.physicianId,\r\n medicalFacilityId: this._props.medicalFacilityId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllMedicalFacilityPhysicianEntities = (state: AppState) =>\r\n state.entityStores.medicalFacilityPhysician.entities;\r\n\r\nexport const selectMedicalFacilityPhysicianById = (id: string) => (state: AppState) =>\r\n state.entityStores.medicalFacilityPhysician.entities.get(id);\r\n\r\nexport const selectMedicalFacilityPhysicianMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.medicalFacilityPhysician.meta.get(id);\r\n\r\nexport const selectMedicalFacilityPhysicianAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectMedicalFacilityPhysicianById(id),\r\n selectMedicalFacilityPhysicianMetadataById(id),\r\n (medicalFacilityPhysician, meta) => ({ medicalFacilityPhysician, meta }),\r\n );\r\n\r\nexport function selectMedicalFacilityPhysicianEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllMedicalFacilityPhysicianEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, MedicalFacilityPhysicianRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityPhysicianEntitiesByPhysicianId(physicianId: string) {\r\n return createSelector(selectAllMedicalFacilityPhysicianEntities, (entities) =>\r\n entities.filter((e) => e.physicianId === physicianId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityPhysicianEntitiesByMedicalFacilityId(\r\n medicalFacilityId: string,\r\n) {\r\n return createSelector(selectAllMedicalFacilityPhysicianEntities, (entities) =>\r\n entities.filter((e) => e.medicalFacilityId === medicalFacilityId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface MedicalFacilityUnitProps {\r\n id: string;\r\n name: string;\r\n phoneNumber: string | null;\r\n medicalFacilityId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class MedicalFacilityUnitRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n phoneNumber: null as any,\r\n medicalFacilityId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n phoneNumber: string | null;\r\n medicalFacilityId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): MedicalFacilityUnitRecord {\r\n if (json == null) {\r\n throw new Error('MedicalFacilityUnitRecord.fromJS: parameter cannot be null');\r\n }\r\n return new MedicalFacilityUnitRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'MedicalFacilityUnitJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'MedicalFacilityUnitJson.name'),\r\n phoneNumber: json.phoneNumber,\r\n medicalFacilityId: getFromOrThrow(\r\n json,\r\n (j) => j.medicalFacilityId,\r\n 'MedicalFacilityUnitJson.medicalFacilityId',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n phoneNumber: string | null;\r\n medicalFacilityId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [MedicalFacilityUnitRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('MedicalFacilityUnitRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new MedicalFacilityUnitRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'MedicalFacilityUnitJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'MedicalFacilityUnitJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n phoneNumber: tryOrDefault(\r\n () => json.phoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n medicalFacilityId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.medicalFacilityId,\r\n 'MedicalFacilityUnitJson.medicalFacilityId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: MedicalFacilityUnitProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('MedicalFacilityUnitRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class MedicalFacilityUnitViewModelBase implements MedicalFacilityUnitProps {\r\n protected readonly _props: MedicalFacilityUnitProps;\r\n private _json?: MedicalFacilityUnitProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get phoneNumber(): string | null {\r\n return this._props.phoneNumber;\r\n }\r\n get medicalFacilityId(): string {\r\n return this._props.medicalFacilityId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: MedicalFacilityUnitProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n phoneNumber: this._props.phoneNumber,\r\n medicalFacilityId: this._props.medicalFacilityId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllMedicalFacilityUnitEntities = (state: AppState) =>\r\n state.entityStores.medicalFacilityUnit.entities;\r\n\r\nexport const selectMedicalFacilityUnitById = (id: string) => (state: AppState) =>\r\n state.entityStores.medicalFacilityUnit.entities.get(id);\r\n\r\nexport const selectMedicalFacilityUnitMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.medicalFacilityUnit.meta.get(id);\r\n\r\nexport const selectMedicalFacilityUnitAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectMedicalFacilityUnitById(id),\r\n selectMedicalFacilityUnitMetadataById(id),\r\n (medicalFacilityUnit, meta) => ({ medicalFacilityUnit, meta }),\r\n );\r\n\r\nexport function selectMedicalFacilityUnitEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllMedicalFacilityUnitEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, MedicalFacilityUnitRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityUnitEntitiesByName(name: string) {\r\n return createSelector(selectAllMedicalFacilityUnitEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityUnitEntitiesByPhoneNumber(phoneNumber: string) {\r\n return createSelector(selectAllMedicalFacilityUnitEntities, (entities) =>\r\n entities.filter((e) => e.phoneNumber === phoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectMedicalFacilityUnitEntitiesByMedicalFacilityId(medicalFacilityId: string) {\r\n return createSelector(selectAllMedicalFacilityUnitEntities, (entities) =>\r\n entities.filter((e) => e.medicalFacilityId === medicalFacilityId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface MedicalUnitProps {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class MedicalUnitRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): MedicalUnitRecord {\r\n if (json == null) {\r\n throw new Error('MedicalUnitRecord.fromJS: parameter cannot be null');\r\n }\r\n return new MedicalUnitRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'MedicalUnitJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'MedicalUnitJson.name'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [MedicalUnitRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('MedicalUnitRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new MedicalUnitRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'MedicalUnitJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'MedicalUnitJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: MedicalUnitProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('MedicalUnitRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class MedicalUnitViewModelBase implements MedicalUnitProps {\r\n protected readonly _props: MedicalUnitProps;\r\n private _json?: MedicalUnitProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: MedicalUnitProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllMedicalUnitEntities = (state: AppState) =>\r\n state.entityStores.medicalUnit.entities;\r\n\r\nexport const selectMedicalUnitById = (id: string) => (state: AppState) =>\r\n state.entityStores.medicalUnit.entities.get(id);\r\n\r\nexport const selectMedicalUnitMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.medicalUnit.meta.get(id);\r\n\r\nexport const selectMedicalUnitAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectMedicalUnitById(id),\r\n selectMedicalUnitMetadataById(id),\r\n (medicalUnit, meta) => ({ medicalUnit, meta }),\r\n );\r\n\r\nexport function selectMedicalUnitEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllMedicalUnitEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, MedicalUnitRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectMedicalUnitEntitiesByName(name: string) {\r\n return createSelector(selectAllMedicalUnitEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TcsRealtimeTrackingProps {\r\n tabId: string | null;\r\n tabDate: Date | null;\r\n}\r\n\r\nexport class TcsRealtimeTrackingRecord extends Record({\r\n tabId: null as any,\r\n tabDate: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n tabId: string | null;\r\n tabDate: string | number | Date | null;\r\n }): TcsRealtimeTrackingRecord {\r\n if (json == null) {\r\n throw new Error('TcsRealtimeTrackingRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TcsRealtimeTrackingRecord({\r\n tabId: json.tabId,\r\n tabDate: json.tabDate != null ? new Date(json.tabDate) : null,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n tabId: string | null;\r\n tabDate: string | number | Date | null;\r\n }): [TcsRealtimeTrackingRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TcsRealtimeTrackingRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TcsRealtimeTrackingRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tabId: tryOrDefault(\r\n () => json.tabId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tabDate: tryOrDefault(\r\n () => (json.tabDate != null ? new Date(json.tabDate) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TcsRealtimeTrackingProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TcsRealtimeTrackingRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TcsRealtimeTrackingViewModelBase implements TcsRealtimeTrackingProps {\r\n protected readonly _props: TcsRealtimeTrackingProps;\r\n private _json?: TcsRealtimeTrackingProps;\r\n\r\n get tabId(): string | null {\r\n return this._props.tabId;\r\n }\r\n get tabDate(): Date | null {\r\n return this._props.tabDate;\r\n }\r\n\r\n constructor(props: TcsRealtimeTrackingProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n tabId: this._props.tabId,\r\n tabDate: this._props.tabDate,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n TcsRealtimeTrackingRecord,\r\n TcsRealtimeTrackingProps,\r\n} from 'src/store/generated/tcs-realtime-tracking-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface UserApplicationSettingsProps {\r\n tcsRealtimeTracking: TcsRealtimeTrackingProps;\r\n}\r\n\r\nexport class UserApplicationSettingsRecord extends Record({\r\n tcsRealtimeTracking: null as any,\r\n}) {\r\n public static fromJS(json: { tcsRealtimeTracking: any }): UserApplicationSettingsRecord {\r\n if (json == null) {\r\n throw new Error('UserApplicationSettingsRecord.fromJS: parameter cannot be null');\r\n }\r\n return new UserApplicationSettingsRecord({\r\n tcsRealtimeTracking: new TcsRealtimeTrackingRecord(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.tcsRealtimeTracking,\r\n 'UserApplicationSettingsJson.tcsRealtimeTracking',\r\n ),\r\n ),\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n tcsRealtimeTracking: any;\r\n }): [UserApplicationSettingsRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('UserApplicationSettingsRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new UserApplicationSettingsRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tcsRealtimeTracking: tryOrDefault(\r\n () =>\r\n new TcsRealtimeTrackingRecord(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.tcsRealtimeTracking,\r\n 'UserApplicationSettingsJson.tcsRealtimeTracking',\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: UserApplicationSettingsProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('UserApplicationSettingsRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class UserApplicationSettingsViewModelBase implements UserApplicationSettingsProps {\r\n protected readonly _props: UserApplicationSettingsProps;\r\n private _json?: UserApplicationSettingsProps;\r\n\r\n get tcsRealtimeTracking(): TcsRealtimeTrackingProps {\r\n return this._props.tcsRealtimeTracking;\r\n }\r\n\r\n constructor(props: UserApplicationSettingsProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n tcsRealtimeTracking: this._props.tcsRealtimeTracking,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { EmployeeType, TimeType, UserRole } from 'src/graphql/generated/graphql.generated';\r\nimport {\r\n UserApplicationSettingsRecord,\r\n UserApplicationSettingsProps,\r\n} from 'src/store/generated/user-application-settings-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface PersonProps {\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n hireDate: Date | null;\r\n terminationDate: Date | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n notificationAddress: string | null;\r\n userRoles: Set | null;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n isOutOfFlightCompliance: boolean;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: Date | null;\r\n appSettings: UserApplicationSettingsProps | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class PersonRecord extends Record({\r\n id: null as any,\r\n firstName: null as any,\r\n lastName: null as any,\r\n email: null as any,\r\n title: null as any,\r\n employeeId: null as any,\r\n employeeType: null as any,\r\n timeType: null as any,\r\n hireDate: null as any,\r\n terminationDate: null as any,\r\n departmentId: null as any,\r\n reportsToPersonId: null as any,\r\n baseId: null as any,\r\n locationId: null as any,\r\n programId: null as any,\r\n activeDirectoryId: null as any,\r\n activateOktaAccount: null as any,\r\n grantTcsAccess: null as any,\r\n notificationAddress: null as any,\r\n userRoles: null as any,\r\n allCompaniesAccessible: null as any,\r\n allBasesAccessible: null as any,\r\n allTrmProgramsAccessible: null as any,\r\n allCommunicationCentersAccessible: null as any,\r\n faaCompanyId: null as any,\r\n dispatchCompanyId: null as any,\r\n aviationCompanyId: null as any,\r\n primaryCommunicationCenterId: null as any,\r\n isOutOfFlightCompliance: null as any,\r\n outOfFlightComplianceComment: null as any,\r\n dateLastUpdatedFromGMRWorkday: null as any,\r\n appSettings: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n hireDate: string | number | Date | null;\r\n terminationDate: string | number | Date | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n notificationAddress: string | null;\r\n userRoles: any;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n isOutOfFlightCompliance: boolean;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: string | number | Date | null;\r\n appSettings: any;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): PersonRecord {\r\n if (json == null) {\r\n throw new Error('PersonRecord.fromJS: parameter cannot be null');\r\n }\r\n return new PersonRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'PersonJson.id'),\r\n firstName: getFromOrThrow(json, (j) => j.firstName, 'PersonJson.firstName'),\r\n lastName: getFromOrThrow(json, (j) => j.lastName, 'PersonJson.lastName'),\r\n email: getFromOrThrow(json, (j) => j.email, 'PersonJson.email'),\r\n title: json.title,\r\n employeeId: json.employeeId,\r\n employeeType: getFromOrThrow(json, (j) => j.employeeType, 'PersonJson.employeeType'),\r\n timeType: getFromOrThrow(json, (j) => j.timeType, 'PersonJson.timeType'),\r\n hireDate: json.hireDate != null ? new Date(json.hireDate) : null,\r\n terminationDate: json.terminationDate != null ? new Date(json.terminationDate) : null,\r\n departmentId: json.departmentId,\r\n reportsToPersonId: json.reportsToPersonId,\r\n baseId: json.baseId,\r\n locationId: json.locationId,\r\n programId: json.programId,\r\n activeDirectoryId: json.activeDirectoryId,\r\n activateOktaAccount: getFromOrThrow(\r\n json,\r\n (j) => j.activateOktaAccount,\r\n 'PersonJson.activateOktaAccount',\r\n ),\r\n grantTcsAccess: getFromOrThrow(json, (j) => j.grantTcsAccess, 'PersonJson.grantTcsAccess'),\r\n notificationAddress: json.notificationAddress,\r\n userRoles: json.userRoles != null ? Set(json.userRoles) : null,\r\n allCompaniesAccessible: json.allCompaniesAccessible,\r\n allBasesAccessible: json.allBasesAccessible,\r\n allTrmProgramsAccessible: json.allTrmProgramsAccessible,\r\n allCommunicationCentersAccessible: json.allCommunicationCentersAccessible,\r\n faaCompanyId: json.faaCompanyId,\r\n dispatchCompanyId: json.dispatchCompanyId,\r\n aviationCompanyId: json.aviationCompanyId,\r\n primaryCommunicationCenterId: json.primaryCommunicationCenterId,\r\n isOutOfFlightCompliance: getFromOrThrow(\r\n json,\r\n (j) => j.isOutOfFlightCompliance,\r\n 'PersonJson.isOutOfFlightCompliance',\r\n ),\r\n outOfFlightComplianceComment: json.outOfFlightComplianceComment,\r\n dateLastUpdatedFromGMRWorkday:\r\n json.dateLastUpdatedFromGMRWorkday != null\r\n ? new Date(json.dateLastUpdatedFromGMRWorkday)\r\n : null,\r\n appSettings:\r\n json.appSettings != null ? new UserApplicationSettingsRecord(json.appSettings) : null,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'PersonJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n title: string | null;\r\n employeeId: string | null;\r\n employeeType: EmployeeType;\r\n timeType: TimeType;\r\n hireDate: string | number | Date | null;\r\n terminationDate: string | number | Date | null;\r\n departmentId: string | null;\r\n reportsToPersonId: string | null;\r\n baseId: string | null;\r\n locationId: string | null;\r\n programId: string | null;\r\n activeDirectoryId: string | null;\r\n activateOktaAccount: boolean;\r\n grantTcsAccess: boolean;\r\n notificationAddress: string | null;\r\n userRoles: any;\r\n allCompaniesAccessible: boolean | null;\r\n allBasesAccessible: boolean | null;\r\n allTrmProgramsAccessible: boolean | null;\r\n allCommunicationCentersAccessible: boolean | null;\r\n faaCompanyId: string | null;\r\n dispatchCompanyId: string | null;\r\n aviationCompanyId: string | null;\r\n primaryCommunicationCenterId: string | null;\r\n isOutOfFlightCompliance: boolean;\r\n outOfFlightComplianceComment: string | null;\r\n dateLastUpdatedFromGMRWorkday: string | number | Date | null;\r\n appSettings: any;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [PersonRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('PersonRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new PersonRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'PersonJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n firstName: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.firstName, 'PersonJson.firstName'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastName: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.lastName, 'PersonJson.lastName'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n email: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.email, 'PersonJson.email'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n title: tryOrDefault(\r\n () => json.title,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n employeeId: tryOrDefault(\r\n () => json.employeeId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n employeeType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.employeeType, 'PersonJson.employeeType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timeType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.timeType, 'PersonJson.timeType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n hireDate: tryOrDefault(\r\n () => (json.hireDate != null ? new Date(json.hireDate) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n terminationDate: tryOrDefault(\r\n () => (json.terminationDate != null ? new Date(json.terminationDate) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n departmentId: tryOrDefault(\r\n () => json.departmentId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n reportsToPersonId: tryOrDefault(\r\n () => json.reportsToPersonId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseId: tryOrDefault(\r\n () => json.baseId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n locationId: tryOrDefault(\r\n () => json.locationId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n programId: tryOrDefault(\r\n () => json.programId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n activeDirectoryId: tryOrDefault(\r\n () => json.activeDirectoryId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n activateOktaAccount: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.activateOktaAccount, 'PersonJson.activateOktaAccount'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n grantTcsAccess: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.grantTcsAccess, 'PersonJson.grantTcsAccess'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notificationAddress: tryOrDefault(\r\n () => json.notificationAddress,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n userRoles: tryOrDefault(\r\n () => (json.userRoles != null ? Set(json.userRoles) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n allCompaniesAccessible: tryOrDefault(\r\n () => json.allCompaniesAccessible,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n allBasesAccessible: tryOrDefault(\r\n () => json.allBasesAccessible,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n allTrmProgramsAccessible: tryOrDefault(\r\n () => json.allTrmProgramsAccessible,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n allCommunicationCentersAccessible: tryOrDefault(\r\n () => json.allCommunicationCentersAccessible,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n faaCompanyId: tryOrDefault(\r\n () => json.faaCompanyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dispatchCompanyId: tryOrDefault(\r\n () => json.dispatchCompanyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n aviationCompanyId: tryOrDefault(\r\n () => json.aviationCompanyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n primaryCommunicationCenterId: tryOrDefault(\r\n () => json.primaryCommunicationCenterId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isOutOfFlightCompliance: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.isOutOfFlightCompliance,\r\n 'PersonJson.isOutOfFlightCompliance',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n outOfFlightComplianceComment: tryOrDefault(\r\n () => json.outOfFlightComplianceComment,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateLastUpdatedFromGMRWorkday: tryOrDefault(\r\n () =>\r\n json.dateLastUpdatedFromGMRWorkday != null\r\n ? new Date(json.dateLastUpdatedFromGMRWorkday)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n appSettings: tryOrDefault(\r\n () =>\r\n json.appSettings != null ? new UserApplicationSettingsRecord(json.appSettings) : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'PersonJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: PersonProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('PersonRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class PersonViewModelBase implements PersonProps {\r\n protected readonly _props: PersonProps;\r\n private _json?: PersonProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get firstName(): string {\r\n return this._props.firstName;\r\n }\r\n get lastName(): string {\r\n return this._props.lastName;\r\n }\r\n get email(): string {\r\n return this._props.email;\r\n }\r\n get title(): string | null {\r\n return this._props.title;\r\n }\r\n get employeeId(): string | null {\r\n return this._props.employeeId;\r\n }\r\n get employeeType(): EmployeeType {\r\n return this._props.employeeType;\r\n }\r\n get timeType(): TimeType {\r\n return this._props.timeType;\r\n }\r\n get hireDate(): Date | null {\r\n return this._props.hireDate;\r\n }\r\n get terminationDate(): Date | null {\r\n return this._props.terminationDate;\r\n }\r\n get departmentId(): string | null {\r\n return this._props.departmentId;\r\n }\r\n get reportsToPersonId(): string | null {\r\n return this._props.reportsToPersonId;\r\n }\r\n get baseId(): string | null {\r\n return this._props.baseId;\r\n }\r\n get locationId(): string | null {\r\n return this._props.locationId;\r\n }\r\n get programId(): string | null {\r\n return this._props.programId;\r\n }\r\n get activeDirectoryId(): string | null {\r\n return this._props.activeDirectoryId;\r\n }\r\n get activateOktaAccount(): boolean {\r\n return this._props.activateOktaAccount;\r\n }\r\n get grantTcsAccess(): boolean {\r\n return this._props.grantTcsAccess;\r\n }\r\n get notificationAddress(): string | null {\r\n return this._props.notificationAddress;\r\n }\r\n get userRoles(): Set | null {\r\n return this._props.userRoles;\r\n }\r\n get allCompaniesAccessible(): boolean | null {\r\n return this._props.allCompaniesAccessible;\r\n }\r\n get allBasesAccessible(): boolean | null {\r\n return this._props.allBasesAccessible;\r\n }\r\n get allTrmProgramsAccessible(): boolean | null {\r\n return this._props.allTrmProgramsAccessible;\r\n }\r\n get allCommunicationCentersAccessible(): boolean | null {\r\n return this._props.allCommunicationCentersAccessible;\r\n }\r\n get faaCompanyId(): string | null {\r\n return this._props.faaCompanyId;\r\n }\r\n get dispatchCompanyId(): string | null {\r\n return this._props.dispatchCompanyId;\r\n }\r\n get aviationCompanyId(): string | null {\r\n return this._props.aviationCompanyId;\r\n }\r\n get primaryCommunicationCenterId(): string | null {\r\n return this._props.primaryCommunicationCenterId;\r\n }\r\n get isOutOfFlightCompliance(): boolean {\r\n return this._props.isOutOfFlightCompliance;\r\n }\r\n get outOfFlightComplianceComment(): string | null {\r\n return this._props.outOfFlightComplianceComment;\r\n }\r\n get dateLastUpdatedFromGMRWorkday(): Date | null {\r\n return this._props.dateLastUpdatedFromGMRWorkday;\r\n }\r\n get appSettings(): UserApplicationSettingsProps | null {\r\n return this._props.appSettings;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isContingent() {\r\n return this._props.employeeType === EmployeeType.Contingent;\r\n }\r\n public get isNonEmployee() {\r\n return this._props.employeeType === EmployeeType.NonEmployee;\r\n }\r\n public get isPrn() {\r\n return this._props.employeeType === EmployeeType.Prn;\r\n }\r\n public get isRegular() {\r\n return this._props.employeeType === EmployeeType.Regular;\r\n }\r\n public get isTemporary() {\r\n return this._props.employeeType === EmployeeType.Temporary;\r\n }\r\n public get isEmployeeTypeUnspecified() {\r\n return this._props.employeeType === EmployeeType.Unspecified;\r\n }\r\n public get isTimeTypeUnspecified() {\r\n return this._props.timeType === TimeType.Unspecified;\r\n }\r\n public get isFullTime() {\r\n return this._props.timeType === TimeType.FullTime;\r\n }\r\n public get isPartTime() {\r\n return this._props.timeType === TimeType.PartTime;\r\n }\r\n\r\n public isAnyEmployeeType(...employeeType: EmployeeType[]) {\r\n return employeeType.includes(this._props.employeeType);\r\n }\r\n public isAnyTimeType(...timeType: TimeType[]) {\r\n return timeType.includes(this._props.timeType);\r\n }\r\n\r\n constructor(props: PersonProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n firstName: this._props.firstName,\r\n lastName: this._props.lastName,\r\n email: this._props.email,\r\n title: this._props.title,\r\n employeeId: this._props.employeeId,\r\n employeeType: this._props.employeeType,\r\n timeType: this._props.timeType,\r\n hireDate: this._props.hireDate,\r\n terminationDate: this._props.terminationDate,\r\n departmentId: this._props.departmentId,\r\n reportsToPersonId: this._props.reportsToPersonId,\r\n baseId: this._props.baseId,\r\n locationId: this._props.locationId,\r\n programId: this._props.programId,\r\n activeDirectoryId: this._props.activeDirectoryId,\r\n activateOktaAccount: this._props.activateOktaAccount,\r\n grantTcsAccess: this._props.grantTcsAccess,\r\n notificationAddress: this._props.notificationAddress,\r\n userRoles: this._props.userRoles,\r\n allCompaniesAccessible: this._props.allCompaniesAccessible,\r\n allBasesAccessible: this._props.allBasesAccessible,\r\n allTrmProgramsAccessible: this._props.allTrmProgramsAccessible,\r\n allCommunicationCentersAccessible: this._props.allCommunicationCentersAccessible,\r\n faaCompanyId: this._props.faaCompanyId,\r\n dispatchCompanyId: this._props.dispatchCompanyId,\r\n aviationCompanyId: this._props.aviationCompanyId,\r\n primaryCommunicationCenterId: this._props.primaryCommunicationCenterId,\r\n isOutOfFlightCompliance: this._props.isOutOfFlightCompliance,\r\n outOfFlightComplianceComment: this._props.outOfFlightComplianceComment,\r\n dateLastUpdatedFromGMRWorkday: this._props.dateLastUpdatedFromGMRWorkday,\r\n appSettings: this._props.appSettings,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllPersonEntities = (state: AppState) => state.entityStores.person.entities;\r\n\r\nexport const selectPersonById = (id: string) => (state: AppState) =>\r\n state.entityStores.person.entities.get(id);\r\n\r\nexport const selectPersonMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.person.meta.get(id);\r\n\r\nexport const selectPersonAndMetadataById = (id: string) =>\r\n createSelector(selectPersonById(id), selectPersonMetadataById(id), (person, meta) => ({\r\n person,\r\n meta,\r\n }));\r\n\r\nexport function selectPersonEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllPersonEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, PersonRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByFirstName(firstName: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.firstName === firstName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByLastName(lastName: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.lastName === lastName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByEmail(email: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.email === email).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByTitle(title: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.title === title).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByEmployeeId(employeeId: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.employeeId === employeeId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByEmployeeType(employeeType: EmployeeType) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.employeeType === employeeType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByTimeType(timeType: TimeType) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.timeType === timeType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByHireDate(hireDate: Date) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.hireDate === hireDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByTerminationDate(terminationDate: Date) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.terminationDate === terminationDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByDepartmentId(departmentId: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.departmentId === departmentId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByReportsToPersonId(reportsToPersonId: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.reportsToPersonId === reportsToPersonId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByBaseId(baseId: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.baseId === baseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByLocationId(locationId: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.locationId === locationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByProgramId(programId: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.programId === programId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByActiveDirectoryId(activeDirectoryId: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.activeDirectoryId === activeDirectoryId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByActivateOktaAccount(activateOktaAccount: boolean) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.activateOktaAccount === activateOktaAccount).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByGrantTcsAccess(grantTcsAccess: boolean) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.grantTcsAccess === grantTcsAccess).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByNotificationAddress(notificationAddress: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.notificationAddress === notificationAddress).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByAllCompaniesAccessible(allCompaniesAccessible: boolean) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.allCompaniesAccessible === allCompaniesAccessible).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByAllBasesAccessible(allBasesAccessible: boolean) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.allBasesAccessible === allBasesAccessible).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByAllTrmProgramsAccessible(allTrmProgramsAccessible: boolean) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.allTrmProgramsAccessible === allTrmProgramsAccessible).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByAllCommunicationCentersAccessible(\r\n allCommunicationCentersAccessible: boolean,\r\n) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities\r\n .filter((e) => e.allCommunicationCentersAccessible === allCommunicationCentersAccessible)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByFaaCompanyId(faaCompanyId: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.faaCompanyId === faaCompanyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByDispatchCompanyId(dispatchCompanyId: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.dispatchCompanyId === dispatchCompanyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByAviationCompanyId(aviationCompanyId: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.aviationCompanyId === aviationCompanyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByPrimaryCommunicationCenterId(\r\n primaryCommunicationCenterId: string,\r\n) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities\r\n .filter((e) => e.primaryCommunicationCenterId === primaryCommunicationCenterId)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByIsOutOfFlightCompliance(isOutOfFlightCompliance: boolean) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.isOutOfFlightCompliance === isOutOfFlightCompliance).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByOutOfFlightComplianceComment(\r\n outOfFlightComplianceComment: string,\r\n) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities\r\n .filter((e) => e.outOfFlightComplianceComment === outOfFlightComplianceComment)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByDateLastUpdatedFromGMRWorkday(\r\n dateLastUpdatedFromGMRWorkday: Date,\r\n) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities\r\n .filter((e) => e.dateLastUpdatedFromGMRWorkday === dateLastUpdatedFromGMRWorkday)\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPersonEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllPersonEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface PhysicianProps {\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class PhysicianRecord extends Record({\r\n id: null as any,\r\n firstName: null as any,\r\n lastName: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): PhysicianRecord {\r\n if (json == null) {\r\n throw new Error('PhysicianRecord.fromJS: parameter cannot be null');\r\n }\r\n return new PhysicianRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'PhysicianJson.id'),\r\n firstName: getFromOrThrow(json, (j) => j.firstName, 'PhysicianJson.firstName'),\r\n lastName: getFromOrThrow(json, (j) => j.lastName, 'PhysicianJson.lastName'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n firstName: string;\r\n lastName: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [PhysicianRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('PhysicianRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new PhysicianRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'PhysicianJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n firstName: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.firstName, 'PhysicianJson.firstName'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastName: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.lastName, 'PhysicianJson.lastName'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: PhysicianProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('PhysicianRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class PhysicianViewModelBase implements PhysicianProps {\r\n protected readonly _props: PhysicianProps;\r\n private _json?: PhysicianProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get firstName(): string {\r\n return this._props.firstName;\r\n }\r\n get lastName(): string {\r\n return this._props.lastName;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: PhysicianProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n firstName: this._props.firstName,\r\n lastName: this._props.lastName,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllPhysicianEntities = (state: AppState) =>\r\n state.entityStores.physician.entities;\r\n\r\nexport const selectPhysicianById = (id: string) => (state: AppState) =>\r\n state.entityStores.physician.entities.get(id);\r\n\r\nexport const selectPhysicianMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.physician.meta.get(id);\r\n\r\nexport const selectPhysicianAndMetadataById = (id: string) =>\r\n createSelector(selectPhysicianById(id), selectPhysicianMetadataById(id), (physician, meta) => ({\r\n physician,\r\n meta,\r\n }));\r\n\r\nexport function selectPhysicianEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllPhysicianEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, PhysicianRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectPhysicianEntitiesByFirstName(firstName: string) {\r\n return createSelector(selectAllPhysicianEntities, (entities) =>\r\n entities.filter((e) => e.firstName === firstName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectPhysicianEntitiesByLastName(lastName: string) {\r\n return createSelector(selectAllPhysicianEntities, (entities) =>\r\n entities.filter((e) => e.lastName === lastName).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ProgramBaseProps {\r\n id: string;\r\n startTime: Date | null;\r\n endTime: Date | null;\r\n baseId: string;\r\n programId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ProgramBaseRecord extends Record({\r\n id: null as any,\r\n startTime: null as any,\r\n endTime: null as any,\r\n baseId: null as any,\r\n programId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n startTime: string | number | Date | null;\r\n endTime: string | number | Date | null;\r\n baseId: string;\r\n programId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ProgramBaseRecord {\r\n if (json == null) {\r\n throw new Error('ProgramBaseRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ProgramBaseRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ProgramBaseJson.id'),\r\n startTime: json.startTime != null ? new Date(json.startTime) : null,\r\n endTime: json.endTime != null ? new Date(json.endTime) : null,\r\n baseId: getFromOrThrow(json, (j) => j.baseId, 'ProgramBaseJson.baseId'),\r\n programId: getFromOrThrow(json, (j) => j.programId, 'ProgramBaseJson.programId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'ProgramBaseJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n startTime: string | number | Date | null;\r\n endTime: string | number | Date | null;\r\n baseId: string;\r\n programId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ProgramBaseRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ProgramBaseRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ProgramBaseRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ProgramBaseJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n startTime: tryOrDefault(\r\n () => (json.startTime != null ? new Date(json.startTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n endTime: tryOrDefault(\r\n () => (json.endTime != null ? new Date(json.endTime) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.baseId, 'ProgramBaseJson.baseId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n programId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.programId, 'ProgramBaseJson.programId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'ProgramBaseJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ProgramBaseProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ProgramBaseRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ProgramBaseViewModelBase implements ProgramBaseProps {\r\n protected readonly _props: ProgramBaseProps;\r\n private _json?: ProgramBaseProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get startTime(): Date | null {\r\n return this._props.startTime;\r\n }\r\n get endTime(): Date | null {\r\n return this._props.endTime;\r\n }\r\n get baseId(): string {\r\n return this._props.baseId;\r\n }\r\n get programId(): string {\r\n return this._props.programId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: ProgramBaseProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n startTime: this._props.startTime,\r\n endTime: this._props.endTime,\r\n baseId: this._props.baseId,\r\n programId: this._props.programId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllProgramBaseEntities = (state: AppState) =>\r\n state.entityStores.programBase.entities;\r\n\r\nexport const selectProgramBaseById = (id: string) => (state: AppState) =>\r\n state.entityStores.programBase.entities.get(id);\r\n\r\nexport const selectProgramBaseMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.programBase.meta.get(id);\r\n\r\nexport const selectProgramBaseAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectProgramBaseById(id),\r\n selectProgramBaseMetadataById(id),\r\n (programBase, meta) => ({ programBase, meta }),\r\n );\r\n\r\nexport function selectProgramBaseEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllProgramBaseEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ProgramBaseRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectProgramBaseEntitiesByStartTime(startTime: Date) {\r\n return createSelector(selectAllProgramBaseEntities, (entities) =>\r\n entities.filter((e) => e.startTime === startTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectProgramBaseEntitiesByEndTime(endTime: Date) {\r\n return createSelector(selectAllProgramBaseEntities, (entities) =>\r\n entities.filter((e) => e.endTime === endTime).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectProgramBaseEntitiesByBaseId(baseId: string) {\r\n return createSelector(selectAllProgramBaseEntities, (entities) =>\r\n entities.filter((e) => e.baseId === baseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectProgramBaseEntitiesByProgramId(programId: string) {\r\n return createSelector(selectAllProgramBaseEntities, (entities) =>\r\n entities.filter((e) => e.programId === programId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectProgramBaseEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllProgramBaseEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ProgramProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n adminId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ProgramRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n code: null as any,\r\n adminId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n adminId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ProgramRecord {\r\n if (json == null) {\r\n throw new Error('ProgramRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ProgramRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ProgramJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'ProgramJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'ProgramJson.abbreviation'),\r\n code: getFromOrThrow(json, (j) => j.code, 'ProgramJson.code'),\r\n adminId: json.adminId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'ProgramJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n adminId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ProgramRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ProgramRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ProgramRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ProgramJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'ProgramJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'ProgramJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n code: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.code, 'ProgramJson.code'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n adminId: tryOrDefault(\r\n () => json.adminId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'ProgramJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ProgramProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ProgramRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ProgramViewModelBase implements ProgramProps {\r\n protected readonly _props: ProgramProps;\r\n private _json?: ProgramProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get code(): string {\r\n return this._props.code;\r\n }\r\n get adminId(): string | null {\r\n return this._props.adminId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: ProgramProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n code: this._props.code,\r\n adminId: this._props.adminId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllProgramEntities = (state: AppState) => state.entityStores.program.entities;\r\n\r\nexport const selectProgramById = (id: string) => (state: AppState) =>\r\n state.entityStores.program.entities.get(id);\r\n\r\nexport const selectProgramMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.program.meta.get(id);\r\n\r\nexport const selectProgramAndMetadataById = (id: string) =>\r\n createSelector(selectProgramById(id), selectProgramMetadataById(id), (program, meta) => ({\r\n program,\r\n meta,\r\n }));\r\n\r\nexport function selectProgramEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllProgramEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ProgramRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectProgramEntitiesByName(name: string) {\r\n return createSelector(selectAllProgramEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectProgramEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllProgramEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectProgramEntitiesByCode(code: string) {\r\n return createSelector(selectAllProgramEntities, (entities) =>\r\n entities.filter((e) => e.code === code).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectProgramEntitiesByAdminId(adminId: string) {\r\n return createSelector(selectAllProgramEntities, (entities) =>\r\n entities.filter((e) => e.adminId === adminId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectProgramEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllProgramEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RamcoVehicleConfigurationProps {\r\n id: string;\r\n maintenanceSystemId: string;\r\n tailNumber: string;\r\n modelNumber: string;\r\n companyCode: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class RamcoVehicleConfigurationRecord extends Record({\r\n id: null as any,\r\n maintenanceSystemId: null as any,\r\n tailNumber: null as any,\r\n modelNumber: null as any,\r\n companyCode: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n maintenanceSystemId: string;\r\n tailNumber: string;\r\n modelNumber: string;\r\n companyCode: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): RamcoVehicleConfigurationRecord {\r\n if (json == null) {\r\n throw new Error('RamcoVehicleConfigurationRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RamcoVehicleConfigurationRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RamcoVehicleConfigurationJson.id'),\r\n maintenanceSystemId: getFromOrThrow(\r\n json,\r\n (j) => j.maintenanceSystemId,\r\n 'RamcoVehicleConfigurationJson.maintenanceSystemId',\r\n ),\r\n tailNumber: getFromOrThrow(\r\n json,\r\n (j) => j.tailNumber,\r\n 'RamcoVehicleConfigurationJson.tailNumber',\r\n ),\r\n modelNumber: getFromOrThrow(\r\n json,\r\n (j) => j.modelNumber,\r\n 'RamcoVehicleConfigurationJson.modelNumber',\r\n ),\r\n companyCode: getFromOrThrow(\r\n json,\r\n (j) => j.companyCode,\r\n 'RamcoVehicleConfigurationJson.companyCode',\r\n ),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n maintenanceSystemId: string;\r\n tailNumber: string;\r\n modelNumber: string;\r\n companyCode: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [RamcoVehicleConfigurationRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RamcoVehicleConfigurationRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RamcoVehicleConfigurationRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RamcoVehicleConfigurationJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n maintenanceSystemId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.maintenanceSystemId,\r\n 'RamcoVehicleConfigurationJson.maintenanceSystemId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n tailNumber: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.tailNumber, 'RamcoVehicleConfigurationJson.tailNumber'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n modelNumber: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.modelNumber, 'RamcoVehicleConfigurationJson.modelNumber'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyCode: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.companyCode, 'RamcoVehicleConfigurationJson.companyCode'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RamcoVehicleConfigurationProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RamcoVehicleConfigurationRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RamcoVehicleConfigurationViewModelBase\r\n implements RamcoVehicleConfigurationProps\r\n{\r\n protected readonly _props: RamcoVehicleConfigurationProps;\r\n private _json?: RamcoVehicleConfigurationProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get maintenanceSystemId(): string {\r\n return this._props.maintenanceSystemId;\r\n }\r\n get tailNumber(): string {\r\n return this._props.tailNumber;\r\n }\r\n get modelNumber(): string {\r\n return this._props.modelNumber;\r\n }\r\n get companyCode(): string {\r\n return this._props.companyCode;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: RamcoVehicleConfigurationProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n maintenanceSystemId: this._props.maintenanceSystemId,\r\n tailNumber: this._props.tailNumber,\r\n modelNumber: this._props.modelNumber,\r\n companyCode: this._props.companyCode,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllRamcoVehicleConfigurationEntities = (state: AppState) =>\r\n state.entityStores.ramcoVehicleConfiguration.entities;\r\n\r\nexport const selectRamcoVehicleConfigurationById = (id: string) => (state: AppState) =>\r\n state.entityStores.ramcoVehicleConfiguration.entities.get(id);\r\n\r\nexport const selectRamcoVehicleConfigurationMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.ramcoVehicleConfiguration.meta.get(id);\r\n\r\nexport const selectRamcoVehicleConfigurationAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectRamcoVehicleConfigurationById(id),\r\n selectRamcoVehicleConfigurationMetadataById(id),\r\n (ramcoVehicleConfiguration, meta) => ({ ramcoVehicleConfiguration, meta }),\r\n );\r\n\r\nexport function selectRamcoVehicleConfigurationEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllRamcoVehicleConfigurationEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, RamcoVehicleConfigurationRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRamcoVehicleConfigurationEntitiesByMaintenanceSystemId(\r\n maintenanceSystemId: string,\r\n) {\r\n return createSelector(selectAllRamcoVehicleConfigurationEntities, (entities) =>\r\n entities.filter((e) => e.maintenanceSystemId === maintenanceSystemId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRamcoVehicleConfigurationEntitiesByTailNumber(tailNumber: string) {\r\n return createSelector(selectAllRamcoVehicleConfigurationEntities, (entities) =>\r\n entities.filter((e) => e.tailNumber === tailNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRamcoVehicleConfigurationEntitiesByModelNumber(modelNumber: string) {\r\n return createSelector(selectAllRamcoVehicleConfigurationEntities, (entities) =>\r\n entities.filter((e) => e.modelNumber === modelNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRamcoVehicleConfigurationEntitiesByCompanyCode(companyCode: string) {\r\n return createSelector(selectAllRamcoVehicleConfigurationEntities, (entities) =>\r\n entities.filter((e) => e.companyCode === companyCode).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RegionBaseProps {\r\n id: string;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class RegionBaseRecord extends Record({\r\n id: null as any,\r\n baseId: null as any,\r\n regionId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): RegionBaseRecord {\r\n if (json == null) {\r\n throw new Error('RegionBaseRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RegionBaseRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RegionBaseJson.id'),\r\n baseId: getFromOrThrow(json, (j) => j.baseId, 'RegionBaseJson.baseId'),\r\n regionId: getFromOrThrow(json, (j) => j.regionId, 'RegionBaseJson.regionId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'RegionBaseJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n baseId: string;\r\n regionId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [RegionBaseRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RegionBaseRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RegionBaseRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RegionBaseJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n baseId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.baseId, 'RegionBaseJson.baseId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.regionId, 'RegionBaseJson.regionId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'RegionBaseJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RegionBaseProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RegionBaseRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RegionBaseViewModelBase implements RegionBaseProps {\r\n protected readonly _props: RegionBaseProps;\r\n private _json?: RegionBaseProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get baseId(): string {\r\n return this._props.baseId;\r\n }\r\n get regionId(): string {\r\n return this._props.regionId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: RegionBaseProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n baseId: this._props.baseId,\r\n regionId: this._props.regionId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllRegionBaseEntities = (state: AppState) =>\r\n state.entityStores.regionBase.entities;\r\n\r\nexport const selectRegionBaseById = (id: string) => (state: AppState) =>\r\n state.entityStores.regionBase.entities.get(id);\r\n\r\nexport const selectRegionBaseMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.regionBase.meta.get(id);\r\n\r\nexport const selectRegionBaseAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectRegionBaseById(id),\r\n selectRegionBaseMetadataById(id),\r\n (regionBase, meta) => ({ regionBase, meta }),\r\n );\r\n\r\nexport function selectRegionBaseEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllRegionBaseEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, RegionBaseRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRegionBaseEntitiesByBaseId(baseId: string) {\r\n return createSelector(selectAllRegionBaseEntities, (entities) =>\r\n entities.filter((e) => e.baseId === baseId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionBaseEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllRegionBaseEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionBaseEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllRegionBaseEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RegionProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n regionGroupId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class RegionRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n timezoneCd: null as any,\r\n emSystemDivisionName: null as any,\r\n dispatchNumber: null as any,\r\n communicationCenterId: null as any,\r\n isTransferCenterRegion: null as any,\r\n fixedWingPreferredThresholdInNauticalMiles: null as any,\r\n regionGroupId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n regionGroupId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): RegionRecord {\r\n if (json == null) {\r\n throw new Error('RegionRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RegionRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RegionJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'RegionJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'RegionJson.abbreviation'),\r\n timezoneCd: json.timezoneCd,\r\n emSystemDivisionName: json.emSystemDivisionName,\r\n dispatchNumber: json.dispatchNumber,\r\n communicationCenterId: getFromOrThrow(\r\n json,\r\n (j) => j.communicationCenterId,\r\n 'RegionJson.communicationCenterId',\r\n ),\r\n isTransferCenterRegion: getFromOrThrow(\r\n json,\r\n (j) => j.isTransferCenterRegion,\r\n 'RegionJson.isTransferCenterRegion',\r\n ),\r\n fixedWingPreferredThresholdInNauticalMiles: json.fixedWingPreferredThresholdInNauticalMiles,\r\n regionGroupId: getFromOrThrow(json, (j) => j.regionGroupId, 'RegionJson.regionGroupId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'RegionJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n timezoneCd: string | null;\r\n emSystemDivisionName: string | null;\r\n dispatchNumber: string | null;\r\n communicationCenterId: string;\r\n isTransferCenterRegion: boolean;\r\n fixedWingPreferredThresholdInNauticalMiles: number | null;\r\n regionGroupId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [RegionRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RegionRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RegionRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RegionJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'RegionJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'RegionJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n timezoneCd: tryOrDefault(\r\n () => json.timezoneCd,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n emSystemDivisionName: tryOrDefault(\r\n () => json.emSystemDivisionName,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dispatchNumber: tryOrDefault(\r\n () => json.dispatchNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n communicationCenterId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.communicationCenterId, 'RegionJson.communicationCenterId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isTransferCenterRegion: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.isTransferCenterRegion,\r\n 'RegionJson.isTransferCenterRegion',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n fixedWingPreferredThresholdInNauticalMiles: tryOrDefault(\r\n () => json.fixedWingPreferredThresholdInNauticalMiles,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionGroupId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.regionGroupId, 'RegionJson.regionGroupId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'RegionJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RegionProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RegionRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RegionViewModelBase implements RegionProps {\r\n protected readonly _props: RegionProps;\r\n private _json?: RegionProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get timezoneCd(): string | null {\r\n return this._props.timezoneCd;\r\n }\r\n get emSystemDivisionName(): string | null {\r\n return this._props.emSystemDivisionName;\r\n }\r\n get dispatchNumber(): string | null {\r\n return this._props.dispatchNumber;\r\n }\r\n get communicationCenterId(): string {\r\n return this._props.communicationCenterId;\r\n }\r\n get isTransferCenterRegion(): boolean {\r\n return this._props.isTransferCenterRegion;\r\n }\r\n get fixedWingPreferredThresholdInNauticalMiles(): number | null {\r\n return this._props.fixedWingPreferredThresholdInNauticalMiles;\r\n }\r\n get regionGroupId(): string {\r\n return this._props.regionGroupId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: RegionProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n timezoneCd: this._props.timezoneCd,\r\n emSystemDivisionName: this._props.emSystemDivisionName,\r\n dispatchNumber: this._props.dispatchNumber,\r\n communicationCenterId: this._props.communicationCenterId,\r\n isTransferCenterRegion: this._props.isTransferCenterRegion,\r\n fixedWingPreferredThresholdInNauticalMiles:\r\n this._props.fixedWingPreferredThresholdInNauticalMiles,\r\n regionGroupId: this._props.regionGroupId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllRegionEntities = (state: AppState) => state.entityStores.region.entities;\r\n\r\nexport const selectRegionById = (id: string) => (state: AppState) =>\r\n state.entityStores.region.entities.get(id);\r\n\r\nexport const selectRegionMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.region.meta.get(id);\r\n\r\nexport const selectRegionAndMetadataById = (id: string) =>\r\n createSelector(selectRegionById(id), selectRegionMetadataById(id), (region, meta) => ({\r\n region,\r\n meta,\r\n }));\r\n\r\nexport function selectRegionEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllRegionEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, RegionRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRegionEntitiesByName(name: string) {\r\n return createSelector(selectAllRegionEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllRegionEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionEntitiesByTimezoneCd(timezoneCd: string) {\r\n return createSelector(selectAllRegionEntities, (entities) =>\r\n entities.filter((e) => e.timezoneCd === timezoneCd).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionEntitiesByEmSystemDivisionName(emSystemDivisionName: string) {\r\n return createSelector(selectAllRegionEntities, (entities) =>\r\n entities.filter((e) => e.emSystemDivisionName === emSystemDivisionName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionEntitiesByDispatchNumber(dispatchNumber: string) {\r\n return createSelector(selectAllRegionEntities, (entities) =>\r\n entities.filter((e) => e.dispatchNumber === dispatchNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionEntitiesByCommunicationCenterId(communicationCenterId: string) {\r\n return createSelector(selectAllRegionEntities, (entities) =>\r\n entities.filter((e) => e.communicationCenterId === communicationCenterId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionEntitiesByIsTransferCenterRegion(isTransferCenterRegion: boolean) {\r\n return createSelector(selectAllRegionEntities, (entities) =>\r\n entities.filter((e) => e.isTransferCenterRegion === isTransferCenterRegion).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionEntitiesByFixedWingPreferredThresholdInNauticalMiles(\r\n fixedWingPreferredThresholdInNauticalMiles: number,\r\n) {\r\n return createSelector(selectAllRegionEntities, (entities) =>\r\n entities\r\n .filter(\r\n (e) =>\r\n e.fixedWingPreferredThresholdInNauticalMiles ===\r\n fixedWingPreferredThresholdInNauticalMiles,\r\n )\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionEntitiesByRegionGroupId(regionGroupId: string) {\r\n return createSelector(selectAllRegionEntities, (entities) =>\r\n entities.filter((e) => e.regionGroupId === regionGroupId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllRegionEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface RegionGroupProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n departmentId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class RegionGroupRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n departmentId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n departmentId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): RegionGroupRecord {\r\n if (json == null) {\r\n throw new Error('RegionGroupRecord.fromJS: parameter cannot be null');\r\n }\r\n return new RegionGroupRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'RegionGroupJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'RegionGroupJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'RegionGroupJson.abbreviation'),\r\n departmentId: getFromOrThrow(json, (j) => j.departmentId, 'RegionGroupJson.departmentId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'RegionGroupJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n departmentId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [RegionGroupRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('RegionGroupRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new RegionGroupRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'RegionGroupJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'RegionGroupJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'RegionGroupJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n departmentId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.departmentId, 'RegionGroupJson.departmentId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'RegionGroupJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: RegionGroupProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('RegionGroupRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class RegionGroupViewModelBase implements RegionGroupProps {\r\n protected readonly _props: RegionGroupProps;\r\n private _json?: RegionGroupProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get departmentId(): string {\r\n return this._props.departmentId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: RegionGroupProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n departmentId: this._props.departmentId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllRegionGroupEntities = (state: AppState) =>\r\n state.entityStores.regionGroup.entities;\r\n\r\nexport const selectRegionGroupById = (id: string) => (state: AppState) =>\r\n state.entityStores.regionGroup.entities.get(id);\r\n\r\nexport const selectRegionGroupMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.regionGroup.meta.get(id);\r\n\r\nexport const selectRegionGroupAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectRegionGroupById(id),\r\n selectRegionGroupMetadataById(id),\r\n (regionGroup, meta) => ({ regionGroup, meta }),\r\n );\r\n\r\nexport function selectRegionGroupEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllRegionGroupEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, RegionGroupRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRegionGroupEntitiesByName(name: string) {\r\n return createSelector(selectAllRegionGroupEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionGroupEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllRegionGroupEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionGroupEntitiesByDepartmentId(departmentId: string) {\r\n return createSelector(selectAllRegionGroupEntities, (entities) =>\r\n entities.filter((e) => e.departmentId === departmentId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectRegionGroupEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllRegionGroupEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface SpecialtyTeamProps {\r\n id: string;\r\n name: string;\r\n affiliationId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class SpecialtyTeamRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n affiliationId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n affiliationId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): SpecialtyTeamRecord {\r\n if (json == null) {\r\n throw new Error('SpecialtyTeamRecord.fromJS: parameter cannot be null');\r\n }\r\n return new SpecialtyTeamRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'SpecialtyTeamJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'SpecialtyTeamJson.name'),\r\n affiliationId: getFromOrThrow(\r\n json,\r\n (j) => j.affiliationId,\r\n 'SpecialtyTeamJson.affiliationId',\r\n ),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'SpecialtyTeamJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n affiliationId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [SpecialtyTeamRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('SpecialtyTeamRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new SpecialtyTeamRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'SpecialtyTeamJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'SpecialtyTeamJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n affiliationId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.affiliationId, 'SpecialtyTeamJson.affiliationId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'SpecialtyTeamJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: SpecialtyTeamProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('SpecialtyTeamRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class SpecialtyTeamViewModelBase implements SpecialtyTeamProps {\r\n protected readonly _props: SpecialtyTeamProps;\r\n private _json?: SpecialtyTeamProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get affiliationId(): string {\r\n return this._props.affiliationId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: SpecialtyTeamProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n affiliationId: this._props.affiliationId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllSpecialtyTeamEntities = (state: AppState) =>\r\n state.entityStores.specialtyTeam.entities;\r\n\r\nexport const selectSpecialtyTeamById = (id: string) => (state: AppState) =>\r\n state.entityStores.specialtyTeam.entities.get(id);\r\n\r\nexport const selectSpecialtyTeamMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.specialtyTeam.meta.get(id);\r\n\r\nexport const selectSpecialtyTeamAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectSpecialtyTeamById(id),\r\n selectSpecialtyTeamMetadataById(id),\r\n (specialtyTeam, meta) => ({ specialtyTeam, meta }),\r\n );\r\n\r\nexport function selectSpecialtyTeamEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllSpecialtyTeamEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, SpecialtyTeamRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectSpecialtyTeamEntitiesByName(name: string) {\r\n return createSelector(selectAllSpecialtyTeamEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSpecialtyTeamEntitiesByAffiliationId(affiliationId: string) {\r\n return createSelector(selectAllSpecialtyTeamEntities, (entities) =>\r\n entities.filter((e) => e.affiliationId === affiliationId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSpecialtyTeamEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllSpecialtyTeamEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface SpecialtyTeamMemberProps {\r\n id: string;\r\n specialtyTeamId: string;\r\n teamMemberId: string;\r\n weightInKg: number | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class SpecialtyTeamMemberRecord extends Record({\r\n id: null as any,\r\n specialtyTeamId: null as any,\r\n teamMemberId: null as any,\r\n weightInKg: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n specialtyTeamId: string;\r\n teamMemberId: string;\r\n weightInKg: number | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): SpecialtyTeamMemberRecord {\r\n if (json == null) {\r\n throw new Error('SpecialtyTeamMemberRecord.fromJS: parameter cannot be null');\r\n }\r\n return new SpecialtyTeamMemberRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'SpecialtyTeamMemberJson.id'),\r\n specialtyTeamId: getFromOrThrow(\r\n json,\r\n (j) => j.specialtyTeamId,\r\n 'SpecialtyTeamMemberJson.specialtyTeamId',\r\n ),\r\n teamMemberId: getFromOrThrow(\r\n json,\r\n (j) => j.teamMemberId,\r\n 'SpecialtyTeamMemberJson.teamMemberId',\r\n ),\r\n weightInKg: json.weightInKg,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'SpecialtyTeamMemberJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n specialtyTeamId: string;\r\n teamMemberId: string;\r\n weightInKg: number | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [SpecialtyTeamMemberRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('SpecialtyTeamMemberRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new SpecialtyTeamMemberRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'SpecialtyTeamMemberJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n specialtyTeamId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(json, (j) => j.specialtyTeamId, 'SpecialtyTeamMemberJson.specialtyTeamId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n teamMemberId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.teamMemberId, 'SpecialtyTeamMemberJson.teamMemberId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n weightInKg: tryOrDefault(\r\n () => json.weightInKg,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'SpecialtyTeamMemberJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: SpecialtyTeamMemberProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('SpecialtyTeamMemberRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class SpecialtyTeamMemberViewModelBase implements SpecialtyTeamMemberProps {\r\n protected readonly _props: SpecialtyTeamMemberProps;\r\n private _json?: SpecialtyTeamMemberProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get specialtyTeamId(): string {\r\n return this._props.specialtyTeamId;\r\n }\r\n get teamMemberId(): string {\r\n return this._props.teamMemberId;\r\n }\r\n get weightInKg(): number | null {\r\n return this._props.weightInKg;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: SpecialtyTeamMemberProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n specialtyTeamId: this._props.specialtyTeamId,\r\n teamMemberId: this._props.teamMemberId,\r\n weightInKg: this._props.weightInKg,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllSpecialtyTeamMemberEntities = (state: AppState) =>\r\n state.entityStores.specialtyTeamMember.entities;\r\n\r\nexport const selectSpecialtyTeamMemberById = (id: string) => (state: AppState) =>\r\n state.entityStores.specialtyTeamMember.entities.get(id);\r\n\r\nexport const selectSpecialtyTeamMemberMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.specialtyTeamMember.meta.get(id);\r\n\r\nexport const selectSpecialtyTeamMemberAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectSpecialtyTeamMemberById(id),\r\n selectSpecialtyTeamMemberMetadataById(id),\r\n (specialtyTeamMember, meta) => ({ specialtyTeamMember, meta }),\r\n );\r\n\r\nexport function selectSpecialtyTeamMemberEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllSpecialtyTeamMemberEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, SpecialtyTeamMemberRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectSpecialtyTeamMemberEntitiesBySpecialtyTeamId(specialtyTeamId: string) {\r\n return createSelector(selectAllSpecialtyTeamMemberEntities, (entities) =>\r\n entities.filter((e) => e.specialtyTeamId === specialtyTeamId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSpecialtyTeamMemberEntitiesByTeamMemberId(teamMemberId: string) {\r\n return createSelector(selectAllSpecialtyTeamMemberEntities, (entities) =>\r\n entities.filter((e) => e.teamMemberId === teamMemberId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSpecialtyTeamMemberEntitiesByWeightInKg(weightInKg: number) {\r\n return createSelector(selectAllSpecialtyTeamMemberEntities, (entities) =>\r\n entities.filter((e) => e.weightInKg === weightInKg).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSpecialtyTeamMemberEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllSpecialtyTeamMemberEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { SupportRequestStatus, SupportRequestType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface SupportRequestProps {\r\n id: string;\r\n subject: string | null;\r\n content: string | null;\r\n supportRequestType: SupportRequestType;\r\n isEmailSent: boolean;\r\n supportRequestStatus: SupportRequestStatus;\r\n personId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class SupportRequestRecord extends Record({\r\n id: null as any,\r\n subject: null as any,\r\n content: null as any,\r\n supportRequestType: null as any,\r\n isEmailSent: null as any,\r\n supportRequestStatus: null as any,\r\n personId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n subject: string | null;\r\n content: string | null;\r\n supportRequestType: SupportRequestType;\r\n isEmailSent: boolean;\r\n supportRequestStatus: SupportRequestStatus;\r\n personId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): SupportRequestRecord {\r\n if (json == null) {\r\n throw new Error('SupportRequestRecord.fromJS: parameter cannot be null');\r\n }\r\n return new SupportRequestRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'SupportRequestJson.id'),\r\n subject: json.subject,\r\n content: json.content,\r\n supportRequestType: getFromOrThrow(\r\n json,\r\n (j) => j.supportRequestType,\r\n 'SupportRequestJson.supportRequestType',\r\n ),\r\n isEmailSent: getFromOrThrow(json, (j) => j.isEmailSent, 'SupportRequestJson.isEmailSent'),\r\n supportRequestStatus: getFromOrThrow(\r\n json,\r\n (j) => j.supportRequestStatus,\r\n 'SupportRequestJson.supportRequestStatus',\r\n ),\r\n personId: getFromOrThrow(json, (j) => j.personId, 'SupportRequestJson.personId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'SupportRequestJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n subject: string | null;\r\n content: string | null;\r\n supportRequestType: SupportRequestType;\r\n isEmailSent: boolean;\r\n supportRequestStatus: SupportRequestStatus;\r\n personId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [SupportRequestRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('SupportRequestRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new SupportRequestRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'SupportRequestJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n subject: tryOrDefault(\r\n () => json.subject,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n content: tryOrDefault(\r\n () => json.content,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n supportRequestType: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.supportRequestType,\r\n 'SupportRequestJson.supportRequestType',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isEmailSent: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isEmailSent, 'SupportRequestJson.isEmailSent'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n supportRequestStatus: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.supportRequestStatus,\r\n 'SupportRequestJson.supportRequestStatus',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n personId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.personId, 'SupportRequestJson.personId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'SupportRequestJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: SupportRequestProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('SupportRequestRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class SupportRequestViewModelBase implements SupportRequestProps {\r\n protected readonly _props: SupportRequestProps;\r\n private _json?: SupportRequestProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get subject(): string | null {\r\n return this._props.subject;\r\n }\r\n get content(): string | null {\r\n return this._props.content;\r\n }\r\n get supportRequestType(): SupportRequestType {\r\n return this._props.supportRequestType;\r\n }\r\n get isEmailSent(): boolean {\r\n return this._props.isEmailSent;\r\n }\r\n get supportRequestStatus(): SupportRequestStatus {\r\n return this._props.supportRequestStatus;\r\n }\r\n get personId(): string {\r\n return this._props.personId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isBug() {\r\n return this._props.supportRequestType === SupportRequestType.Bug;\r\n }\r\n public get isFeature() {\r\n return this._props.supportRequestType === SupportRequestType.Feature;\r\n }\r\n public get isUnspecified() {\r\n return this._props.supportRequestType === SupportRequestType.Unspecified;\r\n }\r\n public get isCreated() {\r\n return this._props.supportRequestStatus === SupportRequestStatus.Created;\r\n }\r\n public get isSubmitted() {\r\n return this._props.supportRequestStatus === SupportRequestStatus.Submitted;\r\n }\r\n\r\n public isAnySupportRequestType(...supportRequestType: SupportRequestType[]) {\r\n return supportRequestType.includes(this._props.supportRequestType);\r\n }\r\n public isAnySupportRequestStatus(...supportRequestStatus: SupportRequestStatus[]) {\r\n return supportRequestStatus.includes(this._props.supportRequestStatus);\r\n }\r\n\r\n constructor(props: SupportRequestProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n subject: this._props.subject,\r\n content: this._props.content,\r\n supportRequestType: this._props.supportRequestType,\r\n isEmailSent: this._props.isEmailSent,\r\n supportRequestStatus: this._props.supportRequestStatus,\r\n personId: this._props.personId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllSupportRequestEntities = (state: AppState) =>\r\n state.entityStores.supportRequest.entities;\r\n\r\nexport const selectSupportRequestById = (id: string) => (state: AppState) =>\r\n state.entityStores.supportRequest.entities.get(id);\r\n\r\nexport const selectSupportRequestMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.supportRequest.meta.get(id);\r\n\r\nexport const selectSupportRequestAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectSupportRequestById(id),\r\n selectSupportRequestMetadataById(id),\r\n (supportRequest, meta) => ({ supportRequest, meta }),\r\n );\r\n\r\nexport function selectSupportRequestEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllSupportRequestEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, SupportRequestRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectSupportRequestEntitiesBySubject(subject: string) {\r\n return createSelector(selectAllSupportRequestEntities, (entities) =>\r\n entities.filter((e) => e.subject === subject).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSupportRequestEntitiesByContent(content: string) {\r\n return createSelector(selectAllSupportRequestEntities, (entities) =>\r\n entities.filter((e) => e.content === content).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSupportRequestEntitiesBySupportRequestType(\r\n supportRequestType: SupportRequestType,\r\n) {\r\n return createSelector(selectAllSupportRequestEntities, (entities) =>\r\n entities.filter((e) => e.supportRequestType === supportRequestType).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSupportRequestEntitiesByIsEmailSent(isEmailSent: boolean) {\r\n return createSelector(selectAllSupportRequestEntities, (entities) =>\r\n entities.filter((e) => e.isEmailSent === isEmailSent).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSupportRequestEntitiesBySupportRequestStatus(\r\n supportRequestStatus: SupportRequestStatus,\r\n) {\r\n return createSelector(selectAllSupportRequestEntities, (entities) =>\r\n entities.filter((e) => e.supportRequestStatus === supportRequestStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSupportRequestEntitiesByPersonId(personId: string) {\r\n return createSelector(selectAllSupportRequestEntities, (entities) =>\r\n entities.filter((e) => e.personId === personId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectSupportRequestEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllSupportRequestEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TimezoneProps {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n isDst: boolean;\r\n utcOffset: number;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TimezoneRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n abbreviation: null as any,\r\n code: null as any,\r\n isDst: null as any,\r\n utcOffset: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n isDst: boolean;\r\n utcOffset: number;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TimezoneRecord {\r\n if (json == null) {\r\n throw new Error('TimezoneRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TimezoneRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TimezoneJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'TimezoneJson.name'),\r\n abbreviation: getFromOrThrow(json, (j) => j.abbreviation, 'TimezoneJson.abbreviation'),\r\n code: getFromOrThrow(json, (j) => j.code, 'TimezoneJson.code'),\r\n isDst: getFromOrThrow(json, (j) => j.isDst, 'TimezoneJson.isDst'),\r\n utcOffset: getFromOrThrow(json, (j) => j.utcOffset, 'TimezoneJson.utcOffset'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n abbreviation: string;\r\n code: string;\r\n isDst: boolean;\r\n utcOffset: number;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TimezoneRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TimezoneRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TimezoneRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TimezoneJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'TimezoneJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n abbreviation: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.abbreviation, 'TimezoneJson.abbreviation'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n code: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.code, 'TimezoneJson.code'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isDst: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isDst, 'TimezoneJson.isDst'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n utcOffset: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.utcOffset, 'TimezoneJson.utcOffset'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TimezoneProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TimezoneRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TimezoneViewModelBase implements TimezoneProps {\r\n protected readonly _props: TimezoneProps;\r\n private _json?: TimezoneProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get abbreviation(): string {\r\n return this._props.abbreviation;\r\n }\r\n get code(): string {\r\n return this._props.code;\r\n }\r\n get isDst(): boolean {\r\n return this._props.isDst;\r\n }\r\n get utcOffset(): number {\r\n return this._props.utcOffset;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: TimezoneProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n abbreviation: this._props.abbreviation,\r\n code: this._props.code,\r\n isDst: this._props.isDst,\r\n utcOffset: this._props.utcOffset,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTimezoneEntities = (state: AppState) => state.entityStores.timezone.entities;\r\n\r\nexport const selectTimezoneById = (id: string) => (state: AppState) =>\r\n state.entityStores.timezone.entities.get(id);\r\n\r\nexport const selectTimezoneMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.timezone.meta.get(id);\r\n\r\nexport const selectTimezoneAndMetadataById = (id: string) =>\r\n createSelector(selectTimezoneById(id), selectTimezoneMetadataById(id), (timezone, meta) => ({\r\n timezone,\r\n meta,\r\n }));\r\n\r\nexport function selectTimezoneEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTimezoneEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TimezoneRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTimezoneEntitiesByName(name: string) {\r\n return createSelector(selectAllTimezoneEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimezoneEntitiesByAbbreviation(abbreviation: string) {\r\n return createSelector(selectAllTimezoneEntities, (entities) =>\r\n entities.filter((e) => e.abbreviation === abbreviation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimezoneEntitiesByCode(code: string) {\r\n return createSelector(selectAllTimezoneEntities, (entities) =>\r\n entities.filter((e) => e.code === code).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimezoneEntitiesByIsDst(isDst: boolean) {\r\n return createSelector(selectAllTimezoneEntities, (entities) =>\r\n entities.filter((e) => e.isDst === isDst).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTimezoneEntitiesByUtcOffset(utcOffset: number) {\r\n return createSelector(selectAllTimezoneEntities, (entities) =>\r\n entities.filter((e) => e.utcOffset === utcOffset).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TransferCenterProps {\r\n id: string;\r\n name: string;\r\n description: string | null;\r\n communicationCenterId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TransferCenterRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n description: null as any,\r\n communicationCenterId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n description: string | null;\r\n communicationCenterId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TransferCenterRecord {\r\n if (json == null) {\r\n throw new Error('TransferCenterRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TransferCenterRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TransferCenterJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'TransferCenterJson.name'),\r\n description: json.description,\r\n communicationCenterId: getFromOrThrow(\r\n json,\r\n (j) => j.communicationCenterId,\r\n 'TransferCenterJson.communicationCenterId',\r\n ),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'TransferCenterJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n description: string | null;\r\n communicationCenterId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TransferCenterRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TransferCenterRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TransferCenterRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TransferCenterJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'TransferCenterJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n description: tryOrDefault(\r\n () => json.description,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n communicationCenterId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.communicationCenterId,\r\n 'TransferCenterJson.communicationCenterId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'TransferCenterJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TransferCenterProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TransferCenterRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TransferCenterViewModelBase implements TransferCenterProps {\r\n protected readonly _props: TransferCenterProps;\r\n private _json?: TransferCenterProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get description(): string | null {\r\n return this._props.description;\r\n }\r\n get communicationCenterId(): string {\r\n return this._props.communicationCenterId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: TransferCenterProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n description: this._props.description,\r\n communicationCenterId: this._props.communicationCenterId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTransferCenterEntities = (state: AppState) =>\r\n state.entityStores.transferCenter.entities;\r\n\r\nexport const selectTransferCenterById = (id: string) => (state: AppState) =>\r\n state.entityStores.transferCenter.entities.get(id);\r\n\r\nexport const selectTransferCenterMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.transferCenter.meta.get(id);\r\n\r\nexport const selectTransferCenterAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectTransferCenterById(id),\r\n selectTransferCenterMetadataById(id),\r\n (transferCenter, meta) => ({ transferCenter, meta }),\r\n );\r\n\r\nexport function selectTransferCenterEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTransferCenterEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TransferCenterRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTransferCenterEntitiesByName(name: string) {\r\n return createSelector(selectAllTransferCenterEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransferCenterEntitiesByDescription(description: string) {\r\n return createSelector(selectAllTransferCenterEntities, (entities) =>\r\n entities.filter((e) => e.description === description).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransferCenterEntitiesByCommunicationCenterId(communicationCenterId: string) {\r\n return createSelector(selectAllTransferCenterEntities, (entities) =>\r\n entities.filter((e) => e.communicationCenterId === communicationCenterId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTransferCenterEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllTransferCenterEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TrmUserAgencyProps {\r\n id: string;\r\n trmUserId: string;\r\n agencyId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TrmUserAgencyRecord extends Record({\r\n id: null as any,\r\n trmUserId: null as any,\r\n agencyId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n trmUserId: string;\r\n agencyId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TrmUserAgencyRecord {\r\n if (json == null) {\r\n throw new Error('TrmUserAgencyRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TrmUserAgencyRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TrmUserAgencyJson.id'),\r\n trmUserId: getFromOrThrow(json, (j) => j.trmUserId, 'TrmUserAgencyJson.trmUserId'),\r\n agencyId: getFromOrThrow(json, (j) => j.agencyId, 'TrmUserAgencyJson.agencyId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'TrmUserAgencyJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n trmUserId: string;\r\n agencyId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TrmUserAgencyRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TrmUserAgencyRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TrmUserAgencyRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TrmUserAgencyJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n trmUserId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.trmUserId, 'TrmUserAgencyJson.trmUserId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n agencyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.agencyId, 'TrmUserAgencyJson.agencyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'TrmUserAgencyJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TrmUserAgencyProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TrmUserAgencyRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TrmUserAgencyViewModelBase implements TrmUserAgencyProps {\r\n protected readonly _props: TrmUserAgencyProps;\r\n private _json?: TrmUserAgencyProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get trmUserId(): string {\r\n return this._props.trmUserId;\r\n }\r\n get agencyId(): string {\r\n return this._props.agencyId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: TrmUserAgencyProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n trmUserId: this._props.trmUserId,\r\n agencyId: this._props.agencyId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTrmUserAgencyEntities = (state: AppState) =>\r\n state.entityStores.trmUserAgency.entities;\r\n\r\nexport const selectTrmUserAgencyById = (id: string) => (state: AppState) =>\r\n state.entityStores.trmUserAgency.entities.get(id);\r\n\r\nexport const selectTrmUserAgencyMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.trmUserAgency.meta.get(id);\r\n\r\nexport const selectTrmUserAgencyAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectTrmUserAgencyById(id),\r\n selectTrmUserAgencyMetadataById(id),\r\n (trmUserAgency, meta) => ({ trmUserAgency, meta }),\r\n );\r\n\r\nexport function selectTrmUserAgencyEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTrmUserAgencyEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TrmUserAgencyRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTrmUserAgencyEntitiesByTrmUserId(trmUserId: string) {\r\n return createSelector(selectAllTrmUserAgencyEntities, (entities) =>\r\n entities.filter((e) => e.trmUserId === trmUserId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserAgencyEntitiesByAgencyId(agencyId: string) {\r\n return createSelector(selectAllTrmUserAgencyEntities, (entities) =>\r\n entities.filter((e) => e.agencyId === agencyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserAgencyEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllTrmUserAgencyEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { TrmUserStatus } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TrmUserProps {\r\n id: string;\r\n personId: string | null;\r\n emailAddress: string;\r\n firstName: string;\r\n lastName: string;\r\n phoneNumber: string;\r\n userStatus: TrmUserStatus;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TrmUserRecord extends Record({\r\n id: null as any,\r\n personId: null as any,\r\n emailAddress: null as any,\r\n firstName: null as any,\r\n lastName: null as any,\r\n phoneNumber: null as any,\r\n userStatus: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n personId: string | null;\r\n emailAddress: string;\r\n firstName: string;\r\n lastName: string;\r\n phoneNumber: string;\r\n userStatus: TrmUserStatus;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TrmUserRecord {\r\n if (json == null) {\r\n throw new Error('TrmUserRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TrmUserRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TrmUserJson.id'),\r\n personId: json.personId,\r\n emailAddress: getFromOrThrow(json, (j) => j.emailAddress, 'TrmUserJson.emailAddress'),\r\n firstName: getFromOrThrow(json, (j) => j.firstName, 'TrmUserJson.firstName'),\r\n lastName: getFromOrThrow(json, (j) => j.lastName, 'TrmUserJson.lastName'),\r\n phoneNumber: getFromOrThrow(json, (j) => j.phoneNumber, 'TrmUserJson.phoneNumber'),\r\n userStatus: getFromOrThrow(json, (j) => j.userStatus, 'TrmUserJson.userStatus'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'TrmUserJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n personId: string | null;\r\n emailAddress: string;\r\n firstName: string;\r\n lastName: string;\r\n phoneNumber: string;\r\n userStatus: TrmUserStatus;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TrmUserRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TrmUserRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TrmUserRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TrmUserJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n personId: tryOrDefault(\r\n () => json.personId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n emailAddress: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.emailAddress, 'TrmUserJson.emailAddress'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n firstName: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.firstName, 'TrmUserJson.firstName'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n lastName: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.lastName, 'TrmUserJson.lastName'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n phoneNumber: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.phoneNumber, 'TrmUserJson.phoneNumber'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n userStatus: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.userStatus, 'TrmUserJson.userStatus'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'TrmUserJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TrmUserProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TrmUserRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TrmUserViewModelBase implements TrmUserProps {\r\n protected readonly _props: TrmUserProps;\r\n private _json?: TrmUserProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get personId(): string | null {\r\n return this._props.personId;\r\n }\r\n get emailAddress(): string {\r\n return this._props.emailAddress;\r\n }\r\n get firstName(): string {\r\n return this._props.firstName;\r\n }\r\n get lastName(): string {\r\n return this._props.lastName;\r\n }\r\n get phoneNumber(): string {\r\n return this._props.phoneNumber;\r\n }\r\n get userStatus(): TrmUserStatus {\r\n return this._props.userStatus;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isApproved() {\r\n return this._props.userStatus === TrmUserStatus.Approved;\r\n }\r\n public get isDeactivated() {\r\n return this._props.userStatus === TrmUserStatus.Deactivated;\r\n }\r\n public get isDenied() {\r\n return this._props.userStatus === TrmUserStatus.Denied;\r\n }\r\n public get isPending() {\r\n return this._props.userStatus === TrmUserStatus.Pending;\r\n }\r\n public get isUnverified() {\r\n return this._props.userStatus === TrmUserStatus.Unverified;\r\n }\r\n\r\n public isAnyUserStatus(...trmUserStatus: TrmUserStatus[]) {\r\n return trmUserStatus.includes(this._props.userStatus);\r\n }\r\n\r\n constructor(props: TrmUserProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n personId: this._props.personId,\r\n emailAddress: this._props.emailAddress,\r\n firstName: this._props.firstName,\r\n lastName: this._props.lastName,\r\n phoneNumber: this._props.phoneNumber,\r\n userStatus: this._props.userStatus,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTrmUserEntities = (state: AppState) => state.entityStores.trmUser.entities;\r\n\r\nexport const selectTrmUserById = (id: string) => (state: AppState) =>\r\n state.entityStores.trmUser.entities.get(id);\r\n\r\nexport const selectTrmUserMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.trmUser.meta.get(id);\r\n\r\nexport const selectTrmUserAndMetadataById = (id: string) =>\r\n createSelector(selectTrmUserById(id), selectTrmUserMetadataById(id), (trmUser, meta) => ({\r\n trmUser,\r\n meta,\r\n }));\r\n\r\nexport function selectTrmUserEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTrmUserEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TrmUserRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTrmUserEntitiesByPersonId(personId: string) {\r\n return createSelector(selectAllTrmUserEntities, (entities) =>\r\n entities.filter((e) => e.personId === personId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserEntitiesByEmailAddress(emailAddress: string) {\r\n return createSelector(selectAllTrmUserEntities, (entities) =>\r\n entities.filter((e) => e.emailAddress === emailAddress).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserEntitiesByFirstName(firstName: string) {\r\n return createSelector(selectAllTrmUserEntities, (entities) =>\r\n entities.filter((e) => e.firstName === firstName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserEntitiesByLastName(lastName: string) {\r\n return createSelector(selectAllTrmUserEntities, (entities) =>\r\n entities.filter((e) => e.lastName === lastName).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserEntitiesByPhoneNumber(phoneNumber: string) {\r\n return createSelector(selectAllTrmUserEntities, (entities) =>\r\n entities.filter((e) => e.phoneNumber === phoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserEntitiesByUserStatus(userStatus: TrmUserStatus) {\r\n return createSelector(selectAllTrmUserEntities, (entities) =>\r\n entities.filter((e) => e.userStatus === userStatus).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllTrmUserEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TrmUserMedicalFacilityProps {\r\n id: string;\r\n trmUserId: string;\r\n medicalFacilityId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TrmUserMedicalFacilityRecord extends Record({\r\n id: null as any,\r\n trmUserId: null as any,\r\n medicalFacilityId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n trmUserId: string;\r\n medicalFacilityId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TrmUserMedicalFacilityRecord {\r\n if (json == null) {\r\n throw new Error('TrmUserMedicalFacilityRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TrmUserMedicalFacilityRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TrmUserMedicalFacilityJson.id'),\r\n trmUserId: getFromOrThrow(json, (j) => j.trmUserId, 'TrmUserMedicalFacilityJson.trmUserId'),\r\n medicalFacilityId: getFromOrThrow(\r\n json,\r\n (j) => j.medicalFacilityId,\r\n 'TrmUserMedicalFacilityJson.medicalFacilityId',\r\n ),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'TrmUserMedicalFacilityJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n trmUserId: string;\r\n medicalFacilityId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TrmUserMedicalFacilityRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TrmUserMedicalFacilityRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TrmUserMedicalFacilityRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TrmUserMedicalFacilityJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n trmUserId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.trmUserId, 'TrmUserMedicalFacilityJson.trmUserId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n medicalFacilityId: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.medicalFacilityId,\r\n 'TrmUserMedicalFacilityJson.medicalFacilityId',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'TrmUserMedicalFacilityJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TrmUserMedicalFacilityProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TrmUserMedicalFacilityRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TrmUserMedicalFacilityViewModelBase implements TrmUserMedicalFacilityProps {\r\n protected readonly _props: TrmUserMedicalFacilityProps;\r\n private _json?: TrmUserMedicalFacilityProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get trmUserId(): string {\r\n return this._props.trmUserId;\r\n }\r\n get medicalFacilityId(): string {\r\n return this._props.medicalFacilityId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: TrmUserMedicalFacilityProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n trmUserId: this._props.trmUserId,\r\n medicalFacilityId: this._props.medicalFacilityId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTrmUserMedicalFacilityEntities = (state: AppState) =>\r\n state.entityStores.trmUserMedicalFacility.entities;\r\n\r\nexport const selectTrmUserMedicalFacilityById = (id: string) => (state: AppState) =>\r\n state.entityStores.trmUserMedicalFacility.entities.get(id);\r\n\r\nexport const selectTrmUserMedicalFacilityMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.trmUserMedicalFacility.meta.get(id);\r\n\r\nexport const selectTrmUserMedicalFacilityAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectTrmUserMedicalFacilityById(id),\r\n selectTrmUserMedicalFacilityMetadataById(id),\r\n (trmUserMedicalFacility, meta) => ({ trmUserMedicalFacility, meta }),\r\n );\r\n\r\nexport function selectTrmUserMedicalFacilityEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTrmUserMedicalFacilityEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TrmUserMedicalFacilityRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTrmUserMedicalFacilityEntitiesByTrmUserId(trmUserId: string) {\r\n return createSelector(selectAllTrmUserMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.trmUserId === trmUserId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserMedicalFacilityEntitiesByMedicalFacilityId(medicalFacilityId: string) {\r\n return createSelector(selectAllTrmUserMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.medicalFacilityId === medicalFacilityId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserMedicalFacilityEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllTrmUserMedicalFacilityEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface TrmUserProgramProps {\r\n id: string;\r\n trmUserId: string;\r\n programId: string;\r\n isPreferred: boolean;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class TrmUserProgramRecord extends Record({\r\n id: null as any,\r\n trmUserId: null as any,\r\n programId: null as any,\r\n isPreferred: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n trmUserId: string;\r\n programId: string;\r\n isPreferred: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): TrmUserProgramRecord {\r\n if (json == null) {\r\n throw new Error('TrmUserProgramRecord.fromJS: parameter cannot be null');\r\n }\r\n return new TrmUserProgramRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'TrmUserProgramJson.id'),\r\n trmUserId: getFromOrThrow(json, (j) => j.trmUserId, 'TrmUserProgramJson.trmUserId'),\r\n programId: getFromOrThrow(json, (j) => j.programId, 'TrmUserProgramJson.programId'),\r\n isPreferred: getFromOrThrow(json, (j) => j.isPreferred, 'TrmUserProgramJson.isPreferred'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'TrmUserProgramJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n trmUserId: string;\r\n programId: string;\r\n isPreferred: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [TrmUserProgramRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('TrmUserProgramRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new TrmUserProgramRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'TrmUserProgramJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n trmUserId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.trmUserId, 'TrmUserProgramJson.trmUserId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n programId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.programId, 'TrmUserProgramJson.programId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isPreferred: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isPreferred, 'TrmUserProgramJson.isPreferred'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'TrmUserProgramJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: TrmUserProgramProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('TrmUserProgramRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class TrmUserProgramViewModelBase implements TrmUserProgramProps {\r\n protected readonly _props: TrmUserProgramProps;\r\n private _json?: TrmUserProgramProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get trmUserId(): string {\r\n return this._props.trmUserId;\r\n }\r\n get programId(): string {\r\n return this._props.programId;\r\n }\r\n get isPreferred(): boolean {\r\n return this._props.isPreferred;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: TrmUserProgramProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n trmUserId: this._props.trmUserId,\r\n programId: this._props.programId,\r\n isPreferred: this._props.isPreferred,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllTrmUserProgramEntities = (state: AppState) =>\r\n state.entityStores.trmUserProgram.entities;\r\n\r\nexport const selectTrmUserProgramById = (id: string) => (state: AppState) =>\r\n state.entityStores.trmUserProgram.entities.get(id);\r\n\r\nexport const selectTrmUserProgramMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.trmUserProgram.meta.get(id);\r\n\r\nexport const selectTrmUserProgramAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectTrmUserProgramById(id),\r\n selectTrmUserProgramMetadataById(id),\r\n (trmUserProgram, meta) => ({ trmUserProgram, meta }),\r\n );\r\n\r\nexport function selectTrmUserProgramEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllTrmUserProgramEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, TrmUserProgramRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectTrmUserProgramEntitiesByTrmUserId(trmUserId: string) {\r\n return createSelector(selectAllTrmUserProgramEntities, (entities) =>\r\n entities.filter((e) => e.trmUserId === trmUserId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserProgramEntitiesByProgramId(programId: string) {\r\n return createSelector(selectAllTrmUserProgramEntities, (entities) =>\r\n entities.filter((e) => e.programId === programId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserProgramEntitiesByIsPreferred(isPreferred: boolean) {\r\n return createSelector(selectAllTrmUserProgramEntities, (entities) =>\r\n entities.filter((e) => e.isPreferred === isPreferred).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectTrmUserProgramEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllTrmUserProgramEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface VehicleControlZoneProps {\r\n id: string;\r\n controlZoneId: string | null;\r\n vehicleId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class VehicleControlZoneRecord extends Record({\r\n id: null as any,\r\n controlZoneId: null as any,\r\n vehicleId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n controlZoneId: string | null;\r\n vehicleId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): VehicleControlZoneRecord {\r\n if (json == null) {\r\n throw new Error('VehicleControlZoneRecord.fromJS: parameter cannot be null');\r\n }\r\n return new VehicleControlZoneRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'VehicleControlZoneJson.id'),\r\n controlZoneId: json.controlZoneId,\r\n vehicleId: json.vehicleId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'VehicleControlZoneJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n controlZoneId: string | null;\r\n vehicleId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [VehicleControlZoneRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('VehicleControlZoneRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new VehicleControlZoneRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'VehicleControlZoneJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n controlZoneId: tryOrDefault(\r\n () => json.controlZoneId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => json.vehicleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'VehicleControlZoneJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: VehicleControlZoneProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('VehicleControlZoneRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class VehicleControlZoneViewModelBase implements VehicleControlZoneProps {\r\n protected readonly _props: VehicleControlZoneProps;\r\n private _json?: VehicleControlZoneProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get controlZoneId(): string | null {\r\n return this._props.controlZoneId;\r\n }\r\n get vehicleId(): string | null {\r\n return this._props.vehicleId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: VehicleControlZoneProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n controlZoneId: this._props.controlZoneId,\r\n vehicleId: this._props.vehicleId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllVehicleControlZoneEntities = (state: AppState) =>\r\n state.entityStores.vehicleControlZone.entities;\r\n\r\nexport const selectVehicleControlZoneById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleControlZone.entities.get(id);\r\n\r\nexport const selectVehicleControlZoneMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleControlZone.meta.get(id);\r\n\r\nexport const selectVehicleControlZoneAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectVehicleControlZoneById(id),\r\n selectVehicleControlZoneMetadataById(id),\r\n (vehicleControlZone, meta) => ({ vehicleControlZone, meta }),\r\n );\r\n\r\nexport function selectVehicleControlZoneEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllVehicleControlZoneEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, VehicleControlZoneRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectVehicleControlZoneEntitiesByControlZoneId(controlZoneId: string) {\r\n return createSelector(selectAllVehicleControlZoneEntities, (entities) =>\r\n entities.filter((e) => e.controlZoneId === controlZoneId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleControlZoneEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllVehicleControlZoneEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleControlZoneEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllVehicleControlZoneEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n FlightLogProcess,\r\n VehicleRole,\r\n VehicleType,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface VehicleProps {\r\n id: string;\r\n type: VehicleType;\r\n serialNumber: string | null;\r\n registrationNumber: string;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n dateAcquired: Date | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n stateInspectionRequired: boolean;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class VehicleRecord extends Record({\r\n id: null as any,\r\n type: null as any,\r\n serialNumber: null as any,\r\n registrationNumber: null as any,\r\n dispatchCompanyId: null as any,\r\n year: null as any,\r\n isUnderLease: null as any,\r\n role: null as any,\r\n dateAcquired: null as any,\r\n makeId: null as any,\r\n modelId: null as any,\r\n cruiseSpeed: null as any,\r\n configurationClassId: null as any,\r\n isThirdPartyVehicle: null as any,\r\n parentUnitId: null as any,\r\n isHidden: null as any,\r\n faaCompanyId: null as any,\r\n flightLogProcess: null as any,\r\n isPlaceholder: null as any,\r\n skytracIMEI: null as any,\r\n phoneNumber: null as any,\r\n stateInspectionRequired: null as any,\r\n completeFlightId: null as any,\r\n controlZoneId: null as any,\r\n communicationCenterId: null as any,\r\n regionId: null as any,\r\n isRetired: null as any,\r\n isPositionTrackingEnabled: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n type: VehicleType;\r\n serialNumber: string | null;\r\n registrationNumber: string;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n dateAcquired: string | number | Date | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n stateInspectionRequired: boolean;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): VehicleRecord {\r\n if (json == null) {\r\n throw new Error('VehicleRecord.fromJS: parameter cannot be null');\r\n }\r\n return new VehicleRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'VehicleJson.id'),\r\n type: getFromOrThrow(json, (j) => j.type, 'VehicleJson.type'),\r\n serialNumber: json.serialNumber,\r\n registrationNumber: getFromOrThrow(\r\n json,\r\n (j) => j.registrationNumber,\r\n 'VehicleJson.registrationNumber',\r\n ),\r\n dispatchCompanyId: json.dispatchCompanyId,\r\n year: json.year,\r\n isUnderLease: getFromOrThrow(json, (j) => j.isUnderLease, 'VehicleJson.isUnderLease'),\r\n role: getFromOrThrow(json, (j) => j.role, 'VehicleJson.role'),\r\n dateAcquired: json.dateAcquired != null ? new Date(json.dateAcquired) : null,\r\n makeId: json.makeId,\r\n modelId: json.modelId,\r\n cruiseSpeed: json.cruiseSpeed,\r\n configurationClassId: json.configurationClassId,\r\n isThirdPartyVehicle: json.isThirdPartyVehicle,\r\n parentUnitId: json.parentUnitId,\r\n isHidden: json.isHidden,\r\n faaCompanyId: json.faaCompanyId,\r\n flightLogProcess: getFromOrThrow(\r\n json,\r\n (j) => j.flightLogProcess,\r\n 'VehicleJson.flightLogProcess',\r\n ),\r\n isPlaceholder: getFromOrThrow(json, (j) => j.isPlaceholder, 'VehicleJson.isPlaceholder'),\r\n skytracIMEI: json.skytracIMEI,\r\n phoneNumber: json.phoneNumber,\r\n stateInspectionRequired: getFromOrThrow(\r\n json,\r\n (j) => j.stateInspectionRequired,\r\n 'VehicleJson.stateInspectionRequired',\r\n ),\r\n completeFlightId: json.completeFlightId,\r\n controlZoneId: json.controlZoneId,\r\n communicationCenterId: json.communicationCenterId,\r\n regionId: json.regionId,\r\n isRetired: getFromOrThrow(json, (j) => j.isRetired, 'VehicleJson.isRetired'),\r\n isPositionTrackingEnabled: getFromOrThrow(\r\n json,\r\n (j) => j.isPositionTrackingEnabled,\r\n 'VehicleJson.isPositionTrackingEnabled',\r\n ),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'VehicleJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n type: VehicleType;\r\n serialNumber: string | null;\r\n registrationNumber: string;\r\n dispatchCompanyId: string | null;\r\n year: number | null;\r\n isUnderLease: boolean;\r\n role: VehicleRole;\r\n dateAcquired: string | number | Date | null;\r\n makeId: string | null;\r\n modelId: string | null;\r\n cruiseSpeed: number | null;\r\n configurationClassId: string | null;\r\n isThirdPartyVehicle: boolean | null;\r\n parentUnitId: string | null;\r\n isHidden: boolean | null;\r\n faaCompanyId: string | null;\r\n flightLogProcess: FlightLogProcess;\r\n isPlaceholder: boolean;\r\n skytracIMEI: string | null;\r\n phoneNumber: string | null;\r\n stateInspectionRequired: boolean;\r\n completeFlightId: string | null;\r\n controlZoneId: string | null;\r\n communicationCenterId: string | null;\r\n regionId: string | null;\r\n isRetired: boolean;\r\n isPositionTrackingEnabled: boolean;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [VehicleRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('VehicleRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new VehicleRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'VehicleJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n type: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.type, 'VehicleJson.type'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n serialNumber: tryOrDefault(\r\n () => json.serialNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n registrationNumber: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.registrationNumber, 'VehicleJson.registrationNumber'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dispatchCompanyId: tryOrDefault(\r\n () => json.dispatchCompanyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n year: tryOrDefault(\r\n () => json.year,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isUnderLease: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isUnderLease, 'VehicleJson.isUnderLease'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n role: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.role, 'VehicleJson.role'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dateAcquired: tryOrDefault(\r\n () => (json.dateAcquired != null ? new Date(json.dateAcquired) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n makeId: tryOrDefault(\r\n () => json.makeId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n modelId: tryOrDefault(\r\n () => json.modelId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cruiseSpeed: tryOrDefault(\r\n () => json.cruiseSpeed,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n configurationClassId: tryOrDefault(\r\n () => json.configurationClassId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isThirdPartyVehicle: tryOrDefault(\r\n () => json.isThirdPartyVehicle,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n parentUnitId: tryOrDefault(\r\n () => json.parentUnitId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isHidden: tryOrDefault(\r\n () => json.isHidden,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n faaCompanyId: tryOrDefault(\r\n () => json.faaCompanyId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n flightLogProcess: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.flightLogProcess, 'VehicleJson.flightLogProcess'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isPlaceholder: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isPlaceholder, 'VehicleJson.isPlaceholder'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n skytracIMEI: tryOrDefault(\r\n () => json.skytracIMEI,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n phoneNumber: tryOrDefault(\r\n () => json.phoneNumber,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n stateInspectionRequired: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.stateInspectionRequired,\r\n 'VehicleJson.stateInspectionRequired',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n completeFlightId: tryOrDefault(\r\n () => json.completeFlightId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n controlZoneId: tryOrDefault(\r\n () => json.controlZoneId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n communicationCenterId: tryOrDefault(\r\n () => json.communicationCenterId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n regionId: tryOrDefault(\r\n () => json.regionId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isRetired: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.isRetired, 'VehicleJson.isRetired'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isPositionTrackingEnabled: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.isPositionTrackingEnabled,\r\n 'VehicleJson.isPositionTrackingEnabled',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'VehicleJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: VehicleProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('VehicleRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class VehicleViewModelBase implements VehicleProps {\r\n protected readonly _props: VehicleProps;\r\n private _json?: VehicleProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get type(): VehicleType {\r\n return this._props.type;\r\n }\r\n get serialNumber(): string | null {\r\n return this._props.serialNumber;\r\n }\r\n get registrationNumber(): string {\r\n return this._props.registrationNumber;\r\n }\r\n get dispatchCompanyId(): string | null {\r\n return this._props.dispatchCompanyId;\r\n }\r\n get year(): number | null {\r\n return this._props.year;\r\n }\r\n get isUnderLease(): boolean {\r\n return this._props.isUnderLease;\r\n }\r\n get role(): VehicleRole {\r\n return this._props.role;\r\n }\r\n get dateAcquired(): Date | null {\r\n return this._props.dateAcquired;\r\n }\r\n get makeId(): string | null {\r\n return this._props.makeId;\r\n }\r\n get modelId(): string | null {\r\n return this._props.modelId;\r\n }\r\n get cruiseSpeed(): number | null {\r\n return this._props.cruiseSpeed;\r\n }\r\n get configurationClassId(): string | null {\r\n return this._props.configurationClassId;\r\n }\r\n get isThirdPartyVehicle(): boolean | null {\r\n return this._props.isThirdPartyVehicle;\r\n }\r\n get parentUnitId(): string | null {\r\n return this._props.parentUnitId;\r\n }\r\n get isHidden(): boolean | null {\r\n return this._props.isHidden;\r\n }\r\n get faaCompanyId(): string | null {\r\n return this._props.faaCompanyId;\r\n }\r\n get flightLogProcess(): FlightLogProcess {\r\n return this._props.flightLogProcess;\r\n }\r\n get isPlaceholder(): boolean {\r\n return this._props.isPlaceholder;\r\n }\r\n get skytracIMEI(): string | null {\r\n return this._props.skytracIMEI;\r\n }\r\n get phoneNumber(): string | null {\r\n return this._props.phoneNumber;\r\n }\r\n get stateInspectionRequired(): boolean {\r\n return this._props.stateInspectionRequired;\r\n }\r\n get completeFlightId(): string | null {\r\n return this._props.completeFlightId;\r\n }\r\n get controlZoneId(): string | null {\r\n return this._props.controlZoneId;\r\n }\r\n get communicationCenterId(): string | null {\r\n return this._props.communicationCenterId;\r\n }\r\n get regionId(): string | null {\r\n return this._props.regionId;\r\n }\r\n get isRetired(): boolean {\r\n return this._props.isRetired;\r\n }\r\n get isPositionTrackingEnabled(): boolean {\r\n return this._props.isPositionTrackingEnabled;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n public get isFixedWing() {\r\n return this._props.type === VehicleType.FixedWing;\r\n }\r\n public get isGround() {\r\n return this._props.type === VehicleType.Ground;\r\n }\r\n public get isRotorWing() {\r\n return this._props.type === VehicleType.RotorWing;\r\n }\r\n public get isTypeUnspecified() {\r\n return this._props.type === VehicleType.Unspecified;\r\n }\r\n public get isRoleUnspecified() {\r\n return this._props.role === VehicleRole.Unspecified;\r\n }\r\n public get isPrimary() {\r\n return this._props.role === VehicleRole.Primary;\r\n }\r\n public get isSpare() {\r\n return this._props.role === VehicleRole.Spare;\r\n }\r\n public get isSupport() {\r\n return this._props.role === VehicleRole.Support;\r\n }\r\n public get isExternal() {\r\n return this._props.flightLogProcess === FlightLogProcess.External;\r\n }\r\n public get isFlightLogDynamic() {\r\n return this._props.flightLogProcess === FlightLogProcess.FlightLogDynamic;\r\n }\r\n public get isFlightLogStatic() {\r\n return this._props.flightLogProcess === FlightLogProcess.FlightLogStatic;\r\n }\r\n public get isPstStatic() {\r\n return this._props.flightLogProcess === FlightLogProcess.PstStatic;\r\n }\r\n\r\n public isAnyType(...vehicleType: VehicleType[]) {\r\n return vehicleType.includes(this._props.type);\r\n }\r\n public isAnyRole(...vehicleRole: VehicleRole[]) {\r\n return vehicleRole.includes(this._props.role);\r\n }\r\n public isAnyFlightLogProcess(...flightLogProcess: FlightLogProcess[]) {\r\n return flightLogProcess.includes(this._props.flightLogProcess);\r\n }\r\n\r\n constructor(props: VehicleProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n type: this._props.type,\r\n serialNumber: this._props.serialNumber,\r\n registrationNumber: this._props.registrationNumber,\r\n dispatchCompanyId: this._props.dispatchCompanyId,\r\n year: this._props.year,\r\n isUnderLease: this._props.isUnderLease,\r\n role: this._props.role,\r\n dateAcquired: this._props.dateAcquired,\r\n makeId: this._props.makeId,\r\n modelId: this._props.modelId,\r\n cruiseSpeed: this._props.cruiseSpeed,\r\n configurationClassId: this._props.configurationClassId,\r\n isThirdPartyVehicle: this._props.isThirdPartyVehicle,\r\n parentUnitId: this._props.parentUnitId,\r\n isHidden: this._props.isHidden,\r\n faaCompanyId: this._props.faaCompanyId,\r\n flightLogProcess: this._props.flightLogProcess,\r\n isPlaceholder: this._props.isPlaceholder,\r\n skytracIMEI: this._props.skytracIMEI,\r\n phoneNumber: this._props.phoneNumber,\r\n stateInspectionRequired: this._props.stateInspectionRequired,\r\n completeFlightId: this._props.completeFlightId,\r\n controlZoneId: this._props.controlZoneId,\r\n communicationCenterId: this._props.communicationCenterId,\r\n regionId: this._props.regionId,\r\n isRetired: this._props.isRetired,\r\n isPositionTrackingEnabled: this._props.isPositionTrackingEnabled,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllVehicleEntities = (state: AppState) => state.entityStores.vehicle.entities;\r\n\r\nexport const selectVehicleById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicle.entities.get(id);\r\n\r\nexport const selectVehicleMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicle.meta.get(id);\r\n\r\nexport const selectVehicleAndMetadataById = (id: string) =>\r\n createSelector(selectVehicleById(id), selectVehicleMetadataById(id), (vehicle, meta) => ({\r\n vehicle,\r\n meta,\r\n }));\r\n\r\nexport function selectVehicleEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllVehicleEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, VehicleRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByType(type: VehicleType) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.type === type).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesBySerialNumber(serialNumber: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.serialNumber === serialNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByRegistrationNumber(registrationNumber: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.registrationNumber === registrationNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByDispatchCompanyId(dispatchCompanyId: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.dispatchCompanyId === dispatchCompanyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByYear(year: number) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.year === year).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByIsUnderLease(isUnderLease: boolean) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.isUnderLease === isUnderLease).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByRole(role: VehicleRole) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.role === role).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByDateAcquired(dateAcquired: Date) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.dateAcquired === dateAcquired).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByMakeId(makeId: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.makeId === makeId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByModelId(modelId: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.modelId === modelId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByCruiseSpeed(cruiseSpeed: number) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.cruiseSpeed === cruiseSpeed).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByConfigurationClassId(configurationClassId: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.configurationClassId === configurationClassId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByIsThirdPartyVehicle(isThirdPartyVehicle: boolean) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.isThirdPartyVehicle === isThirdPartyVehicle).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByParentUnitId(parentUnitId: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.parentUnitId === parentUnitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByIsHidden(isHidden: boolean) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.isHidden === isHidden).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByFaaCompanyId(faaCompanyId: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.faaCompanyId === faaCompanyId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByFlightLogProcess(flightLogProcess: FlightLogProcess) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.flightLogProcess === flightLogProcess).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByIsPlaceholder(isPlaceholder: boolean) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.isPlaceholder === isPlaceholder).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesBySkytracIMEI(skytracIMEI: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.skytracIMEI === skytracIMEI).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByPhoneNumber(phoneNumber: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.phoneNumber === phoneNumber).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByStateInspectionRequired(stateInspectionRequired: boolean) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.stateInspectionRequired === stateInspectionRequired).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByCompleteFlightId(completeFlightId: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.completeFlightId === completeFlightId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByControlZoneId(controlZoneId: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.controlZoneId === controlZoneId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByCommunicationCenterId(communicationCenterId: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.communicationCenterId === communicationCenterId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByRegionId(regionId: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.regionId === regionId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByIsRetired(isRetired: boolean) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.isRetired === isRetired).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByIsPositionTrackingEnabled(\r\n isPositionTrackingEnabled: boolean,\r\n) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.isPositionTrackingEnabled === isPositionTrackingEnabled).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllVehicleEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface EngineParametersProps {\r\n time: number | null;\r\n starts: number | null;\r\n}\r\n\r\nexport class EngineParametersRecord extends Record({\r\n time: null as any,\r\n starts: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n time: number | null;\r\n starts: number | null;\r\n }): EngineParametersRecord {\r\n if (json == null) {\r\n throw new Error('EngineParametersRecord.fromJS: parameter cannot be null');\r\n }\r\n return new EngineParametersRecord({\r\n time: json.time,\r\n starts: json.starts,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n time: number | null;\r\n starts: number | null;\r\n }): [EngineParametersRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('EngineParametersRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new EngineParametersRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n time: tryOrDefault(\r\n () => json.time,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n starts: tryOrDefault(\r\n () => json.starts,\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: EngineParametersProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('EngineParametersRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class EngineParametersViewModelBase implements EngineParametersProps {\r\n protected readonly _props: EngineParametersProps;\r\n private _json?: EngineParametersProps;\r\n\r\n get time(): number | null {\r\n return this._props.time;\r\n }\r\n get starts(): number | null {\r\n return this._props.starts;\r\n }\r\n\r\n constructor(props: EngineParametersProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n time: this._props.time,\r\n starts: this._props.starts,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n EngineParametersRecord,\r\n EngineParametersProps,\r\n} from 'src/store/generated/engine-parameters-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface MaintenanceParametersProps {\r\n endingHobbs: number | null;\r\n airframeTime: number | null;\r\n totalLandings: number | null;\r\n engine1: EngineParametersProps | null;\r\n engine2: EngineParametersProps | null;\r\n}\r\n\r\nexport class MaintenanceParametersRecord extends Record({\r\n endingHobbs: null as any,\r\n airframeTime: null as any,\r\n totalLandings: null as any,\r\n engine1: null as any,\r\n engine2: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n endingHobbs: number | null;\r\n airframeTime: number | null;\r\n totalLandings: number | null;\r\n engine1: any;\r\n engine2: any;\r\n }): MaintenanceParametersRecord {\r\n if (json == null) {\r\n throw new Error('MaintenanceParametersRecord.fromJS: parameter cannot be null');\r\n }\r\n return new MaintenanceParametersRecord({\r\n endingHobbs: json.endingHobbs,\r\n airframeTime: json.airframeTime,\r\n totalLandings: json.totalLandings,\r\n engine1: json.engine1 != null ? new EngineParametersRecord(json.engine1) : null,\r\n engine2: json.engine2 != null ? new EngineParametersRecord(json.engine2) : null,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n endingHobbs: number | null;\r\n airframeTime: number | null;\r\n totalLandings: number | null;\r\n engine1: any;\r\n engine2: any;\r\n }): [MaintenanceParametersRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('MaintenanceParametersRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new MaintenanceParametersRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n endingHobbs: tryOrDefault(\r\n () => json.endingHobbs,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n airframeTime: tryOrDefault(\r\n () => json.airframeTime,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n totalLandings: tryOrDefault(\r\n () => json.totalLandings,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n engine1: tryOrDefault(\r\n () => (json.engine1 != null ? new EngineParametersRecord(json.engine1) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n engine2: tryOrDefault(\r\n () => (json.engine2 != null ? new EngineParametersRecord(json.engine2) : null),\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: MaintenanceParametersProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('MaintenanceParametersRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class MaintenanceParametersViewModelBase implements MaintenanceParametersProps {\r\n protected readonly _props: MaintenanceParametersProps;\r\n private _json?: MaintenanceParametersProps;\r\n\r\n get endingHobbs(): number | null {\r\n return this._props.endingHobbs;\r\n }\r\n get airframeTime(): number | null {\r\n return this._props.airframeTime;\r\n }\r\n get totalLandings(): number | null {\r\n return this._props.totalLandings;\r\n }\r\n get engine1(): EngineParametersProps | null {\r\n return this._props.engine1;\r\n }\r\n get engine2(): EngineParametersProps | null {\r\n return this._props.engine2;\r\n }\r\n\r\n constructor(props: MaintenanceParametersProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n endingHobbs: this._props.endingHobbs,\r\n airframeTime: this._props.airframeTime,\r\n totalLandings: this._props.totalLandings,\r\n engine1: this._props.engine1,\r\n engine2: this._props.engine2,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface DeferralDueDateProps {\r\n id: string;\r\n dueDate: Date;\r\n triggerValue: number | null;\r\n notes: string | null;\r\n}\r\n\r\nexport class DeferralDueDateRecord extends Record({\r\n id: null as any,\r\n dueDate: null as any,\r\n triggerValue: null as any,\r\n notes: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n dueDate: string | number | Date;\r\n triggerValue: number | null;\r\n notes: string | null;\r\n }): DeferralDueDateRecord {\r\n if (json == null) {\r\n throw new Error('DeferralDueDateRecord.fromJS: parameter cannot be null');\r\n }\r\n return new DeferralDueDateRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'DeferralDueDateJson.id'),\r\n dueDate: new Date(getFromOrThrow(json, (j) => j.dueDate, 'DeferralDueDateJson.dueDate')),\r\n triggerValue: json.triggerValue,\r\n notes: json.notes,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n dueDate: string | number | Date;\r\n triggerValue: number | null;\r\n notes: string | null;\r\n }): [DeferralDueDateRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('DeferralDueDateRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new DeferralDueDateRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'DeferralDueDateJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n dueDate: tryOrDefault(\r\n () => new Date(getFromOrThrow(json, (j) => j.dueDate, 'DeferralDueDateJson.dueDate')),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n triggerValue: tryOrDefault(\r\n () => json.triggerValue,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: DeferralDueDateProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('DeferralDueDateRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class DeferralDueDateViewModelBase implements DeferralDueDateProps {\r\n protected readonly _props: DeferralDueDateProps;\r\n private _json?: DeferralDueDateProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get dueDate(): Date {\r\n return this._props.dueDate;\r\n }\r\n get triggerValue(): number | null {\r\n return this._props.triggerValue;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n\r\n constructor(props: DeferralDueDateProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n dueDate: this._props.dueDate,\r\n triggerValue: this._props.triggerValue,\r\n notes: this._props.notes,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { NextDueCycleType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface NextDueProps {\r\n id: string;\r\n typeId: string;\r\n cycleType: NextDueCycleType;\r\n value: string;\r\n triggerValue: number;\r\n notes: string | null;\r\n inTolerance: boolean | null;\r\n}\r\n\r\nexport class NextDueRecord extends Record({\r\n id: null as any,\r\n typeId: null as any,\r\n cycleType: null as any,\r\n value: null as any,\r\n triggerValue: null as any,\r\n notes: null as any,\r\n inTolerance: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n typeId: string;\r\n cycleType: NextDueCycleType;\r\n value: string;\r\n triggerValue: number;\r\n notes: string | null;\r\n inTolerance: boolean | null;\r\n }): NextDueRecord {\r\n if (json == null) {\r\n throw new Error('NextDueRecord.fromJS: parameter cannot be null');\r\n }\r\n return new NextDueRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'NextDueJson.id'),\r\n typeId: getFromOrThrow(json, (j) => j.typeId, 'NextDueJson.typeId'),\r\n cycleType: getFromOrThrow(json, (j) => j.cycleType, 'NextDueJson.cycleType'),\r\n value: getFromOrThrow(json, (j) => j.value, 'NextDueJson.value'),\r\n triggerValue: getFromOrThrow(json, (j) => j.triggerValue, 'NextDueJson.triggerValue'),\r\n notes: json.notes,\r\n inTolerance: json.inTolerance,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n typeId: string;\r\n cycleType: NextDueCycleType;\r\n value: string;\r\n triggerValue: number;\r\n notes: string | null;\r\n inTolerance: boolean | null;\r\n }): [NextDueRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('NextDueRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new NextDueRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'NextDueJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n typeId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.typeId, 'NextDueJson.typeId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cycleType: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.cycleType, 'NextDueJson.cycleType'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n value: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.value, 'NextDueJson.value'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n triggerValue: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.triggerValue, 'NextDueJson.triggerValue'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n inTolerance: tryOrDefault(\r\n () => json.inTolerance,\r\n (err) => errors.push(err),\r\n )!,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: NextDueProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('NextDueRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class NextDueViewModelBase implements NextDueProps {\r\n protected readonly _props: NextDueProps;\r\n private _json?: NextDueProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get typeId(): string {\r\n return this._props.typeId;\r\n }\r\n get cycleType(): NextDueCycleType {\r\n return this._props.cycleType;\r\n }\r\n get value(): string {\r\n return this._props.value;\r\n }\r\n get triggerValue(): number {\r\n return this._props.triggerValue;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get inTolerance(): boolean | null {\r\n return this._props.inTolerance;\r\n }\r\n\r\n public get isAF() {\r\n return this._props.cycleType === NextDueCycleType.AF;\r\n }\r\n public get isE1() {\r\n return this._props.cycleType === NextDueCycleType.E1;\r\n }\r\n public get isE2() {\r\n return this._props.cycleType === NextDueCycleType.E2;\r\n }\r\n\r\n public isAnyCycleType(...nextDueCycleType: NextDueCycleType[]) {\r\n return nextDueCycleType.includes(this._props.cycleType);\r\n }\r\n\r\n constructor(props: NextDueProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n typeId: this._props.typeId,\r\n cycleType: this._props.cycleType,\r\n value: this._props.value,\r\n triggerValue: this._props.triggerValue,\r\n notes: this._props.notes,\r\n inTolerance: this._props.inTolerance,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport {\r\n MaintenanceParametersRecord,\r\n MaintenanceParametersProps,\r\n} from 'src/store/generated/maintenance-parameters-record.generated';\r\nimport {\r\n DeferralDueDateRecord,\r\n DeferralDueDateProps,\r\n} from 'src/store/generated/deferral-due-date-record.generated';\r\nimport { NextDueRecord, NextDueProps } from 'src/store/generated/next-due-record.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface VehicleMaintenanceProps {\r\n id: string;\r\n maintenanceParams: MaintenanceParametersProps | null;\r\n deferralDueDates: List;\r\n nextDues: List;\r\n notes: string | null;\r\n isReleasedFromOCF: boolean | null;\r\n vehicleId: string | null;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class VehicleMaintenanceRecord extends Record({\r\n id: null as any,\r\n maintenanceParams: null as any,\r\n deferralDueDates: null as any,\r\n nextDues: null as any,\r\n notes: null as any,\r\n isReleasedFromOCF: null as any,\r\n vehicleId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n maintenanceParams: any;\r\n deferralDueDates: any;\r\n nextDues: any;\r\n notes: string | null;\r\n isReleasedFromOCF: boolean | null;\r\n vehicleId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): VehicleMaintenanceRecord {\r\n if (json == null) {\r\n throw new Error('VehicleMaintenanceRecord.fromJS: parameter cannot be null');\r\n }\r\n return new VehicleMaintenanceRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'VehicleMaintenanceJson.id'),\r\n maintenanceParams:\r\n json.maintenanceParams != null\r\n ? new MaintenanceParametersRecord(json.maintenanceParams)\r\n : null,\r\n deferralDueDates: List(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.deferralDueDates,\r\n 'VehicleMaintenanceJson.deferralDueDates',\r\n ).map((o: any) => new DeferralDueDateRecord(o)),\r\n ),\r\n nextDues: List(\r\n getFromOrThrow(json, (j) => j.nextDues, 'VehicleMaintenanceJson.nextDues').map(\r\n (o: any) => new NextDueRecord(o),\r\n ),\r\n ),\r\n notes: json.notes,\r\n isReleasedFromOCF: json.isReleasedFromOCF,\r\n vehicleId: json.vehicleId,\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'VehicleMaintenanceJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n maintenanceParams: any;\r\n deferralDueDates: any;\r\n nextDues: any;\r\n notes: string | null;\r\n isReleasedFromOCF: boolean | null;\r\n vehicleId: string | null;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [VehicleMaintenanceRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('VehicleMaintenanceRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new VehicleMaintenanceRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'VehicleMaintenanceJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n maintenanceParams: tryOrDefault(\r\n () =>\r\n json.maintenanceParams != null\r\n ? new MaintenanceParametersRecord(json.maintenanceParams)\r\n : null,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n deferralDueDates: tryOrDefault(\r\n () =>\r\n List(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.deferralDueDates,\r\n 'VehicleMaintenanceJson.deferralDueDates',\r\n ).map((o: any) => new DeferralDueDateRecord(o)),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n nextDues: tryOrDefault(\r\n () =>\r\n List(\r\n getFromOrThrow(json, (j) => j.nextDues, 'VehicleMaintenanceJson.nextDues').map(\r\n (o: any) => new NextDueRecord(o),\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n notes: tryOrDefault(\r\n () => json.notes,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n isReleasedFromOCF: tryOrDefault(\r\n () => json.isReleasedFromOCF,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => json.vehicleId,\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'VehicleMaintenanceJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: VehicleMaintenanceProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('VehicleMaintenanceRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class VehicleMaintenanceViewModelBase implements VehicleMaintenanceProps {\r\n protected readonly _props: VehicleMaintenanceProps;\r\n private _json?: VehicleMaintenanceProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get maintenanceParams(): MaintenanceParametersProps | null {\r\n return this._props.maintenanceParams;\r\n }\r\n get deferralDueDates(): List {\r\n return this._props.deferralDueDates;\r\n }\r\n get nextDues(): List {\r\n return this._props.nextDues;\r\n }\r\n get notes(): string | null {\r\n return this._props.notes;\r\n }\r\n get isReleasedFromOCF(): boolean | null {\r\n return this._props.isReleasedFromOCF;\r\n }\r\n get vehicleId(): string | null {\r\n return this._props.vehicleId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: VehicleMaintenanceProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n maintenanceParams: this._props.maintenanceParams,\r\n deferralDueDates: this._props.deferralDueDates,\r\n nextDues: this._props.nextDues,\r\n notes: this._props.notes,\r\n isReleasedFromOCF: this._props.isReleasedFromOCF,\r\n vehicleId: this._props.vehicleId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllVehicleMaintenanceEntities = (state: AppState) =>\r\n state.entityStores.vehicleMaintenance.entities;\r\n\r\nexport const selectVehicleMaintenanceById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleMaintenance.entities.get(id);\r\n\r\nexport const selectVehicleMaintenanceMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleMaintenance.meta.get(id);\r\n\r\nexport const selectVehicleMaintenanceAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectVehicleMaintenanceById(id),\r\n selectVehicleMaintenanceMetadataById(id),\r\n (vehicleMaintenance, meta) => ({ vehicleMaintenance, meta }),\r\n );\r\n\r\nexport function selectVehicleMaintenanceEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllVehicleMaintenanceEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, VehicleMaintenanceRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectVehicleMaintenanceEntitiesByNotes(notes: string) {\r\n return createSelector(selectAllVehicleMaintenanceEntities, (entities) =>\r\n entities.filter((e) => e.notes === notes).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleMaintenanceEntitiesByIsReleasedFromOCF(isReleasedFromOCF: boolean) {\r\n return createSelector(selectAllVehicleMaintenanceEntities, (entities) =>\r\n entities.filter((e) => e.isReleasedFromOCF === isReleasedFromOCF).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleMaintenanceEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllVehicleMaintenanceEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleMaintenanceEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllVehicleMaintenanceEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface VehicleMakeProps {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class VehicleMakeRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): VehicleMakeRecord {\r\n if (json == null) {\r\n throw new Error('VehicleMakeRecord.fromJS: parameter cannot be null');\r\n }\r\n return new VehicleMakeRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'VehicleMakeJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'VehicleMakeJson.name'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [VehicleMakeRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('VehicleMakeRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new VehicleMakeRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'VehicleMakeJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'VehicleMakeJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: VehicleMakeProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('VehicleMakeRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class VehicleMakeViewModelBase implements VehicleMakeProps {\r\n protected readonly _props: VehicleMakeProps;\r\n private _json?: VehicleMakeProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: VehicleMakeProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllVehicleMakeEntities = (state: AppState) =>\r\n state.entityStores.vehicleMake.entities;\r\n\r\nexport const selectVehicleMakeById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleMake.entities.get(id);\r\n\r\nexport const selectVehicleMakeMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleMake.meta.get(id);\r\n\r\nexport const selectVehicleMakeAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectVehicleMakeById(id),\r\n selectVehicleMakeMetadataById(id),\r\n (vehicleMake, meta) => ({ vehicleMake, meta }),\r\n );\r\n\r\nexport function selectVehicleMakeEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllVehicleMakeEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, VehicleMakeRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectVehicleMakeEntitiesByName(name: string) {\r\n return createSelector(selectAllVehicleMakeEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface VehicleModelProps {\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class VehicleModelRecord extends Record({\r\n id: null as any,\r\n name: null as any,\r\n cruiseSpeedInMph: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): VehicleModelRecord {\r\n if (json == null) {\r\n throw new Error('VehicleModelRecord.fromJS: parameter cannot be null');\r\n }\r\n return new VehicleModelRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'VehicleModelJson.id'),\r\n name: getFromOrThrow(json, (j) => j.name, 'VehicleModelJson.name'),\r\n cruiseSpeedInMph: json.cruiseSpeedInMph,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n name: string;\r\n cruiseSpeedInMph: number | null;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [VehicleModelRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('VehicleModelRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new VehicleModelRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'VehicleModelJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n name: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.name, 'VehicleModelJson.name'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cruiseSpeedInMph: tryOrDefault(\r\n () => json.cruiseSpeedInMph,\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: VehicleModelProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('VehicleModelRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class VehicleModelViewModelBase implements VehicleModelProps {\r\n protected readonly _props: VehicleModelProps;\r\n private _json?: VehicleModelProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get name(): string {\r\n return this._props.name;\r\n }\r\n get cruiseSpeedInMph(): number | null {\r\n return this._props.cruiseSpeedInMph;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: VehicleModelProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n name: this._props.name,\r\n cruiseSpeedInMph: this._props.cruiseSpeedInMph,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllVehicleModelEntities = (state: AppState) =>\r\n state.entityStores.vehicleModel.entities;\r\n\r\nexport const selectVehicleModelById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleModel.entities.get(id);\r\n\r\nexport const selectVehicleModelMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleModel.meta.get(id);\r\n\r\nexport const selectVehicleModelAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectVehicleModelById(id),\r\n selectVehicleModelMetadataById(id),\r\n (vehicleModel, meta) => ({ vehicleModel, meta }),\r\n );\r\n\r\nexport function selectVehicleModelEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllVehicleModelEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, VehicleModelRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectVehicleModelEntitiesByName(name: string) {\r\n return createSelector(selectAllVehicleModelEntities, (entities) =>\r\n entities.filter((e) => e.name === name).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleModelEntitiesByCruiseSpeedInMph(cruiseSpeedInMph: number) {\r\n return createSelector(selectAllVehicleModelEntities, (entities) =>\r\n entities.filter((e) => e.cruiseSpeedInMph === cruiseSpeedInMph).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface VehicleStateInspectionProps {\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: Date;\r\n vehicleId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class VehicleStateInspectionRecord extends Record({\r\n id: null as any,\r\n stateAbbrevation: null as any,\r\n inspectionDate: null as any,\r\n vehicleId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: string | number | Date;\r\n vehicleId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): VehicleStateInspectionRecord {\r\n if (json == null) {\r\n throw new Error('VehicleStateInspectionRecord.fromJS: parameter cannot be null');\r\n }\r\n return new VehicleStateInspectionRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'VehicleStateInspectionJson.id'),\r\n stateAbbrevation: getFromOrThrow(\r\n json,\r\n (j) => j.stateAbbrevation,\r\n 'VehicleStateInspectionJson.stateAbbrevation',\r\n ),\r\n inspectionDate: new Date(\r\n getFromOrThrow(json, (j) => j.inspectionDate, 'VehicleStateInspectionJson.inspectionDate'),\r\n ),\r\n vehicleId: getFromOrThrow(json, (j) => j.vehicleId, 'VehicleStateInspectionJson.vehicleId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'VehicleStateInspectionJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n stateAbbrevation: string;\r\n inspectionDate: string | number | Date;\r\n vehicleId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [VehicleStateInspectionRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('VehicleStateInspectionRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new VehicleStateInspectionRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'VehicleStateInspectionJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n stateAbbrevation: tryOrDefault(\r\n () =>\r\n getFromOrThrow(\r\n json,\r\n (j) => j.stateAbbrevation,\r\n 'VehicleStateInspectionJson.stateAbbrevation',\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n inspectionDate: tryOrDefault(\r\n () =>\r\n new Date(\r\n getFromOrThrow(\r\n json,\r\n (j) => j.inspectionDate,\r\n 'VehicleStateInspectionJson.inspectionDate',\r\n ),\r\n ),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n vehicleId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.vehicleId, 'VehicleStateInspectionJson.vehicleId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'VehicleStateInspectionJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: VehicleStateInspectionProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('VehicleStateInspectionRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class VehicleStateInspectionViewModelBase implements VehicleStateInspectionProps {\r\n protected readonly _props: VehicleStateInspectionProps;\r\n private _json?: VehicleStateInspectionProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get stateAbbrevation(): string {\r\n return this._props.stateAbbrevation;\r\n }\r\n get inspectionDate(): Date {\r\n return this._props.inspectionDate;\r\n }\r\n get vehicleId(): string {\r\n return this._props.vehicleId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: VehicleStateInspectionProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n stateAbbrevation: this._props.stateAbbrevation,\r\n inspectionDate: this._props.inspectionDate,\r\n vehicleId: this._props.vehicleId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllVehicleStateInspectionEntities = (state: AppState) =>\r\n state.entityStores.vehicleStateInspection.entities;\r\n\r\nexport const selectVehicleStateInspectionById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleStateInspection.entities.get(id);\r\n\r\nexport const selectVehicleStateInspectionMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.vehicleStateInspection.meta.get(id);\r\n\r\nexport const selectVehicleStateInspectionAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectVehicleStateInspectionById(id),\r\n selectVehicleStateInspectionMetadataById(id),\r\n (vehicleStateInspection, meta) => ({ vehicleStateInspection, meta }),\r\n );\r\n\r\nexport function selectVehicleStateInspectionEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllVehicleStateInspectionEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, VehicleStateInspectionRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectVehicleStateInspectionEntitiesByStateAbbrevation(stateAbbrevation: string) {\r\n return createSelector(selectAllVehicleStateInspectionEntities, (entities) =>\r\n entities.filter((e) => e.stateAbbrevation === stateAbbrevation).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleStateInspectionEntitiesByInspectionDate(inspectionDate: Date) {\r\n return createSelector(selectAllVehicleStateInspectionEntities, (entities) =>\r\n entities.filter((e) => e.inspectionDate === inspectionDate).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleStateInspectionEntitiesByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllVehicleStateInspectionEntities, (entities) =>\r\n entities.filter((e) => e.vehicleId === vehicleId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectVehicleStateInspectionEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllVehicleStateInspectionEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","/* \r\nGenerated code: do not modify this file as it will be overwritten\r\nTemplate: ImmutableJSRecord.cst\r\n\r\nKnown Issues/TODO:\r\n- Using *Props type as Record constructor parameter is insufficient.\r\nIf a property needs to be a Record type, it should already be constructed.\r\n- Rename Record fromJS factory method to fromJSON\r\n- Create parseJSON method that translates JSON to Props\r\n\r\n\r\n\r\n */\r\n\r\n/* eslint-disable import/order */\r\n\r\nimport { createSelector } from '@ngrx/store';\r\nimport { List, Map, Record, Seq, Set } from 'immutable';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { getFromOrThrow, tryOrDefault } from 'src/util/values';\r\n\r\nexport interface ActiveCardUnitOfferingProps {\r\n id: string;\r\n cardId: string;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: Date;\r\n dateCreated: Date;\r\n dateDeleted: Date | null;\r\n lastUpdatedById: string | null;\r\n}\r\n\r\nexport class ActiveCardUnitOfferingRecord extends Record({\r\n id: null as any,\r\n cardId: null as any,\r\n unitId: null as any,\r\n companyId: null as any,\r\n dateLastUpdated: null as any,\r\n dateCreated: null as any,\r\n dateDeleted: null as any,\r\n lastUpdatedById: null as any,\r\n}) {\r\n public static fromJS(json: {\r\n id: string;\r\n cardId: string;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): ActiveCardUnitOfferingRecord {\r\n if (json == null) {\r\n throw new Error('ActiveCardUnitOfferingRecord.fromJS: parameter cannot be null');\r\n }\r\n return new ActiveCardUnitOfferingRecord({\r\n id: getFromOrThrow(json, (j) => j.id, 'ActiveCardUnitOfferingJson.id'),\r\n cardId: getFromOrThrow(json, (j) => j.cardId, 'ActiveCardUnitOfferingJson.cardId'),\r\n unitId: getFromOrThrow(json, (j) => j.unitId, 'ActiveCardUnitOfferingJson.unitId'),\r\n companyId: getFromOrThrow(json, (j) => j.companyId, 'ActiveCardUnitOfferingJson.companyId'),\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n }\r\n\r\n public static fromJSUnsafe(json: {\r\n id: string;\r\n cardId: string;\r\n unitId: string;\r\n companyId: string;\r\n dateLastUpdated: string | number | Date;\r\n dateCreated: string | number | Date;\r\n dateDeleted: string | number | Date | null;\r\n lastUpdatedById: string | null;\r\n }): [ActiveCardUnitOfferingRecord, Error[]] {\r\n if (json == null) {\r\n throw new Error('ActiveCardUnitOfferingRecord.fromJSUnsafe: parameter cannot be null');\r\n }\r\n const errors: Error[] = [];\r\n\r\n const record = new ActiveCardUnitOfferingRecord({\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n id: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.id, 'ActiveCardUnitOfferingJson.id'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n cardId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.cardId, 'ActiveCardUnitOfferingJson.cardId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n unitId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.unitId, 'ActiveCardUnitOfferingJson.unitId'),\r\n (err) => errors.push(err),\r\n )!,\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n companyId: tryOrDefault(\r\n () => getFromOrThrow(json, (j) => j.companyId, 'ActiveCardUnitOfferingJson.companyId'),\r\n (err) => errors.push(err),\r\n )!,\r\n dateLastUpdated: new Date(json.dateLastUpdated),\r\n dateCreated: new Date(json.dateCreated),\r\n dateDeleted: json.dateDeleted != null ? new Date(json.dateDeleted) : null,\r\n lastUpdatedById: json.lastUpdatedById,\r\n });\r\n\r\n return [record, errors];\r\n }\r\n\r\n constructor(props: ActiveCardUnitOfferingProps) {\r\n super(props);\r\n if (props == null) {\r\n throw new Error('ActiveCardUnitOfferingRecord constructor parameter cannot be null');\r\n }\r\n }\r\n}\r\n\r\nexport abstract class ActiveCardUnitOfferingViewModelBase implements ActiveCardUnitOfferingProps {\r\n protected readonly _props: ActiveCardUnitOfferingProps;\r\n private _json?: ActiveCardUnitOfferingProps;\r\n\r\n get id(): string {\r\n return this._props.id;\r\n }\r\n get cardId(): string {\r\n return this._props.cardId;\r\n }\r\n get unitId(): string {\r\n return this._props.unitId;\r\n }\r\n get companyId(): string {\r\n return this._props.companyId;\r\n }\r\n\r\n get dateCreated(): Date {\r\n return this._props.dateCreated;\r\n }\r\n get dateLastUpdated(): Date {\r\n return this._props.dateLastUpdated;\r\n }\r\n get dateDeleted(): Date | null {\r\n return this._props.dateDeleted;\r\n }\r\n get lastUpdatedById(): string | null {\r\n return this._props.lastUpdatedById;\r\n }\r\n\r\n constructor(props: ActiveCardUnitOfferingProps) {\r\n this._props = props;\r\n }\r\n\r\n public toJS() {\r\n return this.toJSON();\r\n }\r\n\r\n public toJSON() {\r\n if (this._json == null) {\r\n this._json = {\r\n id: this._props.id,\r\n cardId: this._props.cardId,\r\n unitId: this._props.unitId,\r\n companyId: this._props.companyId,\r\n dateLastUpdated: this._props.dateLastUpdated,\r\n dateCreated: this._props.dateCreated,\r\n dateDeleted: this._props.dateDeleted,\r\n lastUpdatedById: this._props.lastUpdatedById,\r\n };\r\n }\r\n return this._json;\r\n }\r\n}\r\n\r\n//#region Selectors\r\n\r\nexport const selectAllActiveCardUnitOfferingEntities = (state: AppState) =>\r\n state.entityStores.activeCardUnitOffering.entities;\r\n\r\nexport const selectActiveCardUnitOfferingById = (id: string) => (state: AppState) =>\r\n state.entityStores.activeCardUnitOffering.entities.get(id);\r\n\r\nexport const selectActiveCardUnitOfferingMetadataById = (id: string) => (state: AppState) =>\r\n state.entityStores.activeCardUnitOffering.meta.get(id);\r\n\r\nexport const selectActiveCardUnitOfferingAndMetadataById = (id: string) =>\r\n createSelector(\r\n selectActiveCardUnitOfferingById(id),\r\n selectActiveCardUnitOfferingMetadataById(id),\r\n (activeCardUnitOffering, meta) => ({ activeCardUnitOffering, meta }),\r\n );\r\n\r\nexport function selectActiveCardUnitOfferingEntitiesByIds(ids: string[]) {\r\n return createSelector(\r\n selectAllActiveCardUnitOfferingEntities,\r\n\r\n (entities) => {\r\n // TODO: Once we're on TS 3.5+, I don't think we'll need use type assertions\r\n const entries = ids.map((id) => [id, entities.get(id)]) as unknown as Iterable<\r\n [string, ActiveCardUnitOfferingRecord | undefined]\r\n >;\r\n return Map(entries);\r\n },\r\n );\r\n}\r\n\r\nexport function selectActiveCardUnitOfferingEntitiesByCardId(cardId: string) {\r\n return createSelector(selectAllActiveCardUnitOfferingEntities, (entities) =>\r\n entities.filter((e) => e.cardId === cardId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveCardUnitOfferingEntitiesByUnitId(unitId: string) {\r\n return createSelector(selectAllActiveCardUnitOfferingEntities, (entities) =>\r\n entities.filter((e) => e.unitId === unitId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectActiveCardUnitOfferingEntitiesByCompanyId(companyId: string) {\r\n return createSelector(selectAllActiveCardUnitOfferingEntities, (entities) =>\r\n entities.filter((e) => e.companyId === companyId).valueSeq(),\r\n );\r\n}\r\n//#endregion Selectors\r\n","// Generated code: do not modify this file as it will be overwritten\r\n// Template: RecordReviver.cst\r\n\r\n/* eslint-disable import/order */\r\nimport { Record, Map, List, Collection } from 'immutable';\r\nimport { ActivationRuleRecord } from './activation-rule-record.generated';\r\nimport { ActiveAlertRecord } from './active-alert-record.generated';\r\nimport { ActiveTimelineRecord } from './active-timeline-record.generated';\r\nimport { AlertRecord } from './alert-record.generated';\r\nimport { ApplicationNotificationRecord } from './application-notification-record.generated';\r\nimport { AssignmentDelayedReasonRecord } from './assignment-delayed-reason-record.generated';\r\nimport { CancellationCategoryRecord } from './cancellation-category-record.generated';\r\nimport { CancellationReasonRecord } from './cancellation-reason-record.generated';\r\nimport { CancellationSecondaryReasonRecord } from './cancellation-secondary-reason-record.generated';\r\nimport { CardRecord } from './card-record.generated';\r\nimport { CardLinkRecord } from './card-link-record.generated';\r\nimport { CardNoteArchiveRecord } from './card-note-archive-record.generated';\r\nimport { CardNoteRecord } from './card-note-record.generated';\r\nimport { CardReOpenReasonRecord } from './card-re-open-reason-record.generated';\r\nimport { CardSummaryRecord } from './card-summary-record.generated';\r\nimport { ConfigurationSettingRecord } from './configuration-setting-record.generated';\r\nimport { DeclineCategoryRecord } from './decline-category-record.generated';\r\nimport { DeclineReasonRecord } from './decline-reason-record.generated';\r\nimport { DeclineSecondaryReasonRecord } from './decline-secondary-reason-record.generated';\r\nimport { DiversionReasonRecord } from './diversion-reason-record.generated';\r\nimport { EscortRequestRecord } from './escort-request-record.generated';\r\nimport { EstimatedDurationRecord } from './estimated-duration-record.generated';\r\nimport { EtaRecord } from './eta-record.generated';\r\nimport { ExternalActionRecord } from './external-action-record.generated';\r\nimport { ExternalActionTypeRecord } from './external-action-type-record.generated';\r\nimport { ExternalSystemUnitRecord } from './external-system-unit-record.generated';\r\nimport { FacilityNonAcceptanceReasonRecord } from './facility-non-acceptance-reason-record.generated';\r\nimport { FirewallRuleRecord } from './firewall-rule-record.generated';\r\nimport { FlightFollowingReportRecord } from './flight-following-report-record.generated';\r\nimport { LandingZoneOutOfServiceReasonRecord } from './landing-zone-out-of-service-reason-record.generated';\r\nimport { LocationHazardAttachmentRecord } from './location-hazard-attachment-record.generated';\r\nimport { LocationHazardRecord } from './location-hazard-record.generated';\r\nimport { ManifestEntryRecord } from './manifest-entry-record.generated';\r\nimport { MedicalControlContactLogEntryRecord } from './medical-control-contact-log-entry-record.generated';\r\nimport { MessageStatusUpdateRecord } from './message-status-update-record.generated';\r\nimport { NextDueTypeRecord } from './next-due-type-record.generated';\r\nimport { NonReferralReasonRecord } from './non-referral-reason-record.generated';\r\nimport { NotificationRecord } from './notification-record.generated';\r\nimport { NotificationGroupRecord } from './notification-group-record.generated';\r\nimport { NotificationGroupMemberRecord } from './notification-group-member-record.generated';\r\nimport { NotificationRecipientRecord } from './notification-recipient-record.generated';\r\nimport { NotificationSubscriptionRecord } from './notification-subscription-record.generated';\r\nimport { NotificationTemplateRecord } from './notification-template-record.generated';\r\nimport { OemActivityRecord } from './oem-activity-record.generated';\r\nimport { OemAssetRecord } from './oem-asset-record.generated';\r\nimport { OemPlanChangeRequestRecord } from './oem-plan-change-request-record.generated';\r\nimport { OemPlanRecord } from './oem-plan-record.generated';\r\nimport { OfferAlgorithmRecord } from './offer-algorithm-record.generated';\r\nimport { OperationRecord } from './operation-record.generated';\r\nimport { OutOfServiceEventRecord } from './out-of-service-event-record.generated';\r\nimport { OutOfServiceEventNoteRecord } from './out-of-service-event-note-record.generated';\r\nimport { OutOfServiceReasonRecord } from './out-of-service-reason-record.generated';\r\nimport { OutOfServiceSecondaryReasonRecord } from './out-of-service-secondary-reason-record.generated';\r\nimport { PassdownLogAcknowledgementRecord } from './passdown-log-acknowledgement-record.generated';\r\nimport { PassdownLogRecord } from './passdown-log-record.generated';\r\nimport { PatientRecord } from './patient-record.generated';\r\nimport { PositionReportAlertRecord } from './position-report-alert-record.generated';\r\nimport { PositionReportArchiveRecord } from './position-report-archive-record.generated';\r\nimport { PositionReportRecord } from './position-report-record.generated';\r\nimport { QuestionChoiceRecord } from './question-choice-record.generated';\r\nimport { QuestionRecord } from './question-record.generated';\r\nimport { QuestionnaireRecord } from './questionnaire-record.generated';\r\nimport { QuestionnaireQuestionResponseRecord } from './questionnaire-question-response-record.generated';\r\nimport { QuestionnaireQuestionResponseNoteRecord } from './questionnaire-question-response-note-record.generated';\r\nimport { QuestionnaireResponseRecord } from './questionnaire-response-record.generated';\r\nimport { QuestionnaireSectionRecord } from './questionnaire-section-record.generated';\r\nimport { QuestionnaireSectionQuestionRecord } from './questionnaire-section-question-record.generated';\r\nimport { ReceivingFacilityRequestRecord } from './receiving-facility-request-record.generated';\r\nimport { RendezvousRequestRecord } from './rendezvous-request-record.generated';\r\nimport { RequestRecord } from './request-record.generated';\r\nimport { RequesterRecord } from './requester-record.generated';\r\nimport { RequesterReferralReasonRecord } from './requester-referral-reason-record.generated';\r\nimport { RequesterRoleRecord } from './requester-role-record.generated';\r\nimport { RequestLocationRecord } from './request-location-record.generated';\r\nimport { RequestPatientRecord } from './request-patient-record.generated';\r\nimport { SystemTimerRecord } from './system-timer-record.generated';\r\nimport { TimelineRecord } from './timeline-record.generated';\r\nimport { TimelineItemRecord } from './timeline-item-record.generated';\r\nimport { TimestampRecord } from './timestamp-record.generated';\r\nimport { TimestampTypeRecord } from './timestamp-type-record.generated';\r\nimport { TrackedMessageRecord } from './tracked-message-record.generated';\r\nimport { TransferReasonRecord } from './transfer-reason-record.generated';\r\nimport { TransportOfferRecord } from './transport-offer-record.generated';\r\nimport { TransportOfferOptionRecord } from './transport-offer-option-record.generated';\r\nimport { TransportReasonRecord } from './transport-reason-record.generated';\r\nimport { TripRecord } from './trip-record.generated';\r\nimport { TripLegRecord } from './trip-leg-record.generated';\r\nimport { TripPassengerRecord } from './trip-passenger-record.generated';\r\nimport { UnitActivationRuleRecord } from './unit-activation-rule-record.generated';\r\nimport { UnitEMSystemMappingRecord } from './unit-em-system-mapping-record.generated';\r\nimport { UnitRecord } from './unit-record.generated';\r\nimport { UnitNoteRecord } from './unit-note-record.generated';\r\nimport { UnitPositionRecord } from './unit-position-record.generated';\r\nimport { UnitShiftRecord } from './unit-shift-record.generated';\r\nimport { UnitStatusHistoryEntryRecord } from './unit-status-history-entry-record.generated';\r\nimport { UnitSummaryRecord } from './unit-summary-record.generated';\r\nimport { VehicleDispositionRecord } from './vehicle-disposition-record.generated';\r\nimport { VehicleSummaryRecord } from './vehicle-summary-record.generated';\r\nimport { WaypointRecord } from './waypoint-record.generated';\r\nimport { WebOrderLogRecord } from './web-order-log-record.generated';\r\nimport { AccessibleItemRecord } from './accessible-item-record.generated';\r\nimport { AgencyRecord } from './agency-record.generated';\r\nimport { AgencyLocationRecord } from './agency-location-record.generated';\r\nimport { AirportRecord } from './airport-record.generated';\r\nimport { ArchiveLogRecord } from './archive-log-record.generated';\r\nimport { BaseControlZoneRecord } from './base-control-zone-record.generated';\r\nimport { BaseRecord } from './base-record.generated';\r\nimport { BaseMedicalControlContactRecord } from './base-medical-control-contact-record.generated';\r\nimport { BaseMedicalControlContactStateRecord } from './base-medical-control-contact-state-record.generated';\r\nimport { CapabilityRecord } from './capability-record.generated';\r\nimport { CommunicationCenterRecord } from './communication-center-record.generated';\r\nimport { CommunicationCenterTransportOfferOptionRecord } from './communication-center-transport-offer-option-record.generated';\r\nimport { CompanyRecord } from './company-record.generated';\r\nimport { CompleteFlightInstanceRecord } from './complete-flight-instance-record.generated';\r\nimport { ControlZoneRecord } from './control-zone-record.generated';\r\nimport { DepartmentRecord } from './department-record.generated';\r\nimport { EntityCapabilityRecord } from './entity-capability-record.generated';\r\nimport { ExternalReferenceRecord } from './external-reference-record.generated';\r\nimport { FboRecord } from './fbo-record.generated';\r\nimport { FuelTankRecord } from './fuel-tank-record.generated';\r\nimport { LocationRecord } from './location-record.generated';\r\nimport { MedicalFacilityContactRecord } from './medical-facility-contact-record.generated';\r\nimport { MedicalFacilityRecord } from './medical-facility-record.generated';\r\nimport { MedicalFacilityPhysicianRecord } from './medical-facility-physician-record.generated';\r\nimport { MedicalFacilityUnitRecord } from './medical-facility-unit-record.generated';\r\nimport { MedicalUnitRecord } from './medical-unit-record.generated';\r\nimport { PersonRecord } from './person-record.generated';\r\nimport { PhysicianRecord } from './physician-record.generated';\r\nimport { ProgramBaseRecord } from './program-base-record.generated';\r\nimport { ProgramRecord } from './program-record.generated';\r\nimport { RamcoVehicleConfigurationRecord } from './ramco-vehicle-configuration-record.generated';\r\nimport { RegionBaseRecord } from './region-base-record.generated';\r\nimport { RegionRecord } from './region-record.generated';\r\nimport { RegionGroupRecord } from './region-group-record.generated';\r\nimport { SpecialtyTeamRecord } from './specialty-team-record.generated';\r\nimport { SpecialtyTeamMemberRecord } from './specialty-team-member-record.generated';\r\nimport { SupportRequestRecord } from './support-request-record.generated';\r\nimport { TimezoneRecord } from './timezone-record.generated';\r\nimport { TransferCenterRecord } from './transfer-center-record.generated';\r\nimport { TrmUserAgencyRecord } from './trm-user-agency-record.generated';\r\nimport { TrmUserRecord } from './trm-user-record.generated';\r\nimport { TrmUserMedicalFacilityRecord } from './trm-user-medical-facility-record.generated';\r\nimport { TrmUserProgramRecord } from './trm-user-program-record.generated';\r\nimport { VehicleControlZoneRecord } from './vehicle-control-zone-record.generated';\r\nimport { VehicleRecord } from './vehicle-record.generated';\r\nimport { VehicleMaintenanceRecord } from './vehicle-maintenance-record.generated';\r\nimport { VehicleMakeRecord } from './vehicle-make-record.generated';\r\nimport { VehicleModelRecord } from './vehicle-model-record.generated';\r\nimport { VehicleStateInspectionRecord } from './vehicle-state-inspection-record.generated';\r\nimport { ActiveCardUnitOfferingRecord } from './active-card-unit-offering-record.generated';\r\nimport { VehiclePositionSummaryRecord } from './vehicle-position-summary-record.generated';\r\nimport { TcsEntityRecord } from './client-sync.generated';\r\n\r\nexport function revive({ state, type }: { state: any; type: string }): TcsEntityRecord | undefined {\r\n switch (type) {\r\n case 'ActivationRule': {\r\n return ActivationRuleRecord.fromJS(state);\r\n }\r\n case 'ActiveAlert': {\r\n return ActiveAlertRecord.fromJS(state);\r\n }\r\n case 'ActiveTimeline': {\r\n return ActiveTimelineRecord.fromJS(state);\r\n }\r\n case 'Alert': {\r\n return AlertRecord.fromJS(state);\r\n }\r\n case 'ApplicationNotification': {\r\n return ApplicationNotificationRecord.fromJS(state);\r\n }\r\n case 'AssignmentDelayedReason': {\r\n return AssignmentDelayedReasonRecord.fromJS(state);\r\n }\r\n case 'CancellationCategory': {\r\n return CancellationCategoryRecord.fromJS(state);\r\n }\r\n case 'CancellationReason': {\r\n return CancellationReasonRecord.fromJS(state);\r\n }\r\n case 'CancellationSecondaryReason': {\r\n return CancellationSecondaryReasonRecord.fromJS(state);\r\n }\r\n case 'Card': {\r\n return CardRecord.fromJS(state);\r\n }\r\n case 'CardLink': {\r\n return CardLinkRecord.fromJS(state);\r\n }\r\n case 'CardNoteArchive': {\r\n return CardNoteArchiveRecord.fromJS(state);\r\n }\r\n case 'CardNote': {\r\n return CardNoteRecord.fromJS(state);\r\n }\r\n case 'CardReOpenReason': {\r\n return CardReOpenReasonRecord.fromJS(state);\r\n }\r\n case 'CardSummary': {\r\n return CardSummaryRecord.fromJS(state);\r\n }\r\n case 'ConfigurationSetting': {\r\n return ConfigurationSettingRecord.fromJS(state);\r\n }\r\n case 'DeclineCategory': {\r\n return DeclineCategoryRecord.fromJS(state);\r\n }\r\n case 'DeclineReason': {\r\n return DeclineReasonRecord.fromJS(state);\r\n }\r\n case 'DeclineSecondaryReason': {\r\n return DeclineSecondaryReasonRecord.fromJS(state);\r\n }\r\n case 'DiversionReason': {\r\n return DiversionReasonRecord.fromJS(state);\r\n }\r\n case 'EscortRequest': {\r\n return EscortRequestRecord.fromJS(state);\r\n }\r\n case 'EstimatedDuration': {\r\n return EstimatedDurationRecord.fromJS(state);\r\n }\r\n case 'Eta': {\r\n return EtaRecord.fromJS(state);\r\n }\r\n case 'ExternalAction': {\r\n return ExternalActionRecord.fromJS(state);\r\n }\r\n case 'ExternalActionType': {\r\n return ExternalActionTypeRecord.fromJS(state);\r\n }\r\n case 'ExternalSystemUnit': {\r\n return ExternalSystemUnitRecord.fromJS(state);\r\n }\r\n case 'FacilityNonAcceptanceReason': {\r\n return FacilityNonAcceptanceReasonRecord.fromJS(state);\r\n }\r\n case 'FirewallRule': {\r\n return FirewallRuleRecord.fromJS(state);\r\n }\r\n case 'FlightFollowingReport': {\r\n return FlightFollowingReportRecord.fromJS(state);\r\n }\r\n case 'LandingZoneOutOfServiceReason': {\r\n return LandingZoneOutOfServiceReasonRecord.fromJS(state);\r\n }\r\n case 'LocationHazardAttachment': {\r\n return LocationHazardAttachmentRecord.fromJS(state);\r\n }\r\n case 'LocationHazard': {\r\n return LocationHazardRecord.fromJS(state);\r\n }\r\n case 'ManifestEntry': {\r\n return ManifestEntryRecord.fromJS(state);\r\n }\r\n case 'MedicalControlContactLogEntry': {\r\n return MedicalControlContactLogEntryRecord.fromJS(state);\r\n }\r\n case 'MessageStatusUpdate': {\r\n return MessageStatusUpdateRecord.fromJS(state);\r\n }\r\n case 'NextDueType': {\r\n return NextDueTypeRecord.fromJS(state);\r\n }\r\n case 'NonReferralReason': {\r\n return NonReferralReasonRecord.fromJS(state);\r\n }\r\n case 'Notification': {\r\n return NotificationRecord.fromJS(state);\r\n }\r\n case 'NotificationGroup': {\r\n return NotificationGroupRecord.fromJS(state);\r\n }\r\n case 'NotificationGroupMember': {\r\n return NotificationGroupMemberRecord.fromJS(state);\r\n }\r\n case 'NotificationRecipient': {\r\n return NotificationRecipientRecord.fromJS(state);\r\n }\r\n case 'NotificationSubscription': {\r\n return NotificationSubscriptionRecord.fromJS(state);\r\n }\r\n case 'NotificationTemplate': {\r\n return NotificationTemplateRecord.fromJS(state);\r\n }\r\n case 'OemActivity': {\r\n return OemActivityRecord.fromJS(state);\r\n }\r\n case 'OemAsset': {\r\n return OemAssetRecord.fromJS(state);\r\n }\r\n case 'OemPlanChangeRequest': {\r\n return OemPlanChangeRequestRecord.fromJS(state);\r\n }\r\n case 'OemPlan': {\r\n return OemPlanRecord.fromJS(state);\r\n }\r\n case 'OfferAlgorithm': {\r\n return OfferAlgorithmRecord.fromJS(state);\r\n }\r\n case 'Operation': {\r\n return OperationRecord.fromJS(state);\r\n }\r\n case 'OutOfServiceEvent': {\r\n return OutOfServiceEventRecord.fromJS(state);\r\n }\r\n case 'OutOfServiceEventNote': {\r\n return OutOfServiceEventNoteRecord.fromJS(state);\r\n }\r\n case 'OutOfServiceReason': {\r\n return OutOfServiceReasonRecord.fromJS(state);\r\n }\r\n case 'OutOfServiceSecondaryReason': {\r\n return OutOfServiceSecondaryReasonRecord.fromJS(state);\r\n }\r\n case 'PassdownLogAcknowledgement': {\r\n return PassdownLogAcknowledgementRecord.fromJS(state);\r\n }\r\n case 'PassdownLog': {\r\n return PassdownLogRecord.fromJS(state);\r\n }\r\n case 'Patient': {\r\n return PatientRecord.fromJS(state);\r\n }\r\n case 'PositionReportAlert': {\r\n return PositionReportAlertRecord.fromJS(state);\r\n }\r\n case 'PositionReportArchive': {\r\n return PositionReportArchiveRecord.fromJS(state);\r\n }\r\n case 'PositionReport': {\r\n return PositionReportRecord.fromJS(state);\r\n }\r\n case 'QuestionChoice': {\r\n return QuestionChoiceRecord.fromJS(state);\r\n }\r\n case 'Question': {\r\n return QuestionRecord.fromJS(state);\r\n }\r\n case 'Questionnaire': {\r\n return QuestionnaireRecord.fromJS(state);\r\n }\r\n case 'QuestionnaireQuestionResponse': {\r\n return QuestionnaireQuestionResponseRecord.fromJS(state);\r\n }\r\n case 'QuestionnaireQuestionResponseNote': {\r\n return QuestionnaireQuestionResponseNoteRecord.fromJS(state);\r\n }\r\n case 'QuestionnaireResponse': {\r\n return QuestionnaireResponseRecord.fromJS(state);\r\n }\r\n case 'QuestionnaireSection': {\r\n return QuestionnaireSectionRecord.fromJS(state);\r\n }\r\n case 'QuestionnaireSectionQuestion': {\r\n return QuestionnaireSectionQuestionRecord.fromJS(state);\r\n }\r\n case 'ReceivingFacilityRequest': {\r\n return ReceivingFacilityRequestRecord.fromJS(state);\r\n }\r\n case 'RendezvousRequest': {\r\n return RendezvousRequestRecord.fromJS(state);\r\n }\r\n case 'Request': {\r\n return RequestRecord.fromJS(state);\r\n }\r\n case 'Requester': {\r\n return RequesterRecord.fromJS(state);\r\n }\r\n case 'RequesterReferralReason': {\r\n return RequesterReferralReasonRecord.fromJS(state);\r\n }\r\n case 'RequesterRole': {\r\n return RequesterRoleRecord.fromJS(state);\r\n }\r\n case 'RequestLocation': {\r\n return RequestLocationRecord.fromJS(state);\r\n }\r\n case 'RequestPatient': {\r\n return RequestPatientRecord.fromJS(state);\r\n }\r\n case 'SystemTimer': {\r\n return SystemTimerRecord.fromJS(state);\r\n }\r\n case 'Timeline': {\r\n return TimelineRecord.fromJS(state);\r\n }\r\n case 'TimelineItem': {\r\n return TimelineItemRecord.fromJS(state);\r\n }\r\n case 'Timestamp': {\r\n return TimestampRecord.fromJS(state);\r\n }\r\n case 'TimestampType': {\r\n return TimestampTypeRecord.fromJS(state);\r\n }\r\n case 'TrackedMessage': {\r\n return TrackedMessageRecord.fromJS(state);\r\n }\r\n case 'TransferReason': {\r\n return TransferReasonRecord.fromJS(state);\r\n }\r\n case 'TransportOffer': {\r\n return TransportOfferRecord.fromJS(state);\r\n }\r\n case 'TransportOfferOption': {\r\n return TransportOfferOptionRecord.fromJS(state);\r\n }\r\n case 'TransportReason': {\r\n return TransportReasonRecord.fromJS(state);\r\n }\r\n case 'Trip': {\r\n return TripRecord.fromJS(state);\r\n }\r\n case 'TripLeg': {\r\n return TripLegRecord.fromJS(state);\r\n }\r\n case 'TripPassenger': {\r\n return TripPassengerRecord.fromJS(state);\r\n }\r\n case 'UnitActivationRule': {\r\n return UnitActivationRuleRecord.fromJS(state);\r\n }\r\n case 'UnitEMSystemMapping': {\r\n return UnitEMSystemMappingRecord.fromJS(state);\r\n }\r\n case 'Unit': {\r\n return UnitRecord.fromJS(state);\r\n }\r\n case 'UnitNote': {\r\n return UnitNoteRecord.fromJS(state);\r\n }\r\n case 'UnitPosition': {\r\n return UnitPositionRecord.fromJS(state);\r\n }\r\n case 'UnitShift': {\r\n return UnitShiftRecord.fromJS(state);\r\n }\r\n case 'UnitStatusHistoryEntry': {\r\n return UnitStatusHistoryEntryRecord.fromJS(state);\r\n }\r\n case 'UnitSummary': {\r\n return UnitSummaryRecord.fromJS(state);\r\n }\r\n case 'VehicleDisposition': {\r\n return VehicleDispositionRecord.fromJS(state);\r\n }\r\n case 'VehicleSummary': {\r\n return VehicleSummaryRecord.fromJS(state);\r\n }\r\n case 'Waypoint': {\r\n return WaypointRecord.fromJS(state);\r\n }\r\n case 'WebOrderLog': {\r\n return WebOrderLogRecord.fromJS(state);\r\n }\r\n case 'AccessibleItem': {\r\n return AccessibleItemRecord.fromJS(state);\r\n }\r\n case 'Agency': {\r\n return AgencyRecord.fromJS(state);\r\n }\r\n case 'AgencyLocation': {\r\n return AgencyLocationRecord.fromJS(state);\r\n }\r\n case 'Airport': {\r\n return AirportRecord.fromJS(state);\r\n }\r\n case 'ArchiveLog': {\r\n return ArchiveLogRecord.fromJS(state);\r\n }\r\n case 'BaseControlZone': {\r\n return BaseControlZoneRecord.fromJS(state);\r\n }\r\n case 'Base': {\r\n return BaseRecord.fromJS(state);\r\n }\r\n case 'BaseMedicalControlContact': {\r\n return BaseMedicalControlContactRecord.fromJS(state);\r\n }\r\n case 'BaseMedicalControlContactState': {\r\n return BaseMedicalControlContactStateRecord.fromJS(state);\r\n }\r\n case 'Capability': {\r\n return CapabilityRecord.fromJS(state);\r\n }\r\n case 'CommunicationCenter': {\r\n return CommunicationCenterRecord.fromJS(state);\r\n }\r\n case 'CommunicationCenterTransportOfferOption': {\r\n return CommunicationCenterTransportOfferOptionRecord.fromJS(state);\r\n }\r\n case 'Company': {\r\n return CompanyRecord.fromJS(state);\r\n }\r\n case 'CompleteFlightInstance': {\r\n return CompleteFlightInstanceRecord.fromJS(state);\r\n }\r\n case 'ControlZone': {\r\n return ControlZoneRecord.fromJS(state);\r\n }\r\n case 'Department': {\r\n return DepartmentRecord.fromJS(state);\r\n }\r\n case 'EntityCapability': {\r\n return EntityCapabilityRecord.fromJS(state);\r\n }\r\n case 'ExternalReference': {\r\n return ExternalReferenceRecord.fromJS(state);\r\n }\r\n case 'Fbo': {\r\n return FboRecord.fromJS(state);\r\n }\r\n case 'FuelTank': {\r\n return FuelTankRecord.fromJS(state);\r\n }\r\n case 'Location': {\r\n return LocationRecord.fromJS(state);\r\n }\r\n case 'MedicalFacilityContact': {\r\n return MedicalFacilityContactRecord.fromJS(state);\r\n }\r\n case 'MedicalFacility': {\r\n return MedicalFacilityRecord.fromJS(state);\r\n }\r\n case 'MedicalFacilityPhysician': {\r\n return MedicalFacilityPhysicianRecord.fromJS(state);\r\n }\r\n case 'MedicalFacilityUnit': {\r\n return MedicalFacilityUnitRecord.fromJS(state);\r\n }\r\n case 'MedicalUnit': {\r\n return MedicalUnitRecord.fromJS(state);\r\n }\r\n case 'Person': {\r\n return PersonRecord.fromJS(state);\r\n }\r\n case 'Physician': {\r\n return PhysicianRecord.fromJS(state);\r\n }\r\n case 'ProgramBase': {\r\n return ProgramBaseRecord.fromJS(state);\r\n }\r\n case 'Program': {\r\n return ProgramRecord.fromJS(state);\r\n }\r\n case 'RamcoVehicleConfiguration': {\r\n return RamcoVehicleConfigurationRecord.fromJS(state);\r\n }\r\n case 'RegionBase': {\r\n return RegionBaseRecord.fromJS(state);\r\n }\r\n case 'Region': {\r\n return RegionRecord.fromJS(state);\r\n }\r\n case 'RegionGroup': {\r\n return RegionGroupRecord.fromJS(state);\r\n }\r\n case 'SpecialtyTeam': {\r\n return SpecialtyTeamRecord.fromJS(state);\r\n }\r\n case 'SpecialtyTeamMember': {\r\n return SpecialtyTeamMemberRecord.fromJS(state);\r\n }\r\n case 'SupportRequest': {\r\n return SupportRequestRecord.fromJS(state);\r\n }\r\n case 'Timezone': {\r\n return TimezoneRecord.fromJS(state);\r\n }\r\n case 'TransferCenter': {\r\n return TransferCenterRecord.fromJS(state);\r\n }\r\n case 'TrmUserAgency': {\r\n return TrmUserAgencyRecord.fromJS(state);\r\n }\r\n case 'TrmUser': {\r\n return TrmUserRecord.fromJS(state);\r\n }\r\n case 'TrmUserMedicalFacility': {\r\n return TrmUserMedicalFacilityRecord.fromJS(state);\r\n }\r\n case 'TrmUserProgram': {\r\n return TrmUserProgramRecord.fromJS(state);\r\n }\r\n case 'VehicleControlZone': {\r\n return VehicleControlZoneRecord.fromJS(state);\r\n }\r\n case 'Vehicle': {\r\n return VehicleRecord.fromJS(state);\r\n }\r\n case 'VehicleMaintenance': {\r\n return VehicleMaintenanceRecord.fromJS(state);\r\n }\r\n case 'VehicleMake': {\r\n return VehicleMakeRecord.fromJS(state);\r\n }\r\n case 'VehicleModel': {\r\n return VehicleModelRecord.fromJS(state);\r\n }\r\n case 'VehicleStateInspection': {\r\n return VehicleStateInspectionRecord.fromJS(state);\r\n }\r\n case 'ActiveCardUnitOffering': {\r\n return ActiveCardUnitOfferingRecord.fromJS(state);\r\n }\r\n case 'VehiclePositionSummary': {\r\n return VehiclePositionSummaryRecord.fromJS(state);\r\n }\r\n default:\r\n return undefined;\r\n }\r\n}\r\n\r\nexport function reviveUnsafe({\r\n state,\r\n type,\r\n}: {\r\n state: any;\r\n type: string;\r\n}): [TcsEntityRecord | undefined, Error[]] {\r\n switch (type) {\r\n case 'ActivationRule': {\r\n return ActivationRuleRecord.fromJSUnsafe(state);\r\n }\r\n case 'ActiveAlert': {\r\n return ActiveAlertRecord.fromJSUnsafe(state);\r\n }\r\n case 'ActiveTimeline': {\r\n return ActiveTimelineRecord.fromJSUnsafe(state);\r\n }\r\n case 'Alert': {\r\n return AlertRecord.fromJSUnsafe(state);\r\n }\r\n case 'ApplicationNotification': {\r\n return ApplicationNotificationRecord.fromJSUnsafe(state);\r\n }\r\n case 'AssignmentDelayedReason': {\r\n return AssignmentDelayedReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'CancellationCategory': {\r\n return CancellationCategoryRecord.fromJSUnsafe(state);\r\n }\r\n case 'CancellationReason': {\r\n return CancellationReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'CancellationSecondaryReason': {\r\n return CancellationSecondaryReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'Card': {\r\n return CardRecord.fromJSUnsafe(state);\r\n }\r\n case 'CardLink': {\r\n return CardLinkRecord.fromJSUnsafe(state);\r\n }\r\n case 'CardNoteArchive': {\r\n return CardNoteArchiveRecord.fromJSUnsafe(state);\r\n }\r\n case 'CardNote': {\r\n return CardNoteRecord.fromJSUnsafe(state);\r\n }\r\n case 'CardReOpenReason': {\r\n return CardReOpenReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'CardSummary': {\r\n return CardSummaryRecord.fromJSUnsafe(state);\r\n }\r\n case 'ConfigurationSetting': {\r\n return ConfigurationSettingRecord.fromJSUnsafe(state);\r\n }\r\n case 'DeclineCategory': {\r\n return DeclineCategoryRecord.fromJSUnsafe(state);\r\n }\r\n case 'DeclineReason': {\r\n return DeclineReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'DeclineSecondaryReason': {\r\n return DeclineSecondaryReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'DiversionReason': {\r\n return DiversionReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'EscortRequest': {\r\n return EscortRequestRecord.fromJSUnsafe(state);\r\n }\r\n case 'EstimatedDuration': {\r\n return EstimatedDurationRecord.fromJSUnsafe(state);\r\n }\r\n case 'Eta': {\r\n return EtaRecord.fromJSUnsafe(state);\r\n }\r\n case 'ExternalAction': {\r\n return ExternalActionRecord.fromJSUnsafe(state);\r\n }\r\n case 'ExternalActionType': {\r\n return ExternalActionTypeRecord.fromJSUnsafe(state);\r\n }\r\n case 'ExternalSystemUnit': {\r\n return ExternalSystemUnitRecord.fromJSUnsafe(state);\r\n }\r\n case 'FacilityNonAcceptanceReason': {\r\n return FacilityNonAcceptanceReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'FirewallRule': {\r\n return FirewallRuleRecord.fromJSUnsafe(state);\r\n }\r\n case 'FlightFollowingReport': {\r\n return FlightFollowingReportRecord.fromJSUnsafe(state);\r\n }\r\n case 'LandingZoneOutOfServiceReason': {\r\n return LandingZoneOutOfServiceReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'LocationHazardAttachment': {\r\n return LocationHazardAttachmentRecord.fromJSUnsafe(state);\r\n }\r\n case 'LocationHazard': {\r\n return LocationHazardRecord.fromJSUnsafe(state);\r\n }\r\n case 'ManifestEntry': {\r\n return ManifestEntryRecord.fromJSUnsafe(state);\r\n }\r\n case 'MedicalControlContactLogEntry': {\r\n return MedicalControlContactLogEntryRecord.fromJSUnsafe(state);\r\n }\r\n case 'MessageStatusUpdate': {\r\n return MessageStatusUpdateRecord.fromJSUnsafe(state);\r\n }\r\n case 'NextDueType': {\r\n return NextDueTypeRecord.fromJSUnsafe(state);\r\n }\r\n case 'NonReferralReason': {\r\n return NonReferralReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'Notification': {\r\n return NotificationRecord.fromJSUnsafe(state);\r\n }\r\n case 'NotificationGroup': {\r\n return NotificationGroupRecord.fromJSUnsafe(state);\r\n }\r\n case 'NotificationGroupMember': {\r\n return NotificationGroupMemberRecord.fromJSUnsafe(state);\r\n }\r\n case 'NotificationRecipient': {\r\n return NotificationRecipientRecord.fromJSUnsafe(state);\r\n }\r\n case 'NotificationSubscription': {\r\n return NotificationSubscriptionRecord.fromJSUnsafe(state);\r\n }\r\n case 'NotificationTemplate': {\r\n return NotificationTemplateRecord.fromJSUnsafe(state);\r\n }\r\n case 'OemActivity': {\r\n return OemActivityRecord.fromJSUnsafe(state);\r\n }\r\n case 'OemAsset': {\r\n return OemAssetRecord.fromJSUnsafe(state);\r\n }\r\n case 'OemPlanChangeRequest': {\r\n return OemPlanChangeRequestRecord.fromJSUnsafe(state);\r\n }\r\n case 'OemPlan': {\r\n return OemPlanRecord.fromJSUnsafe(state);\r\n }\r\n case 'OfferAlgorithm': {\r\n return OfferAlgorithmRecord.fromJSUnsafe(state);\r\n }\r\n case 'Operation': {\r\n return OperationRecord.fromJSUnsafe(state);\r\n }\r\n case 'OutOfServiceEvent': {\r\n return OutOfServiceEventRecord.fromJSUnsafe(state);\r\n }\r\n case 'OutOfServiceEventNote': {\r\n return OutOfServiceEventNoteRecord.fromJSUnsafe(state);\r\n }\r\n case 'OutOfServiceReason': {\r\n return OutOfServiceReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'OutOfServiceSecondaryReason': {\r\n return OutOfServiceSecondaryReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'PassdownLogAcknowledgement': {\r\n return PassdownLogAcknowledgementRecord.fromJSUnsafe(state);\r\n }\r\n case 'PassdownLog': {\r\n return PassdownLogRecord.fromJSUnsafe(state);\r\n }\r\n case 'Patient': {\r\n return PatientRecord.fromJSUnsafe(state);\r\n }\r\n case 'PositionReportAlert': {\r\n return PositionReportAlertRecord.fromJSUnsafe(state);\r\n }\r\n case 'PositionReportArchive': {\r\n return PositionReportArchiveRecord.fromJSUnsafe(state);\r\n }\r\n case 'PositionReport': {\r\n return PositionReportRecord.fromJSUnsafe(state);\r\n }\r\n case 'QuestionChoice': {\r\n return QuestionChoiceRecord.fromJSUnsafe(state);\r\n }\r\n case 'Question': {\r\n return QuestionRecord.fromJSUnsafe(state);\r\n }\r\n case 'Questionnaire': {\r\n return QuestionnaireRecord.fromJSUnsafe(state);\r\n }\r\n case 'QuestionnaireQuestionResponse': {\r\n return QuestionnaireQuestionResponseRecord.fromJSUnsafe(state);\r\n }\r\n case 'QuestionnaireQuestionResponseNote': {\r\n return QuestionnaireQuestionResponseNoteRecord.fromJSUnsafe(state);\r\n }\r\n case 'QuestionnaireResponse': {\r\n return QuestionnaireResponseRecord.fromJSUnsafe(state);\r\n }\r\n case 'QuestionnaireSection': {\r\n return QuestionnaireSectionRecord.fromJSUnsafe(state);\r\n }\r\n case 'QuestionnaireSectionQuestion': {\r\n return QuestionnaireSectionQuestionRecord.fromJSUnsafe(state);\r\n }\r\n case 'ReceivingFacilityRequest': {\r\n return ReceivingFacilityRequestRecord.fromJSUnsafe(state);\r\n }\r\n case 'RendezvousRequest': {\r\n return RendezvousRequestRecord.fromJSUnsafe(state);\r\n }\r\n case 'Request': {\r\n return RequestRecord.fromJSUnsafe(state);\r\n }\r\n case 'Requester': {\r\n return RequesterRecord.fromJSUnsafe(state);\r\n }\r\n case 'RequesterReferralReason': {\r\n return RequesterReferralReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'RequesterRole': {\r\n return RequesterRoleRecord.fromJSUnsafe(state);\r\n }\r\n case 'RequestLocation': {\r\n return RequestLocationRecord.fromJSUnsafe(state);\r\n }\r\n case 'RequestPatient': {\r\n return RequestPatientRecord.fromJSUnsafe(state);\r\n }\r\n case 'SystemTimer': {\r\n return SystemTimerRecord.fromJSUnsafe(state);\r\n }\r\n case 'Timeline': {\r\n return TimelineRecord.fromJSUnsafe(state);\r\n }\r\n case 'TimelineItem': {\r\n return TimelineItemRecord.fromJSUnsafe(state);\r\n }\r\n case 'Timestamp': {\r\n return TimestampRecord.fromJSUnsafe(state);\r\n }\r\n case 'TimestampType': {\r\n return TimestampTypeRecord.fromJSUnsafe(state);\r\n }\r\n case 'TrackedMessage': {\r\n return TrackedMessageRecord.fromJSUnsafe(state);\r\n }\r\n case 'TransferReason': {\r\n return TransferReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'TransportOffer': {\r\n return TransportOfferRecord.fromJSUnsafe(state);\r\n }\r\n case 'TransportOfferOption': {\r\n return TransportOfferOptionRecord.fromJSUnsafe(state);\r\n }\r\n case 'TransportReason': {\r\n return TransportReasonRecord.fromJSUnsafe(state);\r\n }\r\n case 'Trip': {\r\n return TripRecord.fromJSUnsafe(state);\r\n }\r\n case 'TripLeg': {\r\n return TripLegRecord.fromJSUnsafe(state);\r\n }\r\n case 'TripPassenger': {\r\n return TripPassengerRecord.fromJSUnsafe(state);\r\n }\r\n case 'UnitActivationRule': {\r\n return UnitActivationRuleRecord.fromJSUnsafe(state);\r\n }\r\n case 'UnitEMSystemMapping': {\r\n return UnitEMSystemMappingRecord.fromJSUnsafe(state);\r\n }\r\n case 'Unit': {\r\n return UnitRecord.fromJSUnsafe(state);\r\n }\r\n case 'UnitNote': {\r\n return UnitNoteRecord.fromJSUnsafe(state);\r\n }\r\n case 'UnitPosition': {\r\n return UnitPositionRecord.fromJSUnsafe(state);\r\n }\r\n case 'UnitShift': {\r\n return UnitShiftRecord.fromJSUnsafe(state);\r\n }\r\n case 'UnitStatusHistoryEntry': {\r\n return UnitStatusHistoryEntryRecord.fromJSUnsafe(state);\r\n }\r\n case 'UnitSummary': {\r\n return UnitSummaryRecord.fromJSUnsafe(state);\r\n }\r\n case 'VehicleDisposition': {\r\n return VehicleDispositionRecord.fromJSUnsafe(state);\r\n }\r\n case 'VehicleSummary': {\r\n return VehicleSummaryRecord.fromJSUnsafe(state);\r\n }\r\n case 'Waypoint': {\r\n return WaypointRecord.fromJSUnsafe(state);\r\n }\r\n case 'WebOrderLog': {\r\n return WebOrderLogRecord.fromJSUnsafe(state);\r\n }\r\n case 'AccessibleItem': {\r\n return AccessibleItemRecord.fromJSUnsafe(state);\r\n }\r\n case 'Agency': {\r\n return AgencyRecord.fromJSUnsafe(state);\r\n }\r\n case 'AgencyLocation': {\r\n return AgencyLocationRecord.fromJSUnsafe(state);\r\n }\r\n case 'Airport': {\r\n return AirportRecord.fromJSUnsafe(state);\r\n }\r\n case 'ArchiveLog': {\r\n return ArchiveLogRecord.fromJSUnsafe(state);\r\n }\r\n case 'BaseControlZone': {\r\n return BaseControlZoneRecord.fromJSUnsafe(state);\r\n }\r\n case 'Base': {\r\n return BaseRecord.fromJSUnsafe(state);\r\n }\r\n case 'BaseMedicalControlContact': {\r\n return BaseMedicalControlContactRecord.fromJSUnsafe(state);\r\n }\r\n case 'BaseMedicalControlContactState': {\r\n return BaseMedicalControlContactStateRecord.fromJSUnsafe(state);\r\n }\r\n case 'Capability': {\r\n return CapabilityRecord.fromJSUnsafe(state);\r\n }\r\n case 'CommunicationCenter': {\r\n return CommunicationCenterRecord.fromJSUnsafe(state);\r\n }\r\n case 'CommunicationCenterTransportOfferOption': {\r\n return CommunicationCenterTransportOfferOptionRecord.fromJSUnsafe(state);\r\n }\r\n case 'Company': {\r\n return CompanyRecord.fromJSUnsafe(state);\r\n }\r\n case 'CompleteFlightInstance': {\r\n return CompleteFlightInstanceRecord.fromJSUnsafe(state);\r\n }\r\n case 'ControlZone': {\r\n return ControlZoneRecord.fromJSUnsafe(state);\r\n }\r\n case 'Department': {\r\n return DepartmentRecord.fromJSUnsafe(state);\r\n }\r\n case 'EntityCapability': {\r\n return EntityCapabilityRecord.fromJSUnsafe(state);\r\n }\r\n case 'ExternalReference': {\r\n return ExternalReferenceRecord.fromJSUnsafe(state);\r\n }\r\n case 'Fbo': {\r\n return FboRecord.fromJSUnsafe(state);\r\n }\r\n case 'FuelTank': {\r\n return FuelTankRecord.fromJSUnsafe(state);\r\n }\r\n case 'Location': {\r\n return LocationRecord.fromJSUnsafe(state);\r\n }\r\n case 'MedicalFacilityContact': {\r\n return MedicalFacilityContactRecord.fromJSUnsafe(state);\r\n }\r\n case 'MedicalFacility': {\r\n return MedicalFacilityRecord.fromJSUnsafe(state);\r\n }\r\n case 'MedicalFacilityPhysician': {\r\n return MedicalFacilityPhysicianRecord.fromJSUnsafe(state);\r\n }\r\n case 'MedicalFacilityUnit': {\r\n return MedicalFacilityUnitRecord.fromJSUnsafe(state);\r\n }\r\n case 'MedicalUnit': {\r\n return MedicalUnitRecord.fromJSUnsafe(state);\r\n }\r\n case 'Person': {\r\n return PersonRecord.fromJSUnsafe(state);\r\n }\r\n case 'Physician': {\r\n return PhysicianRecord.fromJSUnsafe(state);\r\n }\r\n case 'ProgramBase': {\r\n return ProgramBaseRecord.fromJSUnsafe(state);\r\n }\r\n case 'Program': {\r\n return ProgramRecord.fromJSUnsafe(state);\r\n }\r\n case 'RamcoVehicleConfiguration': {\r\n return RamcoVehicleConfigurationRecord.fromJSUnsafe(state);\r\n }\r\n case 'RegionBase': {\r\n return RegionBaseRecord.fromJSUnsafe(state);\r\n }\r\n case 'Region': {\r\n return RegionRecord.fromJSUnsafe(state);\r\n }\r\n case 'RegionGroup': {\r\n return RegionGroupRecord.fromJSUnsafe(state);\r\n }\r\n case 'SpecialtyTeam': {\r\n return SpecialtyTeamRecord.fromJSUnsafe(state);\r\n }\r\n case 'SpecialtyTeamMember': {\r\n return SpecialtyTeamMemberRecord.fromJSUnsafe(state);\r\n }\r\n case 'SupportRequest': {\r\n return SupportRequestRecord.fromJSUnsafe(state);\r\n }\r\n case 'Timezone': {\r\n return TimezoneRecord.fromJSUnsafe(state);\r\n }\r\n case 'TransferCenter': {\r\n return TransferCenterRecord.fromJSUnsafe(state);\r\n }\r\n case 'TrmUserAgency': {\r\n return TrmUserAgencyRecord.fromJSUnsafe(state);\r\n }\r\n case 'TrmUser': {\r\n return TrmUserRecord.fromJSUnsafe(state);\r\n }\r\n case 'TrmUserMedicalFacility': {\r\n return TrmUserMedicalFacilityRecord.fromJSUnsafe(state);\r\n }\r\n case 'TrmUserProgram': {\r\n return TrmUserProgramRecord.fromJSUnsafe(state);\r\n }\r\n case 'VehicleControlZone': {\r\n return VehicleControlZoneRecord.fromJSUnsafe(state);\r\n }\r\n case 'Vehicle': {\r\n return VehicleRecord.fromJSUnsafe(state);\r\n }\r\n case 'VehicleMaintenance': {\r\n return VehicleMaintenanceRecord.fromJSUnsafe(state);\r\n }\r\n case 'VehicleMake': {\r\n return VehicleMakeRecord.fromJSUnsafe(state);\r\n }\r\n case 'VehicleModel': {\r\n return VehicleModelRecord.fromJSUnsafe(state);\r\n }\r\n case 'VehicleStateInspection': {\r\n return VehicleStateInspectionRecord.fromJSUnsafe(state);\r\n }\r\n case 'ActiveCardUnitOffering': {\r\n return ActiveCardUnitOfferingRecord.fromJSUnsafe(state);\r\n }\r\n case 'VehiclePositionSummary': {\r\n return VehiclePositionSummaryRecord.fromJSUnsafe(state);\r\n }\r\n default:\r\n return [undefined, [new Error(`Unable to find revive record of type '${type}'`)]];\r\n }\r\n}\r\n","import { cloneDeep } from 'lodash-es';\r\nimport { TcsEntityType } from 'src/graphql/generated/graphql.generated';\r\n\r\ninterface Entity {\r\n id: string;\r\n __typename: string;\r\n}\r\n\r\ntype EntityRecord = Record & Entity;\r\n\r\nfunction isObject(obj: any): obj is object {\r\n const type = typeof obj;\r\n return obj != null && (type === 'function' || type === 'object');\r\n}\r\n\r\nfunction isEntity(val: any): val is Entity {\r\n if (val == null) {\r\n return false;\r\n }\r\n\r\n const idVal = val.id;\r\n if (idVal == null || typeof idVal !== 'string' || idVal.trim().length === 0) {\r\n return false;\r\n }\r\n\r\n const typenameVal = val.__typename;\r\n if (typenameVal == null || typeof typenameVal !== 'string' || typenameVal.trim().length === 0) {\r\n return false;\r\n }\r\n\r\n return typenameVal in TcsEntityType;\r\n}\r\n\r\nfunction _flattenEntities(obj: Record): EntityRecord[] {\r\n const result: EntityRecord[] = [];\r\n let selfEntity = false;\r\n if (isEntity(obj)) {\r\n result.push(obj);\r\n selfEntity = true;\r\n }\r\n\r\n Object.keys(obj).reduce((flattened, key) => {\r\n const propVal = obj[key];\r\n if (propVal instanceof Array) {\r\n propVal.forEach((item) => {\r\n const flattenedItem = _flattenEntities(item);\r\n flattened.push(...flattenedItem);\r\n });\r\n if (isEntity(propVal[0])) {\r\n delete obj[key];\r\n }\r\n } else if (isObject(propVal)) {\r\n const innerFlat = _flattenEntities(propVal);\r\n flattened.push(...innerFlat);\r\n if (isEntity(propVal)) {\r\n delete obj[key];\r\n }\r\n }\r\n return flattened;\r\n }, result);\r\n return result;\r\n}\r\nexport function flattenEntities(obj: Record): EntityRecord[] {\r\n if (obj == null) {\r\n throw new Error('flattenEntities: parameter cannot be null');\r\n }\r\n return _flattenEntities(cloneDeep(obj));\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ApolloQueryResult, OperationVariables } from '@apollo/client/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { Query } from 'apollo-angular';\r\nimport { QueryOptionsAlone } from 'apollo-angular/types';\r\nimport { print } from 'graphql';\r\nimport { Observable } from 'rxjs';\r\nimport { filter, take, tap } from 'rxjs/operators';\r\nimport { Logger } from 'src/app/shared/tcs-logging/logger';\r\nimport { TcsEntity } from 'src/graphql/generated/graphql.generated';\r\nimport { createSafeProps } from 'src/lib/tcs-app-insights/app-insights-util';\r\nimport {\r\n EntitiesReceived,\r\n EntitySnapshot,\r\n EntitySnapshotDto,\r\n} from 'src/util/entity-store/entity-store.actions';\r\nimport { AppState } from './appstate';\r\nimport { revive, reviveUnsafe } from './generated/record-reviver.generated';\r\nimport { flattenEntities } from './store-helpers';\r\nimport { TcsEntityRecord } from './generated/client-sync.generated';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class StoreService {\r\n constructor(public readonly store: Store, private _log: Logger) {}\r\n\r\n public upsertEntitiesFromQuery({\r\n query,\r\n variables,\r\n queryOptions,\r\n isCancellable,\r\n }: {\r\n query: Query;\r\n variables?: TVariables;\r\n queryOptions?: QueryOptionsAlone;\r\n isCancellable?: boolean;\r\n }): Observable> {\r\n return this._upsertEntitiesFromGraphQL(query, variables, queryOptions, isCancellable);\r\n }\r\n\r\n public upsertEntitiesFromGraphQL(\r\n query: Query,\r\n variables?: TVariables,\r\n queryOptions?: QueryOptionsAlone,\r\n ): Observable> {\r\n return this._upsertEntitiesFromGraphQL(query, variables, queryOptions);\r\n }\r\n\r\n public _upsertEntitiesFromGraphQL(\r\n query: Query,\r\n variables?: TVariables,\r\n queryOptions?: QueryOptionsAlone,\r\n isCancellable?: boolean,\r\n ): Observable> {\r\n const logPrefix = `StoreService.upsertEntitiesFromGraphQL`;\r\n return (\r\n isCancellable ?? false\r\n ? query.watch(variables, queryOptions).valueChanges\r\n : query.fetch(variables, queryOptions)\r\n ).pipe(\r\n filter((r) => !r.loading),\r\n tap((result) => {\r\n try {\r\n if (result.data == null) {\r\n const error = result.errors != null ? result.errors[0].message : 'unknown';\r\n throw new Error(\r\n `${logPrefix}: did not reseive any data - error: ` +\r\n error +\r\n ' ' +\r\n query +\r\n ' var: ' +\r\n variables,\r\n );\r\n }\r\n\r\n this._upsertNestedJs(result.data);\r\n } catch (err: any) {\r\n // eslint-disable-next-line no-console\r\n console.error(err);\r\n const queryStr = print(query.document);\r\n this._log.error(\r\n `${logPrefix}: Error upserting data from query result: ${err.message}`,\r\n createSafeProps({\r\n errors: result.errors,\r\n query: queryStr,\r\n }),\r\n );\r\n }\r\n }),\r\n take(1),\r\n );\r\n }\r\n\r\n public upsertFromPubNub(entities: EntitySnapshotDto[]) {\r\n const logPrefix = `StoreService.upsertFromPubNub`;\r\n const snapshots: EntitySnapshot[] = [];\r\n let success = true;\r\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\r\n for (let i = 0; i < entities.length; i++) {\r\n const snapshot = entities[i];\r\n try {\r\n if (snapshot.source === 'Removed') {\r\n snapshots.push({\r\n key: snapshot.key,\r\n source: snapshot.source,\r\n type: snapshot.type,\r\n });\r\n } else {\r\n const [record, errors] = reviveUnsafe({\r\n type: snapshot.type,\r\n state: snapshot.state,\r\n });\r\n if (record != null) {\r\n snapshots.push({\r\n key: record.id,\r\n source: 'Fetched',\r\n state: record,\r\n type: snapshot.type,\r\n });\r\n }\r\n if (errors.length > 0) {\r\n success = false;\r\n errors.forEach((err) => {\r\n this._log.error(\r\n `${logPrefix}: Error deserializing record from PubNub for ${snapshot.type}Record: ${err.message}`,\r\n );\r\n });\r\n }\r\n }\r\n } catch (err: any) {\r\n success = false;\r\n this._log.error(\r\n `${logPrefix}: Error serializing data from PubNub to ${snapshot.type}Record: ${err.message} (id: ${snapshot.key})`,\r\n createSafeProps({ state: snapshot.state }),\r\n );\r\n }\r\n }\r\n\r\n this.store.dispatch(new EntitiesReceived(snapshots));\r\n if (!success) {\r\n throw new Error(`${logPrefix}: Error serializing data to immutable records from PubNub`);\r\n }\r\n }\r\n\r\n public upsertEntities(entities: TcsEntity[]): boolean {\r\n const logPrefix = `StoreService.upsertEntities`;\r\n const snapshots: EntitySnapshot[] = [];\r\n let success = true;\r\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\r\n for (let i = 0; i < entities.length; i++) {\r\n const entityJs = entities[i];\r\n try {\r\n const record = revive({\r\n type: entityJs.__typename,\r\n state: entityJs,\r\n });\r\n if (record == null) {\r\n throw new Error(`${logPrefix}: unable to revive record of type '${entityJs.__typename}'`);\r\n }\r\n snapshots.push({\r\n key: record.id,\r\n source: 'Fetched',\r\n state: record,\r\n type: entityJs.__typename,\r\n });\r\n } catch (err: any) {\r\n success = false;\r\n this._log.error(\r\n `${logPrefix}: Error serializing data to ${entityJs.__typename}Record: ${err.message} (id: ${entityJs.id})`,\r\n createSafeProps({ state: entityJs }),\r\n );\r\n }\r\n }\r\n this.store.dispatch(new EntitiesReceived(snapshots));\r\n if (!success) {\r\n throw new Error('Error serializing data to immutable record');\r\n }\r\n return success;\r\n }\r\n\r\n public upsertEntityRecords(entityRecords: TcsEntityRecord[], typeName: string): boolean {\r\n const logPrefix = `StoreService.upsertEntityRecords`;\r\n const snapshots: EntitySnapshot[] = [];\r\n let success = true;\r\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\r\n for (let i = 0; i < entityRecords.length; i++) {\r\n const entityRecord = entityRecords[i];\r\n try {\r\n const record = revive({\r\n type: typeName,\r\n state: entityRecord,\r\n });\r\n if (record == null) {\r\n throw new Error(`${logPrefix}: unable to revive record of type '${typeName}'`);\r\n }\r\n snapshots.push({\r\n key: record.id,\r\n source: 'Fetched',\r\n state: record,\r\n type: typeName,\r\n });\r\n } catch (err: any) {\r\n success = false;\r\n this._log.error(\r\n `${logPrefix}: Error serializing data to ${typeName}Record: ${err.message} (id: ${entityRecord.id})`,\r\n createSafeProps({ state: entityRecord }),\r\n );\r\n }\r\n }\r\n this.store.dispatch(new EntitiesReceived(snapshots));\r\n if (!success) {\r\n throw new Error('Error serializing data to immutable record');\r\n }\r\n return success;\r\n }\r\n\r\n private _upsertNestedJs(data: Record) {\r\n const flattened: TcsEntity[] = flattenEntities(data) as TcsEntity[];\r\n return this.upsertEntities(flattened);\r\n }\r\n}\r\n","import { Map, Record } from 'immutable';\r\n\r\nexport enum EntityStatus {\r\n None = 'None',\r\n Requested = 'Requested',\r\n Loaded = 'Loaded',\r\n Fetching = 'Fetching',\r\n}\r\n\r\nexport class EntityMeta extends Record({\r\n status: EntityStatus.None,\r\n dateLoaded: null as Date | null,\r\n dateFetched: null as Date | null,\r\n}) {\r\n public status: EntityStatus;\r\n public dateLoaded: Date | null;\r\n public dateFetched: Date | null;\r\n\r\n public markAsLoaded() {\r\n return this.withMutations((s) => {\r\n s.status = EntityStatus.Loaded;\r\n s.dateLoaded = new Date();\r\n });\r\n }\r\n\r\n public markAsFetching() {\r\n return this.withMutations((s) => {\r\n s.status = EntityStatus.Fetching;\r\n s.dateFetched = new Date();\r\n });\r\n }\r\n\r\n public markAsRequested() {\r\n return this.withMutations((s) => {\r\n s.status = EntityStatus.Requested;\r\n s.dateFetched = new Date();\r\n });\r\n }\r\n}\r\n\r\nexport class EntityStore extends Record({\r\n entities: Map(),\r\n meta: Map(),\r\n}) {\r\n public entities: Map;\r\n public meta: Map;\r\n}\r\n","import { Query } from 'apollo-angular';\r\nimport { Map, Seq } from 'immutable';\r\nimport { uniq } from 'lodash-es';\r\nimport { Observable, of, throwError } from 'rxjs';\r\nimport { catchError, distinctUntilChanged, filter, map, switchMap, tap } from 'rxjs/operators';\r\nimport { TcsEntity } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { shareReplaySafe } from 'src/util/rxjs/operators/share-replay-safe';\r\nimport { cacheFactory, TimedCache } from 'src/util/cache';\r\nimport { DefaultContext } from '@apollo/client/core';\r\nimport { StoreService } from './store.service';\r\n\r\nexport type EntityFetchPolicy = 'cache-or-network' | 'network-then-cache';\r\n\r\nexport interface QueryOptions {\r\n fetchPolicy?: EntityFetchPolicy;\r\n context?: DefaultContext & { useSecondarySource?: boolean };\r\n}\r\n\r\nfunction getFetchPolicyOrDefault(\r\n options: QueryOptions | undefined,\r\n defaultPolicy: EntityFetchPolicy,\r\n): EntityFetchPolicy {\r\n if (options != null && options.fetchPolicy != null) {\r\n return options.fetchPolicy;\r\n }\r\n return defaultPolicy;\r\n}\r\n\r\nexport abstract class EntityFetchService {\r\n private _networkCache: TimedCache | undefined>;\r\n\r\n constructor() {\r\n this._networkCache = cacheFactory.cache | undefined>(60_000 * 15);\r\n }\r\n\r\n public getByIds(ids: string[], options?: QueryOptions): Observable>> {\r\n ids = uniq(ids);\r\n const fetchPolicy = getFetchPolicyOrDefault(options, 'cache-or-network');\r\n if (ids.length === 0) {\r\n return of(Seq.Indexed>());\r\n }\r\n if (fetchPolicy === 'network-then-cache') {\r\n return this._getManyFromNetwork(ids, options).pipe(\r\n switchMap(() =>\r\n this._getManyFromCache(ids).pipe(\r\n map((d) =>\r\n d\r\n .valueSeq()\r\n .filter((v) => v != null)\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n .map((v) => v!),\r\n ),\r\n ),\r\n ),\r\n );\r\n }\r\n\r\n return this._getManyFromCache(ids).pipe(\r\n switchMap((fromCache) => {\r\n const missingIds = fromCache\r\n .filter((c) => c == null)\r\n .keySeq()\r\n .toArray();\r\n\r\n if (missingIds.length === 0) {\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n const cacheResult = fromCache.valueSeq().map((e) => e!);\r\n return of(cacheResult);\r\n }\r\n\r\n return this._getManyFromNetwork(missingIds, options).pipe(\r\n shareReplaySafe(),\r\n map((fromNetwork) => {\r\n // merge with cache\r\n const merged = fromCache\r\n .mapEntries(([id, cached]) => {\r\n const cacheOrNetwork =\r\n cached != null ? cached : fromNetwork.find((nr) => nr.id === id);\r\n return [id, cacheOrNetwork];\r\n })\r\n .filter((v) => v != null)\r\n .valueSeq()\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n .map((e) => e!);\r\n return merged;\r\n }),\r\n );\r\n }),\r\n );\r\n }\r\n\r\n public getById(id: string, options?: QueryOptions): Observable {\r\n const fetchPolicy = getFetchPolicyOrDefault(options, 'cache-or-network');\r\n if (fetchPolicy === 'network-then-cache') {\r\n return this._getFromNetworkCached(id, options).pipe(\r\n switchMap(() => this._getFromCache(id)),\r\n distinctUntilChanged(),\r\n );\r\n }\r\n return this._getFromCache(id).pipe(\r\n distinctUntilChanged(),\r\n switchMap((cached) =>\r\n cached != null ? of(cached) : this._getFromNetworkCached(id, options),\r\n ),\r\n );\r\n }\r\n\r\n private _getFromNetworkCached(\r\n id: string,\r\n queryOptions?: QueryOptions,\r\n ): Observable {\r\n let networkResult = this._networkCache.get(id);\r\n if (networkResult != null) {\r\n return networkResult;\r\n }\r\n networkResult = this._getFromNetwork(id, queryOptions).pipe(\r\n catchError((err) => {\r\n this._networkCache.delete(id);\r\n return throwError(err);\r\n }),\r\n tap(() => {\r\n this._networkCache.delete(id);\r\n }),\r\n shareReplaySafe(),\r\n );\r\n this._networkCache.set(id, networkResult);\r\n return networkResult;\r\n }\r\n\r\n protected abstract _getManyFromNetwork(\r\n ids: string[],\r\n queryOptions?: QueryOptions,\r\n ): Observable;\r\n protected abstract _getFromNetwork(\r\n id: string,\r\n queryOptions?: QueryOptions,\r\n ): Observable;\r\n protected abstract _getFromCache(id: string): Observable;\r\n protected abstract _getManyFromCache(ids: string[]): Observable>;\r\n}\r\n\r\nexport abstract class ClientSyncFetchService<\r\n T extends { id: string },\r\n> extends EntityFetchService {\r\n constructor(\r\n private readonly _getByIdQuery: Query,\r\n private readonly _getByIdsQuery: Query,\r\n private readonly _store: StoreService,\r\n private readonly _selectByIdFactory: (id: string) => (state: AppState) => T | undefined,\r\n private readonly _selectManyFactory: (\r\n ids: string[],\r\n ) => (state: AppState) => Map,\r\n private readonly _recordFactory: (json: any) => T,\r\n ) {\r\n super();\r\n }\r\n\r\n protected _getFromNetwork(id: string, queryOptions?: QueryOptions): Observable {\r\n return this._getByIdQuery.fetch({ id }, { ...queryOptions, fetchPolicy: 'no-cache' }).pipe(\r\n filter((r) => !r.loading),\r\n map((r) => {\r\n const fromNetwork = Object.values(r.data)[0].byId;\r\n if (fromNetwork != null) {\r\n this._updateCache([fromNetwork]);\r\n const record = this._recordFactory(fromNetwork);\r\n return record;\r\n }\r\n return undefined;\r\n }),\r\n distinctUntilChanged(),\r\n );\r\n }\r\n\r\n public getMany(\r\n {\r\n cacheSelector,\r\n getIdsFallback,\r\n }: {\r\n cacheSelector: (state: AppState) => Seq.Indexed;\r\n getIdsFallback: Observable;\r\n },\r\n extras: { source?: string } = {},\r\n ): Observable> {\r\n return this._store.store.select(cacheSelector).pipe(\r\n switchMap((entities) => {\r\n if (entities.count() === 0) {\r\n return getIdsFallback.pipe(\r\n switchMap((ids) => {\r\n return this.getByIds(ids).pipe(\r\n map((r) => {\r\n return r;\r\n }),\r\n );\r\n }),\r\n );\r\n }\r\n return of(entities);\r\n }),\r\n );\r\n }\r\n\r\n private _updateCache(networkResults: TcsEntity[]) {\r\n this._store.upsertEntities(networkResults);\r\n }\r\n\r\n protected _getManyFromNetwork(ids: string[], queryOptions?: QueryOptions): Observable {\r\n ids = uniq(ids);\r\n return this._getByIdsQuery.fetch({ ids }, { ...queryOptions, fetchPolicy: 'no-cache' }).pipe(\r\n filter((r) => !r.loading),\r\n map((r) => {\r\n const networkResults: TcsEntity[] | undefined = Object.values(r.data)[0].byIds;\r\n if (networkResults != null) {\r\n this._updateCache(networkResults);\r\n const records = networkResults.map((nr: any) => this._recordFactory(nr));\r\n return records;\r\n }\r\n return [];\r\n }),\r\n );\r\n }\r\n\r\n protected _getFromCache(id: string): Observable {\r\n return this._store.store.select(this._selectByIdFactory(id));\r\n }\r\n\r\n protected _getManyFromCache(ids: string[]): Observable> {\r\n ids = uniq(ids);\r\n return this._store.store.select(this._selectManyFactory(ids));\r\n }\r\n}\r\n","// Generated code: do not modify this file as it will be overwritten\r\n// Template: ClientSync.cst\r\n\r\n/* eslint-disable import/order */\r\nimport { EntityStore } from 'src/util/entity-store/entity-store.models';\r\nimport { Record } from 'immutable';\r\n\r\nimport {\r\n ActivationRuleRecord,\r\n selectActivationRuleById,\r\n selectActivationRuleEntitiesByIds,\r\n} from './activation-rule-record.generated';\r\nimport {\r\n ActiveAlertRecord,\r\n selectActiveAlertById,\r\n selectActiveAlertEntitiesByIds,\r\n} from './active-alert-record.generated';\r\nimport {\r\n ActiveTimelineRecord,\r\n selectActiveTimelineById,\r\n selectActiveTimelineEntitiesByIds,\r\n} from './active-timeline-record.generated';\r\nimport { AlertRecord, selectAlertById, selectAlertEntitiesByIds } from './alert-record.generated';\r\nimport {\r\n ApplicationNotificationRecord,\r\n selectApplicationNotificationById,\r\n selectApplicationNotificationEntitiesByIds,\r\n} from './application-notification-record.generated';\r\nimport {\r\n AssignmentDelayedReasonRecord,\r\n selectAssignmentDelayedReasonById,\r\n selectAssignmentDelayedReasonEntitiesByIds,\r\n} from './assignment-delayed-reason-record.generated';\r\nimport {\r\n CancellationCategoryRecord,\r\n selectCancellationCategoryById,\r\n selectCancellationCategoryEntitiesByIds,\r\n} from './cancellation-category-record.generated';\r\nimport {\r\n CancellationReasonRecord,\r\n selectCancellationReasonById,\r\n selectCancellationReasonEntitiesByIds,\r\n} from './cancellation-reason-record.generated';\r\nimport {\r\n CancellationSecondaryReasonRecord,\r\n selectCancellationSecondaryReasonById,\r\n selectCancellationSecondaryReasonEntitiesByIds,\r\n} from './cancellation-secondary-reason-record.generated';\r\nimport { CardRecord, selectCardById, selectCardEntitiesByIds } from './card-record.generated';\r\nimport {\r\n CardLinkRecord,\r\n selectCardLinkById,\r\n selectCardLinkEntitiesByIds,\r\n} from './card-link-record.generated';\r\nimport {\r\n CardNoteArchiveRecord,\r\n selectCardNoteArchiveById,\r\n selectCardNoteArchiveEntitiesByIds,\r\n} from './card-note-archive-record.generated';\r\nimport {\r\n CardNoteRecord,\r\n selectCardNoteById,\r\n selectCardNoteEntitiesByIds,\r\n} from './card-note-record.generated';\r\nimport {\r\n CardReOpenReasonRecord,\r\n selectCardReOpenReasonById,\r\n selectCardReOpenReasonEntitiesByIds,\r\n} from './card-re-open-reason-record.generated';\r\nimport {\r\n CardSummaryRecord,\r\n selectCardSummaryById,\r\n selectCardSummaryEntitiesByIds,\r\n} from './card-summary-record.generated';\r\nimport {\r\n ConfigurationSettingRecord,\r\n selectConfigurationSettingById,\r\n selectConfigurationSettingEntitiesByIds,\r\n} from './configuration-setting-record.generated';\r\nimport {\r\n DeclineCategoryRecord,\r\n selectDeclineCategoryById,\r\n selectDeclineCategoryEntitiesByIds,\r\n} from './decline-category-record.generated';\r\nimport {\r\n DeclineReasonRecord,\r\n selectDeclineReasonById,\r\n selectDeclineReasonEntitiesByIds,\r\n} from './decline-reason-record.generated';\r\nimport {\r\n DeclineSecondaryReasonRecord,\r\n selectDeclineSecondaryReasonById,\r\n selectDeclineSecondaryReasonEntitiesByIds,\r\n} from './decline-secondary-reason-record.generated';\r\nimport {\r\n DiversionReasonRecord,\r\n selectDiversionReasonById,\r\n selectDiversionReasonEntitiesByIds,\r\n} from './diversion-reason-record.generated';\r\nimport {\r\n EscortRequestRecord,\r\n selectEscortRequestById,\r\n selectEscortRequestEntitiesByIds,\r\n} from './escort-request-record.generated';\r\nimport {\r\n EstimatedDurationRecord,\r\n selectEstimatedDurationById,\r\n selectEstimatedDurationEntitiesByIds,\r\n} from './estimated-duration-record.generated';\r\nimport { EtaRecord, selectEtaById, selectEtaEntitiesByIds } from './eta-record.generated';\r\nimport {\r\n ExternalActionRecord,\r\n selectExternalActionById,\r\n selectExternalActionEntitiesByIds,\r\n} from './external-action-record.generated';\r\nimport {\r\n ExternalActionTypeRecord,\r\n selectExternalActionTypeById,\r\n selectExternalActionTypeEntitiesByIds,\r\n} from './external-action-type-record.generated';\r\nimport {\r\n ExternalSystemUnitRecord,\r\n selectExternalSystemUnitById,\r\n selectExternalSystemUnitEntitiesByIds,\r\n} from './external-system-unit-record.generated';\r\nimport {\r\n FacilityNonAcceptanceReasonRecord,\r\n selectFacilityNonAcceptanceReasonById,\r\n selectFacilityNonAcceptanceReasonEntitiesByIds,\r\n} from './facility-non-acceptance-reason-record.generated';\r\nimport {\r\n FirewallRuleRecord,\r\n selectFirewallRuleById,\r\n selectFirewallRuleEntitiesByIds,\r\n} from './firewall-rule-record.generated';\r\nimport {\r\n FlightFollowingReportRecord,\r\n selectFlightFollowingReportById,\r\n selectFlightFollowingReportEntitiesByIds,\r\n} from './flight-following-report-record.generated';\r\nimport {\r\n LandingZoneOutOfServiceReasonRecord,\r\n selectLandingZoneOutOfServiceReasonById,\r\n selectLandingZoneOutOfServiceReasonEntitiesByIds,\r\n} from './landing-zone-out-of-service-reason-record.generated';\r\nimport {\r\n LocationHazardAttachmentRecord,\r\n selectLocationHazardAttachmentById,\r\n selectLocationHazardAttachmentEntitiesByIds,\r\n} from './location-hazard-attachment-record.generated';\r\nimport {\r\n LocationHazardRecord,\r\n selectLocationHazardById,\r\n selectLocationHazardEntitiesByIds,\r\n} from './location-hazard-record.generated';\r\nimport {\r\n ManifestEntryRecord,\r\n selectManifestEntryById,\r\n selectManifestEntryEntitiesByIds,\r\n} from './manifest-entry-record.generated';\r\nimport {\r\n MedicalControlContactLogEntryRecord,\r\n selectMedicalControlContactLogEntryById,\r\n selectMedicalControlContactLogEntryEntitiesByIds,\r\n} from './medical-control-contact-log-entry-record.generated';\r\nimport {\r\n MessageStatusUpdateRecord,\r\n selectMessageStatusUpdateById,\r\n selectMessageStatusUpdateEntitiesByIds,\r\n} from './message-status-update-record.generated';\r\nimport {\r\n NextDueTypeRecord,\r\n selectNextDueTypeById,\r\n selectNextDueTypeEntitiesByIds,\r\n} from './next-due-type-record.generated';\r\nimport {\r\n NonReferralReasonRecord,\r\n selectNonReferralReasonById,\r\n selectNonReferralReasonEntitiesByIds,\r\n} from './non-referral-reason-record.generated';\r\nimport {\r\n NotificationRecord,\r\n selectNotificationById,\r\n selectNotificationEntitiesByIds,\r\n} from './notification-record.generated';\r\nimport {\r\n NotificationGroupRecord,\r\n selectNotificationGroupById,\r\n selectNotificationGroupEntitiesByIds,\r\n} from './notification-group-record.generated';\r\nimport {\r\n NotificationGroupMemberRecord,\r\n selectNotificationGroupMemberById,\r\n selectNotificationGroupMemberEntitiesByIds,\r\n} from './notification-group-member-record.generated';\r\nimport {\r\n NotificationRecipientRecord,\r\n selectNotificationRecipientById,\r\n selectNotificationRecipientEntitiesByIds,\r\n} from './notification-recipient-record.generated';\r\nimport {\r\n NotificationSubscriptionRecord,\r\n selectNotificationSubscriptionById,\r\n selectNotificationSubscriptionEntitiesByIds,\r\n} from './notification-subscription-record.generated';\r\nimport {\r\n NotificationTemplateRecord,\r\n selectNotificationTemplateById,\r\n selectNotificationTemplateEntitiesByIds,\r\n} from './notification-template-record.generated';\r\nimport {\r\n OemActivityRecord,\r\n selectOemActivityById,\r\n selectOemActivityEntitiesByIds,\r\n} from './oem-activity-record.generated';\r\nimport {\r\n OemAssetRecord,\r\n selectOemAssetById,\r\n selectOemAssetEntitiesByIds,\r\n} from './oem-asset-record.generated';\r\nimport {\r\n OemPlanChangeRequestRecord,\r\n selectOemPlanChangeRequestById,\r\n selectOemPlanChangeRequestEntitiesByIds,\r\n} from './oem-plan-change-request-record.generated';\r\nimport {\r\n OemPlanRecord,\r\n selectOemPlanById,\r\n selectOemPlanEntitiesByIds,\r\n} from './oem-plan-record.generated';\r\nimport {\r\n OfferAlgorithmRecord,\r\n selectOfferAlgorithmById,\r\n selectOfferAlgorithmEntitiesByIds,\r\n} from './offer-algorithm-record.generated';\r\nimport {\r\n OperationRecord,\r\n selectOperationById,\r\n selectOperationEntitiesByIds,\r\n} from './operation-record.generated';\r\nimport {\r\n OutOfServiceEventRecord,\r\n selectOutOfServiceEventById,\r\n selectOutOfServiceEventEntitiesByIds,\r\n} from './out-of-service-event-record.generated';\r\nimport {\r\n OutOfServiceEventNoteRecord,\r\n selectOutOfServiceEventNoteById,\r\n selectOutOfServiceEventNoteEntitiesByIds,\r\n} from './out-of-service-event-note-record.generated';\r\nimport {\r\n OutOfServiceReasonRecord,\r\n selectOutOfServiceReasonById,\r\n selectOutOfServiceReasonEntitiesByIds,\r\n} from './out-of-service-reason-record.generated';\r\nimport {\r\n OutOfServiceSecondaryReasonRecord,\r\n selectOutOfServiceSecondaryReasonById,\r\n selectOutOfServiceSecondaryReasonEntitiesByIds,\r\n} from './out-of-service-secondary-reason-record.generated';\r\nimport {\r\n PassdownLogAcknowledgementRecord,\r\n selectPassdownLogAcknowledgementById,\r\n selectPassdownLogAcknowledgementEntitiesByIds,\r\n} from './passdown-log-acknowledgement-record.generated';\r\nimport {\r\n PassdownLogRecord,\r\n selectPassdownLogById,\r\n selectPassdownLogEntitiesByIds,\r\n} from './passdown-log-record.generated';\r\nimport {\r\n PatientRecord,\r\n selectPatientById,\r\n selectPatientEntitiesByIds,\r\n} from './patient-record.generated';\r\nimport {\r\n PositionReportAlertRecord,\r\n selectPositionReportAlertById,\r\n selectPositionReportAlertEntitiesByIds,\r\n} from './position-report-alert-record.generated';\r\nimport {\r\n PositionReportArchiveRecord,\r\n selectPositionReportArchiveById,\r\n selectPositionReportArchiveEntitiesByIds,\r\n} from './position-report-archive-record.generated';\r\nimport {\r\n PositionReportRecord,\r\n selectPositionReportById,\r\n selectPositionReportEntitiesByIds,\r\n} from './position-report-record.generated';\r\nimport {\r\n QuestionChoiceRecord,\r\n selectQuestionChoiceById,\r\n selectQuestionChoiceEntitiesByIds,\r\n} from './question-choice-record.generated';\r\nimport {\r\n QuestionRecord,\r\n selectQuestionById,\r\n selectQuestionEntitiesByIds,\r\n} from './question-record.generated';\r\nimport {\r\n QuestionnaireRecord,\r\n selectQuestionnaireById,\r\n selectQuestionnaireEntitiesByIds,\r\n} from './questionnaire-record.generated';\r\nimport {\r\n QuestionnaireQuestionResponseRecord,\r\n selectQuestionnaireQuestionResponseById,\r\n selectQuestionnaireQuestionResponseEntitiesByIds,\r\n} from './questionnaire-question-response-record.generated';\r\nimport {\r\n QuestionnaireQuestionResponseNoteRecord,\r\n selectQuestionnaireQuestionResponseNoteById,\r\n selectQuestionnaireQuestionResponseNoteEntitiesByIds,\r\n} from './questionnaire-question-response-note-record.generated';\r\nimport {\r\n QuestionnaireResponseRecord,\r\n selectQuestionnaireResponseById,\r\n selectQuestionnaireResponseEntitiesByIds,\r\n} from './questionnaire-response-record.generated';\r\nimport {\r\n QuestionnaireSectionRecord,\r\n selectQuestionnaireSectionById,\r\n selectQuestionnaireSectionEntitiesByIds,\r\n} from './questionnaire-section-record.generated';\r\nimport {\r\n QuestionnaireSectionQuestionRecord,\r\n selectQuestionnaireSectionQuestionById,\r\n selectQuestionnaireSectionQuestionEntitiesByIds,\r\n} from './questionnaire-section-question-record.generated';\r\nimport {\r\n ReceivingFacilityRequestRecord,\r\n selectReceivingFacilityRequestById,\r\n selectReceivingFacilityRequestEntitiesByIds,\r\n} from './receiving-facility-request-record.generated';\r\nimport {\r\n RendezvousRequestRecord,\r\n selectRendezvousRequestById,\r\n selectRendezvousRequestEntitiesByIds,\r\n} from './rendezvous-request-record.generated';\r\nimport {\r\n RequestRecord,\r\n selectRequestById,\r\n selectRequestEntitiesByIds,\r\n} from './request-record.generated';\r\nimport {\r\n RequesterRecord,\r\n selectRequesterById,\r\n selectRequesterEntitiesByIds,\r\n} from './requester-record.generated';\r\nimport {\r\n RequesterReferralReasonRecord,\r\n selectRequesterReferralReasonById,\r\n selectRequesterReferralReasonEntitiesByIds,\r\n} from './requester-referral-reason-record.generated';\r\nimport {\r\n RequesterRoleRecord,\r\n selectRequesterRoleById,\r\n selectRequesterRoleEntitiesByIds,\r\n} from './requester-role-record.generated';\r\nimport {\r\n RequestLocationRecord,\r\n selectRequestLocationById,\r\n selectRequestLocationEntitiesByIds,\r\n} from './request-location-record.generated';\r\nimport {\r\n RequestPatientRecord,\r\n selectRequestPatientById,\r\n selectRequestPatientEntitiesByIds,\r\n} from './request-patient-record.generated';\r\nimport {\r\n SystemTimerRecord,\r\n selectSystemTimerById,\r\n selectSystemTimerEntitiesByIds,\r\n} from './system-timer-record.generated';\r\nimport {\r\n TimelineRecord,\r\n selectTimelineById,\r\n selectTimelineEntitiesByIds,\r\n} from './timeline-record.generated';\r\nimport {\r\n TimelineItemRecord,\r\n selectTimelineItemById,\r\n selectTimelineItemEntitiesByIds,\r\n} from './timeline-item-record.generated';\r\nimport {\r\n TimestampRecord,\r\n selectTimestampById,\r\n selectTimestampEntitiesByIds,\r\n} from './timestamp-record.generated';\r\nimport {\r\n TimestampTypeRecord,\r\n selectTimestampTypeById,\r\n selectTimestampTypeEntitiesByIds,\r\n} from './timestamp-type-record.generated';\r\nimport {\r\n TrackedMessageRecord,\r\n selectTrackedMessageById,\r\n selectTrackedMessageEntitiesByIds,\r\n} from './tracked-message-record.generated';\r\nimport {\r\n TransferReasonRecord,\r\n selectTransferReasonById,\r\n selectTransferReasonEntitiesByIds,\r\n} from './transfer-reason-record.generated';\r\nimport {\r\n TransportOfferRecord,\r\n selectTransportOfferById,\r\n selectTransportOfferEntitiesByIds,\r\n} from './transport-offer-record.generated';\r\nimport {\r\n TransportOfferOptionRecord,\r\n selectTransportOfferOptionById,\r\n selectTransportOfferOptionEntitiesByIds,\r\n} from './transport-offer-option-record.generated';\r\nimport {\r\n TransportReasonRecord,\r\n selectTransportReasonById,\r\n selectTransportReasonEntitiesByIds,\r\n} from './transport-reason-record.generated';\r\nimport { TripRecord, selectTripById, selectTripEntitiesByIds } from './trip-record.generated';\r\nimport {\r\n TripLegRecord,\r\n selectTripLegById,\r\n selectTripLegEntitiesByIds,\r\n} from './trip-leg-record.generated';\r\nimport {\r\n TripPassengerRecord,\r\n selectTripPassengerById,\r\n selectTripPassengerEntitiesByIds,\r\n} from './trip-passenger-record.generated';\r\nimport {\r\n UnitActivationRuleRecord,\r\n selectUnitActivationRuleById,\r\n selectUnitActivationRuleEntitiesByIds,\r\n} from './unit-activation-rule-record.generated';\r\nimport {\r\n UnitEMSystemMappingRecord,\r\n selectUnitEMSystemMappingById,\r\n selectUnitEMSystemMappingEntitiesByIds,\r\n} from './unit-em-system-mapping-record.generated';\r\nimport { UnitRecord, selectUnitById, selectUnitEntitiesByIds } from './unit-record.generated';\r\nimport {\r\n UnitNoteRecord,\r\n selectUnitNoteById,\r\n selectUnitNoteEntitiesByIds,\r\n} from './unit-note-record.generated';\r\nimport {\r\n UnitPositionRecord,\r\n selectUnitPositionById,\r\n selectUnitPositionEntitiesByIds,\r\n} from './unit-position-record.generated';\r\nimport {\r\n UnitShiftRecord,\r\n selectUnitShiftById,\r\n selectUnitShiftEntitiesByIds,\r\n} from './unit-shift-record.generated';\r\nimport {\r\n UnitStatusHistoryEntryRecord,\r\n selectUnitStatusHistoryEntryById,\r\n selectUnitStatusHistoryEntryEntitiesByIds,\r\n} from './unit-status-history-entry-record.generated';\r\nimport {\r\n UnitSummaryRecord,\r\n selectUnitSummaryById,\r\n selectUnitSummaryEntitiesByIds,\r\n} from './unit-summary-record.generated';\r\nimport {\r\n VehicleDispositionRecord,\r\n selectVehicleDispositionById,\r\n selectVehicleDispositionEntitiesByIds,\r\n} from './vehicle-disposition-record.generated';\r\nimport {\r\n VehicleSummaryRecord,\r\n selectVehicleSummaryById,\r\n selectVehicleSummaryEntitiesByIds,\r\n} from './vehicle-summary-record.generated';\r\nimport {\r\n WaypointRecord,\r\n selectWaypointById,\r\n selectWaypointEntitiesByIds,\r\n} from './waypoint-record.generated';\r\nimport {\r\n WebOrderLogRecord,\r\n selectWebOrderLogById,\r\n selectWebOrderLogEntitiesByIds,\r\n} from './web-order-log-record.generated';\r\nimport {\r\n AccessibleItemRecord,\r\n selectAccessibleItemById,\r\n selectAccessibleItemEntitiesByIds,\r\n} from './accessible-item-record.generated';\r\nimport {\r\n AgencyRecord,\r\n selectAgencyById,\r\n selectAgencyEntitiesByIds,\r\n} from './agency-record.generated';\r\nimport {\r\n AgencyLocationRecord,\r\n selectAgencyLocationById,\r\n selectAgencyLocationEntitiesByIds,\r\n} from './agency-location-record.generated';\r\nimport {\r\n AirportRecord,\r\n selectAirportById,\r\n selectAirportEntitiesByIds,\r\n} from './airport-record.generated';\r\nimport {\r\n ArchiveLogRecord,\r\n selectArchiveLogById,\r\n selectArchiveLogEntitiesByIds,\r\n} from './archive-log-record.generated';\r\nimport {\r\n BaseControlZoneRecord,\r\n selectBaseControlZoneById,\r\n selectBaseControlZoneEntitiesByIds,\r\n} from './base-control-zone-record.generated';\r\nimport { BaseRecord, selectBaseById, selectBaseEntitiesByIds } from './base-record.generated';\r\nimport {\r\n BaseMedicalControlContactRecord,\r\n selectBaseMedicalControlContactById,\r\n selectBaseMedicalControlContactEntitiesByIds,\r\n} from './base-medical-control-contact-record.generated';\r\nimport {\r\n BaseMedicalControlContactStateRecord,\r\n selectBaseMedicalControlContactStateById,\r\n selectBaseMedicalControlContactStateEntitiesByIds,\r\n} from './base-medical-control-contact-state-record.generated';\r\nimport {\r\n CapabilityRecord,\r\n selectCapabilityById,\r\n selectCapabilityEntitiesByIds,\r\n} from './capability-record.generated';\r\nimport {\r\n CommunicationCenterRecord,\r\n selectCommunicationCenterById,\r\n selectCommunicationCenterEntitiesByIds,\r\n} from './communication-center-record.generated';\r\nimport {\r\n CommunicationCenterTransportOfferOptionRecord,\r\n selectCommunicationCenterTransportOfferOptionById,\r\n selectCommunicationCenterTransportOfferOptionEntitiesByIds,\r\n} from './communication-center-transport-offer-option-record.generated';\r\nimport {\r\n CompanyRecord,\r\n selectCompanyById,\r\n selectCompanyEntitiesByIds,\r\n} from './company-record.generated';\r\nimport {\r\n CompleteFlightInstanceRecord,\r\n selectCompleteFlightInstanceById,\r\n selectCompleteFlightInstanceEntitiesByIds,\r\n} from './complete-flight-instance-record.generated';\r\nimport {\r\n ControlZoneRecord,\r\n selectControlZoneById,\r\n selectControlZoneEntitiesByIds,\r\n} from './control-zone-record.generated';\r\nimport {\r\n DepartmentRecord,\r\n selectDepartmentById,\r\n selectDepartmentEntitiesByIds,\r\n} from './department-record.generated';\r\nimport {\r\n EntityCapabilityRecord,\r\n selectEntityCapabilityById,\r\n selectEntityCapabilityEntitiesByIds,\r\n} from './entity-capability-record.generated';\r\nimport {\r\n ExternalReferenceRecord,\r\n selectExternalReferenceById,\r\n selectExternalReferenceEntitiesByIds,\r\n} from './external-reference-record.generated';\r\nimport { FboRecord, selectFboById, selectFboEntitiesByIds } from './fbo-record.generated';\r\nimport {\r\n FuelTankRecord,\r\n selectFuelTankById,\r\n selectFuelTankEntitiesByIds,\r\n} from './fuel-tank-record.generated';\r\nimport {\r\n LocationRecord,\r\n selectLocationById,\r\n selectLocationEntitiesByIds,\r\n} from './location-record.generated';\r\nimport {\r\n MedicalFacilityContactRecord,\r\n selectMedicalFacilityContactById,\r\n selectMedicalFacilityContactEntitiesByIds,\r\n} from './medical-facility-contact-record.generated';\r\nimport {\r\n MedicalFacilityRecord,\r\n selectMedicalFacilityById,\r\n selectMedicalFacilityEntitiesByIds,\r\n} from './medical-facility-record.generated';\r\nimport {\r\n MedicalFacilityPhysicianRecord,\r\n selectMedicalFacilityPhysicianById,\r\n selectMedicalFacilityPhysicianEntitiesByIds,\r\n} from './medical-facility-physician-record.generated';\r\nimport {\r\n MedicalFacilityUnitRecord,\r\n selectMedicalFacilityUnitById,\r\n selectMedicalFacilityUnitEntitiesByIds,\r\n} from './medical-facility-unit-record.generated';\r\nimport {\r\n MedicalUnitRecord,\r\n selectMedicalUnitById,\r\n selectMedicalUnitEntitiesByIds,\r\n} from './medical-unit-record.generated';\r\nimport {\r\n PersonRecord,\r\n selectPersonById,\r\n selectPersonEntitiesByIds,\r\n} from './person-record.generated';\r\nimport {\r\n PhysicianRecord,\r\n selectPhysicianById,\r\n selectPhysicianEntitiesByIds,\r\n} from './physician-record.generated';\r\nimport {\r\n ProgramBaseRecord,\r\n selectProgramBaseById,\r\n selectProgramBaseEntitiesByIds,\r\n} from './program-base-record.generated';\r\nimport {\r\n ProgramRecord,\r\n selectProgramById,\r\n selectProgramEntitiesByIds,\r\n} from './program-record.generated';\r\nimport {\r\n RamcoVehicleConfigurationRecord,\r\n selectRamcoVehicleConfigurationById,\r\n selectRamcoVehicleConfigurationEntitiesByIds,\r\n} from './ramco-vehicle-configuration-record.generated';\r\nimport {\r\n RegionBaseRecord,\r\n selectRegionBaseById,\r\n selectRegionBaseEntitiesByIds,\r\n} from './region-base-record.generated';\r\nimport {\r\n RegionRecord,\r\n selectRegionById,\r\n selectRegionEntitiesByIds,\r\n} from './region-record.generated';\r\nimport {\r\n RegionGroupRecord,\r\n selectRegionGroupById,\r\n selectRegionGroupEntitiesByIds,\r\n} from './region-group-record.generated';\r\nimport {\r\n SpecialtyTeamRecord,\r\n selectSpecialtyTeamById,\r\n selectSpecialtyTeamEntitiesByIds,\r\n} from './specialty-team-record.generated';\r\nimport {\r\n SpecialtyTeamMemberRecord,\r\n selectSpecialtyTeamMemberById,\r\n selectSpecialtyTeamMemberEntitiesByIds,\r\n} from './specialty-team-member-record.generated';\r\nimport {\r\n SupportRequestRecord,\r\n selectSupportRequestById,\r\n selectSupportRequestEntitiesByIds,\r\n} from './support-request-record.generated';\r\nimport {\r\n TimezoneRecord,\r\n selectTimezoneById,\r\n selectTimezoneEntitiesByIds,\r\n} from './timezone-record.generated';\r\nimport {\r\n TransferCenterRecord,\r\n selectTransferCenterById,\r\n selectTransferCenterEntitiesByIds,\r\n} from './transfer-center-record.generated';\r\nimport {\r\n TrmUserAgencyRecord,\r\n selectTrmUserAgencyById,\r\n selectTrmUserAgencyEntitiesByIds,\r\n} from './trm-user-agency-record.generated';\r\nimport {\r\n TrmUserRecord,\r\n selectTrmUserById,\r\n selectTrmUserEntitiesByIds,\r\n} from './trm-user-record.generated';\r\nimport {\r\n TrmUserMedicalFacilityRecord,\r\n selectTrmUserMedicalFacilityById,\r\n selectTrmUserMedicalFacilityEntitiesByIds,\r\n} from './trm-user-medical-facility-record.generated';\r\nimport {\r\n TrmUserProgramRecord,\r\n selectTrmUserProgramById,\r\n selectTrmUserProgramEntitiesByIds,\r\n} from './trm-user-program-record.generated';\r\nimport {\r\n VehicleControlZoneRecord,\r\n selectVehicleControlZoneById,\r\n selectVehicleControlZoneEntitiesByIds,\r\n} from './vehicle-control-zone-record.generated';\r\nimport {\r\n VehicleRecord,\r\n selectVehicleById,\r\n selectVehicleEntitiesByIds,\r\n} from './vehicle-record.generated';\r\nimport {\r\n VehicleMaintenanceRecord,\r\n selectVehicleMaintenanceById,\r\n selectVehicleMaintenanceEntitiesByIds,\r\n} from './vehicle-maintenance-record.generated';\r\nimport {\r\n VehicleMakeRecord,\r\n selectVehicleMakeById,\r\n selectVehicleMakeEntitiesByIds,\r\n} from './vehicle-make-record.generated';\r\nimport {\r\n VehicleModelRecord,\r\n selectVehicleModelById,\r\n selectVehicleModelEntitiesByIds,\r\n} from './vehicle-model-record.generated';\r\nimport {\r\n VehicleStateInspectionRecord,\r\n selectVehicleStateInspectionById,\r\n selectVehicleStateInspectionEntitiesByIds,\r\n} from './vehicle-state-inspection-record.generated';\r\nimport {\r\n ActiveCardUnitOfferingRecord,\r\n selectActiveCardUnitOfferingById,\r\n selectActiveCardUnitOfferingEntitiesByIds,\r\n} from './active-card-unit-offering-record.generated';\r\nimport {\r\n VehiclePositionSummaryRecord,\r\n selectVehiclePositionSummaryById,\r\n selectVehiclePositionSummaryEntitiesByIds,\r\n} from './vehicle-position-summary-record.generated';\r\nimport {\r\n FetchActivationRuleByIdGQL,\r\n FetchActivationRuleByIdsGQL,\r\n FetchActiveAlertByIdGQL,\r\n FetchActiveAlertByIdsGQL,\r\n FetchActiveTimelineByIdGQL,\r\n FetchActiveTimelineByIdsGQL,\r\n FetchAlertByIdGQL,\r\n FetchAlertByIdsGQL,\r\n FetchApplicationNotificationByIdGQL,\r\n FetchApplicationNotificationByIdsGQL,\r\n FetchAssignmentDelayedReasonByIdGQL,\r\n FetchAssignmentDelayedReasonByIdsGQL,\r\n FetchCancellationCategoryByIdGQL,\r\n FetchCancellationCategoryByIdsGQL,\r\n FetchCancellationReasonByIdGQL,\r\n FetchCancellationReasonByIdsGQL,\r\n FetchCancellationSecondaryReasonByIdGQL,\r\n FetchCancellationSecondaryReasonByIdsGQL,\r\n FetchCardByIdGQL,\r\n FetchCardByIdsGQL,\r\n FetchCardLinkByIdGQL,\r\n FetchCardLinkByIdsGQL,\r\n FetchCardNoteArchiveByIdGQL,\r\n FetchCardNoteArchiveByIdsGQL,\r\n FetchCardNoteByIdGQL,\r\n FetchCardNoteByIdsGQL,\r\n FetchCardReOpenReasonByIdGQL,\r\n FetchCardReOpenReasonByIdsGQL,\r\n FetchCardSummaryByIdGQL,\r\n FetchCardSummaryByIdsGQL,\r\n FetchConfigurationSettingByIdGQL,\r\n FetchConfigurationSettingByIdsGQL,\r\n FetchDeclineCategoryByIdGQL,\r\n FetchDeclineCategoryByIdsGQL,\r\n FetchDeclineReasonByIdGQL,\r\n FetchDeclineReasonByIdsGQL,\r\n FetchDeclineSecondaryReasonByIdGQL,\r\n FetchDeclineSecondaryReasonByIdsGQL,\r\n FetchDiversionReasonByIdGQL,\r\n FetchDiversionReasonByIdsGQL,\r\n FetchEscortRequestByIdGQL,\r\n FetchEscortRequestByIdsGQL,\r\n FetchEstimatedDurationByIdGQL,\r\n FetchEstimatedDurationByIdsGQL,\r\n FetchEtaByIdGQL,\r\n FetchEtaByIdsGQL,\r\n FetchExternalActionByIdGQL,\r\n FetchExternalActionByIdsGQL,\r\n FetchExternalActionTypeByIdGQL,\r\n FetchExternalActionTypeByIdsGQL,\r\n FetchExternalSystemUnitByIdGQL,\r\n FetchExternalSystemUnitByIdsGQL,\r\n FetchFacilityNonAcceptanceReasonByIdGQL,\r\n FetchFacilityNonAcceptanceReasonByIdsGQL,\r\n FetchFirewallRuleByIdGQL,\r\n FetchFirewallRuleByIdsGQL,\r\n FetchFlightFollowingReportByIdGQL,\r\n FetchFlightFollowingReportByIdsGQL,\r\n FetchLandingZoneOutOfServiceReasonByIdGQL,\r\n FetchLandingZoneOutOfServiceReasonByIdsGQL,\r\n FetchLocationHazardAttachmentByIdGQL,\r\n FetchLocationHazardAttachmentByIdsGQL,\r\n FetchLocationHazardByIdGQL,\r\n FetchLocationHazardByIdsGQL,\r\n FetchManifestEntryByIdGQL,\r\n FetchManifestEntryByIdsGQL,\r\n FetchMedicalControlContactLogEntryByIdGQL,\r\n FetchMedicalControlContactLogEntryByIdsGQL,\r\n FetchMessageStatusUpdateByIdGQL,\r\n FetchMessageStatusUpdateByIdsGQL,\r\n FetchNextDueTypeByIdGQL,\r\n FetchNextDueTypeByIdsGQL,\r\n FetchNonReferralReasonByIdGQL,\r\n FetchNonReferralReasonByIdsGQL,\r\n FetchNotificationByIdGQL,\r\n FetchNotificationByIdsGQL,\r\n FetchNotificationGroupByIdGQL,\r\n FetchNotificationGroupByIdsGQL,\r\n FetchNotificationGroupMemberByIdGQL,\r\n FetchNotificationGroupMemberByIdsGQL,\r\n FetchNotificationRecipientByIdGQL,\r\n FetchNotificationRecipientByIdsGQL,\r\n FetchNotificationSubscriptionByIdGQL,\r\n FetchNotificationSubscriptionByIdsGQL,\r\n FetchNotificationTemplateByIdGQL,\r\n FetchNotificationTemplateByIdsGQL,\r\n FetchOemActivityByIdGQL,\r\n FetchOemActivityByIdsGQL,\r\n FetchOemAssetByIdGQL,\r\n FetchOemAssetByIdsGQL,\r\n FetchOemPlanChangeRequestByIdGQL,\r\n FetchOemPlanChangeRequestByIdsGQL,\r\n FetchOemPlanByIdGQL,\r\n FetchOemPlanByIdsGQL,\r\n FetchOfferAlgorithmByIdGQL,\r\n FetchOfferAlgorithmByIdsGQL,\r\n FetchOperationByIdGQL,\r\n FetchOperationByIdsGQL,\r\n FetchOutOfServiceEventByIdGQL,\r\n FetchOutOfServiceEventByIdsGQL,\r\n FetchOutOfServiceEventNoteByIdGQL,\r\n FetchOutOfServiceEventNoteByIdsGQL,\r\n FetchOutOfServiceReasonByIdGQL,\r\n FetchOutOfServiceReasonByIdsGQL,\r\n FetchOutOfServiceSecondaryReasonByIdGQL,\r\n FetchOutOfServiceSecondaryReasonByIdsGQL,\r\n FetchPassdownLogAcknowledgementByIdGQL,\r\n FetchPassdownLogAcknowledgementByIdsGQL,\r\n FetchPassdownLogByIdGQL,\r\n FetchPassdownLogByIdsGQL,\r\n FetchPatientByIdGQL,\r\n FetchPatientByIdsGQL,\r\n FetchPositionReportAlertByIdGQL,\r\n FetchPositionReportAlertByIdsGQL,\r\n FetchPositionReportArchiveByIdGQL,\r\n FetchPositionReportArchiveByIdsGQL,\r\n FetchPositionReportByIdGQL,\r\n FetchPositionReportByIdsGQL,\r\n FetchQuestionChoiceByIdGQL,\r\n FetchQuestionChoiceByIdsGQL,\r\n FetchQuestionByIdGQL,\r\n FetchQuestionByIdsGQL,\r\n FetchQuestionnaireByIdGQL,\r\n FetchQuestionnaireByIdsGQL,\r\n FetchQuestionnaireQuestionResponseByIdGQL,\r\n FetchQuestionnaireQuestionResponseByIdsGQL,\r\n FetchQuestionnaireQuestionResponseNoteByIdGQL,\r\n FetchQuestionnaireQuestionResponseNoteByIdsGQL,\r\n FetchQuestionnaireResponseByIdGQL,\r\n FetchQuestionnaireResponseByIdsGQL,\r\n FetchQuestionnaireSectionByIdGQL,\r\n FetchQuestionnaireSectionByIdsGQL,\r\n FetchQuestionnaireSectionQuestionByIdGQL,\r\n FetchQuestionnaireSectionQuestionByIdsGQL,\r\n FetchReceivingFacilityRequestByIdGQL,\r\n FetchReceivingFacilityRequestByIdsGQL,\r\n FetchRendezvousRequestByIdGQL,\r\n FetchRendezvousRequestByIdsGQL,\r\n FetchRequestByIdGQL,\r\n FetchRequestByIdsGQL,\r\n FetchRequesterByIdGQL,\r\n FetchRequesterByIdsGQL,\r\n FetchRequesterReferralReasonByIdGQL,\r\n FetchRequesterReferralReasonByIdsGQL,\r\n FetchRequesterRoleByIdGQL,\r\n FetchRequesterRoleByIdsGQL,\r\n FetchRequestLocationByIdGQL,\r\n FetchRequestLocationByIdsGQL,\r\n FetchRequestPatientByIdGQL,\r\n FetchRequestPatientByIdsGQL,\r\n FetchSystemTimerByIdGQL,\r\n FetchSystemTimerByIdsGQL,\r\n FetchTimelineByIdGQL,\r\n FetchTimelineByIdsGQL,\r\n FetchTimelineItemByIdGQL,\r\n FetchTimelineItemByIdsGQL,\r\n FetchTimestampByIdGQL,\r\n FetchTimestampByIdsGQL,\r\n FetchTimestampTypeByIdGQL,\r\n FetchTimestampTypeByIdsGQL,\r\n FetchTrackedMessageByIdGQL,\r\n FetchTrackedMessageByIdsGQL,\r\n FetchTransferReasonByIdGQL,\r\n FetchTransferReasonByIdsGQL,\r\n FetchTransportOfferByIdGQL,\r\n FetchTransportOfferByIdsGQL,\r\n FetchTransportOfferOptionByIdGQL,\r\n FetchTransportOfferOptionByIdsGQL,\r\n FetchTransportReasonByIdGQL,\r\n FetchTransportReasonByIdsGQL,\r\n FetchTripByIdGQL,\r\n FetchTripByIdsGQL,\r\n FetchTripLegByIdGQL,\r\n FetchTripLegByIdsGQL,\r\n FetchTripPassengerByIdGQL,\r\n FetchTripPassengerByIdsGQL,\r\n FetchUnitActivationRuleByIdGQL,\r\n FetchUnitActivationRuleByIdsGQL,\r\n FetchUnitEMSystemMappingByIdGQL,\r\n FetchUnitEMSystemMappingByIdsGQL,\r\n FetchUnitByIdGQL,\r\n FetchUnitByIdsGQL,\r\n FetchUnitNoteByIdGQL,\r\n FetchUnitNoteByIdsGQL,\r\n FetchUnitPositionByIdGQL,\r\n FetchUnitPositionByIdsGQL,\r\n FetchUnitShiftByIdGQL,\r\n FetchUnitShiftByIdsGQL,\r\n FetchUnitStatusHistoryEntryByIdGQL,\r\n FetchUnitStatusHistoryEntryByIdsGQL,\r\n FetchUnitSummaryByIdGQL,\r\n FetchUnitSummaryByIdsGQL,\r\n FetchVehicleDispositionByIdGQL,\r\n FetchVehicleDispositionByIdsGQL,\r\n FetchVehicleSummaryByIdGQL,\r\n FetchVehicleSummaryByIdsGQL,\r\n FetchWaypointByIdGQL,\r\n FetchWaypointByIdsGQL,\r\n FetchWebOrderLogByIdGQL,\r\n FetchWebOrderLogByIdsGQL,\r\n FetchAccessibleItemByIdGQL,\r\n FetchAccessibleItemByIdsGQL,\r\n FetchAgencyByIdGQL,\r\n FetchAgencyByIdsGQL,\r\n FetchAgencyLocationByIdGQL,\r\n FetchAgencyLocationByIdsGQL,\r\n FetchAirportByIdGQL,\r\n FetchAirportByIdsGQL,\r\n FetchArchiveLogByIdGQL,\r\n FetchArchiveLogByIdsGQL,\r\n FetchBaseControlZoneByIdGQL,\r\n FetchBaseControlZoneByIdsGQL,\r\n FetchBaseByIdGQL,\r\n FetchBaseByIdsGQL,\r\n FetchBaseMedicalControlContactByIdGQL,\r\n FetchBaseMedicalControlContactByIdsGQL,\r\n FetchBaseMedicalControlContactStateByIdGQL,\r\n FetchBaseMedicalControlContactStateByIdsGQL,\r\n FetchCapabilityByIdGQL,\r\n FetchCapabilityByIdsGQL,\r\n FetchCommunicationCenterByIdGQL,\r\n FetchCommunicationCenterByIdsGQL,\r\n FetchCommunicationCenterTransportOfferOptionByIdGQL,\r\n FetchCommunicationCenterTransportOfferOptionByIdsGQL,\r\n FetchCompanyByIdGQL,\r\n FetchCompanyByIdsGQL,\r\n FetchCompleteFlightInstanceByIdGQL,\r\n FetchCompleteFlightInstanceByIdsGQL,\r\n FetchControlZoneByIdGQL,\r\n FetchControlZoneByIdsGQL,\r\n FetchDepartmentByIdGQL,\r\n FetchDepartmentByIdsGQL,\r\n FetchEntityCapabilityByIdGQL,\r\n FetchEntityCapabilityByIdsGQL,\r\n FetchExternalReferenceByIdGQL,\r\n FetchExternalReferenceByIdsGQL,\r\n FetchFboByIdGQL,\r\n FetchFboByIdsGQL,\r\n FetchFuelTankByIdGQL,\r\n FetchFuelTankByIdsGQL,\r\n FetchLocationByIdGQL,\r\n FetchLocationByIdsGQL,\r\n FetchMedicalFacilityContactByIdGQL,\r\n FetchMedicalFacilityContactByIdsGQL,\r\n FetchMedicalFacilityByIdGQL,\r\n FetchMedicalFacilityByIdsGQL,\r\n FetchMedicalFacilityPhysicianByIdGQL,\r\n FetchMedicalFacilityPhysicianByIdsGQL,\r\n FetchMedicalFacilityUnitByIdGQL,\r\n FetchMedicalFacilityUnitByIdsGQL,\r\n FetchMedicalUnitByIdGQL,\r\n FetchMedicalUnitByIdsGQL,\r\n FetchPersonByIdGQL,\r\n FetchPersonByIdsGQL,\r\n FetchPhysicianByIdGQL,\r\n FetchPhysicianByIdsGQL,\r\n FetchProgramBaseByIdGQL,\r\n FetchProgramBaseByIdsGQL,\r\n FetchProgramByIdGQL,\r\n FetchProgramByIdsGQL,\r\n FetchRamcoVehicleConfigurationByIdGQL,\r\n FetchRamcoVehicleConfigurationByIdsGQL,\r\n FetchRegionBaseByIdGQL,\r\n FetchRegionBaseByIdsGQL,\r\n FetchRegionByIdGQL,\r\n FetchRegionByIdsGQL,\r\n FetchRegionGroupByIdGQL,\r\n FetchRegionGroupByIdsGQL,\r\n FetchSpecialtyTeamByIdGQL,\r\n FetchSpecialtyTeamByIdsGQL,\r\n FetchSpecialtyTeamMemberByIdGQL,\r\n FetchSpecialtyTeamMemberByIdsGQL,\r\n FetchSupportRequestByIdGQL,\r\n FetchSupportRequestByIdsGQL,\r\n FetchTimezoneByIdGQL,\r\n FetchTimezoneByIdsGQL,\r\n FetchTransferCenterByIdGQL,\r\n FetchTransferCenterByIdsGQL,\r\n FetchTrmUserAgencyByIdGQL,\r\n FetchTrmUserAgencyByIdsGQL,\r\n FetchTrmUserByIdGQL,\r\n FetchTrmUserByIdsGQL,\r\n FetchTrmUserMedicalFacilityByIdGQL,\r\n FetchTrmUserMedicalFacilityByIdsGQL,\r\n FetchTrmUserProgramByIdGQL,\r\n FetchTrmUserProgramByIdsGQL,\r\n FetchVehicleControlZoneByIdGQL,\r\n FetchVehicleControlZoneByIdsGQL,\r\n FetchVehicleByIdGQL,\r\n FetchVehicleByIdsGQL,\r\n FetchVehicleMaintenanceByIdGQL,\r\n FetchVehicleMaintenanceByIdsGQL,\r\n FetchVehicleMakeByIdGQL,\r\n FetchVehicleMakeByIdsGQL,\r\n FetchVehicleModelByIdGQL,\r\n FetchVehicleModelByIdsGQL,\r\n FetchVehicleStateInspectionByIdGQL,\r\n FetchVehicleStateInspectionByIdsGQL,\r\n FetchActiveCardUnitOfferingByIdGQL,\r\n FetchActiveCardUnitOfferingByIdsGQL,\r\n FetchVehiclePositionSummaryByIdGQL,\r\n FetchVehiclePositionSummaryByIdsGQL,\r\n} from 'src/graphql/generated/graphql.generated';\r\n\r\nimport { Injectable } from '@angular/core';\r\nimport { ClientSyncFetchService } from 'src/store/fetch-services';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { map, take } from 'rxjs/operators';\r\nimport { StoreService } from 'src/store/store.service';\r\n\r\nexport type TcsEntityRecord =\r\n | ActivationRuleRecord\r\n | ActiveAlertRecord\r\n | ActiveTimelineRecord\r\n | AlertRecord\r\n | ApplicationNotificationRecord\r\n | AssignmentDelayedReasonRecord\r\n | CancellationCategoryRecord\r\n | CancellationReasonRecord\r\n | CancellationSecondaryReasonRecord\r\n | CardRecord\r\n | CardLinkRecord\r\n | CardNoteArchiveRecord\r\n | CardNoteRecord\r\n | CardReOpenReasonRecord\r\n | CardSummaryRecord\r\n | ConfigurationSettingRecord\r\n | DeclineCategoryRecord\r\n | DeclineReasonRecord\r\n | DeclineSecondaryReasonRecord\r\n | DiversionReasonRecord\r\n | EscortRequestRecord\r\n | EstimatedDurationRecord\r\n | EtaRecord\r\n | ExternalActionRecord\r\n | ExternalActionTypeRecord\r\n | ExternalSystemUnitRecord\r\n | FacilityNonAcceptanceReasonRecord\r\n | FirewallRuleRecord\r\n | FlightFollowingReportRecord\r\n | LandingZoneOutOfServiceReasonRecord\r\n | LocationHazardAttachmentRecord\r\n | LocationHazardRecord\r\n | ManifestEntryRecord\r\n | MedicalControlContactLogEntryRecord\r\n | MessageStatusUpdateRecord\r\n | NextDueTypeRecord\r\n | NonReferralReasonRecord\r\n | NotificationRecord\r\n | NotificationGroupRecord\r\n | NotificationGroupMemberRecord\r\n | NotificationRecipientRecord\r\n | NotificationSubscriptionRecord\r\n | NotificationTemplateRecord\r\n | OemActivityRecord\r\n | OemAssetRecord\r\n | OemPlanChangeRequestRecord\r\n | OemPlanRecord\r\n | OfferAlgorithmRecord\r\n | OperationRecord\r\n | OutOfServiceEventRecord\r\n | OutOfServiceEventNoteRecord\r\n | OutOfServiceReasonRecord\r\n | OutOfServiceSecondaryReasonRecord\r\n | PassdownLogAcknowledgementRecord\r\n | PassdownLogRecord\r\n | PatientRecord\r\n | PositionReportAlertRecord\r\n | PositionReportArchiveRecord\r\n | PositionReportRecord\r\n | QuestionChoiceRecord\r\n | QuestionRecord\r\n | QuestionnaireRecord\r\n | QuestionnaireQuestionResponseRecord\r\n | QuestionnaireQuestionResponseNoteRecord\r\n | QuestionnaireResponseRecord\r\n | QuestionnaireSectionRecord\r\n | QuestionnaireSectionQuestionRecord\r\n | ReceivingFacilityRequestRecord\r\n | RendezvousRequestRecord\r\n | RequestRecord\r\n | RequesterRecord\r\n | RequesterReferralReasonRecord\r\n | RequesterRoleRecord\r\n | RequestLocationRecord\r\n | RequestPatientRecord\r\n | SystemTimerRecord\r\n | TimelineRecord\r\n | TimelineItemRecord\r\n | TimestampRecord\r\n | TimestampTypeRecord\r\n | TrackedMessageRecord\r\n | TransferReasonRecord\r\n | TransportOfferRecord\r\n | TransportOfferOptionRecord\r\n | TransportReasonRecord\r\n | TripRecord\r\n | TripLegRecord\r\n | TripPassengerRecord\r\n | UnitActivationRuleRecord\r\n | UnitEMSystemMappingRecord\r\n | UnitRecord\r\n | UnitNoteRecord\r\n | UnitPositionRecord\r\n | UnitShiftRecord\r\n | UnitStatusHistoryEntryRecord\r\n | UnitSummaryRecord\r\n | VehicleDispositionRecord\r\n | VehicleSummaryRecord\r\n | WaypointRecord\r\n | WebOrderLogRecord\r\n | AccessibleItemRecord\r\n | AgencyRecord\r\n | AgencyLocationRecord\r\n | AirportRecord\r\n | ArchiveLogRecord\r\n | BaseControlZoneRecord\r\n | BaseRecord\r\n | BaseMedicalControlContactRecord\r\n | BaseMedicalControlContactStateRecord\r\n | CapabilityRecord\r\n | CommunicationCenterRecord\r\n | CommunicationCenterTransportOfferOptionRecord\r\n | CompanyRecord\r\n | CompleteFlightInstanceRecord\r\n | ControlZoneRecord\r\n | DepartmentRecord\r\n | EntityCapabilityRecord\r\n | ExternalReferenceRecord\r\n | FboRecord\r\n | FuelTankRecord\r\n | LocationRecord\r\n | MedicalFacilityContactRecord\r\n | MedicalFacilityRecord\r\n | MedicalFacilityPhysicianRecord\r\n | MedicalFacilityUnitRecord\r\n | MedicalUnitRecord\r\n | PersonRecord\r\n | PhysicianRecord\r\n | ProgramBaseRecord\r\n | ProgramRecord\r\n | RamcoVehicleConfigurationRecord\r\n | RegionBaseRecord\r\n | RegionRecord\r\n | RegionGroupRecord\r\n | SpecialtyTeamRecord\r\n | SpecialtyTeamMemberRecord\r\n | SupportRequestRecord\r\n | TimezoneRecord\r\n | TransferCenterRecord\r\n | TrmUserAgencyRecord\r\n | TrmUserRecord\r\n | TrmUserMedicalFacilityRecord\r\n | TrmUserProgramRecord\r\n | VehicleControlZoneRecord\r\n | VehicleRecord\r\n | VehicleMaintenanceRecord\r\n | VehicleMakeRecord\r\n | VehicleModelRecord\r\n | VehicleStateInspectionRecord\r\n | ActiveCardUnitOfferingRecord\r\n | VehiclePositionSummaryRecord;\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ActivationRuleEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchActivationRuleByIdGQL,\r\n byIdsQuery: FetchActivationRuleByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectActivationRuleById,\r\n selectActivationRuleEntitiesByIds,\r\n ActivationRuleRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ActivationRuleEntityResolver {\r\n constructor(private readonly _fetchService: ActivationRuleEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const activationRuleId: string | undefined = [\r\n route.params.activationRuleId,\r\n route.params.id,\r\n route.queryParams.activationRuleId,\r\n ].find((id) => id != null);\r\n if (activationRuleId == null) {\r\n throw new Error(\r\n `ActivationRuleEntityResolver: Unable to resolve entity of type 'ActivationRule'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(activationRuleId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((activationRule) => {\r\n if (activationRule == null) {\r\n throw new Error(\r\n `ActivationRuleEntityResolver: unable to resolve entity of type 'ActivationRule' for id '${activationRuleId}'`,\r\n );\r\n }\r\n return activationRule;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ActiveAlertEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchActiveAlertByIdGQL,\r\n byIdsQuery: FetchActiveAlertByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectActiveAlertById,\r\n selectActiveAlertEntitiesByIds,\r\n ActiveAlertRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ActiveAlertEntityResolver {\r\n constructor(private readonly _fetchService: ActiveAlertEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const activeAlertId: string | undefined = [\r\n route.params.activeAlertId,\r\n route.params.id,\r\n route.queryParams.activeAlertId,\r\n ].find((id) => id != null);\r\n if (activeAlertId == null) {\r\n throw new Error(\r\n `ActiveAlertEntityResolver: Unable to resolve entity of type 'ActiveAlert'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(activeAlertId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((activeAlert) => {\r\n if (activeAlert == null) {\r\n throw new Error(\r\n `ActiveAlertEntityResolver: unable to resolve entity of type 'ActiveAlert' for id '${activeAlertId}'`,\r\n );\r\n }\r\n return activeAlert;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ActiveTimelineEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchActiveTimelineByIdGQL,\r\n byIdsQuery: FetchActiveTimelineByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectActiveTimelineById,\r\n selectActiveTimelineEntitiesByIds,\r\n ActiveTimelineRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ActiveTimelineEntityResolver {\r\n constructor(private readonly _fetchService: ActiveTimelineEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const activeTimelineId: string | undefined = [\r\n route.params.activeTimelineId,\r\n route.params.id,\r\n route.queryParams.activeTimelineId,\r\n ].find((id) => id != null);\r\n if (activeTimelineId == null) {\r\n throw new Error(\r\n `ActiveTimelineEntityResolver: Unable to resolve entity of type 'ActiveTimeline'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(activeTimelineId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((activeTimeline) => {\r\n if (activeTimeline == null) {\r\n throw new Error(\r\n `ActiveTimelineEntityResolver: unable to resolve entity of type 'ActiveTimeline' for id '${activeTimelineId}'`,\r\n );\r\n }\r\n return activeTimeline;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AlertEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchAlertByIdGQL,\r\n byIdsQuery: FetchAlertByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectAlertById,\r\n selectAlertEntitiesByIds,\r\n AlertRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AlertEntityResolver {\r\n constructor(private readonly _fetchService: AlertEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const alertId: string | undefined = [\r\n route.params.alertId,\r\n route.params.id,\r\n route.queryParams.alertId,\r\n ].find((id) => id != null);\r\n if (alertId == null) {\r\n throw new Error(\r\n `AlertEntityResolver: Unable to resolve entity of type 'Alert'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(alertId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((alert) => {\r\n if (alert == null) {\r\n throw new Error(\r\n `AlertEntityResolver: unable to resolve entity of type 'Alert' for id '${alertId}'`,\r\n );\r\n }\r\n return alert;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ApplicationNotificationEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchApplicationNotificationByIdGQL,\r\n byIdsQuery: FetchApplicationNotificationByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectApplicationNotificationById,\r\n selectApplicationNotificationEntitiesByIds,\r\n ApplicationNotificationRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ApplicationNotificationEntityResolver {\r\n constructor(private readonly _fetchService: ApplicationNotificationEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const applicationNotificationId: string | undefined = [\r\n route.params.applicationNotificationId,\r\n route.params.id,\r\n route.queryParams.applicationNotificationId,\r\n ].find((id) => id != null);\r\n if (applicationNotificationId == null) {\r\n throw new Error(\r\n `ApplicationNotificationEntityResolver: Unable to resolve entity of type 'ApplicationNotification'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(applicationNotificationId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((applicationNotification) => {\r\n if (applicationNotification == null) {\r\n throw new Error(\r\n `ApplicationNotificationEntityResolver: unable to resolve entity of type 'ApplicationNotification' for id '${applicationNotificationId}'`,\r\n );\r\n }\r\n return applicationNotification;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AssignmentDelayedReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchAssignmentDelayedReasonByIdGQL,\r\n byIdsQuery: FetchAssignmentDelayedReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectAssignmentDelayedReasonById,\r\n selectAssignmentDelayedReasonEntitiesByIds,\r\n AssignmentDelayedReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AssignmentDelayedReasonEntityResolver {\r\n constructor(private readonly _fetchService: AssignmentDelayedReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const assignmentDelayedReasonId: string | undefined = [\r\n route.params.assignmentDelayedReasonId,\r\n route.params.id,\r\n route.queryParams.assignmentDelayedReasonId,\r\n ].find((id) => id != null);\r\n if (assignmentDelayedReasonId == null) {\r\n throw new Error(\r\n `AssignmentDelayedReasonEntityResolver: Unable to resolve entity of type 'AssignmentDelayedReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(assignmentDelayedReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((assignmentDelayedReason) => {\r\n if (assignmentDelayedReason == null) {\r\n throw new Error(\r\n `AssignmentDelayedReasonEntityResolver: unable to resolve entity of type 'AssignmentDelayedReason' for id '${assignmentDelayedReasonId}'`,\r\n );\r\n }\r\n return assignmentDelayedReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CancellationCategoryEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCancellationCategoryByIdGQL,\r\n byIdsQuery: FetchCancellationCategoryByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCancellationCategoryById,\r\n selectCancellationCategoryEntitiesByIds,\r\n CancellationCategoryRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CancellationCategoryEntityResolver {\r\n constructor(private readonly _fetchService: CancellationCategoryEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const cancellationCategoryId: string | undefined = [\r\n route.params.cancellationCategoryId,\r\n route.params.id,\r\n route.queryParams.cancellationCategoryId,\r\n ].find((id) => id != null);\r\n if (cancellationCategoryId == null) {\r\n throw new Error(\r\n `CancellationCategoryEntityResolver: Unable to resolve entity of type 'CancellationCategory'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(cancellationCategoryId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((cancellationCategory) => {\r\n if (cancellationCategory == null) {\r\n throw new Error(\r\n `CancellationCategoryEntityResolver: unable to resolve entity of type 'CancellationCategory' for id '${cancellationCategoryId}'`,\r\n );\r\n }\r\n return cancellationCategory;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CancellationReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCancellationReasonByIdGQL,\r\n byIdsQuery: FetchCancellationReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCancellationReasonById,\r\n selectCancellationReasonEntitiesByIds,\r\n CancellationReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CancellationReasonEntityResolver {\r\n constructor(private readonly _fetchService: CancellationReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const cancellationReasonId: string | undefined = [\r\n route.params.cancellationReasonId,\r\n route.params.id,\r\n route.queryParams.cancellationReasonId,\r\n ].find((id) => id != null);\r\n if (cancellationReasonId == null) {\r\n throw new Error(\r\n `CancellationReasonEntityResolver: Unable to resolve entity of type 'CancellationReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(cancellationReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((cancellationReason) => {\r\n if (cancellationReason == null) {\r\n throw new Error(\r\n `CancellationReasonEntityResolver: unable to resolve entity of type 'CancellationReason' for id '${cancellationReasonId}'`,\r\n );\r\n }\r\n return cancellationReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CancellationSecondaryReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCancellationSecondaryReasonByIdGQL,\r\n byIdsQuery: FetchCancellationSecondaryReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCancellationSecondaryReasonById,\r\n selectCancellationSecondaryReasonEntitiesByIds,\r\n CancellationSecondaryReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CancellationSecondaryReasonEntityResolver {\r\n constructor(private readonly _fetchService: CancellationSecondaryReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const cancellationSecondaryReasonId: string | undefined = [\r\n route.params.cancellationSecondaryReasonId,\r\n route.params.id,\r\n route.queryParams.cancellationSecondaryReasonId,\r\n ].find((id) => id != null);\r\n if (cancellationSecondaryReasonId == null) {\r\n throw new Error(\r\n `CancellationSecondaryReasonEntityResolver: Unable to resolve entity of type 'CancellationSecondaryReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(cancellationSecondaryReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((cancellationSecondaryReason) => {\r\n if (cancellationSecondaryReason == null) {\r\n throw new Error(\r\n `CancellationSecondaryReasonEntityResolver: unable to resolve entity of type 'CancellationSecondaryReason' for id '${cancellationSecondaryReasonId}'`,\r\n );\r\n }\r\n return cancellationSecondaryReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCardByIdGQL,\r\n byIdsQuery: FetchCardByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCardById,\r\n selectCardEntitiesByIds,\r\n CardRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardEntityResolver {\r\n constructor(private readonly _fetchService: CardEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const cardId: string | undefined = [\r\n route.params.cardId,\r\n route.params.id,\r\n route.queryParams.cardId,\r\n ].find((id) => id != null);\r\n if (cardId == null) {\r\n throw new Error(\r\n `CardEntityResolver: Unable to resolve entity of type 'Card'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(cardId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((card) => {\r\n if (card == null) {\r\n throw new Error(\r\n `CardEntityResolver: unable to resolve entity of type 'Card' for id '${cardId}'`,\r\n );\r\n }\r\n return card;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardLinkEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCardLinkByIdGQL,\r\n byIdsQuery: FetchCardLinkByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCardLinkById,\r\n selectCardLinkEntitiesByIds,\r\n CardLinkRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardLinkEntityResolver {\r\n constructor(private readonly _fetchService: CardLinkEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const cardLinkId: string | undefined = [\r\n route.params.cardLinkId,\r\n route.params.id,\r\n route.queryParams.cardLinkId,\r\n ].find((id) => id != null);\r\n if (cardLinkId == null) {\r\n throw new Error(\r\n `CardLinkEntityResolver: Unable to resolve entity of type 'CardLink'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(cardLinkId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((cardLink) => {\r\n if (cardLink == null) {\r\n throw new Error(\r\n `CardLinkEntityResolver: unable to resolve entity of type 'CardLink' for id '${cardLinkId}'`,\r\n );\r\n }\r\n return cardLink;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardNoteArchiveEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCardNoteArchiveByIdGQL,\r\n byIdsQuery: FetchCardNoteArchiveByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCardNoteArchiveById,\r\n selectCardNoteArchiveEntitiesByIds,\r\n CardNoteArchiveRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardNoteArchiveEntityResolver {\r\n constructor(private readonly _fetchService: CardNoteArchiveEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const cardNoteArchiveId: string | undefined = [\r\n route.params.cardNoteArchiveId,\r\n route.params.id,\r\n route.queryParams.cardNoteArchiveId,\r\n ].find((id) => id != null);\r\n if (cardNoteArchiveId == null) {\r\n throw new Error(\r\n `CardNoteArchiveEntityResolver: Unable to resolve entity of type 'CardNoteArchive'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(cardNoteArchiveId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((cardNoteArchive) => {\r\n if (cardNoteArchive == null) {\r\n throw new Error(\r\n `CardNoteArchiveEntityResolver: unable to resolve entity of type 'CardNoteArchive' for id '${cardNoteArchiveId}'`,\r\n );\r\n }\r\n return cardNoteArchive;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardNoteEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCardNoteByIdGQL,\r\n byIdsQuery: FetchCardNoteByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCardNoteById,\r\n selectCardNoteEntitiesByIds,\r\n CardNoteRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardNoteEntityResolver {\r\n constructor(private readonly _fetchService: CardNoteEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const cardNoteId: string | undefined = [\r\n route.params.cardNoteId,\r\n route.params.id,\r\n route.queryParams.cardNoteId,\r\n ].find((id) => id != null);\r\n if (cardNoteId == null) {\r\n throw new Error(\r\n `CardNoteEntityResolver: Unable to resolve entity of type 'CardNote'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(cardNoteId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((cardNote) => {\r\n if (cardNote == null) {\r\n throw new Error(\r\n `CardNoteEntityResolver: unable to resolve entity of type 'CardNote' for id '${cardNoteId}'`,\r\n );\r\n }\r\n return cardNote;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardReOpenReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCardReOpenReasonByIdGQL,\r\n byIdsQuery: FetchCardReOpenReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCardReOpenReasonById,\r\n selectCardReOpenReasonEntitiesByIds,\r\n CardReOpenReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardReOpenReasonEntityResolver {\r\n constructor(private readonly _fetchService: CardReOpenReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const cardReOpenReasonId: string | undefined = [\r\n route.params.cardReOpenReasonId,\r\n route.params.id,\r\n route.queryParams.cardReOpenReasonId,\r\n ].find((id) => id != null);\r\n if (cardReOpenReasonId == null) {\r\n throw new Error(\r\n `CardReOpenReasonEntityResolver: Unable to resolve entity of type 'CardReOpenReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(cardReOpenReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((cardReOpenReason) => {\r\n if (cardReOpenReason == null) {\r\n throw new Error(\r\n `CardReOpenReasonEntityResolver: unable to resolve entity of type 'CardReOpenReason' for id '${cardReOpenReasonId}'`,\r\n );\r\n }\r\n return cardReOpenReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardSummaryEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCardSummaryByIdGQL,\r\n byIdsQuery: FetchCardSummaryByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCardSummaryById,\r\n selectCardSummaryEntitiesByIds,\r\n CardSummaryRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardSummaryEntityResolver {\r\n constructor(private readonly _fetchService: CardSummaryEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const cardSummaryId: string | undefined = [\r\n route.params.cardSummaryId,\r\n route.params.id,\r\n route.queryParams.cardSummaryId,\r\n ].find((id) => id != null);\r\n if (cardSummaryId == null) {\r\n throw new Error(\r\n `CardSummaryEntityResolver: Unable to resolve entity of type 'CardSummary'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(cardSummaryId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((cardSummary) => {\r\n if (cardSummary == null) {\r\n throw new Error(\r\n `CardSummaryEntityResolver: unable to resolve entity of type 'CardSummary' for id '${cardSummaryId}'`,\r\n );\r\n }\r\n return cardSummary;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ConfigurationSettingEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchConfigurationSettingByIdGQL,\r\n byIdsQuery: FetchConfigurationSettingByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectConfigurationSettingById,\r\n selectConfigurationSettingEntitiesByIds,\r\n ConfigurationSettingRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ConfigurationSettingEntityResolver {\r\n constructor(private readonly _fetchService: ConfigurationSettingEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const configurationSettingId: string | undefined = [\r\n route.params.configurationSettingId,\r\n route.params.id,\r\n route.queryParams.configurationSettingId,\r\n ].find((id) => id != null);\r\n if (configurationSettingId == null) {\r\n throw new Error(\r\n `ConfigurationSettingEntityResolver: Unable to resolve entity of type 'ConfigurationSetting'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(configurationSettingId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((configurationSetting) => {\r\n if (configurationSetting == null) {\r\n throw new Error(\r\n `ConfigurationSettingEntityResolver: unable to resolve entity of type 'ConfigurationSetting' for id '${configurationSettingId}'`,\r\n );\r\n }\r\n return configurationSetting;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class DeclineCategoryEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchDeclineCategoryByIdGQL,\r\n byIdsQuery: FetchDeclineCategoryByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectDeclineCategoryById,\r\n selectDeclineCategoryEntitiesByIds,\r\n DeclineCategoryRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class DeclineCategoryEntityResolver {\r\n constructor(private readonly _fetchService: DeclineCategoryEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const declineCategoryId: string | undefined = [\r\n route.params.declineCategoryId,\r\n route.params.id,\r\n route.queryParams.declineCategoryId,\r\n ].find((id) => id != null);\r\n if (declineCategoryId == null) {\r\n throw new Error(\r\n `DeclineCategoryEntityResolver: Unable to resolve entity of type 'DeclineCategory'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(declineCategoryId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((declineCategory) => {\r\n if (declineCategory == null) {\r\n throw new Error(\r\n `DeclineCategoryEntityResolver: unable to resolve entity of type 'DeclineCategory' for id '${declineCategoryId}'`,\r\n );\r\n }\r\n return declineCategory;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class DeclineReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchDeclineReasonByIdGQL,\r\n byIdsQuery: FetchDeclineReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectDeclineReasonById,\r\n selectDeclineReasonEntitiesByIds,\r\n DeclineReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class DeclineReasonEntityResolver {\r\n constructor(private readonly _fetchService: DeclineReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const declineReasonId: string | undefined = [\r\n route.params.declineReasonId,\r\n route.params.id,\r\n route.queryParams.declineReasonId,\r\n ].find((id) => id != null);\r\n if (declineReasonId == null) {\r\n throw new Error(\r\n `DeclineReasonEntityResolver: Unable to resolve entity of type 'DeclineReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(declineReasonId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((declineReason) => {\r\n if (declineReason == null) {\r\n throw new Error(\r\n `DeclineReasonEntityResolver: unable to resolve entity of type 'DeclineReason' for id '${declineReasonId}'`,\r\n );\r\n }\r\n return declineReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class DeclineSecondaryReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchDeclineSecondaryReasonByIdGQL,\r\n byIdsQuery: FetchDeclineSecondaryReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectDeclineSecondaryReasonById,\r\n selectDeclineSecondaryReasonEntitiesByIds,\r\n DeclineSecondaryReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class DeclineSecondaryReasonEntityResolver {\r\n constructor(private readonly _fetchService: DeclineSecondaryReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const declineSecondaryReasonId: string | undefined = [\r\n route.params.declineSecondaryReasonId,\r\n route.params.id,\r\n route.queryParams.declineSecondaryReasonId,\r\n ].find((id) => id != null);\r\n if (declineSecondaryReasonId == null) {\r\n throw new Error(\r\n `DeclineSecondaryReasonEntityResolver: Unable to resolve entity of type 'DeclineSecondaryReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(declineSecondaryReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((declineSecondaryReason) => {\r\n if (declineSecondaryReason == null) {\r\n throw new Error(\r\n `DeclineSecondaryReasonEntityResolver: unable to resolve entity of type 'DeclineSecondaryReason' for id '${declineSecondaryReasonId}'`,\r\n );\r\n }\r\n return declineSecondaryReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class DiversionReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchDiversionReasonByIdGQL,\r\n byIdsQuery: FetchDiversionReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectDiversionReasonById,\r\n selectDiversionReasonEntitiesByIds,\r\n DiversionReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class DiversionReasonEntityResolver {\r\n constructor(private readonly _fetchService: DiversionReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const diversionReasonId: string | undefined = [\r\n route.params.diversionReasonId,\r\n route.params.id,\r\n route.queryParams.diversionReasonId,\r\n ].find((id) => id != null);\r\n if (diversionReasonId == null) {\r\n throw new Error(\r\n `DiversionReasonEntityResolver: Unable to resolve entity of type 'DiversionReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(diversionReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((diversionReason) => {\r\n if (diversionReason == null) {\r\n throw new Error(\r\n `DiversionReasonEntityResolver: unable to resolve entity of type 'DiversionReason' for id '${diversionReasonId}'`,\r\n );\r\n }\r\n return diversionReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class EscortRequestEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchEscortRequestByIdGQL,\r\n byIdsQuery: FetchEscortRequestByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectEscortRequestById,\r\n selectEscortRequestEntitiesByIds,\r\n EscortRequestRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class EscortRequestEntityResolver {\r\n constructor(private readonly _fetchService: EscortRequestEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const escortRequestId: string | undefined = [\r\n route.params.escortRequestId,\r\n route.params.id,\r\n route.queryParams.escortRequestId,\r\n ].find((id) => id != null);\r\n if (escortRequestId == null) {\r\n throw new Error(\r\n `EscortRequestEntityResolver: Unable to resolve entity of type 'EscortRequest'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(escortRequestId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((escortRequest) => {\r\n if (escortRequest == null) {\r\n throw new Error(\r\n `EscortRequestEntityResolver: unable to resolve entity of type 'EscortRequest' for id '${escortRequestId}'`,\r\n );\r\n }\r\n return escortRequest;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class EstimatedDurationEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchEstimatedDurationByIdGQL,\r\n byIdsQuery: FetchEstimatedDurationByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectEstimatedDurationById,\r\n selectEstimatedDurationEntitiesByIds,\r\n EstimatedDurationRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class EstimatedDurationEntityResolver {\r\n constructor(private readonly _fetchService: EstimatedDurationEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const estimatedDurationId: string | undefined = [\r\n route.params.estimatedDurationId,\r\n route.params.id,\r\n route.queryParams.estimatedDurationId,\r\n ].find((id) => id != null);\r\n if (estimatedDurationId == null) {\r\n throw new Error(\r\n `EstimatedDurationEntityResolver: Unable to resolve entity of type 'EstimatedDuration'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(estimatedDurationId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((estimatedDuration) => {\r\n if (estimatedDuration == null) {\r\n throw new Error(\r\n `EstimatedDurationEntityResolver: unable to resolve entity of type 'EstimatedDuration' for id '${estimatedDurationId}'`,\r\n );\r\n }\r\n return estimatedDuration;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class EtaEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchEtaByIdGQL,\r\n byIdsQuery: FetchEtaByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(byIdQuery, byIdsQuery, _store, selectEtaById, selectEtaEntitiesByIds, EtaRecord.fromJS);\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class EtaEntityResolver {\r\n constructor(private readonly _fetchService: EtaEntityFetchService) {}\r\n\r\n public resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n const etaId: string | undefined = [\r\n route.params.etaId,\r\n route.params.id,\r\n route.queryParams.etaId,\r\n ].find((id) => id != null);\r\n if (etaId == null) {\r\n throw new Error(\r\n `EtaEntityResolver: Unable to resolve entity of type 'Eta'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(etaId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((eta) => {\r\n if (eta == null) {\r\n throw new Error(\r\n `EtaEntityResolver: unable to resolve entity of type 'Eta' for id '${etaId}'`,\r\n );\r\n }\r\n return eta;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ExternalActionEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchExternalActionByIdGQL,\r\n byIdsQuery: FetchExternalActionByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectExternalActionById,\r\n selectExternalActionEntitiesByIds,\r\n ExternalActionRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ExternalActionEntityResolver {\r\n constructor(private readonly _fetchService: ExternalActionEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const externalActionId: string | undefined = [\r\n route.params.externalActionId,\r\n route.params.id,\r\n route.queryParams.externalActionId,\r\n ].find((id) => id != null);\r\n if (externalActionId == null) {\r\n throw new Error(\r\n `ExternalActionEntityResolver: Unable to resolve entity of type 'ExternalAction'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(externalActionId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((externalAction) => {\r\n if (externalAction == null) {\r\n throw new Error(\r\n `ExternalActionEntityResolver: unable to resolve entity of type 'ExternalAction' for id '${externalActionId}'`,\r\n );\r\n }\r\n return externalAction;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ExternalActionTypeEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchExternalActionTypeByIdGQL,\r\n byIdsQuery: FetchExternalActionTypeByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectExternalActionTypeById,\r\n selectExternalActionTypeEntitiesByIds,\r\n ExternalActionTypeRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ExternalActionTypeEntityResolver {\r\n constructor(private readonly _fetchService: ExternalActionTypeEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const externalActionTypeId: string | undefined = [\r\n route.params.externalActionTypeId,\r\n route.params.id,\r\n route.queryParams.externalActionTypeId,\r\n ].find((id) => id != null);\r\n if (externalActionTypeId == null) {\r\n throw new Error(\r\n `ExternalActionTypeEntityResolver: Unable to resolve entity of type 'ExternalActionType'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(externalActionTypeId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((externalActionType) => {\r\n if (externalActionType == null) {\r\n throw new Error(\r\n `ExternalActionTypeEntityResolver: unable to resolve entity of type 'ExternalActionType' for id '${externalActionTypeId}'`,\r\n );\r\n }\r\n return externalActionType;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ExternalSystemUnitEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchExternalSystemUnitByIdGQL,\r\n byIdsQuery: FetchExternalSystemUnitByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectExternalSystemUnitById,\r\n selectExternalSystemUnitEntitiesByIds,\r\n ExternalSystemUnitRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ExternalSystemUnitEntityResolver {\r\n constructor(private readonly _fetchService: ExternalSystemUnitEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const externalSystemUnitId: string | undefined = [\r\n route.params.externalSystemUnitId,\r\n route.params.id,\r\n route.queryParams.externalSystemUnitId,\r\n ].find((id) => id != null);\r\n if (externalSystemUnitId == null) {\r\n throw new Error(\r\n `ExternalSystemUnitEntityResolver: Unable to resolve entity of type 'ExternalSystemUnit'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(externalSystemUnitId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((externalSystemUnit) => {\r\n if (externalSystemUnit == null) {\r\n throw new Error(\r\n `ExternalSystemUnitEntityResolver: unable to resolve entity of type 'ExternalSystemUnit' for id '${externalSystemUnitId}'`,\r\n );\r\n }\r\n return externalSystemUnit;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class FacilityNonAcceptanceReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchFacilityNonAcceptanceReasonByIdGQL,\r\n byIdsQuery: FetchFacilityNonAcceptanceReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectFacilityNonAcceptanceReasonById,\r\n selectFacilityNonAcceptanceReasonEntitiesByIds,\r\n FacilityNonAcceptanceReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class FacilityNonAcceptanceReasonEntityResolver {\r\n constructor(private readonly _fetchService: FacilityNonAcceptanceReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const facilityNonAcceptanceReasonId: string | undefined = [\r\n route.params.facilityNonAcceptanceReasonId,\r\n route.params.id,\r\n route.queryParams.facilityNonAcceptanceReasonId,\r\n ].find((id) => id != null);\r\n if (facilityNonAcceptanceReasonId == null) {\r\n throw new Error(\r\n `FacilityNonAcceptanceReasonEntityResolver: Unable to resolve entity of type 'FacilityNonAcceptanceReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(facilityNonAcceptanceReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((facilityNonAcceptanceReason) => {\r\n if (facilityNonAcceptanceReason == null) {\r\n throw new Error(\r\n `FacilityNonAcceptanceReasonEntityResolver: unable to resolve entity of type 'FacilityNonAcceptanceReason' for id '${facilityNonAcceptanceReasonId}'`,\r\n );\r\n }\r\n return facilityNonAcceptanceReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class FirewallRuleEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchFirewallRuleByIdGQL,\r\n byIdsQuery: FetchFirewallRuleByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectFirewallRuleById,\r\n selectFirewallRuleEntitiesByIds,\r\n FirewallRuleRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class FirewallRuleEntityResolver {\r\n constructor(private readonly _fetchService: FirewallRuleEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const firewallRuleId: string | undefined = [\r\n route.params.firewallRuleId,\r\n route.params.id,\r\n route.queryParams.firewallRuleId,\r\n ].find((id) => id != null);\r\n if (firewallRuleId == null) {\r\n throw new Error(\r\n `FirewallRuleEntityResolver: Unable to resolve entity of type 'FirewallRule'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(firewallRuleId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((firewallRule) => {\r\n if (firewallRule == null) {\r\n throw new Error(\r\n `FirewallRuleEntityResolver: unable to resolve entity of type 'FirewallRule' for id '${firewallRuleId}'`,\r\n );\r\n }\r\n return firewallRule;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class FlightFollowingReportEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchFlightFollowingReportByIdGQL,\r\n byIdsQuery: FetchFlightFollowingReportByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectFlightFollowingReportById,\r\n selectFlightFollowingReportEntitiesByIds,\r\n FlightFollowingReportRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class FlightFollowingReportEntityResolver {\r\n constructor(private readonly _fetchService: FlightFollowingReportEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const flightFollowingReportId: string | undefined = [\r\n route.params.flightFollowingReportId,\r\n route.params.id,\r\n route.queryParams.flightFollowingReportId,\r\n ].find((id) => id != null);\r\n if (flightFollowingReportId == null) {\r\n throw new Error(\r\n `FlightFollowingReportEntityResolver: Unable to resolve entity of type 'FlightFollowingReport'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(flightFollowingReportId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((flightFollowingReport) => {\r\n if (flightFollowingReport == null) {\r\n throw new Error(\r\n `FlightFollowingReportEntityResolver: unable to resolve entity of type 'FlightFollowingReport' for id '${flightFollowingReportId}'`,\r\n );\r\n }\r\n return flightFollowingReport;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class LandingZoneOutOfServiceReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchLandingZoneOutOfServiceReasonByIdGQL,\r\n byIdsQuery: FetchLandingZoneOutOfServiceReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectLandingZoneOutOfServiceReasonById,\r\n selectLandingZoneOutOfServiceReasonEntitiesByIds,\r\n LandingZoneOutOfServiceReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class LandingZoneOutOfServiceReasonEntityResolver {\r\n constructor(private readonly _fetchService: LandingZoneOutOfServiceReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const landingZoneOutOfServiceReasonId: string | undefined = [\r\n route.params.landingZoneOutOfServiceReasonId,\r\n route.params.id,\r\n route.queryParams.landingZoneOutOfServiceReasonId,\r\n ].find((id) => id != null);\r\n if (landingZoneOutOfServiceReasonId == null) {\r\n throw new Error(\r\n `LandingZoneOutOfServiceReasonEntityResolver: Unable to resolve entity of type 'LandingZoneOutOfServiceReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(landingZoneOutOfServiceReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((landingZoneOutOfServiceReason) => {\r\n if (landingZoneOutOfServiceReason == null) {\r\n throw new Error(\r\n `LandingZoneOutOfServiceReasonEntityResolver: unable to resolve entity of type 'LandingZoneOutOfServiceReason' for id '${landingZoneOutOfServiceReasonId}'`,\r\n );\r\n }\r\n return landingZoneOutOfServiceReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class LocationHazardAttachmentEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchLocationHazardAttachmentByIdGQL,\r\n byIdsQuery: FetchLocationHazardAttachmentByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectLocationHazardAttachmentById,\r\n selectLocationHazardAttachmentEntitiesByIds,\r\n LocationHazardAttachmentRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class LocationHazardAttachmentEntityResolver {\r\n constructor(private readonly _fetchService: LocationHazardAttachmentEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const locationHazardAttachmentId: string | undefined = [\r\n route.params.locationHazardAttachmentId,\r\n route.params.id,\r\n route.queryParams.locationHazardAttachmentId,\r\n ].find((id) => id != null);\r\n if (locationHazardAttachmentId == null) {\r\n throw new Error(\r\n `LocationHazardAttachmentEntityResolver: Unable to resolve entity of type 'LocationHazardAttachment'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(locationHazardAttachmentId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((locationHazardAttachment) => {\r\n if (locationHazardAttachment == null) {\r\n throw new Error(\r\n `LocationHazardAttachmentEntityResolver: unable to resolve entity of type 'LocationHazardAttachment' for id '${locationHazardAttachmentId}'`,\r\n );\r\n }\r\n return locationHazardAttachment;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class LocationHazardEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchLocationHazardByIdGQL,\r\n byIdsQuery: FetchLocationHazardByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectLocationHazardById,\r\n selectLocationHazardEntitiesByIds,\r\n LocationHazardRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class LocationHazardEntityResolver {\r\n constructor(private readonly _fetchService: LocationHazardEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const locationHazardId: string | undefined = [\r\n route.params.locationHazardId,\r\n route.params.id,\r\n route.queryParams.locationHazardId,\r\n ].find((id) => id != null);\r\n if (locationHazardId == null) {\r\n throw new Error(\r\n `LocationHazardEntityResolver: Unable to resolve entity of type 'LocationHazard'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(locationHazardId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((locationHazard) => {\r\n if (locationHazard == null) {\r\n throw new Error(\r\n `LocationHazardEntityResolver: unable to resolve entity of type 'LocationHazard' for id '${locationHazardId}'`,\r\n );\r\n }\r\n return locationHazard;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ManifestEntryEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchManifestEntryByIdGQL,\r\n byIdsQuery: FetchManifestEntryByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectManifestEntryById,\r\n selectManifestEntryEntitiesByIds,\r\n ManifestEntryRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ManifestEntryEntityResolver {\r\n constructor(private readonly _fetchService: ManifestEntryEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const manifestEntryId: string | undefined = [\r\n route.params.manifestEntryId,\r\n route.params.id,\r\n route.queryParams.manifestEntryId,\r\n ].find((id) => id != null);\r\n if (manifestEntryId == null) {\r\n throw new Error(\r\n `ManifestEntryEntityResolver: Unable to resolve entity of type 'ManifestEntry'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(manifestEntryId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((manifestEntry) => {\r\n if (manifestEntry == null) {\r\n throw new Error(\r\n `ManifestEntryEntityResolver: unable to resolve entity of type 'ManifestEntry' for id '${manifestEntryId}'`,\r\n );\r\n }\r\n return manifestEntry;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MedicalControlContactLogEntryEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchMedicalControlContactLogEntryByIdGQL,\r\n byIdsQuery: FetchMedicalControlContactLogEntryByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectMedicalControlContactLogEntryById,\r\n selectMedicalControlContactLogEntryEntitiesByIds,\r\n MedicalControlContactLogEntryRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MedicalControlContactLogEntryEntityResolver {\r\n constructor(private readonly _fetchService: MedicalControlContactLogEntryEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const medicalControlContactLogEntryId: string | undefined = [\r\n route.params.medicalControlContactLogEntryId,\r\n route.params.id,\r\n route.queryParams.medicalControlContactLogEntryId,\r\n ].find((id) => id != null);\r\n if (medicalControlContactLogEntryId == null) {\r\n throw new Error(\r\n `MedicalControlContactLogEntryEntityResolver: Unable to resolve entity of type 'MedicalControlContactLogEntry'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(medicalControlContactLogEntryId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((medicalControlContactLogEntry) => {\r\n if (medicalControlContactLogEntry == null) {\r\n throw new Error(\r\n `MedicalControlContactLogEntryEntityResolver: unable to resolve entity of type 'MedicalControlContactLogEntry' for id '${medicalControlContactLogEntryId}'`,\r\n );\r\n }\r\n return medicalControlContactLogEntry;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MessageStatusUpdateEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchMessageStatusUpdateByIdGQL,\r\n byIdsQuery: FetchMessageStatusUpdateByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectMessageStatusUpdateById,\r\n selectMessageStatusUpdateEntitiesByIds,\r\n MessageStatusUpdateRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MessageStatusUpdateEntityResolver {\r\n constructor(private readonly _fetchService: MessageStatusUpdateEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const messageStatusUpdateId: string | undefined = [\r\n route.params.messageStatusUpdateId,\r\n route.params.id,\r\n route.queryParams.messageStatusUpdateId,\r\n ].find((id) => id != null);\r\n if (messageStatusUpdateId == null) {\r\n throw new Error(\r\n `MessageStatusUpdateEntityResolver: Unable to resolve entity of type 'MessageStatusUpdate'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(messageStatusUpdateId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((messageStatusUpdate) => {\r\n if (messageStatusUpdate == null) {\r\n throw new Error(\r\n `MessageStatusUpdateEntityResolver: unable to resolve entity of type 'MessageStatusUpdate' for id '${messageStatusUpdateId}'`,\r\n );\r\n }\r\n return messageStatusUpdate;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NextDueTypeEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchNextDueTypeByIdGQL,\r\n byIdsQuery: FetchNextDueTypeByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectNextDueTypeById,\r\n selectNextDueTypeEntitiesByIds,\r\n NextDueTypeRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NextDueTypeEntityResolver {\r\n constructor(private readonly _fetchService: NextDueTypeEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const nextDueTypeId: string | undefined = [\r\n route.params.nextDueTypeId,\r\n route.params.id,\r\n route.queryParams.nextDueTypeId,\r\n ].find((id) => id != null);\r\n if (nextDueTypeId == null) {\r\n throw new Error(\r\n `NextDueTypeEntityResolver: Unable to resolve entity of type 'NextDueType'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(nextDueTypeId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((nextDueType) => {\r\n if (nextDueType == null) {\r\n throw new Error(\r\n `NextDueTypeEntityResolver: unable to resolve entity of type 'NextDueType' for id '${nextDueTypeId}'`,\r\n );\r\n }\r\n return nextDueType;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NonReferralReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchNonReferralReasonByIdGQL,\r\n byIdsQuery: FetchNonReferralReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectNonReferralReasonById,\r\n selectNonReferralReasonEntitiesByIds,\r\n NonReferralReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NonReferralReasonEntityResolver {\r\n constructor(private readonly _fetchService: NonReferralReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const nonReferralReasonId: string | undefined = [\r\n route.params.nonReferralReasonId,\r\n route.params.id,\r\n route.queryParams.nonReferralReasonId,\r\n ].find((id) => id != null);\r\n if (nonReferralReasonId == null) {\r\n throw new Error(\r\n `NonReferralReasonEntityResolver: Unable to resolve entity of type 'NonReferralReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(nonReferralReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((nonReferralReason) => {\r\n if (nonReferralReason == null) {\r\n throw new Error(\r\n `NonReferralReasonEntityResolver: unable to resolve entity of type 'NonReferralReason' for id '${nonReferralReasonId}'`,\r\n );\r\n }\r\n return nonReferralReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NotificationEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchNotificationByIdGQL,\r\n byIdsQuery: FetchNotificationByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectNotificationById,\r\n selectNotificationEntitiesByIds,\r\n NotificationRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NotificationEntityResolver {\r\n constructor(private readonly _fetchService: NotificationEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const notificationId: string | undefined = [\r\n route.params.notificationId,\r\n route.params.id,\r\n route.queryParams.notificationId,\r\n ].find((id) => id != null);\r\n if (notificationId == null) {\r\n throw new Error(\r\n `NotificationEntityResolver: Unable to resolve entity of type 'Notification'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(notificationId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((notification) => {\r\n if (notification == null) {\r\n throw new Error(\r\n `NotificationEntityResolver: unable to resolve entity of type 'Notification' for id '${notificationId}'`,\r\n );\r\n }\r\n return notification;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NotificationGroupEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchNotificationGroupByIdGQL,\r\n byIdsQuery: FetchNotificationGroupByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectNotificationGroupById,\r\n selectNotificationGroupEntitiesByIds,\r\n NotificationGroupRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NotificationGroupEntityResolver {\r\n constructor(private readonly _fetchService: NotificationGroupEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const notificationGroupId: string | undefined = [\r\n route.params.notificationGroupId,\r\n route.params.id,\r\n route.queryParams.notificationGroupId,\r\n ].find((id) => id != null);\r\n if (notificationGroupId == null) {\r\n throw new Error(\r\n `NotificationGroupEntityResolver: Unable to resolve entity of type 'NotificationGroup'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(notificationGroupId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((notificationGroup) => {\r\n if (notificationGroup == null) {\r\n throw new Error(\r\n `NotificationGroupEntityResolver: unable to resolve entity of type 'NotificationGroup' for id '${notificationGroupId}'`,\r\n );\r\n }\r\n return notificationGroup;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NotificationGroupMemberEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchNotificationGroupMemberByIdGQL,\r\n byIdsQuery: FetchNotificationGroupMemberByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectNotificationGroupMemberById,\r\n selectNotificationGroupMemberEntitiesByIds,\r\n NotificationGroupMemberRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NotificationGroupMemberEntityResolver {\r\n constructor(private readonly _fetchService: NotificationGroupMemberEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const notificationGroupMemberId: string | undefined = [\r\n route.params.notificationGroupMemberId,\r\n route.params.id,\r\n route.queryParams.notificationGroupMemberId,\r\n ].find((id) => id != null);\r\n if (notificationGroupMemberId == null) {\r\n throw new Error(\r\n `NotificationGroupMemberEntityResolver: Unable to resolve entity of type 'NotificationGroupMember'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(notificationGroupMemberId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((notificationGroupMember) => {\r\n if (notificationGroupMember == null) {\r\n throw new Error(\r\n `NotificationGroupMemberEntityResolver: unable to resolve entity of type 'NotificationGroupMember' for id '${notificationGroupMemberId}'`,\r\n );\r\n }\r\n return notificationGroupMember;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NotificationRecipientEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchNotificationRecipientByIdGQL,\r\n byIdsQuery: FetchNotificationRecipientByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectNotificationRecipientById,\r\n selectNotificationRecipientEntitiesByIds,\r\n NotificationRecipientRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NotificationRecipientEntityResolver {\r\n constructor(private readonly _fetchService: NotificationRecipientEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const notificationRecipientId: string | undefined = [\r\n route.params.notificationRecipientId,\r\n route.params.id,\r\n route.queryParams.notificationRecipientId,\r\n ].find((id) => id != null);\r\n if (notificationRecipientId == null) {\r\n throw new Error(\r\n `NotificationRecipientEntityResolver: Unable to resolve entity of type 'NotificationRecipient'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(notificationRecipientId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((notificationRecipient) => {\r\n if (notificationRecipient == null) {\r\n throw new Error(\r\n `NotificationRecipientEntityResolver: unable to resolve entity of type 'NotificationRecipient' for id '${notificationRecipientId}'`,\r\n );\r\n }\r\n return notificationRecipient;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NotificationSubscriptionEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchNotificationSubscriptionByIdGQL,\r\n byIdsQuery: FetchNotificationSubscriptionByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectNotificationSubscriptionById,\r\n selectNotificationSubscriptionEntitiesByIds,\r\n NotificationSubscriptionRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NotificationSubscriptionEntityResolver {\r\n constructor(private readonly _fetchService: NotificationSubscriptionEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const notificationSubscriptionId: string | undefined = [\r\n route.params.notificationSubscriptionId,\r\n route.params.id,\r\n route.queryParams.notificationSubscriptionId,\r\n ].find((id) => id != null);\r\n if (notificationSubscriptionId == null) {\r\n throw new Error(\r\n `NotificationSubscriptionEntityResolver: Unable to resolve entity of type 'NotificationSubscription'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(notificationSubscriptionId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((notificationSubscription) => {\r\n if (notificationSubscription == null) {\r\n throw new Error(\r\n `NotificationSubscriptionEntityResolver: unable to resolve entity of type 'NotificationSubscription' for id '${notificationSubscriptionId}'`,\r\n );\r\n }\r\n return notificationSubscription;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NotificationTemplateEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchNotificationTemplateByIdGQL,\r\n byIdsQuery: FetchNotificationTemplateByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectNotificationTemplateById,\r\n selectNotificationTemplateEntitiesByIds,\r\n NotificationTemplateRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NotificationTemplateEntityResolver {\r\n constructor(private readonly _fetchService: NotificationTemplateEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const notificationTemplateId: string | undefined = [\r\n route.params.notificationTemplateId,\r\n route.params.id,\r\n route.queryParams.notificationTemplateId,\r\n ].find((id) => id != null);\r\n if (notificationTemplateId == null) {\r\n throw new Error(\r\n `NotificationTemplateEntityResolver: Unable to resolve entity of type 'NotificationTemplate'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(notificationTemplateId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((notificationTemplate) => {\r\n if (notificationTemplate == null) {\r\n throw new Error(\r\n `NotificationTemplateEntityResolver: unable to resolve entity of type 'NotificationTemplate' for id '${notificationTemplateId}'`,\r\n );\r\n }\r\n return notificationTemplate;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OemActivityEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchOemActivityByIdGQL,\r\n byIdsQuery: FetchOemActivityByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectOemActivityById,\r\n selectOemActivityEntitiesByIds,\r\n OemActivityRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OemActivityEntityResolver {\r\n constructor(private readonly _fetchService: OemActivityEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const oemActivityId: string | undefined = [\r\n route.params.oemActivityId,\r\n route.params.id,\r\n route.queryParams.oemActivityId,\r\n ].find((id) => id != null);\r\n if (oemActivityId == null) {\r\n throw new Error(\r\n `OemActivityEntityResolver: Unable to resolve entity of type 'OemActivity'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(oemActivityId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((oemActivity) => {\r\n if (oemActivity == null) {\r\n throw new Error(\r\n `OemActivityEntityResolver: unable to resolve entity of type 'OemActivity' for id '${oemActivityId}'`,\r\n );\r\n }\r\n return oemActivity;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OemAssetEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchOemAssetByIdGQL,\r\n byIdsQuery: FetchOemAssetByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectOemAssetById,\r\n selectOemAssetEntitiesByIds,\r\n OemAssetRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OemAssetEntityResolver {\r\n constructor(private readonly _fetchService: OemAssetEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const oemAssetId: string | undefined = [\r\n route.params.oemAssetId,\r\n route.params.id,\r\n route.queryParams.oemAssetId,\r\n ].find((id) => id != null);\r\n if (oemAssetId == null) {\r\n throw new Error(\r\n `OemAssetEntityResolver: Unable to resolve entity of type 'OemAsset'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(oemAssetId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((oemAsset) => {\r\n if (oemAsset == null) {\r\n throw new Error(\r\n `OemAssetEntityResolver: unable to resolve entity of type 'OemAsset' for id '${oemAssetId}'`,\r\n );\r\n }\r\n return oemAsset;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OemPlanChangeRequestEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchOemPlanChangeRequestByIdGQL,\r\n byIdsQuery: FetchOemPlanChangeRequestByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectOemPlanChangeRequestById,\r\n selectOemPlanChangeRequestEntitiesByIds,\r\n OemPlanChangeRequestRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OemPlanChangeRequestEntityResolver {\r\n constructor(private readonly _fetchService: OemPlanChangeRequestEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const oemPlanChangeRequestId: string | undefined = [\r\n route.params.oemPlanChangeRequestId,\r\n route.params.id,\r\n route.queryParams.oemPlanChangeRequestId,\r\n ].find((id) => id != null);\r\n if (oemPlanChangeRequestId == null) {\r\n throw new Error(\r\n `OemPlanChangeRequestEntityResolver: Unable to resolve entity of type 'OemPlanChangeRequest'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(oemPlanChangeRequestId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((oemPlanChangeRequest) => {\r\n if (oemPlanChangeRequest == null) {\r\n throw new Error(\r\n `OemPlanChangeRequestEntityResolver: unable to resolve entity of type 'OemPlanChangeRequest' for id '${oemPlanChangeRequestId}'`,\r\n );\r\n }\r\n return oemPlanChangeRequest;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OemPlanEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchOemPlanByIdGQL,\r\n byIdsQuery: FetchOemPlanByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectOemPlanById,\r\n selectOemPlanEntitiesByIds,\r\n OemPlanRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OemPlanEntityResolver {\r\n constructor(private readonly _fetchService: OemPlanEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const oemPlanId: string | undefined = [\r\n route.params.oemPlanId,\r\n route.params.id,\r\n route.queryParams.oemPlanId,\r\n ].find((id) => id != null);\r\n if (oemPlanId == null) {\r\n throw new Error(\r\n `OemPlanEntityResolver: Unable to resolve entity of type 'OemPlan'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(oemPlanId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((oemPlan) => {\r\n if (oemPlan == null) {\r\n throw new Error(\r\n `OemPlanEntityResolver: unable to resolve entity of type 'OemPlan' for id '${oemPlanId}'`,\r\n );\r\n }\r\n return oemPlan;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OfferAlgorithmEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchOfferAlgorithmByIdGQL,\r\n byIdsQuery: FetchOfferAlgorithmByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectOfferAlgorithmById,\r\n selectOfferAlgorithmEntitiesByIds,\r\n OfferAlgorithmRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OfferAlgorithmEntityResolver {\r\n constructor(private readonly _fetchService: OfferAlgorithmEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const offerAlgorithmId: string | undefined = [\r\n route.params.offerAlgorithmId,\r\n route.params.id,\r\n route.queryParams.offerAlgorithmId,\r\n ].find((id) => id != null);\r\n if (offerAlgorithmId == null) {\r\n throw new Error(\r\n `OfferAlgorithmEntityResolver: Unable to resolve entity of type 'OfferAlgorithm'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(offerAlgorithmId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((offerAlgorithm) => {\r\n if (offerAlgorithm == null) {\r\n throw new Error(\r\n `OfferAlgorithmEntityResolver: unable to resolve entity of type 'OfferAlgorithm' for id '${offerAlgorithmId}'`,\r\n );\r\n }\r\n return offerAlgorithm;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OperationEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchOperationByIdGQL,\r\n byIdsQuery: FetchOperationByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectOperationById,\r\n selectOperationEntitiesByIds,\r\n OperationRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OperationEntityResolver {\r\n constructor(private readonly _fetchService: OperationEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const operationId: string | undefined = [\r\n route.params.operationId,\r\n route.params.id,\r\n route.queryParams.operationId,\r\n ].find((id) => id != null);\r\n if (operationId == null) {\r\n throw new Error(\r\n `OperationEntityResolver: Unable to resolve entity of type 'Operation'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(operationId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((operation) => {\r\n if (operation == null) {\r\n throw new Error(\r\n `OperationEntityResolver: unable to resolve entity of type 'Operation' for id '${operationId}'`,\r\n );\r\n }\r\n return operation;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OutOfServiceEventEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchOutOfServiceEventByIdGQL,\r\n byIdsQuery: FetchOutOfServiceEventByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectOutOfServiceEventById,\r\n selectOutOfServiceEventEntitiesByIds,\r\n OutOfServiceEventRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OutOfServiceEventEntityResolver {\r\n constructor(private readonly _fetchService: OutOfServiceEventEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const outOfServiceEventId: string | undefined = [\r\n route.params.outOfServiceEventId,\r\n route.params.id,\r\n route.queryParams.outOfServiceEventId,\r\n ].find((id) => id != null);\r\n if (outOfServiceEventId == null) {\r\n throw new Error(\r\n `OutOfServiceEventEntityResolver: Unable to resolve entity of type 'OutOfServiceEvent'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(outOfServiceEventId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((outOfServiceEvent) => {\r\n if (outOfServiceEvent == null) {\r\n throw new Error(\r\n `OutOfServiceEventEntityResolver: unable to resolve entity of type 'OutOfServiceEvent' for id '${outOfServiceEventId}'`,\r\n );\r\n }\r\n return outOfServiceEvent;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OutOfServiceEventNoteEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchOutOfServiceEventNoteByIdGQL,\r\n byIdsQuery: FetchOutOfServiceEventNoteByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectOutOfServiceEventNoteById,\r\n selectOutOfServiceEventNoteEntitiesByIds,\r\n OutOfServiceEventNoteRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OutOfServiceEventNoteEntityResolver {\r\n constructor(private readonly _fetchService: OutOfServiceEventNoteEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const outOfServiceEventNoteId: string | undefined = [\r\n route.params.outOfServiceEventNoteId,\r\n route.params.id,\r\n route.queryParams.outOfServiceEventNoteId,\r\n ].find((id) => id != null);\r\n if (outOfServiceEventNoteId == null) {\r\n throw new Error(\r\n `OutOfServiceEventNoteEntityResolver: Unable to resolve entity of type 'OutOfServiceEventNote'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(outOfServiceEventNoteId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((outOfServiceEventNote) => {\r\n if (outOfServiceEventNote == null) {\r\n throw new Error(\r\n `OutOfServiceEventNoteEntityResolver: unable to resolve entity of type 'OutOfServiceEventNote' for id '${outOfServiceEventNoteId}'`,\r\n );\r\n }\r\n return outOfServiceEventNote;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OutOfServiceReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchOutOfServiceReasonByIdGQL,\r\n byIdsQuery: FetchOutOfServiceReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectOutOfServiceReasonById,\r\n selectOutOfServiceReasonEntitiesByIds,\r\n OutOfServiceReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OutOfServiceReasonEntityResolver {\r\n constructor(private readonly _fetchService: OutOfServiceReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const outOfServiceReasonId: string | undefined = [\r\n route.params.outOfServiceReasonId,\r\n route.params.id,\r\n route.queryParams.outOfServiceReasonId,\r\n ].find((id) => id != null);\r\n if (outOfServiceReasonId == null) {\r\n throw new Error(\r\n `OutOfServiceReasonEntityResolver: Unable to resolve entity of type 'OutOfServiceReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(outOfServiceReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((outOfServiceReason) => {\r\n if (outOfServiceReason == null) {\r\n throw new Error(\r\n `OutOfServiceReasonEntityResolver: unable to resolve entity of type 'OutOfServiceReason' for id '${outOfServiceReasonId}'`,\r\n );\r\n }\r\n return outOfServiceReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OutOfServiceSecondaryReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchOutOfServiceSecondaryReasonByIdGQL,\r\n byIdsQuery: FetchOutOfServiceSecondaryReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectOutOfServiceSecondaryReasonById,\r\n selectOutOfServiceSecondaryReasonEntitiesByIds,\r\n OutOfServiceSecondaryReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OutOfServiceSecondaryReasonEntityResolver {\r\n constructor(private readonly _fetchService: OutOfServiceSecondaryReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const outOfServiceSecondaryReasonId: string | undefined = [\r\n route.params.outOfServiceSecondaryReasonId,\r\n route.params.id,\r\n route.queryParams.outOfServiceSecondaryReasonId,\r\n ].find((id) => id != null);\r\n if (outOfServiceSecondaryReasonId == null) {\r\n throw new Error(\r\n `OutOfServiceSecondaryReasonEntityResolver: Unable to resolve entity of type 'OutOfServiceSecondaryReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(outOfServiceSecondaryReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((outOfServiceSecondaryReason) => {\r\n if (outOfServiceSecondaryReason == null) {\r\n throw new Error(\r\n `OutOfServiceSecondaryReasonEntityResolver: unable to resolve entity of type 'OutOfServiceSecondaryReason' for id '${outOfServiceSecondaryReasonId}'`,\r\n );\r\n }\r\n return outOfServiceSecondaryReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PassdownLogAcknowledgementEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchPassdownLogAcknowledgementByIdGQL,\r\n byIdsQuery: FetchPassdownLogAcknowledgementByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectPassdownLogAcknowledgementById,\r\n selectPassdownLogAcknowledgementEntitiesByIds,\r\n PassdownLogAcknowledgementRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PassdownLogAcknowledgementEntityResolver {\r\n constructor(private readonly _fetchService: PassdownLogAcknowledgementEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const passdownLogAcknowledgementId: string | undefined = [\r\n route.params.passdownLogAcknowledgementId,\r\n route.params.id,\r\n route.queryParams.passdownLogAcknowledgementId,\r\n ].find((id) => id != null);\r\n if (passdownLogAcknowledgementId == null) {\r\n throw new Error(\r\n `PassdownLogAcknowledgementEntityResolver: Unable to resolve entity of type 'PassdownLogAcknowledgement'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(passdownLogAcknowledgementId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((passdownLogAcknowledgement) => {\r\n if (passdownLogAcknowledgement == null) {\r\n throw new Error(\r\n `PassdownLogAcknowledgementEntityResolver: unable to resolve entity of type 'PassdownLogAcknowledgement' for id '${passdownLogAcknowledgementId}'`,\r\n );\r\n }\r\n return passdownLogAcknowledgement;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PassdownLogEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchPassdownLogByIdGQL,\r\n byIdsQuery: FetchPassdownLogByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectPassdownLogById,\r\n selectPassdownLogEntitiesByIds,\r\n PassdownLogRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PassdownLogEntityResolver {\r\n constructor(private readonly _fetchService: PassdownLogEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const passdownLogId: string | undefined = [\r\n route.params.passdownLogId,\r\n route.params.id,\r\n route.queryParams.passdownLogId,\r\n ].find((id) => id != null);\r\n if (passdownLogId == null) {\r\n throw new Error(\r\n `PassdownLogEntityResolver: Unable to resolve entity of type 'PassdownLog'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(passdownLogId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((passdownLog) => {\r\n if (passdownLog == null) {\r\n throw new Error(\r\n `PassdownLogEntityResolver: unable to resolve entity of type 'PassdownLog' for id '${passdownLogId}'`,\r\n );\r\n }\r\n return passdownLog;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PatientEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchPatientByIdGQL,\r\n byIdsQuery: FetchPatientByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectPatientById,\r\n selectPatientEntitiesByIds,\r\n PatientRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PatientEntityResolver {\r\n constructor(private readonly _fetchService: PatientEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const patientId: string | undefined = [\r\n route.params.patientId,\r\n route.params.id,\r\n route.queryParams.patientId,\r\n ].find((id) => id != null);\r\n if (patientId == null) {\r\n throw new Error(\r\n `PatientEntityResolver: Unable to resolve entity of type 'Patient'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(patientId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((patient) => {\r\n if (patient == null) {\r\n throw new Error(\r\n `PatientEntityResolver: unable to resolve entity of type 'Patient' for id '${patientId}'`,\r\n );\r\n }\r\n return patient;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PositionReportAlertEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchPositionReportAlertByIdGQL,\r\n byIdsQuery: FetchPositionReportAlertByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectPositionReportAlertById,\r\n selectPositionReportAlertEntitiesByIds,\r\n PositionReportAlertRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PositionReportAlertEntityResolver {\r\n constructor(private readonly _fetchService: PositionReportAlertEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const positionReportAlertId: string | undefined = [\r\n route.params.positionReportAlertId,\r\n route.params.id,\r\n route.queryParams.positionReportAlertId,\r\n ].find((id) => id != null);\r\n if (positionReportAlertId == null) {\r\n throw new Error(\r\n `PositionReportAlertEntityResolver: Unable to resolve entity of type 'PositionReportAlert'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(positionReportAlertId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((positionReportAlert) => {\r\n if (positionReportAlert == null) {\r\n throw new Error(\r\n `PositionReportAlertEntityResolver: unable to resolve entity of type 'PositionReportAlert' for id '${positionReportAlertId}'`,\r\n );\r\n }\r\n return positionReportAlert;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PositionReportArchiveEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchPositionReportArchiveByIdGQL,\r\n byIdsQuery: FetchPositionReportArchiveByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectPositionReportArchiveById,\r\n selectPositionReportArchiveEntitiesByIds,\r\n PositionReportArchiveRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PositionReportArchiveEntityResolver {\r\n constructor(private readonly _fetchService: PositionReportArchiveEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const positionReportArchiveId: string | undefined = [\r\n route.params.positionReportArchiveId,\r\n route.params.id,\r\n route.queryParams.positionReportArchiveId,\r\n ].find((id) => id != null);\r\n if (positionReportArchiveId == null) {\r\n throw new Error(\r\n `PositionReportArchiveEntityResolver: Unable to resolve entity of type 'PositionReportArchive'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(positionReportArchiveId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((positionReportArchive) => {\r\n if (positionReportArchive == null) {\r\n throw new Error(\r\n `PositionReportArchiveEntityResolver: unable to resolve entity of type 'PositionReportArchive' for id '${positionReportArchiveId}'`,\r\n );\r\n }\r\n return positionReportArchive;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PositionReportEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchPositionReportByIdGQL,\r\n byIdsQuery: FetchPositionReportByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectPositionReportById,\r\n selectPositionReportEntitiesByIds,\r\n PositionReportRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PositionReportEntityResolver {\r\n constructor(private readonly _fetchService: PositionReportEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const positionReportId: string | undefined = [\r\n route.params.positionReportId,\r\n route.params.id,\r\n route.queryParams.positionReportId,\r\n ].find((id) => id != null);\r\n if (positionReportId == null) {\r\n throw new Error(\r\n `PositionReportEntityResolver: Unable to resolve entity of type 'PositionReport'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(positionReportId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((positionReport) => {\r\n if (positionReport == null) {\r\n throw new Error(\r\n `PositionReportEntityResolver: unable to resolve entity of type 'PositionReport' for id '${positionReportId}'`,\r\n );\r\n }\r\n return positionReport;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionChoiceEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchQuestionChoiceByIdGQL,\r\n byIdsQuery: FetchQuestionChoiceByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectQuestionChoiceById,\r\n selectQuestionChoiceEntitiesByIds,\r\n QuestionChoiceRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionChoiceEntityResolver {\r\n constructor(private readonly _fetchService: QuestionChoiceEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const questionChoiceId: string | undefined = [\r\n route.params.questionChoiceId,\r\n route.params.id,\r\n route.queryParams.questionChoiceId,\r\n ].find((id) => id != null);\r\n if (questionChoiceId == null) {\r\n throw new Error(\r\n `QuestionChoiceEntityResolver: Unable to resolve entity of type 'QuestionChoice'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(questionChoiceId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((questionChoice) => {\r\n if (questionChoice == null) {\r\n throw new Error(\r\n `QuestionChoiceEntityResolver: unable to resolve entity of type 'QuestionChoice' for id '${questionChoiceId}'`,\r\n );\r\n }\r\n return questionChoice;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchQuestionByIdGQL,\r\n byIdsQuery: FetchQuestionByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectQuestionById,\r\n selectQuestionEntitiesByIds,\r\n QuestionRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionEntityResolver {\r\n constructor(private readonly _fetchService: QuestionEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const questionId: string | undefined = [\r\n route.params.questionId,\r\n route.params.id,\r\n route.queryParams.questionId,\r\n ].find((id) => id != null);\r\n if (questionId == null) {\r\n throw new Error(\r\n `QuestionEntityResolver: Unable to resolve entity of type 'Question'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(questionId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((question) => {\r\n if (question == null) {\r\n throw new Error(\r\n `QuestionEntityResolver: unable to resolve entity of type 'Question' for id '${questionId}'`,\r\n );\r\n }\r\n return question;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionnaireEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchQuestionnaireByIdGQL,\r\n byIdsQuery: FetchQuestionnaireByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectQuestionnaireById,\r\n selectQuestionnaireEntitiesByIds,\r\n QuestionnaireRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionnaireEntityResolver {\r\n constructor(private readonly _fetchService: QuestionnaireEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const questionnaireId: string | undefined = [\r\n route.params.questionnaireId,\r\n route.params.id,\r\n route.queryParams.questionnaireId,\r\n ].find((id) => id != null);\r\n if (questionnaireId == null) {\r\n throw new Error(\r\n `QuestionnaireEntityResolver: Unable to resolve entity of type 'Questionnaire'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(questionnaireId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((questionnaire) => {\r\n if (questionnaire == null) {\r\n throw new Error(\r\n `QuestionnaireEntityResolver: unable to resolve entity of type 'Questionnaire' for id '${questionnaireId}'`,\r\n );\r\n }\r\n return questionnaire;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionnaireQuestionResponseEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchQuestionnaireQuestionResponseByIdGQL,\r\n byIdsQuery: FetchQuestionnaireQuestionResponseByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectQuestionnaireQuestionResponseById,\r\n selectQuestionnaireQuestionResponseEntitiesByIds,\r\n QuestionnaireQuestionResponseRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionnaireQuestionResponseEntityResolver {\r\n constructor(private readonly _fetchService: QuestionnaireQuestionResponseEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const questionnaireQuestionResponseId: string | undefined = [\r\n route.params.questionnaireQuestionResponseId,\r\n route.params.id,\r\n route.queryParams.questionnaireQuestionResponseId,\r\n ].find((id) => id != null);\r\n if (questionnaireQuestionResponseId == null) {\r\n throw new Error(\r\n `QuestionnaireQuestionResponseEntityResolver: Unable to resolve entity of type 'QuestionnaireQuestionResponse'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(questionnaireQuestionResponseId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((questionnaireQuestionResponse) => {\r\n if (questionnaireQuestionResponse == null) {\r\n throw new Error(\r\n `QuestionnaireQuestionResponseEntityResolver: unable to resolve entity of type 'QuestionnaireQuestionResponse' for id '${questionnaireQuestionResponseId}'`,\r\n );\r\n }\r\n return questionnaireQuestionResponse;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionnaireQuestionResponseNoteEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchQuestionnaireQuestionResponseNoteByIdGQL,\r\n byIdsQuery: FetchQuestionnaireQuestionResponseNoteByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectQuestionnaireQuestionResponseNoteById,\r\n selectQuestionnaireQuestionResponseNoteEntitiesByIds,\r\n QuestionnaireQuestionResponseNoteRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionnaireQuestionResponseNoteEntityResolver {\r\n constructor(\r\n private readonly _fetchService: QuestionnaireQuestionResponseNoteEntityFetchService,\r\n ) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const questionnaireQuestionResponseNoteId: string | undefined = [\r\n route.params.questionnaireQuestionResponseNoteId,\r\n route.params.id,\r\n route.queryParams.questionnaireQuestionResponseNoteId,\r\n ].find((id) => id != null);\r\n if (questionnaireQuestionResponseNoteId == null) {\r\n throw new Error(\r\n `QuestionnaireQuestionResponseNoteEntityResolver: Unable to resolve entity of type 'QuestionnaireQuestionResponseNote'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(questionnaireQuestionResponseNoteId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((questionnaireQuestionResponseNote) => {\r\n if (questionnaireQuestionResponseNote == null) {\r\n throw new Error(\r\n `QuestionnaireQuestionResponseNoteEntityResolver: unable to resolve entity of type 'QuestionnaireQuestionResponseNote' for id '${questionnaireQuestionResponseNoteId}'`,\r\n );\r\n }\r\n return questionnaireQuestionResponseNote;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionnaireResponseEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchQuestionnaireResponseByIdGQL,\r\n byIdsQuery: FetchQuestionnaireResponseByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectQuestionnaireResponseById,\r\n selectQuestionnaireResponseEntitiesByIds,\r\n QuestionnaireResponseRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionnaireResponseEntityResolver {\r\n constructor(private readonly _fetchService: QuestionnaireResponseEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const questionnaireResponseId: string | undefined = [\r\n route.params.questionnaireResponseId,\r\n route.params.id,\r\n route.queryParams.questionnaireResponseId,\r\n ].find((id) => id != null);\r\n if (questionnaireResponseId == null) {\r\n throw new Error(\r\n `QuestionnaireResponseEntityResolver: Unable to resolve entity of type 'QuestionnaireResponse'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(questionnaireResponseId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((questionnaireResponse) => {\r\n if (questionnaireResponse == null) {\r\n throw new Error(\r\n `QuestionnaireResponseEntityResolver: unable to resolve entity of type 'QuestionnaireResponse' for id '${questionnaireResponseId}'`,\r\n );\r\n }\r\n return questionnaireResponse;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionnaireSectionEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchQuestionnaireSectionByIdGQL,\r\n byIdsQuery: FetchQuestionnaireSectionByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectQuestionnaireSectionById,\r\n selectQuestionnaireSectionEntitiesByIds,\r\n QuestionnaireSectionRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionnaireSectionEntityResolver {\r\n constructor(private readonly _fetchService: QuestionnaireSectionEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const questionnaireSectionId: string | undefined = [\r\n route.params.questionnaireSectionId,\r\n route.params.id,\r\n route.queryParams.questionnaireSectionId,\r\n ].find((id) => id != null);\r\n if (questionnaireSectionId == null) {\r\n throw new Error(\r\n `QuestionnaireSectionEntityResolver: Unable to resolve entity of type 'QuestionnaireSection'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(questionnaireSectionId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((questionnaireSection) => {\r\n if (questionnaireSection == null) {\r\n throw new Error(\r\n `QuestionnaireSectionEntityResolver: unable to resolve entity of type 'QuestionnaireSection' for id '${questionnaireSectionId}'`,\r\n );\r\n }\r\n return questionnaireSection;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionnaireSectionQuestionEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchQuestionnaireSectionQuestionByIdGQL,\r\n byIdsQuery: FetchQuestionnaireSectionQuestionByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectQuestionnaireSectionQuestionById,\r\n selectQuestionnaireSectionQuestionEntitiesByIds,\r\n QuestionnaireSectionQuestionRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class QuestionnaireSectionQuestionEntityResolver {\r\n constructor(private readonly _fetchService: QuestionnaireSectionQuestionEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const questionnaireSectionQuestionId: string | undefined = [\r\n route.params.questionnaireSectionQuestionId,\r\n route.params.id,\r\n route.queryParams.questionnaireSectionQuestionId,\r\n ].find((id) => id != null);\r\n if (questionnaireSectionQuestionId == null) {\r\n throw new Error(\r\n `QuestionnaireSectionQuestionEntityResolver: Unable to resolve entity of type 'QuestionnaireSectionQuestion'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(questionnaireSectionQuestionId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((questionnaireSectionQuestion) => {\r\n if (questionnaireSectionQuestion == null) {\r\n throw new Error(\r\n `QuestionnaireSectionQuestionEntityResolver: unable to resolve entity of type 'QuestionnaireSectionQuestion' for id '${questionnaireSectionQuestionId}'`,\r\n );\r\n }\r\n return questionnaireSectionQuestion;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ReceivingFacilityRequestEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchReceivingFacilityRequestByIdGQL,\r\n byIdsQuery: FetchReceivingFacilityRequestByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectReceivingFacilityRequestById,\r\n selectReceivingFacilityRequestEntitiesByIds,\r\n ReceivingFacilityRequestRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ReceivingFacilityRequestEntityResolver {\r\n constructor(private readonly _fetchService: ReceivingFacilityRequestEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const receivingFacilityRequestId: string | undefined = [\r\n route.params.receivingFacilityRequestId,\r\n route.params.id,\r\n route.queryParams.receivingFacilityRequestId,\r\n ].find((id) => id != null);\r\n if (receivingFacilityRequestId == null) {\r\n throw new Error(\r\n `ReceivingFacilityRequestEntityResolver: Unable to resolve entity of type 'ReceivingFacilityRequest'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(receivingFacilityRequestId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((receivingFacilityRequest) => {\r\n if (receivingFacilityRequest == null) {\r\n throw new Error(\r\n `ReceivingFacilityRequestEntityResolver: unable to resolve entity of type 'ReceivingFacilityRequest' for id '${receivingFacilityRequestId}'`,\r\n );\r\n }\r\n return receivingFacilityRequest;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RendezvousRequestEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchRendezvousRequestByIdGQL,\r\n byIdsQuery: FetchRendezvousRequestByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectRendezvousRequestById,\r\n selectRendezvousRequestEntitiesByIds,\r\n RendezvousRequestRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RendezvousRequestEntityResolver {\r\n constructor(private readonly _fetchService: RendezvousRequestEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const rendezvousRequestId: string | undefined = [\r\n route.params.rendezvousRequestId,\r\n route.params.id,\r\n route.queryParams.rendezvousRequestId,\r\n ].find((id) => id != null);\r\n if (rendezvousRequestId == null) {\r\n throw new Error(\r\n `RendezvousRequestEntityResolver: Unable to resolve entity of type 'RendezvousRequest'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(rendezvousRequestId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((rendezvousRequest) => {\r\n if (rendezvousRequest == null) {\r\n throw new Error(\r\n `RendezvousRequestEntityResolver: unable to resolve entity of type 'RendezvousRequest' for id '${rendezvousRequestId}'`,\r\n );\r\n }\r\n return rendezvousRequest;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RequestEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchRequestByIdGQL,\r\n byIdsQuery: FetchRequestByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectRequestById,\r\n selectRequestEntitiesByIds,\r\n RequestRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RequestEntityResolver {\r\n constructor(private readonly _fetchService: RequestEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const requestId: string | undefined = [\r\n route.params.requestId,\r\n route.params.id,\r\n route.queryParams.requestId,\r\n ].find((id) => id != null);\r\n if (requestId == null) {\r\n throw new Error(\r\n `RequestEntityResolver: Unable to resolve entity of type 'Request'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(requestId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((request) => {\r\n if (request == null) {\r\n throw new Error(\r\n `RequestEntityResolver: unable to resolve entity of type 'Request' for id '${requestId}'`,\r\n );\r\n }\r\n return request;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RequesterEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchRequesterByIdGQL,\r\n byIdsQuery: FetchRequesterByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectRequesterById,\r\n selectRequesterEntitiesByIds,\r\n RequesterRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RequesterEntityResolver {\r\n constructor(private readonly _fetchService: RequesterEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const requesterId: string | undefined = [\r\n route.params.requesterId,\r\n route.params.id,\r\n route.queryParams.requesterId,\r\n ].find((id) => id != null);\r\n if (requesterId == null) {\r\n throw new Error(\r\n `RequesterEntityResolver: Unable to resolve entity of type 'Requester'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(requesterId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((requester) => {\r\n if (requester == null) {\r\n throw new Error(\r\n `RequesterEntityResolver: unable to resolve entity of type 'Requester' for id '${requesterId}'`,\r\n );\r\n }\r\n return requester;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RequesterReferralReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchRequesterReferralReasonByIdGQL,\r\n byIdsQuery: FetchRequesterReferralReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectRequesterReferralReasonById,\r\n selectRequesterReferralReasonEntitiesByIds,\r\n RequesterReferralReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RequesterReferralReasonEntityResolver {\r\n constructor(private readonly _fetchService: RequesterReferralReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const requesterReferralReasonId: string | undefined = [\r\n route.params.requesterReferralReasonId,\r\n route.params.id,\r\n route.queryParams.requesterReferralReasonId,\r\n ].find((id) => id != null);\r\n if (requesterReferralReasonId == null) {\r\n throw new Error(\r\n `RequesterReferralReasonEntityResolver: Unable to resolve entity of type 'RequesterReferralReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(requesterReferralReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((requesterReferralReason) => {\r\n if (requesterReferralReason == null) {\r\n throw new Error(\r\n `RequesterReferralReasonEntityResolver: unable to resolve entity of type 'RequesterReferralReason' for id '${requesterReferralReasonId}'`,\r\n );\r\n }\r\n return requesterReferralReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RequesterRoleEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchRequesterRoleByIdGQL,\r\n byIdsQuery: FetchRequesterRoleByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectRequesterRoleById,\r\n selectRequesterRoleEntitiesByIds,\r\n RequesterRoleRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RequesterRoleEntityResolver {\r\n constructor(private readonly _fetchService: RequesterRoleEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const requesterRoleId: string | undefined = [\r\n route.params.requesterRoleId,\r\n route.params.id,\r\n route.queryParams.requesterRoleId,\r\n ].find((id) => id != null);\r\n if (requesterRoleId == null) {\r\n throw new Error(\r\n `RequesterRoleEntityResolver: Unable to resolve entity of type 'RequesterRole'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(requesterRoleId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((requesterRole) => {\r\n if (requesterRole == null) {\r\n throw new Error(\r\n `RequesterRoleEntityResolver: unable to resolve entity of type 'RequesterRole' for id '${requesterRoleId}'`,\r\n );\r\n }\r\n return requesterRole;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RequestLocationEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchRequestLocationByIdGQL,\r\n byIdsQuery: FetchRequestLocationByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectRequestLocationById,\r\n selectRequestLocationEntitiesByIds,\r\n RequestLocationRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RequestLocationEntityResolver {\r\n constructor(private readonly _fetchService: RequestLocationEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const requestLocationId: string | undefined = [\r\n route.params.requestLocationId,\r\n route.params.id,\r\n route.queryParams.requestLocationId,\r\n ].find((id) => id != null);\r\n if (requestLocationId == null) {\r\n throw new Error(\r\n `RequestLocationEntityResolver: Unable to resolve entity of type 'RequestLocation'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(requestLocationId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((requestLocation) => {\r\n if (requestLocation == null) {\r\n throw new Error(\r\n `RequestLocationEntityResolver: unable to resolve entity of type 'RequestLocation' for id '${requestLocationId}'`,\r\n );\r\n }\r\n return requestLocation;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RequestPatientEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchRequestPatientByIdGQL,\r\n byIdsQuery: FetchRequestPatientByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectRequestPatientById,\r\n selectRequestPatientEntitiesByIds,\r\n RequestPatientRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RequestPatientEntityResolver {\r\n constructor(private readonly _fetchService: RequestPatientEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const requestPatientId: string | undefined = [\r\n route.params.requestPatientId,\r\n route.params.id,\r\n route.queryParams.requestPatientId,\r\n ].find((id) => id != null);\r\n if (requestPatientId == null) {\r\n throw new Error(\r\n `RequestPatientEntityResolver: Unable to resolve entity of type 'RequestPatient'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(requestPatientId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((requestPatient) => {\r\n if (requestPatient == null) {\r\n throw new Error(\r\n `RequestPatientEntityResolver: unable to resolve entity of type 'RequestPatient' for id '${requestPatientId}'`,\r\n );\r\n }\r\n return requestPatient;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class SystemTimerEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchSystemTimerByIdGQL,\r\n byIdsQuery: FetchSystemTimerByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectSystemTimerById,\r\n selectSystemTimerEntitiesByIds,\r\n SystemTimerRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class SystemTimerEntityResolver {\r\n constructor(private readonly _fetchService: SystemTimerEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const systemTimerId: string | undefined = [\r\n route.params.systemTimerId,\r\n route.params.id,\r\n route.queryParams.systemTimerId,\r\n ].find((id) => id != null);\r\n if (systemTimerId == null) {\r\n throw new Error(\r\n `SystemTimerEntityResolver: Unable to resolve entity of type 'SystemTimer'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(systemTimerId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((systemTimer) => {\r\n if (systemTimer == null) {\r\n throw new Error(\r\n `SystemTimerEntityResolver: unable to resolve entity of type 'SystemTimer' for id '${systemTimerId}'`,\r\n );\r\n }\r\n return systemTimer;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TimelineEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTimelineByIdGQL,\r\n byIdsQuery: FetchTimelineByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTimelineById,\r\n selectTimelineEntitiesByIds,\r\n TimelineRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TimelineEntityResolver {\r\n constructor(private readonly _fetchService: TimelineEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const timelineId: string | undefined = [\r\n route.params.timelineId,\r\n route.params.id,\r\n route.queryParams.timelineId,\r\n ].find((id) => id != null);\r\n if (timelineId == null) {\r\n throw new Error(\r\n `TimelineEntityResolver: Unable to resolve entity of type 'Timeline'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(timelineId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((timeline) => {\r\n if (timeline == null) {\r\n throw new Error(\r\n `TimelineEntityResolver: unable to resolve entity of type 'Timeline' for id '${timelineId}'`,\r\n );\r\n }\r\n return timeline;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TimelineItemEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTimelineItemByIdGQL,\r\n byIdsQuery: FetchTimelineItemByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTimelineItemById,\r\n selectTimelineItemEntitiesByIds,\r\n TimelineItemRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TimelineItemEntityResolver {\r\n constructor(private readonly _fetchService: TimelineItemEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const timelineItemId: string | undefined = [\r\n route.params.timelineItemId,\r\n route.params.id,\r\n route.queryParams.timelineItemId,\r\n ].find((id) => id != null);\r\n if (timelineItemId == null) {\r\n throw new Error(\r\n `TimelineItemEntityResolver: Unable to resolve entity of type 'TimelineItem'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(timelineItemId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((timelineItem) => {\r\n if (timelineItem == null) {\r\n throw new Error(\r\n `TimelineItemEntityResolver: unable to resolve entity of type 'TimelineItem' for id '${timelineItemId}'`,\r\n );\r\n }\r\n return timelineItem;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TimestampEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTimestampByIdGQL,\r\n byIdsQuery: FetchTimestampByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTimestampById,\r\n selectTimestampEntitiesByIds,\r\n TimestampRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TimestampEntityResolver {\r\n constructor(private readonly _fetchService: TimestampEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const timestampId: string | undefined = [\r\n route.params.timestampId,\r\n route.params.id,\r\n route.queryParams.timestampId,\r\n ].find((id) => id != null);\r\n if (timestampId == null) {\r\n throw new Error(\r\n `TimestampEntityResolver: Unable to resolve entity of type 'Timestamp'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(timestampId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((timestamp) => {\r\n if (timestamp == null) {\r\n throw new Error(\r\n `TimestampEntityResolver: unable to resolve entity of type 'Timestamp' for id '${timestampId}'`,\r\n );\r\n }\r\n return timestamp;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TimestampTypeEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTimestampTypeByIdGQL,\r\n byIdsQuery: FetchTimestampTypeByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTimestampTypeById,\r\n selectTimestampTypeEntitiesByIds,\r\n TimestampTypeRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TimestampTypeEntityResolver {\r\n constructor(private readonly _fetchService: TimestampTypeEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const timestampTypeId: string | undefined = [\r\n route.params.timestampTypeId,\r\n route.params.id,\r\n route.queryParams.timestampTypeId,\r\n ].find((id) => id != null);\r\n if (timestampTypeId == null) {\r\n throw new Error(\r\n `TimestampTypeEntityResolver: Unable to resolve entity of type 'TimestampType'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(timestampTypeId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((timestampType) => {\r\n if (timestampType == null) {\r\n throw new Error(\r\n `TimestampTypeEntityResolver: unable to resolve entity of type 'TimestampType' for id '${timestampTypeId}'`,\r\n );\r\n }\r\n return timestampType;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TrackedMessageEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTrackedMessageByIdGQL,\r\n byIdsQuery: FetchTrackedMessageByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTrackedMessageById,\r\n selectTrackedMessageEntitiesByIds,\r\n TrackedMessageRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TrackedMessageEntityResolver {\r\n constructor(private readonly _fetchService: TrackedMessageEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const trackedMessageId: string | undefined = [\r\n route.params.trackedMessageId,\r\n route.params.id,\r\n route.queryParams.trackedMessageId,\r\n ].find((id) => id != null);\r\n if (trackedMessageId == null) {\r\n throw new Error(\r\n `TrackedMessageEntityResolver: Unable to resolve entity of type 'TrackedMessage'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(trackedMessageId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((trackedMessage) => {\r\n if (trackedMessage == null) {\r\n throw new Error(\r\n `TrackedMessageEntityResolver: unable to resolve entity of type 'TrackedMessage' for id '${trackedMessageId}'`,\r\n );\r\n }\r\n return trackedMessage;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TransferReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTransferReasonByIdGQL,\r\n byIdsQuery: FetchTransferReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTransferReasonById,\r\n selectTransferReasonEntitiesByIds,\r\n TransferReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TransferReasonEntityResolver {\r\n constructor(private readonly _fetchService: TransferReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const transferReasonId: string | undefined = [\r\n route.params.transferReasonId,\r\n route.params.id,\r\n route.queryParams.transferReasonId,\r\n ].find((id) => id != null);\r\n if (transferReasonId == null) {\r\n throw new Error(\r\n `TransferReasonEntityResolver: Unable to resolve entity of type 'TransferReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(transferReasonId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((transferReason) => {\r\n if (transferReason == null) {\r\n throw new Error(\r\n `TransferReasonEntityResolver: unable to resolve entity of type 'TransferReason' for id '${transferReasonId}'`,\r\n );\r\n }\r\n return transferReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TransportOfferEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTransportOfferByIdGQL,\r\n byIdsQuery: FetchTransportOfferByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTransportOfferById,\r\n selectTransportOfferEntitiesByIds,\r\n TransportOfferRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TransportOfferEntityResolver {\r\n constructor(private readonly _fetchService: TransportOfferEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const transportOfferId: string | undefined = [\r\n route.params.transportOfferId,\r\n route.params.id,\r\n route.queryParams.transportOfferId,\r\n ].find((id) => id != null);\r\n if (transportOfferId == null) {\r\n throw new Error(\r\n `TransportOfferEntityResolver: Unable to resolve entity of type 'TransportOffer'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(transportOfferId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((transportOffer) => {\r\n if (transportOffer == null) {\r\n throw new Error(\r\n `TransportOfferEntityResolver: unable to resolve entity of type 'TransportOffer' for id '${transportOfferId}'`,\r\n );\r\n }\r\n return transportOffer;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TransportOfferOptionEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTransportOfferOptionByIdGQL,\r\n byIdsQuery: FetchTransportOfferOptionByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTransportOfferOptionById,\r\n selectTransportOfferOptionEntitiesByIds,\r\n TransportOfferOptionRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TransportOfferOptionEntityResolver {\r\n constructor(private readonly _fetchService: TransportOfferOptionEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const transportOfferOptionId: string | undefined = [\r\n route.params.transportOfferOptionId,\r\n route.params.id,\r\n route.queryParams.transportOfferOptionId,\r\n ].find((id) => id != null);\r\n if (transportOfferOptionId == null) {\r\n throw new Error(\r\n `TransportOfferOptionEntityResolver: Unable to resolve entity of type 'TransportOfferOption'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(transportOfferOptionId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((transportOfferOption) => {\r\n if (transportOfferOption == null) {\r\n throw new Error(\r\n `TransportOfferOptionEntityResolver: unable to resolve entity of type 'TransportOfferOption' for id '${transportOfferOptionId}'`,\r\n );\r\n }\r\n return transportOfferOption;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TransportReasonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTransportReasonByIdGQL,\r\n byIdsQuery: FetchTransportReasonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTransportReasonById,\r\n selectTransportReasonEntitiesByIds,\r\n TransportReasonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TransportReasonEntityResolver {\r\n constructor(private readonly _fetchService: TransportReasonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const transportReasonId: string | undefined = [\r\n route.params.transportReasonId,\r\n route.params.id,\r\n route.queryParams.transportReasonId,\r\n ].find((id) => id != null);\r\n if (transportReasonId == null) {\r\n throw new Error(\r\n `TransportReasonEntityResolver: Unable to resolve entity of type 'TransportReason'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(transportReasonId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((transportReason) => {\r\n if (transportReason == null) {\r\n throw new Error(\r\n `TransportReasonEntityResolver: unable to resolve entity of type 'TransportReason' for id '${transportReasonId}'`,\r\n );\r\n }\r\n return transportReason;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TripEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTripByIdGQL,\r\n byIdsQuery: FetchTripByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTripById,\r\n selectTripEntitiesByIds,\r\n TripRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TripEntityResolver {\r\n constructor(private readonly _fetchService: TripEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const tripId: string | undefined = [\r\n route.params.tripId,\r\n route.params.id,\r\n route.queryParams.tripId,\r\n ].find((id) => id != null);\r\n if (tripId == null) {\r\n throw new Error(\r\n `TripEntityResolver: Unable to resolve entity of type 'Trip'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(tripId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((trip) => {\r\n if (trip == null) {\r\n throw new Error(\r\n `TripEntityResolver: unable to resolve entity of type 'Trip' for id '${tripId}'`,\r\n );\r\n }\r\n return trip;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TripLegEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTripLegByIdGQL,\r\n byIdsQuery: FetchTripLegByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTripLegById,\r\n selectTripLegEntitiesByIds,\r\n TripLegRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TripLegEntityResolver {\r\n constructor(private readonly _fetchService: TripLegEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const tripLegId: string | undefined = [\r\n route.params.tripLegId,\r\n route.params.id,\r\n route.queryParams.tripLegId,\r\n ].find((id) => id != null);\r\n if (tripLegId == null) {\r\n throw new Error(\r\n `TripLegEntityResolver: Unable to resolve entity of type 'TripLeg'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(tripLegId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((tripLeg) => {\r\n if (tripLeg == null) {\r\n throw new Error(\r\n `TripLegEntityResolver: unable to resolve entity of type 'TripLeg' for id '${tripLegId}'`,\r\n );\r\n }\r\n return tripLeg;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TripPassengerEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTripPassengerByIdGQL,\r\n byIdsQuery: FetchTripPassengerByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTripPassengerById,\r\n selectTripPassengerEntitiesByIds,\r\n TripPassengerRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TripPassengerEntityResolver {\r\n constructor(private readonly _fetchService: TripPassengerEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const tripPassengerId: string | undefined = [\r\n route.params.tripPassengerId,\r\n route.params.id,\r\n route.queryParams.tripPassengerId,\r\n ].find((id) => id != null);\r\n if (tripPassengerId == null) {\r\n throw new Error(\r\n `TripPassengerEntityResolver: Unable to resolve entity of type 'TripPassenger'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(tripPassengerId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((tripPassenger) => {\r\n if (tripPassenger == null) {\r\n throw new Error(\r\n `TripPassengerEntityResolver: unable to resolve entity of type 'TripPassenger' for id '${tripPassengerId}'`,\r\n );\r\n }\r\n return tripPassenger;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitActivationRuleEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchUnitActivationRuleByIdGQL,\r\n byIdsQuery: FetchUnitActivationRuleByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectUnitActivationRuleById,\r\n selectUnitActivationRuleEntitiesByIds,\r\n UnitActivationRuleRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitActivationRuleEntityResolver {\r\n constructor(private readonly _fetchService: UnitActivationRuleEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const unitActivationRuleId: string | undefined = [\r\n route.params.unitActivationRuleId,\r\n route.params.id,\r\n route.queryParams.unitActivationRuleId,\r\n ].find((id) => id != null);\r\n if (unitActivationRuleId == null) {\r\n throw new Error(\r\n `UnitActivationRuleEntityResolver: Unable to resolve entity of type 'UnitActivationRule'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(unitActivationRuleId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((unitActivationRule) => {\r\n if (unitActivationRule == null) {\r\n throw new Error(\r\n `UnitActivationRuleEntityResolver: unable to resolve entity of type 'UnitActivationRule' for id '${unitActivationRuleId}'`,\r\n );\r\n }\r\n return unitActivationRule;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitEMSystemMappingEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchUnitEMSystemMappingByIdGQL,\r\n byIdsQuery: FetchUnitEMSystemMappingByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectUnitEMSystemMappingById,\r\n selectUnitEMSystemMappingEntitiesByIds,\r\n UnitEMSystemMappingRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitEMSystemMappingEntityResolver {\r\n constructor(private readonly _fetchService: UnitEMSystemMappingEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const unitEMSystemMappingId: string | undefined = [\r\n route.params.unitEMSystemMappingId,\r\n route.params.id,\r\n route.queryParams.unitEMSystemMappingId,\r\n ].find((id) => id != null);\r\n if (unitEMSystemMappingId == null) {\r\n throw new Error(\r\n `UnitEMSystemMappingEntityResolver: Unable to resolve entity of type 'UnitEMSystemMapping'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(unitEMSystemMappingId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((unitEMSystemMapping) => {\r\n if (unitEMSystemMapping == null) {\r\n throw new Error(\r\n `UnitEMSystemMappingEntityResolver: unable to resolve entity of type 'UnitEMSystemMapping' for id '${unitEMSystemMappingId}'`,\r\n );\r\n }\r\n return unitEMSystemMapping;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchUnitByIdGQL,\r\n byIdsQuery: FetchUnitByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectUnitById,\r\n selectUnitEntitiesByIds,\r\n UnitRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitEntityResolver {\r\n constructor(private readonly _fetchService: UnitEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const unitId: string | undefined = [\r\n route.params.unitId,\r\n route.params.id,\r\n route.queryParams.unitId,\r\n ].find((id) => id != null);\r\n if (unitId == null) {\r\n throw new Error(\r\n `UnitEntityResolver: Unable to resolve entity of type 'Unit'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(unitId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((unit) => {\r\n if (unit == null) {\r\n throw new Error(\r\n `UnitEntityResolver: unable to resolve entity of type 'Unit' for id '${unitId}'`,\r\n );\r\n }\r\n return unit;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitNoteEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchUnitNoteByIdGQL,\r\n byIdsQuery: FetchUnitNoteByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectUnitNoteById,\r\n selectUnitNoteEntitiesByIds,\r\n UnitNoteRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitNoteEntityResolver {\r\n constructor(private readonly _fetchService: UnitNoteEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const unitNoteId: string | undefined = [\r\n route.params.unitNoteId,\r\n route.params.id,\r\n route.queryParams.unitNoteId,\r\n ].find((id) => id != null);\r\n if (unitNoteId == null) {\r\n throw new Error(\r\n `UnitNoteEntityResolver: Unable to resolve entity of type 'UnitNote'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(unitNoteId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((unitNote) => {\r\n if (unitNote == null) {\r\n throw new Error(\r\n `UnitNoteEntityResolver: unable to resolve entity of type 'UnitNote' for id '${unitNoteId}'`,\r\n );\r\n }\r\n return unitNote;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitPositionEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchUnitPositionByIdGQL,\r\n byIdsQuery: FetchUnitPositionByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectUnitPositionById,\r\n selectUnitPositionEntitiesByIds,\r\n UnitPositionRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitPositionEntityResolver {\r\n constructor(private readonly _fetchService: UnitPositionEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const unitPositionId: string | undefined = [\r\n route.params.unitPositionId,\r\n route.params.id,\r\n route.queryParams.unitPositionId,\r\n ].find((id) => id != null);\r\n if (unitPositionId == null) {\r\n throw new Error(\r\n `UnitPositionEntityResolver: Unable to resolve entity of type 'UnitPosition'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(unitPositionId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((unitPosition) => {\r\n if (unitPosition == null) {\r\n throw new Error(\r\n `UnitPositionEntityResolver: unable to resolve entity of type 'UnitPosition' for id '${unitPositionId}'`,\r\n );\r\n }\r\n return unitPosition;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitShiftEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchUnitShiftByIdGQL,\r\n byIdsQuery: FetchUnitShiftByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectUnitShiftById,\r\n selectUnitShiftEntitiesByIds,\r\n UnitShiftRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitShiftEntityResolver {\r\n constructor(private readonly _fetchService: UnitShiftEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const unitShiftId: string | undefined = [\r\n route.params.unitShiftId,\r\n route.params.id,\r\n route.queryParams.unitShiftId,\r\n ].find((id) => id != null);\r\n if (unitShiftId == null) {\r\n throw new Error(\r\n `UnitShiftEntityResolver: Unable to resolve entity of type 'UnitShift'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(unitShiftId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((unitShift) => {\r\n if (unitShift == null) {\r\n throw new Error(\r\n `UnitShiftEntityResolver: unable to resolve entity of type 'UnitShift' for id '${unitShiftId}'`,\r\n );\r\n }\r\n return unitShift;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitStatusHistoryEntryEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchUnitStatusHistoryEntryByIdGQL,\r\n byIdsQuery: FetchUnitStatusHistoryEntryByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectUnitStatusHistoryEntryById,\r\n selectUnitStatusHistoryEntryEntitiesByIds,\r\n UnitStatusHistoryEntryRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitStatusHistoryEntryEntityResolver {\r\n constructor(private readonly _fetchService: UnitStatusHistoryEntryEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const unitStatusHistoryEntryId: string | undefined = [\r\n route.params.unitStatusHistoryEntryId,\r\n route.params.id,\r\n route.queryParams.unitStatusHistoryEntryId,\r\n ].find((id) => id != null);\r\n if (unitStatusHistoryEntryId == null) {\r\n throw new Error(\r\n `UnitStatusHistoryEntryEntityResolver: Unable to resolve entity of type 'UnitStatusHistoryEntry'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(unitStatusHistoryEntryId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((unitStatusHistoryEntry) => {\r\n if (unitStatusHistoryEntry == null) {\r\n throw new Error(\r\n `UnitStatusHistoryEntryEntityResolver: unable to resolve entity of type 'UnitStatusHistoryEntry' for id '${unitStatusHistoryEntryId}'`,\r\n );\r\n }\r\n return unitStatusHistoryEntry;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitSummaryEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchUnitSummaryByIdGQL,\r\n byIdsQuery: FetchUnitSummaryByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectUnitSummaryById,\r\n selectUnitSummaryEntitiesByIds,\r\n UnitSummaryRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UnitSummaryEntityResolver {\r\n constructor(private readonly _fetchService: UnitSummaryEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const unitSummaryId: string | undefined = [\r\n route.params.unitSummaryId,\r\n route.params.id,\r\n route.queryParams.unitSummaryId,\r\n ].find((id) => id != null);\r\n if (unitSummaryId == null) {\r\n throw new Error(\r\n `UnitSummaryEntityResolver: Unable to resolve entity of type 'UnitSummary'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(unitSummaryId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((unitSummary) => {\r\n if (unitSummary == null) {\r\n throw new Error(\r\n `UnitSummaryEntityResolver: unable to resolve entity of type 'UnitSummary' for id '${unitSummaryId}'`,\r\n );\r\n }\r\n return unitSummary;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleDispositionEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchVehicleDispositionByIdGQL,\r\n byIdsQuery: FetchVehicleDispositionByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectVehicleDispositionById,\r\n selectVehicleDispositionEntitiesByIds,\r\n VehicleDispositionRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleDispositionEntityResolver {\r\n constructor(private readonly _fetchService: VehicleDispositionEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const vehicleDispositionId: string | undefined = [\r\n route.params.vehicleDispositionId,\r\n route.params.id,\r\n route.queryParams.vehicleDispositionId,\r\n ].find((id) => id != null);\r\n if (vehicleDispositionId == null) {\r\n throw new Error(\r\n `VehicleDispositionEntityResolver: Unable to resolve entity of type 'VehicleDisposition'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(vehicleDispositionId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((vehicleDisposition) => {\r\n if (vehicleDisposition == null) {\r\n throw new Error(\r\n `VehicleDispositionEntityResolver: unable to resolve entity of type 'VehicleDisposition' for id '${vehicleDispositionId}'`,\r\n );\r\n }\r\n return vehicleDisposition;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleSummaryEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchVehicleSummaryByIdGQL,\r\n byIdsQuery: FetchVehicleSummaryByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectVehicleSummaryById,\r\n selectVehicleSummaryEntitiesByIds,\r\n VehicleSummaryRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleSummaryEntityResolver {\r\n constructor(private readonly _fetchService: VehicleSummaryEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const vehicleSummaryId: string | undefined = [\r\n route.params.vehicleSummaryId,\r\n route.params.id,\r\n route.queryParams.vehicleSummaryId,\r\n ].find((id) => id != null);\r\n if (vehicleSummaryId == null) {\r\n throw new Error(\r\n `VehicleSummaryEntityResolver: Unable to resolve entity of type 'VehicleSummary'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(vehicleSummaryId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((vehicleSummary) => {\r\n if (vehicleSummary == null) {\r\n throw new Error(\r\n `VehicleSummaryEntityResolver: unable to resolve entity of type 'VehicleSummary' for id '${vehicleSummaryId}'`,\r\n );\r\n }\r\n return vehicleSummary;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class WaypointEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchWaypointByIdGQL,\r\n byIdsQuery: FetchWaypointByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectWaypointById,\r\n selectWaypointEntitiesByIds,\r\n WaypointRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class WaypointEntityResolver {\r\n constructor(private readonly _fetchService: WaypointEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const waypointId: string | undefined = [\r\n route.params.waypointId,\r\n route.params.id,\r\n route.queryParams.waypointId,\r\n ].find((id) => id != null);\r\n if (waypointId == null) {\r\n throw new Error(\r\n `WaypointEntityResolver: Unable to resolve entity of type 'Waypoint'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(waypointId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((waypoint) => {\r\n if (waypoint == null) {\r\n throw new Error(\r\n `WaypointEntityResolver: unable to resolve entity of type 'Waypoint' for id '${waypointId}'`,\r\n );\r\n }\r\n return waypoint;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class WebOrderLogEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchWebOrderLogByIdGQL,\r\n byIdsQuery: FetchWebOrderLogByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectWebOrderLogById,\r\n selectWebOrderLogEntitiesByIds,\r\n WebOrderLogRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class WebOrderLogEntityResolver {\r\n constructor(private readonly _fetchService: WebOrderLogEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const webOrderLogId: string | undefined = [\r\n route.params.webOrderLogId,\r\n route.params.id,\r\n route.queryParams.webOrderLogId,\r\n ].find((id) => id != null);\r\n if (webOrderLogId == null) {\r\n throw new Error(\r\n `WebOrderLogEntityResolver: Unable to resolve entity of type 'WebOrderLog'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(webOrderLogId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((webOrderLog) => {\r\n if (webOrderLog == null) {\r\n throw new Error(\r\n `WebOrderLogEntityResolver: unable to resolve entity of type 'WebOrderLog' for id '${webOrderLogId}'`,\r\n );\r\n }\r\n return webOrderLog;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AccessibleItemEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchAccessibleItemByIdGQL,\r\n byIdsQuery: FetchAccessibleItemByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectAccessibleItemById,\r\n selectAccessibleItemEntitiesByIds,\r\n AccessibleItemRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AccessibleItemEntityResolver {\r\n constructor(private readonly _fetchService: AccessibleItemEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const accessibleItemId: string | undefined = [\r\n route.params.accessibleItemId,\r\n route.params.id,\r\n route.queryParams.accessibleItemId,\r\n ].find((id) => id != null);\r\n if (accessibleItemId == null) {\r\n throw new Error(\r\n `AccessibleItemEntityResolver: Unable to resolve entity of type 'AccessibleItem'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(accessibleItemId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((accessibleItem) => {\r\n if (accessibleItem == null) {\r\n throw new Error(\r\n `AccessibleItemEntityResolver: unable to resolve entity of type 'AccessibleItem' for id '${accessibleItemId}'`,\r\n );\r\n }\r\n return accessibleItem;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AgencyEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchAgencyByIdGQL,\r\n byIdsQuery: FetchAgencyByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectAgencyById,\r\n selectAgencyEntitiesByIds,\r\n AgencyRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AgencyEntityResolver {\r\n constructor(private readonly _fetchService: AgencyEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const agencyId: string | undefined = [\r\n route.params.agencyId,\r\n route.params.id,\r\n route.queryParams.agencyId,\r\n ].find((id) => id != null);\r\n if (agencyId == null) {\r\n throw new Error(\r\n `AgencyEntityResolver: Unable to resolve entity of type 'Agency'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(agencyId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((agency) => {\r\n if (agency == null) {\r\n throw new Error(\r\n `AgencyEntityResolver: unable to resolve entity of type 'Agency' for id '${agencyId}'`,\r\n );\r\n }\r\n return agency;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AgencyLocationEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchAgencyLocationByIdGQL,\r\n byIdsQuery: FetchAgencyLocationByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectAgencyLocationById,\r\n selectAgencyLocationEntitiesByIds,\r\n AgencyLocationRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AgencyLocationEntityResolver {\r\n constructor(private readonly _fetchService: AgencyLocationEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const agencyLocationId: string | undefined = [\r\n route.params.agencyLocationId,\r\n route.params.id,\r\n route.queryParams.agencyLocationId,\r\n ].find((id) => id != null);\r\n if (agencyLocationId == null) {\r\n throw new Error(\r\n `AgencyLocationEntityResolver: Unable to resolve entity of type 'AgencyLocation'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(agencyLocationId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((agencyLocation) => {\r\n if (agencyLocation == null) {\r\n throw new Error(\r\n `AgencyLocationEntityResolver: unable to resolve entity of type 'AgencyLocation' for id '${agencyLocationId}'`,\r\n );\r\n }\r\n return agencyLocation;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AirportEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchAirportByIdGQL,\r\n byIdsQuery: FetchAirportByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectAirportById,\r\n selectAirportEntitiesByIds,\r\n AirportRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AirportEntityResolver {\r\n constructor(private readonly _fetchService: AirportEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const airportId: string | undefined = [\r\n route.params.airportId,\r\n route.params.id,\r\n route.queryParams.airportId,\r\n ].find((id) => id != null);\r\n if (airportId == null) {\r\n throw new Error(\r\n `AirportEntityResolver: Unable to resolve entity of type 'Airport'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(airportId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((airport) => {\r\n if (airport == null) {\r\n throw new Error(\r\n `AirportEntityResolver: unable to resolve entity of type 'Airport' for id '${airportId}'`,\r\n );\r\n }\r\n return airport;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ArchiveLogEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchArchiveLogByIdGQL,\r\n byIdsQuery: FetchArchiveLogByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectArchiveLogById,\r\n selectArchiveLogEntitiesByIds,\r\n ArchiveLogRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ArchiveLogEntityResolver {\r\n constructor(private readonly _fetchService: ArchiveLogEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const archiveLogId: string | undefined = [\r\n route.params.archiveLogId,\r\n route.params.id,\r\n route.queryParams.archiveLogId,\r\n ].find((id) => id != null);\r\n if (archiveLogId == null) {\r\n throw new Error(\r\n `ArchiveLogEntityResolver: Unable to resolve entity of type 'ArchiveLog'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(archiveLogId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((archiveLog) => {\r\n if (archiveLog == null) {\r\n throw new Error(\r\n `ArchiveLogEntityResolver: unable to resolve entity of type 'ArchiveLog' for id '${archiveLogId}'`,\r\n );\r\n }\r\n return archiveLog;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class BaseControlZoneEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchBaseControlZoneByIdGQL,\r\n byIdsQuery: FetchBaseControlZoneByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectBaseControlZoneById,\r\n selectBaseControlZoneEntitiesByIds,\r\n BaseControlZoneRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class BaseControlZoneEntityResolver {\r\n constructor(private readonly _fetchService: BaseControlZoneEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const baseControlZoneId: string | undefined = [\r\n route.params.baseControlZoneId,\r\n route.params.id,\r\n route.queryParams.baseControlZoneId,\r\n ].find((id) => id != null);\r\n if (baseControlZoneId == null) {\r\n throw new Error(\r\n `BaseControlZoneEntityResolver: Unable to resolve entity of type 'BaseControlZone'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(baseControlZoneId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((baseControlZone) => {\r\n if (baseControlZone == null) {\r\n throw new Error(\r\n `BaseControlZoneEntityResolver: unable to resolve entity of type 'BaseControlZone' for id '${baseControlZoneId}'`,\r\n );\r\n }\r\n return baseControlZone;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class BaseEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchBaseByIdGQL,\r\n byIdsQuery: FetchBaseByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectBaseById,\r\n selectBaseEntitiesByIds,\r\n BaseRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class BaseEntityResolver {\r\n constructor(private readonly _fetchService: BaseEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const baseId: string | undefined = [\r\n route.params.baseId,\r\n route.params.id,\r\n route.queryParams.baseId,\r\n ].find((id) => id != null);\r\n if (baseId == null) {\r\n throw new Error(\r\n `BaseEntityResolver: Unable to resolve entity of type 'Base'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(baseId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((base) => {\r\n if (base == null) {\r\n throw new Error(\r\n `BaseEntityResolver: unable to resolve entity of type 'Base' for id '${baseId}'`,\r\n );\r\n }\r\n return base;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class BaseMedicalControlContactEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchBaseMedicalControlContactByIdGQL,\r\n byIdsQuery: FetchBaseMedicalControlContactByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectBaseMedicalControlContactById,\r\n selectBaseMedicalControlContactEntitiesByIds,\r\n BaseMedicalControlContactRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class BaseMedicalControlContactEntityResolver {\r\n constructor(private readonly _fetchService: BaseMedicalControlContactEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const baseMedicalControlContactId: string | undefined = [\r\n route.params.baseMedicalControlContactId,\r\n route.params.id,\r\n route.queryParams.baseMedicalControlContactId,\r\n ].find((id) => id != null);\r\n if (baseMedicalControlContactId == null) {\r\n throw new Error(\r\n `BaseMedicalControlContactEntityResolver: Unable to resolve entity of type 'BaseMedicalControlContact'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(baseMedicalControlContactId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((baseMedicalControlContact) => {\r\n if (baseMedicalControlContact == null) {\r\n throw new Error(\r\n `BaseMedicalControlContactEntityResolver: unable to resolve entity of type 'BaseMedicalControlContact' for id '${baseMedicalControlContactId}'`,\r\n );\r\n }\r\n return baseMedicalControlContact;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class BaseMedicalControlContactStateEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchBaseMedicalControlContactStateByIdGQL,\r\n byIdsQuery: FetchBaseMedicalControlContactStateByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectBaseMedicalControlContactStateById,\r\n selectBaseMedicalControlContactStateEntitiesByIds,\r\n BaseMedicalControlContactStateRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class BaseMedicalControlContactStateEntityResolver {\r\n constructor(private readonly _fetchService: BaseMedicalControlContactStateEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const baseMedicalControlContactStateId: string | undefined = [\r\n route.params.baseMedicalControlContactStateId,\r\n route.params.id,\r\n route.queryParams.baseMedicalControlContactStateId,\r\n ].find((id) => id != null);\r\n if (baseMedicalControlContactStateId == null) {\r\n throw new Error(\r\n `BaseMedicalControlContactStateEntityResolver: Unable to resolve entity of type 'BaseMedicalControlContactState'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(baseMedicalControlContactStateId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((baseMedicalControlContactState) => {\r\n if (baseMedicalControlContactState == null) {\r\n throw new Error(\r\n `BaseMedicalControlContactStateEntityResolver: unable to resolve entity of type 'BaseMedicalControlContactState' for id '${baseMedicalControlContactStateId}'`,\r\n );\r\n }\r\n return baseMedicalControlContactState;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CapabilityEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCapabilityByIdGQL,\r\n byIdsQuery: FetchCapabilityByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCapabilityById,\r\n selectCapabilityEntitiesByIds,\r\n CapabilityRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CapabilityEntityResolver {\r\n constructor(private readonly _fetchService: CapabilityEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const capabilityId: string | undefined = [\r\n route.params.capabilityId,\r\n route.params.id,\r\n route.queryParams.capabilityId,\r\n ].find((id) => id != null);\r\n if (capabilityId == null) {\r\n throw new Error(\r\n `CapabilityEntityResolver: Unable to resolve entity of type 'Capability'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(capabilityId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((capability) => {\r\n if (capability == null) {\r\n throw new Error(\r\n `CapabilityEntityResolver: unable to resolve entity of type 'Capability' for id '${capabilityId}'`,\r\n );\r\n }\r\n return capability;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CommunicationCenterEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCommunicationCenterByIdGQL,\r\n byIdsQuery: FetchCommunicationCenterByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCommunicationCenterById,\r\n selectCommunicationCenterEntitiesByIds,\r\n CommunicationCenterRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CommunicationCenterEntityResolver {\r\n constructor(private readonly _fetchService: CommunicationCenterEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const communicationCenterId: string | undefined = [\r\n route.params.communicationCenterId,\r\n route.params.id,\r\n route.queryParams.communicationCenterId,\r\n ].find((id) => id != null);\r\n if (communicationCenterId == null) {\r\n throw new Error(\r\n `CommunicationCenterEntityResolver: Unable to resolve entity of type 'CommunicationCenter'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(communicationCenterId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((communicationCenter) => {\r\n if (communicationCenter == null) {\r\n throw new Error(\r\n `CommunicationCenterEntityResolver: unable to resolve entity of type 'CommunicationCenter' for id '${communicationCenterId}'`,\r\n );\r\n }\r\n return communicationCenter;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CommunicationCenterTransportOfferOptionEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCommunicationCenterTransportOfferOptionByIdGQL,\r\n byIdsQuery: FetchCommunicationCenterTransportOfferOptionByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCommunicationCenterTransportOfferOptionById,\r\n selectCommunicationCenterTransportOfferOptionEntitiesByIds,\r\n CommunicationCenterTransportOfferOptionRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CommunicationCenterTransportOfferOptionEntityResolver {\r\n constructor(\r\n private readonly _fetchService: CommunicationCenterTransportOfferOptionEntityFetchService,\r\n ) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const communicationCenterTransportOfferOptionId: string | undefined = [\r\n route.params.communicationCenterTransportOfferOptionId,\r\n route.params.id,\r\n route.queryParams.communicationCenterTransportOfferOptionId,\r\n ].find((id) => id != null);\r\n if (communicationCenterTransportOfferOptionId == null) {\r\n throw new Error(\r\n `CommunicationCenterTransportOfferOptionEntityResolver: Unable to resolve entity of type 'CommunicationCenterTransportOfferOption'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(communicationCenterTransportOfferOptionId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((communicationCenterTransportOfferOption) => {\r\n if (communicationCenterTransportOfferOption == null) {\r\n throw new Error(\r\n `CommunicationCenterTransportOfferOptionEntityResolver: unable to resolve entity of type 'CommunicationCenterTransportOfferOption' for id '${communicationCenterTransportOfferOptionId}'`,\r\n );\r\n }\r\n return communicationCenterTransportOfferOption;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CompanyEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCompanyByIdGQL,\r\n byIdsQuery: FetchCompanyByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCompanyById,\r\n selectCompanyEntitiesByIds,\r\n CompanyRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CompanyEntityResolver {\r\n constructor(private readonly _fetchService: CompanyEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const companyId: string | undefined = [\r\n route.params.companyId,\r\n route.params.id,\r\n route.queryParams.companyId,\r\n ].find((id) => id != null);\r\n if (companyId == null) {\r\n throw new Error(\r\n `CompanyEntityResolver: Unable to resolve entity of type 'Company'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(companyId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((company) => {\r\n if (company == null) {\r\n throw new Error(\r\n `CompanyEntityResolver: unable to resolve entity of type 'Company' for id '${companyId}'`,\r\n );\r\n }\r\n return company;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CompleteFlightInstanceEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchCompleteFlightInstanceByIdGQL,\r\n byIdsQuery: FetchCompleteFlightInstanceByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectCompleteFlightInstanceById,\r\n selectCompleteFlightInstanceEntitiesByIds,\r\n CompleteFlightInstanceRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CompleteFlightInstanceEntityResolver {\r\n constructor(private readonly _fetchService: CompleteFlightInstanceEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const completeFlightInstanceId: string | undefined = [\r\n route.params.completeFlightInstanceId,\r\n route.params.id,\r\n route.queryParams.completeFlightInstanceId,\r\n ].find((id) => id != null);\r\n if (completeFlightInstanceId == null) {\r\n throw new Error(\r\n `CompleteFlightInstanceEntityResolver: Unable to resolve entity of type 'CompleteFlightInstance'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(completeFlightInstanceId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((completeFlightInstance) => {\r\n if (completeFlightInstance == null) {\r\n throw new Error(\r\n `CompleteFlightInstanceEntityResolver: unable to resolve entity of type 'CompleteFlightInstance' for id '${completeFlightInstanceId}'`,\r\n );\r\n }\r\n return completeFlightInstance;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ControlZoneEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchControlZoneByIdGQL,\r\n byIdsQuery: FetchControlZoneByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectControlZoneById,\r\n selectControlZoneEntitiesByIds,\r\n ControlZoneRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ControlZoneEntityResolver {\r\n constructor(private readonly _fetchService: ControlZoneEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const controlZoneId: string | undefined = [\r\n route.params.controlZoneId,\r\n route.params.id,\r\n route.queryParams.controlZoneId,\r\n ].find((id) => id != null);\r\n if (controlZoneId == null) {\r\n throw new Error(\r\n `ControlZoneEntityResolver: Unable to resolve entity of type 'ControlZone'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(controlZoneId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((controlZone) => {\r\n if (controlZone == null) {\r\n throw new Error(\r\n `ControlZoneEntityResolver: unable to resolve entity of type 'ControlZone' for id '${controlZoneId}'`,\r\n );\r\n }\r\n return controlZone;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class DepartmentEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchDepartmentByIdGQL,\r\n byIdsQuery: FetchDepartmentByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectDepartmentById,\r\n selectDepartmentEntitiesByIds,\r\n DepartmentRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class DepartmentEntityResolver {\r\n constructor(private readonly _fetchService: DepartmentEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const departmentId: string | undefined = [\r\n route.params.departmentId,\r\n route.params.id,\r\n route.queryParams.departmentId,\r\n ].find((id) => id != null);\r\n if (departmentId == null) {\r\n throw new Error(\r\n `DepartmentEntityResolver: Unable to resolve entity of type 'Department'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(departmentId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((department) => {\r\n if (department == null) {\r\n throw new Error(\r\n `DepartmentEntityResolver: unable to resolve entity of type 'Department' for id '${departmentId}'`,\r\n );\r\n }\r\n return department;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class EntityCapabilityEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchEntityCapabilityByIdGQL,\r\n byIdsQuery: FetchEntityCapabilityByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectEntityCapabilityById,\r\n selectEntityCapabilityEntitiesByIds,\r\n EntityCapabilityRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class EntityCapabilityEntityResolver {\r\n constructor(private readonly _fetchService: EntityCapabilityEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const entityCapabilityId: string | undefined = [\r\n route.params.entityCapabilityId,\r\n route.params.id,\r\n route.queryParams.entityCapabilityId,\r\n ].find((id) => id != null);\r\n if (entityCapabilityId == null) {\r\n throw new Error(\r\n `EntityCapabilityEntityResolver: Unable to resolve entity of type 'EntityCapability'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(entityCapabilityId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((entityCapability) => {\r\n if (entityCapability == null) {\r\n throw new Error(\r\n `EntityCapabilityEntityResolver: unable to resolve entity of type 'EntityCapability' for id '${entityCapabilityId}'`,\r\n );\r\n }\r\n return entityCapability;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ExternalReferenceEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchExternalReferenceByIdGQL,\r\n byIdsQuery: FetchExternalReferenceByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectExternalReferenceById,\r\n selectExternalReferenceEntitiesByIds,\r\n ExternalReferenceRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ExternalReferenceEntityResolver {\r\n constructor(private readonly _fetchService: ExternalReferenceEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const externalReferenceId: string | undefined = [\r\n route.params.externalReferenceId,\r\n route.params.id,\r\n route.queryParams.externalReferenceId,\r\n ].find((id) => id != null);\r\n if (externalReferenceId == null) {\r\n throw new Error(\r\n `ExternalReferenceEntityResolver: Unable to resolve entity of type 'ExternalReference'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(externalReferenceId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((externalReference) => {\r\n if (externalReference == null) {\r\n throw new Error(\r\n `ExternalReferenceEntityResolver: unable to resolve entity of type 'ExternalReference' for id '${externalReferenceId}'`,\r\n );\r\n }\r\n return externalReference;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class FboEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchFboByIdGQL,\r\n byIdsQuery: FetchFboByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(byIdQuery, byIdsQuery, _store, selectFboById, selectFboEntitiesByIds, FboRecord.fromJS);\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class FboEntityResolver {\r\n constructor(private readonly _fetchService: FboEntityFetchService) {}\r\n\r\n public resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n const fboId: string | undefined = [\r\n route.params.fboId,\r\n route.params.id,\r\n route.queryParams.fboId,\r\n ].find((id) => id != null);\r\n if (fboId == null) {\r\n throw new Error(\r\n `FboEntityResolver: Unable to resolve entity of type 'Fbo'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(fboId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((fbo) => {\r\n if (fbo == null) {\r\n throw new Error(\r\n `FboEntityResolver: unable to resolve entity of type 'Fbo' for id '${fboId}'`,\r\n );\r\n }\r\n return fbo;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class FuelTankEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchFuelTankByIdGQL,\r\n byIdsQuery: FetchFuelTankByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectFuelTankById,\r\n selectFuelTankEntitiesByIds,\r\n FuelTankRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class FuelTankEntityResolver {\r\n constructor(private readonly _fetchService: FuelTankEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const fuelTankId: string | undefined = [\r\n route.params.fuelTankId,\r\n route.params.id,\r\n route.queryParams.fuelTankId,\r\n ].find((id) => id != null);\r\n if (fuelTankId == null) {\r\n throw new Error(\r\n `FuelTankEntityResolver: Unable to resolve entity of type 'FuelTank'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(fuelTankId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((fuelTank) => {\r\n if (fuelTank == null) {\r\n throw new Error(\r\n `FuelTankEntityResolver: unable to resolve entity of type 'FuelTank' for id '${fuelTankId}'`,\r\n );\r\n }\r\n return fuelTank;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class LocationEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchLocationByIdGQL,\r\n byIdsQuery: FetchLocationByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectLocationById,\r\n selectLocationEntitiesByIds,\r\n LocationRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class LocationEntityResolver {\r\n constructor(private readonly _fetchService: LocationEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const locationId: string | undefined = [\r\n route.params.locationId,\r\n route.params.id,\r\n route.queryParams.locationId,\r\n ].find((id) => id != null);\r\n if (locationId == null) {\r\n throw new Error(\r\n `LocationEntityResolver: Unable to resolve entity of type 'Location'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(locationId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((location) => {\r\n if (location == null) {\r\n throw new Error(\r\n `LocationEntityResolver: unable to resolve entity of type 'Location' for id '${locationId}'`,\r\n );\r\n }\r\n return location;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MedicalFacilityContactEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchMedicalFacilityContactByIdGQL,\r\n byIdsQuery: FetchMedicalFacilityContactByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectMedicalFacilityContactById,\r\n selectMedicalFacilityContactEntitiesByIds,\r\n MedicalFacilityContactRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MedicalFacilityContactEntityResolver {\r\n constructor(private readonly _fetchService: MedicalFacilityContactEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const medicalFacilityContactId: string | undefined = [\r\n route.params.medicalFacilityContactId,\r\n route.params.id,\r\n route.queryParams.medicalFacilityContactId,\r\n ].find((id) => id != null);\r\n if (medicalFacilityContactId == null) {\r\n throw new Error(\r\n `MedicalFacilityContactEntityResolver: Unable to resolve entity of type 'MedicalFacilityContact'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(medicalFacilityContactId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((medicalFacilityContact) => {\r\n if (medicalFacilityContact == null) {\r\n throw new Error(\r\n `MedicalFacilityContactEntityResolver: unable to resolve entity of type 'MedicalFacilityContact' for id '${medicalFacilityContactId}'`,\r\n );\r\n }\r\n return medicalFacilityContact;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MedicalFacilityEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchMedicalFacilityByIdGQL,\r\n byIdsQuery: FetchMedicalFacilityByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectMedicalFacilityById,\r\n selectMedicalFacilityEntitiesByIds,\r\n MedicalFacilityRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MedicalFacilityEntityResolver {\r\n constructor(private readonly _fetchService: MedicalFacilityEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const medicalFacilityId: string | undefined = [\r\n route.params.medicalFacilityId,\r\n route.params.id,\r\n route.queryParams.medicalFacilityId,\r\n ].find((id) => id != null);\r\n if (medicalFacilityId == null) {\r\n throw new Error(\r\n `MedicalFacilityEntityResolver: Unable to resolve entity of type 'MedicalFacility'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(medicalFacilityId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((medicalFacility) => {\r\n if (medicalFacility == null) {\r\n throw new Error(\r\n `MedicalFacilityEntityResolver: unable to resolve entity of type 'MedicalFacility' for id '${medicalFacilityId}'`,\r\n );\r\n }\r\n return medicalFacility;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MedicalFacilityPhysicianEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchMedicalFacilityPhysicianByIdGQL,\r\n byIdsQuery: FetchMedicalFacilityPhysicianByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectMedicalFacilityPhysicianById,\r\n selectMedicalFacilityPhysicianEntitiesByIds,\r\n MedicalFacilityPhysicianRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MedicalFacilityPhysicianEntityResolver {\r\n constructor(private readonly _fetchService: MedicalFacilityPhysicianEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const medicalFacilityPhysicianId: string | undefined = [\r\n route.params.medicalFacilityPhysicianId,\r\n route.params.id,\r\n route.queryParams.medicalFacilityPhysicianId,\r\n ].find((id) => id != null);\r\n if (medicalFacilityPhysicianId == null) {\r\n throw new Error(\r\n `MedicalFacilityPhysicianEntityResolver: Unable to resolve entity of type 'MedicalFacilityPhysician'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(medicalFacilityPhysicianId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((medicalFacilityPhysician) => {\r\n if (medicalFacilityPhysician == null) {\r\n throw new Error(\r\n `MedicalFacilityPhysicianEntityResolver: unable to resolve entity of type 'MedicalFacilityPhysician' for id '${medicalFacilityPhysicianId}'`,\r\n );\r\n }\r\n return medicalFacilityPhysician;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MedicalFacilityUnitEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchMedicalFacilityUnitByIdGQL,\r\n byIdsQuery: FetchMedicalFacilityUnitByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectMedicalFacilityUnitById,\r\n selectMedicalFacilityUnitEntitiesByIds,\r\n MedicalFacilityUnitRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MedicalFacilityUnitEntityResolver {\r\n constructor(private readonly _fetchService: MedicalFacilityUnitEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const medicalFacilityUnitId: string | undefined = [\r\n route.params.medicalFacilityUnitId,\r\n route.params.id,\r\n route.queryParams.medicalFacilityUnitId,\r\n ].find((id) => id != null);\r\n if (medicalFacilityUnitId == null) {\r\n throw new Error(\r\n `MedicalFacilityUnitEntityResolver: Unable to resolve entity of type 'MedicalFacilityUnit'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(medicalFacilityUnitId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((medicalFacilityUnit) => {\r\n if (medicalFacilityUnit == null) {\r\n throw new Error(\r\n `MedicalFacilityUnitEntityResolver: unable to resolve entity of type 'MedicalFacilityUnit' for id '${medicalFacilityUnitId}'`,\r\n );\r\n }\r\n return medicalFacilityUnit;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MedicalUnitEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchMedicalUnitByIdGQL,\r\n byIdsQuery: FetchMedicalUnitByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectMedicalUnitById,\r\n selectMedicalUnitEntitiesByIds,\r\n MedicalUnitRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MedicalUnitEntityResolver {\r\n constructor(private readonly _fetchService: MedicalUnitEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const medicalUnitId: string | undefined = [\r\n route.params.medicalUnitId,\r\n route.params.id,\r\n route.queryParams.medicalUnitId,\r\n ].find((id) => id != null);\r\n if (medicalUnitId == null) {\r\n throw new Error(\r\n `MedicalUnitEntityResolver: Unable to resolve entity of type 'MedicalUnit'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(medicalUnitId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((medicalUnit) => {\r\n if (medicalUnit == null) {\r\n throw new Error(\r\n `MedicalUnitEntityResolver: unable to resolve entity of type 'MedicalUnit' for id '${medicalUnitId}'`,\r\n );\r\n }\r\n return medicalUnit;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PersonEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchPersonByIdGQL,\r\n byIdsQuery: FetchPersonByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectPersonById,\r\n selectPersonEntitiesByIds,\r\n PersonRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PersonEntityResolver {\r\n constructor(private readonly _fetchService: PersonEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const personId: string | undefined = [\r\n route.params.personId,\r\n route.params.id,\r\n route.queryParams.personId,\r\n ].find((id) => id != null);\r\n if (personId == null) {\r\n throw new Error(\r\n `PersonEntityResolver: Unable to resolve entity of type 'Person'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(personId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((person) => {\r\n if (person == null) {\r\n throw new Error(\r\n `PersonEntityResolver: unable to resolve entity of type 'Person' for id '${personId}'`,\r\n );\r\n }\r\n return person;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PhysicianEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchPhysicianByIdGQL,\r\n byIdsQuery: FetchPhysicianByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectPhysicianById,\r\n selectPhysicianEntitiesByIds,\r\n PhysicianRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PhysicianEntityResolver {\r\n constructor(private readonly _fetchService: PhysicianEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const physicianId: string | undefined = [\r\n route.params.physicianId,\r\n route.params.id,\r\n route.queryParams.physicianId,\r\n ].find((id) => id != null);\r\n if (physicianId == null) {\r\n throw new Error(\r\n `PhysicianEntityResolver: Unable to resolve entity of type 'Physician'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(physicianId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((physician) => {\r\n if (physician == null) {\r\n throw new Error(\r\n `PhysicianEntityResolver: unable to resolve entity of type 'Physician' for id '${physicianId}'`,\r\n );\r\n }\r\n return physician;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ProgramBaseEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchProgramBaseByIdGQL,\r\n byIdsQuery: FetchProgramBaseByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectProgramBaseById,\r\n selectProgramBaseEntitiesByIds,\r\n ProgramBaseRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ProgramBaseEntityResolver {\r\n constructor(private readonly _fetchService: ProgramBaseEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const programBaseId: string | undefined = [\r\n route.params.programBaseId,\r\n route.params.id,\r\n route.queryParams.programBaseId,\r\n ].find((id) => id != null);\r\n if (programBaseId == null) {\r\n throw new Error(\r\n `ProgramBaseEntityResolver: Unable to resolve entity of type 'ProgramBase'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(programBaseId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((programBase) => {\r\n if (programBase == null) {\r\n throw new Error(\r\n `ProgramBaseEntityResolver: unable to resolve entity of type 'ProgramBase' for id '${programBaseId}'`,\r\n );\r\n }\r\n return programBase;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ProgramEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchProgramByIdGQL,\r\n byIdsQuery: FetchProgramByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectProgramById,\r\n selectProgramEntitiesByIds,\r\n ProgramRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ProgramEntityResolver {\r\n constructor(private readonly _fetchService: ProgramEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const programId: string | undefined = [\r\n route.params.programId,\r\n route.params.id,\r\n route.queryParams.programId,\r\n ].find((id) => id != null);\r\n if (programId == null) {\r\n throw new Error(\r\n `ProgramEntityResolver: Unable to resolve entity of type 'Program'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(programId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((program) => {\r\n if (program == null) {\r\n throw new Error(\r\n `ProgramEntityResolver: unable to resolve entity of type 'Program' for id '${programId}'`,\r\n );\r\n }\r\n return program;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RamcoVehicleConfigurationEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchRamcoVehicleConfigurationByIdGQL,\r\n byIdsQuery: FetchRamcoVehicleConfigurationByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectRamcoVehicleConfigurationById,\r\n selectRamcoVehicleConfigurationEntitiesByIds,\r\n RamcoVehicleConfigurationRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RamcoVehicleConfigurationEntityResolver {\r\n constructor(private readonly _fetchService: RamcoVehicleConfigurationEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const ramcoVehicleConfigurationId: string | undefined = [\r\n route.params.ramcoVehicleConfigurationId,\r\n route.params.id,\r\n route.queryParams.ramcoVehicleConfigurationId,\r\n ].find((id) => id != null);\r\n if (ramcoVehicleConfigurationId == null) {\r\n throw new Error(\r\n `RamcoVehicleConfigurationEntityResolver: Unable to resolve entity of type 'RamcoVehicleConfiguration'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(ramcoVehicleConfigurationId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((ramcoVehicleConfiguration) => {\r\n if (ramcoVehicleConfiguration == null) {\r\n throw new Error(\r\n `RamcoVehicleConfigurationEntityResolver: unable to resolve entity of type 'RamcoVehicleConfiguration' for id '${ramcoVehicleConfigurationId}'`,\r\n );\r\n }\r\n return ramcoVehicleConfiguration;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RegionBaseEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchRegionBaseByIdGQL,\r\n byIdsQuery: FetchRegionBaseByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectRegionBaseById,\r\n selectRegionBaseEntitiesByIds,\r\n RegionBaseRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RegionBaseEntityResolver {\r\n constructor(private readonly _fetchService: RegionBaseEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const regionBaseId: string | undefined = [\r\n route.params.regionBaseId,\r\n route.params.id,\r\n route.queryParams.regionBaseId,\r\n ].find((id) => id != null);\r\n if (regionBaseId == null) {\r\n throw new Error(\r\n `RegionBaseEntityResolver: Unable to resolve entity of type 'RegionBase'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(regionBaseId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((regionBase) => {\r\n if (regionBase == null) {\r\n throw new Error(\r\n `RegionBaseEntityResolver: unable to resolve entity of type 'RegionBase' for id '${regionBaseId}'`,\r\n );\r\n }\r\n return regionBase;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RegionEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchRegionByIdGQL,\r\n byIdsQuery: FetchRegionByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectRegionById,\r\n selectRegionEntitiesByIds,\r\n RegionRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RegionEntityResolver {\r\n constructor(private readonly _fetchService: RegionEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const regionId: string | undefined = [\r\n route.params.regionId,\r\n route.params.id,\r\n route.queryParams.regionId,\r\n ].find((id) => id != null);\r\n if (regionId == null) {\r\n throw new Error(\r\n `RegionEntityResolver: Unable to resolve entity of type 'Region'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(regionId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((region) => {\r\n if (region == null) {\r\n throw new Error(\r\n `RegionEntityResolver: unable to resolve entity of type 'Region' for id '${regionId}'`,\r\n );\r\n }\r\n return region;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RegionGroupEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchRegionGroupByIdGQL,\r\n byIdsQuery: FetchRegionGroupByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectRegionGroupById,\r\n selectRegionGroupEntitiesByIds,\r\n RegionGroupRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RegionGroupEntityResolver {\r\n constructor(private readonly _fetchService: RegionGroupEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const regionGroupId: string | undefined = [\r\n route.params.regionGroupId,\r\n route.params.id,\r\n route.queryParams.regionGroupId,\r\n ].find((id) => id != null);\r\n if (regionGroupId == null) {\r\n throw new Error(\r\n `RegionGroupEntityResolver: Unable to resolve entity of type 'RegionGroup'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(regionGroupId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((regionGroup) => {\r\n if (regionGroup == null) {\r\n throw new Error(\r\n `RegionGroupEntityResolver: unable to resolve entity of type 'RegionGroup' for id '${regionGroupId}'`,\r\n );\r\n }\r\n return regionGroup;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class SpecialtyTeamEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchSpecialtyTeamByIdGQL,\r\n byIdsQuery: FetchSpecialtyTeamByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectSpecialtyTeamById,\r\n selectSpecialtyTeamEntitiesByIds,\r\n SpecialtyTeamRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class SpecialtyTeamEntityResolver {\r\n constructor(private readonly _fetchService: SpecialtyTeamEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const specialtyTeamId: string | undefined = [\r\n route.params.specialtyTeamId,\r\n route.params.id,\r\n route.queryParams.specialtyTeamId,\r\n ].find((id) => id != null);\r\n if (specialtyTeamId == null) {\r\n throw new Error(\r\n `SpecialtyTeamEntityResolver: Unable to resolve entity of type 'SpecialtyTeam'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(specialtyTeamId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((specialtyTeam) => {\r\n if (specialtyTeam == null) {\r\n throw new Error(\r\n `SpecialtyTeamEntityResolver: unable to resolve entity of type 'SpecialtyTeam' for id '${specialtyTeamId}'`,\r\n );\r\n }\r\n return specialtyTeam;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class SpecialtyTeamMemberEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchSpecialtyTeamMemberByIdGQL,\r\n byIdsQuery: FetchSpecialtyTeamMemberByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectSpecialtyTeamMemberById,\r\n selectSpecialtyTeamMemberEntitiesByIds,\r\n SpecialtyTeamMemberRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class SpecialtyTeamMemberEntityResolver {\r\n constructor(private readonly _fetchService: SpecialtyTeamMemberEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const specialtyTeamMemberId: string | undefined = [\r\n route.params.specialtyTeamMemberId,\r\n route.params.id,\r\n route.queryParams.specialtyTeamMemberId,\r\n ].find((id) => id != null);\r\n if (specialtyTeamMemberId == null) {\r\n throw new Error(\r\n `SpecialtyTeamMemberEntityResolver: Unable to resolve entity of type 'SpecialtyTeamMember'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(specialtyTeamMemberId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((specialtyTeamMember) => {\r\n if (specialtyTeamMember == null) {\r\n throw new Error(\r\n `SpecialtyTeamMemberEntityResolver: unable to resolve entity of type 'SpecialtyTeamMember' for id '${specialtyTeamMemberId}'`,\r\n );\r\n }\r\n return specialtyTeamMember;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class SupportRequestEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchSupportRequestByIdGQL,\r\n byIdsQuery: FetchSupportRequestByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectSupportRequestById,\r\n selectSupportRequestEntitiesByIds,\r\n SupportRequestRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class SupportRequestEntityResolver {\r\n constructor(private readonly _fetchService: SupportRequestEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const supportRequestId: string | undefined = [\r\n route.params.supportRequestId,\r\n route.params.id,\r\n route.queryParams.supportRequestId,\r\n ].find((id) => id != null);\r\n if (supportRequestId == null) {\r\n throw new Error(\r\n `SupportRequestEntityResolver: Unable to resolve entity of type 'SupportRequest'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(supportRequestId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((supportRequest) => {\r\n if (supportRequest == null) {\r\n throw new Error(\r\n `SupportRequestEntityResolver: unable to resolve entity of type 'SupportRequest' for id '${supportRequestId}'`,\r\n );\r\n }\r\n return supportRequest;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TimezoneEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTimezoneByIdGQL,\r\n byIdsQuery: FetchTimezoneByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTimezoneById,\r\n selectTimezoneEntitiesByIds,\r\n TimezoneRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TimezoneEntityResolver {\r\n constructor(private readonly _fetchService: TimezoneEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const timezoneId: string | undefined = [\r\n route.params.timezoneId,\r\n route.params.id,\r\n route.queryParams.timezoneId,\r\n ].find((id) => id != null);\r\n if (timezoneId == null) {\r\n throw new Error(\r\n `TimezoneEntityResolver: Unable to resolve entity of type 'Timezone'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(timezoneId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((timezone) => {\r\n if (timezone == null) {\r\n throw new Error(\r\n `TimezoneEntityResolver: unable to resolve entity of type 'Timezone' for id '${timezoneId}'`,\r\n );\r\n }\r\n return timezone;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TransferCenterEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTransferCenterByIdGQL,\r\n byIdsQuery: FetchTransferCenterByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTransferCenterById,\r\n selectTransferCenterEntitiesByIds,\r\n TransferCenterRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TransferCenterEntityResolver {\r\n constructor(private readonly _fetchService: TransferCenterEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const transferCenterId: string | undefined = [\r\n route.params.transferCenterId,\r\n route.params.id,\r\n route.queryParams.transferCenterId,\r\n ].find((id) => id != null);\r\n if (transferCenterId == null) {\r\n throw new Error(\r\n `TransferCenterEntityResolver: Unable to resolve entity of type 'TransferCenter'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(transferCenterId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((transferCenter) => {\r\n if (transferCenter == null) {\r\n throw new Error(\r\n `TransferCenterEntityResolver: unable to resolve entity of type 'TransferCenter' for id '${transferCenterId}'`,\r\n );\r\n }\r\n return transferCenter;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TrmUserAgencyEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTrmUserAgencyByIdGQL,\r\n byIdsQuery: FetchTrmUserAgencyByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTrmUserAgencyById,\r\n selectTrmUserAgencyEntitiesByIds,\r\n TrmUserAgencyRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TrmUserAgencyEntityResolver {\r\n constructor(private readonly _fetchService: TrmUserAgencyEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const trmUserAgencyId: string | undefined = [\r\n route.params.trmUserAgencyId,\r\n route.params.id,\r\n route.queryParams.trmUserAgencyId,\r\n ].find((id) => id != null);\r\n if (trmUserAgencyId == null) {\r\n throw new Error(\r\n `TrmUserAgencyEntityResolver: Unable to resolve entity of type 'TrmUserAgency'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(trmUserAgencyId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((trmUserAgency) => {\r\n if (trmUserAgency == null) {\r\n throw new Error(\r\n `TrmUserAgencyEntityResolver: unable to resolve entity of type 'TrmUserAgency' for id '${trmUserAgencyId}'`,\r\n );\r\n }\r\n return trmUserAgency;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TrmUserEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTrmUserByIdGQL,\r\n byIdsQuery: FetchTrmUserByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTrmUserById,\r\n selectTrmUserEntitiesByIds,\r\n TrmUserRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TrmUserEntityResolver {\r\n constructor(private readonly _fetchService: TrmUserEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const trmUserId: string | undefined = [\r\n route.params.trmUserId,\r\n route.params.id,\r\n route.queryParams.trmUserId,\r\n ].find((id) => id != null);\r\n if (trmUserId == null) {\r\n throw new Error(\r\n `TrmUserEntityResolver: Unable to resolve entity of type 'TrmUser'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(trmUserId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((trmUser) => {\r\n if (trmUser == null) {\r\n throw new Error(\r\n `TrmUserEntityResolver: unable to resolve entity of type 'TrmUser' for id '${trmUserId}'`,\r\n );\r\n }\r\n return trmUser;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TrmUserMedicalFacilityEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTrmUserMedicalFacilityByIdGQL,\r\n byIdsQuery: FetchTrmUserMedicalFacilityByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTrmUserMedicalFacilityById,\r\n selectTrmUserMedicalFacilityEntitiesByIds,\r\n TrmUserMedicalFacilityRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TrmUserMedicalFacilityEntityResolver {\r\n constructor(private readonly _fetchService: TrmUserMedicalFacilityEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const trmUserMedicalFacilityId: string | undefined = [\r\n route.params.trmUserMedicalFacilityId,\r\n route.params.id,\r\n route.queryParams.trmUserMedicalFacilityId,\r\n ].find((id) => id != null);\r\n if (trmUserMedicalFacilityId == null) {\r\n throw new Error(\r\n `TrmUserMedicalFacilityEntityResolver: Unable to resolve entity of type 'TrmUserMedicalFacility'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(trmUserMedicalFacilityId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((trmUserMedicalFacility) => {\r\n if (trmUserMedicalFacility == null) {\r\n throw new Error(\r\n `TrmUserMedicalFacilityEntityResolver: unable to resolve entity of type 'TrmUserMedicalFacility' for id '${trmUserMedicalFacilityId}'`,\r\n );\r\n }\r\n return trmUserMedicalFacility;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TrmUserProgramEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchTrmUserProgramByIdGQL,\r\n byIdsQuery: FetchTrmUserProgramByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectTrmUserProgramById,\r\n selectTrmUserProgramEntitiesByIds,\r\n TrmUserProgramRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TrmUserProgramEntityResolver {\r\n constructor(private readonly _fetchService: TrmUserProgramEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const trmUserProgramId: string | undefined = [\r\n route.params.trmUserProgramId,\r\n route.params.id,\r\n route.queryParams.trmUserProgramId,\r\n ].find((id) => id != null);\r\n if (trmUserProgramId == null) {\r\n throw new Error(\r\n `TrmUserProgramEntityResolver: Unable to resolve entity of type 'TrmUserProgram'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(trmUserProgramId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((trmUserProgram) => {\r\n if (trmUserProgram == null) {\r\n throw new Error(\r\n `TrmUserProgramEntityResolver: unable to resolve entity of type 'TrmUserProgram' for id '${trmUserProgramId}'`,\r\n );\r\n }\r\n return trmUserProgram;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleControlZoneEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchVehicleControlZoneByIdGQL,\r\n byIdsQuery: FetchVehicleControlZoneByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectVehicleControlZoneById,\r\n selectVehicleControlZoneEntitiesByIds,\r\n VehicleControlZoneRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleControlZoneEntityResolver {\r\n constructor(private readonly _fetchService: VehicleControlZoneEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const vehicleControlZoneId: string | undefined = [\r\n route.params.vehicleControlZoneId,\r\n route.params.id,\r\n route.queryParams.vehicleControlZoneId,\r\n ].find((id) => id != null);\r\n if (vehicleControlZoneId == null) {\r\n throw new Error(\r\n `VehicleControlZoneEntityResolver: Unable to resolve entity of type 'VehicleControlZone'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(vehicleControlZoneId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((vehicleControlZone) => {\r\n if (vehicleControlZone == null) {\r\n throw new Error(\r\n `VehicleControlZoneEntityResolver: unable to resolve entity of type 'VehicleControlZone' for id '${vehicleControlZoneId}'`,\r\n );\r\n }\r\n return vehicleControlZone;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchVehicleByIdGQL,\r\n byIdsQuery: FetchVehicleByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectVehicleById,\r\n selectVehicleEntitiesByIds,\r\n VehicleRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleEntityResolver {\r\n constructor(private readonly _fetchService: VehicleEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const vehicleId: string | undefined = [\r\n route.params.vehicleId,\r\n route.params.id,\r\n route.queryParams.vehicleId,\r\n ].find((id) => id != null);\r\n if (vehicleId == null) {\r\n throw new Error(\r\n `VehicleEntityResolver: Unable to resolve entity of type 'Vehicle'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(vehicleId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((vehicle) => {\r\n if (vehicle == null) {\r\n throw new Error(\r\n `VehicleEntityResolver: unable to resolve entity of type 'Vehicle' for id '${vehicleId}'`,\r\n );\r\n }\r\n return vehicle;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleMaintenanceEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchVehicleMaintenanceByIdGQL,\r\n byIdsQuery: FetchVehicleMaintenanceByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectVehicleMaintenanceById,\r\n selectVehicleMaintenanceEntitiesByIds,\r\n VehicleMaintenanceRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleMaintenanceEntityResolver {\r\n constructor(private readonly _fetchService: VehicleMaintenanceEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const vehicleMaintenanceId: string | undefined = [\r\n route.params.vehicleMaintenanceId,\r\n route.params.id,\r\n route.queryParams.vehicleMaintenanceId,\r\n ].find((id) => id != null);\r\n if (vehicleMaintenanceId == null) {\r\n throw new Error(\r\n `VehicleMaintenanceEntityResolver: Unable to resolve entity of type 'VehicleMaintenance'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(vehicleMaintenanceId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((vehicleMaintenance) => {\r\n if (vehicleMaintenance == null) {\r\n throw new Error(\r\n `VehicleMaintenanceEntityResolver: unable to resolve entity of type 'VehicleMaintenance' for id '${vehicleMaintenanceId}'`,\r\n );\r\n }\r\n return vehicleMaintenance;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleMakeEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchVehicleMakeByIdGQL,\r\n byIdsQuery: FetchVehicleMakeByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectVehicleMakeById,\r\n selectVehicleMakeEntitiesByIds,\r\n VehicleMakeRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleMakeEntityResolver {\r\n constructor(private readonly _fetchService: VehicleMakeEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const vehicleMakeId: string | undefined = [\r\n route.params.vehicleMakeId,\r\n route.params.id,\r\n route.queryParams.vehicleMakeId,\r\n ].find((id) => id != null);\r\n if (vehicleMakeId == null) {\r\n throw new Error(\r\n `VehicleMakeEntityResolver: Unable to resolve entity of type 'VehicleMake'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(vehicleMakeId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((vehicleMake) => {\r\n if (vehicleMake == null) {\r\n throw new Error(\r\n `VehicleMakeEntityResolver: unable to resolve entity of type 'VehicleMake' for id '${vehicleMakeId}'`,\r\n );\r\n }\r\n return vehicleMake;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleModelEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchVehicleModelByIdGQL,\r\n byIdsQuery: FetchVehicleModelByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectVehicleModelById,\r\n selectVehicleModelEntitiesByIds,\r\n VehicleModelRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleModelEntityResolver {\r\n constructor(private readonly _fetchService: VehicleModelEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const vehicleModelId: string | undefined = [\r\n route.params.vehicleModelId,\r\n route.params.id,\r\n route.queryParams.vehicleModelId,\r\n ].find((id) => id != null);\r\n if (vehicleModelId == null) {\r\n throw new Error(\r\n `VehicleModelEntityResolver: Unable to resolve entity of type 'VehicleModel'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService.getById(vehicleModelId, { fetchPolicy: 'network-then-cache' }).pipe(\r\n map((vehicleModel) => {\r\n if (vehicleModel == null) {\r\n throw new Error(\r\n `VehicleModelEntityResolver: unable to resolve entity of type 'VehicleModel' for id '${vehicleModelId}'`,\r\n );\r\n }\r\n return vehicleModel;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleStateInspectionEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchVehicleStateInspectionByIdGQL,\r\n byIdsQuery: FetchVehicleStateInspectionByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectVehicleStateInspectionById,\r\n selectVehicleStateInspectionEntitiesByIds,\r\n VehicleStateInspectionRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehicleStateInspectionEntityResolver {\r\n constructor(private readonly _fetchService: VehicleStateInspectionEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const vehicleStateInspectionId: string | undefined = [\r\n route.params.vehicleStateInspectionId,\r\n route.params.id,\r\n route.queryParams.vehicleStateInspectionId,\r\n ].find((id) => id != null);\r\n if (vehicleStateInspectionId == null) {\r\n throw new Error(\r\n `VehicleStateInspectionEntityResolver: Unable to resolve entity of type 'VehicleStateInspection'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(vehicleStateInspectionId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((vehicleStateInspection) => {\r\n if (vehicleStateInspection == null) {\r\n throw new Error(\r\n `VehicleStateInspectionEntityResolver: unable to resolve entity of type 'VehicleStateInspection' for id '${vehicleStateInspectionId}'`,\r\n );\r\n }\r\n return vehicleStateInspection;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ActiveCardUnitOfferingEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchActiveCardUnitOfferingByIdGQL,\r\n byIdsQuery: FetchActiveCardUnitOfferingByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectActiveCardUnitOfferingById,\r\n selectActiveCardUnitOfferingEntitiesByIds,\r\n ActiveCardUnitOfferingRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ActiveCardUnitOfferingEntityResolver {\r\n constructor(private readonly _fetchService: ActiveCardUnitOfferingEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const activeCardUnitOfferingId: string | undefined = [\r\n route.params.activeCardUnitOfferingId,\r\n route.params.id,\r\n route.queryParams.activeCardUnitOfferingId,\r\n ].find((id) => id != null);\r\n if (activeCardUnitOfferingId == null) {\r\n throw new Error(\r\n `ActiveCardUnitOfferingEntityResolver: Unable to resolve entity of type 'ActiveCardUnitOffering'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(activeCardUnitOfferingId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((activeCardUnitOffering) => {\r\n if (activeCardUnitOffering == null) {\r\n throw new Error(\r\n `ActiveCardUnitOfferingEntityResolver: unable to resolve entity of type 'ActiveCardUnitOffering' for id '${activeCardUnitOfferingId}'`,\r\n );\r\n }\r\n return activeCardUnitOffering;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehiclePositionSummaryEntityFetchService extends ClientSyncFetchService {\r\n constructor(\r\n byIdQuery: FetchVehiclePositionSummaryByIdGQL,\r\n byIdsQuery: FetchVehiclePositionSummaryByIdsGQL,\r\n\r\n _store: StoreService,\r\n ) {\r\n super(\r\n byIdQuery,\r\n byIdsQuery,\r\n _store,\r\n selectVehiclePositionSummaryById,\r\n selectVehiclePositionSummaryEntitiesByIds,\r\n VehiclePositionSummaryRecord.fromJS,\r\n );\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class VehiclePositionSummaryEntityResolver {\r\n constructor(private readonly _fetchService: VehiclePositionSummaryEntityFetchService) {}\r\n\r\n public resolve(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot,\r\n ): Observable {\r\n const vehiclePositionSummaryId: string | undefined = [\r\n route.params.vehiclePositionSummaryId,\r\n route.params.id,\r\n route.queryParams.vehiclePositionSummaryId,\r\n ].find((id) => id != null);\r\n if (vehiclePositionSummaryId == null) {\r\n throw new Error(\r\n `VehiclePositionSummaryEntityResolver: Unable to resolve entity of type 'VehiclePositionSummary'. No suitable ID was available in the route. ${state.url}`,\r\n );\r\n }\r\n return this._fetchService\r\n .getById(vehiclePositionSummaryId, { fetchPolicy: 'network-then-cache' })\r\n .pipe(\r\n map((vehiclePositionSummary) => {\r\n if (vehiclePositionSummary == null) {\r\n throw new Error(\r\n `VehiclePositionSummaryEntityResolver: unable to resolve entity of type 'VehiclePositionSummary' for id '${vehiclePositionSummaryId}'`,\r\n );\r\n }\r\n return vehiclePositionSummary;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n\r\nexport class EntityStores extends Record({\r\n activationRule: new EntityStore(),\r\n activeAlert: new EntityStore(),\r\n activeTimeline: new EntityStore(),\r\n alert: new EntityStore(),\r\n applicationNotification: new EntityStore(),\r\n assignmentDelayedReason: new EntityStore(),\r\n cancellationCategory: new EntityStore(),\r\n cancellationReason: new EntityStore(),\r\n cancellationSecondaryReason: new EntityStore(),\r\n card: new EntityStore(),\r\n cardLink: new EntityStore(),\r\n cardNoteArchive: new EntityStore(),\r\n cardNote: new EntityStore(),\r\n cardReOpenReason: new EntityStore(),\r\n cardSummary: new EntityStore(),\r\n configurationSetting: new EntityStore(),\r\n declineCategory: new EntityStore(),\r\n declineReason: new EntityStore(),\r\n declineSecondaryReason: new EntityStore(),\r\n diversionReason: new EntityStore(),\r\n escortRequest: new EntityStore(),\r\n estimatedDuration: new EntityStore(),\r\n eta: new EntityStore(),\r\n externalAction: new EntityStore(),\r\n externalActionType: new EntityStore(),\r\n externalSystemUnit: new EntityStore(),\r\n facilityNonAcceptanceReason: new EntityStore(),\r\n firewallRule: new EntityStore(),\r\n flightFollowingReport: new EntityStore(),\r\n landingZoneOutOfServiceReason: new EntityStore(),\r\n locationHazardAttachment: new EntityStore(),\r\n locationHazard: new EntityStore(),\r\n manifestEntry: new EntityStore(),\r\n medicalControlContactLogEntry: new EntityStore(),\r\n messageStatusUpdate: new EntityStore(),\r\n nextDueType: new EntityStore(),\r\n nonReferralReason: new EntityStore(),\r\n notification: new EntityStore(),\r\n notificationGroup: new EntityStore(),\r\n notificationGroupMember: new EntityStore(),\r\n notificationRecipient: new EntityStore(),\r\n notificationSubscription: new EntityStore(),\r\n notificationTemplate: new EntityStore(),\r\n oemActivity: new EntityStore(),\r\n oemAsset: new EntityStore(),\r\n oemPlanChangeRequest: new EntityStore(),\r\n oemPlan: new EntityStore(),\r\n offerAlgorithm: new EntityStore(),\r\n operation: new EntityStore(),\r\n outOfServiceEvent: new EntityStore(),\r\n outOfServiceEventNote: new EntityStore(),\r\n outOfServiceReason: new EntityStore(),\r\n outOfServiceSecondaryReason: new EntityStore(),\r\n passdownLogAcknowledgement: new EntityStore(),\r\n passdownLog: new EntityStore(),\r\n patient: new EntityStore(),\r\n positionReportAlert: new EntityStore(),\r\n positionReportArchive: new EntityStore(),\r\n positionReport: new EntityStore(),\r\n questionChoice: new EntityStore(),\r\n question: new EntityStore(),\r\n questionnaire: new EntityStore(),\r\n questionnaireQuestionResponse: new EntityStore(),\r\n questionnaireQuestionResponseNote: new EntityStore(),\r\n questionnaireResponse: new EntityStore(),\r\n questionnaireSection: new EntityStore(),\r\n questionnaireSectionQuestion: new EntityStore(),\r\n receivingFacilityRequest: new EntityStore(),\r\n rendezvousRequest: new EntityStore(),\r\n request: new EntityStore(),\r\n requester: new EntityStore(),\r\n requesterReferralReason: new EntityStore(),\r\n requesterRole: new EntityStore(),\r\n requestLocation: new EntityStore(),\r\n requestPatient: new EntityStore(),\r\n systemTimer: new EntityStore(),\r\n timeline: new EntityStore(),\r\n timelineItem: new EntityStore(),\r\n timestamp: new EntityStore(),\r\n timestampType: new EntityStore(),\r\n trackedMessage: new EntityStore(),\r\n transferReason: new EntityStore(),\r\n transportOffer: new EntityStore(),\r\n transportOfferOption: new EntityStore(),\r\n transportReason: new EntityStore(),\r\n trip: new EntityStore(),\r\n tripLeg: new EntityStore(),\r\n tripPassenger: new EntityStore(),\r\n unitActivationRule: new EntityStore(),\r\n unitEMSystemMapping: new EntityStore(),\r\n unit: new EntityStore(),\r\n unitNote: new EntityStore(),\r\n unitPosition: new EntityStore(),\r\n unitShift: new EntityStore(),\r\n unitStatusHistoryEntry: new EntityStore(),\r\n unitSummary: new EntityStore(),\r\n vehicleDisposition: new EntityStore(),\r\n vehicleSummary: new EntityStore(),\r\n waypoint: new EntityStore(),\r\n webOrderLog: new EntityStore(),\r\n accessibleItem: new EntityStore(),\r\n agency: new EntityStore(),\r\n agencyLocation: new EntityStore(),\r\n airport: new EntityStore(),\r\n archiveLog: new EntityStore(),\r\n baseControlZone: new EntityStore(),\r\n base: new EntityStore(),\r\n baseMedicalControlContact: new EntityStore(),\r\n baseMedicalControlContactState: new EntityStore(),\r\n capability: new EntityStore(),\r\n communicationCenter: new EntityStore(),\r\n communicationCenterTransportOfferOption:\r\n new EntityStore(),\r\n company: new EntityStore(),\r\n completeFlightInstance: new EntityStore(),\r\n controlZone: new EntityStore(),\r\n department: new EntityStore(),\r\n entityCapability: new EntityStore(),\r\n externalReference: new EntityStore(),\r\n fbo: new EntityStore(),\r\n fuelTank: new EntityStore(),\r\n location: new EntityStore(),\r\n medicalFacilityContact: new EntityStore(),\r\n medicalFacility: new EntityStore(),\r\n medicalFacilityPhysician: new EntityStore(),\r\n medicalFacilityUnit: new EntityStore(),\r\n medicalUnit: new EntityStore(),\r\n person: new EntityStore(),\r\n physician: new EntityStore(),\r\n programBase: new EntityStore(),\r\n program: new EntityStore(),\r\n ramcoVehicleConfiguration: new EntityStore(),\r\n regionBase: new EntityStore(),\r\n region: new EntityStore(),\r\n regionGroup: new EntityStore(),\r\n specialtyTeam: new EntityStore(),\r\n specialtyTeamMember: new EntityStore(),\r\n supportRequest: new EntityStore(),\r\n timezone: new EntityStore(),\r\n transferCenter: new EntityStore(),\r\n trmUserAgency: new EntityStore(),\r\n trmUser: new EntityStore(),\r\n trmUserMedicalFacility: new EntityStore(),\r\n trmUserProgram: new EntityStore(),\r\n vehicleControlZone: new EntityStore(),\r\n vehicle: new EntityStore(),\r\n vehicleMaintenance: new EntityStore(),\r\n vehicleMake: new EntityStore(),\r\n vehicleModel: new EntityStore(),\r\n vehicleStateInspection: new EntityStore(),\r\n activeCardUnitOffering: new EntityStore(),\r\n vehiclePositionSummary: new EntityStore(),\r\n}) {\r\n public activationRule: EntityStore;\r\n public activeAlert: EntityStore;\r\n public activeTimeline: EntityStore;\r\n public alert: EntityStore;\r\n public applicationNotification: EntityStore;\r\n public assignmentDelayedReason: EntityStore;\r\n public cancellationCategory: EntityStore;\r\n public cancellationReason: EntityStore;\r\n public cancellationSecondaryReason: EntityStore;\r\n public card: EntityStore;\r\n public cardLink: EntityStore;\r\n public cardNoteArchive: EntityStore;\r\n public cardNote: EntityStore;\r\n public cardReOpenReason: EntityStore;\r\n public cardSummary: EntityStore;\r\n public configurationSetting: EntityStore;\r\n public declineCategory: EntityStore;\r\n public declineReason: EntityStore;\r\n public declineSecondaryReason: EntityStore;\r\n public diversionReason: EntityStore;\r\n public escortRequest: EntityStore;\r\n public estimatedDuration: EntityStore;\r\n public eta: EntityStore;\r\n public externalAction: EntityStore;\r\n public externalActionType: EntityStore;\r\n public externalSystemUnit: EntityStore;\r\n public facilityNonAcceptanceReason: EntityStore;\r\n public firewallRule: EntityStore;\r\n public flightFollowingReport: EntityStore;\r\n public landingZoneOutOfServiceReason: EntityStore;\r\n public locationHazardAttachment: EntityStore;\r\n public locationHazard: EntityStore;\r\n public manifestEntry: EntityStore;\r\n public medicalControlContactLogEntry: EntityStore;\r\n public messageStatusUpdate: EntityStore;\r\n public nextDueType: EntityStore;\r\n public nonReferralReason: EntityStore;\r\n public notification: EntityStore;\r\n public notificationGroup: EntityStore;\r\n public notificationGroupMember: EntityStore;\r\n public notificationRecipient: EntityStore;\r\n public notificationSubscription: EntityStore;\r\n public notificationTemplate: EntityStore;\r\n public oemActivity: EntityStore;\r\n public oemAsset: EntityStore;\r\n public oemPlanChangeRequest: EntityStore;\r\n public oemPlan: EntityStore;\r\n public offerAlgorithm: EntityStore;\r\n public operation: EntityStore;\r\n public outOfServiceEvent: EntityStore;\r\n public outOfServiceEventNote: EntityStore;\r\n public outOfServiceReason: EntityStore;\r\n public outOfServiceSecondaryReason: EntityStore;\r\n public passdownLogAcknowledgement: EntityStore;\r\n public passdownLog: EntityStore;\r\n public patient: EntityStore;\r\n public positionReportAlert: EntityStore;\r\n public positionReportArchive: EntityStore;\r\n public positionReport: EntityStore;\r\n public questionChoice: EntityStore;\r\n public question: EntityStore;\r\n public questionnaire: EntityStore;\r\n public questionnaireQuestionResponse: EntityStore;\r\n public questionnaireQuestionResponseNote: EntityStore;\r\n public questionnaireResponse: EntityStore;\r\n public questionnaireSection: EntityStore;\r\n public questionnaireSectionQuestion: EntityStore;\r\n public receivingFacilityRequest: EntityStore;\r\n public rendezvousRequest: EntityStore;\r\n public request: EntityStore;\r\n public requester: EntityStore;\r\n public requesterReferralReason: EntityStore;\r\n public requesterRole: EntityStore;\r\n public requestLocation: EntityStore;\r\n public requestPatient: EntityStore;\r\n public systemTimer: EntityStore;\r\n public timeline: EntityStore;\r\n public timelineItem: EntityStore;\r\n public timestamp: EntityStore;\r\n public timestampType: EntityStore;\r\n public trackedMessage: EntityStore;\r\n public transferReason: EntityStore;\r\n public transportOffer: EntityStore;\r\n public transportOfferOption: EntityStore;\r\n public transportReason: EntityStore;\r\n public trip: EntityStore;\r\n public tripLeg: EntityStore;\r\n public tripPassenger: EntityStore;\r\n public unitActivationRule: EntityStore;\r\n public unitEMSystemMapping: EntityStore;\r\n public unit: EntityStore;\r\n public unitNote: EntityStore;\r\n public unitPosition: EntityStore;\r\n public unitShift: EntityStore;\r\n public unitStatusHistoryEntry: EntityStore;\r\n public unitSummary: EntityStore;\r\n public vehicleDisposition: EntityStore;\r\n public vehicleSummary: EntityStore;\r\n public waypoint: EntityStore;\r\n public webOrderLog: EntityStore;\r\n public accessibleItem: EntityStore;\r\n public agency: EntityStore;\r\n public agencyLocation: EntityStore;\r\n public airport: EntityStore;\r\n public archiveLog: EntityStore;\r\n public baseControlZone: EntityStore;\r\n public base: EntityStore;\r\n public baseMedicalControlContact: EntityStore;\r\n public baseMedicalControlContactState: EntityStore;\r\n public capability: EntityStore;\r\n public communicationCenter: EntityStore;\r\n public communicationCenterTransportOfferOption: EntityStore;\r\n public company: EntityStore;\r\n public completeFlightInstance: EntityStore;\r\n public controlZone: EntityStore;\r\n public department: EntityStore;\r\n public entityCapability: EntityStore;\r\n public externalReference: EntityStore;\r\n public fbo: EntityStore;\r\n public fuelTank: EntityStore;\r\n public location: EntityStore;\r\n public medicalFacilityContact: EntityStore;\r\n public medicalFacility: EntityStore;\r\n public medicalFacilityPhysician: EntityStore;\r\n public medicalFacilityUnit: EntityStore;\r\n public medicalUnit: EntityStore;\r\n public person: EntityStore;\r\n public physician: EntityStore;\r\n public programBase: EntityStore;\r\n public program: EntityStore;\r\n public ramcoVehicleConfiguration: EntityStore;\r\n public regionBase: EntityStore;\r\n public region: EntityStore;\r\n public regionGroup: EntityStore;\r\n public specialtyTeam: EntityStore;\r\n public specialtyTeamMember: EntityStore;\r\n public supportRequest: EntityStore;\r\n public timezone: EntityStore;\r\n public transferCenter: EntityStore;\r\n public trmUserAgency: EntityStore;\r\n public trmUser: EntityStore;\r\n public trmUserMedicalFacility: EntityStore;\r\n public trmUserProgram: EntityStore;\r\n public vehicleControlZone: EntityStore;\r\n public vehicle: EntityStore;\r\n public vehicleMaintenance: EntityStore;\r\n public vehicleMake: EntityStore;\r\n public vehicleModel: EntityStore;\r\n public vehicleStateInspection: EntityStore;\r\n public activeCardUnitOffering: EntityStore;\r\n public vehiclePositionSummary: EntityStore;\r\n}\r\n","import { AppState } from 'src/store/appstate';\r\n\r\n// Units../appstate\r\n\r\nexport const selectAllCompanies = (state: AppState) => state.entityStores.company.entities;\r\n\r\nexport const selectAllUnits = (state: AppState) => state.entityStores.unit.entities;\r\n\r\n// Unit Positions\r\nexport const selectAllUnitPostions = (state: AppState) => state.entityStores.unitPosition.entities;\r\n\r\nexport const selectAllBases = (state: AppState) => state.entityStores.base.entities;\r\n\r\nexport const selectAllVehicles = (state: AppState) => state.entityStores.vehicle.entities;\r\n\r\nexport const selectAllPeople = (state: AppState) => state.entityStores.person.entities;\r\n\r\nexport const selectAllRegions = (state: AppState) => state.entityStores.region.entities;\r\n\r\nexport const selectAllRegionGroups = (state: AppState) => state.entityStores.regionGroup.entities;\r\n\r\nexport const selectAllDepartments = (state: AppState) => state.entityStores.department.entities;\r\n\r\nexport const selectAllOperations = (state: AppState) => state.entityStores.operation.entities;\r\n\r\nexport const selectAllCards = (state: AppState) => state.entityStores.card.entities;\r\n\r\nexport const selectAllRequests = (state: AppState) => state.entityStores.request.entities;\r\n\r\nexport const selectAllRequesters = (state: AppState) => state.entityStores.requester.entities;\r\n\r\nexport const selectAllRequestPatients = (state: AppState) =>\r\n state.entityStores.requestPatient.entities;\r\n\r\nexport const selectAllRequestLocations = (state: AppState) =>\r\n state.entityStores.requestLocation.entities;\r\n\r\nexport const selectAllTrips = (state: AppState) => state.entityStores.trip.entities;\r\n\r\nexport const selectAllTripLegs = (state: AppState) => state.entityStores.tripLeg.entities;\r\n\r\nexport const selectAllWaypoints = (state: AppState) => state.entityStores.waypoint.entities;\r\n\r\nexport const selectAllVehicleDispositions = (state: AppState) =>\r\n state.entityStores.vehicleDisposition.entities;\r\n\r\nexport const selectAllManifestEntries = (state: AppState) =>\r\n state.entityStores.manifestEntry.entities;\r\n\r\nexport const selectAllTripPassengers = (state: AppState) =>\r\n state.entityStores.tripPassenger.entities;\r\n\r\nexport const selectAllCardNotes = (state: AppState) => state.entityStores.cardNote.entities;\r\n\r\nexport const selectAllUnitNotes = (state: AppState) => state.entityStores.unitNote.entities;\r\n\r\nexport const selectAllPositionReports = (state: AppState) => {\r\n return state.entityStores.positionReport.entities;\r\n};\r\n\r\nexport const selectAllFlightFollowingReports = (state: AppState) =>\r\n state.entityStores.flightFollowingReport.entities;\r\n\r\nexport const selectAllTransportOffers = (state: AppState) =>\r\n state.entityStores.transportOffer.entities;\r\n\r\nexport const selectAllTransportReasons = (state: AppState) =>\r\n state.entityStores.transportReason.entities;\r\n\r\nexport const selectAllEtas = (state: AppState) => state.entityStores.eta.entities;\r\n\r\nexport const selectAllEstimatedDurations = (state: AppState) =>\r\n state.entityStores.estimatedDuration.entities;\r\n\r\nexport const selectAllTimestampTypes = (state: AppState) =>\r\n state.entityStores.timestampType.entities;\r\n\r\nexport const selectAllTimestamps = (state: AppState) => state.entityStores.timestamp.entities;\r\n\r\nexport const selectAllRendezvousRequests = (state: AppState) =>\r\n state.entityStores.rendezvousRequest.entities;\r\n\r\nexport const selectAllTimezones = (state: AppState) => state.entityStores.timezone.entities;\r\n\r\nexport const selectAllNotifications = (state: AppState) => state.entityStores.notification.entities;\r\n\r\nexport const selectAllNotificationRecipients = (state: AppState) =>\r\n state.entityStores.notificationRecipient.entities;\r\n\r\nexport const selectAllApplicationNotifications = (state: AppState) =>\r\n state.entityStores.applicationNotification.entities;\r\n\r\nexport const selectAllAccessibleItems = (state: AppState) =>\r\n state.entityStores.accessibleItem.entities;\r\n\r\nexport const selectAllExternalReferences = (state: AppState) =>\r\n state.entityStores.externalReference.entities;\r\n\r\nexport const selectAllRequesterReferralReasons = (state: AppState) =>\r\n state.entityStores.requesterReferralReason.entities;\r\n\r\nexport const selectAllCardSummaries = (state: AppState) => state.entityStores.cardSummary.entities;\r\n\r\nexport const selectAllMessageStatusUpdates = (state: AppState) =>\r\n state.entityStores.messageStatusUpdate.entities;\r\n\r\nexport const selectAllQuestions = (state: AppState) => state.entityStores.question.entities;\r\n\r\nexport const selectAllQuestionChoices = (state: AppState) =>\r\n state.entityStores.questionChoice.entities;\r\n\r\nexport const selectAllQuestionnaireResponses = (state: AppState) =>\r\n state.entityStores.questionnaireResponse.entities;\r\n\r\nexport const selectAllQuestionnaireSectionQuestions = (state: AppState) =>\r\n state.entityStores.questionnaireSectionQuestion.entities;\r\n\r\nexport const selectAllTransferReasons = (state: AppState) =>\r\n state.entityStores.transferReason.entities;\r\n\r\nexport const selectAllTransferCenters = (state: AppState) =>\r\n state.entityStores.transferCenter.entities;\r\n\r\nexport const selectAllVehicleStateInspections = (state: AppState) =>\r\n state.entityStores.vehicleStateInspection.entities;\r\n\r\nexport const selectAllMedicalControlContactLogEntries = (state: AppState) =>\r\n state.entityStores.medicalControlContactLogEntry.entities;\r\n","import { createSelector, Selector } from '@ngrx/store';\r\nimport { AppState } from '../appstate';\r\nimport { CompanyRecord } from '../generated/company-record.generated';\r\nimport { selectAllCompanies } from './entity-store-selectors';\r\n\r\nexport function selectCompanies() {\r\n return createSelector(selectAllCompanies, (c) => {\r\n return c.sort((a, b) => a.name.localeCompare(b.name));\r\n });\r\n}\r\n\r\nexport function selectCompanyById(\r\n companyId: string,\r\n): Selector {\r\n return createSelector(selectAllCompanies, (c) => c.get(companyId));\r\n}\r\n\r\nexport function selectCompanyByCompanyCode(\r\n companyCode: string,\r\n): Selector {\r\n return createSelector(selectAllCompanies, (companies) => {\r\n const result =\r\n companyCode != null\r\n ? companies.find((c) => c.companyCode.toLowerCase() === companyCode.toLowerCase())\r\n : undefined;\r\n return result;\r\n });\r\n}\r\n","// mimics https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart\r\n// TODO: replace with polyfill?\r\nexport function padStart(str: string, targetLength: number, padString?: string) {\r\n // https://github.com/uxitten/polyfill/blob/master/string.polyfill.js\r\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart\r\n // eslint-disable-next-line\r\n targetLength = targetLength >> 0; // floor if number or convert non-number to 0;\r\n // eslint-disable-next-line\r\n padString = String(padString || ' ');\r\n if (str.length > targetLength) {\r\n return String(str);\r\n } else {\r\n targetLength = targetLength - str.length;\r\n if (targetLength > padString.length) {\r\n padString += padString.repeat(targetLength / padString.length); // append to original to ensure we are longer than needed\r\n }\r\n return padString.slice(0, targetLength) + String(str);\r\n }\r\n}\r\n\r\nexport function isNullOrEmpty(value: string | null | undefined): value is '' | null | undefined {\r\n return value == null || value === '';\r\n}\r\n\r\nexport function isWhitespace(value: any): value is string {\r\n if (typeof value === 'string') {\r\n return value.trim() === '';\r\n }\r\n return false;\r\n}\r\n\r\nexport function isNullOrWhitespace(\r\n value: string | null | undefined,\r\n): value is '' | null | undefined {\r\n if (value == null) {\r\n return true;\r\n }\r\n if (typeof value === 'string') {\r\n return value.trim() === '';\r\n }\r\n return false;\r\n}\r\n\r\nexport function capitalizeFirstLetter(value: string) {\r\n return value.charAt(0).toUpperCase() + value.slice(1);\r\n}\r\n\r\nexport function lowerCaseFirstLetter(value: string) {\r\n return value.charAt(0).toLowerCase() + value.slice(1);\r\n}\r\n\r\nexport function getTrailingDigits(value: string): string | undefined {\r\n const matchResult = value.match(/\\d+$/);\r\n return matchResult != null ? matchResult[0] : undefined;\r\n}\r\n","// lib/utils.ts\nfunction isPlainObject(value) {\n if (Object.prototype.toString.call(value) !== \"[object Object]\") {\n return false;\n }\n var prototype = Object.getPrototypeOf(value);\n return prototype === null || prototype === Object.prototype;\n}\n// lib/tiny-clean-object.ts\nvar defaultOptions = {\n deep: false,\n skipNull: false,\n emptyStrings: true,\n emptyInvalidNumbers: true,\n emptyArrays: false,\n emptyObjects: false\n};\nfunction cleanObject(obj) {\n var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : defaultOptions;\n var _options_deep;\n var deep = (_options_deep = options.deep) !== null && _options_deep !== void 0 ? _options_deep : defaultOptions.deep;\n var _options_skipNull;\n var skipNull = (_options_skipNull = options.skipNull) !== null && _options_skipNull !== void 0 ? _options_skipNull : defaultOptions.skipNull;\n var _options_emptyStrings;\n var emptyStrings = (_options_emptyStrings = options.emptyStrings) !== null && _options_emptyStrings !== void 0 ? _options_emptyStrings : defaultOptions.emptyStrings;\n var _options_emptyInvalidNumbers;\n var emptyInvalidNumbers = (_options_emptyInvalidNumbers = options.emptyInvalidNumbers) !== null && _options_emptyInvalidNumbers !== void 0 ? _options_emptyInvalidNumbers : defaultOptions.emptyInvalidNumbers;\n var _options_emptyArrays;\n var emptyArrays = (_options_emptyArrays = options.emptyArrays) !== null && _options_emptyArrays !== void 0 ? _options_emptyArrays : defaultOptions.emptyArrays;\n var _options_emptyObjects;\n var emptyObjects = (_options_emptyObjects = options.emptyObjects) !== null && _options_emptyObjects !== void 0 ? _options_emptyObjects : defaultOptions.emptyObjects;\n for (var key in obj) {\n var value = obj[key];\n if (skipNull) {\n if (value === void 0) {\n delete obj[key];\n continue;\n }\n } else {\n if (value == void 0) {\n delete obj[key];\n continue;\n }\n }\n if (emptyStrings && typeof value === \"string\" && value === \"\") {\n delete obj[key];\n continue;\n }\n if (emptyInvalidNumbers && typeof value === \"number\" && isFinite(value) === false) {\n delete obj[key];\n continue;\n }\n if (emptyArrays && Array.isArray(value) && value.length === 0) {\n delete obj[key];\n continue;\n }\n if (isPlainObject(value)) {\n if (deep) {\n obj[key] = cleanObject(value, {\n deep: deep,\n skipNull: skipNull,\n emptyStrings: emptyStrings,\n emptyInvalidNumbers: emptyInvalidNumbers,\n emptyArrays: emptyArrays,\n emptyObjects: emptyObjects\n });\n }\n if (emptyObjects && Object.keys(obj[key]).length === 0) {\n delete obj[key];\n continue;\n }\n }\n }\n return obj;\n}\nexport { cleanObject };","import { cleanObject } from 'tiny-clean-object';\r\nimport { isArray, isEqual, omitBy } from 'lodash-es';\r\nconst defaultCleanOptions = {\r\n /** @default true */\r\n deep: true,\r\n /** @default true */\r\n emptyArrays: true,\r\n /** @default true */\r\n emptyObjects: true,\r\n /** @default false */\r\n skipNulls: false,\r\n /** @default true */\r\n emptyInvalidNumbers: true,\r\n /** @default true */\r\n emptyStrings: true,\r\n};\r\ntype CleanOptions = Partial;\r\nexport function isEqualClean(a: T, b: T, opts: CleanOptions = defaultCleanOptions) {\r\n const options = { ...defaultCleanOptions, ...opts };\r\n const aClean = cleanObject(a, options);\r\n const bClean = cleanObject(b, options);\r\n return isEqual(aClean, bClean);\r\n}\r\n\r\nexport function omitProps(object: T, keysToRemove: (keyof T)[]) {\r\n return omitBy(object, (_value, key) => keysToRemove.includes(key as keyof T));\r\n}\r\n\r\nexport function removeEmptyArrays(value: T) {\r\n return omitBy(value, (v) => isArray(v) && v.length === 0);\r\n}\r\n\r\nexport function deepFreeze(object: any) {\r\n // Retrieve the property names defined on object\r\n object = Object.isFrozen(object) ? Object.create(object) : object;\r\n const propNames = Object.getOwnPropertyNames(object);\r\n\r\n // Freeze properties before freezing self\r\n\r\n for (const name of propNames) {\r\n const value = object[name];\r\n\r\n object[name] = value != null && typeof value === 'object' ? deepFreeze(value) : value;\r\n }\r\n\r\n return Object.freeze(object);\r\n}\r\n\r\nexport function removeUndefinedProps(obj: object) {\r\n if (typeof obj != 'object') {\r\n return obj;\r\n }\r\n const result = { ...obj } as any;\r\n Object.keys(result).forEach((key) => result[key] === undefined && delete result[key]);\r\n return result;\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\n\r\nexport const PERMISSIONS_CONFIG = new InjectionToken('permissions_config');\r\n\r\nexport interface PermissionsConfiguration<\r\n TRole extends string = any,\r\n TPermission extends string = any,\r\n TPermissionSet extends string = any,\r\n> {\r\n roles: TRole[];\r\n permissions: TPermission[];\r\n permissionSets?: {\r\n [key: string]: TPermission[];\r\n };\r\n grants: {\r\n roles?: RoleGrants;\r\n all?: {\r\n permissions?: TPermission[] | 'all';\r\n permissionSets?: TPermissionSet[];\r\n };\r\n };\r\n}\r\n\r\nexport type RoleGrants<\r\n TRole extends string,\r\n TPermission extends string,\r\n TPermissionSet extends string,\r\n> = {\r\n [key in TRole]?: {\r\n permissions?: TPermission[] | 'all';\r\n permissionSets?: TPermissionSet[];\r\n inherits?: TRole[];\r\n };\r\n};\r\n","import { Inject, Injectable } from '@angular/core';\r\nimport { deepFreeze } from 'src/util/object';\r\nimport { cacheFactory } from 'src/util/cache';\r\nimport { PERMISSIONS_CONFIG, PermissionsConfiguration } from './permissions.model';\r\n\r\ntype PermissionGrants = string[] | 'all';\r\n\r\nexport interface PermissionCheckResult {\r\n permission: string;\r\n granted: boolean;\r\n permissionSet?: string;\r\n wildcard: boolean;\r\n rolePath: string[];\r\n inherited: boolean;\r\n description: string;\r\n}\r\n\r\nclass PermissionCheckHandler {\r\n private readonly _checkedRoles: string[] = [];\r\n private readonly _checkedPermissionSets: string[] = [];\r\n constructor(\r\n private readonly _config: PermissionsConfiguration,\r\n private readonly _roles: string[],\r\n private readonly _permissionToCheck: string,\r\n ) {}\r\n\r\n private get allUserGrants() {\r\n return this._config.grants.all;\r\n }\r\n\r\n private _grant(\r\n description: string,\r\n extras?: {\r\n permissionSet?: string;\r\n rolePath?: string[];\r\n all?: boolean;\r\n },\r\n ): PermissionCheckResult {\r\n const rolePath = extras != null && extras.rolePath != null ? extras.rolePath : [];\r\n return {\r\n description,\r\n granted: true,\r\n permission: this._permissionToCheck,\r\n permissionSet: extras != null ? extras.permissionSet : undefined,\r\n rolePath,\r\n inherited: rolePath.length > 1,\r\n wildcard: extras != null && extras.all != null ? extras.all : false,\r\n };\r\n }\r\n\r\n public hasPermission(): PermissionCheckResult {\r\n this._checkedRoles.splice(0, this._checkedRoles.length);\r\n this._checkedPermissionSets.splice(0, this._checkedPermissionSets.length);\r\n\r\n if (this.allUserGrants != null) {\r\n const permissionsCheck = this._grantedByPermissions(this.allUserGrants.permissions);\r\n if (permissionsCheck === 'all') {\r\n return this._grant('All users have all permissions.', { all: true });\r\n } else if (permissionsCheck === 'included') {\r\n return this._grant('All users have this permission.');\r\n }\r\n\r\n const permissionSetOrFalse = this._grantedByPermissionSets(this.allUserGrants.permissionSets);\r\n if (permissionSetOrFalse !== false) {\r\n return this._grant(\r\n `All users have the '${permissionSetOrFalse}' permission set containing the '${this._permissionToCheck}' permission.`,\r\n {\r\n permissionSet: permissionSetOrFalse,\r\n },\r\n );\r\n }\r\n }\r\n\r\n for (const role of this._roles) {\r\n const roleGrantOrFalse = this._grantedByRole(role, []);\r\n if (roleGrantOrFalse !== false) {\r\n return roleGrantOrFalse;\r\n }\r\n }\r\n\r\n return {\r\n description: 'Permission denied',\r\n granted: false,\r\n permission: this._permissionToCheck,\r\n wildcard: false,\r\n rolePath: [],\r\n inherited: false,\r\n };\r\n }\r\n\r\n private _grantedByPermissionSets(permissionSets: string[] | undefined) {\r\n if (permissionSets != null) {\r\n for (const permisssionSet of permissionSets) {\r\n const permission = this._grantedByPermissionSet(permisssionSet);\r\n if (permission === 'all' || permission === 'included') {\r\n return permisssionSet;\r\n }\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n private _grantedByPermissionSet(permissionSet: string) {\r\n if (!this._permissionSetHasBeenChecked(permissionSet)) {\r\n const permissions = this._getPermissionsForPermissionSet(permissionSet);\r\n return this._grantedByPermissions(permissions);\r\n }\r\n return false;\r\n }\r\n\r\n private _permissionSetHasBeenChecked(permissionSet: string) {\r\n return this._checkedPermissionSets.includes(permissionSet);\r\n }\r\n private _roleHasBeenChecked(role: string) {\r\n return this._checkedRoles.includes(role);\r\n }\r\n\r\n private _markRoleAsChecked(role: string) {\r\n this._checkedRoles.push(role);\r\n }\r\n private _grantedByPermissions(\r\n permissions: PermissionGrants | undefined,\r\n ): 'all' | 'included' | false {\r\n if (permissions != null) {\r\n if (permissions === 'all') {\r\n return 'all';\r\n }\r\n if (permissions.includes(this._permissionToCheck)) {\r\n return 'included';\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n private _grantedByRole(role: string, rolePath: string[]): PermissionCheckResult | false {\r\n rolePath = [...rolePath, role];\r\n const inherited = rolePath.length > 1;\r\n const inheritedStr = inherited ? `(Inherited: ${rolePath.join(' > ')})` : '';\r\n if (!this._roleHasBeenChecked(role)) {\r\n const permissions = this._getPermissionsForRole(role);\r\n const rolePermissionCheck = this._grantedByPermissions(permissions);\r\n if (rolePermissionCheck === 'all') {\r\n return this._grant(\r\n `The '${role}' role is granted all permissions. ${inheritedStr}`.trim(),\r\n {\r\n rolePath,\r\n all: true,\r\n },\r\n );\r\n } else if (rolePermissionCheck === 'included') {\r\n return this._grant(`Granted by the '${role}' role. ${inheritedStr}`.trim(), {\r\n rolePath,\r\n });\r\n }\r\n\r\n const permissionSets = this._getPermissionSetsForRole(role);\r\n const permissionSetOrFalse = this._grantedByPermissionSets(permissionSets);\r\n if (permissionSetOrFalse !== false) {\r\n return this._grant(\r\n `Granted by the '${role}' role via the '${permissionSetOrFalse}' permission set. ${inheritedStr}`.trim(),\r\n {\r\n rolePath,\r\n permissionSet: permissionSetOrFalse,\r\n },\r\n );\r\n }\r\n\r\n this._markRoleAsChecked(role);\r\n\r\n const inheritedRoles = this._getInheritedRoles(role);\r\n for (const inheritedRole of inheritedRoles) {\r\n const roleGrantOrFalse = this._grantedByRole(inheritedRole, rolePath);\r\n if (roleGrantOrFalse !== false) {\r\n return roleGrantOrFalse;\r\n }\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n private _getPermissionsForRole(role: string): PermissionGrants | undefined {\r\n if (this._config.grants.roles != null) {\r\n const roleCfg = this._config.grants.roles[role];\r\n return roleCfg != null ? roleCfg.permissions : [];\r\n }\r\n return [];\r\n }\r\n\r\n private _getPermissionSetsForRole(role: string): string[] | undefined {\r\n if (this._config.grants.roles != null) {\r\n const roleCfg = this._config.grants.roles[role];\r\n return roleCfg != null ? roleCfg.permissionSets : [];\r\n }\r\n return [];\r\n }\r\n\r\n private _getInheritedRoles(role: string): string[] {\r\n if (this._config.grants.roles != null) {\r\n const roleCfg = this._config.grants.roles[role];\r\n const inheritedRoles = roleCfg != null ? roleCfg.inherits : [];\r\n return inheritedRoles != null ? inheritedRoles : [];\r\n }\r\n return [];\r\n }\r\n\r\n private _getPermissionsForPermissionSet(permissionSet: string): string[] {\r\n if (this._config.permissionSets != null) {\r\n const permissions = this._config.permissionSets[permissionSet];\r\n return permissions;\r\n }\r\n return [];\r\n }\r\n}\r\n\r\ninterface PermissionConfigurationInfo {\r\n permissionSets: {\r\n name: string;\r\n permissions: string[];\r\n }[];\r\n permissions: {\r\n name: string;\r\n permissionSets: string[];\r\n }[];\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PermissionsService {\r\n public readonly config: PermissionConfigurationInfo;\r\n\r\n private _permissionCheckHandlerCache = cacheFactory.keyValueCache<\r\n { roles: string[]; permission: string },\r\n PermissionCheckHandler\r\n >(1000 * 60 * 90);\r\n\r\n constructor(\r\n // TODO: consider freezing object\r\n @Inject(PERMISSIONS_CONFIG)\r\n private readonly _config: PermissionsConfiguration,\r\n ) {\r\n const permissionSets =\r\n _config.permissionSets != null\r\n ? Object.entries(_config.permissionSets).map(([name, permissions]) => ({\r\n name,\r\n permissions,\r\n }))\r\n : [];\r\n\r\n const allPermissions: {\r\n name: string;\r\n permissionSets: string[];\r\n }[] = _config.permissions.map((permission) => {\r\n const includedInSets: string[] = permissionSets\r\n .filter((set) => set.permissions.includes(permission))\r\n .map((s) => s.name);\r\n return { name: permission, permissionSets: includedInSets };\r\n });\r\n\r\n const cfgInfo: PermissionConfigurationInfo = {\r\n permissionSets,\r\n permissions: allPermissions,\r\n };\r\n\r\n this.config = deepFreeze(cfgInfo);\r\n }\r\n\r\n public hasPermission(roles: string[], permission: string): boolean {\r\n return this.getPermissionInfo(roles, permission).granted;\r\n }\r\n\r\n public hasAnyPermission(roles: string[], permissions: string[]): boolean {\r\n for (const perm of permissions) {\r\n if (this.hasPermission(roles, perm)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n public hasAllPermissions(roles: string[], permissions: string[]): boolean {\r\n for (const perm of permissions) {\r\n if (!this.hasPermission(roles, perm)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n public getPermissionInfo(roles: string[], permission: string): PermissionCheckResult {\r\n const key = { roles, permission };\r\n let handler = this._permissionCheckHandlerCache.get(key);\r\n if (handler == null) {\r\n handler = new PermissionCheckHandler(this._config, roles, permission);\r\n this._permissionCheckHandlerCache.set(key, handler);\r\n }\r\n const result = handler.hasPermission();\r\n return result;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { BehaviorSubject, Observable } from 'rxjs';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ImpersonationService {\r\n private readonly _impersonatedUserId$: BehaviorSubject;\r\n private readonly _impersonatedUserIdKey = 'tcs-impersonated-user-id';\r\n get impersonatedUserId(): string | undefined {\r\n return this._impersonatedUserId$.getValue();\r\n }\r\n get impersonatedUserId$(): Observable {\r\n return this._impersonatedUserId$.asObservable();\r\n }\r\n constructor(private _router: Router) {\r\n const userId = localStorage.getItem(this._impersonatedUserIdKey);\r\n this._impersonatedUserId$ = new BehaviorSubject(userId ?? undefined);\r\n }\r\n\r\n public impersonateUser(userId: string) {\r\n localStorage.setItem(this._impersonatedUserIdKey, userId);\r\n this._impersonatedUserId$.next(userId);\r\n this._router.navigate(['/']);\r\n }\r\n public stopImpersonating() {\r\n this.clearImpersonation();\r\n this._router.navigate(['/']);\r\n }\r\n public clearImpersonation() {\r\n localStorage.removeItem(this._impersonatedUserIdKey);\r\n this._impersonatedUserId$.next(undefined);\r\n }\r\n}\r\n","import { UserRole } from 'src/graphql/generated/graphql.generated';\r\n\r\nexport enum LandingPage {\r\n Org = 'Org',\r\n Ops = 'Ops',\r\n Insights = 'Insights',\r\n FleetStatus = 'FleetStatus',\r\n}\r\n\r\nexport interface User {\r\n uid?: string;\r\n employee_id?: string;\r\n username?: string;\r\n emailaddress?: string;\r\n roles: string[];\r\n companycode?: string;\r\n firstname?: string;\r\n lastname?: string;\r\n middlename?: string;\r\n department?: string;\r\n title?: string;\r\n token?: string;\r\n tokenexpire?: any;\r\n isPilot: boolean;\r\n isAmghUser: boolean;\r\n impersonatedBy?: string;\r\n userRoles: UserRole[];\r\n fetched: boolean;\r\n personId?: string;\r\n allCompaniesAccessible?: boolean;\r\n allBasesAccessible?: boolean;\r\n landingPage?: LandingPage;\r\n}\r\n\r\nexport interface Credentials {\r\n username: string;\r\n password: string;\r\n impersonateAs: string;\r\n}\r\n\r\nexport interface TokenDataDto {\r\n impersonatedBy?: string;\r\n accessToken?: string;\r\n exp?: string;\r\n claims: [\r\n {\r\n type: string;\r\n value: string;\r\n },\r\n ];\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { Set } from 'immutable';\r\nimport { flatten, uniq } from 'lodash-es';\r\nimport { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\nimport { LandingPage } from 'src/app/shared/authentication/authentication-api/authentication-client.model';\r\nimport { TcsPermission } from 'src/app/shared/authorization/permissions';\r\nimport {\r\n EmployeeType,\r\n EntityType,\r\n TimeType,\r\n UserRole,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { PermissionsService } from 'src/lib/amg-authorization/permissions.service';\r\nimport { AppState } from 'src/store/appstate';\r\nimport {\r\n AccessibleItemProps,\r\n selectAccessibleItemEntitiesByPersonId,\r\n} from 'src/store/generated/accessible-item-record.generated';\r\nimport { PersonEntityFetchService } from 'src/store/generated/client-sync.generated';\r\nimport {\r\n PersonProps,\r\n PersonRecord,\r\n PersonViewModelBase,\r\n} from 'src/store/generated/person-record.generated';\r\nimport { undefinedOrSwitchMap } from 'src/util/rxjs/operators';\r\nconst systemPersonRecord = PersonRecord.fromJS({\r\n id: 'fake-system-id',\r\n firstName: 'System',\r\n lastName: '',\r\n email: 'system.user@amgh.us',\r\n title: null,\r\n employeeId: null,\r\n employeeType: EmployeeType.Unspecified,\r\n timeType: TimeType.Unspecified,\r\n hireDate: null,\r\n terminationDate: null,\r\n departmentId: null,\r\n reportsToPersonId: null,\r\n activateOktaAccount: false,\r\n baseId: null,\r\n locationId: null,\r\n activeDirectoryId: null,\r\n companyId: 'fake-company-id',\r\n programId: null,\r\n notificationAddress: null,\r\n dateLastUpdated: new Date().getTime(),\r\n dateCreated: new Date().getTime(),\r\n dateDeleted: null,\r\n userRoles: [],\r\n allCompaniesAccessible: null,\r\n allBasesAccessible: null,\r\n allTrmProgramsAccessible: null,\r\n allCommunicationCentersAccessible: null,\r\n faaCompanyId: null,\r\n dispatchCompanyId: null,\r\n aviationCompanyId: null,\r\n isOutOfFlightCompliance: false,\r\n lastUpdatedById: null,\r\n outOfFlightComplianceComment: null,\r\n primaryCommunicationCenterId: null,\r\n grantTcsAccess: true,\r\n dateLastUpdatedFromGMRWorkday: null,\r\n appSettings: null,\r\n});\r\n\r\nexport class PersonViewModel extends PersonViewModelBase {\r\n public static readonly systemUser = new PersonViewModel(systemPersonRecord, []);\r\n public readonly userRolesAllScopes: UserRole[];\r\n public readonly accessibleItems: AccessibleItemProps[];\r\n public readonly accessibleCompanies: string[];\r\n\r\n public readonly gravatar: string;\r\n public readonly name: string | null;\r\n\r\n get initials() {\r\n return `${this.firstName.charAt(0)} ${this.lastName.charAt(0)}`;\r\n }\r\n\r\n constructor(person: PersonProps, accessibleItems: AccessibleItemProps[]) {\r\n super(person);\r\n accessibleItems.forEach((ai) => {\r\n if (ai.personId !== this.id) {\r\n throw new Error(\r\n `PersonViewModel: accessible item ${ai.id} is not assigned to Person ${this.id}`,\r\n );\r\n }\r\n });\r\n this.accessibleItems = accessibleItems;\r\n\r\n this.accessibleCompanies = uniq(\r\n accessibleItems\r\n .filter((ai) => ai.type === EntityType.Company)\r\n .map((ai) => ai.entityId)\r\n .concat([this.companyId]),\r\n );\r\n\r\n this.name = `${person.firstName} ${person.lastName}`.trim();\r\n\r\n this.gravatar =\r\n person.id == null\r\n ? 'mm'\r\n : encodeURIComponent(\r\n `https://ui-avatars.com/api/${person.firstName}+${person.lastName}/48/222/FFF`,\r\n );\r\n\r\n this.userRolesAllScopes = uniq(\r\n flatten(\r\n accessibleItems\r\n .filter((ai) => ai.userRoles != null)\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n .map((ai) => ai.userRoles!.toArray())\r\n .concat(this._props.userRoles?.toArray() ?? []),\r\n ),\r\n );\r\n }\r\n\r\n get isPilot() {\r\n return this.userRoles.includes(UserRole.Pilot);\r\n }\r\n\r\n get userRoles(): Set {\r\n if (this._props.userRoles == null) {\r\n throw new Error(\r\n `User roles are null for user ${this.firstName} ${this.lastName} (id: ${this.id}, employeeId: ${this.employeeId})`,\r\n );\r\n }\r\n return this._props.userRoles;\r\n }\r\n\r\n public hasAccessibleCompany(companyId: string) {\r\n return this.allCompaniesAccessible === true || this.accessibleCompanies.includes(companyId);\r\n }\r\n\r\n public hasGlobalRole(...roles: UserRole[]): boolean {\r\n return this.userRoles.find((r) => roles.includes(r)) != null;\r\n }\r\n\r\n public hasRoleAnyScope(...roles: UserRole[]): boolean {\r\n return this.userRolesAllScopes.find((r) => roles.includes(r)) != null;\r\n }\r\n\r\n public hasAnyRoleAnyScope(roles: UserRole[]): boolean {\r\n for (const role of roles) {\r\n if (this.hasRoleAnyScope(role)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n public hasAnyGlobalRole(roles: UserRole[]): boolean {\r\n for (const role of roles) {\r\n if (this.hasGlobalRole(role)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n public hasPermissionAnyGlobalRole(\r\n permissionsService: PermissionsService,\r\n permission: TcsPermission,\r\n ) {\r\n return permissionsService.hasPermission(this.userRoles.toArray(), permission);\r\n }\r\n\r\n public hasPermissionAnyScope(permissionsService: PermissionsService, permission: TcsPermission) {\r\n return permissionsService.hasPermission(this.userRolesAllScopes, permission);\r\n }\r\n\r\n public hasAnyPermissionAnyScope(\r\n permissionsService: PermissionsService,\r\n permissions: TcsPermission[],\r\n ) {\r\n return permissionsService.hasAnyPermission(this.userRolesAllScopes, permissions);\r\n }\r\n}\r\n\r\nexport class UserViewModel extends PersonViewModel {\r\n constructor(\r\n personRecord: PersonProps,\r\n public readonly companyCode: string,\r\n accessibleItems: AccessibleItemProps[],\r\n ) {\r\n super(personRecord, accessibleItems);\r\n }\r\n\r\n get landingPage(): LandingPage {\r\n if (\r\n this.userRoles.includes(UserRole.Communications) ||\r\n this.userRoles.includes(UserRole.CommunicationsSupervisor)\r\n ) {\r\n return LandingPage.Ops;\r\n }\r\n\r\n if (this.userRoles.includes(UserRole.Executive) || this.userRoles.includes(UserRole.External)) {\r\n return LandingPage.FleetStatus;\r\n }\r\n\r\n return LandingPage.Insights;\r\n }\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PersonViewModelService {\r\n constructor(private _people: PersonEntityFetchService, private _store: Store) {}\r\n\r\n public getById(id: string): Observable {\r\n return this._people\r\n .getById(id)\r\n .pipe(\r\n undefinedOrSwitchMap((p) =>\r\n this._store\r\n .select(selectAccessibleItemEntitiesByPersonId(id))\r\n .pipe(map((ai) => new PersonViewModel(p, ai.toArray()))),\r\n ),\r\n );\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngrx/store';\r\nimport { AppState } from '../appstate';\r\nimport { PersonRecord } from '../generated/person-record.generated';\r\nimport { UnitPositionRecord } from '../generated/unit-position-record.generated';\r\nimport { selectAllPeople, selectAllUnitPostions } from './entity-store-selectors';\r\n\r\nexport function selectPersonById(id: string): Selector {\r\n return createSelector(selectAllPeople, (v) => v.get(id));\r\n}\r\n\r\nexport function selectPersonByEmail(email: string): Selector {\r\n return createSelector(selectAllPeople, (v) => {\r\n email = email.toLowerCase();\r\n return v.find((p) => p.email.toLowerCase() === email);\r\n });\r\n}\r\n\r\nexport function selectPersonByEmployeeId(\r\n employeeId: string,\r\n): Selector {\r\n return createSelector(selectAllPeople, (v) => {\r\n return v.find((p) => p.employeeId === employeeId);\r\n });\r\n}\r\n\r\nexport function selectPeopleFlightComplianceAsReady() {\r\n return createSelector(selectAllPeople, (people) => {\r\n return people\r\n .valueSeq()\r\n .filter((p) => people.find((up) => up.isOutOfFlightCompliance === false) == null);\r\n });\r\n}\r\n\r\nexport function selectPeopleNotAssignedToUnitPosition() {\r\n return createSelector(selectAllPeople, selectAllUnitPostions, (people, positions) => {\r\n return people\r\n .valueSeq()\r\n .filter((p) => positions.find((up) => up.teamMemberId === p.id) == null);\r\n });\r\n}\r\n\r\nexport function selectPeopleAssignedToUnit(unitId: string) {\r\n return createSelector(selectAllUnitPostions, selectAllPeople, (positions, people) => {\r\n return (\r\n positions\r\n .valueSeq()\r\n .filter((p) => p.unitId === unitId && p.teamMemberId != null)\r\n .map((p: UnitPositionRecord) =>\r\n p.teamMemberId == null ? undefined : people.get(p.teamMemberId),\r\n )\r\n .filter((p) => p != null)\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n .map((p) => p!)\r\n );\r\n });\r\n}\r\n\r\nexport function selectPeople() {\r\n return createSelector(selectAllPeople, (people) => {\r\n return people.valueSeq();\r\n });\r\n}\r\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nvar IdxStatus = /*#__PURE__*/function (IdxStatus) {\n IdxStatus[\"SUCCESS\"] = \"SUCCESS\";\n IdxStatus[\"PENDING\"] = \"PENDING\";\n IdxStatus[\"FAILURE\"] = \"FAILURE\";\n IdxStatus[\"TERMINAL\"] = \"TERMINAL\";\n IdxStatus[\"CANCELED\"] = \"CANCELED\";\n return IdxStatus;\n}(IdxStatus || {});\nvar AuthenticatorKey = /*#__PURE__*/function (AuthenticatorKey) {\n AuthenticatorKey[\"OKTA_PASSWORD\"] = \"okta_password\";\n AuthenticatorKey[\"OKTA_EMAIL\"] = \"okta_email\";\n AuthenticatorKey[\"PHONE_NUMBER\"] = \"phone_number\";\n AuthenticatorKey[\"GOOGLE_AUTHENTICATOR\"] = \"google_otp\";\n AuthenticatorKey[\"SECURITY_QUESTION\"] = \"security_question\";\n AuthenticatorKey[\"OKTA_VERIFY\"] = \"okta_verify\";\n AuthenticatorKey[\"WEBAUTHN\"] = \"webauthn\";\n return AuthenticatorKey;\n}(AuthenticatorKey || {});\nvar IdxFeature = /*#__PURE__*/function (IdxFeature) {\n IdxFeature[\"PASSWORD_RECOVERY\"] = \"recover-password\";\n IdxFeature[\"REGISTRATION\"] = \"enroll-profile\";\n IdxFeature[\"SOCIAL_IDP\"] = \"redirect-idp\";\n IdxFeature[\"ACCOUNT_UNLOCK\"] = \"unlock-account\";\n return IdxFeature;\n}(IdxFeature || {});\nfunction isAuthenticator(obj) {\n return obj && (obj.key || obj.id);\n}\nexport { AuthenticatorKey, IdxFeature, IdxStatus, isAuthenticator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction getNativeConsole() {\n if (typeof window !== 'undefined') {\n return window.console;\n } else if (typeof console !== 'undefined') {\n return console;\n } else {\n return undefined;\n }\n}\nfunction getConsole() {\n var nativeConsole = getNativeConsole();\n if (nativeConsole && nativeConsole.log) {\n return nativeConsole;\n }\n return {\n log: function () {},\n warn: function () {},\n group: function () {},\n groupEnd: function () {}\n };\n}\nfunction warn(text) {\n getConsole().warn('[okta-auth-sdk] WARN: ' + text);\n}\nfunction deprecate(text) {\n getConsole().warn('[okta-auth-sdk] DEPRECATION: ' + text);\n}\nfunction deprecateWrap(text, fn) {\n return function () {\n deprecate(text);\n return fn.apply(null, arguments);\n };\n}\nexport { deprecate, deprecateWrap, getConsole, getNativeConsole, warn };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction bind(fn, ctx) {\n var additionalArgs = Array.prototype.slice.call(arguments, 2);\n return function () {\n var args = Array.prototype.slice.call(arguments);\n args = additionalArgs.concat(args);\n return fn.apply(ctx, args);\n };\n}\nfunction extend() {\n var obj1 = arguments[0];\n var objArray = [].slice.call(arguments, 1);\n objArray.forEach(function (obj) {\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, prop) && obj[prop] !== undefined) {\n obj1[prop] = obj[prop];\n }\n }\n });\n return obj1;\n}\nfunction removeNils(obj) {\n var cleaned = {};\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, prop)) {\n var value = obj[prop];\n if (value !== null && value !== undefined) {\n cleaned[prop] = value;\n }\n }\n }\n return cleaned;\n}\nfunction clone(obj) {\n if (obj) {\n var str = JSON.stringify(obj);\n if (str) {\n return JSON.parse(str);\n }\n }\n return obj;\n}\nfunction omit(obj, ...props) {\n var newobj = {};\n for (var p in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, p) && props.indexOf(p) == -1) {\n newobj[p] = obj[p];\n }\n }\n return clone(newobj);\n}\nfunction find(collection, searchParams) {\n var c = collection.length;\n while (c--) {\n var item = collection[c];\n var found = true;\n for (var prop in searchParams) {\n if (!Object.prototype.hasOwnProperty.call(searchParams, prop)) {\n continue;\n }\n if (item[prop] !== searchParams[prop]) {\n found = false;\n break;\n }\n }\n if (found) {\n return item;\n }\n }\n}\nfunction getLink(obj, linkName, altName) {\n if (!obj || !obj._links) {\n return;\n }\n var link = clone(obj._links[linkName]);\n if (link && link.name && altName) {\n if (link.name === altName) {\n return link;\n }\n } else {\n return link;\n }\n}\nexport { bind, clone, extend, find, getLink, omit, removeNils };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nclass CustomError extends Error {\n constructor(message) {\n super(message);\n Object.setPrototypeOf(this, new.target.prototype);\n }\n}\nexport { CustomError as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction isString(obj) {\n return Object.prototype.toString.call(obj) === '[object String]';\n}\nfunction isObject(obj) {\n return Object.prototype.toString.call(obj) === '[object Object]';\n}\nfunction isNumber(obj) {\n return Object.prototype.toString.call(obj) === '[object Number]';\n}\nfunction isFunction(fn) {\n return !!fn && {}.toString.call(fn) === '[object Function]';\n}\nfunction isPromise(obj) {\n return obj && obj.finally && typeof obj.finally === 'function';\n}\nexport { isFunction, isNumber, isObject, isPromise, isString };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError.js';\nimport { isFunction } from '../util/types.js';\nlet WWWAuthError = /*#__PURE__*/(() => {\n class WWWAuthError extends CustomError {\n constructor(scheme, parameters, resp) {\n var _a;\n super((_a = parameters.error) !== null && _a !== void 0 ? _a : WWWAuthError.UNKNOWN_ERROR);\n this.name = 'WWWAuthError';\n this.resp = null;\n this.scheme = scheme;\n this.parameters = parameters;\n if (resp) {\n this.resp = resp;\n }\n }\n get error() {\n return this.parameters.error;\n }\n get errorCode() {\n return this.error;\n }\n get error_description() {\n return this.parameters.error_description;\n }\n get errorDescription() {\n return this.error_description;\n }\n get errorSummary() {\n return this.errorDescription;\n }\n get realm() {\n return this.parameters.realm;\n }\n static parseHeader(header) {\n var _a;\n if (!header) {\n return null;\n }\n const regex = /(?:,|, )?([a-zA-Z0-9!#$%&'*+\\-.^_`|~]+)=(?:\"([a-zA-Z0-9!#$%&'*+\\-.,^_`|~ /:]+)\"|([a-zA-Z0-9!#$%&'*+\\-.^_`|~/:]+))/g;\n const firstSpace = header.indexOf(' ');\n const scheme = header.slice(0, firstSpace);\n const remaining = header.slice(firstSpace + 1);\n const params = {};\n let match;\n while ((match = regex.exec(remaining)) !== null) {\n params[match[1]] = (_a = match[2]) !== null && _a !== void 0 ? _a : match[3];\n }\n return new WWWAuthError(scheme, params);\n }\n static getWWWAuthenticateHeader(headers = {}) {\n var _a;\n if (isFunction(headers === null || headers === void 0 ? void 0 : headers.get)) {\n return headers.get('WWW-Authenticate');\n }\n return (_a = headers['www-authenticate']) !== null && _a !== void 0 ? _a : headers['WWW-Authenticate'];\n }\n }\n WWWAuthError.UNKNOWN_ERROR = 'UNKNOWN_WWW_AUTH_ERROR';\n return WWWAuthError;\n})();\nexport { WWWAuthError as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction isoToUTCString(str) {\n var parts = str.match(/\\d+/g),\n isoTime = Date.UTC(parts[0], parts[1] - 1, parts[2], parts[3], parts[4], parts[5]),\n isoDate = new Date(isoTime);\n return isoDate.toUTCString();\n}\nfunction genRandomString(length) {\n var randomCharset = 'abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';\n var random = '';\n for (var c = 0, cl = randomCharset.length; c < length; ++c) {\n random += randomCharset[Math.floor(Math.random() * cl)];\n }\n return random;\n}\nfunction delay(ms) {\n return new Promise(function (resolve) {\n setTimeout(resolve, ms);\n });\n}\nfunction split2(str, delim) {\n const parts = str.split(delim);\n return [parts[0], parts.splice(1, parts.length).join(delim)];\n}\nexport { delay, genRandomString, isoToUTCString, split2 };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction isAbsoluteUrl(url) {\n return /^[a-z][a-z0-9+.-]*:/i.test(url);\n}\nfunction toAbsoluteUrl(url = '', baseUrl) {\n if (isAbsoluteUrl(url)) {\n return url;\n }\n baseUrl = removeTrailingSlash(baseUrl);\n return url[0] === '/' ? `${baseUrl}${url}` : `${baseUrl}/${url}`;\n}\nfunction toRelativeUrl(url = '', baseUrl) {\n if (isAbsoluteUrl(url)) {\n url = url.substring(baseUrl.length);\n }\n return url[0] === '/' ? url : `/${url}`;\n}\nfunction toQueryString(obj) {\n var str = [];\n if (obj !== null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key) && obj[key] !== undefined && obj[key] !== null) {\n str.push(key + '=' + encodeURIComponent(obj[key]));\n }\n }\n }\n if (str.length) {\n return '?' + str.join('&');\n } else {\n return '';\n }\n}\nfunction removeTrailingSlash(path) {\n if (!path) {\n return;\n }\n var trimmed = path.replace(/^\\s+|\\s+$/gm, '');\n trimmed = trimmed.replace(/\\/+$/, '');\n return trimmed;\n}\nexport { isAbsoluteUrl, removeTrailingSlash, toAbsoluteUrl, toQueryString, toRelativeUrl };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError.js';\nclass AuthSdkError extends CustomError {\n constructor(msg, xhr) {\n super(msg);\n this.name = 'AuthSdkError';\n this.errorCode = 'INTERNAL';\n this.errorSummary = msg;\n this.errorLink = 'INTERNAL';\n this.errorId = 'INTERNAL';\n this.errorCauses = [];\n if (xhr) {\n this.xhr = xhr;\n }\n }\n}\nexport { AuthSdkError as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { genRandomString } from '../../util/misc.js';\nimport { removeTrailingSlash } from '../../util/url.js';\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nfunction generateState() {\n return genRandomString(64);\n}\nfunction generateNonce() {\n return genRandomString(64);\n}\nfunction getIssuer(sdk, options = {}) {\n const issuer = removeTrailingSlash(options.issuer) || sdk.options.issuer;\n return issuer;\n}\nfunction getOAuthBaseUrl(sdk, options = {}) {\n const issuer = getIssuer(sdk, options);\n const baseUrl = issuer.indexOf('/oauth2') > 0 ? issuer : issuer + '/oauth2';\n return baseUrl;\n}\nfunction getOAuthDomain(sdk, options = {}) {\n const issuer = getIssuer(sdk, options);\n const domain = issuer.split('/oauth2')[0];\n return domain;\n}\nfunction getOAuthUrls(sdk, options) {\n if (arguments.length > 2) {\n throw new AuthSdkError('As of version 3.0, \"getOAuthUrls\" takes only a single set of options');\n }\n options = options || {};\n var authorizeUrl = removeTrailingSlash(options.authorizeUrl) || sdk.options.authorizeUrl;\n var issuer = getIssuer(sdk, options);\n var userinfoUrl = removeTrailingSlash(options.userinfoUrl) || sdk.options.userinfoUrl;\n var tokenUrl = removeTrailingSlash(options.tokenUrl) || sdk.options.tokenUrl;\n var logoutUrl = removeTrailingSlash(options.logoutUrl) || sdk.options.logoutUrl;\n var revokeUrl = removeTrailingSlash(options.revokeUrl) || sdk.options.revokeUrl;\n var baseUrl = getOAuthBaseUrl(sdk, options);\n authorizeUrl = authorizeUrl || baseUrl + '/v1/authorize';\n userinfoUrl = userinfoUrl || baseUrl + '/v1/userinfo';\n tokenUrl = tokenUrl || baseUrl + '/v1/token';\n revokeUrl = revokeUrl || baseUrl + '/v1/revoke';\n logoutUrl = logoutUrl || baseUrl + '/v1/logout';\n return {\n issuer: issuer,\n authorizeUrl: authorizeUrl,\n userinfoUrl: userinfoUrl,\n tokenUrl: tokenUrl,\n revokeUrl: revokeUrl,\n logoutUrl: logoutUrl\n };\n}\nexport { generateNonce, generateState, getOAuthBaseUrl, getOAuthDomain, getOAuthUrls };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { getOAuthUrls } from './oauth.js';\nfunction createOAuthMeta(sdk, tokenParams) {\n const issuer = sdk.options.issuer;\n const urls = getOAuthUrls(sdk, tokenParams);\n const oauthMeta = {\n issuer,\n urls,\n clientId: tokenParams.clientId,\n redirectUri: tokenParams.redirectUri,\n responseType: tokenParams.responseType,\n responseMode: tokenParams.responseMode,\n scopes: tokenParams.scopes,\n state: tokenParams.state,\n nonce: tokenParams.nonce,\n ignoreSignature: tokenParams.ignoreSignature,\n acrValues: tokenParams.acrValues\n };\n if (tokenParams.pkce === false) {\n return oauthMeta;\n }\n const pkceMeta = Object.assign(Object.assign({}, oauthMeta), {\n codeVerifier: tokenParams.codeVerifier,\n codeChallengeMethod: tokenParams.codeChallengeMethod,\n codeChallenge: tokenParams.codeChallenge\n });\n return pkceMeta;\n}\nexport { createOAuthMeta };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { warn } from '../util/console.js';\nimport { removeNils } from '../util/object.js';\nimport '../errors/WWWAuthError.js';\nimport { createOAuthMeta } from '../oidc/util/oauthMeta.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport '../oidc/types/Token.js';\nasync function createTransactionMeta(authClient, options = {}) {\n const tokenParams = await authClient.token.prepareTokenParams(options);\n const pkceMeta = createOAuthMeta(authClient, tokenParams);\n let {\n flow = 'default',\n withCredentials = true,\n activationToken = undefined,\n recoveryToken = undefined,\n maxAge = undefined,\n acrValues = undefined\n } = Object.assign(Object.assign({}, authClient.options), options);\n const meta = Object.assign(Object.assign({}, pkceMeta), {\n flow,\n withCredentials,\n activationToken,\n recoveryToken,\n maxAge,\n acrValues\n });\n return meta;\n}\nfunction hasSavedInteractionHandle(authClient, options) {\n const savedMeta = getSavedTransactionMeta(authClient, options);\n if (savedMeta === null || savedMeta === void 0 ? void 0 : savedMeta.interactionHandle) {\n return true;\n }\n return false;\n}\nfunction getSavedTransactionMeta(authClient, options) {\n options = removeNils(options);\n options = Object.assign(Object.assign({}, authClient.options), options);\n let savedMeta;\n try {\n savedMeta = authClient.transactionManager.load(options);\n } catch (e) {}\n if (!savedMeta) {\n return;\n }\n if (isTransactionMetaValid(savedMeta, options)) {\n return savedMeta;\n }\n warn('Saved transaction meta does not match the current configuration. ' + 'This may indicate that two apps are sharing a storage key.');\n}\nasync function getTransactionMeta(authClient, options) {\n options = removeNils(options);\n options = Object.assign(Object.assign({}, authClient.options), options);\n const validExistingMeta = getSavedTransactionMeta(authClient, options);\n if (validExistingMeta) {\n return validExistingMeta;\n }\n return createTransactionMeta(authClient, options);\n}\nfunction saveTransactionMeta(authClient, meta) {\n authClient.transactionManager.save(meta, {\n muteWarning: true\n });\n}\nfunction clearTransactionMeta(authClient) {\n authClient.transactionManager.clear();\n}\nfunction isTransactionMetaValid(meta, options = {}) {\n const keys = ['issuer', 'clientId', 'redirectUri', 'state', 'codeChallenge', 'codeChallengeMethod', 'activationToken', 'recoveryToken'];\n if (isTransactionMetaValidForOptions(meta, options, keys) === false) {\n return false;\n }\n const {\n flow\n } = options;\n if (isTransactionMetaValidForFlow(meta, flow) === false) {\n return false;\n }\n return true;\n}\nfunction isTransactionMetaValidForFlow(meta, flow) {\n const shouldValidateFlow = flow && flow !== 'default' && flow !== 'proceed';\n if (shouldValidateFlow) {\n if (flow !== meta.flow) {\n return false;\n }\n }\n return true;\n}\nfunction isTransactionMetaValidForOptions(meta, options, keys) {\n const mismatch = keys.some(key => {\n const value = options[key];\n if (value && value !== meta[key]) {\n return true;\n }\n });\n return !mismatch;\n}\nexport { clearTransactionMeta, createTransactionMeta, getSavedTransactionMeta, getTransactionMeta, hasSavedInteractionHandle, isTransactionMetaValid, isTransactionMetaValidForFlow, isTransactionMetaValidForOptions, saveTransactionMeta };\n","/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target;\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent);\n },\n write: function (value) {\n return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);\n }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init(converter, defaultAttributes) {\n function set(name, value, attributes) {\n if (typeof document === 'undefined') {\n return;\n }\n attributes = assign({}, defaultAttributes, attributes);\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue;\n }\n stringifiedAttributes += '; ' + attributeName;\n if (attributes[attributeName] === true) {\n continue;\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n return document.cookie = name + '=' + converter.write(value, name) + stringifiedAttributes;\n }\n function get(name) {\n if (typeof document === 'undefined' || arguments.length && !name) {\n return;\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n try {\n var found = decodeURIComponent(parts[0]);\n jar[found] = converter.read(value, found);\n if (name === found) {\n break;\n }\n } catch (e) {}\n }\n return name ? jar[name] : jar;\n }\n return Object.create({\n set,\n get,\n remove: function (name, attributes) {\n set(name, '', assign({}, attributes, {\n expires: -1\n }));\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes));\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes);\n }\n }, {\n attributes: {\n value: Object.freeze(defaultAttributes)\n },\n converter: {\n value: Object.freeze(converter)\n }\n });\n}\nvar api = init(defaultConverter, {\n path: '/'\n});\n/* eslint-enable no-var */\n\nexport { api as default };","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nvar TokenKind = /*#__PURE__*/function (TokenKind) {\n TokenKind[\"ACCESS\"] = \"accessToken\";\n TokenKind[\"ID\"] = \"idToken\";\n TokenKind[\"REFRESH\"] = \"refreshToken\";\n return TokenKind;\n}(TokenKind || {});\nfunction isToken(obj) {\n if (obj && (obj.accessToken || obj.idToken || obj.refreshToken) && Array.isArray(obj.scopes)) {\n return true;\n }\n return false;\n}\nfunction isAccessToken(obj) {\n return obj && obj.accessToken;\n}\nfunction isIDToken(obj) {\n return obj && obj.idToken;\n}\nfunction isRefreshToken(obj) {\n return obj && obj.refreshToken;\n}\nexport { TokenKind, isAccessToken, isIDToken, isRefreshToken, isToken };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nconst STATE_TOKEN_KEY_NAME = 'oktaStateToken';\nconst DEFAULT_POLLING_DELAY = 500;\nconst DEFAULT_MAX_CLOCK_SKEW = 300;\nconst DEFAULT_CACHE_DURATION = 86400;\nconst TOKEN_STORAGE_NAME = 'okta-token-storage';\nconst CACHE_STORAGE_NAME = 'okta-cache-storage';\nconst PKCE_STORAGE_NAME = 'okta-pkce-storage';\nconst TRANSACTION_STORAGE_NAME = 'okta-transaction-storage';\nconst SHARED_TRANSACTION_STORAGE_NAME = 'okta-shared-transaction-storage';\nconst ORIGINAL_URI_STORAGE_NAME = 'okta-original-uri-storage';\nconst IDX_RESPONSE_STORAGE_NAME = 'okta-idx-response-storage';\nconst ACCESS_TOKEN_STORAGE_KEY = 'accessToken';\nconst ID_TOKEN_STORAGE_KEY = 'idToken';\nconst REFRESH_TOKEN_STORAGE_KEY = 'refreshToken';\nconst REFERRER_PATH_STORAGE_KEY = 'referrerPath';\nconst MIN_VERIFIER_LENGTH = 43;\nconst MAX_VERIFIER_LENGTH = 128;\nconst DEFAULT_CODE_CHALLENGE_METHOD = 'S256';\nconst IDX_API_VERSION = '1.0.0';\nexport { ACCESS_TOKEN_STORAGE_KEY, CACHE_STORAGE_NAME, DEFAULT_CACHE_DURATION, DEFAULT_CODE_CHALLENGE_METHOD, DEFAULT_MAX_CLOCK_SKEW, DEFAULT_POLLING_DELAY, IDX_API_VERSION, IDX_RESPONSE_STORAGE_NAME, ID_TOKEN_STORAGE_KEY, MAX_VERIFIER_LENGTH, MIN_VERIFIER_LENGTH, ORIGINAL_URI_STORAGE_NAME, PKCE_STORAGE_NAME, REFERRER_PATH_STORAGE_KEY, REFRESH_TOKEN_STORAGE_KEY, SHARED_TRANSACTION_STORAGE_NAME, STATE_TOKEN_KEY_NAME, TOKEN_STORAGE_NAME, TRANSACTION_STORAGE_NAME };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError.js';\nclass AuthApiError extends CustomError {\n constructor(err, xhr, meta) {\n const message = err.errorSummary;\n super(message);\n this.name = 'AuthApiError';\n this.errorSummary = err.errorSummary;\n this.errorCode = err.errorCode;\n this.errorLink = err.errorLink;\n this.errorId = err.errorId;\n this.errorCauses = err.errorCauses;\n if (xhr) {\n this.xhr = xhr;\n }\n if (meta) {\n this.meta = meta;\n }\n }\n}\nexport { AuthApiError as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError.js';\nclass OAuthError extends CustomError {\n constructor(errorCode, summary, resp) {\n super(summary);\n this.resp = null;\n this.name = 'OAuthError';\n this.errorCode = errorCode;\n this.errorSummary = summary;\n this.error = errorCode;\n this.error_description = summary;\n if (resp) {\n this.resp = resp;\n }\n }\n}\nexport { OAuthError as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { removeNils, clone } from '../util/object.js';\nimport { isString } from '../util/types.js';\nimport { isAbsoluteUrl } from '../util/url.js';\nimport { STATE_TOKEN_KEY_NAME, DEFAULT_CACHE_DURATION } from '../constants.js';\nimport AuthApiError from '../errors/AuthApiError.js';\nimport OAuthError from '../errors/OAuthError.js';\nimport WWWAuthError from '../errors/WWWAuthError.js';\nconst formatError = (sdk, error) => {\n var _a;\n if (error instanceof Error) {\n return new AuthApiError({\n errorSummary: error.message\n });\n }\n let resp = error;\n let err;\n let serverErr = {};\n if (resp.responseText && isString(resp.responseText)) {\n try {\n serverErr = JSON.parse(resp.responseText);\n } catch (e) {\n serverErr = {\n errorSummary: 'Unknown error'\n };\n }\n }\n if (resp.status >= 500) {\n serverErr.errorSummary = 'Unknown error';\n }\n if (sdk.options.transformErrorXHR) {\n resp = sdk.options.transformErrorXHR(clone(resp));\n }\n const wwwAuthHeader = (_a = WWWAuthError.getWWWAuthenticateHeader(resp === null || resp === void 0 ? void 0 : resp.headers)) !== null && _a !== void 0 ? _a : '';\n if (serverErr.error && serverErr.error_description) {\n err = new OAuthError(serverErr.error, serverErr.error_description, resp);\n } else {\n err = new AuthApiError(serverErr, resp, {\n wwwAuthHeader\n });\n }\n if (wwwAuthHeader && (resp === null || resp === void 0 ? void 0 : resp.status) >= 400 && (resp === null || resp === void 0 ? void 0 : resp.status) < 500) {\n const wwwAuthErr = WWWAuthError.parseHeader(wwwAuthHeader);\n if (resp.status === 403 && (wwwAuthErr === null || wwwAuthErr === void 0 ? void 0 : wwwAuthErr.error) === 'insufficient_authentication_context') {\n const {\n max_age,\n acr_values\n } = wwwAuthErr.parameters;\n err = new AuthApiError({\n errorSummary: wwwAuthErr.error,\n errorCauses: [{\n errorSummary: wwwAuthErr.errorDescription\n }]\n }, resp, Object.assign({\n max_age: +max_age\n }, acr_values && {\n acr_values\n }));\n } else if ((wwwAuthErr === null || wwwAuthErr === void 0 ? void 0 : wwwAuthErr.scheme) === 'DPoP') {\n err = wwwAuthErr;\n }\n }\n return err;\n};\nfunction httpRequest(sdk, options) {\n options = options || {};\n if (sdk.options.httpRequestInterceptors) {\n for (const interceptor of sdk.options.httpRequestInterceptors) {\n interceptor(options);\n }\n }\n var url = options.url,\n method = options.method,\n args = options.args,\n saveAuthnState = options.saveAuthnState,\n accessToken = options.accessToken,\n withCredentials = options.withCredentials === true,\n storageUtil = sdk.options.storageUtil,\n storage = storageUtil.storage,\n httpCache = sdk.storageManager.getHttpCache(sdk.options.cookies);\n if (options.cacheResponse) {\n var cacheContents = httpCache.getStorage();\n var cachedResponse = cacheContents[url];\n if (cachedResponse && Date.now() / 1000 < cachedResponse.expiresAt) {\n return Promise.resolve(cachedResponse.response);\n }\n }\n var oktaUserAgentHeader = sdk._oktaUserAgent.getHttpHeader();\n var headers = Object.assign({\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n }, oktaUserAgentHeader);\n Object.assign(headers, sdk.options.headers, options.headers);\n headers = removeNils(headers);\n if (accessToken && isString(accessToken)) {\n headers['Authorization'] = 'Bearer ' + accessToken;\n }\n var ajaxOptions = {\n headers,\n data: args || undefined,\n withCredentials\n };\n var err, res;\n return sdk.options.httpRequestClient(method, url, ajaxOptions).then(function (resp) {\n res = resp.responseText;\n if (res && isString(res)) {\n res = JSON.parse(res);\n if (res && typeof res === 'object' && !res.headers) {\n if (Array.isArray(res)) {\n res.forEach(item => {\n item.headers = resp.headers;\n });\n } else {\n res.headers = resp.headers;\n }\n }\n }\n if (saveAuthnState) {\n if (!res.stateToken) {\n storage.delete(STATE_TOKEN_KEY_NAME);\n }\n }\n if (res && res.stateToken && res.expiresAt) {\n storage.set(STATE_TOKEN_KEY_NAME, res.stateToken, res.expiresAt, sdk.options.cookies);\n }\n if (res && options.cacheResponse) {\n httpCache.updateStorage(url, {\n expiresAt: Math.floor(Date.now() / 1000) + DEFAULT_CACHE_DURATION,\n response: res\n });\n }\n return res;\n }).catch(function (resp) {\n err = formatError(sdk, resp);\n if (err.errorCode === 'E0000011') {\n storage.delete(STATE_TOKEN_KEY_NAME);\n }\n throw err;\n });\n}\nfunction get(sdk, url, options) {\n url = isAbsoluteUrl(url) ? url : sdk.getIssuerOrigin() + url;\n var getOptions = {\n url: url,\n method: 'GET'\n };\n Object.assign(getOptions, options);\n return httpRequest(sdk, getOptions);\n}\nfunction post(sdk, url, args, options) {\n url = isAbsoluteUrl(url) ? url : sdk.getIssuerOrigin() + url;\n var postOptions = {\n url: url,\n method: 'POST',\n args: args,\n saveAuthnState: true\n };\n Object.assign(postOptions, options);\n return httpRequest(sdk, postOptions);\n}\nexport { get, httpRequest, post };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { getSavedTransactionMeta, createTransactionMeta, saveTransactionMeta } from './transactionMeta.js';\nimport { removeNils } from '../util/object.js';\nimport '../errors/WWWAuthError.js';\nimport { getOAuthBaseUrl } from '../oidc/util/oauth.js';\nimport { httpRequest } from '../http/request.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport '../oidc/types/Token.js';\nfunction getResponse(meta) {\n return {\n meta,\n interactionHandle: meta.interactionHandle,\n state: meta.state\n };\n}\nasync function interact(authClient, options = {}) {\n options = removeNils(options);\n let meta = getSavedTransactionMeta(authClient, options);\n if (meta === null || meta === void 0 ? void 0 : meta.interactionHandle) {\n return getResponse(meta);\n }\n meta = await createTransactionMeta(authClient, Object.assign(Object.assign({}, meta), options));\n const baseUrl = getOAuthBaseUrl(authClient);\n let {\n clientId,\n redirectUri,\n state,\n scopes,\n withCredentials,\n codeChallenge,\n codeChallengeMethod,\n activationToken,\n recoveryToken,\n maxAge,\n acrValues,\n nonce\n } = meta;\n const clientSecret = options.clientSecret || authClient.options.clientSecret;\n withCredentials = withCredentials !== null && withCredentials !== void 0 ? withCredentials : true;\n const url = `${baseUrl}/v1/interact`;\n const params = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({\n client_id: clientId,\n scope: scopes.join(' '),\n redirect_uri: redirectUri,\n code_challenge: codeChallenge,\n code_challenge_method: codeChallengeMethod,\n state\n }, activationToken && {\n activation_token: activationToken\n }), recoveryToken && {\n recovery_token: recoveryToken\n }), clientSecret && {\n client_secret: clientSecret\n }), maxAge && {\n max_age: maxAge\n }), acrValues && {\n acr_values: acrValues\n }), nonce && {\n nonce\n });\n const headers = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n };\n const resp = await httpRequest(authClient, {\n method: 'POST',\n url,\n headers,\n withCredentials,\n args: params\n });\n const interactionHandle = resp.interaction_handle;\n const newMeta = Object.assign(Object.assign({}, meta), {\n interactionHandle,\n withCredentials,\n state,\n scopes,\n recoveryToken,\n activationToken\n });\n saveTransactionMeta(authClient, newMeta);\n return getResponse(newMeta);\n}\nexport { interact };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nexport { __rest };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthApiError from '../../../errors/AuthApiError.js';\nimport '../../../errors/WWWAuthError.js';\nimport { httpRequest } from '../../../http/request.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport { divideActionParamsByMutability } from './actionParser.js';\nconst generateDirectFetch = function generateDirectFetch(authClient, {\n actionDefinition,\n defaultParamsForAction = {},\n immutableParamsForAction = {},\n toPersist = {}\n}) {\n const target = actionDefinition.href;\n return async function (params = {}) {\n var _a;\n const headers = {\n 'Content-Type': 'application/json',\n 'Accept': actionDefinition.accepts || 'application/ion+json'\n };\n const body = JSON.stringify(Object.assign(Object.assign(Object.assign({}, defaultParamsForAction), params), immutableParamsForAction));\n try {\n const response = await httpRequest(authClient, {\n url: target,\n method: actionDefinition.method,\n headers,\n args: body,\n withCredentials: (_a = toPersist === null || toPersist === void 0 ? void 0 : toPersist.withCredentials) !== null && _a !== void 0 ? _a : true\n });\n return authClient.idx.makeIdxResponse(Object.assign({}, response), toPersist, true);\n } catch (err) {\n if (!(err instanceof AuthApiError) || !(err === null || err === void 0 ? void 0 : err.xhr)) {\n throw err;\n }\n const response = err.xhr;\n const payload = response.responseJSON || JSON.parse(response.responseText);\n const wwwAuthHeader = response.headers['WWW-Authenticate'] || response.headers['www-authenticate'];\n const idxResponse = authClient.idx.makeIdxResponse(Object.assign({}, payload), toPersist, false);\n if (response.status === 401 && wwwAuthHeader === 'Oktadevicejwt realm=\"Okta Device\"') {\n idxResponse.stepUp = true;\n }\n return idxResponse;\n }\n };\n};\nconst generateIdxAction = function generateIdxAction(authClient, actionDefinition, toPersist) {\n const generator = generateDirectFetch;\n const {\n defaultParams,\n neededParams,\n immutableParams\n } = divideActionParamsByMutability(actionDefinition);\n const action = generator(authClient, {\n actionDefinition,\n defaultParamsForAction: defaultParams[actionDefinition.name],\n immutableParamsForAction: immutableParams[actionDefinition.name],\n toPersist\n });\n action.neededParams = neededParams;\n return action;\n};\nexport { generateIdxAction as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nconst isFieldMutable = function isFieldMutable(field) {\n return field.mutable !== false;\n};\nconst divideSingleActionParamsByMutability = function divideSingleActionParamsByMutability(action) {\n var _a, _b;\n const defaultParamsForAction = {};\n const neededParamsForAction = [];\n const immutableParamsForAction = {};\n if (!action.value) {\n neededParamsForAction.push(action);\n return {\n defaultParamsForAction,\n neededParamsForAction,\n immutableParamsForAction\n };\n }\n for (let field of action.value) {\n if (isFieldMutable(field)) {\n neededParamsForAction.push(field);\n if ((_a = field.value) !== null && _a !== void 0 ? _a : false) {\n defaultParamsForAction[field.name] = field.value;\n }\n } else {\n immutableParamsForAction[field.name] = (_b = field.value) !== null && _b !== void 0 ? _b : '';\n }\n }\n return {\n defaultParamsForAction,\n neededParamsForAction,\n immutableParamsForAction\n };\n};\nconst divideActionParamsByMutability = function divideActionParamsByMutability(actionList) {\n actionList = Array.isArray(actionList) ? actionList : [actionList];\n const neededParams = [];\n const defaultParams = {};\n const immutableParams = {};\n for (let action of actionList) {\n const {\n defaultParamsForAction,\n neededParamsForAction,\n immutableParamsForAction\n } = divideSingleActionParamsByMutability(action);\n neededParams.push(neededParamsForAction);\n defaultParams[action.name] = defaultParamsForAction;\n immutableParams[action.name] = immutableParamsForAction;\n }\n return {\n defaultParams,\n neededParams,\n immutableParams\n };\n};\nexport { divideActionParamsByMutability };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport generateIdxAction from './generateIdxAction.js';\nconst generateRemediationFunctions = function generateRemediationFunctions(authClient, remediationValue, toPersist = {}) {\n return remediationValue.reduce((obj, remediation) => Object.assign(Object.assign({}, obj), {\n [remediation.name]: generateIdxAction(authClient, remediation, toPersist)\n }), {});\n};\nexport { generateRemediationFunctions };\n","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _construct(Parent, args, Class) {\n if (_isNativeReflectConstruct()) {\n _construct = Reflect.construct;\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) _setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n return _construct.apply(null, arguments);\n}\nfunction _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !_isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return _construct(Class, arguments, _getPrototypeOf(this).constructor);\n }\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return _setPrototypeOf(Wrapper, Class);\n };\n return _wrapNativeSuper(Class);\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assertThisInitialized(self);\n}\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return _possibleConstructorReturn(this, result);\n };\n}\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n if (!it) {\n if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n var F = function () {};\n return {\n s: F,\n n: function () {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function (e) {\n throw e;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function () {\n it = it.call(o);\n },\n n: function () {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function (e) {\n didErr = true;\n err = e;\n },\n f: function () {\n try {\n if (!normalCompletion && it.return != null) it.return();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}\nvar hasOwnProp = Object.prototype.hasOwnProperty;\n/**\n* @typedef {null|boolean|number|string|PlainObject|GenericArray} JSONObject\n*/\n\n/**\n * Copies array and then pushes item into it.\n * @param {GenericArray} arr Array to copy and into which to push\n * @param {any} item Array item to add (to end)\n * @returns {GenericArray} Copy of the original array\n */\n\nfunction push(arr, item) {\n arr = arr.slice();\n arr.push(item);\n return arr;\n}\n/**\n * Copies array and then unshifts item into it.\n * @param {any} item Array item to add (to beginning)\n * @param {GenericArray} arr Array to copy and into which to unshift\n * @returns {GenericArray} Copy of the original array\n */\n\nfunction unshift(item, arr) {\n arr = arr.slice();\n arr.unshift(item);\n return arr;\n}\n/**\n * Caught when JSONPath is used without `new` but rethrown if with `new`\n * @extends Error\n */\n\nvar NewError = /*#__PURE__*/function (_Error) {\n _inherits(NewError, _Error);\n var _super = _createSuper(NewError);\n\n /**\n * @param {any} value The evaluated scalar value\n */\n function NewError(value) {\n var _this;\n _classCallCheck(this, NewError);\n _this = _super.call(this, 'JSONPath should not be called with \"new\" (it prevents return ' + 'of (unwrapped) scalar values)');\n _this.avoidNew = true;\n _this.value = value;\n _this.name = 'NewError';\n return _this;\n }\n return NewError;\n}(/*#__PURE__*/_wrapNativeSuper(Error));\n/**\n* @typedef {PlainObject} ReturnObject\n* @property {string} path\n* @property {JSONObject} value\n* @property {PlainObject|GenericArray} parent\n* @property {string} parentProperty\n*/\n\n/**\n* @callback JSONPathCallback\n* @param {string|PlainObject} preferredOutput\n* @param {\"value\"|\"property\"} type\n* @param {ReturnObject} fullRetObj\n* @returns {void}\n*/\n\n/**\n* @callback OtherTypeCallback\n* @param {JSONObject} val\n* @param {string} path\n* @param {PlainObject|GenericArray} parent\n* @param {string} parentPropName\n* @returns {boolean}\n*/\n\n/* eslint-disable max-len -- Can make multiline type after https://github.com/syavorsky/comment-parser/issues/109 */\n\n/**\n * @typedef {PlainObject} JSONPathOptions\n * @property {JSON} json\n * @property {string|string[]} path\n * @property {\"value\"|\"path\"|\"pointer\"|\"parent\"|\"parentProperty\"|\"all\"} [resultType=\"value\"]\n * @property {boolean} [flatten=false]\n * @property {boolean} [wrap=true]\n * @property {PlainObject} [sandbox={}]\n * @property {boolean} [preventEval=false]\n * @property {PlainObject|GenericArray|null} [parent=null]\n * @property {string|null} [parentProperty=null]\n * @property {JSONPathCallback} [callback]\n * @property {OtherTypeCallback} [otherTypeCallback] Defaults to\n * function which throws on encountering `@other`\n * @property {boolean} [autostart=true]\n */\n\n/* eslint-enable max-len -- Can make multiline type after https://github.com/syavorsky/comment-parser/issues/109 */\n\n/**\n * @param {string|JSONPathOptions} opts If a string, will be treated as `expr`\n * @param {string} [expr] JSON path to evaluate\n * @param {JSON} [obj] JSON object to evaluate against\n * @param {JSONPathCallback} [callback] Passed 3 arguments: 1) desired payload\n * per `resultType`, 2) `\"value\"|\"property\"`, 3) Full returned object with\n * all payloads\n * @param {OtherTypeCallback} [otherTypeCallback] If `@other()` is at the end\n * of one's query, this will be invoked with the value of the item, its\n * path, its parent, and its parent's property name, and it should return\n * a boolean indicating whether the supplied value belongs to the \"other\"\n * type or not (or it may handle transformations and return `false`).\n * @returns {JSONPath}\n * @class\n */\n\nfunction JSONPath(opts, expr, obj, callback, otherTypeCallback) {\n // eslint-disable-next-line no-restricted-syntax\n if (!(this instanceof JSONPath)) {\n try {\n return new JSONPath(opts, expr, obj, callback, otherTypeCallback);\n } catch (e) {\n if (!e.avoidNew) {\n throw e;\n }\n return e.value;\n }\n }\n if (typeof opts === 'string') {\n otherTypeCallback = callback;\n callback = obj;\n obj = expr;\n expr = opts;\n opts = null;\n }\n var optObj = opts && _typeof(opts) === 'object';\n opts = opts || {};\n this.json = opts.json || obj;\n this.path = opts.path || expr;\n this.resultType = opts.resultType || 'value';\n this.flatten = opts.flatten || false;\n this.wrap = hasOwnProp.call(opts, 'wrap') ? opts.wrap : true;\n this.sandbox = opts.sandbox || {};\n this.preventEval = opts.preventEval || false;\n this.parent = opts.parent || null;\n this.parentProperty = opts.parentProperty || null;\n this.callback = opts.callback || callback || null;\n this.otherTypeCallback = opts.otherTypeCallback || otherTypeCallback || function () {\n throw new TypeError('You must supply an otherTypeCallback callback option ' + 'with the @other() operator.');\n };\n if (opts.autostart !== false) {\n var args = {\n path: optObj ? opts.path : expr\n };\n if (!optObj) {\n args.json = obj;\n } else if ('json' in opts) {\n args.json = opts.json;\n }\n var ret = this.evaluate(args);\n if (!ret || _typeof(ret) !== 'object') {\n throw new NewError(ret);\n }\n return ret;\n }\n} // PUBLIC METHODS\n\nJSONPath.prototype.evaluate = function (expr, json, callback, otherTypeCallback) {\n var _this2 = this;\n var currParent = this.parent,\n currParentProperty = this.parentProperty;\n var flatten = this.flatten,\n wrap = this.wrap;\n this.currResultType = this.resultType;\n this.currPreventEval = this.preventEval;\n this.currSandbox = this.sandbox;\n callback = callback || this.callback;\n this.currOtherTypeCallback = otherTypeCallback || this.otherTypeCallback;\n json = json || this.json;\n expr = expr || this.path;\n if (expr && _typeof(expr) === 'object' && !Array.isArray(expr)) {\n if (!expr.path && expr.path !== '') {\n throw new TypeError('You must supply a \"path\" property when providing an object ' + 'argument to JSONPath.evaluate().');\n }\n if (!hasOwnProp.call(expr, 'json')) {\n throw new TypeError('You must supply a \"json\" property when providing an object ' + 'argument to JSONPath.evaluate().');\n }\n var _expr = expr;\n json = _expr.json;\n flatten = hasOwnProp.call(expr, 'flatten') ? expr.flatten : flatten;\n this.currResultType = hasOwnProp.call(expr, 'resultType') ? expr.resultType : this.currResultType;\n this.currSandbox = hasOwnProp.call(expr, 'sandbox') ? expr.sandbox : this.currSandbox;\n wrap = hasOwnProp.call(expr, 'wrap') ? expr.wrap : wrap;\n this.currPreventEval = hasOwnProp.call(expr, 'preventEval') ? expr.preventEval : this.currPreventEval;\n callback = hasOwnProp.call(expr, 'callback') ? expr.callback : callback;\n this.currOtherTypeCallback = hasOwnProp.call(expr, 'otherTypeCallback') ? expr.otherTypeCallback : this.currOtherTypeCallback;\n currParent = hasOwnProp.call(expr, 'parent') ? expr.parent : currParent;\n currParentProperty = hasOwnProp.call(expr, 'parentProperty') ? expr.parentProperty : currParentProperty;\n expr = expr.path;\n }\n currParent = currParent || null;\n currParentProperty = currParentProperty || null;\n if (Array.isArray(expr)) {\n expr = JSONPath.toPathString(expr);\n }\n if (!expr && expr !== '' || !json) {\n return undefined;\n }\n var exprList = JSONPath.toPathArray(expr);\n if (exprList[0] === '$' && exprList.length > 1) {\n exprList.shift();\n }\n this._hasParentSelector = null;\n var result = this._trace(exprList, json, ['$'], currParent, currParentProperty, callback).filter(function (ea) {\n return ea && !ea.isParentSelector;\n });\n if (!result.length) {\n return wrap ? [] : undefined;\n }\n if (!wrap && result.length === 1 && !result[0].hasArrExpr) {\n return this._getPreferredOutput(result[0]);\n }\n return result.reduce(function (rslt, ea) {\n var valOrPath = _this2._getPreferredOutput(ea);\n if (flatten && Array.isArray(valOrPath)) {\n rslt = rslt.concat(valOrPath);\n } else {\n rslt.push(valOrPath);\n }\n return rslt;\n }, []);\n}; // PRIVATE METHODS\n\nJSONPath.prototype._getPreferredOutput = function (ea) {\n var resultType = this.currResultType;\n switch (resultType) {\n case 'all':\n {\n var path = Array.isArray(ea.path) ? ea.path : JSONPath.toPathArray(ea.path);\n ea.pointer = JSONPath.toPointer(path);\n ea.path = typeof ea.path === 'string' ? ea.path : JSONPath.toPathString(ea.path);\n return ea;\n }\n case 'value':\n case 'parent':\n case 'parentProperty':\n return ea[resultType];\n case 'path':\n return JSONPath.toPathString(ea[resultType]);\n case 'pointer':\n return JSONPath.toPointer(ea.path);\n default:\n throw new TypeError('Unknown result type');\n }\n};\nJSONPath.prototype._handleCallback = function (fullRetObj, callback, type) {\n if (callback) {\n var preferredOutput = this._getPreferredOutput(fullRetObj);\n fullRetObj.path = typeof fullRetObj.path === 'string' ? fullRetObj.path : JSONPath.toPathString(fullRetObj.path); // eslint-disable-next-line node/callback-return\n\n callback(preferredOutput, type, fullRetObj);\n }\n};\n/**\n *\n * @param {string} expr\n * @param {JSONObject} val\n * @param {string} path\n * @param {PlainObject|GenericArray} parent\n * @param {string} parentPropName\n * @param {JSONPathCallback} callback\n * @param {boolean} hasArrExpr\n * @param {boolean} literalPriority\n * @returns {ReturnObject|ReturnObject[]}\n */\n\nJSONPath.prototype._trace = function (expr, val, path, parent, parentPropName, callback, hasArrExpr, literalPriority) {\n var _this3 = this;\n\n // No expr to follow? return path and value as the result of\n // this trace branch\n var retObj;\n if (!expr.length) {\n retObj = {\n path: path,\n value: val,\n parent: parent,\n parentProperty: parentPropName,\n hasArrExpr: hasArrExpr\n };\n this._handleCallback(retObj, callback, 'value');\n return retObj;\n }\n var loc = expr[0],\n x = expr.slice(1); // We need to gather the return value of recursive trace calls in order to\n // do the parent sel computation.\n\n var ret = [];\n /**\n *\n * @param {ReturnObject|ReturnObject[]} elems\n * @returns {void}\n */\n\n function addRet(elems) {\n if (Array.isArray(elems)) {\n // This was causing excessive stack size in Node (with or\n // without Babel) against our performance test:\n // `ret.push(...elems);`\n elems.forEach(function (t) {\n ret.push(t);\n });\n } else {\n ret.push(elems);\n }\n }\n if ((typeof loc !== 'string' || literalPriority) && val && hasOwnProp.call(val, loc)) {\n // simple case--directly follow property\n addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr)); // eslint-disable-next-line unicorn/prefer-switch -- Part of larger `if`\n } else if (loc === '*') {\n // all child properties\n this._walk(loc, x, val, path, parent, parentPropName, callback, function (m, l, _x, v, p, par, pr, cb) {\n addRet(_this3._trace(unshift(m, _x), v, p, par, pr, cb, true, true));\n });\n } else if (loc === '..') {\n // all descendent parent properties\n // Check remaining expression with val's immediate children\n addRet(this._trace(x, val, path, parent, parentPropName, callback, hasArrExpr));\n this._walk(loc, x, val, path, parent, parentPropName, callback, function (m, l, _x, v, p, par, pr, cb) {\n // We don't join m and x here because we only want parents,\n // not scalar values\n if (_typeof(v[m]) === 'object') {\n // Keep going with recursive descent on val's\n // object children\n addRet(_this3._trace(unshift(l, _x), v[m], push(p, m), v, m, cb, true));\n }\n }); // The parent sel computation is handled in the frame above using the\n // ancestor object of val\n } else if (loc === '^') {\n // This is not a final endpoint, so we do not invoke the callback here\n this._hasParentSelector = true;\n return {\n path: path.slice(0, -1),\n expr: x,\n isParentSelector: true\n };\n } else if (loc === '~') {\n // property name\n retObj = {\n path: push(path, loc),\n value: parentPropName,\n parent: parent,\n parentProperty: null\n };\n this._handleCallback(retObj, callback, 'property');\n return retObj;\n } else if (loc === '$') {\n // root only\n addRet(this._trace(x, val, path, null, null, callback, hasArrExpr));\n } else if (/^(\\x2D?[0-9]*):(\\x2D?[0-9]*):?([0-9]*)$/.test(loc)) {\n // [start:end:step] Python slice syntax\n addRet(this._slice(loc, x, val, path, parent, parentPropName, callback));\n } else if (loc.indexOf('?(') === 0) {\n // [?(expr)] (filtering)\n if (this.currPreventEval) {\n throw new Error('Eval [?(expr)] prevented in JSONPath expression.');\n }\n this._walk(loc, x, val, path, parent, parentPropName, callback, function (m, l, _x, v, p, par, pr, cb) {\n if (_this3._eval(l.replace(/^\\?\\(((?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*?)\\)$/, '$1'), v[m], m, p, par, pr)) {\n addRet(_this3._trace(unshift(m, _x), v, p, par, pr, cb, true));\n }\n });\n } else if (loc[0] === '(') {\n // [(expr)] (dynamic property/index)\n if (this.currPreventEval) {\n throw new Error('Eval [(expr)] prevented in JSONPath expression.');\n } // As this will resolve to a property name (but we don't know it\n // yet), property and parent information is relative to the\n // parent of the property to which this expression will resolve\n\n addRet(this._trace(unshift(this._eval(loc, val, path[path.length - 1], path.slice(0, -1), parent, parentPropName), x), val, path, parent, parentPropName, callback, hasArrExpr));\n } else if (loc[0] === '@') {\n // value type: @boolean(), etc.\n var addType = false;\n var valueType = loc.slice(1, -2);\n switch (valueType) {\n case 'scalar':\n if (!val || !['object', 'function'].includes(_typeof(val))) {\n addType = true;\n }\n break;\n case 'boolean':\n case 'string':\n case 'undefined':\n case 'function':\n // eslint-disable-next-line valid-typeof\n if (_typeof(val) === valueType) {\n addType = true;\n }\n break;\n case 'integer':\n if (Number.isFinite(val) && !(val % 1)) {\n addType = true;\n }\n break;\n case 'number':\n if (Number.isFinite(val)) {\n addType = true;\n }\n break;\n case 'nonFinite':\n if (typeof val === 'number' && !Number.isFinite(val)) {\n addType = true;\n }\n break;\n case 'object':\n // eslint-disable-next-line valid-typeof\n if (val && _typeof(val) === valueType) {\n addType = true;\n }\n break;\n case 'array':\n if (Array.isArray(val)) {\n addType = true;\n }\n break;\n case 'other':\n addType = this.currOtherTypeCallback(val, path, parent, parentPropName);\n break;\n case 'null':\n if (val === null) {\n addType = true;\n }\n break;\n\n /* c8 ignore next 2 */\n\n default:\n throw new TypeError('Unknown value type ' + valueType);\n }\n if (addType) {\n retObj = {\n path: path,\n value: val,\n parent: parent,\n parentProperty: parentPropName\n };\n this._handleCallback(retObj, callback, 'value');\n return retObj;\n } // `-escaped property\n } else if (loc[0] === '`' && val && hasOwnProp.call(val, loc.slice(1))) {\n var locProp = loc.slice(1);\n addRet(this._trace(x, val[locProp], push(path, locProp), val, locProp, callback, hasArrExpr, true));\n } else if (loc.includes(',')) {\n // [name1,name2,...]\n var parts = loc.split(',');\n var _iterator = _createForOfIteratorHelper(parts),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var part = _step.value;\n addRet(this._trace(unshift(part, x), val, path, parent, parentPropName, callback, true));\n } // simple case--directly follow property\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } else if (!literalPriority && val && hasOwnProp.call(val, loc)) {\n addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr, true));\n } // We check the resulting values for parent selections. For parent\n // selections we discard the value object and continue the trace with the\n // current val object\n\n if (this._hasParentSelector) {\n for (var t = 0; t < ret.length; t++) {\n var rett = ret[t];\n if (rett && rett.isParentSelector) {\n var tmp = this._trace(rett.expr, val, rett.path, parent, parentPropName, callback, hasArrExpr);\n if (Array.isArray(tmp)) {\n ret[t] = tmp[0];\n var tl = tmp.length;\n for (var tt = 1; tt < tl; tt++) {\n t++;\n ret.splice(t, 0, tmp[tt]);\n }\n } else {\n ret[t] = tmp;\n }\n }\n }\n }\n return ret;\n};\nJSONPath.prototype._walk = function (loc, expr, val, path, parent, parentPropName, callback, f) {\n if (Array.isArray(val)) {\n var n = val.length;\n for (var i = 0; i < n; i++) {\n f(i, loc, expr, val, path, parent, parentPropName, callback);\n }\n } else if (val && _typeof(val) === 'object') {\n Object.keys(val).forEach(function (m) {\n f(m, loc, expr, val, path, parent, parentPropName, callback);\n });\n }\n};\nJSONPath.prototype._slice = function (loc, expr, val, path, parent, parentPropName, callback) {\n if (!Array.isArray(val)) {\n return undefined;\n }\n var len = val.length,\n parts = loc.split(':'),\n step = parts[2] && Number.parseInt(parts[2]) || 1;\n var start = parts[0] && Number.parseInt(parts[0]) || 0,\n end = parts[1] && Number.parseInt(parts[1]) || len;\n start = start < 0 ? Math.max(0, start + len) : Math.min(len, start);\n end = end < 0 ? Math.max(0, end + len) : Math.min(len, end);\n var ret = [];\n for (var i = start; i < end; i += step) {\n var tmp = this._trace(unshift(i, expr), val, path, parent, parentPropName, callback, true); // Should only be possible to be an array here since first part of\n // ``unshift(i, expr)` passed in above would not be empty, nor `~`,\n // nor begin with `@` (as could return objects)\n // This was causing excessive stack size in Node (with or\n // without Babel) against our performance test: `ret.push(...tmp);`\n\n tmp.forEach(function (t) {\n ret.push(t);\n });\n }\n return ret;\n};\nJSONPath.prototype._eval = function (code, _v, _vname, path, parent, parentPropName) {\n if (code.includes('@parentProperty')) {\n this.currSandbox._$_parentProperty = parentPropName;\n code = code.replace(/@parentProperty/g, '_$_parentProperty');\n }\n if (code.includes('@parent')) {\n this.currSandbox._$_parent = parent;\n code = code.replace(/@parent/g, '_$_parent');\n }\n if (code.includes('@property')) {\n this.currSandbox._$_property = _vname;\n code = code.replace(/@property/g, '_$_property');\n }\n if (code.includes('@path')) {\n this.currSandbox._$_path = JSONPath.toPathString(path.concat([_vname]));\n code = code.replace(/@path/g, '_$_path');\n }\n if (code.includes('@root')) {\n this.currSandbox._$_root = this.json;\n code = code.replace(/@root/g, '_$_root');\n }\n if (/@([\\t-\\r \\)\\.\\[\\xA0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF])/.test(code)) {\n this.currSandbox._$_v = _v;\n code = code.replace(/@([\\t-\\r \\)\\.\\[\\xA0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF])/g, '_$_v$1');\n }\n try {\n return this.vm.runInNewContext(code, this.currSandbox);\n } catch (e) {\n // eslint-disable-next-line no-console\n console.log(e);\n throw new Error('jsonPath: ' + e.message + ': ' + code);\n }\n}; // PUBLIC CLASS PROPERTIES AND METHODS\n// Could store the cache object itself\n\nJSONPath.cache = {};\n/**\n * @param {string[]} pathArr Array to convert\n * @returns {string} The path string\n */\n\nJSONPath.toPathString = function (pathArr) {\n var x = pathArr,\n n = x.length;\n var p = '$';\n for (var i = 1; i < n; i++) {\n if (!/^(~|\\^|@(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*?\\(\\))$/.test(x[i])) {\n p += /^[\\*0-9]+$/.test(x[i]) ? '[' + x[i] + ']' : \"['\" + x[i] + \"']\";\n }\n }\n return p;\n};\n/**\n * @param {string} pointer JSON Path\n * @returns {string} JSON Pointer\n */\n\nJSONPath.toPointer = function (pointer) {\n var x = pointer,\n n = x.length;\n var p = '';\n for (var i = 1; i < n; i++) {\n if (!/^(~|\\^|@(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*?\\(\\))$/.test(x[i])) {\n p += '/' + x[i].toString().replace(/~/g, '~0').replace(/\\//g, '~1');\n }\n }\n return p;\n};\n/**\n * @param {string} expr Expression to convert\n * @returns {string[]}\n */\n\nJSONPath.toPathArray = function (expr) {\n var cache = JSONPath.cache;\n if (cache[expr]) {\n return cache[expr].concat();\n }\n var subx = [];\n var normalized = expr // Properties\n .replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\\(\\)/g, ';$&;') // Parenthetical evaluations (filtering and otherwise), directly\n // within brackets or single quotes\n .replace(/['\\[](\\??\\((?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*?\\))['\\]]/g, function ($0, $1) {\n return '[#' + (subx.push($1) - 1) + ']';\n }) // Escape periods and tildes within properties\n .replace(/\\[[\"']((?:(?!['\\]])[\\s\\S])*)[\"']\\]/g, function ($0, prop) {\n return \"['\" + prop.replace(/\\./g, '%@%').replace(/~/g, '%%@@%%') + \"']\";\n }) // Properties operator\n .replace(/~/g, ';~;') // Split by property boundaries\n .replace(/[\"']?\\.[\"']?(?!(?:(?!\\[)[\\s\\S])*\\])|\\[[\"']?/g, ';') // Reinsert periods within properties\n .replace(/%@%/g, '.') // Reinsert tildes within properties\n .replace(/%%@@%%/g, '~') // Parent\n .replace(/(?:;)?(\\^+)(?:;)?/g, function ($0, ups) {\n return ';' + ups.split('').join(';') + ';';\n }) // Descendents\n .replace(/;;;|;;/g, ';..;') // Remove trailing\n .replace(/;$|'?\\]|'$/g, '');\n var exprList = normalized.split(';').map(function (exp) {\n var match = exp.match(/#([0-9]+)/);\n return !match || !match[1] ? exp : subx[match[1]];\n });\n cache[expr] = exprList;\n return cache[expr].concat();\n};\n\n/**\n* @callback ConditionCallback\n* @param {any} item\n* @returns {boolean}\n*/\n\n/**\n * Copy items out of one array into another.\n * @param {GenericArray} source Array with items to copy\n * @param {GenericArray} target Array to which to copy\n * @param {ConditionCallback} conditionCb Callback passed the current item;\n * will move item if evaluates to `true`\n * @returns {void}\n */\n\nvar moveToAnotherArray = function moveToAnotherArray(source, target, conditionCb) {\n var il = source.length;\n for (var i = 0; i < il; i++) {\n var item = source[i];\n if (conditionCb(item)) {\n target.push(source.splice(i--, 1)[0]);\n }\n }\n};\nJSONPath.prototype.vm = {\n /**\n * @param {string} expr Expression to evaluate\n * @param {PlainObject} context Object whose items will be added\n * to evaluation\n * @returns {any} Result of evaluated code\n */\n runInNewContext: function runInNewContext(expr, context) {\n var keys = Object.keys(context);\n var funcs = [];\n moveToAnotherArray(keys, funcs, function (key) {\n return typeof context[key] === 'function';\n });\n var values = keys.map(function (vr, i) {\n return context[vr];\n });\n var funcString = funcs.reduce(function (s, func) {\n var fString = context[func].toString();\n if (!/function/.test(fString)) {\n fString = 'function ' + fString;\n }\n return 'var ' + func + '=' + fString + ';' + s;\n }, '');\n expr = funcString + expr; // Mitigate http://perfectionkills.com/global-eval-what-are-the-options/#new_function\n\n if (!/([\"'])use strict\\1/.test(expr) && !keys.includes('arguments')) {\n expr = 'var arguments = undefined;' + expr;\n } // Remove last semi so `return` will be inserted before\n // the previous one instead, allowing for the return\n // of a bare ending expression\n\n expr = expr.replace(/;[\\t-\\r \\xA0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]*$/, ''); // Insert `return`\n\n var lastStatementEnd = expr.lastIndexOf(';');\n var code = lastStatementEnd > -1 ? expr.slice(0, lastStatementEnd + 1) + ' return ' + expr.slice(lastStatementEnd + 1) : ' return ' + expr; // eslint-disable-next-line no-new-func\n\n return _construct(Function, _toConsumableArray(keys).concat([code])).apply(void 0, _toConsumableArray(values));\n }\n};\nexport { JSONPath };","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { JSONPath } from 'jsonpath-plus';\nfunction jsonpath(options) {\n return JSONPath(Object.assign({\n preventEval: true\n }, options));\n}\nexport { jsonpath };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { __rest } from '../../../_virtual/_tslib.js';\nimport { generateRemediationFunctions } from './remediationParser.js';\nimport generateIdxAction from './generateIdxAction.js';\nimport { jsonpath } from '../../../util/jsonpath.js';\nimport AuthSdkError from '../../../errors/AuthSdkError.js';\nimport '../../../errors/WWWAuthError.js';\nconst SKIP_FIELDS = {\n 'remediation': true,\n 'context': true\n};\nconst parseNonRemediations = function parseNonRemediations(authClient, idxResponse, toPersist = {}) {\n const actions = {};\n const context = {};\n Object.keys(idxResponse).filter(field => !SKIP_FIELDS[field]).forEach(field => {\n const fieldIsObject = typeof idxResponse[field] === 'object' && !!idxResponse[field];\n if (!fieldIsObject) {\n context[field] = idxResponse[field];\n return;\n }\n if (idxResponse[field].rel) {\n actions[idxResponse[field].name] = generateIdxAction(authClient, idxResponse[field], toPersist);\n return;\n }\n const _a = idxResponse[field],\n {\n value: fieldValue,\n type\n } = _a,\n info = __rest(_a, [\"value\", \"type\"]);\n context[field] = Object.assign({\n type\n }, info);\n if (type !== 'object') {\n context[field].value = fieldValue;\n return;\n }\n context[field].value = {};\n Object.entries(fieldValue).forEach(([subField, value]) => {\n if (value.rel) {\n actions[`${field}-${subField.name || subField}`] = generateIdxAction(authClient, value, toPersist);\n } else {\n context[field].value[subField] = value;\n }\n });\n });\n return {\n context,\n actions\n };\n};\nconst expandRelatesTo = (idxResponse, value) => {\n Object.keys(value).forEach(k => {\n if (k === 'relatesTo') {\n const query = Array.isArray(value[k]) ? value[k][0] : value[k];\n if (typeof query === 'string') {\n const result = jsonpath({\n path: query,\n json: idxResponse\n })[0];\n if (result) {\n value[k] = result;\n return;\n } else {\n throw new AuthSdkError(`Cannot resolve relatesTo: ${query}`);\n }\n }\n }\n if (Array.isArray(value[k])) {\n value[k].forEach(innerValue => expandRelatesTo(idxResponse, innerValue));\n }\n });\n};\nconst convertRemediationAction = (authClient, remediation, toPersist) => {\n if (remediation.rel) {\n const remediationActions = generateRemediationFunctions(authClient, [remediation], toPersist);\n const actionFn = remediationActions[remediation.name];\n return Object.assign(Object.assign({}, remediation), {\n action: actionFn\n });\n }\n return remediation;\n};\nconst parseIdxResponse = function parseIdxResponse(authClient, idxResponse, toPersist = {}) {\n var _a;\n const remediationData = ((_a = idxResponse.remediation) === null || _a === void 0 ? void 0 : _a.value) || [];\n remediationData.forEach(remediation => {\n var _a;\n if (remediation.name === 'launch-authenticator' && ((_a = remediation === null || remediation === void 0 ? void 0 : remediation.relatesTo) === null || _a === void 0 ? void 0 : _a[0]) === 'authenticatorChallenge' && !(idxResponse === null || idxResponse === void 0 ? void 0 : idxResponse.authenticatorChallenge)) {\n delete remediation.relatesTo;\n return;\n }\n return expandRelatesTo(idxResponse, remediation);\n });\n const remediations = remediationData.map(remediation => convertRemediationAction(authClient, remediation, toPersist));\n const {\n context,\n actions\n } = parseNonRemediations(authClient, idxResponse, toPersist);\n return {\n remediations,\n context,\n actions\n };\n};\nexport { parseIdxResponse, parseNonRemediations };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { parseIdxResponse } from './idxResponseParser.js';\nfunction makeIdxState(authClient, idxResponse, toPersist, requestDidSucceed) {\n var _a, _b, _c;\n const rawIdxResponse = idxResponse;\n const {\n remediations,\n context,\n actions\n } = parseIdxResponse(authClient, idxResponse, toPersist);\n const neededToProceed = [...remediations];\n const proceed = async function (remediationChoice, paramsFromUser = {}) {\n const remediationChoiceObject = remediations.find(remediation => remediation.name === remediationChoice);\n if (!remediationChoiceObject) {\n return Promise.reject(`Unknown remediation choice: [${remediationChoice}]`);\n }\n const actionFn = remediationChoiceObject.action;\n if (typeof actionFn !== 'function') {\n return Promise.reject(`Current remediation cannot make form submit action: [${remediationChoice}]`);\n }\n return remediationChoiceObject.action(paramsFromUser);\n };\n const findCode = item => item.name === 'interaction_code';\n const interactionCode = (_c = (_b = (_a = rawIdxResponse.successWithInteractionCode) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.find(findCode)) === null || _c === void 0 ? void 0 : _c.value;\n return {\n proceed,\n neededToProceed,\n actions,\n context,\n rawIdxState: rawIdxResponse,\n interactionCode,\n toPersist,\n requestDidSucceed\n };\n}\nexport { makeIdxState };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { makeIdxState } from './makeIdxState.js';\nvar v1 = {\n makeIdxState\n};\nexport { v1 as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { IDX_API_VERSION } from '../../constants.js';\nimport v1 from './v1/parsers.js';\nconst parsersForVersion = function parsersForVersion(version) {\n switch (version) {\n case '1.0.0':\n return v1;\n case undefined:\n case null:\n throw new Error('Api version is required');\n default:\n throw new Error(`Unknown api version: ${version}. Use an exact semver version.`);\n }\n};\nfunction validateVersionConfig(version) {\n if (!version) {\n throw new Error('version is required');\n }\n const cleanVersion = (version !== null && version !== void 0 ? version : '').replace(/[^0-9a-zA-Z._-]/, '');\n if (cleanVersion !== version || !version) {\n throw new Error('invalid version supplied - version is required and uses semver syntax');\n }\n parsersForVersion(version);\n}\nfunction makeIdxState(authClient, rawIdxResponse, toPersist, requestDidSucceed) {\n var _a;\n const version = (_a = rawIdxResponse === null || rawIdxResponse === void 0 ? void 0 : rawIdxResponse.version) !== null && _a !== void 0 ? _a : IDX_API_VERSION;\n validateVersionConfig(version);\n const {\n makeIdxState\n } = parsersForVersion(version);\n return makeIdxState(authClient, rawIdxResponse, toPersist, requestDidSucceed);\n}\nexport { makeIdxState, parsersForVersion, validateVersionConfig };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction isRawIdxResponse(obj) {\n return obj && obj.version;\n}\nexport { isRawIdxResponse };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthApiError from './AuthApiError.js';\nexport { default as AuthApiError } from './AuthApiError.js';\nimport OAuthError from './OAuthError.js';\nexport { default as OAuthError } from './OAuthError.js';\nimport WWWAuthError from './WWWAuthError.js';\nexport { default as WWWAuthError } from './WWWAuthError.js';\nfunction isAuthApiError(obj) {\n return obj instanceof AuthApiError;\n}\nfunction isOAuthError(obj) {\n return obj instanceof OAuthError;\n}\nfunction isWWWAuthError(obj) {\n return obj instanceof WWWAuthError;\n}\nexport { isAuthApiError, isOAuthError, isWWWAuthError };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { validateVersionConfig, makeIdxState } from './idxState/index.js';\nimport { isRawIdxResponse } from './types/idx-js.js';\nimport { isAuthApiError } from '../errors/index.js';\nimport { getOAuthDomain } from '../oidc/util/oauth.js';\nimport { IDX_API_VERSION } from '../constants.js';\nimport { httpRequest } from '../http/request.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport '../oidc/types/Token.js';\nasync function introspect(authClient, options = {}) {\n var _a;\n let rawIdxResponse;\n let requestDidSucceed;\n const savedIdxResponse = authClient.transactionManager.loadIdxResponse(options);\n if (savedIdxResponse) {\n rawIdxResponse = savedIdxResponse.rawIdxResponse;\n requestDidSucceed = savedIdxResponse.requestDidSucceed;\n }\n if (!rawIdxResponse) {\n const version = options.version || IDX_API_VERSION;\n const domain = getOAuthDomain(authClient);\n const {\n interactionHandle,\n stateHandle\n } = options;\n const withCredentials = (_a = options.withCredentials) !== null && _a !== void 0 ? _a : true;\n try {\n requestDidSucceed = true;\n validateVersionConfig(version);\n const url = `${domain}/idp/idx/introspect`;\n const body = stateHandle ? {\n stateToken: stateHandle\n } : {\n interactionHandle\n };\n const headers = {\n 'Content-Type': `application/ion+json; okta-version=${version}`,\n Accept: `application/ion+json; okta-version=${version}`\n };\n rawIdxResponse = await httpRequest(authClient, {\n method: 'POST',\n url,\n headers,\n withCredentials,\n args: body\n });\n } catch (err) {\n if (isAuthApiError(err) && err.xhr && isRawIdxResponse(err.xhr.responseJSON)) {\n rawIdxResponse = err.xhr.responseJSON;\n requestDidSucceed = false;\n } else {\n throw err;\n }\n }\n }\n const {\n withCredentials\n } = options;\n return makeIdxState(authClient, rawIdxResponse, {\n withCredentials\n }, requestDidSucceed);\n}\nexport { introspect };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction getAllValues(idxRemediation) {\n var _a;\n return (_a = idxRemediation.value) === null || _a === void 0 ? void 0 : _a.map(r => r.name);\n}\nfunction getRequiredValues(idxRemediation) {\n var _a;\n return (_a = idxRemediation.value) === null || _a === void 0 ? void 0 : _a.reduce((required, cur) => {\n if (cur.required) {\n required.push(cur.name);\n }\n return required;\n }, []);\n}\nfunction titleCase(str) {\n return str.charAt(0).toUpperCase() + str.substring(1);\n}\nfunction getAuthenticatorFromRemediation(remediation) {\n return remediation.value.find(({\n name\n }) => name === 'authenticator');\n}\nexport { getAllValues, getAuthenticatorFromRemediation, getRequiredValues, titleCase };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { isAuthenticator } from '../types/api.js';\nfunction formatAuthenticator(incoming) {\n let authenticator;\n if (isAuthenticator(incoming)) {\n authenticator = incoming;\n } else if (typeof incoming === 'string') {\n authenticator = {\n key: incoming\n };\n } else {\n throw new Error('Invalid format for authenticator');\n }\n return authenticator;\n}\nfunction compareAuthenticators(auth1, auth2) {\n if (!auth1 || !auth2) {\n return false;\n }\n if (auth1.id && auth2.id) {\n return auth1.id === auth2.id;\n }\n if (auth1.key && auth2.key) {\n return auth1.key === auth2.key;\n }\n return false;\n}\nfunction findMatchedOption(authenticators, options) {\n let option;\n for (let authenticator of authenticators) {\n option = options.find(({\n relatesTo\n }) => relatesTo.key && relatesTo.key === authenticator.key);\n if (option) {\n break;\n }\n }\n return option;\n}\nexport { compareAuthenticators, findMatchedOption, formatAuthenticator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { getRequiredValues, getAllValues, titleCase, getAuthenticatorFromRemediation } from '../util.js';\nimport { formatAuthenticator, compareAuthenticators } from '../../authenticator/util.js';\nclass Remediator {\n constructor(remediation, values = {}, options = {}) {\n this.values = Object.assign({}, values);\n this.options = Object.assign({}, options);\n this.formatAuthenticators();\n this.remediation = remediation;\n }\n formatAuthenticators() {\n this.values.authenticators = this.values.authenticators || [];\n this.values.authenticators = this.values.authenticators.map(authenticator => {\n return formatAuthenticator(authenticator);\n });\n if (this.values.authenticator) {\n const authenticator = formatAuthenticator(this.values.authenticator);\n const hasAuthenticatorInList = this.values.authenticators.some(existing => {\n return compareAuthenticators(authenticator, existing);\n });\n if (!hasAuthenticatorInList) {\n this.values.authenticators.push(authenticator);\n }\n }\n this.values.authenticatorsData = this.values.authenticators.reduce((acc, authenticator) => {\n if (typeof authenticator === 'object' && Object.keys(authenticator).length > 1) {\n acc.push(authenticator);\n }\n return acc;\n }, this.values.authenticatorsData || []);\n }\n getName() {\n return this.remediation.name;\n }\n canRemediate(context) {\n const required = getRequiredValues(this.remediation);\n const needed = required.find(key => !this.hasData(key));\n if (needed) {\n return false;\n }\n return true;\n }\n getData(key) {\n if (!key) {\n let allValues = getAllValues(this.remediation);\n let res = allValues.reduce((data, key) => {\n data[key] = this.getData(key);\n return data;\n }, {});\n return res;\n }\n if (typeof this[`map${titleCase(key)}`] === 'function') {\n const val = this[`map${titleCase(key)}`](this.remediation.value.find(({\n name\n }) => name === key));\n if (val) {\n return val;\n }\n }\n if (this.map && this.map[key]) {\n const entry = this.map[key];\n for (let i = 0; i < entry.length; i++) {\n let val = this.values[entry[i]];\n if (val) {\n return val;\n }\n }\n }\n return this.values[key];\n }\n hasData(key) {\n return !!this.getData(key);\n }\n getNextStep(_authClient, _context) {\n const name = this.getName();\n const inputs = this.getInputs();\n const authenticator = this.getAuthenticator();\n const type = authenticator === null || authenticator === void 0 ? void 0 : authenticator.type;\n return Object.assign(Object.assign({\n name,\n inputs\n }, type && {\n type\n }), authenticator && {\n authenticator\n });\n }\n getInputs() {\n const inputs = [];\n const inputsFromRemediation = this.remediation.value || [];\n inputsFromRemediation.forEach(inputFromRemediation => {\n let input;\n let {\n name,\n type,\n visible,\n messages\n } = inputFromRemediation;\n if (visible === false) {\n return;\n }\n if (typeof this[`getInput${titleCase(name)}`] === 'function') {\n input = this[`getInput${titleCase(name)}`](inputFromRemediation);\n } else if (type !== 'object') {\n let alias;\n const aliases = (this.map ? this.map[name] : null) || [];\n if (aliases.length === 1) {\n alias = aliases[0];\n } else {\n alias = aliases.find(name => Object.keys(this.values).includes(name));\n }\n if (alias) {\n input = Object.assign(Object.assign({}, inputFromRemediation), {\n name: alias\n });\n }\n }\n if (!input) {\n input = inputFromRemediation;\n }\n if (Array.isArray(input)) {\n input.forEach(i => inputs.push(i));\n } else {\n if (messages) {\n input.messages = messages;\n }\n inputs.push(input);\n }\n });\n return inputs;\n }\n static getMessages(remediation) {\n var _a, _b;\n if (!remediation.value) {\n return;\n }\n return (_b = (_a = remediation.value[0]) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.value.reduce((messages, field) => {\n if (field.messages) {\n messages = [...messages, ...field.messages.value];\n }\n return messages;\n }, []);\n }\n getValuesAfterProceed() {\n const inputsFromRemediation = this.remediation.value || [];\n const inputsFromRemediator = this.getInputs();\n const inputs = [...inputsFromRemediation, ...inputsFromRemediator];\n for (const input of inputs) {\n delete this.values[input.name];\n }\n return this.values;\n }\n getAuthenticator() {\n var _a, _b;\n const relatesTo = (_a = this.remediation.relatesTo) === null || _a === void 0 ? void 0 : _a.value;\n if (!relatesTo) {\n return;\n }\n const authenticatorFromRemediation = getAuthenticatorFromRemediation(this.remediation);\n if (!authenticatorFromRemediation) {\n return relatesTo;\n }\n const id = authenticatorFromRemediation.form.value.find(({\n name\n }) => name === 'id').value;\n const enrollmentId = (_b = authenticatorFromRemediation.form.value.find(({\n name\n }) => name === 'enrollmentId')) === null || _b === void 0 ? void 0 : _b.value;\n return Object.assign(Object.assign({}, relatesTo), {\n id,\n enrollmentId\n });\n }\n}\nexport { Remediator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport '../../../errors/WWWAuthError.js';\nfunction unwrapFormValue(remediation) {\n if (Array.isArray(remediation)) {\n return remediation.map(item => {\n if (typeof item === 'string' || typeof item === 'number' || typeof item === 'boolean') {\n return item;\n }\n return unwrapFormValue(item);\n });\n }\n const res = {};\n for (const [key, value] of Object.entries(remediation)) {\n if (value === null || typeof value === 'undefined') {\n continue;\n }\n if (typeof value === 'object') {\n const formKeys = Object.keys(value);\n if (['value', 'form'].includes(key) && formKeys.length === 1 && ['value', 'form'].includes(formKeys[0])) {\n const unwrappedForm = unwrapFormValue(value);\n Object.entries(unwrappedForm).forEach(([key, value]) => {\n res[key] = value;\n });\n } else {\n res[key] = unwrapFormValue(value);\n }\n } else {\n res[key] = value;\n }\n }\n return res;\n}\nexport { unwrapFormValue };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { __rest } from '../../../_virtual/_tslib.js';\nimport { Remediator } from '../Base/Remediator.js';\nimport { unwrapFormValue } from './util.js';\nclass GenericRemediator extends Remediator {\n canRemediate() {\n if (typeof this.remediation.action !== 'function') {\n return false;\n }\n if (this.remediation.name === 'poll' || this.remediation.name.endsWith('-poll')) {\n return true;\n }\n if (this.options.step) {\n return true;\n }\n return false;\n }\n getData() {\n const data = this.getInputs().reduce((acc, {\n name\n }) => {\n acc[name] = this.values[name];\n return acc;\n }, {});\n return data;\n }\n getNextStep(authClient, _context) {\n const name = this.getName();\n const inputs = this.getInputs();\n const _a = this.remediation,\n {\n href,\n method,\n rel,\n accepts,\n produces,\n value,\n action\n } = _a,\n rest = __rest(_a, [\"href\", \"method\", \"rel\", \"accepts\", \"produces\", \"value\", \"action\"]);\n if (action) {\n return Object.assign(Object.assign(Object.assign({}, rest), !!inputs.length && {\n inputs\n }), {\n action: async params => {\n return authClient.idx.proceed(Object.assign({\n step: name\n }, params));\n }\n });\n }\n return Object.assign({}, this.remediation);\n }\n getInputs() {\n return (this.remediation.value || []).filter(({\n name\n }) => name !== 'stateHandle').map(unwrapFormValue).map(input => {\n input.type = input.type || 'string';\n return input;\n });\n }\n}\nexport { GenericRemediator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { __rest } from '../_virtual/_tslib.js';\nimport { warn } from '../util/console.js';\nimport { split2 } from '../util/misc.js';\nimport { GenericRemediator } from './remediators/GenericRemediator/GenericRemediator.js';\nimport { IdxFeature } from './types/api.js';\nconst ctx = {\n remediators: {},\n getFlowSpecification: function (_oktaAuth, _flow = 'default') {\n return {\n remediators: {}\n };\n }\n};\nfunction setRemediatorsCtx(newCtx) {\n Object.assign(ctx, newCtx);\n}\nfunction getFlowSpecification(oktaAuth, flow = 'default') {\n return ctx.getFlowSpecification(oktaAuth, flow);\n}\nfunction isTerminalResponse(idxResponse) {\n const {\n neededToProceed,\n interactionCode\n } = idxResponse;\n return !neededToProceed.length && !interactionCode;\n}\nfunction canSkipFn(idxResponse) {\n return idxResponse.neededToProceed.some(({\n name\n }) => name === 'skip');\n}\nfunction canResendFn(idxResponse) {\n return Object.keys(idxResponse.actions).some(actionName => actionName.includes('resend'));\n}\nfunction getMessagesFromIdxRemediationValue(value) {\n if (!value || !Array.isArray(value)) {\n return;\n }\n return value.reduce((messages, value) => {\n if (value.messages) {\n messages = [...messages, ...value.messages.value];\n }\n if (value.form) {\n const messagesFromForm = getMessagesFromIdxRemediationValue(value.form.value) || [];\n messages = [...messages, ...messagesFromForm];\n }\n if (value.options) {\n let optionValues = [];\n value.options.forEach(option => {\n if (!option.value || typeof option.value === 'string') {\n return;\n }\n optionValues = [...optionValues, option.value];\n });\n const messagesFromOptions = getMessagesFromIdxRemediationValue(optionValues) || [];\n messages = [...messages, ...messagesFromOptions];\n }\n return messages;\n }, []);\n}\nfunction getMessagesFromResponse(idxResponse, options) {\n var _a;\n let messages = [];\n const {\n rawIdxState,\n neededToProceed\n } = idxResponse;\n const globalMessages = (_a = rawIdxState.messages) === null || _a === void 0 ? void 0 : _a.value.map(message => message);\n if (globalMessages) {\n messages = [...messages, ...globalMessages];\n }\n if (!options.useGenericRemediator) {\n for (let remediation of neededToProceed) {\n const fieldMessages = getMessagesFromIdxRemediationValue(remediation.value);\n if (fieldMessages) {\n messages = [...messages, ...fieldMessages];\n }\n }\n }\n const seen = {};\n messages = messages.reduce((filtered, message) => {\n var _a;\n const key = (_a = message.i18n) === null || _a === void 0 ? void 0 : _a.key;\n if (key && seen[key] && message.message === seen[key].message) {\n return filtered;\n }\n seen[key] = message;\n filtered = [...filtered, message];\n return filtered;\n }, []);\n return messages;\n}\nfunction getEnabledFeatures(idxResponse) {\n const res = [];\n const {\n actions,\n neededToProceed\n } = idxResponse;\n if (actions['currentAuthenticator-recover']) {\n res.push(IdxFeature.PASSWORD_RECOVERY);\n }\n if (neededToProceed.some(({\n name\n }) => name === 'select-enroll-profile')) {\n res.push(IdxFeature.REGISTRATION);\n }\n if (neededToProceed.some(({\n name\n }) => name === 'redirect-idp')) {\n res.push(IdxFeature.SOCIAL_IDP);\n }\n if (neededToProceed.some(({\n name\n }) => name === 'unlock-account')) {\n res.push(IdxFeature.ACCOUNT_UNLOCK);\n }\n return res;\n}\nfunction getAvailableSteps(authClient, idxResponse, useGenericRemediator) {\n var _a;\n const res = [];\n const remediatorMap = Object.values(ctx.remediators).reduce((map, remediatorClass) => {\n if (remediatorClass.remediationName) {\n map[remediatorClass.remediationName] = remediatorClass;\n }\n return map;\n }, {});\n for (let remediation of idxResponse.neededToProceed) {\n const T = getRemediatorClass(remediation, {\n useGenericRemediator,\n remediators: remediatorMap\n });\n if (T) {\n const remediator = new T(remediation);\n res.push(remediator.getNextStep(authClient, idxResponse.context));\n }\n }\n for (const [name] of Object.entries(idxResponse.actions || {})) {\n let stepObj = {\n name,\n action: async params => {\n return authClient.idx.proceed({\n actions: [{\n name,\n params\n }]\n });\n }\n };\n if (name.startsWith('currentAuthenticator')) {\n const [part1, part2] = split2(name, '-');\n const actionObj = idxResponse.rawIdxState[part1].value[part2];\n const rest = __rest(actionObj, [\"href\", \"method\", \"rel\", \"accepts\", \"produces\"]);\n const value = (_a = actionObj.value) === null || _a === void 0 ? void 0 : _a.filter(item => item.name !== 'stateHandle');\n stepObj = Object.assign(Object.assign(Object.assign({}, rest), value && {\n value\n }), stepObj);\n }\n res.push(stepObj);\n }\n return res;\n}\nfunction filterValuesForRemediation(idxResponse, remediationName, values) {\n const remediations = idxResponse.neededToProceed || [];\n const remediation = remediations.find(r => r.name === remediationName);\n if (!remediation) {\n warn(`filterValuesForRemediation: \"${remediationName}\" did not match any remediations`);\n return values;\n }\n const valuesForRemediation = remediation.value.reduce((res, entry) => {\n const {\n name,\n value\n } = entry;\n if (name === 'stateHandle') {\n res[name] = value;\n } else {\n res[name] = values[name];\n }\n return res;\n }, {});\n return valuesForRemediation;\n}\nfunction getRemediatorClass(remediation, options) {\n const {\n useGenericRemediator,\n remediators\n } = options;\n if (!remediation) {\n return undefined;\n }\n if (useGenericRemediator) {\n return GenericRemediator;\n }\n return remediators[remediation.name];\n}\nfunction getRemediator(idxResponse, values, options) {\n const remediators = options.remediators;\n const useGenericRemediator = options.useGenericRemediator;\n const {\n neededToProceed: idxRemediations,\n context\n } = idxResponse;\n let remediator;\n if (options.step) {\n const remediation = idxRemediations.find(({\n name\n }) => name === options.step);\n if (remediation) {\n const T = getRemediatorClass(remediation, options);\n return T ? new T(remediation, values, options) : undefined;\n } else {\n warn(`step \"${options.step}\" did not match any remediations`);\n return;\n }\n }\n const remediatorCandidates = [];\n if (useGenericRemediator) {\n remediatorCandidates.push(new GenericRemediator(idxRemediations[0], values, options));\n } else {\n for (let remediation of idxRemediations) {\n const isRemeditionInFlow = Object.keys(remediators).includes(remediation.name);\n if (!isRemeditionInFlow) {\n continue;\n }\n const T = getRemediatorClass(remediation, options);\n remediator = new T(remediation, values, options);\n if (remediator.canRemediate(context)) {\n return remediator;\n }\n remediatorCandidates.push(remediator);\n }\n }\n return remediatorCandidates[0];\n}\nfunction getNextStep(authClient, remediator, idxResponse) {\n const nextStep = remediator.getNextStep(authClient, idxResponse.context);\n const canSkip = canSkipFn(idxResponse);\n const canResend = canResendFn(idxResponse);\n return Object.assign(Object.assign(Object.assign({}, nextStep), canSkip && {\n canSkip\n }), canResend && {\n canResend\n });\n}\nfunction handleFailedResponse(authClient, idxResponse, options = {}) {\n const terminal = isTerminalResponse(idxResponse);\n const messages = getMessagesFromResponse(idxResponse, options);\n if (terminal) {\n return {\n idxResponse,\n terminal,\n messages\n };\n } else {\n const remediator = getRemediator(idxResponse, {}, options);\n const nextStep = remediator && getNextStep(authClient, remediator, idxResponse);\n return Object.assign({\n idxResponse,\n messages\n }, nextStep && {\n nextStep\n });\n }\n}\nexport { canResendFn, canSkipFn, filterValuesForRemediation, getAvailableSteps, getEnabledFeatures, getFlowSpecification, getMessagesFromIdxRemediationValue, getMessagesFromResponse, getNextStep, getRemediator, handleFailedResponse, isTerminalResponse, setRemediatorsCtx };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { getRemediator, handleFailedResponse, isTerminalResponse, filterValuesForRemediation, getNextStep } from './util.js';\nfunction getActionFromValues(values, idxResponse) {\n return Object.keys(idxResponse.actions).find(action => !!values.resend && action.includes('-resend'));\n}\nfunction removeActionFromValues(values) {\n return Object.assign(Object.assign({}, values), {\n resend: undefined\n });\n}\nfunction removeActionFromOptions(options, actionName) {\n let actions = options.actions || [];\n actions = actions.filter(entry => {\n if (typeof entry === 'string') {\n return entry !== actionName;\n }\n return entry.name !== actionName;\n });\n return Object.assign(Object.assign({}, options), {\n actions\n });\n}\nasync function remediate(authClient, idxResponse, values, options) {\n let {\n neededToProceed,\n interactionCode\n } = idxResponse;\n const {\n flow\n } = options;\n if (interactionCode) {\n return {\n idxResponse\n };\n }\n const remediator = getRemediator(idxResponse, values, options);\n const actionFromValues = getActionFromValues(values, idxResponse);\n const actionFromOptions = options.actions || [];\n const actions = [...actionFromOptions, ...(actionFromValues && [actionFromValues] || [])];\n if (actions) {\n for (let action of actions) {\n let params = {};\n if (typeof action !== 'string') {\n params = action.params || {};\n action = action.name;\n }\n let valuesWithoutExecutedAction = removeActionFromValues(values);\n let optionsWithoutExecutedAction = removeActionFromOptions(options, action);\n if (typeof idxResponse.actions[action] === 'function') {\n idxResponse = await idxResponse.actions[action](params);\n if (idxResponse.requestDidSucceed === false) {\n return handleFailedResponse(authClient, idxResponse, options);\n }\n if (action === 'cancel') {\n return {\n idxResponse,\n canceled: true\n };\n }\n return remediate(authClient, idxResponse, valuesWithoutExecutedAction, optionsWithoutExecutedAction);\n }\n const remediationAction = neededToProceed.find(({\n name\n }) => name === action);\n if (remediationAction) {\n idxResponse = await idxResponse.proceed(action, params);\n if (idxResponse.requestDidSucceed === false) {\n return handleFailedResponse(authClient, idxResponse, options);\n }\n return remediate(authClient, idxResponse, values, optionsWithoutExecutedAction);\n }\n }\n }\n const terminal = isTerminalResponse(idxResponse);\n if (terminal) {\n return {\n idxResponse,\n terminal\n };\n }\n if (!remediator) {\n if (options.step) {\n values = filterValuesForRemediation(idxResponse, options.step, values);\n idxResponse = await idxResponse.proceed(options.step, values);\n if (idxResponse.requestDidSucceed === false) {\n return handleFailedResponse(authClient, idxResponse, options);\n }\n return {\n idxResponse\n };\n }\n if (flow === 'default') {\n return {\n idxResponse\n };\n }\n throw new AuthSdkError(`\n No remediation can match current flow, check policy settings in your org.\n Remediations: [${neededToProceed.reduce((acc, curr) => acc ? acc + ' ,' + curr.name : curr.name, '')}]\n `);\n }\n if (!remediator.canRemediate()) {\n const nextStep = getNextStep(authClient, remediator, idxResponse);\n return {\n idxResponse,\n nextStep\n };\n }\n const name = remediator.getName();\n const data = remediator.getData();\n idxResponse = await idxResponse.proceed(name, data);\n if (idxResponse.requestDidSucceed === false) {\n return handleFailedResponse(authClient, idxResponse, options);\n }\n values = remediator.getValuesAfterProceed();\n options = Object.assign(Object.assign({}, options), {\n step: undefined\n });\n if (options.useGenericRemediator && !idxResponse.interactionCode && !isTerminalResponse(idxResponse)) {\n const gr = getRemediator(idxResponse, values, options);\n const nextStep = getNextStep(authClient, gr, idxResponse);\n return {\n idxResponse,\n nextStep\n };\n }\n return remediate(authClient, idxResponse, values, options);\n}\nexport { remediate };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { interact } from './interact.js';\nimport { introspect } from './introspect.js';\nimport { remediate } from './remediate.js';\nimport { IdxStatus } from './types/api.js';\nimport { saveTransactionMeta, getSavedTransactionMeta } from './transactionMeta.js';\nimport { getFlowSpecification, getEnabledFeatures, getAvailableSteps, getMessagesFromResponse, isTerminalResponse } from './util.js';\nfunction initializeValues(options) {\n const knownOptions = ['flow', 'remediators', 'actions', 'withCredentials', 'step', 'useGenericRemediator', 'exchangeCodeForTokens'];\n const values = Object.assign({}, options);\n knownOptions.forEach(option => {\n delete values[option];\n });\n return values;\n}\nfunction initializeData(authClient, data) {\n var _a, _b, _c, _d;\n let {\n options\n } = data;\n options = Object.assign(Object.assign({}, authClient.options.idx), options);\n let {\n flow,\n withCredentials,\n remediators,\n actions\n } = options;\n const status = IdxStatus.PENDING;\n flow = flow || ((_b = (_a = authClient.idx).getFlow) === null || _b === void 0 ? void 0 : _b.call(_a)) || 'default';\n if (flow) {\n (_d = (_c = authClient.idx).setFlow) === null || _d === void 0 ? void 0 : _d.call(_c, flow);\n const flowSpec = getFlowSpecification(authClient, flow);\n withCredentials = typeof withCredentials !== 'undefined' ? withCredentials : flowSpec.withCredentials;\n remediators = remediators || flowSpec.remediators;\n actions = actions || flowSpec.actions;\n }\n return Object.assign(Object.assign({}, data), {\n options: Object.assign(Object.assign({}, options), {\n flow,\n withCredentials,\n remediators,\n actions\n }),\n status\n });\n}\nasync function getDataFromIntrospect(authClient, data) {\n const {\n options\n } = data;\n const {\n stateHandle,\n withCredentials,\n version,\n state,\n scopes,\n recoveryToken,\n activationToken,\n maxAge,\n acrValues,\n nonce,\n useGenericRemediator\n } = options;\n let idxResponse;\n let meta = getSavedTransactionMeta(authClient, {\n state,\n recoveryToken,\n activationToken\n });\n if (stateHandle) {\n idxResponse = await introspect(authClient, {\n withCredentials,\n version,\n stateHandle,\n useGenericRemediator\n });\n } else {\n let interactionHandle = meta === null || meta === void 0 ? void 0 : meta.interactionHandle;\n if (!interactionHandle) {\n authClient.transactionManager.clear();\n const interactResponse = await interact(authClient, {\n withCredentials,\n state,\n scopes,\n activationToken,\n recoveryToken,\n maxAge,\n acrValues,\n nonce\n });\n interactionHandle = interactResponse.interactionHandle;\n meta = interactResponse.meta;\n }\n idxResponse = await introspect(authClient, {\n withCredentials,\n version,\n interactionHandle,\n useGenericRemediator\n });\n }\n return Object.assign(Object.assign({}, data), {\n idxResponse,\n meta\n });\n}\nasync function getDataFromRemediate(authClient, data) {\n let {\n idxResponse,\n options,\n values\n } = data;\n const {\n autoRemediate,\n remediators,\n actions,\n flow,\n step,\n useGenericRemediator\n } = options;\n const shouldRemediate = autoRemediate !== false && (remediators || actions || step);\n if (!shouldRemediate) {\n return data;\n }\n values = Object.assign(Object.assign({}, values), {\n stateHandle: idxResponse.rawIdxState.stateHandle\n });\n const {\n idxResponse: idxResponseFromRemediation,\n nextStep,\n canceled\n } = await remediate(authClient, idxResponse, values, {\n remediators,\n actions,\n flow,\n step,\n useGenericRemediator\n });\n idxResponse = idxResponseFromRemediation;\n return Object.assign(Object.assign({}, data), {\n idxResponse,\n nextStep,\n canceled\n });\n}\nasync function getTokens(authClient, data) {\n let {\n meta,\n idxResponse\n } = data;\n const {\n interactionCode\n } = idxResponse;\n const {\n clientId,\n codeVerifier,\n ignoreSignature,\n redirectUri,\n urls,\n scopes\n } = meta;\n const tokenResponse = await authClient.token.exchangeCodeForTokens({\n interactionCode,\n clientId,\n codeVerifier,\n ignoreSignature,\n redirectUri,\n scopes\n }, urls);\n return tokenResponse.tokens;\n}\nasync function finalizeData(authClient, data) {\n let {\n options,\n idxResponse,\n canceled,\n status\n } = data;\n const {\n exchangeCodeForTokens\n } = options;\n let shouldSaveResponse = false;\n let shouldClearTransaction = false;\n let clearSharedStorage = true;\n let interactionCode;\n let tokens;\n let enabledFeatures;\n let availableSteps;\n let messages;\n let terminal;\n if (idxResponse) {\n shouldSaveResponse = !!(idxResponse.requestDidSucceed || idxResponse.stepUp);\n enabledFeatures = getEnabledFeatures(idxResponse);\n availableSteps = getAvailableSteps(authClient, idxResponse, options.useGenericRemediator);\n messages = getMessagesFromResponse(idxResponse, options);\n terminal = isTerminalResponse(idxResponse);\n }\n if (terminal) {\n status = IdxStatus.TERMINAL;\n const hasActions = Object.keys(idxResponse.actions).length > 0;\n const hasErrors = !!messages.find(msg => msg.class === 'ERROR');\n const isTerminalSuccess = !hasActions && !hasErrors && idxResponse.requestDidSucceed === true;\n if (isTerminalSuccess) {\n shouldClearTransaction = true;\n } else {\n shouldSaveResponse = !!hasActions;\n }\n clearSharedStorage = false;\n } else if (canceled) {\n status = IdxStatus.CANCELED;\n shouldClearTransaction = true;\n } else if (idxResponse === null || idxResponse === void 0 ? void 0 : idxResponse.interactionCode) {\n interactionCode = idxResponse.interactionCode;\n if (exchangeCodeForTokens === false) {\n status = IdxStatus.SUCCESS;\n shouldClearTransaction = false;\n } else {\n tokens = await getTokens(authClient, data);\n status = IdxStatus.SUCCESS;\n shouldClearTransaction = true;\n }\n }\n return Object.assign(Object.assign({}, data), {\n status,\n interactionCode,\n tokens,\n shouldSaveResponse,\n shouldClearTransaction,\n clearSharedStorage,\n enabledFeatures,\n availableSteps,\n messages,\n terminal\n });\n}\nasync function run(authClient, options = {}) {\n var _a;\n let data = {\n options,\n values: initializeValues(options)\n };\n data = initializeData(authClient, data);\n data = await getDataFromIntrospect(authClient, data);\n data = await getDataFromRemediate(authClient, data);\n data = await finalizeData(authClient, data);\n const {\n idxResponse,\n meta,\n shouldSaveResponse,\n shouldClearTransaction,\n clearSharedStorage,\n status,\n enabledFeatures,\n availableSteps,\n tokens,\n nextStep,\n messages,\n error,\n interactionCode\n } = data;\n if (shouldClearTransaction) {\n authClient.transactionManager.clear({\n clearSharedStorage\n });\n } else {\n saveTransactionMeta(authClient, Object.assign({}, meta));\n if (shouldSaveResponse) {\n const {\n rawIdxState: rawIdxResponse,\n requestDidSucceed\n } = idxResponse;\n authClient.transactionManager.saveIdxResponse({\n rawIdxResponse,\n requestDidSucceed,\n stateHandle: (_a = idxResponse.context) === null || _a === void 0 ? void 0 : _a.stateHandle,\n interactionHandle: meta === null || meta === void 0 ? void 0 : meta.interactionHandle\n });\n }\n }\n const {\n actions,\n context,\n neededToProceed,\n proceed,\n rawIdxState,\n requestDidSucceed,\n stepUp\n } = idxResponse || {};\n return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({\n status: status\n }, meta && {\n meta\n }), enabledFeatures && {\n enabledFeatures\n }), availableSteps && {\n availableSteps\n }), tokens && {\n tokens\n }), nextStep && {\n nextStep\n }), messages && messages.length && {\n messages\n }), error && {\n error\n }), stepUp && {\n stepUp\n }), {\n interactionCode,\n actions: actions,\n context: context,\n neededToProceed: neededToProceed,\n proceed: proceed,\n rawIdxState: rawIdxState,\n requestDidSucceed\n });\n}\nexport { run };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { AuthenticatorKey } from './types/api.js';\nimport { run } from './run.js';\nasync function authenticate(authClient, options = {}) {\n if (options.password && !options.authenticator) {\n options.authenticator = AuthenticatorKey.OKTA_PASSWORD;\n }\n return run(authClient, Object.assign(Object.assign({}, options), {\n flow: 'authenticate'\n }));\n}\nexport { authenticate };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nclass Authenticator {\n constructor(authenticator) {\n this.meta = authenticator;\n }\n}\nexport { Authenticator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Authenticator } from './Authenticator.js';\nclass VerificationCodeAuthenticator extends Authenticator {\n canVerify(values) {\n return !!(values.credentials || values.verificationCode || values.otp);\n }\n mapCredentials(values) {\n const {\n credentials,\n verificationCode,\n otp\n } = values;\n if (!credentials && !verificationCode && !otp) {\n return;\n }\n return credentials || {\n passcode: verificationCode || otp\n };\n }\n getInputs(idxRemediationValue) {\n var _a;\n return Object.assign(Object.assign({}, (_a = idxRemediationValue.form) === null || _a === void 0 ? void 0 : _a.value[0]), {\n name: 'verificationCode',\n type: 'string',\n required: idxRemediationValue.required\n });\n }\n}\nexport { VerificationCodeAuthenticator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { VerificationCodeAuthenticator } from './VerificationCodeAuthenticator.js';\nclass OktaVerifyTotp extends VerificationCodeAuthenticator {\n mapCredentials(values) {\n const {\n verificationCode\n } = values;\n if (!verificationCode) {\n return;\n }\n return {\n totp: verificationCode\n };\n }\n}\nexport { OktaVerifyTotp };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Authenticator } from './Authenticator.js';\nclass OktaPassword extends Authenticator {\n canVerify(values) {\n return !!(values.credentials || values.password || values.passcode);\n }\n mapCredentials(values) {\n const {\n credentials,\n password,\n passcode,\n revokeSessions\n } = values;\n if (!credentials && !password && !passcode) {\n return;\n }\n return credentials || {\n passcode: passcode || password,\n revokeSessions\n };\n }\n getInputs(idxRemediationValue) {\n var _a, _b;\n const inputs = [Object.assign(Object.assign({}, (_a = idxRemediationValue.form) === null || _a === void 0 ? void 0 : _a.value[0]), {\n name: 'password',\n type: 'string',\n required: idxRemediationValue.required\n })];\n const revokeSessions = (_b = idxRemediationValue.form) === null || _b === void 0 ? void 0 : _b.value.find(input => input.name === 'revokeSessions');\n if (revokeSessions) {\n inputs.push({\n name: 'revokeSessions',\n type: 'boolean',\n label: 'Sign me out of all other devices',\n required: false\n });\n }\n return inputs;\n }\n}\nexport { OktaPassword };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Authenticator } from './Authenticator.js';\nclass SecurityQuestionEnrollment extends Authenticator {\n canVerify(values) {\n const {\n credentials\n } = values;\n if (credentials && credentials.questionKey && credentials.answer) {\n return true;\n }\n const {\n questionKey,\n question,\n answer\n } = values;\n return !!(questionKey && answer) || !!(question && answer);\n }\n mapCredentials(values) {\n const {\n questionKey,\n question,\n answer\n } = values;\n if (!answer || !questionKey && !question) {\n return;\n }\n return {\n questionKey: question ? 'custom' : questionKey,\n question,\n answer\n };\n }\n getInputs() {\n return [{\n name: 'questionKey',\n type: 'string',\n required: true\n }, {\n name: 'question',\n type: 'string',\n label: 'Create a security question'\n }, {\n name: 'answer',\n type: 'string',\n label: 'Answer',\n required: true\n }];\n }\n}\nexport { SecurityQuestionEnrollment };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Authenticator } from './Authenticator.js';\nclass SecurityQuestionVerification extends Authenticator {\n canVerify(values) {\n const {\n credentials\n } = values;\n if (credentials && credentials.answer) {\n return true;\n }\n const {\n answer\n } = values;\n return !!answer;\n }\n mapCredentials(values) {\n const {\n answer\n } = values;\n if (!answer) {\n return;\n }\n return {\n questionKey: this.meta.contextualData.enrolledQuestion.questionKey,\n answer\n };\n }\n getInputs() {\n return [{\n name: 'answer',\n type: 'string',\n label: 'Answer',\n required: true\n }];\n }\n}\nexport { SecurityQuestionVerification };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Authenticator } from './Authenticator.js';\nclass WebauthnEnrollment extends Authenticator {\n canVerify(values) {\n const {\n credentials\n } = values;\n const obj = credentials || values;\n const {\n clientData,\n attestation\n } = obj;\n return !!(clientData && attestation);\n }\n mapCredentials(values) {\n const {\n credentials,\n clientData,\n attestation\n } = values;\n if (!credentials && !clientData && !attestation) {\n return;\n }\n return credentials || {\n clientData,\n attestation\n };\n }\n getInputs() {\n return [{\n name: 'clientData',\n type: 'string',\n required: true,\n visible: false,\n label: 'Client Data'\n }, {\n name: 'attestation',\n type: 'string',\n required: true,\n visible: false,\n label: 'Attestation'\n }];\n }\n}\nexport { WebauthnEnrollment };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Authenticator } from './Authenticator.js';\nclass WebauthnVerification extends Authenticator {\n canVerify(values) {\n const {\n credentials\n } = values;\n const obj = credentials || values;\n const {\n clientData,\n authenticatorData,\n signatureData\n } = obj;\n return !!(clientData && authenticatorData && signatureData);\n }\n mapCredentials(values) {\n const {\n credentials,\n authenticatorData,\n clientData,\n signatureData\n } = values;\n if (!credentials && !authenticatorData && !clientData && !signatureData) {\n return;\n }\n return credentials || {\n authenticatorData,\n clientData,\n signatureData\n };\n }\n getInputs() {\n return [{\n name: 'authenticatorData',\n type: 'string',\n label: 'Authenticator Data',\n required: true,\n visible: false\n }, {\n name: 'clientData',\n type: 'string',\n label: 'Client Data',\n required: true,\n visible: false\n }, {\n name: 'signatureData',\n type: 'string',\n label: 'Signature Data',\n required: true,\n visible: false\n }];\n }\n}\nexport { WebauthnVerification };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { OktaVerifyTotp } from './OktaVerifyTotp.js';\nimport { VerificationCodeAuthenticator } from './VerificationCodeAuthenticator.js';\nimport { OktaPassword } from './OktaPassword.js';\nimport { SecurityQuestionEnrollment } from './SecurityQuestionEnrollment.js';\nimport { SecurityQuestionVerification } from './SecurityQuestionVerification.js';\nimport { WebauthnEnrollment } from './WebauthnEnrollment.js';\nimport { WebauthnVerification } from './WebauthnVerification.js';\nimport { AuthenticatorKey } from '../types/api.js';\nfunction getAuthenticator(remediation) {\n var _a, _b;\n const relatesTo = remediation.relatesTo;\n const value = (relatesTo === null || relatesTo === void 0 ? void 0 : relatesTo.value) || {};\n switch (value.key) {\n case AuthenticatorKey.OKTA_PASSWORD:\n return new OktaPassword(value);\n case AuthenticatorKey.SECURITY_QUESTION:\n if ((_a = value.contextualData) === null || _a === void 0 ? void 0 : _a.enrolledQuestion) {\n return new SecurityQuestionVerification(value);\n } else {\n return new SecurityQuestionEnrollment(value);\n }\n case AuthenticatorKey.OKTA_VERIFY:\n return new OktaVerifyTotp(value);\n case AuthenticatorKey.WEBAUTHN:\n if ((_b = value.contextualData) === null || _b === void 0 ? void 0 : _b.challengeData) {\n return new WebauthnVerification(value);\n } else {\n return new WebauthnEnrollment(value);\n }\n default:\n return new VerificationCodeAuthenticator(value);\n }\n}\nexport { getAuthenticator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Remediator } from './Remediator.js';\nimport { getAuthenticator } from '../../authenticator/getAuthenticator.js';\nclass VerifyAuthenticator extends Remediator {\n constructor(remediation, values = {}) {\n super(remediation, values);\n this.authenticator = getAuthenticator(remediation);\n }\n getNextStep(authClient, context) {\n var _a;\n const nextStep = super.getNextStep(authClient, context);\n const authenticatorEnrollments = (_a = context === null || context === void 0 ? void 0 : context.authenticatorEnrollments) === null || _a === void 0 ? void 0 : _a.value;\n return Object.assign(Object.assign({}, nextStep), {\n authenticatorEnrollments\n });\n }\n canRemediate() {\n return this.authenticator.canVerify(this.values);\n }\n mapCredentials() {\n return this.authenticator.mapCredentials(this.values);\n }\n getInputCredentials(input) {\n return this.authenticator.getInputs(input);\n }\n getValuesAfterProceed() {\n this.values = super.getValuesAfterProceed();\n let trimmedValues = Object.keys(this.values).filter(valueKey => valueKey !== 'credentials');\n return trimmedValues.reduce((values, valueKey) => Object.assign(Object.assign({}, values), {\n [valueKey]: this.values[valueKey]\n }), {});\n }\n}\nexport { VerifyAuthenticator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { VerifyAuthenticator } from './Base/VerifyAuthenticator.js';\nlet EnrollAuthenticator = /*#__PURE__*/(() => {\n class EnrollAuthenticator extends VerifyAuthenticator {}\n EnrollAuthenticator.remediationName = 'enroll-authenticator';\n return EnrollAuthenticator;\n})();\nexport { EnrollAuthenticator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Remediator } from './Base/Remediator.js';\nlet EnrollPoll = /*#__PURE__*/(() => {\n class EnrollPoll extends Remediator {\n canRemediate() {\n return !!this.values.startPolling || this.options.step === 'enroll-poll';\n }\n getNextStep(authClient, context) {\n const common = super.getNextStep(authClient, context);\n let authenticator = this.getAuthenticator();\n if (!authenticator && (context === null || context === void 0 ? void 0 : context.currentAuthenticator)) {\n authenticator = context.currentAuthenticator.value;\n }\n return Object.assign(Object.assign({}, common), {\n authenticator,\n poll: {\n required: true,\n refresh: this.remediation.refresh\n }\n });\n }\n getValuesAfterProceed() {\n let trimmedValues = Object.keys(this.values).filter(valueKey => valueKey !== 'startPolling');\n return trimmedValues.reduce((values, valueKey) => Object.assign(Object.assign({}, values), {\n [valueKey]: this.values[valueKey]\n }), {});\n }\n }\n EnrollPoll.remediationName = 'enroll-poll';\n return EnrollPoll;\n})();\nexport { EnrollPoll };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Remediator } from './Base/Remediator.js';\nlet SelectEnrollmentChannel = /*#__PURE__*/(() => {\n class SelectEnrollmentChannel extends Remediator {\n canRemediate() {\n if (this.values.channel) {\n return true;\n }\n if (this.values.authenticator) {\n const {\n id,\n channel\n } = this.values.authenticator;\n if (!!id && !!channel) {\n return true;\n }\n }\n return false;\n }\n getNextStep(authClient, context) {\n const common = super.getNextStep(authClient, context);\n const authenticator = context.currentAuthenticator.value;\n return Object.assign(Object.assign({}, common), {\n authenticator\n });\n }\n getData() {\n var _a;\n const remediationValue = this.remediation.value[0].value;\n return {\n authenticator: {\n id: remediationValue.form.value[0].value,\n channel: ((_a = this.values.authenticator) === null || _a === void 0 ? void 0 : _a.channel) || this.values.channel\n },\n stateHandle: this.values.stateHandle\n };\n }\n getValuesAfterProceed() {\n this.values = super.getValuesAfterProceed();\n delete this.values.authenticators;\n const filterKey = this.values.channel ? 'channel' : 'authenticator';\n let trimmedValues = Object.keys(this.values).filter(valueKey => valueKey !== filterKey);\n return trimmedValues.reduce((values, valueKey) => Object.assign(Object.assign({}, values), {\n [valueKey]: this.values[valueKey]\n }), {});\n }\n }\n SelectEnrollmentChannel.remediationName = 'select-enrollment-channel';\n return SelectEnrollmentChannel;\n})();\nexport { SelectEnrollmentChannel };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Remediator } from './Base/Remediator.js';\nlet EnrollmentChannelData = /*#__PURE__*/(() => {\n class EnrollmentChannelData extends Remediator {\n getInputEmail() {\n return [{\n name: 'email',\n type: 'string',\n required: true,\n label: 'Email'\n }];\n }\n getInputPhoneNumber() {\n return [{\n name: 'phoneNumber',\n type: 'string',\n required: true,\n label: 'Phone Number'\n }];\n }\n canRemediate() {\n return Boolean(this.values.email || this.values.phoneNumber);\n }\n getNextStep(authClient, context) {\n const common = super.getNextStep(authClient, context);\n const authenticator = context.currentAuthenticator.value;\n return Object.assign(Object.assign({}, common), {\n authenticator\n });\n }\n getData() {\n return {\n stateHandle: this.values.stateHandle,\n email: this.values.email,\n phoneNumber: this.values.phoneNumber\n };\n }\n getValuesAfterProceed() {\n let trimmedValues = Object.keys(this.values).filter(valueKey => !['email', 'phoneNumber'].includes(valueKey));\n return trimmedValues.reduce((values, valueKey) => Object.assign(Object.assign({}, values), {\n [valueKey]: this.values[valueKey]\n }), {});\n }\n }\n EnrollmentChannelData.remediationName = 'enrollment-channel-data';\n return EnrollmentChannelData;\n})();\nexport { EnrollmentChannelData };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { VerifyAuthenticator } from './Base/VerifyAuthenticator.js';\nlet ChallengeAuthenticator = /*#__PURE__*/(() => {\n class ChallengeAuthenticator extends VerifyAuthenticator {}\n ChallengeAuthenticator.remediationName = 'challenge-authenticator';\n return ChallengeAuthenticator;\n})();\nexport { ChallengeAuthenticator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { EnrollPoll } from './EnrollPoll.js';\nlet ChallengePoll = /*#__PURE__*/(() => {\n class ChallengePoll extends EnrollPoll {\n canRemediate() {\n return !!this.values.startPolling || this.options.step === 'challenge-poll';\n }\n }\n ChallengePoll.remediationName = 'challenge-poll';\n return ChallengePoll;\n})();\nexport { ChallengePoll };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { VerifyAuthenticator } from './Base/VerifyAuthenticator.js';\nlet ResetAuthenticator = /*#__PURE__*/(() => {\n class ResetAuthenticator extends VerifyAuthenticator {}\n ResetAuthenticator.remediationName = 'reset-authenticator';\n return ResetAuthenticator;\n})();\nexport { ResetAuthenticator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Remediator } from './Base/Remediator.js';\nimport { OktaPassword } from '../authenticator/OktaPassword.js';\nimport '../types/api.js';\nlet EnrollProfile = /*#__PURE__*/(() => {\n class EnrollProfile extends Remediator {\n constructor(remediation, values = {}, options = {}) {\n super(remediation, values, options);\n this.authenticator = null;\n const credentials = this.getCredentialsFromRemediation();\n if (credentials) {\n this.authenticator = this.authenticator = new OktaPassword({});\n }\n }\n canRemediate() {\n if (this.authenticator && !this.authenticator.canVerify(this.values)) {\n return false;\n }\n const userProfileFromValues = this.getData().userProfile;\n if (!userProfileFromValues) {\n return false;\n }\n const userProfileFromRemediation = this.remediation.value.find(({\n name\n }) => name === 'userProfile');\n return userProfileFromRemediation.form.value.reduce((canRemediate, curr) => {\n if (curr.required) {\n canRemediate = canRemediate && !!userProfileFromValues[curr.name];\n }\n return canRemediate;\n }, true);\n }\n getCredentialsFromRemediation() {\n return this.remediation.value.find(({\n name\n }) => name === 'credentials');\n }\n mapUserProfile({\n form: {\n value: profileAttributes\n }\n }) {\n const attributeNames = profileAttributes.map(({\n name\n }) => name);\n const data = attributeNames.reduce((attributeValues, attributeName) => this.values[attributeName] ? Object.assign(Object.assign({}, attributeValues), {\n [attributeName]: this.values[attributeName]\n }) : attributeValues, {});\n if (Object.keys(data).length === 0) {\n return;\n }\n return data;\n }\n mapCredentials() {\n const val = this.authenticator && this.authenticator.mapCredentials(this.values);\n if (!val) {\n return;\n }\n return val;\n }\n getInputUserProfile(input) {\n return [...input.form.value];\n }\n getInputCredentials(input) {\n return [...input.form.value];\n }\n getErrorMessages(errorRemediation) {\n return errorRemediation.value[0].form.value.reduce((errors, field) => {\n if (field.messages) {\n errors.push(field.messages.value[0].message);\n }\n return errors;\n }, []);\n }\n }\n EnrollProfile.remediationName = 'enroll-profile';\n return EnrollProfile;\n})();\nexport { EnrollProfile };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Remediator } from './Base/Remediator.js';\nlet Identify = /*#__PURE__*/(() => {\n class Identify extends Remediator {\n constructor() {\n super(...arguments);\n this.map = {\n 'identifier': ['username']\n };\n }\n canRemediate() {\n const {\n identifier\n } = this.getData();\n return !!identifier;\n }\n mapCredentials() {\n const {\n credentials,\n password\n } = this.values;\n if (!credentials && !password) {\n return;\n }\n return credentials || {\n passcode: password\n };\n }\n getInputCredentials(input) {\n return Object.assign(Object.assign({}, input.form.value[0]), {\n name: 'password',\n required: input.required\n });\n }\n }\n Identify.remediationName = 'identify';\n return Identify;\n})();\nexport { Identify };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Remediator } from './Base/Remediator.js';\nlet ReEnrollAuthenticator = /*#__PURE__*/(() => {\n class ReEnrollAuthenticator extends Remediator {\n mapCredentials() {\n const {\n newPassword\n } = this.values;\n if (!newPassword) {\n return;\n }\n return {\n passcode: newPassword\n };\n }\n getInputCredentials(input) {\n const challengeType = this.getAuthenticator().type;\n const name = challengeType === 'password' ? 'newPassword' : 'verificationCode';\n return Object.assign(Object.assign({}, input.form.value[0]), {\n name\n });\n }\n }\n ReEnrollAuthenticator.remediationName = 'reenroll-authenticator';\n return ReEnrollAuthenticator;\n})();\nexport { ReEnrollAuthenticator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { ReEnrollAuthenticator } from './ReEnrollAuthenticator.js';\nlet ReEnrollAuthenticatorWarning = /*#__PURE__*/(() => {\n class ReEnrollAuthenticatorWarning extends ReEnrollAuthenticator {}\n ReEnrollAuthenticatorWarning.remediationName = 'reenroll-authenticator-warning';\n return ReEnrollAuthenticatorWarning;\n})();\nexport { ReEnrollAuthenticatorWarning };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Remediator } from './Base/Remediator.js';\nlet RedirectIdp = /*#__PURE__*/(() => {\n class RedirectIdp extends Remediator {\n canRemediate() {\n return false;\n }\n getNextStep() {\n const {\n name,\n type,\n idp,\n href\n } = this.remediation;\n return {\n name,\n type,\n idp,\n href\n };\n }\n }\n RedirectIdp.remediationName = 'redirect-idp';\n return RedirectIdp;\n})();\nexport { RedirectIdp };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Remediator } from './Remediator.js';\nimport { getAuthenticatorFromRemediation } from '../util.js';\nimport { isAuthenticator } from '../../types/api.js';\nimport { findMatchedOption, compareAuthenticators } from '../../authenticator/util.js';\nclass SelectAuthenticator extends Remediator {\n findMatchedOption(authenticators, options) {\n let option;\n for (let authenticator of authenticators) {\n option = options.find(({\n relatesTo\n }) => relatesTo.key && relatesTo.key === authenticator.key);\n if (option) {\n break;\n }\n }\n return option;\n }\n canRemediate(context) {\n var _a, _b;\n const {\n authenticators,\n authenticator\n } = this.values;\n const authenticatorFromRemediation = getAuthenticatorFromRemediation(this.remediation);\n const {\n options\n } = authenticatorFromRemediation;\n if (!authenticators || !authenticators.length) {\n return false;\n }\n if (isAuthenticator(authenticator) && authenticator.id) {\n return true;\n }\n const matchedOption = this.findMatchedOption(authenticators, options);\n if (matchedOption) {\n const isCurrentAuthenticator = (context === null || context === void 0 ? void 0 : context.currentAuthenticator) && (context === null || context === void 0 ? void 0 : context.currentAuthenticator.value.id) === ((_a = matchedOption.relatesTo) === null || _a === void 0 ? void 0 : _a.id);\n const isCurrentAuthenticatorEnrollment = (context === null || context === void 0 ? void 0 : context.currentAuthenticatorEnrollment) && (context === null || context === void 0 ? void 0 : context.currentAuthenticatorEnrollment.value.id) === ((_b = matchedOption.relatesTo) === null || _b === void 0 ? void 0 : _b.id);\n return !isCurrentAuthenticator && !isCurrentAuthenticatorEnrollment;\n }\n return false;\n }\n mapAuthenticator(remediationValue) {\n const {\n authenticators,\n authenticator\n } = this.values;\n if (isAuthenticator(authenticator) && authenticator.id) {\n this.selectedAuthenticator = authenticator;\n return authenticator;\n }\n const {\n options\n } = remediationValue;\n const selectedOption = findMatchedOption(authenticators, options);\n this.selectedAuthenticator = selectedOption.relatesTo;\n this.selectedOption = selectedOption;\n return {\n id: selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value.form.value.find(({\n name\n }) => name === 'id').value\n };\n }\n getInputAuthenticator(remediation) {\n const options = remediation.options.map(({\n label,\n relatesTo\n }) => {\n return {\n label,\n value: relatesTo.key\n };\n });\n return {\n name: 'authenticator',\n type: 'string',\n options\n };\n }\n getValuesAfterProceed() {\n this.values = super.getValuesAfterProceed();\n const authenticators = this.values.authenticators.filter(authenticator => {\n return compareAuthenticators(authenticator, this.selectedAuthenticator) !== true;\n });\n return Object.assign(Object.assign({}, this.values), {\n authenticators\n });\n }\n}\nexport { SelectAuthenticator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { SelectAuthenticator } from './Base/SelectAuthenticator.js';\nimport { getAuthenticatorFromRemediation } from './util.js';\nimport { AuthenticatorKey } from '../types/api.js';\nlet SelectAuthenticatorAuthenticate = /*#__PURE__*/(() => {\n class SelectAuthenticatorAuthenticate extends SelectAuthenticator {\n constructor(remediation, values = {}, options = {}) {\n var _a;\n super(remediation, values, options);\n const isRecoveryFlow = this.options.flow === 'recoverPassword';\n const hasPasswordInOptions = (_a = getAuthenticatorFromRemediation(remediation).options) === null || _a === void 0 ? void 0 : _a.some(({\n relatesTo\n }) => (relatesTo === null || relatesTo === void 0 ? void 0 : relatesTo.key) === AuthenticatorKey.OKTA_PASSWORD);\n if (hasPasswordInOptions && (isRecoveryFlow || this.values.password)) {\n this.values.authenticators = [...(this.values.authenticators || []), {\n key: AuthenticatorKey.OKTA_PASSWORD\n }];\n }\n }\n }\n SelectAuthenticatorAuthenticate.remediationName = 'select-authenticator-authenticate';\n return SelectAuthenticatorAuthenticate;\n})();\nexport { SelectAuthenticatorAuthenticate };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { SelectAuthenticator } from './Base/SelectAuthenticator.js';\nlet SelectAuthenticatorEnroll = /*#__PURE__*/(() => {\n class SelectAuthenticatorEnroll extends SelectAuthenticator {}\n SelectAuthenticatorEnroll.remediationName = 'select-authenticator-enroll';\n return SelectAuthenticatorEnroll;\n})();\nexport { SelectAuthenticatorEnroll };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { SelectAuthenticator } from './Base/SelectAuthenticator.js';\nlet SelectAuthenticatorUnlockAccount = /*#__PURE__*/(() => {\n class SelectAuthenticatorUnlockAccount extends SelectAuthenticator {\n constructor() {\n super(...arguments);\n this.map = {\n identifier: ['username']\n };\n }\n canRemediate() {\n const identifier = this.getData('identifier');\n return !!identifier && super.canRemediate();\n }\n mapAuthenticator(remediationValue) {\n var _a, _b, _c;\n const authenticatorMap = super.mapAuthenticator(remediationValue);\n const methodTypeOption = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value.form.value.find(({\n name\n }) => name === 'methodType');\n const methodTypeValue = this.values.methodType || (methodTypeOption === null || methodTypeOption === void 0 ? void 0 : methodTypeOption.value) || ((_c = (_b = methodTypeOption === null || methodTypeOption === void 0 ? void 0 : methodTypeOption.options) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.value);\n if (methodTypeValue) {\n return Object.assign(Object.assign({}, authenticatorMap), {\n methodType: methodTypeValue\n });\n }\n return authenticatorMap;\n }\n getInputUsername() {\n return {\n name: 'username',\n type: 'string'\n };\n }\n }\n SelectAuthenticatorUnlockAccount.remediationName = 'select-authenticator-unlock-account';\n return SelectAuthenticatorUnlockAccount;\n})();\nexport { SelectAuthenticatorUnlockAccount };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Remediator } from './Base/Remediator.js';\nlet SelectEnrollProfile = /*#__PURE__*/(() => {\n class SelectEnrollProfile extends Remediator {\n canRemediate() {\n return true;\n }\n }\n SelectEnrollProfile.remediationName = 'select-enroll-profile';\n return SelectEnrollProfile;\n})();\nexport { SelectEnrollProfile };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Remediator } from './Remediator.js';\nimport { isAuthenticator } from '../../types/api.js';\nimport { compareAuthenticators } from '../../authenticator/util.js';\nclass AuthenticatorData extends Remediator {\n constructor(remediation, values = {}) {\n super(remediation, values);\n this.authenticator = this.getAuthenticator();\n this.formatAuthenticatorData();\n }\n formatAuthenticatorData() {\n const authenticatorData = this.getAuthenticatorData();\n if (authenticatorData) {\n this.values.authenticatorsData = this.values.authenticatorsData.map(data => {\n if (compareAuthenticators(this.authenticator, data)) {\n return this.mapAuthenticatorDataFromValues(data);\n }\n return data;\n });\n } else {\n const data = this.mapAuthenticatorDataFromValues();\n if (data) {\n this.values.authenticatorsData.push(data);\n }\n }\n }\n getAuthenticatorData() {\n return this.values.authenticatorsData.find(data => compareAuthenticators(this.authenticator, data));\n }\n canRemediate() {\n return this.values.authenticatorsData.some(data => compareAuthenticators(this.authenticator, data));\n }\n mapAuthenticatorDataFromValues(authenticatorData) {\n let {\n methodType,\n authenticator\n } = this.values;\n if (!methodType && isAuthenticator(authenticator)) {\n methodType = authenticator === null || authenticator === void 0 ? void 0 : authenticator.methodType;\n }\n const {\n id,\n enrollmentId\n } = this.authenticator;\n const data = Object.assign(Object.assign({\n id,\n enrollmentId\n }, authenticatorData && authenticatorData), methodType && {\n methodType\n });\n return data.methodType ? data : null;\n }\n getAuthenticatorFromRemediation() {\n const authenticator = this.remediation.value.find(({\n name\n }) => name === 'authenticator');\n return authenticator;\n }\n getValuesAfterProceed() {\n this.values = super.getValuesAfterProceed();\n const authenticatorsData = this.values.authenticatorsData.filter(data => compareAuthenticators(this.authenticator, data) !== true);\n return Object.assign(Object.assign({}, this.values), {\n authenticatorsData\n });\n }\n}\nexport { AuthenticatorData };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { AuthenticatorData } from './Base/AuthenticatorData.js';\nlet AuthenticatorVerificationData = /*#__PURE__*/(() => {\n class AuthenticatorVerificationData extends AuthenticatorData {\n mapAuthenticator() {\n return this.getAuthenticatorData();\n }\n getInputAuthenticator() {\n const authenticator = this.getAuthenticatorFromRemediation();\n const methodType = authenticator.form.value.find(({\n name\n }) => name === 'methodType');\n if (methodType && methodType.options) {\n return {\n name: 'methodType',\n type: 'string',\n required: true,\n options: methodType.options\n };\n }\n const inputs = [...authenticator.form.value];\n return inputs;\n }\n getValuesAfterProceed() {\n this.values = super.getValuesAfterProceed();\n let trimmedValues = Object.keys(this.values).filter(valueKey => valueKey !== 'authenticator');\n return trimmedValues.reduce((values, valueKey) => Object.assign(Object.assign({}, values), {\n [valueKey]: this.values[valueKey]\n }), {});\n }\n }\n AuthenticatorVerificationData.remediationName = 'authenticator-verification-data';\n return AuthenticatorVerificationData;\n})();\nexport { AuthenticatorVerificationData };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { AuthenticatorData } from './Base/AuthenticatorData.js';\nimport { getAuthenticatorFromRemediation } from './util.js';\nlet AuthenticatorEnrollmentData = /*#__PURE__*/(() => {\n class AuthenticatorEnrollmentData extends AuthenticatorData {\n mapAuthenticator() {\n const authenticatorData = this.getAuthenticatorData();\n const authenticatorFromRemediation = getAuthenticatorFromRemediation(this.remediation);\n return {\n id: authenticatorFromRemediation.form.value.find(({\n name\n }) => name === 'id').value,\n methodType: authenticatorData.methodType,\n phoneNumber: authenticatorData.phoneNumber\n };\n }\n getInputAuthenticator(remediation) {\n return [{\n name: 'methodType',\n type: 'string'\n }, {\n name: 'phoneNumber',\n label: 'Phone Number',\n type: 'string'\n }].map(item => {\n const value = remediation.form.value.find(val => val.name === item.name);\n return Object.assign(Object.assign({}, value), item);\n });\n }\n mapAuthenticatorDataFromValues(data) {\n data = super.mapAuthenticatorDataFromValues(data);\n const {\n phoneNumber\n } = this.values;\n if (!data && !phoneNumber) {\n return;\n }\n return Object.assign(Object.assign({}, data && data), phoneNumber && {\n phoneNumber\n });\n }\n }\n AuthenticatorEnrollmentData.remediationName = 'authenticator-enrollment-data';\n return AuthenticatorEnrollmentData;\n})();\nexport { AuthenticatorEnrollmentData };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Remediator } from './Base/Remediator.js';\nlet Skip = /*#__PURE__*/(() => {\n class Skip extends Remediator {\n canRemediate() {\n return !!this.values.skip || this.options.step === 'skip';\n }\n }\n Skip.remediationName = 'skip';\n return Skip;\n})();\nexport { Skip };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport '../types/api.js';\nimport { EnrollAuthenticator } from '../remediators/EnrollAuthenticator.js';\nimport { EnrollPoll } from '../remediators/EnrollPoll.js';\nimport { SelectEnrollmentChannel } from '../remediators/SelectEnrollmentChannel.js';\nimport { EnrollmentChannelData } from '../remediators/EnrollmentChannelData.js';\nimport { ChallengeAuthenticator } from '../remediators/ChallengeAuthenticator.js';\nimport { ChallengePoll } from '../remediators/ChallengePoll.js';\nimport '../remediators/ResetAuthenticator.js';\nimport '../remediators/EnrollProfile.js';\nimport { Identify } from '../remediators/Identify.js';\nimport { ReEnrollAuthenticator } from '../remediators/ReEnrollAuthenticator.js';\nimport { ReEnrollAuthenticatorWarning } from '../remediators/ReEnrollAuthenticatorWarning.js';\nimport { RedirectIdp } from '../remediators/RedirectIdp.js';\nimport { SelectAuthenticatorAuthenticate } from '../remediators/SelectAuthenticatorAuthenticate.js';\nimport { SelectAuthenticatorEnroll } from '../remediators/SelectAuthenticatorEnroll.js';\nimport '../remediators/SelectAuthenticatorUnlockAccount.js';\nimport '../remediators/SelectEnrollProfile.js';\nimport { AuthenticatorVerificationData } from '../remediators/AuthenticatorVerificationData.js';\nimport { AuthenticatorEnrollmentData } from '../remediators/AuthenticatorEnrollmentData.js';\nimport { Skip } from '../remediators/Skip.js';\nimport '../../errors/WWWAuthError.js';\nconst AuthenticationFlow = {\n 'identify': Identify,\n 'select-authenticator-authenticate': SelectAuthenticatorAuthenticate,\n 'select-authenticator-enroll': SelectAuthenticatorEnroll,\n 'authenticator-enrollment-data': AuthenticatorEnrollmentData,\n 'authenticator-verification-data': AuthenticatorVerificationData,\n 'enroll-authenticator': EnrollAuthenticator,\n 'challenge-authenticator': ChallengeAuthenticator,\n 'challenge-poll': ChallengePoll,\n 'reenroll-authenticator': ReEnrollAuthenticator,\n 'reenroll-authenticator-warning': ReEnrollAuthenticatorWarning,\n 'enroll-poll': EnrollPoll,\n 'select-enrollment-channel': SelectEnrollmentChannel,\n 'enrollment-channel-data': EnrollmentChannelData,\n 'redirect-idp': RedirectIdp,\n 'skip': Skip\n};\nexport { AuthenticationFlow };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport '../types/api.js';\nimport '../remediators/EnrollAuthenticator.js';\nimport { EnrollPoll } from '../remediators/EnrollPoll.js';\nimport '../remediators/SelectEnrollmentChannel.js';\nimport '../remediators/EnrollmentChannelData.js';\nimport { ChallengeAuthenticator } from '../remediators/ChallengeAuthenticator.js';\nimport '../remediators/ChallengePoll.js';\nimport { ResetAuthenticator } from '../remediators/ResetAuthenticator.js';\nimport '../remediators/EnrollProfile.js';\nimport { Identify } from '../remediators/Identify.js';\nimport { ReEnrollAuthenticator } from '../remediators/ReEnrollAuthenticator.js';\nimport { ReEnrollAuthenticatorWarning } from '../remediators/ReEnrollAuthenticatorWarning.js';\nimport '../remediators/RedirectIdp.js';\nimport { SelectAuthenticatorAuthenticate } from '../remediators/SelectAuthenticatorAuthenticate.js';\nimport { SelectAuthenticatorEnroll } from '../remediators/SelectAuthenticatorEnroll.js';\nimport '../remediators/SelectAuthenticatorUnlockAccount.js';\nimport '../remediators/SelectEnrollProfile.js';\nimport { AuthenticatorVerificationData } from '../remediators/AuthenticatorVerificationData.js';\nimport { AuthenticatorEnrollmentData } from '../remediators/AuthenticatorEnrollmentData.js';\nimport '../remediators/Skip.js';\nimport '../../errors/WWWAuthError.js';\nconst PasswordRecoveryFlow = {\n 'identify': Identify,\n 'identify-recovery': Identify,\n 'select-authenticator-authenticate': SelectAuthenticatorAuthenticate,\n 'select-authenticator-enroll': SelectAuthenticatorEnroll,\n 'challenge-authenticator': ChallengeAuthenticator,\n 'authenticator-verification-data': AuthenticatorVerificationData,\n 'authenticator-enrollment-data': AuthenticatorEnrollmentData,\n 'reset-authenticator': ResetAuthenticator,\n 'reenroll-authenticator': ReEnrollAuthenticator,\n 'reenroll-authenticator-warning': ReEnrollAuthenticatorWarning,\n 'enroll-poll': EnrollPoll\n};\nexport { PasswordRecoveryFlow };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport '../types/api.js';\nimport { EnrollAuthenticator } from '../remediators/EnrollAuthenticator.js';\nimport { EnrollPoll } from '../remediators/EnrollPoll.js';\nimport { SelectEnrollmentChannel } from '../remediators/SelectEnrollmentChannel.js';\nimport { EnrollmentChannelData } from '../remediators/EnrollmentChannelData.js';\nimport '../remediators/ChallengeAuthenticator.js';\nimport '../remediators/ChallengePoll.js';\nimport '../remediators/ResetAuthenticator.js';\nimport { EnrollProfile } from '../remediators/EnrollProfile.js';\nimport '../remediators/Identify.js';\nimport '../remediators/ReEnrollAuthenticator.js';\nimport '../remediators/ReEnrollAuthenticatorWarning.js';\nimport '../remediators/RedirectIdp.js';\nimport '../remediators/SelectAuthenticatorAuthenticate.js';\nimport { SelectAuthenticatorEnroll } from '../remediators/SelectAuthenticatorEnroll.js';\nimport '../remediators/SelectAuthenticatorUnlockAccount.js';\nimport { SelectEnrollProfile } from '../remediators/SelectEnrollProfile.js';\nimport '../remediators/AuthenticatorVerificationData.js';\nimport { AuthenticatorEnrollmentData } from '../remediators/AuthenticatorEnrollmentData.js';\nimport { Skip } from '../remediators/Skip.js';\nimport '../../errors/WWWAuthError.js';\nconst RegistrationFlow = {\n 'select-enroll-profile': SelectEnrollProfile,\n 'enroll-profile': EnrollProfile,\n 'authenticator-enrollment-data': AuthenticatorEnrollmentData,\n 'select-authenticator-enroll': SelectAuthenticatorEnroll,\n 'enroll-poll': EnrollPoll,\n 'select-enrollment-channel': SelectEnrollmentChannel,\n 'enrollment-channel-data': EnrollmentChannelData,\n 'enroll-authenticator': EnrollAuthenticator,\n 'skip': Skip\n};\nexport { RegistrationFlow };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport '../types/api.js';\nimport '../remediators/EnrollAuthenticator.js';\nimport '../remediators/EnrollPoll.js';\nimport '../remediators/SelectEnrollmentChannel.js';\nimport '../remediators/EnrollmentChannelData.js';\nimport { ChallengeAuthenticator } from '../remediators/ChallengeAuthenticator.js';\nimport { ChallengePoll } from '../remediators/ChallengePoll.js';\nimport '../remediators/ResetAuthenticator.js';\nimport '../remediators/EnrollProfile.js';\nimport { Identify } from '../remediators/Identify.js';\nimport '../remediators/ReEnrollAuthenticator.js';\nimport { ReEnrollAuthenticatorWarning } from '../remediators/ReEnrollAuthenticatorWarning.js';\nimport '../remediators/RedirectIdp.js';\nimport { SelectAuthenticatorAuthenticate } from '../remediators/SelectAuthenticatorAuthenticate.js';\nimport '../remediators/SelectAuthenticatorEnroll.js';\nimport { SelectAuthenticatorUnlockAccount } from '../remediators/SelectAuthenticatorUnlockAccount.js';\nimport '../remediators/SelectEnrollProfile.js';\nimport { AuthenticatorVerificationData } from '../remediators/AuthenticatorVerificationData.js';\nimport '../remediators/AuthenticatorEnrollmentData.js';\nimport '../remediators/Skip.js';\nimport '../../errors/WWWAuthError.js';\nconst AccountUnlockFlow = {\n 'identify': Identify,\n 'select-authenticator-unlock-account': SelectAuthenticatorUnlockAccount,\n 'select-authenticator-authenticate': SelectAuthenticatorAuthenticate,\n 'challenge-authenticator': ChallengeAuthenticator,\n 'challenge-poll': ChallengePoll,\n 'authenticator-verification-data': AuthenticatorVerificationData,\n 'reenroll-authenticator-warning': ReEnrollAuthenticatorWarning\n};\nexport { AccountUnlockFlow };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { AuthenticationFlow } from './AuthenticationFlow.js';\nimport { PasswordRecoveryFlow } from './PasswordRecoveryFlow.js';\nimport { RegistrationFlow } from './RegistrationFlow.js';\nimport { AccountUnlockFlow } from './AccountUnlockFlow.js';\nfunction getFlowSpecification(oktaAuth, flow = 'default') {\n let remediators,\n actions,\n withCredentials = true;\n switch (flow) {\n case 'register':\n case 'signup':\n case 'enrollProfile':\n remediators = RegistrationFlow;\n withCredentials = false;\n break;\n case 'recoverPassword':\n case 'resetPassword':\n remediators = PasswordRecoveryFlow;\n actions = ['currentAuthenticator-recover', 'currentAuthenticatorEnrollment-recover'];\n withCredentials = false;\n break;\n case 'unlockAccount':\n remediators = AccountUnlockFlow;\n withCredentials = false;\n actions = ['unlock-account'];\n break;\n case 'authenticate':\n case 'login':\n case 'signin':\n remediators = AuthenticationFlow;\n break;\n default:\n remediators = AuthenticationFlow;\n break;\n }\n return {\n flow,\n remediators,\n actions,\n withCredentials\n };\n}\nexport { getFlowSpecification };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { run } from './run.js';\nimport './types/api.js';\nimport './remediators/EnrollAuthenticator.js';\nimport './remediators/EnrollPoll.js';\nimport './remediators/SelectEnrollmentChannel.js';\nimport './remediators/EnrollmentChannelData.js';\nimport './remediators/ChallengeAuthenticator.js';\nimport './remediators/ChallengePoll.js';\nimport './remediators/ResetAuthenticator.js';\nimport './remediators/EnrollProfile.js';\nimport './remediators/Identify.js';\nimport './remediators/ReEnrollAuthenticator.js';\nimport './remediators/ReEnrollAuthenticatorWarning.js';\nimport './remediators/RedirectIdp.js';\nimport './remediators/SelectAuthenticatorAuthenticate.js';\nimport './remediators/SelectAuthenticatorEnroll.js';\nimport './remediators/SelectAuthenticatorUnlockAccount.js';\nimport './remediators/SelectEnrollProfile.js';\nimport './remediators/AuthenticatorVerificationData.js';\nimport './remediators/AuthenticatorEnrollmentData.js';\nimport './remediators/Skip.js';\nimport '../errors/WWWAuthError.js';\nimport { getFlowSpecification } from './flow/FlowSpecification.js';\nasync function cancel(authClient, options) {\n const meta = authClient.transactionManager.load();\n const flowSpec = getFlowSpecification(authClient, meta.flow);\n return run(authClient, Object.assign(Object.assign(Object.assign({}, options), flowSpec), {\n actions: ['cancel']\n }));\n}\nexport { cancel };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction urlParamsToObject(hashOrSearch) {\n var plus2space = /\\+/g;\n var paramSplit = /([^&=]+)=?([^&]*)/g;\n var fragment = hashOrSearch || '';\n if (fragment.charAt(0) === '#' && fragment.charAt(1) === '/') {\n fragment = fragment.substring(2);\n }\n if (fragment.charAt(0) === '#' || fragment.charAt(0) === '?') {\n fragment = fragment.substring(1);\n }\n var obj = {};\n var param;\n while (true) {\n param = paramSplit.exec(fragment);\n if (!param) {\n break;\n }\n var key = param[1];\n var value = param[2];\n if (key === 'id_token' || key === 'access_token' || key === 'code') {\n obj[key] = value;\n } else {\n obj[key] = decodeURIComponent(value.replace(plus2space, ' '));\n }\n }\n return obj;\n}\nexport { urlParamsToObject };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from '../errors/CustomError.js';\nimport { urlParamsToObject } from '../oidc/util/urlParams.js';\nclass EmailVerifyCallbackError extends CustomError {\n constructor(state, otp) {\n super(`Enter the OTP code in the originating client: ${otp}`);\n this.name = 'EmailVerifyCallbackError';\n this.state = state;\n this.otp = otp;\n }\n}\nfunction isEmailVerifyCallbackError(error) {\n return error.name === 'EmailVerifyCallbackError';\n}\nfunction isEmailVerifyCallback(urlPath) {\n return /(otp=)/i.test(urlPath) && /(state=)/i.test(urlPath);\n}\nfunction parseEmailVerifyCallback(urlPath) {\n return urlParamsToObject(urlPath);\n}\nasync function handleEmailVerifyCallback(authClient, search) {\n if (isEmailVerifyCallback(search)) {\n const {\n state,\n otp\n } = parseEmailVerifyCallback(search);\n if (authClient.idx.canProceed({\n state\n })) {\n return await authClient.idx.proceed({\n state,\n otp\n });\n } else {\n throw new EmailVerifyCallbackError(state, otp);\n }\n }\n}\nexport { EmailVerifyCallbackError, handleEmailVerifyCallback, isEmailVerifyCallback, isEmailVerifyCallbackError, parseEmailVerifyCallback };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { run } from './run.js';\nimport { getSavedTransactionMeta } from './transactionMeta.js';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nfunction canProceed(authClient, options = {}) {\n const meta = getSavedTransactionMeta(authClient, options);\n return !!(meta || options.stateHandle);\n}\nasync function proceed(authClient, options = {}) {\n if (!canProceed(authClient, options)) {\n throw new AuthSdkError('Unable to proceed: saved transaction could not be loaded');\n }\n let {\n flow,\n state\n } = options;\n if (!flow) {\n const meta = getSavedTransactionMeta(authClient, {\n state\n });\n flow = meta === null || meta === void 0 ? void 0 : meta.flow;\n }\n return run(authClient, Object.assign(Object.assign({}, options), {\n flow\n }));\n}\nexport { canProceed, proceed };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { proceed } from './proceed.js';\nimport { getSavedTransactionMeta } from './transactionMeta.js';\nimport { warn } from '../util/console.js';\nasync function poll(authClient, options = {}) {\n var _a;\n let transaction = await proceed(authClient, {\n startPolling: true\n });\n const meta = getSavedTransactionMeta(authClient);\n let availablePollingRemeditaions = (_a = meta === null || meta === void 0 ? void 0 : meta.remediations) === null || _a === void 0 ? void 0 : _a.find(remediation => remediation.includes('poll'));\n if (!(availablePollingRemeditaions === null || availablePollingRemeditaions === void 0 ? void 0 : availablePollingRemeditaions.length)) {\n warn('No polling remediations available at the current IDX flow stage');\n }\n if (Number.isInteger(options.refresh)) {\n return new Promise(function (resolve, reject) {\n setTimeout(async function () {\n var _a, _b;\n try {\n const refresh = (_b = (_a = transaction.nextStep) === null || _a === void 0 ? void 0 : _a.poll) === null || _b === void 0 ? void 0 : _b.refresh;\n if (refresh) {\n resolve(poll(authClient, {\n refresh\n }));\n } else {\n resolve(transaction);\n }\n } catch (err) {\n reject(err);\n }\n }, options.refresh);\n });\n }\n return transaction;\n}\nexport { poll };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { run } from './run.js';\nasync function startTransaction(authClient, options = {}) {\n authClient.transactionManager.clear();\n return run(authClient, Object.assign({\n exchangeCodeForTokens: false\n }, options));\n}\nexport { startTransaction };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { run } from './run.js';\nimport { hasSavedInteractionHandle } from './transactionMeta.js';\nimport { startTransaction } from './startTransaction.js';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { IdxFeature } from './types/api.js';\nasync function register(authClient, options = {}) {\n if (!hasSavedInteractionHandle(authClient)) {\n const {\n enabledFeatures\n } = await startTransaction(authClient, Object.assign(Object.assign({}, options), {\n flow: 'register',\n autoRemediate: false\n }));\n if (!options.activationToken && enabledFeatures && !enabledFeatures.includes(IdxFeature.REGISTRATION)) {\n throw new AuthSdkError('Registration is not supported based on your current org configuration.');\n }\n }\n return run(authClient, Object.assign(Object.assign({}, options), {\n flow: 'register'\n }));\n}\nexport { register };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { run } from './run.js';\nimport './types/api.js';\nimport './remediators/EnrollAuthenticator.js';\nimport './remediators/EnrollPoll.js';\nimport './remediators/SelectEnrollmentChannel.js';\nimport './remediators/EnrollmentChannelData.js';\nimport './remediators/ChallengeAuthenticator.js';\nimport './remediators/ChallengePoll.js';\nimport './remediators/ResetAuthenticator.js';\nimport './remediators/EnrollProfile.js';\nimport './remediators/Identify.js';\nimport './remediators/ReEnrollAuthenticator.js';\nimport './remediators/ReEnrollAuthenticatorWarning.js';\nimport './remediators/RedirectIdp.js';\nimport './remediators/SelectAuthenticatorAuthenticate.js';\nimport './remediators/SelectAuthenticatorEnroll.js';\nimport './remediators/SelectAuthenticatorUnlockAccount.js';\nimport './remediators/SelectEnrollProfile.js';\nimport './remediators/AuthenticatorVerificationData.js';\nimport './remediators/AuthenticatorEnrollmentData.js';\nimport './remediators/Skip.js';\nimport '../errors/WWWAuthError.js';\nimport { getFlowSpecification } from './flow/FlowSpecification.js';\nasync function recoverPassword(authClient, options = {}) {\n const flowSpec = getFlowSpecification(authClient, 'recoverPassword');\n return run(authClient, Object.assign(Object.assign({}, options), flowSpec));\n}\nexport { recoverPassword };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport OAuthError from '../errors/OAuthError.js';\nimport '../errors/WWWAuthError.js';\nasync function handleInteractionCodeRedirect(authClient, url) {\n const meta = authClient.transactionManager.load();\n if (!meta) {\n throw new AuthSdkError('No transaction data was found in storage');\n }\n const {\n codeVerifier,\n state: savedState\n } = meta;\n const {\n searchParams\n } = new URL(url);\n const state = searchParams.get('state');\n const interactionCode = searchParams.get('interaction_code');\n const error = searchParams.get('error');\n if (error) {\n throw new OAuthError(error, searchParams.get('error_description'));\n }\n if (state !== savedState) {\n throw new AuthSdkError('State in redirect uri does not match with transaction state');\n }\n if (!interactionCode) {\n throw new AuthSdkError('Unable to parse interaction_code from the url');\n }\n const {\n tokens\n } = await authClient.token.exchangeCodeForTokens({\n interactionCode,\n codeVerifier\n });\n authClient.tokenManager.setTokens(tokens);\n}\nexport { handleInteractionCodeRedirect };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { run } from './run.js';\nimport { hasSavedInteractionHandle } from './transactionMeta.js';\nimport { startTransaction } from './startTransaction.js';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { IdxFeature } from './types/api.js';\nasync function unlockAccount(authClient, options = {}) {\n options.flow = 'unlockAccount';\n if (!hasSavedInteractionHandle(authClient)) {\n const {\n enabledFeatures\n } = await startTransaction(authClient, Object.assign(Object.assign({}, options), {\n autoRemediate: false\n }));\n if (enabledFeatures && !enabledFeatures.includes(IdxFeature.ACCOUNT_UNLOCK)) {\n throw new AuthSdkError('Self Service Account Unlock is not supported based on your current org configuration.');\n }\n }\n return run(authClient, Object.assign({}, options));\n}\nexport { unlockAccount };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { isOAuthError } from '../../errors/index.js';\nfunction isInteractionRequiredError(error) {\n if (error.name !== 'OAuthError') {\n return false;\n }\n const oauthError = error;\n return oauthError.errorCode === 'interaction_required';\n}\nfunction isAuthorizationCodeError(sdk, error) {\n if (error.name !== 'AuthApiError') {\n return false;\n }\n const authApiError = error;\n const errorResponse = authApiError.xhr;\n const responseJSON = errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.responseJSON;\n return sdk.options.pkce && (responseJSON === null || responseJSON === void 0 ? void 0 : responseJSON.error) === 'invalid_grant';\n}\nfunction isRefreshTokenInvalidError(error) {\n return isOAuthError(error) && error.errorCode === 'invalid_grant' && error.errorSummary === 'The refresh token is invalid or expired.';\n}\nexport { isAuthorizationCodeError, isInteractionRequiredError, isRefreshTokenInvalidError };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction hasTokensInHash(hash) {\n return /((id|access)_token=)/i.test(hash);\n}\nfunction hasAuthorizationCode(hashOrSearch) {\n return /(code=)/i.test(hashOrSearch);\n}\nfunction hasInteractionCode(hashOrSearch) {\n return /(interaction_code=)/i.test(hashOrSearch);\n}\nfunction hasErrorInUrl(hashOrSearch) {\n return /(error=)/i.test(hashOrSearch) || /(error_description)/i.test(hashOrSearch);\n}\nfunction isRedirectUri(uri, sdk) {\n var authParams = sdk.options;\n if (!uri || !authParams.redirectUri) {\n return false;\n }\n return uri.indexOf(authParams.redirectUri) === 0;\n}\nfunction isCodeFlow(options) {\n return options.pkce || options.responseType === 'code' || options.responseMode === 'query';\n}\nfunction hasResponseType(responseType, options) {\n let hasResponseType = false;\n if (Array.isArray(options.responseType) && options.responseType.length) {\n hasResponseType = options.responseType.indexOf(responseType) >= 0;\n } else {\n hasResponseType = options.responseType === responseType;\n }\n return hasResponseType;\n}\nfunction getHashOrSearch(options) {\n var codeFlow = isCodeFlow(options);\n var useQuery = codeFlow && options.responseMode !== 'fragment';\n return useQuery ? window.location.search : window.location.hash;\n}\nfunction isLoginRedirect(sdk) {\n if (!isRedirectUri(window.location.href, sdk)) {\n return false;\n }\n var codeFlow = isCodeFlow(sdk.options);\n var hashOrSearch = getHashOrSearch(sdk.options);\n if (hasErrorInUrl(hashOrSearch)) {\n return true;\n }\n if (codeFlow) {\n var hasCode = hasAuthorizationCode(hashOrSearch) || hasInteractionCode(hashOrSearch);\n return hasCode;\n }\n return hasTokensInHash(window.location.hash);\n}\nfunction isInteractionRequired(sdk, hashOrSearch) {\n if (!hashOrSearch) {\n if (!isLoginRedirect(sdk)) {\n return false;\n }\n hashOrSearch = getHashOrSearch(sdk.options);\n }\n return /(error=interaction_required)/i.test(hashOrSearch);\n}\nexport { getHashOrSearch, hasAuthorizationCode, hasErrorInUrl, hasInteractionCode, hasResponseType, hasTokensInHash, isCodeFlow, isInteractionRequired, isLoginRedirect, isRedirectUri };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport '../../errors/WWWAuthError.js';\nimport { isInteractionRequiredError } from '../../oidc/util/errors.js';\nimport { isInteractionRequired } from '../../oidc/util/loginRedirect.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport '../../oidc/types/Token.js';\nimport { authenticate } from '../authenticate.js';\nimport { cancel } from '../cancel.js';\nimport { handleEmailVerifyCallback, isEmailVerifyCallback, parseEmailVerifyCallback, isEmailVerifyCallbackError } from '../emailVerify.js';\nimport { handleInteractionCodeRedirect } from '../handleInteractionCodeRedirect.js';\nimport { makeIdxState } from '../idxState/index.js';\nimport { interact } from '../interact.js';\nimport { introspect } from '../introspect.js';\nimport { poll } from '../poll.js';\nimport { proceed, canProceed } from '../proceed.js';\nimport { recoverPassword } from '../recoverPassword.js';\nimport { register } from '../register.js';\nimport { startTransaction } from '../startTransaction.js';\nimport { getSavedTransactionMeta, createTransactionMeta, getTransactionMeta, saveTransactionMeta, clearTransactionMeta, isTransactionMetaValid } from '../transactionMeta.js';\nimport { unlockAccount } from '../unlockAccount.js';\nimport * as index from '../remediators/index.js';\nimport { getFlowSpecification } from '../flow/FlowSpecification.js';\nimport { setRemediatorsCtx } from '../util.js';\nfunction createIdxAPI(sdk) {\n setRemediatorsCtx({\n remediators: index,\n getFlowSpecification\n });\n const boundStartTransaction = startTransaction.bind(null, sdk);\n const idx = {\n interact: interact.bind(null, sdk),\n introspect: introspect.bind(null, sdk),\n makeIdxResponse: makeIdxState.bind(null, sdk),\n authenticate: authenticate.bind(null, sdk),\n register: register.bind(null, sdk),\n start: boundStartTransaction,\n startTransaction: boundStartTransaction,\n poll: poll.bind(null, sdk),\n proceed: proceed.bind(null, sdk),\n cancel: cancel.bind(null, sdk),\n recoverPassword: recoverPassword.bind(null, sdk),\n handleInteractionCodeRedirect: handleInteractionCodeRedirect.bind(null, sdk),\n isInteractionRequired: isInteractionRequired.bind(null, sdk),\n isInteractionRequiredError,\n handleEmailVerifyCallback: handleEmailVerifyCallback.bind(null, sdk),\n isEmailVerifyCallback,\n parseEmailVerifyCallback,\n isEmailVerifyCallbackError,\n getSavedTransactionMeta: getSavedTransactionMeta.bind(null, sdk),\n createTransactionMeta: createTransactionMeta.bind(null, sdk),\n getTransactionMeta: getTransactionMeta.bind(null, sdk),\n saveTransactionMeta: saveTransactionMeta.bind(null, sdk),\n clearTransactionMeta: clearTransactionMeta.bind(null, sdk),\n isTransactionMetaValid,\n setFlow: flow => {\n sdk.options.flow = flow;\n },\n getFlow: () => {\n return sdk.options.flow;\n },\n canProceed: canProceed.bind(null, sdk),\n unlockAccount: unlockAccount.bind(null, sdk)\n };\n return idx;\n}\nexport { createIdxAPI };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport { Remediator } from './Base/Remediator.js';\nexport { EnrollAuthenticator } from './EnrollAuthenticator.js';\nexport { EnrollPoll } from './EnrollPoll.js';\nexport { SelectEnrollmentChannel } from './SelectEnrollmentChannel.js';\nexport { EnrollmentChannelData } from './EnrollmentChannelData.js';\nexport { ChallengeAuthenticator } from './ChallengeAuthenticator.js';\nexport { ChallengePoll } from './ChallengePoll.js';\nexport { ResetAuthenticator } from './ResetAuthenticator.js';\nexport { EnrollProfile } from './EnrollProfile.js';\nexport { Identify } from './Identify.js';\nexport { ReEnrollAuthenticator } from './ReEnrollAuthenticator.js';\nexport { ReEnrollAuthenticatorWarning } from './ReEnrollAuthenticatorWarning.js';\nexport { RedirectIdp } from './RedirectIdp.js';\nexport { SelectAuthenticatorAuthenticate } from './SelectAuthenticatorAuthenticate.js';\nexport { SelectAuthenticatorEnroll } from './SelectAuthenticatorEnroll.js';\nexport { SelectAuthenticatorUnlockAccount } from './SelectAuthenticatorUnlockAccount.js';\nexport { SelectEnrollProfile } from './SelectEnrollProfile.js';\nexport { AuthenticatorVerificationData } from './AuthenticatorVerificationData.js';\nexport { AuthenticatorEnrollmentData } from './AuthenticatorEnrollmentData.js';\nexport { Skip } from './Skip.js';\nexport { GenericRemediator } from './GenericRemediator/GenericRemediator.js';\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport './errors/WWWAuthError.js';\nimport { webcrypto as c } from './crypto/browser.js';\nconst isWindowsPhone = /windows phone|iemobile|wpdesktop/i;\nfunction isBrowser() {\n return typeof document !== 'undefined' && typeof window !== 'undefined';\n}\nfunction isIE11OrLess() {\n if (!isBrowser()) {\n return false;\n }\n const documentMode = document.documentMode;\n return !!documentMode && documentMode <= 11;\n}\nfunction getUserAgent() {\n return navigator.userAgent;\n}\nfunction isFingerprintSupported() {\n const agent = getUserAgent();\n return agent && !isWindowsPhone.test(agent);\n}\nfunction isPopupPostMessageSupported() {\n if (!isBrowser()) {\n return false;\n }\n const documentMode = document.documentMode;\n var isIE8or9 = documentMode && documentMode < 10;\n if (typeof window.postMessage !== 'undefined' && !isIE8or9) {\n return true;\n }\n return false;\n}\nfunction isWebCryptoSubtleSupported() {\n return typeof c !== 'undefined' && c !== null && typeof c.subtle !== 'undefined' && typeof Uint8Array !== 'undefined';\n}\nfunction isTokenVerifySupported() {\n return isWebCryptoSubtleSupported();\n}\nfunction hasTextEncoder() {\n return typeof TextEncoder !== 'undefined';\n}\nfunction isPKCESupported() {\n return isTokenVerifySupported() && hasTextEncoder();\n}\nfunction isHTTPS() {\n if (!isBrowser()) {\n return false;\n }\n return window.location.protocol === 'https:';\n}\nfunction isLocalhost() {\n return isBrowser() && window.location.hostname === 'localhost';\n}\nfunction isDPoPSupported() {\n return !isIE11OrLess() && typeof window.indexedDB !== 'undefined' && hasTextEncoder() && isWebCryptoSubtleSupported();\n}\nexport { getUserAgent, hasTextEncoder, isBrowser, isDPoPSupported, isFingerprintSupported, isHTTPS, isIE11OrLess, isLocalhost, isPKCESupported, isPopupPostMessageSupported, isTokenVerifySupported };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nconst a = function (str) {\n return atob(str);\n};\nconst b = function (str) {\n return btoa(str);\n};\nconst c = typeof crypto === 'undefined' ? null : crypto;\nexport { a as atob, b as btoa, c as webcrypto };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { removeNils } from '../util/object.js';\nimport * as features from '../features.js';\nimport * as constants from '../constants.js';\nimport Emitter from 'tiny-emitter';\nfunction createOktaAuthBase(OptionsConstructor) {\n class OktaAuthBase {\n constructor(...args) {\n const options = new OptionsConstructor(args.length ? args[0] || {} : {});\n this.options = removeNils(options);\n this.emitter = new Emitter();\n this.features = features;\n }\n }\n OktaAuthBase.features = features;\n OktaAuthBase.constants = constants;\n OktaAuthBase.features = OktaAuthBase.prototype.features = features;\n Object.assign(OktaAuthBase, {\n constants\n });\n return OktaAuthBase;\n}\nexport { createOktaAuthBase };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction mixinStorage(Base, StorageManager) {\n return class OktaAuthStorage extends Base {\n constructor(...args) {\n super(...args);\n const {\n storageManager,\n cookies,\n storageUtil\n } = this.options;\n this.storageManager = new StorageManager(storageManager, cookies, storageUtil);\n }\n clearStorage() {}\n };\n}\nexport { mixinStorage };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { isBrowser } from '../features.js';\nclass OktaUserAgent {\n constructor() {\n this.environments = [`okta-auth-js/${\"7.7.0\"}`];\n this.maybeAddNodeEnvironment();\n }\n addEnvironment(env) {\n this.environments.push(env);\n }\n getHttpHeader() {\n return {\n 'X-Okta-User-Agent-Extended': this.environments.join(' ')\n };\n }\n getVersion() {\n return \"7.7.0\";\n }\n maybeAddNodeEnvironment() {\n if (isBrowser() || !process || !process.versions) {\n return;\n }\n const {\n node: version\n } = process.versions;\n this.environments.push(`nodejs/${version}`);\n }\n}\nexport { OktaUserAgent };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction setRequestHeader(authClient, headerName, headerValue) {\n authClient.options.headers = authClient.options.headers || {};\n authClient.options.headers[headerName] = headerValue;\n}\nexport { setRequestHeader };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { OktaUserAgent } from './OktaUserAgent.js';\nimport { setRequestHeader } from './headers.js';\nimport { toQueryString } from '../util/url.js';\nimport { get } from './request.js';\nfunction mixinHttp(Base) {\n return class OktaAuthHttp extends Base {\n constructor(...args) {\n super(...args);\n this._oktaUserAgent = new OktaUserAgent();\n this.http = {\n setRequestHeader: setRequestHeader.bind(null, this)\n };\n }\n setHeaders(headers) {\n this.options.headers = Object.assign({}, this.options.headers, headers);\n }\n getIssuerOrigin() {\n return this.options.issuer.split('/oauth2/')[0];\n }\n webfinger(opts) {\n var url = '/.well-known/webfinger' + toQueryString(opts);\n var options = {\n headers: {\n 'Accept': 'application/jrd+json'\n }\n };\n return get(this, url, options);\n }\n };\n}\nexport { mixinHttp };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport { base64ToBase64Url, base64UrlDecode, base64UrlToBase64, base64UrlToBuffer, base64UrlToString, bufferToBase64Url, stringToBase64Url, stringToBuffer } from './base64.js';\nexport { getOidcHash } from './oidcHash.js';\nexport { verifyToken } from './verifyToken.js';\nexport { atob, btoa, webcrypto } from './browser.js';\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { btoa as b, atob as a } from './browser.js';\nfunction stringToBase64Url(str) {\n var b64 = b(str);\n return base64ToBase64Url(b64);\n}\nfunction base64ToBase64Url(b64) {\n return b64.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n}\nfunction base64UrlToBase64(b64u) {\n return b64u.replace(/-/g, '+').replace(/_/g, '/');\n}\nfunction base64UrlToString(b64u) {\n var b64 = base64UrlToBase64(b64u);\n switch (b64.length % 4) {\n case 0:\n break;\n case 2:\n b64 += '==';\n break;\n case 3:\n b64 += '=';\n break;\n default:\n throw new AuthSdkError('Not a valid Base64Url');\n }\n var utf8 = a(b64);\n try {\n return decodeURIComponent(escape(utf8));\n } catch (e) {\n return utf8;\n }\n}\nfunction stringToBuffer(str) {\n var buffer = new Uint8Array(str.length);\n for (var i = 0; i < str.length; i++) {\n buffer[i] = str.charCodeAt(i);\n }\n return buffer;\n}\nfunction base64UrlDecode(str) {\n return a(base64UrlToBase64(str));\n}\nfunction base64UrlToBuffer(b64u) {\n return Uint8Array.from(base64UrlDecode(b64u), c => c.charCodeAt(0));\n}\nfunction bufferToBase64Url(bin) {\n return b(new Uint8Array(bin).reduce((s, byte) => s + String.fromCharCode(byte), ''));\n}\nexport { base64ToBase64Url, base64UrlDecode, base64UrlToBase64, base64UrlToBuffer, base64UrlToString, bufferToBase64Url, stringToBase64Url, stringToBuffer };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { stringToBase64Url } from './base64.js';\nimport { webcrypto as c } from './browser.js';\nfunction getOidcHash(str) {\n var buffer = new TextEncoder().encode(str);\n return c.subtle.digest('SHA-256', buffer).then(function (arrayBuffer) {\n var intBuffer = new Uint8Array(arrayBuffer);\n var firstHalf = intBuffer.slice(0, 16);\n var hash = String.fromCharCode.apply(null, firstHalf);\n var b64u = stringToBase64Url(hash);\n return b64u;\n });\n}\nexport { getOidcHash };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { clone } from '../util/object.js';\nimport { stringToBuffer, base64UrlDecode } from './base64.js';\nimport { webcrypto as c } from './browser.js';\nfunction verifyToken(idToken, key) {\n key = clone(key);\n var format = 'jwk';\n var algo = {\n name: 'RSASSA-PKCS1-v1_5',\n hash: {\n name: 'SHA-256'\n }\n };\n var extractable = true;\n var usages = ['verify'];\n delete key.use;\n return c.subtle.importKey(format, key, algo, extractable, usages).then(function (cryptoKey) {\n var jwt = idToken.split('.');\n var payload = stringToBuffer(jwt[0] + '.' + jwt[1]);\n var b64Signature = base64UrlDecode(jwt[2]);\n var signature = stringToBuffer(b64Signature);\n return c.subtle.verify(algo, cryptoKey, signature, payload);\n });\n}\nexport { verifyToken };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { isPromise } from './types.js';\nimport { warn } from './console.js';\nclass PromiseQueue {\n constructor(options = {\n quiet: false\n }) {\n this.queue = [];\n this.running = false;\n this.options = options;\n }\n push(method, thisObject, ...args) {\n return new Promise((resolve, reject) => {\n if (this.queue.length > 0) {\n if (this.options.quiet !== false) {\n warn('Async method is being called but another async method is already running. ' + 'The new method will be delayed until the previous method completes.');\n }\n }\n this.queue.push({\n method,\n thisObject,\n args,\n resolve,\n reject\n });\n this.run();\n });\n }\n run() {\n if (this.running) {\n return;\n }\n if (this.queue.length === 0) {\n return;\n }\n this.running = true;\n var queueItem = this.queue.shift();\n var res = queueItem.method.apply(queueItem.thisObject, queueItem.args);\n if (isPromise(res)) {\n res.then(queueItem.resolve, queueItem.reject).finally(() => {\n this.running = false;\n this.run();\n });\n } else {\n queueItem.resolve(res);\n this.running = false;\n this.run();\n }\n }\n}\nexport { PromiseQueue };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { __rest } from '../../_virtual/_tslib.js';\nimport * as index from '../../crypto/index.js';\nimport { httpRequest } from '../../http/request.js';\nimport { PromiseQueue } from '../../util/PromiseQueue.js';\nimport { isFunction } from '../../util/types.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nimport 'cross-fetch';\nimport PKCE from '../util/pkce.js';\nimport { createTokenAPI, createEndpoints } from '../factory/api.js';\nimport { TokenManager } from '../TokenManager.js';\nimport WWWAuthError from '../../errors/WWWAuthError.js';\nimport { getOAuthUrls } from '../util/oauth.js';\nimport { isLoginRedirect, hasResponseType } from '../util/loginRedirect.js';\nimport '../types/Token.js';\nimport { clearDPoPKeyPairAfterRevoke, clearDPoPKeyPair, findKeyPair, generateDPoPProof, clearAllDPoPKeyPairs, isDPoPNonceError } from '../dpop.js';\nimport { provideOriginalUri } from './browser.js';\nfunction mixinOAuth(Base, TransactionManagerConstructor) {\n var _a;\n const WithOriginalUri = provideOriginalUri(Base);\n return _a = class OktaAuthOAuth extends WithOriginalUri {\n constructor(...args) {\n super(...args);\n this.transactionManager = new TransactionManagerConstructor(Object.assign({\n storageManager: this.storageManager\n }, this.options.transactionManager));\n this.pkce = {\n DEFAULT_CODE_CHALLENGE_METHOD: PKCE.DEFAULT_CODE_CHALLENGE_METHOD,\n generateVerifier: PKCE.generateVerifier,\n computeChallenge: PKCE.computeChallenge\n };\n this._pending = {\n handleLogin: false\n };\n this._tokenQueue = new PromiseQueue();\n this.token = createTokenAPI(this, this._tokenQueue);\n this.tokenManager = new TokenManager(this, this.options.tokenManager);\n this.endpoints = createEndpoints(this);\n }\n clearStorage() {\n super.clearStorage();\n this.tokenManager.clear();\n }\n async isAuthenticated(options = {}) {\n const {\n autoRenew,\n autoRemove\n } = this.tokenManager.getOptions();\n const shouldRenew = options.onExpiredToken ? options.onExpiredToken === 'renew' : autoRenew;\n const shouldRemove = options.onExpiredToken ? options.onExpiredToken === 'remove' : autoRemove;\n let {\n accessToken\n } = this.tokenManager.getTokensSync();\n if (accessToken && this.tokenManager.hasExpired(accessToken)) {\n accessToken = undefined;\n if (shouldRenew) {\n try {\n accessToken = await this.tokenManager.renew('accessToken');\n } catch (_a) {}\n } else if (shouldRemove) {\n this.tokenManager.remove('accessToken');\n }\n }\n let {\n idToken\n } = this.tokenManager.getTokensSync();\n if (idToken && this.tokenManager.hasExpired(idToken)) {\n idToken = undefined;\n if (shouldRenew) {\n try {\n idToken = await this.tokenManager.renew('idToken');\n } catch (_b) {}\n } else if (shouldRemove) {\n this.tokenManager.remove('idToken');\n }\n }\n return !!(accessToken && idToken);\n }\n async signInWithRedirect(opts = {}) {\n const {\n originalUri\n } = opts,\n additionalParams = __rest(opts, [\"originalUri\"]);\n if (this._pending.handleLogin) {\n return;\n }\n this._pending.handleLogin = true;\n try {\n if (originalUri) {\n this.setOriginalUri(originalUri);\n }\n const params = Object.assign({\n scopes: this.options.scopes || ['openid', 'email', 'profile']\n }, additionalParams);\n await this.token.getWithRedirect(params);\n } finally {\n this._pending.handleLogin = false;\n }\n }\n async getUser() {\n const {\n idToken,\n accessToken\n } = this.tokenManager.getTokensSync();\n return this.token.getUserInfo(accessToken, idToken);\n }\n getIdToken() {\n const {\n idToken\n } = this.tokenManager.getTokensSync();\n return idToken ? idToken.idToken : undefined;\n }\n getAccessToken() {\n const {\n accessToken\n } = this.tokenManager.getTokensSync();\n return accessToken ? accessToken.accessToken : undefined;\n }\n getRefreshToken() {\n const {\n refreshToken\n } = this.tokenManager.getTokensSync();\n return refreshToken ? refreshToken.refreshToken : undefined;\n }\n async getOrRenewAccessToken() {\n var _a;\n const {\n accessToken\n } = this.tokenManager.getTokensSync();\n if (accessToken && !this.tokenManager.hasExpired(accessToken)) {\n return accessToken.accessToken;\n }\n try {\n const key = this.tokenManager.getStorageKeyByType('accessToken');\n const token = await this.tokenManager.renew(key !== null && key !== void 0 ? key : 'accessToken');\n return (_a = token === null || token === void 0 ? void 0 : token.accessToken) !== null && _a !== void 0 ? _a : null;\n } catch (err) {\n this.emitter.emit('error', err);\n return null;\n }\n }\n async storeTokensFromRedirect() {\n const {\n tokens,\n responseType\n } = await this.token.parseFromUrl();\n if (responseType !== 'none') {\n this.tokenManager.setTokens(tokens);\n }\n }\n isLoginRedirect() {\n return isLoginRedirect(this);\n }\n isPKCE() {\n return !!this.options.pkce;\n }\n hasResponseType(responseType) {\n return hasResponseType(responseType, this.options);\n }\n isAuthorizationCodeFlow() {\n return this.hasResponseType('code');\n }\n async invokeApiMethod(options) {\n if (!options.accessToken) {\n const accessToken = (await this.tokenManager.getTokens()).accessToken;\n options.accessToken = accessToken === null || accessToken === void 0 ? void 0 : accessToken.accessToken;\n }\n return httpRequest(this, options);\n }\n async revokeAccessToken(accessToken) {\n if (!accessToken) {\n const tokens = await this.tokenManager.getTokens();\n accessToken = tokens.accessToken;\n const accessTokenKey = this.tokenManager.getStorageKeyByType('accessToken');\n this.tokenManager.remove(accessTokenKey);\n if (this.options.dpop) {\n await clearDPoPKeyPairAfterRevoke('access', tokens);\n }\n }\n if (!accessToken) {\n return Promise.resolve(null);\n }\n return this.token.revoke(accessToken);\n }\n async revokeRefreshToken(refreshToken) {\n if (!refreshToken) {\n const tokens = await this.tokenManager.getTokens();\n refreshToken = tokens.refreshToken;\n const refreshTokenKey = this.tokenManager.getStorageKeyByType('refreshToken');\n this.tokenManager.remove(refreshTokenKey);\n if (this.options.dpop) {\n await clearDPoPKeyPairAfterRevoke('refresh', tokens);\n }\n }\n if (!refreshToken) {\n return Promise.resolve(null);\n }\n return this.token.revoke(refreshToken);\n }\n getSignOutRedirectUrl(options = {}) {\n let {\n idToken,\n postLogoutRedirectUri,\n state\n } = options;\n if (!idToken) {\n idToken = this.tokenManager.getTokensSync().idToken;\n }\n if (!idToken) {\n return '';\n }\n if (postLogoutRedirectUri === undefined) {\n postLogoutRedirectUri = this.options.postLogoutRedirectUri;\n }\n const logoutUrl = getOAuthUrls(this).logoutUrl;\n const idTokenHint = idToken.idToken;\n let logoutUri = logoutUrl + '?id_token_hint=' + encodeURIComponent(idTokenHint);\n if (postLogoutRedirectUri) {\n logoutUri += '&post_logout_redirect_uri=' + encodeURIComponent(postLogoutRedirectUri);\n }\n if (state) {\n logoutUri += '&state=' + encodeURIComponent(state);\n }\n return logoutUri;\n }\n async signOut(options) {\n var _a;\n options = Object.assign({}, options);\n const defaultUri = window.location.origin;\n const currentUri = window.location.href;\n const postLogoutRedirectUri = options.postLogoutRedirectUri === null ? null : options.postLogoutRedirectUri || this.options.postLogoutRedirectUri || defaultUri;\n const state = options === null || options === void 0 ? void 0 : options.state;\n let accessToken = options.accessToken;\n let refreshToken = options.refreshToken;\n const revokeAccessToken = options.revokeAccessToken !== false;\n const revokeRefreshToken = options.revokeRefreshToken !== false;\n if (revokeRefreshToken && typeof refreshToken === 'undefined') {\n refreshToken = this.tokenManager.getTokensSync().refreshToken;\n }\n if (revokeAccessToken && typeof accessToken === 'undefined') {\n accessToken = this.tokenManager.getTokensSync().accessToken;\n }\n if (!options.idToken) {\n options.idToken = this.tokenManager.getTokensSync().idToken;\n }\n if (revokeRefreshToken && refreshToken) {\n await this.revokeRefreshToken(refreshToken);\n }\n if (revokeAccessToken && accessToken) {\n await this.revokeAccessToken(accessToken);\n }\n const dpopPairId = (_a = accessToken === null || accessToken === void 0 ? void 0 : accessToken.dpopPairId) !== null && _a !== void 0 ? _a : refreshToken === null || refreshToken === void 0 ? void 0 : refreshToken.dpopPairId;\n if (this.options.dpop && dpopPairId) {\n await clearDPoPKeyPair(dpopPairId);\n }\n const logoutUri = this.getSignOutRedirectUrl(Object.assign(Object.assign({}, options), {\n postLogoutRedirectUri\n }));\n if (!logoutUri) {\n const sessionClosed = await this.closeSession();\n const redirectUri = new URL(postLogoutRedirectUri || defaultUri);\n if (state) {\n redirectUri.searchParams.append('state', state);\n }\n if (postLogoutRedirectUri === currentUri) {\n window.location.href = redirectUri.href;\n } else {\n window.location.assign(redirectUri.href);\n }\n return sessionClosed;\n } else {\n if (options.clearTokensBeforeRedirect) {\n this.tokenManager.clear();\n } else {\n this.tokenManager.addPendingRemoveFlags();\n }\n window.location.assign(logoutUri);\n return true;\n }\n }\n async getDPoPAuthorizationHeaders(params) {\n if (!this.options.dpop) {\n throw new AuthSdkError('DPoP is not configured for this client instance');\n }\n let {\n accessToken\n } = params;\n if (!accessToken) {\n accessToken = this.tokenManager.getTokensSync().accessToken;\n }\n if (!accessToken) {\n throw new AuthSdkError('AccessToken is required to generate a DPoP Proof');\n }\n const keyPair = await findKeyPair(accessToken === null || accessToken === void 0 ? void 0 : accessToken.dpopPairId);\n const proof = await generateDPoPProof(Object.assign(Object.assign({}, params), {\n keyPair,\n accessToken: accessToken.accessToken\n }));\n return {\n Authorization: `DPoP ${accessToken.accessToken}`,\n Dpop: proof\n };\n }\n async clearDPoPStorage(clearAll = false) {\n var _a, _b;\n if (clearAll) {\n return clearAllDPoPKeyPairs();\n }\n const tokens = await this.tokenManager.getTokens();\n const keyPair = ((_a = tokens.accessToken) === null || _a === void 0 ? void 0 : _a.dpopPairId) || ((_b = tokens.refreshToken) === null || _b === void 0 ? void 0 : _b.dpopPairId);\n if (keyPair) {\n await clearDPoPKeyPair(keyPair);\n }\n }\n parseUseDPoPNonceError(headers) {\n var _a;\n const wwwAuth = WWWAuthError.getWWWAuthenticateHeader(headers);\n const wwwErr = WWWAuthError.parseHeader(wwwAuth !== null && wwwAuth !== void 0 ? wwwAuth : '');\n if (isDPoPNonceError(wwwErr)) {\n let nonce = null;\n if (isFunction(headers === null || headers === void 0 ? void 0 : headers.get)) {\n nonce = headers.get('DPoP-Nonce');\n }\n nonce = (_a = nonce !== null && nonce !== void 0 ? nonce : headers['dpop-nonce']) !== null && _a !== void 0 ? _a : headers['DPoP-Nonce'];\n return nonce;\n }\n return null;\n }\n }, _a.crypto = index, _a;\n}\nexport { mixinOAuth };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { stringToBase64Url } from '../../crypto/base64.js';\nimport { webcrypto as c } from '../../crypto/browser.js';\nimport { DEFAULT_CODE_CHALLENGE_METHOD, MIN_VERIFIER_LENGTH, MAX_VERIFIER_LENGTH } from '../../constants.js';\nfunction dec2hex(dec) {\n return ('0' + dec.toString(16)).substr(-2);\n}\nfunction getRandomString(length) {\n var a = new Uint8Array(Math.ceil(length / 2));\n c.getRandomValues(a);\n var str = Array.from(a, dec2hex).join('');\n return str.slice(0, length);\n}\nfunction generateVerifier(prefix) {\n var verifier = prefix || '';\n if (verifier.length < MIN_VERIFIER_LENGTH) {\n verifier = verifier + getRandomString(MIN_VERIFIER_LENGTH - verifier.length);\n }\n return encodeURIComponent(verifier).slice(0, MAX_VERIFIER_LENGTH);\n}\nfunction computeChallenge(str) {\n var buffer = new TextEncoder().encode(str);\n return c.subtle.digest('SHA-256', buffer).then(function (arrayBuffer) {\n var hash = String.fromCharCode.apply(null, new Uint8Array(arrayBuffer));\n var b64u = stringToBase64Url(hash);\n return b64u;\n });\n}\nvar PKCE = {\n DEFAULT_CODE_CHALLENGE_METHOD,\n generateVerifier,\n computeChallenge\n};\nexport { PKCE as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { base64UrlToString } from '../crypto/base64.js';\nfunction decodeToken(token) {\n var jwt = token.split('.');\n var decodedToken;\n try {\n decodedToken = {\n header: JSON.parse(base64UrlToString(jwt[0])),\n payload: JSON.parse(base64UrlToString(jwt[1])),\n signature: jwt[2]\n };\n } catch (e) {\n throw new AuthSdkError('Malformed token');\n }\n return decodedToken;\n}\nexport { decodeToken };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { generateState, generateNonce } from './oauth.js';\nimport { isBrowser } from '../../features.js';\nimport { removeNils } from '../../util/object.js';\nfunction getDefaultTokenParams(sdk) {\n const {\n pkce,\n clientId,\n redirectUri,\n responseType,\n responseMode,\n scopes,\n acrValues,\n maxAge,\n state,\n ignoreSignature,\n dpop\n } = sdk.options;\n const defaultRedirectUri = isBrowser() ? window.location.href : undefined;\n return removeNils({\n pkce,\n clientId,\n redirectUri: redirectUri || defaultRedirectUri,\n responseType: responseType || ['token', 'id_token'],\n responseMode,\n state: state || generateState(),\n nonce: generateNonce(),\n scopes: scopes || ['openid', 'email'],\n acrValues,\n maxAge,\n ignoreSignature,\n dpop\n });\n}\nexport { getDefaultTokenParams };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport '../errors/WWWAuthError.js';\nimport { getDefaultTokenParams } from './util/defaultTokenParams.js';\nimport { getOAuthUrls } from './util/oauth.js';\nimport { clone } from '../util/object.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport './types/Token.js';\nimport { postToTokenEndpoint } from './endpoints/token.js';\nimport { handleOAuthResponse } from './handleOAuthResponse.js';\nimport { findKeyPair, createDPoPKeyPair } from './dpop.js';\nasync function exchangeCodeForTokens(sdk, tokenParams, urls) {\n urls = urls || getOAuthUrls(sdk, tokenParams);\n tokenParams = Object.assign({}, getDefaultTokenParams(sdk), clone(tokenParams));\n const {\n authorizationCode,\n interactionCode,\n codeVerifier,\n clientId,\n redirectUri,\n scopes,\n ignoreSignature,\n state,\n acrValues,\n dpop,\n dpopPairId\n } = tokenParams;\n const getTokenOptions = {\n clientId,\n redirectUri,\n authorizationCode,\n interactionCode,\n codeVerifier,\n dpop\n };\n const responseType = ['token'];\n if (scopes.indexOf('openid') !== -1) {\n responseType.push('id_token');\n }\n const handleResponseOptions = {\n clientId,\n redirectUri,\n scopes,\n responseType,\n ignoreSignature,\n acrValues\n };\n try {\n if (dpop) {\n if (dpopPairId) {\n const keyPair = await findKeyPair(dpopPairId);\n getTokenOptions.dpopKeyPair = keyPair;\n handleResponseOptions.dpop = dpop;\n handleResponseOptions.dpopPairId = dpopPairId;\n } else {\n const {\n keyPair,\n keyPairId\n } = await createDPoPKeyPair();\n getTokenOptions.dpopKeyPair = keyPair;\n handleResponseOptions.dpop = dpop;\n handleResponseOptions.dpopPairId = keyPairId;\n }\n }\n const oauthResponse = await postToTokenEndpoint(sdk, getTokenOptions, urls);\n const tokenResponse = await handleOAuthResponse(sdk, handleResponseOptions, oauthResponse, urls);\n tokenResponse.code = authorizationCode;\n tokenResponse.state = state;\n return tokenResponse;\n } finally {\n sdk.transactionManager.clear();\n }\n}\nexport { exchangeCodeForTokens };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthApiError from '../../errors/AuthApiError.js';\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nimport '../../errors/WWWAuthError.js';\nimport { removeNils } from '../../util/object.js';\nimport { toQueryString } from '../../util/url.js';\nimport { httpRequest } from '../../http/request.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport { generateDPoPForTokenRequest, isDPoPNonceError } from '../dpop.js';\nfunction validateOptions(options) {\n if (!options.clientId) {\n throw new AuthSdkError('A clientId must be specified in the OktaAuth constructor to get a token');\n }\n if (!options.redirectUri) {\n throw new AuthSdkError('The redirectUri passed to /authorize must also be passed to /token');\n }\n if (!options.authorizationCode && !options.interactionCode) {\n throw new AuthSdkError('An authorization code (returned from /authorize) must be passed to /token');\n }\n if (!options.codeVerifier) {\n throw new AuthSdkError('The \"codeVerifier\" (generated and saved by your app) must be passed to /token');\n }\n}\nfunction getPostData(sdk, options) {\n var params = removeNils({\n 'client_id': options.clientId,\n 'redirect_uri': options.redirectUri,\n 'grant_type': options.interactionCode ? 'interaction_code' : 'authorization_code',\n 'code_verifier': options.codeVerifier\n });\n if (options.interactionCode) {\n params['interaction_code'] = options.interactionCode;\n } else if (options.authorizationCode) {\n params.code = options.authorizationCode;\n }\n const {\n clientSecret\n } = sdk.options;\n if (clientSecret) {\n params['client_secret'] = clientSecret;\n }\n return toQueryString(params).slice(1);\n}\nasync function makeTokenRequest(sdk, {\n url,\n data,\n nonce,\n dpopKeyPair\n}) {\n var _a, _b;\n const method = 'POST';\n const headers = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n };\n if (sdk.options.dpop) {\n if (!dpopKeyPair) {\n throw new AuthSdkError('DPoP is configured but no key pair was provided');\n }\n const proof = await generateDPoPForTokenRequest({\n url,\n method,\n nonce,\n keyPair: dpopKeyPair\n });\n headers.DPoP = proof;\n }\n try {\n const resp = await httpRequest(sdk, {\n url,\n method,\n args: data,\n headers\n });\n return resp;\n } catch (err) {\n if (isDPoPNonceError(err) && !nonce) {\n const dpopNonce = (_a = err.resp) === null || _a === void 0 ? void 0 : _a.headers['dpop-nonce'];\n if (!dpopNonce) {\n throw new AuthApiError({\n errorSummary: 'No `dpop-nonce` header found when required'\n }, (_b = err.resp) !== null && _b !== void 0 ? _b : undefined);\n }\n return makeTokenRequest(sdk, {\n url,\n data,\n dpopKeyPair,\n nonce: dpopNonce\n });\n }\n throw err;\n }\n}\nasync function postToTokenEndpoint(sdk, options, urls) {\n validateOptions(options);\n var data = getPostData(sdk, options);\n const params = {\n url: urls.tokenUrl,\n data,\n dpopKeyPair: options === null || options === void 0 ? void 0 : options.dpopKeyPair\n };\n return makeTokenRequest(sdk, params);\n}\nasync function postRefreshToken(sdk, options, refreshToken) {\n const data = Object.entries({\n client_id: options.clientId,\n grant_type: 'refresh_token',\n scope: refreshToken.scopes.join(' '),\n refresh_token: refreshToken.refreshToken\n }).map(function ([name, value]) {\n return name + '=' + encodeURIComponent(value);\n }).join('&');\n const params = {\n url: refreshToken.tokenUrl,\n data,\n dpopKeyPair: options === null || options === void 0 ? void 0 : options.dpopKeyPair\n };\n return makeTokenRequest(sdk, params);\n}\nexport { postRefreshToken, postToTokenEndpoint };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { stringToBase64Url, stringToBuffer, base64ToBase64Url, bufferToBase64Url } from '../crypto/base64.js';\nimport { webcrypto as c, btoa as b } from '../crypto/browser.js';\nimport { isOAuthError, isWWWAuthError } from '../errors/index.js';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nconst INDEXEDDB_NAME = 'OktaAuthJs';\nconst DB_KEY = 'DPoPKeys';\nfunction isDPoPNonceError(obj) {\n return (isOAuthError(obj) || isWWWAuthError(obj)) && obj.errorCode === 'use_dpop_nonce';\n}\nasync function createJwt(header, claims, signingKey) {\n const head = stringToBase64Url(JSON.stringify(header));\n const body = stringToBase64Url(JSON.stringify(claims));\n const signature = await c.subtle.sign({\n name: signingKey.algorithm.name\n }, signingKey, stringToBuffer(`${head}.${body}`));\n return `${head}.${body}.${base64ToBase64Url(bufferToBase64Url(signature))}`;\n}\nfunction cryptoRandomValue(byteLen = 32) {\n return [...c.getRandomValues(new Uint8Array(byteLen))].map(v => v.toString(16)).join('');\n}\nasync function generateKeyPair() {\n const algorithm = {\n name: 'RSASSA-PKCS1-v1_5',\n hash: 'SHA-256',\n modulusLength: 2048,\n publicExponent: new Uint8Array([0x01, 0x00, 0x01])\n };\n return c.subtle.generateKey(algorithm, false, ['sign', 'verify']);\n}\nasync function hashAccessToken(accessToken) {\n const buffer = new TextEncoder().encode(accessToken);\n const hash = await c.subtle.digest('SHA-256', buffer);\n return b(String.fromCharCode.apply(null, new Uint8Array(hash))).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n}\nfunction keyStore() {\n return new Promise((resolve, reject) => {\n try {\n const indexedDB = window.indexedDB;\n const req = indexedDB.open(INDEXEDDB_NAME, 1);\n req.onerror = function () {\n reject(req.error);\n };\n req.onupgradeneeded = function () {\n const db = req.result;\n db.createObjectStore(DB_KEY);\n };\n req.onsuccess = function () {\n const db = req.result;\n const tx = db.transaction(DB_KEY, 'readwrite');\n tx.onerror = function () {\n reject(tx.error);\n };\n const store = tx.objectStore(DB_KEY);\n resolve(store);\n tx.oncomplete = function () {\n db.close();\n };\n };\n } catch (err) {\n reject(err);\n }\n });\n}\nasync function invokeStoreMethod(method, ...args) {\n const store = await keyStore();\n return new Promise((resolve, reject) => {\n const req = store[method](...args);\n req.onsuccess = function () {\n resolve(req);\n };\n req.onerror = function () {\n reject(req.error);\n };\n });\n}\nasync function storeKeyPair(pairId, keyPair) {\n await invokeStoreMethod('add', keyPair, pairId);\n return keyPair;\n}\nasync function findKeyPair(pairId) {\n if (pairId) {\n const req = await invokeStoreMethod('get', pairId);\n if (req.result) {\n return req.result;\n }\n }\n throw new AuthSdkError(`Unable to locate dpop key pair required for refresh${pairId ? ` (${pairId})` : ''}`);\n}\nasync function clearDPoPKeyPair(pairId) {\n await invokeStoreMethod('delete', pairId);\n}\nasync function clearAllDPoPKeyPairs() {\n await invokeStoreMethod('clear');\n}\nasync function createDPoPKeyPair() {\n const keyPairId = cryptoRandomValue(4);\n const keyPair = await generateKeyPair();\n await storeKeyPair(keyPairId, keyPair);\n return {\n keyPair,\n keyPairId\n };\n}\nasync function clearDPoPKeyPairAfterRevoke(revokedToken, tokens) {\n var _a;\n let shouldClear = false;\n const {\n accessToken,\n refreshToken\n } = tokens;\n if (revokedToken === 'access' && accessToken && accessToken.tokenType === 'DPoP' && !refreshToken) {\n shouldClear = true;\n }\n if (revokedToken === 'refresh' && refreshToken && !accessToken) {\n shouldClear = true;\n }\n const pairId = (_a = accessToken === null || accessToken === void 0 ? void 0 : accessToken.dpopPairId) !== null && _a !== void 0 ? _a : refreshToken === null || refreshToken === void 0 ? void 0 : refreshToken.dpopPairId;\n if (shouldClear && pairId) {\n await clearDPoPKeyPair(pairId);\n }\n}\nasync function generateDPoPProof({\n keyPair,\n url,\n method,\n nonce,\n accessToken\n}) {\n const {\n kty,\n crv,\n e,\n n,\n x,\n y\n } = await c.subtle.exportKey('jwk', keyPair.publicKey);\n const header = {\n alg: 'RS256',\n typ: 'dpop+jwt',\n jwk: {\n kty,\n crv,\n e,\n n,\n x,\n y\n }\n };\n const claims = {\n htm: method,\n htu: url,\n iat: Math.floor(Date.now() / 1000),\n jti: cryptoRandomValue()\n };\n if (nonce) {\n claims.nonce = nonce;\n }\n if (accessToken) {\n claims.ath = await hashAccessToken(accessToken);\n }\n return createJwt(header, claims, keyPair.privateKey);\n}\nasync function generateDPoPForTokenRequest({\n keyPair,\n url,\n method,\n nonce\n}) {\n const params = {\n keyPair,\n url,\n method\n };\n if (nonce) {\n params.nonce = nonce;\n }\n return generateDPoPProof(params);\n}\nexport { clearAllDPoPKeyPairs, clearDPoPKeyPair, clearDPoPKeyPairAfterRevoke, createDPoPKeyPair, createJwt, cryptoRandomValue, findKeyPair, generateDPoPForTokenRequest, generateDPoPProof, generateKeyPair, isDPoPNonceError };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nimport '../../errors/WWWAuthError.js';\nimport { find } from '../../util/object.js';\nimport { get } from '../../http/request.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nfunction getWellKnown(sdk, issuer) {\n var authServerUri = issuer || sdk.options.issuer;\n return get(sdk, authServerUri + '/.well-known/openid-configuration', {\n cacheResponse: true\n });\n}\nfunction getKey(sdk, issuer, kid) {\n var httpCache = sdk.storageManager.getHttpCache(sdk.options.cookies);\n return getWellKnown(sdk, issuer).then(function (wellKnown) {\n var jwksUri = wellKnown['jwks_uri'];\n var cacheContents = httpCache.getStorage();\n var cachedResponse = cacheContents[jwksUri];\n if (cachedResponse && Date.now() / 1000 < cachedResponse.expiresAt) {\n var cachedKey = find(cachedResponse.response.keys, {\n kid: kid\n });\n if (cachedKey) {\n return cachedKey;\n }\n }\n httpCache.clearStorage(jwksUri);\n return get(sdk, jwksUri, {\n cacheResponse: true\n }).then(function (res) {\n var key = find(res.keys, {\n kid: kid\n });\n if (key) {\n return key;\n }\n throw new AuthSdkError('The key id, ' + kid + ', was not found in the server\\'s keys');\n });\n });\n}\nexport { getKey, getWellKnown };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nfunction validateClaims(sdk, claims, validationParams) {\n const aud = validationParams.clientId;\n const iss = validationParams.issuer;\n const nonce = validationParams.nonce;\n const acr = validationParams.acrValues;\n if (!claims || !iss || !aud) {\n throw new AuthSdkError('The jwt, iss, and aud arguments are all required');\n }\n if (nonce && claims.nonce !== nonce) {\n throw new AuthSdkError('OAuth flow response nonce doesn\\'t match request nonce');\n }\n const now = Math.floor(Date.now() / 1000);\n if (claims.iss !== iss) {\n throw new AuthSdkError('The issuer [' + claims.iss + '] ' + 'does not match [' + iss + ']');\n }\n if (Array.isArray(claims.aud) && claims.aud.indexOf(aud) < 0 || !Array.isArray(claims.aud) && claims.aud !== aud) {\n throw new AuthSdkError('The audience [' + claims.aud + '] ' + 'does not match [' + aud + ']');\n }\n if (acr && claims.acr !== acr) {\n throw new AuthSdkError('The acr [' + claims.acr + '] ' + 'does not match acr_values [' + acr + ']');\n }\n if (claims.iat > claims.exp) {\n throw new AuthSdkError('The JWT expired before it was issued');\n }\n if (!sdk.options.ignoreLifetime) {\n if (now - sdk.options.maxClockSkew > claims.exp) {\n throw new AuthSdkError('The JWT expired and is no longer valid');\n }\n if (claims.iat > now + sdk.options.maxClockSkew) {\n throw new AuthSdkError('The JWT was issued in the future');\n }\n }\n}\nexport { validateClaims };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { getWellKnown, getKey } from './endpoints/well-known.js';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { getOidcHash } from '../crypto/oidcHash.js';\nimport { verifyToken as verifyToken$1 } from '../crypto/verifyToken.js';\nimport { validateClaims } from './util/validateClaims.js';\nimport './types/Token.js';\nimport { decodeToken } from './decodeToken.js';\nasync function verifyToken(sdk, token, validationParams) {\n if (!token || !token.idToken) {\n throw new AuthSdkError('Only idTokens may be verified');\n }\n const jwt = decodeToken(token.idToken);\n const configuredIssuer = (validationParams === null || validationParams === void 0 ? void 0 : validationParams.issuer) || sdk.options.issuer;\n const {\n issuer\n } = await getWellKnown(sdk, configuredIssuer);\n const validationOptions = Object.assign({\n clientId: sdk.options.clientId,\n ignoreSignature: sdk.options.ignoreSignature\n }, validationParams, {\n issuer\n });\n validateClaims(sdk, jwt.payload, validationOptions);\n if (validationOptions.ignoreSignature == true || !sdk.features.isTokenVerifySupported()) {\n return token;\n }\n const key = await getKey(sdk, token.issuer, jwt.header.kid);\n const valid = await verifyToken$1(token.idToken, key);\n if (!valid) {\n throw new AuthSdkError('The token signature is not valid');\n }\n if (validationParams && validationParams.accessToken && token.claims.at_hash) {\n const hash = await getOidcHash(validationParams.accessToken);\n if (hash !== token.claims.at_hash) {\n throw new AuthSdkError('Token hash verification failed');\n }\n }\n return token;\n}\nexport { verifyToken };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { clone } from '../util/object.js';\nimport { getOAuthUrls } from './util/oauth.js';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport OAuthError from '../errors/OAuthError.js';\nimport '../errors/WWWAuthError.js';\nimport { verifyToken } from './verifyToken.js';\nimport { getDefaultTokenParams } from './util/defaultTokenParams.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport './types/Token.js';\nfunction validateResponse(res, oauthParams) {\n if (res['error'] && res['error_description']) {\n throw new OAuthError(res['error'], res['error_description']);\n }\n if (res.state !== oauthParams.state) {\n throw new AuthSdkError('OAuth flow response state doesn\\'t match request state');\n }\n if (oauthParams.dpop && res.token_type !== 'DPoP') {\n throw new AuthSdkError('Unable to parse OAuth flow response: DPoP was configured but \"token_type\" was not DPoP');\n }\n}\nasync function handleOAuthResponse(sdk, tokenParams, res, urls) {\n const pkce = sdk.options.pkce !== false;\n if (pkce && (res.code || res.interaction_code)) {\n return sdk.token.exchangeCodeForTokens(Object.assign({}, tokenParams, {\n authorizationCode: res.code,\n interactionCode: res.interaction_code\n }), urls);\n }\n tokenParams = tokenParams || getDefaultTokenParams(sdk);\n urls = urls || getOAuthUrls(sdk, tokenParams);\n let responseType = tokenParams.responseType || [];\n if (!Array.isArray(responseType) && responseType !== 'none') {\n responseType = [responseType];\n }\n let scopes;\n if (res.scope) {\n scopes = res.scope.split(' ');\n } else {\n scopes = clone(tokenParams.scopes);\n }\n const clientId = tokenParams.clientId || sdk.options.clientId;\n validateResponse(res, tokenParams);\n const tokenDict = {};\n const expiresIn = res.expires_in;\n const tokenType = res.token_type;\n const accessToken = res.access_token;\n const idToken = res.id_token;\n const refreshToken = res.refresh_token;\n const now = Math.floor(Date.now() / 1000);\n if (accessToken) {\n const accessJwt = sdk.token.decode(accessToken);\n tokenDict.accessToken = {\n accessToken: accessToken,\n claims: accessJwt.payload,\n expiresAt: Number(expiresIn) + now,\n tokenType: tokenType,\n scopes: scopes,\n authorizeUrl: urls.authorizeUrl,\n userinfoUrl: urls.userinfoUrl\n };\n if (tokenParams.dpopPairId) {\n tokenDict.accessToken.dpopPairId = tokenParams.dpopPairId;\n }\n }\n if (refreshToken) {\n tokenDict.refreshToken = {\n refreshToken: refreshToken,\n expiresAt: Number(expiresIn) + now,\n scopes: scopes,\n tokenUrl: urls.tokenUrl,\n authorizeUrl: urls.authorizeUrl,\n issuer: urls.issuer\n };\n if (tokenParams.dpopPairId) {\n tokenDict.refreshToken.dpopPairId = tokenParams.dpopPairId;\n }\n }\n if (idToken) {\n const idJwt = sdk.token.decode(idToken);\n const idTokenObj = {\n idToken: idToken,\n claims: idJwt.payload,\n expiresAt: idJwt.payload.exp - idJwt.payload.iat + now,\n scopes: scopes,\n authorizeUrl: urls.authorizeUrl,\n issuer: urls.issuer,\n clientId: clientId\n };\n const validationParams = {\n clientId: clientId,\n issuer: urls.issuer,\n nonce: tokenParams.nonce,\n accessToken: accessToken,\n acrValues: tokenParams.acrValues\n };\n if (tokenParams.ignoreSignature !== undefined) {\n validationParams.ignoreSignature = tokenParams.ignoreSignature;\n }\n await verifyToken(sdk, idTokenObj, validationParams);\n tokenDict.idToken = idTokenObj;\n }\n if (responseType.indexOf('token') !== -1 && !tokenDict.accessToken) {\n throw new AuthSdkError('Unable to parse OAuth flow response: response type \"token\" was requested but \"access_token\" was not returned.');\n }\n if (responseType.indexOf('id_token') !== -1 && !tokenDict.idToken) {\n throw new AuthSdkError('Unable to parse OAuth flow response: response type \"id_token\" was requested but \"id_token\" was not returned.');\n }\n return {\n tokens: tokenDict,\n state: res.state,\n code: res.code,\n responseType\n };\n}\nexport { handleOAuthResponse };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthApiError from '../errors/AuthApiError.js';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport OAuthError from '../errors/OAuthError.js';\nimport WWWAuthError from '../errors/WWWAuthError.js';\nimport { httpRequest } from '../http/request.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport { isAccessToken, isIDToken } from './types/Token.js';\nasync function getUserInfo(sdk, accessTokenObject, idTokenObject) {\n if (!accessTokenObject) {\n accessTokenObject = (await sdk.tokenManager.getTokens()).accessToken;\n }\n if (!idTokenObject) {\n idTokenObject = (await sdk.tokenManager.getTokens()).idToken;\n }\n if (!accessTokenObject || !isAccessToken(accessTokenObject)) {\n return Promise.reject(new AuthSdkError('getUserInfo requires an access token object'));\n }\n if (!idTokenObject || !isIDToken(idTokenObject)) {\n return Promise.reject(new AuthSdkError('getUserInfo requires an ID token object'));\n }\n const options = {\n url: accessTokenObject.userinfoUrl,\n method: 'GET',\n accessToken: accessTokenObject.accessToken\n };\n if (sdk.options.dpop) {\n const headers = await sdk.getDPoPAuthorizationHeaders(Object.assign(Object.assign({}, options), {\n accessToken: accessTokenObject\n }));\n options.headers = headers;\n delete options.accessToken;\n }\n return httpRequest(sdk, options).then(userInfo => {\n if (userInfo.sub === idTokenObject.claims.sub) {\n return userInfo;\n }\n return Promise.reject(new AuthSdkError('getUserInfo request was rejected due to token mismatch'));\n }).catch(function (err) {\n var _a;\n if (err instanceof WWWAuthError && !sdk.options.dpop) {\n const {\n error,\n errorDescription\n } = err;\n throw new OAuthError(error, errorDescription);\n }\n if (!sdk.options.dpop) {\n let e = err;\n if (err instanceof AuthApiError && ((_a = err === null || err === void 0 ? void 0 : err.meta) === null || _a === void 0 ? void 0 : _a.wwwAuthHeader)) {\n e = WWWAuthError.parseHeader(err.meta.wwwAuthHeader);\n }\n if (e instanceof WWWAuthError) {\n const {\n error,\n errorDescription\n } = e;\n throw new OAuthError(error, errorDescription);\n }\n }\n throw err;\n });\n}\nexport { getUserInfo };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nimport '../../errors/WWWAuthError.js';\nfunction addListener(eventTarget, name, fn) {\n if (eventTarget.addEventListener) {\n eventTarget.addEventListener(name, fn);\n } else {\n eventTarget.attachEvent('on' + name, fn);\n }\n}\nfunction removeListener(eventTarget, name, fn) {\n if (eventTarget.removeEventListener) {\n eventTarget.removeEventListener(name, fn);\n } else {\n eventTarget.detachEvent('on' + name, fn);\n }\n}\nfunction loadFrame(src) {\n var iframe = document.createElement('iframe');\n iframe.style.display = 'none';\n iframe.src = src;\n return document.body.appendChild(iframe);\n}\nfunction loadPopup(src, options) {\n var title = options.popupTitle || 'External Identity Provider User Authentication';\n var appearance = 'toolbar=no, scrollbars=yes, resizable=yes, ' + 'top=100, left=500, width=600, height=600';\n return window.open(src, title, appearance);\n}\nfunction addPostMessageListener(sdk, timeout, state) {\n var responseHandler;\n var timeoutId;\n var msgReceivedOrTimeout = new Promise(function (resolve, reject) {\n responseHandler = function responseHandler(e) {\n if (!e.data || e.data.state !== state) {\n return;\n }\n if (e.origin !== sdk.getIssuerOrigin()) {\n return reject(new AuthSdkError('The request does not match client configuration'));\n }\n resolve(e.data);\n };\n addListener(window, 'message', responseHandler);\n timeoutId = setTimeout(function () {\n reject(new AuthSdkError('OAuth flow timed out'));\n }, timeout || 120000);\n });\n return msgReceivedOrTimeout.finally(function () {\n clearTimeout(timeoutId);\n removeListener(window, 'message', responseHandler);\n });\n}\nexport { addListener, addPostMessageListener, loadFrame, loadPopup, removeListener };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { getWellKnown } from '../endpoints/well-known.js';\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nimport '../../errors/WWWAuthError.js';\nimport { getDefaultTokenParams } from './defaultTokenParams.js';\nimport { DEFAULT_CODE_CHALLENGE_METHOD } from '../../constants.js';\nimport PKCE from './pkce.js';\nfunction assertPKCESupport(sdk) {\n if (!sdk.features.isPKCESupported()) {\n var errorMessage = 'PKCE requires a modern browser with encryption support running in a secure context.';\n if (!sdk.features.isHTTPS()) {\n errorMessage += '\\nThe current page is not being served with HTTPS protocol. PKCE requires secure HTTPS protocol.';\n }\n if (!sdk.features.hasTextEncoder()) {\n errorMessage += '\\n\"TextEncoder\" is not defined. To use PKCE, you may need to include a polyfill/shim for this browser.';\n }\n throw new AuthSdkError(errorMessage);\n }\n}\nasync function validateCodeChallengeMethod(sdk, codeChallengeMethod) {\n codeChallengeMethod = codeChallengeMethod || sdk.options.codeChallengeMethod || DEFAULT_CODE_CHALLENGE_METHOD;\n const wellKnownResponse = await getWellKnown(sdk);\n var methods = wellKnownResponse['code_challenge_methods_supported'] || [];\n if (methods.indexOf(codeChallengeMethod) === -1) {\n throw new AuthSdkError('Invalid code_challenge_method');\n }\n return codeChallengeMethod;\n}\nasync function preparePKCE(sdk, tokenParams) {\n let {\n codeVerifier,\n codeChallenge,\n codeChallengeMethod\n } = tokenParams;\n codeChallenge = codeChallenge || sdk.options.codeChallenge;\n if (!codeChallenge) {\n assertPKCESupport(sdk);\n codeVerifier = codeVerifier || PKCE.generateVerifier();\n codeChallenge = await PKCE.computeChallenge(codeVerifier);\n }\n codeChallengeMethod = await validateCodeChallengeMethod(sdk, codeChallengeMethod);\n tokenParams = Object.assign(Object.assign({}, tokenParams), {\n responseType: 'code',\n codeVerifier,\n codeChallenge,\n codeChallengeMethod\n });\n return tokenParams;\n}\nasync function prepareTokenParams(sdk, tokenParams = {}) {\n const defaults = getDefaultTokenParams(sdk);\n tokenParams = Object.assign(Object.assign({}, defaults), tokenParams);\n if (tokenParams.dpop && !sdk.features.isDPoPSupported()) {\n throw new AuthSdkError('DPoP has been configured, but is not supported by browser');\n }\n if (tokenParams.pkce === false) {\n return tokenParams;\n }\n return preparePKCE(sdk, tokenParams);\n}\nexport { assertPKCESupport, preparePKCE, prepareTokenParams, validateCodeChallengeMethod };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { removeNils } from '../../util/object.js';\nimport { isString } from '../../util/types.js';\nimport { toQueryString } from '../../util/url.js';\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nimport '../../errors/WWWAuthError.js';\nfunction convertTokenParamsToOAuthParams(tokenParams) {\n if (!tokenParams.clientId) {\n throw new AuthSdkError('A clientId must be specified in the OktaAuth constructor to get a token');\n }\n if (isString(tokenParams.responseType) && tokenParams.responseType.indexOf(' ') !== -1) {\n throw new AuthSdkError('Multiple OAuth responseTypes must be defined as an array');\n }\n var oauthParams = {\n 'client_id': tokenParams.clientId,\n 'code_challenge': tokenParams.codeChallenge,\n 'code_challenge_method': tokenParams.codeChallengeMethod,\n 'display': tokenParams.display,\n 'idp': tokenParams.idp,\n 'idp_scope': tokenParams.idpScope,\n 'login_hint': tokenParams.loginHint,\n 'max_age': tokenParams.maxAge,\n 'nonce': tokenParams.nonce,\n 'prompt': tokenParams.prompt,\n 'redirect_uri': tokenParams.redirectUri,\n 'response_mode': tokenParams.responseMode,\n 'response_type': tokenParams.responseType,\n 'sessionToken': tokenParams.sessionToken,\n 'state': tokenParams.state,\n 'acr_values': tokenParams.acrValues,\n 'enroll_amr_values': tokenParams.enrollAmrValues\n };\n oauthParams = removeNils(oauthParams);\n ['idp_scope', 'response_type', 'enroll_amr_values'].forEach(function (mayBeArray) {\n if (Array.isArray(oauthParams[mayBeArray])) {\n oauthParams[mayBeArray] = oauthParams[mayBeArray].join(' ');\n }\n });\n if (tokenParams.responseType.indexOf('id_token') !== -1 && tokenParams.scopes.indexOf('openid') === -1) {\n throw new AuthSdkError('openid scope must be specified in the scopes argument when requesting an id_token');\n } else if (tokenParams.scopes) {\n oauthParams.scope = tokenParams.scopes.join(' ');\n }\n return oauthParams;\n}\nfunction buildAuthorizeParams(tokenParams) {\n var oauthQueryParams = convertTokenParamsToOAuthParams(tokenParams);\n return toQueryString(Object.assign(Object.assign({}, oauthQueryParams), tokenParams.extraParams && Object.assign({}, tokenParams.extraParams)));\n}\nexport { buildAuthorizeParams, convertTokenParamsToOAuthParams };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { addPostMessageListener, loadFrame } from './util/browser.js';\nimport { getOAuthUrls } from './util/oauth.js';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { prepareTokenParams } from './util/prepareTokenParams.js';\nimport './types/Token.js';\nimport { buildAuthorizeParams } from './endpoints/authorize.js';\nimport { handleOAuthResponse } from './handleOAuthResponse.js';\nfunction getToken(sdk, options) {\n if (arguments.length > 2) {\n return Promise.reject(new AuthSdkError('As of version 3.0, \"getToken\" takes only a single set of options'));\n }\n options = options || {};\n const popupWindow = options.popupWindow;\n options.popupWindow = undefined;\n return prepareTokenParams(sdk, options).then(function (tokenParams) {\n var sessionTokenOverrides = {\n prompt: 'none',\n responseMode: 'okta_post_message',\n display: null\n };\n var idpOverrides = {\n display: 'popup'\n };\n if (options.sessionToken) {\n Object.assign(tokenParams, sessionTokenOverrides);\n } else if (options.idp) {\n Object.assign(tokenParams, idpOverrides);\n }\n var requestUrl, endpoint, urls;\n urls = getOAuthUrls(sdk, tokenParams);\n endpoint = options.codeVerifier ? urls.tokenUrl : urls.authorizeUrl;\n requestUrl = endpoint + buildAuthorizeParams(tokenParams);\n var flowType;\n if (tokenParams.sessionToken || tokenParams.display === null) {\n flowType = 'IFRAME';\n } else if (tokenParams.display === 'popup') {\n flowType = 'POPUP';\n } else {\n flowType = 'IMPLICIT';\n }\n switch (flowType) {\n case 'IFRAME':\n var iframePromise = addPostMessageListener(sdk, options.timeout, tokenParams.state);\n var iframeEl = loadFrame(requestUrl);\n return iframePromise.then(function (res) {\n return handleOAuthResponse(sdk, tokenParams, res, urls);\n }).finally(function () {\n var _a;\n if (document.body.contains(iframeEl)) {\n (_a = iframeEl.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild(iframeEl);\n }\n });\n case 'POPUP':\n var oauthPromise;\n if (tokenParams.responseMode === 'okta_post_message') {\n if (!sdk.features.isPopupPostMessageSupported()) {\n throw new AuthSdkError('This browser doesn\\'t have full postMessage support');\n }\n oauthPromise = addPostMessageListener(sdk, options.timeout, tokenParams.state);\n }\n if (popupWindow) {\n popupWindow.location.assign(requestUrl);\n }\n var popupPromise = new Promise(function (resolve, reject) {\n var closePoller = setInterval(function () {\n if (!popupWindow || popupWindow.closed) {\n clearInterval(closePoller);\n reject(new AuthSdkError('Unable to parse OAuth flow response'));\n }\n }, 100);\n oauthPromise.then(function (res) {\n clearInterval(closePoller);\n resolve(res);\n }).catch(function (err) {\n clearInterval(closePoller);\n reject(err);\n });\n });\n return popupPromise.then(function (res) {\n return handleOAuthResponse(sdk, tokenParams, res, urls);\n }).finally(function () {\n if (popupWindow && !popupWindow.closed) {\n popupWindow.close();\n }\n });\n default:\n throw new AuthSdkError('The full page redirect flow is not supported');\n }\n });\n}\nexport { getToken };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { clone } from '../util/object.js';\nimport { getToken } from './getToken.js';\nfunction getWithoutPrompt(sdk, options) {\n if (arguments.length > 2) {\n return Promise.reject(new AuthSdkError('As of version 3.0, \"getWithoutPrompt\" takes only a single set of options'));\n }\n options = clone(options) || {};\n Object.assign(options, {\n prompt: 'none',\n responseMode: 'okta_post_message',\n display: null\n });\n return getToken(sdk, options);\n}\nexport { getWithoutPrompt };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { clone } from '../util/object.js';\nimport { getToken } from './getToken.js';\nimport { loadPopup } from './util/browser.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport './types/Token.js';\nfunction getWithPopup(sdk, options) {\n if (arguments.length > 2) {\n return Promise.reject(new AuthSdkError('As of version 3.0, \"getWithPopup\" takes only a single set of options'));\n }\n const popupWindow = loadPopup('/', options);\n options = clone(options) || {};\n Object.assign(options, {\n display: 'popup',\n responseMode: 'okta_post_message',\n popupWindow\n });\n return getToken(sdk, options);\n}\nexport { getWithPopup };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { clone } from '../util/object.js';\nimport { createOAuthMeta } from './util/oauthMeta.js';\nimport { prepareTokenParams } from './util/prepareTokenParams.js';\nimport './types/Token.js';\nimport { buildAuthorizeParams } from './endpoints/authorize.js';\nasync function getWithRedirect(sdk, options) {\n if (arguments.length > 2) {\n return Promise.reject(new AuthSdkError('As of version 3.0, \"getWithRedirect\" takes only a single set of options'));\n }\n options = clone(options) || {};\n const tokenParams = await prepareTokenParams(sdk, options);\n const meta = createOAuthMeta(sdk, tokenParams);\n const requestUrl = meta.urls.authorizeUrl + buildAuthorizeParams(tokenParams);\n sdk.transactionManager.save(meta);\n if (sdk.options.setLocation) {\n sdk.options.setLocation(requestUrl);\n } else {\n window.location.assign(requestUrl);\n }\n}\nexport { getWithRedirect };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { isString } from '../util/types.js';\nimport { isInteractionRequiredError } from './util/errors.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport { urlParamsToObject } from './util/urlParams.js';\nimport './types/Token.js';\nimport { handleOAuthResponse } from './handleOAuthResponse.js';\nfunction removeHash(sdk) {\n var nativeHistory = sdk.token.parseFromUrl._getHistory();\n var nativeDoc = sdk.token.parseFromUrl._getDocument();\n var nativeLoc = sdk.token.parseFromUrl._getLocation();\n if (nativeHistory && nativeHistory.replaceState) {\n nativeHistory.replaceState(null, nativeDoc.title, nativeLoc.pathname + nativeLoc.search);\n } else {\n nativeLoc.hash = '';\n }\n}\nfunction removeSearch(sdk) {\n var nativeHistory = sdk.token.parseFromUrl._getHistory();\n var nativeDoc = sdk.token.parseFromUrl._getDocument();\n var nativeLoc = sdk.token.parseFromUrl._getLocation();\n if (nativeHistory && nativeHistory.replaceState) {\n nativeHistory.replaceState(null, nativeDoc.title, nativeLoc.pathname + nativeLoc.hash);\n } else {\n nativeLoc.search = '';\n }\n}\nfunction getResponseMode(sdk) {\n var defaultResponseMode = sdk.options.pkce ? 'query' : 'fragment';\n var responseMode = sdk.options.responseMode || defaultResponseMode;\n return responseMode;\n}\nfunction parseOAuthResponseFromUrl(sdk, options) {\n options = options || {};\n if (isString(options)) {\n options = {\n url: options\n };\n } else {\n options = options;\n }\n var url = options.url;\n var responseMode = options.responseMode || getResponseMode(sdk);\n var nativeLoc = sdk.token.parseFromUrl._getLocation();\n var paramStr;\n if (responseMode === 'query') {\n paramStr = url ? url.substring(url.indexOf('?')) : nativeLoc.search;\n } else {\n paramStr = url ? url.substring(url.indexOf('#')) : nativeLoc.hash;\n }\n if (!paramStr) {\n throw new AuthSdkError('Unable to parse a token from the url');\n }\n return urlParamsToObject(paramStr);\n}\nfunction cleanOAuthResponseFromUrl(sdk, options) {\n const responseMode = options.responseMode || getResponseMode(sdk);\n responseMode === 'query' ? removeSearch(sdk) : removeHash(sdk);\n}\nasync function parseFromUrl(sdk, options) {\n options = options || {};\n if (isString(options)) {\n options = {\n url: options\n };\n } else {\n options = options;\n }\n const res = parseOAuthResponseFromUrl(sdk, options);\n const state = res.state;\n const oauthParams = sdk.transactionManager.load({\n state\n });\n if (!oauthParams) {\n if (sdk.options.pkce) {\n throw new AuthSdkError('Could not load PKCE codeVerifier from storage. This may indicate the auth flow has already completed or multiple auth flows are executing concurrently.', undefined);\n }\n throw new AuthSdkError('Unable to retrieve OAuth redirect params from storage');\n }\n const urls = oauthParams.urls;\n delete oauthParams.urls;\n if (!options.url) {\n cleanOAuthResponseFromUrl(sdk, options);\n }\n return handleOAuthResponse(sdk, oauthParams, res, urls).catch(err => {\n if (!isInteractionRequiredError(err)) {\n sdk.transactionManager.clear({\n state\n });\n }\n throw err;\n }).then(res => {\n sdk.transactionManager.clear({\n state\n });\n return res;\n });\n}\nexport { cleanOAuthResponseFromUrl, getResponseMode, parseFromUrl, parseOAuthResponseFromUrl };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { isAuthApiError } from '../../errors/index.js';\nfunction isSameRefreshToken(a, b) {\n return a.refreshToken === b.refreshToken;\n}\nfunction isRefreshTokenError(err) {\n if (!isAuthApiError(err)) {\n return false;\n }\n if (!err.xhr || !err.xhr.responseJSON) {\n return false;\n }\n const {\n responseJSON\n } = err.xhr;\n if (responseJSON.error === 'invalid_grant') {\n return true;\n }\n return false;\n}\nexport { isRefreshTokenError, isSameRefreshToken };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { getOAuthUrls } from './util/oauth.js';\nimport { isSameRefreshToken } from './util/refreshToken.js';\nimport { handleOAuthResponse } from './handleOAuthResponse.js';\nimport { postRefreshToken } from './endpoints/token.js';\nimport { findKeyPair } from './dpop.js';\nimport { isRefreshTokenInvalidError } from './util/errors.js';\nasync function renewTokensWithRefresh(sdk, tokenParams, refreshTokenObject) {\n const {\n clientId,\n dpop\n } = sdk.options;\n if (!clientId) {\n throw new AuthSdkError('A clientId must be specified in the OktaAuth constructor to renew tokens');\n }\n try {\n const renewTokenParams = Object.assign({}, tokenParams, {\n clientId\n });\n const endpointParams = Object.assign({}, renewTokenParams);\n if (dpop) {\n const keyPair = await findKeyPair(refreshTokenObject === null || refreshTokenObject === void 0 ? void 0 : refreshTokenObject.dpopPairId);\n endpointParams.dpopKeyPair = keyPair;\n renewTokenParams.dpop = dpop;\n renewTokenParams.dpopPairId = refreshTokenObject.dpopPairId;\n }\n const tokenResponse = await postRefreshToken(sdk, endpointParams, refreshTokenObject);\n const urls = getOAuthUrls(sdk, tokenParams);\n const {\n tokens\n } = await handleOAuthResponse(sdk, renewTokenParams, tokenResponse, urls);\n const {\n refreshToken\n } = tokens;\n if (refreshToken && !isSameRefreshToken(refreshToken, refreshTokenObject)) {\n sdk.tokenManager.updateRefreshToken(refreshToken);\n }\n return tokens;\n } catch (err) {\n if (isRefreshTokenInvalidError(err)) {\n sdk.tokenManager.removeRefreshToken();\n }\n throw err;\n }\n}\nexport { renewTokensWithRefresh };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { isIDToken, isAccessToken } from './types/Token.js';\nimport { getWithoutPrompt } from './getWithoutPrompt.js';\nimport { renewTokensWithRefresh } from './renewTokensWithRefresh.js';\nfunction throwInvalidTokenError() {\n throw new AuthSdkError('Renew must be passed a token with an array of scopes and an accessToken or idToken');\n}\nfunction getSingleToken(originalToken, tokens) {\n if (isIDToken(originalToken)) {\n return tokens.idToken;\n }\n if (isAccessToken(originalToken)) {\n return tokens.accessToken;\n }\n throwInvalidTokenError();\n}\nasync function renewToken(sdk, token) {\n if (!isIDToken(token) && !isAccessToken(token)) {\n throwInvalidTokenError();\n }\n let tokens = sdk.tokenManager.getTokensSync();\n if (tokens.refreshToken) {\n tokens = await renewTokensWithRefresh(sdk, {\n scopes: token.scopes\n }, tokens.refreshToken);\n return getSingleToken(token, tokens);\n }\n var responseType;\n if (sdk.options.pkce) {\n responseType = 'code';\n } else if (isAccessToken(token)) {\n responseType = 'token';\n } else {\n responseType = 'id_token';\n }\n const {\n scopes,\n authorizeUrl,\n userinfoUrl,\n issuer,\n dpopPairId\n } = token;\n return getWithoutPrompt(sdk, {\n responseType,\n scopes,\n authorizeUrl,\n userinfoUrl,\n issuer,\n dpopPairId\n }).then(function (res) {\n return getSingleToken(token, res.tokens);\n });\n}\nexport { renewToken };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { getWithoutPrompt } from './getWithoutPrompt.js';\nimport { renewTokensWithRefresh } from './renewTokensWithRefresh.js';\nimport { getDefaultTokenParams } from './util/defaultTokenParams.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport './types/Token.js';\nasync function renewTokens(sdk, options) {\n var _a;\n const tokens = (_a = options === null || options === void 0 ? void 0 : options.tokens) !== null && _a !== void 0 ? _a : sdk.tokenManager.getTokensSync();\n if (tokens.refreshToken) {\n return renewTokensWithRefresh(sdk, options || {}, tokens.refreshToken);\n }\n if (!tokens.accessToken && !tokens.idToken) {\n throw new AuthSdkError('renewTokens() was called but there is no existing token');\n }\n const accessToken = tokens.accessToken || {};\n const idToken = tokens.idToken || {};\n const scopes = accessToken.scopes || idToken.scopes;\n if (!scopes) {\n throw new AuthSdkError('renewTokens: invalid tokens: could not read scopes');\n }\n const authorizeUrl = accessToken.authorizeUrl || idToken.authorizeUrl;\n if (!authorizeUrl) {\n throw new AuthSdkError('renewTokens: invalid tokens: could not read authorizeUrl');\n }\n const userinfoUrl = accessToken.userinfoUrl || sdk.options.userinfoUrl;\n const issuer = idToken.issuer || sdk.options.issuer;\n const dpopPairId = accessToken === null || accessToken === void 0 ? void 0 : accessToken.dpopPairId;\n options = Object.assign({\n scopes,\n authorizeUrl,\n userinfoUrl,\n issuer,\n dpopPairId\n }, options);\n if (sdk.options.pkce) {\n options.responseType = 'code';\n } else {\n const {\n responseType\n } = getDefaultTokenParams(sdk);\n options.responseType = responseType;\n }\n return getWithoutPrompt(sdk, options).then(res => res.tokens);\n}\nexport { renewTokens };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { btoa as b } from '../crypto/browser.js';\nimport { toQueryString } from '../util/url.js';\nimport { post } from '../http/request.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport { getOAuthUrls } from './util/oauth.js';\nasync function revokeToken(sdk, token) {\n let accessToken = '';\n let refreshToken = '';\n if (token) {\n accessToken = token.accessToken;\n refreshToken = token.refreshToken;\n }\n if (!accessToken && !refreshToken) {\n throw new AuthSdkError('A valid access or refresh token object is required');\n }\n var clientId = sdk.options.clientId;\n var clientSecret = sdk.options.clientSecret;\n if (!clientId) {\n throw new AuthSdkError('A clientId must be specified in the OktaAuth constructor to revoke a token');\n }\n var revokeUrl = getOAuthUrls(sdk).revokeUrl;\n var args = toQueryString({\n token_type_hint: refreshToken ? 'refresh_token' : 'access_token',\n token: refreshToken || accessToken\n }).slice(1);\n var creds = clientSecret ? b(`${clientId}:${clientSecret}`) : b(clientId);\n return post(sdk, revokeUrl, args, {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Authorization': 'Basic ' + creds\n }\n });\n}\nexport { revokeToken };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { getWellKnown } from './endpoints/well-known.js';\nimport { btoa as b } from '../crypto/browser.js';\nimport { toQueryString } from '../util/url.js';\nimport { post } from '../http/request.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport { TokenKind } from './types/Token.js';\nconst hintMap = {\n accessToken: 'access_token',\n idToken: 'id_token',\n refreshToken: 'refresh_token'\n};\nasync function oidcIntrospect(sdk, kind, token) {\n var _a;\n let issuer;\n let clientId = sdk.options.clientId;\n let clientSecret = sdk.options.clientSecret;\n if (!token) {\n token = sdk.tokenManager.getTokens()[kind];\n }\n if (!token) {\n throw new AuthSdkError(`unable to find ${kind} in storage or fn params`);\n }\n if (kind !== TokenKind.ACCESS) {\n issuer = token === null || token === void 0 ? void 0 : token.issuer;\n } else {\n issuer = (_a = token === null || token === void 0 ? void 0 : token.claims) === null || _a === void 0 ? void 0 : _a.iss;\n }\n issuer = issuer || sdk.options.issuer;\n if (!clientId) {\n throw new AuthSdkError('A clientId must be specified in the OktaAuth constructor to introspect a token');\n }\n if (!issuer) {\n throw new AuthSdkError('Unable to find issuer');\n }\n const {\n introspection_endpoint: introspectUrl\n } = await getWellKnown(sdk, issuer);\n const authHeader = clientSecret ? b(`${clientId}:${clientSecret}`) : b(clientId);\n const args = toQueryString({\n token_type_hint: hintMap[kind],\n token: token[kind]\n }).slice(1);\n return post(sdk, introspectUrl, args, {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Authorization': 'Basic ' + authHeader\n }\n });\n}\nexport { oidcIntrospect };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { getOAuthUrls } from './oauth.js';\nfunction createEnrollAuthenticatorMeta(sdk, params) {\n const issuer = sdk.options.issuer;\n const urls = getOAuthUrls(sdk, params);\n const oauthMeta = {\n issuer,\n urls,\n clientId: params.clientId,\n redirectUri: params.redirectUri,\n responseType: params.responseType,\n responseMode: params.responseMode,\n state: params.state,\n acrValues: params.acrValues,\n enrollAmrValues: params.enrollAmrValues\n };\n return oauthMeta;\n}\nexport { createEnrollAuthenticatorMeta };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { clone } from '../util/object.js';\nimport '../errors/WWWAuthError.js';\nimport { createEnrollAuthenticatorMeta } from './util/enrollAuthenticatorMeta.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport { prepareEnrollAuthenticatorParams } from './util/prepareEnrollAuthenticatorParams.js';\nimport './types/Token.js';\nimport { buildAuthorizeParams } from './endpoints/authorize.js';\nfunction enrollAuthenticator(sdk, options) {\n options = clone(options) || {};\n const params = prepareEnrollAuthenticatorParams(sdk, options);\n const meta = createEnrollAuthenticatorMeta(sdk, params);\n const requestUrl = meta.urls.authorizeUrl + buildAuthorizeParams(params);\n sdk.transactionManager.save(meta);\n if (sdk.options.setLocation) {\n sdk.options.setLocation(requestUrl);\n } else {\n window.location.assign(requestUrl);\n }\n}\nexport { enrollAuthenticator };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { generateState } from './oauth.js';\nimport { isBrowser } from '../../features.js';\nimport { removeNils } from '../../util/object.js';\nfunction getDefaultEnrollAuthenticatorParams(sdk) {\n const {\n clientId,\n redirectUri,\n responseMode,\n state\n } = sdk.options;\n const defaultRedirectUri = isBrowser() ? window.location.href : undefined;\n return removeNils({\n clientId,\n redirectUri: redirectUri || defaultRedirectUri,\n responseMode,\n state: state || generateState(),\n responseType: 'none',\n prompt: 'enroll_authenticator'\n });\n}\nexport { getDefaultEnrollAuthenticatorParams };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nimport '../../errors/WWWAuthError.js';\nimport { getDefaultEnrollAuthenticatorParams } from './defaultEnrollAuthenticatorParams.js';\nfunction prepareParams(params) {\n params = Object.assign(Object.assign({}, params), {\n responseType: 'none',\n prompt: 'enroll_authenticator',\n maxAge: 0\n });\n if (!params.enrollAmrValues) {\n throw new AuthSdkError('enroll_amr_values must be specified');\n }\n if (!params.acrValues) {\n throw new AuthSdkError('acr_values must be specified');\n }\n delete params.scopes;\n delete params.nonce;\n return params;\n}\nfunction prepareEnrollAuthenticatorParams(sdk, options) {\n return prepareParams(Object.assign(Object.assign({}, getDefaultEnrollAuthenticatorParams(sdk)), options));\n}\nexport { prepareEnrollAuthenticatorParams };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { PromiseQueue } from '../../util/PromiseQueue.js';\nimport { decodeToken } from '../decodeToken.js';\nimport { exchangeCodeForTokens } from '../exchangeCodeForTokens.js';\nimport { getUserInfo } from '../getUserInfo.js';\nimport { getWithoutPrompt } from '../getWithoutPrompt.js';\nimport { getWithPopup } from '../getWithPopup.js';\nimport { getWithRedirect } from '../getWithRedirect.js';\nimport { parseFromUrl } from '../parseFromUrl.js';\nimport { renewToken } from '../renewToken.js';\nimport { renewTokens } from '../renewTokens.js';\nimport { renewTokensWithRefresh } from '../renewTokensWithRefresh.js';\nimport { revokeToken } from '../revokeToken.js';\nimport { oidcIntrospect } from '../introspect.js';\nimport '../../errors/WWWAuthError.js';\nimport { isLoginRedirect } from '../util/loginRedirect.js';\nimport { prepareTokenParams } from '../util/prepareTokenParams.js';\nimport '../types/Token.js';\nimport { verifyToken } from '../verifyToken.js';\nimport { enrollAuthenticator } from '../enrollAuthenticator.js';\nfunction createTokenAPI(sdk, queue) {\n const useQueue = method => {\n return PromiseQueue.prototype.push.bind(queue, method, null);\n };\n const getWithRedirectFn = useQueue(getWithRedirect.bind(null, sdk));\n const parseFromUrlFn = useQueue(parseFromUrl.bind(null, sdk));\n const parseFromUrlApi = Object.assign(parseFromUrlFn, {\n _getHistory: function () {\n return window.history;\n },\n _getLocation: function () {\n return window.location;\n },\n _getDocument: function () {\n return window.document;\n }\n });\n const token = {\n prepareTokenParams: prepareTokenParams.bind(null, sdk),\n exchangeCodeForTokens: exchangeCodeForTokens.bind(null, sdk),\n getWithoutPrompt: getWithoutPrompt.bind(null, sdk),\n getWithPopup: getWithPopup.bind(null, sdk),\n getWithRedirect: getWithRedirectFn,\n parseFromUrl: parseFromUrlApi,\n decode: decodeToken,\n revoke: revokeToken.bind(null, sdk),\n renew: renewToken.bind(null, sdk),\n renewTokensWithRefresh: renewTokensWithRefresh.bind(null, sdk),\n renewTokens: renewTokens.bind(null, sdk),\n getUserInfo: (accessTokenObject, idTokenObject) => {\n return getUserInfo(sdk, accessTokenObject, idTokenObject);\n },\n verify: verifyToken.bind(null, sdk),\n isLoginRedirect: isLoginRedirect.bind(null, sdk),\n introspect: oidcIntrospect.bind(null, sdk)\n };\n const toWrap = ['getWithoutPrompt', 'getWithPopup', 'revoke', 'renew', 'renewTokensWithRefresh', 'renewTokens'];\n toWrap.forEach(key => {\n token[key] = useQueue(token[key]);\n });\n return token;\n}\nfunction createEndpoints(sdk) {\n return {\n authorize: {\n enrollAuthenticator: enrollAuthenticator.bind(null, sdk)\n }\n };\n}\nexport { createEndpoints, createTokenAPI };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { removeNils, clone } from '../util/object.js';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { isLocalhost, isIE11OrLess } from '../features.js';\nimport { REFRESH_TOKEN_STORAGE_KEY, TOKEN_STORAGE_NAME } from '../constants.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport { validateToken } from './util/validateToken.js';\nimport SdkClock from '../clock.js';\nimport { isRefreshToken, isAccessToken, isIDToken } from './types/Token.js';\nimport { EVENT_EXPIRED, EVENT_RENEWED, EVENT_ADDED, EVENT_REMOVED, EVENT_ERROR, EVENT_SET_STORAGE } from './types/TokenManager.js';\nconst DEFAULT_OPTIONS = {\n autoRenew: true,\n autoRemove: true,\n syncStorage: true,\n clearPendingRemoveTokens: true,\n storage: undefined,\n expireEarlySeconds: 30,\n storageKey: TOKEN_STORAGE_NAME\n};\nfunction defaultState() {\n return {\n expireTimeouts: {},\n renewPromise: null\n };\n}\nclass TokenManager {\n constructor(sdk, options = {}) {\n this.sdk = sdk;\n this.emitter = sdk.emitter;\n if (!this.emitter) {\n throw new AuthSdkError('Emitter should be initialized before TokenManager');\n }\n options = Object.assign({}, DEFAULT_OPTIONS, removeNils(options));\n if (!isLocalhost()) {\n options.expireEarlySeconds = DEFAULT_OPTIONS.expireEarlySeconds;\n }\n this.options = options;\n const storageOptions = removeNils({\n storageKey: options.storageKey,\n secure: options.secure\n });\n if (typeof options.storage === 'object') {\n storageOptions.storageProvider = options.storage;\n } else if (options.storage) {\n storageOptions.storageType = options.storage;\n }\n this.storage = sdk.storageManager.getTokenStorage(Object.assign(Object.assign({}, storageOptions), {\n useSeparateCookies: true\n }));\n this.clock = SdkClock.create();\n this.state = defaultState();\n }\n on(event, handler, context) {\n if (context) {\n this.emitter.on(event, handler, context);\n } else {\n this.emitter.on(event, handler);\n }\n }\n off(event, handler) {\n if (handler) {\n this.emitter.off(event, handler);\n } else {\n this.emitter.off(event);\n }\n }\n start() {\n if (this.options.clearPendingRemoveTokens) {\n this.clearPendingRemoveTokens();\n }\n this.setExpireEventTimeoutAll();\n this.state.started = true;\n }\n stop() {\n this.clearExpireEventTimeoutAll();\n this.state.started = false;\n }\n isStarted() {\n return !!this.state.started;\n }\n getOptions() {\n return clone(this.options);\n }\n getExpireTime(token) {\n const expireEarlySeconds = this.options.expireEarlySeconds || 0;\n var expireTime = token.expiresAt - expireEarlySeconds;\n return expireTime;\n }\n hasExpired(token) {\n var expireTime = this.getExpireTime(token);\n return expireTime <= this.clock.now();\n }\n emitExpired(key, token) {\n this.emitter.emit(EVENT_EXPIRED, key, token);\n }\n emitRenewed(key, freshToken, oldToken) {\n this.emitter.emit(EVENT_RENEWED, key, freshToken, oldToken);\n }\n emitAdded(key, token) {\n this.emitter.emit(EVENT_ADDED, key, token);\n }\n emitRemoved(key, token) {\n this.emitter.emit(EVENT_REMOVED, key, token);\n }\n emitError(error) {\n this.emitter.emit(EVENT_ERROR, error);\n }\n clearExpireEventTimeout(key) {\n clearTimeout(this.state.expireTimeouts[key]);\n delete this.state.expireTimeouts[key];\n this.state.renewPromise = null;\n }\n clearExpireEventTimeoutAll() {\n var expireTimeouts = this.state.expireTimeouts;\n for (var key in expireTimeouts) {\n if (!Object.prototype.hasOwnProperty.call(expireTimeouts, key)) {\n continue;\n }\n this.clearExpireEventTimeout(key);\n }\n }\n setExpireEventTimeout(key, token) {\n if (isRefreshToken(token)) {\n return;\n }\n var expireTime = this.getExpireTime(token);\n var expireEventWait = Math.max(expireTime - this.clock.now(), 0) * 1000;\n this.clearExpireEventTimeout(key);\n var expireEventTimeout = setTimeout(() => {\n this.emitExpired(key, token);\n }, expireEventWait);\n this.state.expireTimeouts[key] = expireEventTimeout;\n }\n setExpireEventTimeoutAll() {\n var tokenStorage = this.storage.getStorage();\n for (var key in tokenStorage) {\n if (!Object.prototype.hasOwnProperty.call(tokenStorage, key)) {\n continue;\n }\n var token = tokenStorage[key];\n this.setExpireEventTimeout(key, token);\n }\n }\n resetExpireEventTimeoutAll() {\n this.clearExpireEventTimeoutAll();\n this.setExpireEventTimeoutAll();\n }\n add(key, token) {\n var tokenStorage = this.storage.getStorage();\n validateToken(token);\n tokenStorage[key] = token;\n this.storage.setStorage(tokenStorage);\n this.emitSetStorageEvent();\n this.emitAdded(key, token);\n this.setExpireEventTimeout(key, token);\n }\n getSync(key) {\n var tokenStorage = this.storage.getStorage();\n return tokenStorage[key];\n }\n async get(key) {\n return this.getSync(key);\n }\n getTokensSync() {\n const tokens = {};\n const tokenStorage = this.storage.getStorage();\n Object.keys(tokenStorage).forEach(key => {\n const token = tokenStorage[key];\n if (isAccessToken(token)) {\n tokens.accessToken = token;\n } else if (isIDToken(token)) {\n tokens.idToken = token;\n } else if (isRefreshToken(token)) {\n tokens.refreshToken = token;\n }\n });\n return tokens;\n }\n async getTokens() {\n return this.getTokensSync();\n }\n getStorageKeyByType(type) {\n const tokenStorage = this.storage.getStorage();\n const key = Object.keys(tokenStorage).filter(key => {\n const token = tokenStorage[key];\n return isAccessToken(token) && type === 'accessToken' || isIDToken(token) && type === 'idToken' || isRefreshToken(token) && type === 'refreshToken';\n })[0];\n return key;\n }\n getTokenType(token) {\n if (isAccessToken(token)) {\n return 'accessToken';\n }\n if (isIDToken(token)) {\n return 'idToken';\n }\n if (isRefreshToken(token)) {\n return 'refreshToken';\n }\n throw new AuthSdkError('Unknown token type');\n }\n emitSetStorageEvent() {\n if (isIE11OrLess()) {\n const storage = this.storage.getStorage();\n this.emitter.emit(EVENT_SET_STORAGE, storage);\n }\n }\n getStorage() {\n return this.storage;\n }\n setTokens(tokens, accessTokenCb, idTokenCb, refreshTokenCb) {\n const handleTokenCallback = (key, token) => {\n const type = this.getTokenType(token);\n if (type === 'accessToken') {\n accessTokenCb && accessTokenCb(key, token);\n } else if (type === 'idToken') {\n idTokenCb && idTokenCb(key, token);\n } else if (type === 'refreshToken') {\n refreshTokenCb && refreshTokenCb(key, token);\n }\n };\n const handleAdded = (key, token) => {\n this.emitAdded(key, token);\n this.setExpireEventTimeout(key, token);\n handleTokenCallback(key, token);\n };\n const handleRenewed = (key, token, oldToken) => {\n this.emitRenewed(key, token, oldToken);\n this.clearExpireEventTimeout(key);\n this.setExpireEventTimeout(key, token);\n handleTokenCallback(key, token);\n };\n const handleRemoved = (key, token) => {\n this.clearExpireEventTimeout(key);\n this.emitRemoved(key, token);\n handleTokenCallback(key, token);\n };\n const types = ['idToken', 'accessToken', 'refreshToken'];\n const existingTokens = this.getTokensSync();\n types.forEach(type => {\n const token = tokens[type];\n if (token) {\n validateToken(token, type);\n }\n });\n const storage = types.reduce((storage, type) => {\n const token = tokens[type];\n if (token) {\n const storageKey = this.getStorageKeyByType(type) || type;\n storage[storageKey] = token;\n }\n return storage;\n }, {});\n this.storage.setStorage(storage);\n this.emitSetStorageEvent();\n types.forEach(type => {\n const newToken = tokens[type];\n const existingToken = existingTokens[type];\n const storageKey = this.getStorageKeyByType(type) || type;\n if (newToken && existingToken) {\n handleRemoved(storageKey, existingToken);\n handleAdded(storageKey, newToken);\n handleRenewed(storageKey, newToken, existingToken);\n } else if (newToken) {\n handleAdded(storageKey, newToken);\n } else if (existingToken) {\n handleRemoved(storageKey, existingToken);\n }\n });\n }\n remove(key) {\n this.clearExpireEventTimeout(key);\n var tokenStorage = this.storage.getStorage();\n var removedToken = tokenStorage[key];\n delete tokenStorage[key];\n this.storage.setStorage(tokenStorage);\n this.emitSetStorageEvent();\n this.emitRemoved(key, removedToken);\n }\n async renewToken(token) {\n var _a;\n return (_a = this.sdk.token) === null || _a === void 0 ? void 0 : _a.renew(token);\n }\n validateToken(token) {\n return validateToken(token);\n }\n renew(key) {\n if (this.state.renewPromise) {\n return this.state.renewPromise;\n }\n try {\n var token = this.getSync(key);\n let shouldRenew = token !== undefined;\n if (!token && key === 'accessToken') {\n const refreshKey = this.getStorageKeyByType('refreshToken');\n const refreshToken = this.getSync(refreshKey);\n shouldRenew = refreshToken !== undefined;\n }\n if (!shouldRenew) {\n throw new AuthSdkError('The tokenManager has no token for the key: ' + key);\n }\n } catch (err) {\n this.emitError(err);\n return Promise.reject(err);\n }\n this.clearExpireEventTimeout(key);\n const renewPromise = this.state.renewPromise = this.sdk.token.renewTokens().then(tokens => {\n this.setTokens(tokens);\n if (!token && key === 'accessToken') {\n const accessToken = tokens['accessToken'];\n this.emitRenewed(key, accessToken, null);\n return accessToken;\n }\n const tokenType = this.getTokenType(token);\n return tokens[tokenType];\n }).catch(err => {\n this.remove(key);\n err.tokenKey = key;\n this.emitError(err);\n throw err;\n }).finally(() => {\n this.state.renewPromise = null;\n });\n return renewPromise;\n }\n clear() {\n const tokens = this.getTokensSync();\n this.clearExpireEventTimeoutAll();\n this.storage.clearStorage();\n this.emitSetStorageEvent();\n Object.keys(tokens).forEach(key => {\n this.emitRemoved(key, tokens[key]);\n });\n }\n clearPendingRemoveTokens() {\n const tokenStorage = this.storage.getStorage();\n const removedTokens = {};\n Object.keys(tokenStorage).forEach(key => {\n if (tokenStorage[key].pendingRemove) {\n removedTokens[key] = tokenStorage[key];\n delete tokenStorage[key];\n }\n });\n this.storage.setStorage(tokenStorage);\n this.emitSetStorageEvent();\n Object.keys(removedTokens).forEach(key => {\n this.clearExpireEventTimeout(key);\n this.emitRemoved(key, removedTokens[key]);\n });\n }\n updateRefreshToken(token) {\n const key = this.getStorageKeyByType('refreshToken') || REFRESH_TOKEN_STORAGE_KEY;\n var tokenStorage = this.storage.getStorage();\n validateToken(token);\n tokenStorage[key] = token;\n this.storage.setStorage(tokenStorage);\n this.emitSetStorageEvent();\n }\n removeRefreshToken() {\n const key = this.getStorageKeyByType('refreshToken') || REFRESH_TOKEN_STORAGE_KEY;\n this.remove(key);\n }\n addPendingRemoveFlags() {\n const tokens = this.getTokensSync();\n Object.keys(tokens).forEach(key => {\n tokens[key].pendingRemove = true;\n });\n this.setTokens(tokens);\n }\n}\nexport { TokenManager };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nimport '../../errors/WWWAuthError.js';\nimport { isIDToken, isAccessToken, isRefreshToken } from '../types/Token.js';\nfunction validateToken(token, type) {\n if (!isIDToken(token) && !isAccessToken(token) && !isRefreshToken(token)) {\n throw new AuthSdkError('Token must be an Object with scopes, expiresAt, and one of: an idToken, accessToken, or refreshToken property');\n }\n if (type === 'accessToken' && !isAccessToken(token)) {\n throw new AuthSdkError('invalid accessToken');\n }\n if (type === 'idToken' && !isIDToken(token)) {\n throw new AuthSdkError('invalid idToken');\n }\n if (type === 'refreshToken' && !isRefreshToken(token)) {\n throw new AuthSdkError('invalid refreshToken');\n }\n}\nexport { validateToken };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nclass SdkClock {\n constructor(localOffset) {\n this.localOffset = parseInt(localOffset || 0);\n }\n static create() {\n var localOffset = 0;\n return new SdkClock(localOffset);\n }\n now() {\n var now = (Date.now() + this.localOffset) / 1000;\n return now;\n }\n}\nexport { SdkClock as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nconst EVENT_EXPIRED = 'expired';\nconst EVENT_RENEWED = 'renewed';\nconst EVENT_ADDED = 'added';\nconst EVENT_REMOVED = 'removed';\nconst EVENT_ERROR = 'error';\nconst EVENT_SET_STORAGE = 'set_storage';\nexport { EVENT_ADDED, EVENT_ERROR, EVENT_EXPIRED, EVENT_REMOVED, EVENT_RENEWED, EVENT_SET_STORAGE };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport Cookies from 'js-cookie';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport { warn } from '../util/console.js';\nimport { isIE11OrLess } from '../features.js';\nvar storageUtil = {\n browserHasLocalStorage: function () {\n try {\n var storage = this.getLocalStorage();\n return this.testStorage(storage);\n } catch (e) {\n return false;\n }\n },\n browserHasSessionStorage: function () {\n try {\n var storage = this.getSessionStorage();\n return this.testStorage(storage);\n } catch (e) {\n return false;\n }\n },\n testStorageType: function (storageType) {\n var supported = false;\n switch (storageType) {\n case 'sessionStorage':\n supported = this.browserHasSessionStorage();\n break;\n case 'localStorage':\n supported = this.browserHasLocalStorage();\n break;\n case 'cookie':\n case 'memory':\n supported = true;\n break;\n default:\n supported = false;\n break;\n }\n return supported;\n },\n getStorageByType: function (storageType, options) {\n let storageProvider;\n switch (storageType) {\n case 'sessionStorage':\n storageProvider = this.getSessionStorage();\n break;\n case 'localStorage':\n storageProvider = this.getLocalStorage();\n break;\n case 'cookie':\n storageProvider = this.getCookieStorage(options);\n break;\n case 'memory':\n storageProvider = this.getInMemoryStorage();\n break;\n default:\n throw new AuthSdkError(`Unrecognized storage option: ${storageType}`);\n }\n return storageProvider;\n },\n findStorageType: function (types) {\n let curType;\n let nextType;\n types = types.slice();\n curType = types.shift();\n nextType = types.length ? types[0] : null;\n if (!nextType) {\n return curType;\n }\n if (this.testStorageType(curType)) {\n return curType;\n }\n warn(`This browser doesn't support ${curType}. Switching to ${nextType}.`);\n return this.findStorageType(types);\n },\n getLocalStorage: function () {\n if (isIE11OrLess() && !window.onstorage) {\n window.onstorage = function () {};\n }\n return localStorage;\n },\n getSessionStorage: function () {\n return sessionStorage;\n },\n getCookieStorage: function (options) {\n const secure = options.secure;\n const sameSite = options.sameSite;\n const sessionCookie = options.sessionCookie;\n if (typeof secure === 'undefined' || typeof sameSite === 'undefined') {\n throw new AuthSdkError('getCookieStorage: \"secure\" and \"sameSite\" options must be provided');\n }\n const storage = {\n getItem: this.storage.get,\n setItem: (key, value, expiresAt = '2200-01-01T00:00:00.000Z') => {\n expiresAt = sessionCookie ? null : expiresAt;\n this.storage.set(key, value, expiresAt, {\n secure: secure,\n sameSite: sameSite\n });\n },\n removeItem: key => {\n this.storage.delete(key);\n }\n };\n if (!options.useSeparateCookies) {\n return storage;\n }\n return {\n getItem: function (key) {\n var data = storage.getItem();\n var value = {};\n Object.keys(data).forEach(k => {\n if (k.indexOf(key) === 0) {\n value[k.replace(`${key}_`, '')] = JSON.parse(data[k]);\n }\n });\n return JSON.stringify(value);\n },\n setItem: function (key, value) {\n var existingValues = JSON.parse(this.getItem(key));\n value = JSON.parse(value);\n Object.keys(value).forEach(k => {\n var storageKey = key + '_' + k;\n var valueToStore = JSON.stringify(value[k]);\n storage.setItem(storageKey, valueToStore);\n delete existingValues[k];\n });\n Object.keys(existingValues).forEach(k => {\n storage.removeItem(key + '_' + k);\n });\n },\n removeItem: function (key) {\n var existingValues = JSON.parse(this.getItem(key));\n Object.keys(existingValues).forEach(k => {\n storage.removeItem(key + '_' + k);\n });\n }\n };\n },\n inMemoryStore: {},\n getInMemoryStorage: function () {\n return {\n getItem: key => {\n return this.inMemoryStore[key];\n },\n setItem: (key, value) => {\n this.inMemoryStore[key] = value;\n }\n };\n },\n testStorage: function (storage) {\n var key = 'okta-test-storage';\n try {\n storage.setItem(key, key);\n storage.removeItem(key);\n return true;\n } catch (e) {\n return false;\n }\n },\n storage: {\n set: function (name, value, expiresAt, options) {\n const {\n sameSite,\n secure\n } = options;\n if (typeof secure === 'undefined' || typeof sameSite === 'undefined') {\n throw new AuthSdkError('storage.set: \"secure\" and \"sameSite\" options must be provided');\n }\n var cookieOptions = {\n path: options.path || '/',\n secure,\n sameSite\n };\n if (!!Date.parse(expiresAt)) {\n cookieOptions.expires = new Date(expiresAt);\n }\n Cookies.set(name, value, cookieOptions);\n return this.get(name);\n },\n get: function (name) {\n if (!arguments.length) {\n return Cookies.get();\n }\n return Cookies.get(name);\n },\n delete: function (name) {\n return Cookies.remove(name, {\n path: '/'\n });\n }\n }\n};\nexport { storageUtil as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { REFERRER_PATH_STORAGE_KEY } from '../../constants.js';\nimport storageUtil from '../../browser/browserStorage.js';\nfunction provideOriginalUri(BaseClass) {\n return class WithOriginalUri extends BaseClass {\n setOriginalUri(originalUri, state) {\n const sessionStorage = storageUtil.getSessionStorage();\n sessionStorage.setItem(REFERRER_PATH_STORAGE_KEY, originalUri);\n state = state || this.options.state;\n if (state) {\n const sharedStorage = this.storageManager.getOriginalUriStorage();\n sharedStorage.setItem(state, originalUri);\n }\n }\n getOriginalUri(state) {\n state = state || this.options.state;\n if (state) {\n const sharedStorage = this.storageManager.getOriginalUriStorage();\n const originalUri = sharedStorage.getItem(state);\n if (originalUri) {\n return originalUri;\n }\n }\n const storage = storageUtil.getSessionStorage();\n return storage ? storage.getItem(REFERRER_PATH_STORAGE_KEY) || undefined : undefined;\n }\n removeOriginalUri(state) {\n const storage = storageUtil.getSessionStorage();\n storage.removeItem(REFERRER_PATH_STORAGE_KEY);\n state = state || this.options.state;\n if (state) {\n const sharedStorage = this.storageManager.getOriginalUriStorage();\n sharedStorage.removeItem && sharedStorage.removeItem(state);\n }\n }\n };\n}\nexport { provideOriginalUri };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport PCancelable from 'p-cancelable';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { getConsole } from '../util/console.js';\nimport { PromiseQueue } from '../util/PromiseQueue.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport '../oidc/types/Token.js';\nimport { EVENT_ADDED, EVENT_REMOVED } from '../oidc/types/TokenManager.js';\nconst INITIAL_AUTH_STATE = null;\nconst DEFAULT_PENDING = {\n updateAuthStatePromise: null,\n canceledTimes: 0\n};\nconst EVENT_AUTH_STATE_CHANGE = 'authStateChange';\nconst MAX_PROMISE_CANCEL_TIMES = 10;\nconst isSameAuthState = (prevState, state) => {\n if (!prevState) {\n return false;\n }\n return prevState.isAuthenticated === state.isAuthenticated && JSON.stringify(prevState.idToken) === JSON.stringify(state.idToken) && JSON.stringify(prevState.accessToken) === JSON.stringify(state.accessToken) && prevState.error === state.error;\n};\nclass AuthStateManager {\n constructor(sdk) {\n if (!sdk.emitter) {\n throw new AuthSdkError('Emitter should be initialized before AuthStateManager');\n }\n this._sdk = sdk;\n this._pending = Object.assign({}, DEFAULT_PENDING);\n this._authState = INITIAL_AUTH_STATE;\n this._logOptions = {};\n this._prevAuthState = null;\n this._transformQueue = new PromiseQueue({\n quiet: true\n });\n sdk.tokenManager.on(EVENT_ADDED, (key, token) => {\n this._setLogOptions({\n event: EVENT_ADDED,\n key,\n token\n });\n this.updateAuthState();\n });\n sdk.tokenManager.on(EVENT_REMOVED, (key, token) => {\n this._setLogOptions({\n event: EVENT_REMOVED,\n key,\n token\n });\n this.updateAuthState();\n });\n }\n _setLogOptions(options) {\n this._logOptions = options;\n }\n getAuthState() {\n return this._authState;\n }\n getPreviousAuthState() {\n return this._prevAuthState;\n }\n async updateAuthState() {\n const {\n transformAuthState,\n devMode\n } = this._sdk.options;\n const log = status => {\n const {\n event,\n key,\n token\n } = this._logOptions;\n getConsole().group(`OKTA-AUTH-JS:updateAuthState: Event:${event} Status:${status}`);\n getConsole().log(key, token);\n getConsole().log('Current authState', this._authState);\n getConsole().groupEnd();\n this._logOptions = {};\n };\n const emitAuthStateChange = authState => {\n if (isSameAuthState(this._authState, authState)) {\n devMode && log('unchanged');\n return;\n }\n this._prevAuthState = this._authState;\n this._authState = authState;\n this._sdk.emitter.emit(EVENT_AUTH_STATE_CHANGE, Object.assign({}, authState));\n devMode && log('emitted');\n };\n const finalPromise = origPromise => {\n return this._pending.updateAuthStatePromise.then(() => {\n const curPromise = this._pending.updateAuthStatePromise;\n if (curPromise && curPromise !== origPromise) {\n return finalPromise(curPromise);\n }\n return this.getAuthState();\n });\n };\n if (this._pending.updateAuthStatePromise) {\n if (this._pending.canceledTimes >= MAX_PROMISE_CANCEL_TIMES) {\n devMode && log('terminated');\n return finalPromise(this._pending.updateAuthStatePromise);\n } else {\n this._pending.updateAuthStatePromise.cancel();\n }\n }\n const cancelablePromise = new PCancelable((resolve, _, onCancel) => {\n onCancel.shouldReject = false;\n onCancel(() => {\n this._pending.updateAuthStatePromise = null;\n this._pending.canceledTimes = this._pending.canceledTimes + 1;\n devMode && log('canceled');\n });\n const emitAndResolve = authState => {\n if (cancelablePromise.isCanceled) {\n resolve();\n return;\n }\n emitAuthStateChange(authState);\n resolve();\n this._pending = Object.assign({}, DEFAULT_PENDING);\n };\n this._sdk.isAuthenticated().then(() => {\n if (cancelablePromise.isCanceled) {\n resolve();\n return;\n }\n const {\n accessToken,\n idToken,\n refreshToken\n } = this._sdk.tokenManager.getTokensSync();\n const authState = {\n accessToken,\n idToken,\n refreshToken,\n isAuthenticated: !!(accessToken && idToken)\n };\n const promise = transformAuthState ? this._transformQueue.push(transformAuthState, null, this._sdk, authState) : Promise.resolve(authState);\n promise.then(authState => emitAndResolve(authState)).catch(error => emitAndResolve({\n accessToken,\n idToken,\n refreshToken,\n isAuthenticated: false,\n error\n }));\n });\n });\n this._pending.updateAuthStatePromise = cancelablePromise;\n return finalPromise(cancelablePromise);\n }\n subscribe(handler) {\n this._sdk.emitter.on(EVENT_AUTH_STATE_CHANGE, handler);\n }\n unsubscribe(handler) {\n this._sdk.emitter.off(EVENT_AUTH_STATE_CHANGE, handler);\n }\n}\nexport { AuthStateManager, INITIAL_AUTH_STATE };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { isRefreshToken } from '../oidc/types/Token.js';\nimport { EVENT_EXPIRED } from '../oidc/types/TokenManager.js';\nimport { isBrowser } from '../features.js';\nclass AutoRenewService {\n constructor(tokenManager, options = {}) {\n this.started = false;\n this.tokenManager = tokenManager;\n this.options = options;\n this.renewTimeQueue = [];\n this.onTokenExpiredHandler = this.onTokenExpiredHandler.bind(this);\n }\n shouldThrottleRenew() {\n let res = false;\n this.renewTimeQueue.push(Date.now());\n if (this.renewTimeQueue.length >= 10) {\n const firstTime = this.renewTimeQueue.shift();\n const lastTime = this.renewTimeQueue[this.renewTimeQueue.length - 1];\n res = lastTime - firstTime < 30 * 1000;\n }\n return res;\n }\n requiresLeadership() {\n return !!this.options.syncStorage && isBrowser();\n }\n processExpiredTokens() {\n const tokenStorage = this.tokenManager.getStorage();\n const tokens = tokenStorage.getStorage();\n Object.keys(tokens).forEach(key => {\n const token = tokens[key];\n if (!isRefreshToken(token) && this.tokenManager.hasExpired(token)) {\n this.onTokenExpiredHandler(key);\n }\n });\n }\n onTokenExpiredHandler(key) {\n if (this.options.autoRenew) {\n if (this.shouldThrottleRenew()) {\n const error = new AuthSdkError('Too many token renew requests');\n this.tokenManager.emitError(error);\n } else {\n this.tokenManager.renew(key).catch(() => {});\n }\n } else if (this.options.autoRemove) {\n this.tokenManager.remove(key);\n }\n }\n canStart() {\n return (!!this.options.autoRenew || !!this.options.autoRemove) && !this.started;\n }\n async start() {\n if (this.canStart()) {\n this.tokenManager.on(EVENT_EXPIRED, this.onTokenExpiredHandler);\n if (this.tokenManager.isStarted()) {\n this.processExpiredTokens();\n }\n this.started = true;\n }\n }\n async stop() {\n if (this.started) {\n this.tokenManager.off(EVENT_EXPIRED, this.onTokenExpiredHandler);\n this.renewTimeQueue = [];\n this.started = false;\n }\n }\n isStarted() {\n return this.started;\n }\n}\nexport { AutoRenewService };\n","/**\n * returns true if the given object is a promise\n */\nexport function isPromise(obj) {\n return obj && typeof obj.then === 'function';\n}\nexport var PROMISE_RESOLVED_FALSE = Promise.resolve(false);\nexport var PROMISE_RESOLVED_TRUE = Promise.resolve(true);\nexport var PROMISE_RESOLVED_VOID = Promise.resolve();\nexport function sleep(time, resolveWith) {\n if (!time) time = 0;\n return new Promise(function (res) {\n return setTimeout(function () {\n return res(resolveWith);\n }, time);\n });\n}\nexport function randomInt(min, max) {\n return Math.floor(Math.random() * (max - min + 1) + min);\n}\n\n/**\n * https://stackoverflow.com/a/8084248\n */\nexport function randomToken() {\n return Math.random().toString(36).substring(2);\n}\nvar lastMs = 0;\nvar additional = 0;\n\n/**\n * returns the current time in micro-seconds,\n * WARNING: This is a pseudo-function\n * Performance.now is not reliable in webworkers, so we just make sure to never return the same time.\n * This is enough in browsers, and this function will not be used in nodejs.\n * The main reason for this hack is to ensure that BroadcastChannel behaves equal to production when it is used in fast-running unit tests.\n */\nexport function microSeconds() {\n var ms = new Date().getTime();\n if (ms === lastMs) {\n additional++;\n return ms * 1000 + additional;\n } else {\n lastMs = ms;\n additional = 0;\n return ms * 1000;\n }\n}\n\n/**\n * Check if WebLock API is supported.\n * @link https://developer.mozilla.org/en-US/docs/Web/API/Web_Locks_API\n */\nexport function supportsWebLockAPI() {\n if (typeof navigator !== 'undefined' && typeof navigator.locks !== 'undefined' && typeof navigator.locks.request === 'function') {\n return true;\n } else {\n return false;\n }\n}","import { microSeconds as micro, PROMISE_RESOLVED_VOID } from '../util.js';\nexport var microSeconds = micro;\nexport var type = 'native';\nexport function create(channelName) {\n var state = {\n messagesCallback: null,\n bc: new BroadcastChannel(channelName),\n subFns: [] // subscriberFunctions\n };\n state.bc.onmessage = function (msg) {\n if (state.messagesCallback) {\n state.messagesCallback(msg.data);\n }\n };\n return state;\n}\nexport function close(channelState) {\n channelState.bc.close();\n channelState.subFns = [];\n}\nexport function postMessage(channelState, messageJson) {\n try {\n channelState.bc.postMessage(messageJson, false);\n return PROMISE_RESOLVED_VOID;\n } catch (err) {\n return Promise.reject(err);\n }\n}\nexport function onMessage(channelState, fn) {\n channelState.messagesCallback = fn;\n}\nexport function canBeUsed() {\n if ((typeof window !== 'undefined' || typeof self !== 'undefined') && typeof BroadcastChannel === 'function') {\n if (BroadcastChannel._pubkey) {\n throw new Error('BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill');\n }\n return true;\n } else {\n return false;\n }\n}\nexport function averageResponseTime() {\n return 150;\n}\nexport var NativeMethod = {\n create: create,\n close: close,\n onMessage: onMessage,\n postMessage: postMessage,\n canBeUsed: canBeUsed,\n type: type,\n averageResponseTime: averageResponseTime,\n microSeconds: microSeconds\n};","/**\n * this is a set which automatically forgets\n * a given entry when a new entry is set and the ttl\n * of the old one is over\n */\nvar ObliviousSet = /** @class */function () {\n function ObliviousSet(ttl) {\n this.ttl = ttl;\n this.map = new Map();\n /**\n * Creating calls to setTimeout() is expensive,\n * so we only do that if there is not timeout already open.\n */\n this._to = false;\n }\n ObliviousSet.prototype.has = function (value) {\n return this.map.has(value);\n };\n ObliviousSet.prototype.add = function (value) {\n var _this = this;\n this.map.set(value, now());\n /**\n * When a new value is added,\n * start the cleanup at the next tick\n * to not block the cpu for more important stuff\n * that might happen.\n */\n if (!this._to) {\n this._to = true;\n setTimeout(function () {\n _this._to = false;\n removeTooOldValues(_this);\n }, 0);\n }\n };\n ObliviousSet.prototype.clear = function () {\n this.map.clear();\n };\n return ObliviousSet;\n}();\nexport { ObliviousSet };\n/**\n * Removes all entries from the set\n * where the TTL has expired\n */\nexport function removeTooOldValues(obliviousSet) {\n var olderThen = now() - obliviousSet.ttl;\n var iterator = obliviousSet.map[Symbol.iterator]();\n /**\n * Because we can assume the new values are added at the bottom,\n * we start from the top and stop as soon as we reach a non-too-old value.\n */\n while (true) {\n var next = iterator.next().value;\n if (!next) {\n return; // no more elements\n }\n var value = next[0];\n var time = next[1];\n if (time < olderThen) {\n obliviousSet.map.delete(value);\n } else {\n // We reached a value that is not old enough\n return;\n }\n }\n}\nexport function now() {\n return new Date().getTime();\n}\n","export function fillOptionsWithDefaults() {\n var originalOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var options = JSON.parse(JSON.stringify(originalOptions));\n\n // main\n if (typeof options.webWorkerSupport === 'undefined') options.webWorkerSupport = true;\n\n // indexed-db\n if (!options.idb) options.idb = {};\n // after this time the messages get deleted\n if (!options.idb.ttl) options.idb.ttl = 1000 * 45;\n if (!options.idb.fallbackInterval) options.idb.fallbackInterval = 150;\n // handles abrupt db onclose events.\n if (originalOptions.idb && typeof originalOptions.idb.onclose === 'function') options.idb.onclose = originalOptions.idb.onclose;\n\n // localstorage\n if (!options.localstorage) options.localstorage = {};\n if (!options.localstorage.removeTimeout) options.localstorage.removeTimeout = 1000 * 60;\n\n // custom methods\n if (originalOptions.methods) options.methods = originalOptions.methods;\n\n // node\n if (!options.node) options.node = {};\n if (!options.node.ttl) options.node.ttl = 1000 * 60 * 2; // 2 minutes;\n /**\n * On linux use 'ulimit -Hn' to get the limit of open files.\n * On ubuntu this was 4096 for me, so we use half of that as maxParallelWrites default.\n */\n if (!options.node.maxParallelWrites) options.node.maxParallelWrites = 2048;\n if (typeof options.node.useFastPath === 'undefined') options.node.useFastPath = true;\n return options;\n}","/**\n * this method uses indexeddb to store the messages\n * There is currently no observerAPI for idb\n * @link https://github.com/w3c/IndexedDB/issues/51\n * \n * When working on this, ensure to use these performance optimizations:\n * @link https://rxdb.info/slow-indexeddb.html\n */\n\nimport { sleep, randomInt, randomToken, microSeconds as micro, PROMISE_RESOLVED_VOID } from '../util.js';\nexport var microSeconds = micro;\nimport { ObliviousSet } from 'oblivious-set';\nimport { fillOptionsWithDefaults } from '../options.js';\nvar DB_PREFIX = 'pubkey.broadcast-channel-0-';\nvar OBJECT_STORE_ID = 'messages';\n\n/**\n * Use relaxed durability for faster performance on all transactions.\n * @link https://nolanlawson.com/2021/08/22/speeding-up-indexeddb-reads-and-writes/\n */\nexport var TRANSACTION_SETTINGS = {\n durability: 'relaxed'\n};\nexport var type = 'idb';\nexport function getIdb() {\n if (typeof indexedDB !== 'undefined') return indexedDB;\n if (typeof window !== 'undefined') {\n if (typeof window.mozIndexedDB !== 'undefined') return window.mozIndexedDB;\n if (typeof window.webkitIndexedDB !== 'undefined') return window.webkitIndexedDB;\n if (typeof window.msIndexedDB !== 'undefined') return window.msIndexedDB;\n }\n return false;\n}\n\n/**\n * If possible, we should explicitly commit IndexedDB transactions\n * for better performance.\n * @link https://nolanlawson.com/2021/08/22/speeding-up-indexeddb-reads-and-writes/\n */\nexport function commitIndexedDBTransaction(tx) {\n if (tx.commit) {\n tx.commit();\n }\n}\nexport function createDatabase(channelName) {\n var IndexedDB = getIdb();\n\n // create table\n var dbName = DB_PREFIX + channelName;\n\n /**\n * All IndexedDB databases are opened without version\n * because it is a bit faster, especially on firefox\n * @link http://nparashuram.com/IndexedDB/perf/#Open%20Database%20with%20version\n */\n var openRequest = IndexedDB.open(dbName);\n openRequest.onupgradeneeded = function (ev) {\n var db = ev.target.result;\n db.createObjectStore(OBJECT_STORE_ID, {\n keyPath: 'id',\n autoIncrement: true\n });\n };\n return new Promise(function (res, rej) {\n openRequest.onerror = function (ev) {\n return rej(ev);\n };\n openRequest.onsuccess = function () {\n res(openRequest.result);\n };\n });\n}\n\n/**\n * writes the new message to the database\n * so other readers can find it\n */\nexport function writeMessage(db, readerUuid, messageJson) {\n var time = new Date().getTime();\n var writeObject = {\n uuid: readerUuid,\n time: time,\n data: messageJson\n };\n var tx = db.transaction([OBJECT_STORE_ID], 'readwrite', TRANSACTION_SETTINGS);\n return new Promise(function (res, rej) {\n tx.oncomplete = function () {\n return res();\n };\n tx.onerror = function (ev) {\n return rej(ev);\n };\n var objectStore = tx.objectStore(OBJECT_STORE_ID);\n objectStore.add(writeObject);\n commitIndexedDBTransaction(tx);\n });\n}\nexport function getAllMessages(db) {\n var tx = db.transaction(OBJECT_STORE_ID, 'readonly', TRANSACTION_SETTINGS);\n var objectStore = tx.objectStore(OBJECT_STORE_ID);\n var ret = [];\n return new Promise(function (res) {\n objectStore.openCursor().onsuccess = function (ev) {\n var cursor = ev.target.result;\n if (cursor) {\n ret.push(cursor.value);\n //alert(\"Name for SSN \" + cursor.key + \" is \" + cursor.value.name);\n cursor[\"continue\"]();\n } else {\n commitIndexedDBTransaction(tx);\n res(ret);\n }\n };\n });\n}\nexport function getMessagesHigherThan(db, lastCursorId) {\n var tx = db.transaction(OBJECT_STORE_ID, 'readonly', TRANSACTION_SETTINGS);\n var objectStore = tx.objectStore(OBJECT_STORE_ID);\n var ret = [];\n var keyRangeValue = IDBKeyRange.bound(lastCursorId + 1, Infinity);\n\n /**\n * Optimization shortcut,\n * if getAll() can be used, do not use a cursor.\n * @link https://rxdb.info/slow-indexeddb.html\n */\n if (objectStore.getAll) {\n var getAllRequest = objectStore.getAll(keyRangeValue);\n return new Promise(function (res, rej) {\n getAllRequest.onerror = function (err) {\n return rej(err);\n };\n getAllRequest.onsuccess = function (e) {\n res(e.target.result);\n };\n });\n }\n function openCursor() {\n // Occasionally Safari will fail on IDBKeyRange.bound, this\n // catches that error, having it open the cursor to the first\n // item. When it gets data it will advance to the desired key.\n try {\n keyRangeValue = IDBKeyRange.bound(lastCursorId + 1, Infinity);\n return objectStore.openCursor(keyRangeValue);\n } catch (e) {\n return objectStore.openCursor();\n }\n }\n return new Promise(function (res, rej) {\n var openCursorRequest = openCursor();\n openCursorRequest.onerror = function (err) {\n return rej(err);\n };\n openCursorRequest.onsuccess = function (ev) {\n var cursor = ev.target.result;\n if (cursor) {\n if (cursor.value.id < lastCursorId + 1) {\n cursor[\"continue\"](lastCursorId + 1);\n } else {\n ret.push(cursor.value);\n cursor[\"continue\"]();\n }\n } else {\n commitIndexedDBTransaction(tx);\n res(ret);\n }\n };\n });\n}\nexport function removeMessagesById(channelState, ids) {\n if (channelState.closed) {\n return Promise.resolve([]);\n }\n var tx = channelState.db.transaction(OBJECT_STORE_ID, 'readwrite', TRANSACTION_SETTINGS);\n var objectStore = tx.objectStore(OBJECT_STORE_ID);\n return Promise.all(ids.map(function (id) {\n var deleteRequest = objectStore[\"delete\"](id);\n return new Promise(function (res) {\n deleteRequest.onsuccess = function () {\n return res();\n };\n });\n }));\n}\nexport function getOldMessages(db, ttl) {\n var olderThen = new Date().getTime() - ttl;\n var tx = db.transaction(OBJECT_STORE_ID, 'readonly', TRANSACTION_SETTINGS);\n var objectStore = tx.objectStore(OBJECT_STORE_ID);\n var ret = [];\n return new Promise(function (res) {\n objectStore.openCursor().onsuccess = function (ev) {\n var cursor = ev.target.result;\n if (cursor) {\n var msgObk = cursor.value;\n if (msgObk.time < olderThen) {\n ret.push(msgObk);\n //alert(\"Name for SSN \" + cursor.key + \" is \" + cursor.value.name);\n cursor[\"continue\"]();\n } else {\n // no more old messages,\n commitIndexedDBTransaction(tx);\n res(ret);\n }\n } else {\n res(ret);\n }\n };\n });\n}\nexport function cleanOldMessages(channelState) {\n return getOldMessages(channelState.db, channelState.options.idb.ttl).then(function (tooOld) {\n return removeMessagesById(channelState, tooOld.map(function (msg) {\n return msg.id;\n }));\n });\n}\nexport function create(channelName, options) {\n options = fillOptionsWithDefaults(options);\n return createDatabase(channelName).then(function (db) {\n var state = {\n closed: false,\n lastCursorId: 0,\n channelName: channelName,\n options: options,\n uuid: randomToken(),\n /**\n * emittedMessagesIds\n * contains all messages that have been emitted before\n * @type {ObliviousSet}\n */\n eMIs: new ObliviousSet(options.idb.ttl * 2),\n // ensures we do not read messages in parallel\n writeBlockPromise: PROMISE_RESOLVED_VOID,\n messagesCallback: null,\n readQueuePromises: [],\n db: db\n };\n\n /**\n * Handle abrupt closes that do not originate from db.close().\n * This could happen, for example, if the underlying storage is\n * removed or if the user clears the database in the browser's\n * history preferences.\n */\n db.onclose = function () {\n state.closed = true;\n if (options.idb.onclose) options.idb.onclose();\n };\n\n /**\n * if service-workers are used,\n * we have no 'storage'-event if they post a message,\n * therefore we also have to set an interval\n */\n _readLoop(state);\n return state;\n });\n}\nfunction _readLoop(state) {\n if (state.closed) return;\n readNewMessages(state).then(function () {\n return sleep(state.options.idb.fallbackInterval);\n }).then(function () {\n return _readLoop(state);\n });\n}\nfunction _filterMessage(msgObj, state) {\n if (msgObj.uuid === state.uuid) return false; // send by own\n if (state.eMIs.has(msgObj.id)) return false; // already emitted\n if (msgObj.data.time < state.messagesCallbackTime) return false; // older then onMessageCallback\n return true;\n}\n\n/**\n * reads all new messages from the database and emits them\n */\nfunction readNewMessages(state) {\n // channel already closed\n if (state.closed) return PROMISE_RESOLVED_VOID;\n\n // if no one is listening, we do not need to scan for new messages\n if (!state.messagesCallback) return PROMISE_RESOLVED_VOID;\n return getMessagesHigherThan(state.db, state.lastCursorId).then(function (newerMessages) {\n var useMessages = newerMessages\n /**\n * there is a bug in iOS where the msgObj can be undefined sometimes\n * so we filter them out\n * @link https://github.com/pubkey/broadcast-channel/issues/19\n */.filter(function (msgObj) {\n return !!msgObj;\n }).map(function (msgObj) {\n if (msgObj.id > state.lastCursorId) {\n state.lastCursorId = msgObj.id;\n }\n return msgObj;\n }).filter(function (msgObj) {\n return _filterMessage(msgObj, state);\n }).sort(function (msgObjA, msgObjB) {\n return msgObjA.time - msgObjB.time;\n }); // sort by time\n useMessages.forEach(function (msgObj) {\n if (state.messagesCallback) {\n state.eMIs.add(msgObj.id);\n state.messagesCallback(msgObj.data);\n }\n });\n return PROMISE_RESOLVED_VOID;\n });\n}\nexport function close(channelState) {\n channelState.closed = true;\n channelState.db.close();\n}\nexport function postMessage(channelState, messageJson) {\n channelState.writeBlockPromise = channelState.writeBlockPromise.then(function () {\n return writeMessage(channelState.db, channelState.uuid, messageJson);\n }).then(function () {\n if (randomInt(0, 10) === 0) {\n /* await (do not await) */\n cleanOldMessages(channelState);\n }\n });\n return channelState.writeBlockPromise;\n}\nexport function onMessage(channelState, fn, time) {\n channelState.messagesCallbackTime = time;\n channelState.messagesCallback = fn;\n readNewMessages(channelState);\n}\nexport function canBeUsed() {\n return !!getIdb();\n}\nexport function averageResponseTime(options) {\n return options.idb.fallbackInterval * 2;\n}\nexport var IndexedDBMethod = {\n create: create,\n close: close,\n onMessage: onMessage,\n postMessage: postMessage,\n canBeUsed: canBeUsed,\n type: type,\n averageResponseTime: averageResponseTime,\n microSeconds: microSeconds\n};","/**\n * A localStorage-only method which uses localstorage and its 'storage'-event\n * This does not work inside webworkers because they have no access to localstorage\n * This is basically implemented to support IE9 or your grandmother's toaster.\n * @link https://caniuse.com/#feat=namevalue-storage\n * @link https://caniuse.com/#feat=indexeddb\n */\n\nimport { ObliviousSet } from 'oblivious-set';\nimport { fillOptionsWithDefaults } from '../options.js';\nimport { sleep, randomToken, microSeconds as micro } from '../util.js';\nexport var microSeconds = micro;\nvar KEY_PREFIX = 'pubkey.broadcastChannel-';\nexport var type = 'localstorage';\n\n/**\n * copied from crosstab\n * @link https://github.com/tejacques/crosstab/blob/master/src/crosstab.js#L32\n */\nexport function getLocalStorage() {\n var localStorage;\n if (typeof window === 'undefined') return null;\n try {\n localStorage = window.localStorage;\n localStorage = window['ie8-eventlistener/storage'] || window.localStorage;\n } catch (e) {\n // New versions of Firefox throw a Security exception\n // if cookies are disabled. See\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1028153\n }\n return localStorage;\n}\nexport function storageKey(channelName) {\n return KEY_PREFIX + channelName;\n}\n\n/**\n* writes the new message to the storage\n* and fires the storage-event so other readers can find it\n*/\nexport function postMessage(channelState, messageJson) {\n return new Promise(function (res) {\n sleep().then(function () {\n var key = storageKey(channelState.channelName);\n var writeObj = {\n token: randomToken(),\n time: new Date().getTime(),\n data: messageJson,\n uuid: channelState.uuid\n };\n var value = JSON.stringify(writeObj);\n getLocalStorage().setItem(key, value);\n\n /**\n * StorageEvent does not fire the 'storage' event\n * in the window that changes the state of the local storage.\n * So we fire it manually\n */\n var ev = document.createEvent('Event');\n ev.initEvent('storage', true, true);\n ev.key = key;\n ev.newValue = value;\n window.dispatchEvent(ev);\n res();\n });\n });\n}\nexport function addStorageEventListener(channelName, fn) {\n var key = storageKey(channelName);\n var listener = function listener(ev) {\n if (ev.key === key) {\n fn(JSON.parse(ev.newValue));\n }\n };\n window.addEventListener('storage', listener);\n return listener;\n}\nexport function removeStorageEventListener(listener) {\n window.removeEventListener('storage', listener);\n}\nexport function create(channelName, options) {\n options = fillOptionsWithDefaults(options);\n if (!canBeUsed()) {\n throw new Error('BroadcastChannel: localstorage cannot be used');\n }\n var uuid = randomToken();\n\n /**\n * eMIs\n * contains all messages that have been emitted before\n * @type {ObliviousSet}\n */\n var eMIs = new ObliviousSet(options.localstorage.removeTimeout);\n var state = {\n channelName: channelName,\n uuid: uuid,\n eMIs: eMIs // emittedMessagesIds\n };\n state.listener = addStorageEventListener(channelName, function (msgObj) {\n if (!state.messagesCallback) return; // no listener\n if (msgObj.uuid === uuid) return; // own message\n if (!msgObj.token || eMIs.has(msgObj.token)) return; // already emitted\n if (msgObj.data.time && msgObj.data.time < state.messagesCallbackTime) return; // too old\n\n eMIs.add(msgObj.token);\n state.messagesCallback(msgObj.data);\n });\n return state;\n}\nexport function close(channelState) {\n removeStorageEventListener(channelState.listener);\n}\nexport function onMessage(channelState, fn, time) {\n channelState.messagesCallbackTime = time;\n channelState.messagesCallback = fn;\n}\nexport function canBeUsed() {\n var ls = getLocalStorage();\n if (!ls) return false;\n try {\n var key = '__broadcastchannel_check';\n ls.setItem(key, 'works');\n ls.removeItem(key);\n } catch (e) {\n // Safari 10 in private mode will not allow write access to local\n // storage and fail with a QuotaExceededError. See\n // https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API#Private_Browsing_Incognito_modes\n return false;\n }\n return true;\n}\nexport function averageResponseTime() {\n var defaultTime = 120;\n var userAgent = navigator.userAgent.toLowerCase();\n if (userAgent.includes('safari') && !userAgent.includes('chrome')) {\n // safari is much slower so this time is higher\n return defaultTime * 2;\n }\n return defaultTime;\n}\nexport var LocalstorageMethod = {\n create: create,\n close: close,\n onMessage: onMessage,\n postMessage: postMessage,\n canBeUsed: canBeUsed,\n type: type,\n averageResponseTime: averageResponseTime,\n microSeconds: microSeconds\n};","import { microSeconds as micro } from '../util.js';\nexport var microSeconds = micro;\nexport var type = 'simulate';\nvar SIMULATE_CHANNELS = new Set();\nexport function create(channelName) {\n var state = {\n name: channelName,\n messagesCallback: null\n };\n SIMULATE_CHANNELS.add(state);\n return state;\n}\nexport function close(channelState) {\n SIMULATE_CHANNELS[\"delete\"](channelState);\n}\nexport function postMessage(channelState, messageJson) {\n return new Promise(function (res) {\n return setTimeout(function () {\n var channelArray = Array.from(SIMULATE_CHANNELS);\n channelArray.filter(function (channel) {\n return channel.name === channelState.name;\n }).filter(function (channel) {\n return channel !== channelState;\n }).filter(function (channel) {\n return !!channel.messagesCallback;\n }).forEach(function (channel) {\n return channel.messagesCallback(messageJson);\n });\n res();\n }, 5);\n });\n}\nexport function onMessage(channelState, fn) {\n channelState.messagesCallback = fn;\n}\nexport function canBeUsed() {\n return true;\n}\nexport function averageResponseTime() {\n return 5;\n}\nexport var SimulateMethod = {\n create: create,\n close: close,\n onMessage: onMessage,\n postMessage: postMessage,\n canBeUsed: canBeUsed,\n type: type,\n averageResponseTime: averageResponseTime,\n microSeconds: microSeconds\n};","import { NativeMethod } from './methods/native.js';\nimport { IndexedDBMethod } from './methods/indexed-db.js';\nimport { LocalstorageMethod } from './methods/localstorage.js';\nimport { SimulateMethod } from './methods/simulate.js';\n// the line below will be removed from es5/browser builds\n\n// order is important\nvar METHODS = [NativeMethod,\n// fastest\nIndexedDBMethod, LocalstorageMethod];\nexport function chooseMethod(options) {\n var chooseMethods = [].concat(options.methods, METHODS).filter(Boolean);\n\n // the line below will be removed from es5/browser builds\n\n // directly chosen\n if (options.type) {\n if (options.type === 'simulate') {\n // only use simulate-method if directly chosen\n return SimulateMethod;\n }\n var ret = chooseMethods.find(function (m) {\n return m.type === options.type;\n });\n if (!ret) throw new Error('method-type ' + options.type + ' not found');else return ret;\n }\n\n /**\n * if no webworker support is needed,\n * remove idb from the list so that localstorage will be chosen\n */\n if (!options.webWorkerSupport) {\n chooseMethods = chooseMethods.filter(function (m) {\n return m.type !== 'idb';\n });\n }\n var useMethod = chooseMethods.find(function (method) {\n return method.canBeUsed();\n });\n if (!useMethod) {\n throw new Error(\"No usable method found in \" + JSON.stringify(METHODS.map(function (m) {\n return m.type;\n })));\n } else {\n return useMethod;\n }\n}","import { isPromise, PROMISE_RESOLVED_FALSE, PROMISE_RESOLVED_VOID } from './util.js';\nimport { chooseMethod } from './method-chooser.js';\nimport { fillOptionsWithDefaults } from './options.js';\n\n/**\n * Contains all open channels,\n * used in tests to ensure everything is closed.\n */\nexport var OPEN_BROADCAST_CHANNELS = new Set();\nvar lastId = 0;\nexport var BroadcastChannel = function BroadcastChannel(name, options) {\n // identifier of the channel to debug stuff\n this.id = lastId++;\n OPEN_BROADCAST_CHANNELS.add(this);\n this.name = name;\n if (ENFORCED_OPTIONS) {\n options = ENFORCED_OPTIONS;\n }\n this.options = fillOptionsWithDefaults(options);\n this.method = chooseMethod(this.options);\n\n // isListening\n this._iL = false;\n\n /**\n * _onMessageListener\n * setting onmessage twice,\n * will overwrite the first listener\n */\n this._onML = null;\n\n /**\n * _addEventListeners\n */\n this._addEL = {\n message: [],\n internal: []\n };\n\n /**\n * Unsent message promises\n * where the sending is still in progress\n * @type {Set}\n */\n this._uMP = new Set();\n\n /**\n * _beforeClose\n * array of promises that will be awaited\n * before the channel is closed\n */\n this._befC = [];\n\n /**\n * _preparePromise\n */\n this._prepP = null;\n _prepareChannel(this);\n};\n\n// STATICS\n\n/**\n * used to identify if someone overwrites\n * window.BroadcastChannel with this\n * See methods/native.js\n */\nBroadcastChannel._pubkey = true;\n\n/**\n * clears the tmp-folder if is node\n * @return {Promise} true if has run, false if not node\n */\nexport function clearNodeFolder(options) {\n options = fillOptionsWithDefaults(options);\n var method = chooseMethod(options);\n if (method.type === 'node') {\n return method.clearNodeFolder().then(function () {\n return true;\n });\n } else {\n return PROMISE_RESOLVED_FALSE;\n }\n}\n\n/**\n * if set, this method is enforced,\n * no mather what the options are\n */\nvar ENFORCED_OPTIONS;\nexport function enforceOptions(options) {\n ENFORCED_OPTIONS = options;\n}\n\n// PROTOTYPE\nBroadcastChannel.prototype = {\n postMessage: function postMessage(msg) {\n if (this.closed) {\n throw new Error('BroadcastChannel.postMessage(): ' + 'Cannot post message after channel has closed ' +\n /**\n * In the past when this error appeared, it was really hard to debug.\n * So now we log the msg together with the error so it at least\n * gives some clue about where in your application this happens.\n */\n JSON.stringify(msg));\n }\n return _post(this, 'message', msg);\n },\n postInternal: function postInternal(msg) {\n return _post(this, 'internal', msg);\n },\n set onmessage(fn) {\n var time = this.method.microSeconds();\n var listenObj = {\n time: time,\n fn: fn\n };\n _removeListenerObject(this, 'message', this._onML);\n if (fn && typeof fn === 'function') {\n this._onML = listenObj;\n _addListenerObject(this, 'message', listenObj);\n } else {\n this._onML = null;\n }\n },\n addEventListener: function addEventListener(type, fn) {\n var time = this.method.microSeconds();\n var listenObj = {\n time: time,\n fn: fn\n };\n _addListenerObject(this, type, listenObj);\n },\n removeEventListener: function removeEventListener(type, fn) {\n var obj = this._addEL[type].find(function (obj) {\n return obj.fn === fn;\n });\n _removeListenerObject(this, type, obj);\n },\n close: function close() {\n var _this = this;\n if (this.closed) {\n return;\n }\n OPEN_BROADCAST_CHANNELS[\"delete\"](this);\n this.closed = true;\n var awaitPrepare = this._prepP ? this._prepP : PROMISE_RESOLVED_VOID;\n this._onML = null;\n this._addEL.message = [];\n return awaitPrepare\n // wait until all current sending are processed\n .then(function () {\n return Promise.all(Array.from(_this._uMP));\n })\n // run before-close hooks\n .then(function () {\n return Promise.all(_this._befC.map(function (fn) {\n return fn();\n }));\n })\n // close the channel\n .then(function () {\n return _this.method.close(_this._state);\n });\n },\n get type() {\n return this.method.type;\n },\n get isClosed() {\n return this.closed;\n }\n};\n\n/**\n * Post a message over the channel\n * @returns {Promise} that resolved when the message sending is done\n */\nfunction _post(broadcastChannel, type, msg) {\n var time = broadcastChannel.method.microSeconds();\n var msgObj = {\n time: time,\n type: type,\n data: msg\n };\n var awaitPrepare = broadcastChannel._prepP ? broadcastChannel._prepP : PROMISE_RESOLVED_VOID;\n return awaitPrepare.then(function () {\n var sendPromise = broadcastChannel.method.postMessage(broadcastChannel._state, msgObj);\n\n // add/remove to unsent messages list\n broadcastChannel._uMP.add(sendPromise);\n sendPromise[\"catch\"]().then(function () {\n return broadcastChannel._uMP[\"delete\"](sendPromise);\n });\n return sendPromise;\n });\n}\nfunction _prepareChannel(channel) {\n var maybePromise = channel.method.create(channel.name, channel.options);\n if (isPromise(maybePromise)) {\n channel._prepP = maybePromise;\n maybePromise.then(function (s) {\n // used in tests to simulate slow runtime\n /*if (channel.options.prepareDelay) {\n await new Promise(res => setTimeout(res, this.options.prepareDelay));\n }*/\n channel._state = s;\n });\n } else {\n channel._state = maybePromise;\n }\n}\nfunction _hasMessageListeners(channel) {\n if (channel._addEL.message.length > 0) return true;\n if (channel._addEL.internal.length > 0) return true;\n return false;\n}\nfunction _addListenerObject(channel, type, obj) {\n channel._addEL[type].push(obj);\n _startListening(channel);\n}\nfunction _removeListenerObject(channel, type, obj) {\n channel._addEL[type] = channel._addEL[type].filter(function (o) {\n return o !== obj;\n });\n _stopListening(channel);\n}\nfunction _startListening(channel) {\n if (!channel._iL && _hasMessageListeners(channel)) {\n // someone is listening, start subscribing\n\n var listenerFn = function listenerFn(msgObj) {\n channel._addEL[msgObj.type].forEach(function (listenerObject) {\n /**\n * Getting the current time in JavaScript has no good precision.\n * So instead of only listening to events that happened 'after' the listener\n * was added, we also listen to events that happened 100ms before it.\n * This ensures that when another process, like a WebWorker, sends events\n * we do not miss them out because their timestamp is a bit off compared to the main process.\n * Not doing this would make messages missing when we send data directly after subscribing and awaiting a response.\n * @link https://johnresig.com/blog/accuracy-of-javascript-time/\n */\n var hundredMsInMicro = 100 * 1000;\n var minMessageTime = listenerObject.time - hundredMsInMicro;\n if (msgObj.time >= minMessageTime) {\n listenerObject.fn(msgObj.data);\n }\n });\n };\n var time = channel.method.microSeconds();\n if (channel._prepP) {\n channel._prepP.then(function () {\n channel._iL = true;\n channel.method.onMessage(channel._state, listenerFn, time);\n });\n } else {\n channel._iL = true;\n channel.method.onMessage(channel._state, listenerFn, time);\n }\n }\n}\nfunction _stopListening(channel) {\n if (channel._iL && !_hasMessageListeners(channel)) {\n // no one is listening, stop subscribing\n channel._iL = false;\n var time = channel.method.microSeconds();\n channel.method.onMessage(channel._state, null, time);\n }\n}","/* global WorkerGlobalScope */\n\nexport function addBrowser(fn) {\n if (typeof WorkerGlobalScope === 'function' && self instanceof WorkerGlobalScope) {\n /**\n * Because killing a worker does directly stop the excution\n * of the code, our only chance is to overwrite the close function\n * which could work some times.\n * @link https://stackoverflow.com/q/72903255/3443137\n */\n var oldClose = self.close.bind(self);\n self.close = function () {\n fn();\n return oldClose();\n };\n } else {\n /**\n * if we are on react-native, there is no window.addEventListener\n * @link https://github.com/pubkey/unload/issues/6\n */\n if (typeof window.addEventListener !== 'function') {\n return;\n }\n\n /**\n * for normal browser-windows, we use the beforeunload-event\n */\n window.addEventListener('beforeunload', function () {\n fn();\n }, true);\n\n /**\n * for iframes, we have to use the unload-event\n * @link https://stackoverflow.com/q/47533670/3443137\n */\n window.addEventListener('unload', function () {\n fn();\n }, true);\n }\n\n /**\n * TODO add fallback for safari-mobile\n * @link https://stackoverflow.com/a/26193516/3443137\n */\n}","export function addNode(fn) {\n process.on('exit', function () {\n return fn();\n });\n\n /**\n * on the following events,\n * the process will not end if there are\n * event-handlers attached,\n * therefore we have to call process.exit()\n */\n process.on('beforeExit', function () {\n return fn().then(function () {\n return process.exit();\n });\n });\n // catches ctrl+c event\n process.on('SIGINT', function () {\n return fn().then(function () {\n return process.exit();\n });\n });\n // catches uncaught exceptions\n process.on('uncaughtException', function (err) {\n return fn().then(function () {\n console.trace(err);\n process.exit(101);\n });\n });\n}","import { addBrowser } from './browser.js';\nimport { addNode } from './node.js';\n\n/**\n * Use the code directly to prevent import problems\n * with the detect-node package.\n * @link https://github.com/iliakan/detect-node/blob/master/index.js\n */\nvar isNode = Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';\nvar USE_METHOD = isNode ? addNode : addBrowser;\nvar LISTENERS = new Set();\nvar startedListening = false;\nfunction startListening() {\n if (startedListening) {\n return;\n }\n startedListening = true;\n USE_METHOD(runAll);\n}\nexport function add(fn) {\n startListening();\n if (typeof fn !== 'function') {\n throw new Error('Listener is no function');\n }\n LISTENERS.add(fn);\n var addReturn = {\n remove: function remove() {\n return LISTENERS[\"delete\"](fn);\n },\n run: function run() {\n LISTENERS[\"delete\"](fn);\n return fn();\n }\n };\n return addReturn;\n}\nexport function runAll() {\n var promises = [];\n LISTENERS.forEach(function (fn) {\n promises.push(fn());\n LISTENERS[\"delete\"](fn);\n });\n return Promise.all(promises);\n}\nexport function removeAll() {\n LISTENERS.clear();\n}\nexport function getSize() {\n return LISTENERS.size;\n}","import { add as unloadAdd } from 'unload';\n\n/**\n * sends and internal message over the broadcast-channel\n */\nexport function sendLeaderMessage(leaderElector, action) {\n var msgJson = {\n context: 'leader',\n action: action,\n token: leaderElector.token\n };\n return leaderElector.broadcastChannel.postInternal(msgJson);\n}\nexport function beLeader(leaderElector) {\n leaderElector.isLeader = true;\n leaderElector._hasLeader = true;\n var unloadFn = unloadAdd(function () {\n return leaderElector.die();\n });\n leaderElector._unl.push(unloadFn);\n var isLeaderListener = function isLeaderListener(msg) {\n if (msg.context === 'leader' && msg.action === 'apply') {\n sendLeaderMessage(leaderElector, 'tell');\n }\n if (msg.context === 'leader' && msg.action === 'tell' && !leaderElector._dpLC) {\n /**\n * another instance is also leader!\n * This can happen on rare events\n * like when the CPU is at 100% for long time\n * or the tabs are open very long and the browser throttles them.\n * @link https://github.com/pubkey/broadcast-channel/issues/414\n * @link https://github.com/pubkey/broadcast-channel/issues/385\n */\n leaderElector._dpLC = true;\n leaderElector._dpL(); // message the lib user so the app can handle the problem\n sendLeaderMessage(leaderElector, 'tell'); // ensure other leader also knows the problem\n }\n };\n leaderElector.broadcastChannel.addEventListener('internal', isLeaderListener);\n leaderElector._lstns.push(isLeaderListener);\n return sendLeaderMessage(leaderElector, 'tell');\n}","import { randomToken } from './util.js';\nimport { sendLeaderMessage, beLeader } from './leader-election-util.js';\n\n/**\n * A faster version of the leader elector that uses the WebLock API\n * @link https://developer.mozilla.org/en-US/docs/Web/API/Web_Locks_API\n */\nexport var LeaderElectionWebLock = function LeaderElectionWebLock(broadcastChannel, options) {\n var _this = this;\n this.broadcastChannel = broadcastChannel;\n broadcastChannel._befC.push(function () {\n return _this.die();\n });\n this._options = options;\n this.isLeader = false;\n this.isDead = false;\n this.token = randomToken();\n this._lstns = [];\n this._unl = [];\n this._dpL = function () {}; // onduplicate listener\n this._dpLC = false; // true when onduplicate called\n\n this._wKMC = {}; // stuff for cleanup\n\n // lock name\n this.lN = 'pubkey-bc||' + broadcastChannel.method.type + '||' + broadcastChannel.name;\n};\nLeaderElectionWebLock.prototype = {\n hasLeader: function hasLeader() {\n var _this2 = this;\n return navigator.locks.query().then(function (locks) {\n var relevantLocks = locks.held ? locks.held.filter(function (lock) {\n return lock.name === _this2.lN;\n }) : [];\n if (relevantLocks && relevantLocks.length > 0) {\n return true;\n } else {\n return false;\n }\n });\n },\n awaitLeadership: function awaitLeadership() {\n var _this3 = this;\n if (!this._wLMP) {\n this._wKMC.c = new AbortController();\n var returnPromise = new Promise(function (res, rej) {\n _this3._wKMC.res = res;\n _this3._wKMC.rej = rej;\n });\n this._wLMP = new Promise(function (res) {\n navigator.locks.request(_this3.lN, {\n signal: _this3._wKMC.c.signal\n }, function () {\n // if the lock resolved, we can drop the abort controller\n _this3._wKMC.c = undefined;\n beLeader(_this3);\n res();\n return returnPromise;\n })[\"catch\"](function () {});\n });\n }\n return this._wLMP;\n },\n set onduplicate(_fn) {\n // Do nothing because there are no duplicates in the WebLock version\n },\n die: function die() {\n var _this4 = this;\n this._lstns.forEach(function (listener) {\n return _this4.broadcastChannel.removeEventListener('internal', listener);\n });\n this._lstns = [];\n this._unl.forEach(function (uFn) {\n return uFn.remove();\n });\n this._unl = [];\n if (this.isLeader) {\n this.isLeader = false;\n }\n this.isDead = true;\n if (this._wKMC.res) {\n this._wKMC.res();\n }\n if (this._wKMC.c) {\n this._wKMC.c.abort('LeaderElectionWebLock.die() called');\n }\n return sendLeaderMessage(this, 'death');\n }\n};","import { sleep, randomToken, PROMISE_RESOLVED_VOID, PROMISE_RESOLVED_TRUE, supportsWebLockAPI } from './util.js';\nimport { sendLeaderMessage, beLeader } from './leader-election-util.js';\nimport { LeaderElectionWebLock } from './leader-election-web-lock.js';\nvar LeaderElection = function LeaderElection(broadcastChannel, options) {\n var _this = this;\n this.broadcastChannel = broadcastChannel;\n this._options = options;\n this.isLeader = false;\n this._hasLeader = false;\n this.isDead = false;\n this.token = randomToken();\n\n /**\n * Apply Queue,\n * used to ensure we do not run applyOnce()\n * in parallel.\n */\n this._aplQ = PROMISE_RESOLVED_VOID;\n // amount of unfinished applyOnce() calls\n this._aplQC = 0;\n\n // things to clean up\n this._unl = []; // _unloads\n this._lstns = []; // _listeners\n this._dpL = function () {}; // onduplicate listener\n this._dpLC = false; // true when onduplicate called\n\n /**\n * Even when the own instance is not applying,\n * we still listen to messages to ensure the hasLeader flag\n * is set correctly.\n */\n var hasLeaderListener = function hasLeaderListener(msg) {\n if (msg.context === 'leader') {\n if (msg.action === 'death') {\n _this._hasLeader = false;\n }\n if (msg.action === 'tell') {\n _this._hasLeader = true;\n }\n }\n };\n this.broadcastChannel.addEventListener('internal', hasLeaderListener);\n this._lstns.push(hasLeaderListener);\n};\nLeaderElection.prototype = {\n hasLeader: function hasLeader() {\n return Promise.resolve(this._hasLeader);\n },\n /**\n * Returns true if the instance is leader,\n * false if not.\n * @async\n */\n applyOnce: function applyOnce(\n // true if the applyOnce() call came from the fallbackInterval cycle\n isFromFallbackInterval) {\n var _this2 = this;\n if (this.isLeader) {\n return sleep(0, true);\n }\n if (this.isDead) {\n return sleep(0, false);\n }\n\n /**\n * Already applying more than once,\n * -> wait for the apply queue to be finished.\n */\n if (this._aplQC > 1) {\n return this._aplQ;\n }\n\n /**\n * Add a new apply-run\n */\n var applyRun = function applyRun() {\n /**\n * Optimization shortcuts.\n * Directly return if a previous run\n * has already elected a leader.\n */\n if (_this2.isLeader) {\n return PROMISE_RESOLVED_TRUE;\n }\n var stopCriteria = false;\n var stopCriteriaPromiseResolve;\n /**\n * Resolves when a stop criteria is reached.\n * Uses as a performance shortcut so we do not\n * have to await the responseTime when it is already clear\n * that the election failed.\n */\n var stopCriteriaPromise = new Promise(function (res) {\n stopCriteriaPromiseResolve = function stopCriteriaPromiseResolve() {\n stopCriteria = true;\n res();\n };\n });\n var handleMessage = function handleMessage(msg) {\n if (msg.context === 'leader' && msg.token != _this2.token) {\n if (msg.action === 'apply') {\n // other is applying\n if (msg.token > _this2.token) {\n /**\n * other has higher token\n * -> stop applying and let other become leader.\n */\n stopCriteriaPromiseResolve();\n }\n }\n if (msg.action === 'tell') {\n // other is already leader\n stopCriteriaPromiseResolve();\n _this2._hasLeader = true;\n }\n }\n };\n _this2.broadcastChannel.addEventListener('internal', handleMessage);\n\n /**\n * If the applyOnce() call came from the fallbackInterval,\n * we can assume that the election runs in the background and\n * not critical process is waiting for it.\n * When this is true, we give the other instances\n * more time to answer to messages in the election cycle.\n * This makes it less likely to elect duplicate leaders.\n * But also it takes longer which is not a problem because we anyway\n * run in the background.\n */\n var waitForAnswerTime = isFromFallbackInterval ? _this2._options.responseTime * 4 : _this2._options.responseTime;\n return sendLeaderMessage(_this2, 'apply') // send out that this one is applying\n .then(function () {\n return Promise.race([sleep(waitForAnswerTime), stopCriteriaPromise.then(function () {\n return Promise.reject(new Error());\n })]);\n })\n // send again in case another instance was just created\n .then(function () {\n return sendLeaderMessage(_this2, 'apply');\n })\n // let others time to respond\n .then(function () {\n return Promise.race([sleep(waitForAnswerTime), stopCriteriaPromise.then(function () {\n return Promise.reject(new Error());\n })]);\n })[\"catch\"](function () {}).then(function () {\n _this2.broadcastChannel.removeEventListener('internal', handleMessage);\n if (!stopCriteria) {\n // no stop criteria -> own is leader\n return beLeader(_this2).then(function () {\n return true;\n });\n } else {\n // other is leader\n return false;\n }\n });\n };\n this._aplQC = this._aplQC + 1;\n this._aplQ = this._aplQ.then(function () {\n return applyRun();\n }).then(function () {\n _this2._aplQC = _this2._aplQC - 1;\n });\n return this._aplQ.then(function () {\n return _this2.isLeader;\n });\n },\n awaitLeadership: function awaitLeadership() {\n if (/* _awaitLeadershipPromise */\n !this._aLP) {\n this._aLP = _awaitLeadershipOnce(this);\n }\n return this._aLP;\n },\n set onduplicate(fn) {\n this._dpL = fn;\n },\n die: function die() {\n var _this3 = this;\n this._lstns.forEach(function (listener) {\n return _this3.broadcastChannel.removeEventListener('internal', listener);\n });\n this._lstns = [];\n this._unl.forEach(function (uFn) {\n return uFn.remove();\n });\n this._unl = [];\n if (this.isLeader) {\n this._hasLeader = false;\n this.isLeader = false;\n }\n this.isDead = true;\n return sendLeaderMessage(this, 'death');\n }\n};\n\n/**\n * @param leaderElector {LeaderElector}\n */\nfunction _awaitLeadershipOnce(leaderElector) {\n if (leaderElector.isLeader) {\n return PROMISE_RESOLVED_VOID;\n }\n return new Promise(function (res) {\n var resolved = false;\n function finish() {\n if (resolved) {\n return;\n }\n resolved = true;\n leaderElector.broadcastChannel.removeEventListener('internal', whenDeathListener);\n res(true);\n }\n\n // try once now\n leaderElector.applyOnce().then(function () {\n if (leaderElector.isLeader) {\n finish();\n }\n });\n\n /**\n * Try on fallbackInterval\n * @recursive\n */\n var tryOnFallBack = function tryOnFallBack() {\n return sleep(leaderElector._options.fallbackInterval).then(function () {\n if (leaderElector.isDead || resolved) {\n return;\n }\n if (leaderElector.isLeader) {\n finish();\n } else {\n return leaderElector.applyOnce(true).then(function () {\n if (leaderElector.isLeader) {\n finish();\n } else {\n tryOnFallBack();\n }\n });\n }\n });\n };\n tryOnFallBack();\n\n // try when other leader dies\n var whenDeathListener = function whenDeathListener(msg) {\n if (msg.context === 'leader' && msg.action === 'death') {\n leaderElector._hasLeader = false;\n leaderElector.applyOnce().then(function () {\n if (leaderElector.isLeader) {\n finish();\n }\n });\n }\n };\n leaderElector.broadcastChannel.addEventListener('internal', whenDeathListener);\n leaderElector._lstns.push(whenDeathListener);\n });\n}\nfunction fillOptionsWithDefaults(options, channel) {\n if (!options) options = {};\n options = JSON.parse(JSON.stringify(options));\n if (!options.fallbackInterval) {\n options.fallbackInterval = 3000;\n }\n if (!options.responseTime) {\n options.responseTime = channel.method.averageResponseTime(channel.options);\n }\n return options;\n}\nexport function createLeaderElection(channel, options) {\n if (channel._leaderElector) {\n throw new Error('BroadcastChannel already has a leader-elector');\n }\n options = fillOptionsWithDefaults(options, channel);\n var elector = supportsWebLockAPI() ? new LeaderElectionWebLock(channel, options) : new LeaderElection(channel, options);\n channel._befC.push(function () {\n return elector.die();\n });\n channel._leaderElector = elector;\n return elector;\n}","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { BroadcastChannel } from 'broadcast-channel';\nimport { isBrowser } from '../features.js';\nimport '../oidc/types/Token.js';\nimport { EVENT_ADDED, EVENT_REMOVED, EVENT_RENEWED, EVENT_SET_STORAGE } from '../oidc/types/TokenManager.js';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nclass SyncStorageService {\n constructor(tokenManager, options = {}) {\n this.started = false;\n this.enablePostMessage = true;\n this.tokenManager = tokenManager;\n this.options = options;\n this.onTokenAddedHandler = this.onTokenAddedHandler.bind(this);\n this.onTokenRemovedHandler = this.onTokenRemovedHandler.bind(this);\n this.onTokenRenewedHandler = this.onTokenRenewedHandler.bind(this);\n this.onSetStorageHandler = this.onSetStorageHandler.bind(this);\n this.onSyncMessageHandler = this.onSyncMessageHandler.bind(this);\n }\n requiresLeadership() {\n return false;\n }\n isStarted() {\n return this.started;\n }\n canStart() {\n return !!this.options.syncStorage && isBrowser() && !this.started;\n }\n async start() {\n if (!this.canStart()) {\n return;\n }\n const {\n syncChannelName\n } = this.options;\n try {\n this.channel = new BroadcastChannel(syncChannelName);\n } catch (err) {\n throw new AuthSdkError('SyncStorageService is not supported in current browser.');\n }\n this.tokenManager.on(EVENT_ADDED, this.onTokenAddedHandler);\n this.tokenManager.on(EVENT_REMOVED, this.onTokenRemovedHandler);\n this.tokenManager.on(EVENT_RENEWED, this.onTokenRenewedHandler);\n this.tokenManager.on(EVENT_SET_STORAGE, this.onSetStorageHandler);\n this.channel.addEventListener('message', this.onSyncMessageHandler);\n this.started = true;\n }\n async stop() {\n var _a, _b;\n if (this.started) {\n this.tokenManager.off(EVENT_ADDED, this.onTokenAddedHandler);\n this.tokenManager.off(EVENT_REMOVED, this.onTokenRemovedHandler);\n this.tokenManager.off(EVENT_RENEWED, this.onTokenRenewedHandler);\n this.tokenManager.off(EVENT_SET_STORAGE, this.onSetStorageHandler);\n (_a = this.channel) === null || _a === void 0 ? void 0 : _a.removeEventListener('message', this.onSyncMessageHandler);\n await ((_b = this.channel) === null || _b === void 0 ? void 0 : _b.close());\n this.channel = undefined;\n this.started = false;\n }\n }\n onTokenAddedHandler(key, token) {\n var _a;\n if (!this.enablePostMessage) {\n return;\n }\n (_a = this.channel) === null || _a === void 0 ? void 0 : _a.postMessage({\n type: EVENT_ADDED,\n key,\n token\n });\n }\n onTokenRemovedHandler(key, token) {\n var _a;\n if (!this.enablePostMessage) {\n return;\n }\n (_a = this.channel) === null || _a === void 0 ? void 0 : _a.postMessage({\n type: EVENT_REMOVED,\n key,\n token\n });\n }\n onTokenRenewedHandler(key, token, oldToken) {\n var _a;\n if (!this.enablePostMessage) {\n return;\n }\n (_a = this.channel) === null || _a === void 0 ? void 0 : _a.postMessage({\n type: EVENT_RENEWED,\n key,\n token,\n oldToken\n });\n }\n onSetStorageHandler(storage) {\n var _a;\n (_a = this.channel) === null || _a === void 0 ? void 0 : _a.postMessage({\n type: EVENT_SET_STORAGE,\n storage\n });\n }\n onSyncMessageHandler(msg) {\n this.enablePostMessage = false;\n switch (msg.type) {\n case EVENT_SET_STORAGE:\n this.tokenManager.getStorage().setStorage(msg.storage);\n break;\n case EVENT_ADDED:\n this.tokenManager.emitAdded(msg.key, msg.token);\n this.tokenManager.setExpireEventTimeout(msg.key, msg.token);\n break;\n case EVENT_REMOVED:\n this.tokenManager.clearExpireEventTimeout(msg.key);\n this.tokenManager.emitRemoved(msg.key, msg.token);\n break;\n case EVENT_RENEWED:\n this.tokenManager.emitRenewed(msg.key, msg.token, msg.oldToken);\n break;\n }\n this.enablePostMessage = true;\n }\n}\nexport { SyncStorageService };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { BroadcastChannel, createLeaderElection } from 'broadcast-channel';\nimport { isBrowser } from '../features.js';\nclass LeaderElectionService {\n constructor(options = {}) {\n this.started = false;\n this.options = options;\n this.onLeaderDuplicate = this.onLeaderDuplicate.bind(this);\n this.onLeader = this.onLeader.bind(this);\n }\n onLeaderDuplicate() {}\n async onLeader() {\n var _a, _b;\n await ((_b = (_a = this.options).onLeader) === null || _b === void 0 ? void 0 : _b.call(_a));\n }\n isLeader() {\n var _a;\n return !!((_a = this.elector) === null || _a === void 0 ? void 0 : _a.isLeader);\n }\n hasLeader() {\n var _a;\n return !!((_a = this.elector) === null || _a === void 0 ? void 0 : _a.hasLeader);\n }\n async start() {\n if (this.canStart()) {\n const {\n electionChannelName\n } = this.options;\n this.channel = new BroadcastChannel(electionChannelName);\n this.elector = createLeaderElection(this.channel);\n this.elector.onduplicate = this.onLeaderDuplicate;\n this.elector.awaitLeadership().then(this.onLeader);\n this.started = true;\n }\n }\n async stop() {\n if (this.started) {\n if (this.elector) {\n await this.elector.die();\n this.elector = undefined;\n }\n if (this.channel) {\n this.channel.postInternal = () => Promise.resolve();\n await this.channel.close();\n this.channel = undefined;\n }\n this.started = false;\n }\n }\n requiresLeadership() {\n return false;\n }\n isStarted() {\n return this.started;\n }\n canStart() {\n return isBrowser() && !this.started;\n }\n}\nexport { LeaderElectionService };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { isBrowser } from '../features.js';\nconst getNow = () => Math.floor(Date.now() / 1000);\nclass RenewOnTabActivationService {\n constructor(tokenManager, options = {}) {\n this.started = false;\n this.lastHidden = -1;\n this.tokenManager = tokenManager;\n this.options = options;\n this.onPageVisbilityChange = this._onPageVisbilityChange.bind(this);\n }\n _onPageVisbilityChange() {\n if (document.hidden) {\n this.lastHidden = getNow();\n } else if (this.lastHidden > 0 && getNow() - this.lastHidden >= this.options.tabInactivityDuration) {\n const {\n accessToken,\n idToken\n } = this.tokenManager.getTokensSync();\n if (!!accessToken && this.tokenManager.hasExpired(accessToken)) {\n const key = this.tokenManager.getStorageKeyByType('accessToken');\n this.tokenManager.renew(key).catch(() => {});\n } else if (!!idToken && this.tokenManager.hasExpired(idToken)) {\n const key = this.tokenManager.getStorageKeyByType('idToken');\n this.tokenManager.renew(key).catch(() => {});\n }\n }\n }\n async start() {\n if (this.canStart() && !!document) {\n document.addEventListener('visibilitychange', this.onPageVisbilityChange);\n this.started = true;\n }\n }\n async stop() {\n if (document) {\n document.removeEventListener('visibilitychange', this.onPageVisbilityChange);\n this.started = false;\n }\n }\n canStart() {\n return isBrowser() && !!this.options.autoRenew && !!this.options.renewOnTabActivation && !this.started;\n }\n requiresLeadership() {\n return false;\n }\n isStarted() {\n return this.started;\n }\n}\nexport { RenewOnTabActivationService };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { AutoRenewService } from '../../services/AutoRenewService.js';\nimport { SyncStorageService } from '../../services/SyncStorageService.js';\nimport { LeaderElectionService } from '../../services/LeaderElectionService.js';\nimport { RenewOnTabActivationService } from '../../services/RenewOnTabActivationService.js';\nimport { removeNils } from '../../util/object.js';\nconst AUTO_RENEW = 'autoRenew';\nconst SYNC_STORAGE = 'syncStorage';\nconst LEADER_ELECTION = 'leaderElection';\nconst RENEW_ON_TAB_ACTIVATION = 'renewOnTabActivation';\nlet ServiceManager = /*#__PURE__*/(() => {\n class ServiceManager {\n constructor(sdk, options = {}) {\n this.sdk = sdk;\n this.onLeader = this.onLeader.bind(this);\n const {\n autoRenew,\n autoRemove,\n syncStorage\n } = sdk.tokenManager.getOptions();\n options.electionChannelName = options.electionChannelName || options.broadcastChannelName;\n this.options = Object.assign({}, ServiceManager.defaultOptions, {\n autoRenew,\n autoRemove,\n syncStorage\n }, {\n electionChannelName: `${sdk.options.clientId}-election`,\n syncChannelName: `${sdk.options.clientId}-sync`\n }, removeNils(options));\n this.started = false;\n this.services = new Map();\n ServiceManager.knownServices.forEach(name => {\n const svc = this.createService(name);\n if (svc) {\n this.services.set(name, svc);\n }\n });\n }\n async onLeader() {\n if (this.started) {\n await this.startServices();\n }\n }\n isLeader() {\n var _a;\n return (_a = this.getService(LEADER_ELECTION)) === null || _a === void 0 ? void 0 : _a.isLeader();\n }\n isLeaderRequired() {\n return [...this.services.values()].some(srv => srv.canStart() && srv.requiresLeadership());\n }\n async start() {\n if (this.started) {\n return;\n }\n await this.startServices();\n this.started = true;\n }\n async stop() {\n await this.stopServices();\n this.started = false;\n }\n getService(name) {\n return this.services.get(name);\n }\n async startServices() {\n for (const [name, srv] of this.services.entries()) {\n if (this.canStartService(name, srv)) {\n await srv.start();\n }\n }\n }\n async stopServices() {\n for (const srv of this.services.values()) {\n await srv.stop();\n }\n }\n canStartService(name, srv) {\n let canStart = srv.canStart() && !srv.isStarted();\n if (name === LEADER_ELECTION) {\n canStart && (canStart = this.isLeaderRequired());\n } else if (srv.requiresLeadership()) {\n canStart && (canStart = this.isLeader());\n }\n return canStart;\n }\n createService(name) {\n const tokenManager = this.sdk.tokenManager;\n let service;\n switch (name) {\n case LEADER_ELECTION:\n service = new LeaderElectionService(Object.assign(Object.assign({}, this.options), {\n onLeader: this.onLeader\n }));\n break;\n case AUTO_RENEW:\n service = new AutoRenewService(tokenManager, Object.assign({}, this.options));\n break;\n case SYNC_STORAGE:\n service = new SyncStorageService(tokenManager, Object.assign({}, this.options));\n break;\n case RENEW_ON_TAB_ACTIVATION:\n service = new RenewOnTabActivationService(tokenManager, Object.assign({}, this.options));\n break;\n default:\n throw new Error(`Unknown service ${name}`);\n }\n return service;\n }\n }\n ServiceManager.knownServices = [AUTO_RENEW, SYNC_STORAGE, LEADER_ELECTION, RENEW_ON_TAB_ACTIVATION];\n ServiceManager.defaultOptions = {\n autoRenew: true,\n autoRemove: true,\n syncStorage: true,\n renewOnTabActivation: true,\n tabInactivityDuration: 1800\n };\n return ServiceManager;\n})();\nexport { ServiceManager };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { parseOAuthResponseFromUrl } from '../oidc/parseFromUrl.js';\nimport { AuthStateManager } from './AuthStateManager.js';\nimport { ServiceManager } from './ServiceManager/browser.js';\nfunction mixinCore(Base) {\n return class OktaAuthCore extends Base {\n constructor(...args) {\n super(...args);\n this.authStateManager = new AuthStateManager(this);\n this.serviceManager = new ServiceManager(this, this.options.services);\n }\n async start() {\n await this.serviceManager.start();\n this.tokenManager.start();\n if (!this.token.isLoginRedirect()) {\n await this.authStateManager.updateAuthState();\n }\n }\n async stop() {\n this.tokenManager.stop();\n await this.serviceManager.stop();\n }\n async handleRedirect(originalUri) {\n await this.handleLoginRedirect(undefined, originalUri);\n }\n async handleLoginRedirect(tokens, originalUri) {\n let state = this.options.state;\n if (tokens) {\n this.tokenManager.setTokens(tokens);\n originalUri = originalUri || this.getOriginalUri(this.options.state);\n } else if (this.isLoginRedirect()) {\n try {\n const oAuthResponse = await parseOAuthResponseFromUrl(this, {});\n state = oAuthResponse.state;\n originalUri = originalUri || this.getOriginalUri(state);\n await this.storeTokensFromRedirect();\n } catch (e) {\n await this.authStateManager.updateAuthState();\n throw e;\n }\n } else {\n return;\n }\n await this.authStateManager.updateAuthState();\n this.removeOriginalUri(state);\n const {\n restoreOriginalUri\n } = this.options;\n if (restoreOriginalUri) {\n await restoreOriginalUri(this, originalUri);\n } else if (originalUri) {\n window.location.replace(originalUri);\n }\n }\n };\n}\nexport { mixinCore };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { omit, getLink } from '../util/object.js';\nimport { toQueryString } from '../util/url.js';\nimport '../errors/WWWAuthError.js';\nimport { get, post, httpRequest } from '../http/request.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nfunction sessionExists(sdk) {\n return sdk.session.get().then(function (res) {\n if (res.status === 'ACTIVE') {\n return true;\n }\n return false;\n }).catch(function () {\n return false;\n });\n}\nfunction getSession(sdk) {\n return get(sdk, '/api/v1/sessions/me', {\n withCredentials: true\n }).then(function (session) {\n var res = omit(session, '_links');\n res.refresh = function () {\n return post(sdk, getLink(session, 'refresh').href, {}, {\n withCredentials: true\n });\n };\n res.user = function () {\n return get(sdk, getLink(session, 'user').href, {\n withCredentials: true\n });\n };\n return res;\n }).catch(function () {\n return {\n status: 'INACTIVE'\n };\n });\n}\nfunction closeSession(sdk) {\n return httpRequest(sdk, {\n url: sdk.getIssuerOrigin() + '/api/v1/sessions/me',\n method: 'DELETE',\n withCredentials: true\n });\n}\nfunction refreshSession(sdk) {\n return post(sdk, '/api/v1/sessions/me/lifecycle/refresh', {}, {\n withCredentials: true\n });\n}\nfunction setCookieAndRedirect(sdk, sessionToken, redirectUrl) {\n redirectUrl = redirectUrl || window.location.href;\n window.location.assign(sdk.getIssuerOrigin() + '/login/sessionCookieRedirect' + toQueryString({\n checkAccountSetupComplete: true,\n token: sessionToken,\n redirectUrl: redirectUrl\n }));\n}\nexport { closeSession, getSession, refreshSession, sessionExists, setCookieAndRedirect };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { closeSession, sessionExists, getSession, refreshSession, setCookieAndRedirect } from './api.js';\nfunction createSessionApi(sdk) {\n const session = {\n close: closeSession.bind(null, sdk),\n exists: sessionExists.bind(null, sdk),\n get: getSession.bind(null, sdk),\n refresh: refreshSession.bind(null, sdk),\n setCookieAndRedirect: setCookieAndRedirect.bind(null, sdk)\n };\n return session;\n}\nexport { createSessionApi };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createSessionApi } from './factory.js';\nfunction mixinSession(Base) {\n return class OktaAuthSession extends Base {\n constructor(...args) {\n super(...args);\n this.session = createSessionApi(this);\n }\n closeSession() {\n return this.session.close().then(async () => {\n this.clearStorage();\n return true;\n }).catch(function (e) {\n if (e.name === 'AuthApiError' && e.errorCode === 'E0000007') {\n return false;\n }\n throw e;\n });\n }\n };\n}\nexport { mixinSession };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createOktaAuthBase } from '../base/factory.js';\nimport { mixinStorage } from '../storage/mixin.js';\nimport { mixinHttp } from '../http/mixin.js';\nimport { mixinOAuth } from '../oidc/mixin/index.js';\nimport { mixinCore } from './mixin.js';\nimport { mixinSession } from '../session/mixin.js';\nfunction createOktaAuthCore(StorageManagerConstructor, OptionsConstructor, TransactionManagerConstructor) {\n const Base = createOktaAuthBase(OptionsConstructor);\n const WithStorage = mixinStorage(Base, StorageManagerConstructor);\n const WithHttp = mixinHttp(WithStorage);\n const WithSession = mixinSession(WithHttp);\n const WithOAuth = mixinOAuth(WithSession, TransactionManagerConstructor);\n const Core = mixinCore(WithOAuth);\n return Core;\n}\nexport { createOktaAuthCore };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { base64UrlToBuffer, bufferToBase64Url } from '../crypto/base64.js';\nconst getEnrolledCredentials = (authenticatorEnrollments = []) => {\n const credentials = [];\n authenticatorEnrollments.forEach(enrollement => {\n if (enrollement.key === 'webauthn') {\n credentials.push({\n type: 'public-key',\n id: base64UrlToBuffer(enrollement.credentialId)\n });\n }\n });\n return credentials;\n};\nconst buildCredentialCreationOptions = (activationData, authenticatorEnrollments) => {\n return {\n publicKey: {\n rp: activationData.rp,\n user: {\n id: base64UrlToBuffer(activationData.user.id),\n name: activationData.user.name,\n displayName: activationData.user.displayName\n },\n challenge: base64UrlToBuffer(activationData.challenge),\n pubKeyCredParams: activationData.pubKeyCredParams,\n attestation: activationData.attestation,\n authenticatorSelection: activationData.authenticatorSelection,\n excludeCredentials: getEnrolledCredentials(authenticatorEnrollments)\n }\n };\n};\nconst buildCredentialRequestOptions = (challengeData, authenticatorEnrollments) => {\n return {\n publicKey: {\n challenge: base64UrlToBuffer(challengeData.challenge),\n userVerification: challengeData.userVerification,\n allowCredentials: getEnrolledCredentials(authenticatorEnrollments)\n }\n };\n};\nconst getAttestation = credential => {\n const response = credential.response;\n const id = credential.id;\n const clientData = bufferToBase64Url(response.clientDataJSON);\n const attestation = bufferToBase64Url(response.attestationObject);\n return {\n id,\n clientData,\n attestation\n };\n};\nconst getAssertion = credential => {\n const response = credential.response;\n const id = credential.id;\n const clientData = bufferToBase64Url(response.clientDataJSON);\n const authenticatorData = bufferToBase64Url(response.authenticatorData);\n const signatureData = bufferToBase64Url(response.signature);\n return {\n id,\n clientData,\n authenticatorData,\n signatureData\n };\n};\nexport { buildCredentialCreationOptions, buildCredentialRequestOptions, getAssertion, getAttestation };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createIdxAPI } from './factory/api.js';\nimport * as webauthn from './webauthn.js';\nfunction mixinIdx(Base) {\n var _a;\n return _a = class OktaAuthIdx extends Base {\n constructor(...args) {\n super(...args);\n this.idx = createIdxAPI(this);\n }\n }, _a.webauthn = webauthn, _a;\n}\nexport { mixinIdx };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createOktaAuthCore } from '../../core/factory.js';\nimport { mixinIdx } from '../mixin.js';\nfunction createOktaAuthIdx(StorageManagerConstructor, OptionsConstructor, TransactionManagerConstructor) {\n const Core = createOktaAuthCore(StorageManagerConstructor, OptionsConstructor, TransactionManagerConstructor);\n const WithIdx = mixinIdx(Core);\n return WithIdx;\n}\nexport { createOktaAuthIdx };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createBaseTokenAPI } from '../factory/baseApi.js';\nimport '../../errors/WWWAuthError.js';\nimport { isLoginRedirect, hasResponseType } from '../util/loginRedirect.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport '../types/Token.js';\nfunction mixinMinimalOAuth(Base, TransactionManagerConstructor) {\n return class OktaAuthOAuth extends Base {\n constructor(...args) {\n super(...args);\n this.transactionManager = new TransactionManagerConstructor(Object.assign({\n storageManager: this.storageManager\n }, this.options.transactionManager));\n this.token = createBaseTokenAPI(this);\n }\n isLoginRedirect() {\n return isLoginRedirect(this);\n }\n isPKCE() {\n return !!this.options.pkce;\n }\n hasResponseType(responseType) {\n return hasResponseType(responseType, this.options);\n }\n isAuthorizationCodeFlow() {\n return this.hasResponseType('code');\n }\n };\n}\nexport { mixinMinimalOAuth };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport '../errors/WWWAuthError.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport '../oidc/types/Token.js';\nimport { createOAuthOptionsConstructor } from '../oidc/options/OAuthOptionsConstructor.js';\nfunction createCoreOptionsConstructor() {\n const OAuthOptionsConstructor = createOAuthOptionsConstructor();\n return class CoreOptionsConstructor extends OAuthOptionsConstructor {\n constructor(options) {\n super(options);\n this.services = options.services;\n this.transformAuthState = options.transformAuthState;\n }\n };\n}\nexport { createCoreOptionsConstructor };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { isHTTPS } from '../../features.js';\nimport 'tiny-emitter';\nimport { createBaseOptionsConstructor } from '../../base/options.js';\nimport { getCookieSettings, getStorage, STORAGE_MANAGER_OPTIONS } from './browser.js';\nfunction createStorageOptionsConstructor() {\n const BaseOptionsConstructor = createBaseOptionsConstructor();\n return class StorageOptionsConstructor extends BaseOptionsConstructor {\n constructor(args) {\n super(args);\n this.cookies = getCookieSettings(args, isHTTPS());\n this.storageUtil = args.storageUtil || getStorage();\n this.storageManager = Object.assign(Object.assign({}, STORAGE_MANAGER_OPTIONS), args.storageManager);\n }\n };\n}\nexport { createStorageOptionsConstructor };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction createBaseOptionsConstructor() {\n return class BaseOptionsConstructor {\n constructor(args) {\n this.devMode = !!args.devMode;\n }\n };\n}\nexport { createBaseOptionsConstructor };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { warn } from '../../util/console.js';\nimport storageUtil from '../../browser/browserStorage.js';\nfunction getStorage() {\n const storageUtil$1 = Object.assign({}, storageUtil, {\n inMemoryStore: {}\n });\n return storageUtil$1;\n}\nconst STORAGE_MANAGER_OPTIONS = {\n token: {\n storageTypes: ['localStorage', 'sessionStorage', 'cookie']\n },\n cache: {\n storageTypes: ['localStorage', 'sessionStorage', 'cookie']\n },\n transaction: {\n storageTypes: ['sessionStorage', 'localStorage', 'cookie']\n },\n 'shared-transaction': {\n storageTypes: ['localStorage']\n },\n 'original-uri': {\n storageTypes: ['localStorage']\n }\n};\nfunction getCookieSettings(args = {}, isHTTPS) {\n var cookieSettings = args.cookies || {};\n if (typeof cookieSettings.secure === 'undefined') {\n cookieSettings.secure = isHTTPS;\n }\n if (typeof cookieSettings.sameSite === 'undefined') {\n cookieSettings.sameSite = cookieSettings.secure ? 'none' : 'lax';\n }\n if (cookieSettings.secure && !isHTTPS) {\n warn('The current page is not being served with the HTTPS protocol.\\n' + 'For security reasons, we strongly recommend using HTTPS.\\n' + 'If you cannot use HTTPS, set \"cookies.secure\" option to false.');\n cookieSettings.secure = false;\n }\n if (cookieSettings.sameSite === 'none' && !cookieSettings.secure) {\n cookieSettings.sameSite = 'lax';\n }\n return cookieSettings;\n}\nexport { STORAGE_MANAGER_OPTIONS, getCookieSettings, getStorage };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport crossFetch from 'cross-fetch';\nconst appJsonContentTypeRegex = /application\\/\\w*\\+?json/;\nfunction readData(response) {\n if (response.headers.get('Content-Type') && response.headers.get('Content-Type').toLowerCase().indexOf('application/json') >= 0) {\n return response.json().catch(e => {\n return {\n error: e,\n errorSummary: 'Could not parse server response'\n };\n });\n } else {\n return response.text();\n }\n}\nfunction formatResult(status, data, response) {\n const isObject = typeof data === 'object';\n const headers = {};\n for (const pair of response.headers.entries()) {\n headers[pair[0]] = pair[1];\n }\n const result = {\n responseText: isObject ? JSON.stringify(data) : data,\n status: status,\n headers\n };\n if (isObject) {\n result.responseType = 'json';\n result.responseJSON = data;\n }\n return result;\n}\nfunction fetchRequest(method, url, args) {\n var body = args.data;\n var headers = args.headers || {};\n var contentType = headers['Content-Type'] || headers['content-type'] || '';\n if (body && typeof body !== 'string') {\n if (appJsonContentTypeRegex.test(contentType)) {\n body = JSON.stringify(body);\n } else if (contentType === 'application/x-www-form-urlencoded') {\n body = Object.entries(body).map(([param, value]) => `${param}=${encodeURIComponent(value)}`).join('&');\n }\n }\n var fetch = window.fetch || crossFetch;\n var fetchPromise = fetch(url, {\n method: method,\n headers: args.headers,\n body: body,\n credentials: args.withCredentials ? 'include' : 'omit'\n });\n if (!fetchPromise.finally) {\n fetchPromise = Promise.resolve(fetchPromise);\n }\n return fetchPromise.then(function (response) {\n var error = !response.ok;\n var status = response.status;\n return readData(response).then(data => {\n return formatResult(status, data, response);\n }).then(result => {\n var _a;\n if (error || ((_a = result.responseJSON) === null || _a === void 0 ? void 0 : _a.error)) {\n throw result;\n }\n return result;\n });\n });\n}\nexport { fetchRequest as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createStorageOptionsConstructor } from '../storage/options/StorageOptionsConstructor.js';\nimport '../errors/WWWAuthError.js';\nimport fetchRequest from '../fetch/fetchRequest.js';\nfunction createHttpOptionsConstructor() {\n const StorageOptionsConstructor = createStorageOptionsConstructor();\n return class HttpOptionsConstructor extends StorageOptionsConstructor {\n constructor(args) {\n super(args);\n this.issuer = args.issuer;\n this.transformErrorXHR = args.transformErrorXHR;\n this.headers = args.headers;\n this.httpRequestClient = args.httpRequestClient || fetchRequest;\n this.httpRequestInterceptors = args.httpRequestInterceptors;\n }\n };\n}\nexport { createHttpOptionsConstructor };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { DEFAULT_MAX_CLOCK_SKEW } from '../../constants.js';\nimport { removeTrailingSlash, toAbsoluteUrl } from '../../util/url.js';\nimport { isBrowser } from '../../features.js';\nimport { createHttpOptionsConstructor } from '../../http/options.js';\nimport { enableSharedStorage } from './browser.js';\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nfunction assertValidConfig(args) {\n args = args || {};\n var scopes = args.scopes;\n if (scopes && !Array.isArray(scopes)) {\n throw new AuthSdkError('scopes must be a array of strings. ' + 'Required usage: new OktaAuth({scopes: [\"openid\", \"email\"]})');\n }\n var issuer = args.issuer;\n if (!issuer) {\n throw new AuthSdkError('No issuer passed to constructor. ' + 'Required usage: new OktaAuth({issuer: \"https://{yourOktaDomain}.com/oauth2/{authServerId}\"})');\n }\n var isUrlRegex = new RegExp('^http?s?://.+');\n if (!isUrlRegex.test(issuer)) {\n throw new AuthSdkError('Issuer must be a valid URL. ' + 'Required usage: new OktaAuth({issuer: \"https://{yourOktaDomain}.com/oauth2/{authServerId}\"})');\n }\n if (issuer.indexOf('-admin.okta') !== -1) {\n throw new AuthSdkError('Issuer URL passed to constructor contains \"-admin\" in subdomain. ' + 'Required usage: new OktaAuth({issuer: \"https://{yourOktaDomain}.com})');\n }\n}\nfunction createOAuthOptionsConstructor() {\n const HttpOptionsConstructor = createHttpOptionsConstructor();\n return class OAuthOptionsConstructor extends HttpOptionsConstructor {\n constructor(options) {\n super(options);\n assertValidConfig(options);\n this.issuer = removeTrailingSlash(options.issuer);\n this.tokenUrl = removeTrailingSlash(options.tokenUrl);\n this.authorizeUrl = removeTrailingSlash(options.authorizeUrl);\n this.userinfoUrl = removeTrailingSlash(options.userinfoUrl);\n this.revokeUrl = removeTrailingSlash(options.revokeUrl);\n this.logoutUrl = removeTrailingSlash(options.logoutUrl);\n this.pkce = options.pkce === false ? false : true;\n this.clientId = options.clientId;\n this.redirectUri = options.redirectUri;\n if (isBrowser()) {\n this.redirectUri = toAbsoluteUrl(options.redirectUri, window.location.origin);\n }\n this.responseType = options.responseType;\n this.responseMode = options.responseMode;\n this.state = options.state;\n this.scopes = options.scopes;\n this.ignoreSignature = !!options.ignoreSignature;\n this.codeChallenge = options.codeChallenge;\n this.codeChallengeMethod = options.codeChallengeMethod;\n this.acrValues = options.acrValues;\n this.maxAge = options.maxAge;\n this.dpop = options.dpop === true;\n this.tokenManager = options.tokenManager;\n this.postLogoutRedirectUri = options.postLogoutRedirectUri;\n this.restoreOriginalUri = options.restoreOriginalUri;\n this.transactionManager = Object.assign({\n enableSharedStorage\n }, options.transactionManager);\n this.clientSecret = options.clientSecret;\n this.setLocation = options.setLocation;\n this.ignoreLifetime = !!options.ignoreLifetime;\n if (!options.maxClockSkew && options.maxClockSkew !== 0) {\n this.maxClockSkew = DEFAULT_MAX_CLOCK_SKEW;\n } else {\n this.maxClockSkew = options.maxClockSkew;\n }\n }\n };\n}\nexport { createOAuthOptionsConstructor };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createCoreOptionsConstructor } from '../core/options.js';\nfunction createIdxOptionsConstructor() {\n const CoreOptionsConstructor = createCoreOptionsConstructor();\n return class IdxOptionsConstructor extends CoreOptionsConstructor {\n constructor(options) {\n super(options);\n this.flow = options.flow;\n this.activationToken = options.activationToken;\n this.recoveryToken = options.recoveryToken;\n this.idx = options.idx;\n }\n };\n}\nexport { createIdxOptionsConstructor };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { warn } from '../util/console.js';\nimport { isBrowser } from '../features.js';\nimport { IDX_RESPONSE_STORAGE_NAME } from '../constants.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport { SavedObject } from '../storage/SavedObject.js';\nimport { createCoreStorageManager } from '../core/storage.js';\nfunction createIdxStorageManager() {\n const CoreStorageManager = createCoreStorageManager();\n return class IdxStorageManager extends CoreStorageManager {\n constructor(storageManagerOptions, cookieOptions, storageUtil) {\n super(storageManagerOptions, cookieOptions, storageUtil);\n }\n getIdxResponseStorage(options) {\n let storage;\n if (isBrowser()) {\n try {\n storage = this.storageUtil.getStorageByType('memory', options);\n } catch (e) {\n warn('No response storage found, you may want to provide custom implementation for intermediate idx responses to optimize the network traffic');\n }\n } else {\n const transactionStorage = this.getTransactionStorage(options);\n if (transactionStorage) {\n storage = {\n getItem: key => {\n const transaction = transactionStorage.getStorage();\n if (transaction && transaction[key]) {\n return transaction[key];\n }\n return null;\n },\n setItem: (key, val) => {\n const transaction = transactionStorage.getStorage();\n if (!transaction) {\n throw new AuthSdkError('Transaction has been cleared, failed to save idxState');\n }\n transaction[key] = val;\n transactionStorage.setStorage(transaction);\n },\n removeItem: key => {\n const transaction = transactionStorage.getStorage();\n if (!transaction) {\n return;\n }\n delete transaction[key];\n transactionStorage.setStorage(transaction);\n }\n };\n }\n }\n if (!storage) {\n return null;\n }\n return new SavedObject(storage, IDX_RESPONSE_STORAGE_NAME);\n }\n };\n}\nexport { createIdxStorageManager };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nclass SavedObject {\n constructor(storage, storageName) {\n if (!storage) {\n throw new AuthSdkError('\"storage\" is required');\n }\n if (typeof storageName !== 'string' || !storageName.length) {\n throw new AuthSdkError('\"storageName\" is required');\n }\n this.storageName = storageName;\n this.storageProvider = storage;\n }\n getItem(key) {\n return this.getStorage()[key];\n }\n setItem(key, value) {\n return this.updateStorage(key, value);\n }\n removeItem(key) {\n return this.clearStorage(key);\n }\n getStorage() {\n var storageString = this.storageProvider.getItem(this.storageName);\n storageString = storageString || '{}';\n try {\n return JSON.parse(storageString);\n } catch (e) {\n throw new AuthSdkError('Unable to parse storage string: ' + this.storageName);\n }\n }\n setStorage(obj) {\n try {\n var storageString = obj ? JSON.stringify(obj) : '{}';\n this.storageProvider.setItem(this.storageName, storageString);\n } catch (e) {\n throw new AuthSdkError('Unable to set storage: ' + this.storageName);\n }\n }\n clearStorage(key) {\n if (!key) {\n if (this.storageProvider.removeItem) {\n this.storageProvider.removeItem(this.storageName);\n } else {\n this.setStorage();\n }\n return;\n }\n var obj = this.getStorage();\n delete obj[key];\n this.setStorage(obj);\n }\n updateStorage(key, value) {\n var obj = this.getStorage();\n obj[key] = value;\n this.setStorage(obj);\n }\n}\nexport { SavedObject };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { TOKEN_STORAGE_NAME, CACHE_STORAGE_NAME } from '../constants.js';\nimport { SavedObject } from './SavedObject.js';\nimport { isBrowser } from '../features.js';\nimport { warn } from '../util/console.js';\nfunction logServerSideMemoryStorageWarning(options) {\n if (!isBrowser() && !options.storageProvider && !options.storageKey) {\n warn('Memory storage can only support simple single user use case on server side, please provide custom storageProvider or storageKey if advanced scenarios need to be supported.');\n }\n}\nclass BaseStorageManager {\n constructor(storageManagerOptions, cookieOptions, storageUtil) {\n this.storageManagerOptions = storageManagerOptions;\n this.cookieOptions = cookieOptions;\n this.storageUtil = storageUtil;\n }\n getOptionsForSection(sectionName, overrideOptions) {\n return Object.assign({}, this.storageManagerOptions[sectionName], overrideOptions);\n }\n getStorage(options) {\n options = Object.assign({}, this.cookieOptions, options);\n if (options.storageProvider) {\n return options.storageProvider;\n }\n let {\n storageType,\n storageTypes\n } = options;\n if (storageType === 'sessionStorage') {\n options.sessionCookie = true;\n }\n if (storageType && storageTypes) {\n const idx = storageTypes.indexOf(storageType);\n if (idx >= 0) {\n storageTypes = storageTypes.slice(idx);\n storageType = undefined;\n }\n }\n if (!storageType) {\n storageType = this.storageUtil.findStorageType(storageTypes);\n }\n return this.storageUtil.getStorageByType(storageType, options);\n }\n getTokenStorage(options) {\n options = this.getOptionsForSection('token', options);\n logServerSideMemoryStorageWarning(options);\n const storage = this.getStorage(options);\n const storageKey = options.storageKey || TOKEN_STORAGE_NAME;\n return new SavedObject(storage, storageKey);\n }\n getHttpCache(options) {\n options = this.getOptionsForSection('cache', options);\n const storage = this.getStorage(options);\n const storageKey = options.storageKey || CACHE_STORAGE_NAME;\n return new SavedObject(storage, storageKey);\n }\n}\nexport { BaseStorageManager, logServerSideMemoryStorageWarning };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { BaseStorageManager, logServerSideMemoryStorageWarning } from '../storage/BaseStorageManager.js';\nimport '../errors/WWWAuthError.js';\nimport { TRANSACTION_STORAGE_NAME, SHARED_TRANSACTION_STORAGE_NAME, ORIGINAL_URI_STORAGE_NAME } from '../constants.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport { SavedObject } from '../storage/SavedObject.js';\nfunction createOAuthStorageManager() {\n return class OAuthStorageManager extends BaseStorageManager {\n constructor(storageManagerOptions, cookieOptions, storageUtil) {\n super(storageManagerOptions, cookieOptions, storageUtil);\n }\n getTransactionStorage(options) {\n options = this.getOptionsForSection('transaction', options);\n logServerSideMemoryStorageWarning(options);\n const storage = this.getStorage(options);\n const storageKey = options.storageKey || TRANSACTION_STORAGE_NAME;\n return new SavedObject(storage, storageKey);\n }\n getSharedTansactionStorage(options) {\n options = this.getOptionsForSection('shared-transaction', options);\n logServerSideMemoryStorageWarning(options);\n const storage = this.getStorage(options);\n const storageKey = options.storageKey || SHARED_TRANSACTION_STORAGE_NAME;\n return new SavedObject(storage, storageKey);\n }\n getOriginalUriStorage(options) {\n options = this.getOptionsForSection('original-uri', options);\n logServerSideMemoryStorageWarning(options);\n const storage = this.getStorage(options);\n const storageKey = options.storageKey || ORIGINAL_URI_STORAGE_NAME;\n return new SavedObject(storage, storageKey);\n }\n };\n}\nexport { createOAuthStorageManager };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createOAuthStorageManager } from '../oidc/storage.js';\nfunction createCoreStorageManager() {\n return createOAuthStorageManager();\n}\nexport { createCoreStorageManager };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction isObjectWithProperties(obj) {\n if (!obj || typeof obj !== 'object' || Object.values(obj).length === 0) {\n return false;\n }\n return true;\n}\nfunction isOAuthTransactionMeta(obj) {\n if (!isObjectWithProperties(obj)) {\n return false;\n }\n return !!obj.redirectUri || !!obj.responseType;\n}\nfunction isPKCETransactionMeta(obj) {\n if (!isOAuthTransactionMeta(obj)) {\n return false;\n }\n return !!obj.codeVerifier;\n}\nfunction isIdxTransactionMeta(obj) {\n if (!isPKCETransactionMeta(obj)) {\n return false;\n }\n return !!obj.interactionHandle;\n}\nfunction isCustomAuthTransactionMeta(obj) {\n if (!isObjectWithProperties(obj)) {\n return false;\n }\n const isAllStringValues = Object.values(obj).find(value => typeof value !== 'string') === undefined;\n return isAllStringValues;\n}\nfunction isTransactionMeta(obj) {\n if (isOAuthTransactionMeta(obj) || isCustomAuthTransactionMeta(obj)) {\n return true;\n }\n return false;\n}\nexport { isCustomAuthTransactionMeta, isIdxTransactionMeta, isOAuthTransactionMeta, isPKCETransactionMeta, isTransactionMeta };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport '../types/Token.js';\nimport { isTransactionMeta } from '../types/Transaction.js';\nconst MAX_ENTRY_LIFETIME = 30 * 60 * 1000;\nfunction pruneSharedStorage(storageManager) {\n const sharedStorage = storageManager.getSharedTansactionStorage();\n const entries = sharedStorage.getStorage();\n Object.keys(entries).forEach(state => {\n const entry = entries[state];\n const age = Date.now() - entry.dateCreated;\n if (age > MAX_ENTRY_LIFETIME) {\n delete entries[state];\n }\n });\n sharedStorage.setStorage(entries);\n}\nfunction saveTransactionToSharedStorage(storageManager, state, meta) {\n const sharedStorage = storageManager.getSharedTansactionStorage();\n const entries = sharedStorage.getStorage();\n entries[state] = {\n dateCreated: Date.now(),\n transaction: meta\n };\n sharedStorage.setStorage(entries);\n}\nfunction loadTransactionFromSharedStorage(storageManager, state) {\n const sharedStorage = storageManager.getSharedTansactionStorage();\n const entries = sharedStorage.getStorage();\n const entry = entries[state];\n if (entry && entry.transaction && isTransactionMeta(entry.transaction)) {\n return entry.transaction;\n }\n return null;\n}\nfunction clearTransactionFromSharedStorage(storageManager, state) {\n const sharedStorage = storageManager.getSharedTansactionStorage();\n const entries = sharedStorage.getStorage();\n delete entries[state];\n sharedStorage.setStorage(entries);\n}\nexport { clearTransactionFromSharedStorage, loadTransactionFromSharedStorage, pruneSharedStorage, saveTransactionToSharedStorage };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport './types/Token.js';\nimport { isTransactionMeta } from './types/Transaction.js';\nimport { warn } from '../util/console.js';\nimport { clearTransactionFromSharedStorage, saveTransactionToSharedStorage, pruneSharedStorage, loadTransactionFromSharedStorage } from './util/sharedStorage.js';\nfunction createTransactionManager() {\n return class TransactionManager {\n constructor(options) {\n this.storageManager = options.storageManager;\n this.enableSharedStorage = options.enableSharedStorage === false ? false : true;\n this.saveLastResponse = options.saveLastResponse === false ? false : true;\n this.options = options;\n }\n clear(options = {}) {\n const transactionStorage = this.storageManager.getTransactionStorage();\n const meta = transactionStorage.getStorage();\n transactionStorage.clearStorage();\n if (this.enableSharedStorage && options.clearSharedStorage !== false) {\n const state = options.state || (meta === null || meta === void 0 ? void 0 : meta.state);\n if (state) {\n clearTransactionFromSharedStorage(this.storageManager, state);\n }\n }\n }\n save(meta, options = {}) {\n let storage = this.storageManager.getTransactionStorage();\n const obj = storage.getStorage();\n if (isTransactionMeta(obj) && !options.muteWarning) {\n warn('a saved auth transaction exists in storage. This may indicate another auth flow is already in progress.');\n }\n storage.setStorage(meta);\n if (this.enableSharedStorage && meta.state) {\n saveTransactionToSharedStorage(this.storageManager, meta.state, meta);\n }\n }\n exists(options = {}) {\n try {\n const meta = this.load(options);\n return !!meta;\n } catch (_a) {\n return false;\n }\n }\n load(options = {}) {\n let meta;\n if (this.enableSharedStorage && options.state) {\n pruneSharedStorage(this.storageManager);\n meta = loadTransactionFromSharedStorage(this.storageManager, options.state);\n if (isTransactionMeta(meta)) {\n return meta;\n }\n }\n let storage = this.storageManager.getTransactionStorage();\n meta = storage.getStorage();\n if (isTransactionMeta(meta)) {\n return meta;\n }\n return null;\n }\n };\n}\nexport { createTransactionManager };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createTransactionManager } from '../oidc/TransactionManager.js';\nimport { isRawIdxResponse } from './types/idx-js.js';\nfunction createIdxTransactionManager() {\n const TransactionManager = createTransactionManager();\n return class IdxTransactionManager extends TransactionManager {\n constructor(options) {\n super(options);\n }\n clear(options = {}) {\n super.clear(options);\n if (options.clearIdxResponse !== false) {\n this.clearIdxResponse();\n }\n }\n saveIdxResponse(data) {\n if (!this.saveLastResponse) {\n return;\n }\n const storage = this.storageManager.getIdxResponseStorage();\n if (!storage) {\n return;\n }\n storage.setStorage(data);\n }\n loadIdxResponse(options) {\n if (!this.saveLastResponse) {\n return null;\n }\n const storage = this.storageManager.getIdxResponseStorage();\n if (!storage) {\n return null;\n }\n const storedValue = storage.getStorage();\n if (!storedValue || !isRawIdxResponse(storedValue.rawIdxResponse)) {\n return null;\n }\n if (options) {\n const {\n stateHandle,\n interactionHandle\n } = options;\n if (!options.useGenericRemediator && stateHandle && storedValue.stateHandle !== stateHandle) {\n return null;\n }\n if (interactionHandle && storedValue.interactionHandle !== interactionHandle) {\n return null;\n }\n }\n return storedValue;\n }\n clearIdxResponse() {\n if (!this.saveLastResponse) {\n return;\n }\n const storage = this.storageManager.getIdxResponseStorage();\n storage === null || storage === void 0 ? void 0 : storage.clearStorage();\n }\n };\n}\nexport { createIdxTransactionManager };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { __rest } from '../../_virtual/_tslib.js';\nclass BaseTransaction {\n constructor(oktaAuth, options) {\n const {\n res\n } = options;\n const {\n headers\n } = res,\n rest = __rest(res, [\"headers\"]);\n if (headers) {\n this.headers = headers;\n }\n Object.keys(rest).forEach(key => {\n if (key === '_links') {\n return;\n }\n this[key] = rest[key];\n });\n }\n}\nexport { BaseTransaction as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport BaseTransaction from './transactions/Base.js';\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { httpRequest } from '../http/request.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nasync function sendRequest(oktaAuth, options, TransactionClass = BaseTransaction) {\n const {\n accessToken: accessTokenObj\n } = oktaAuth.tokenManager.getTokensSync();\n const accessToken = options.accessToken || (accessTokenObj === null || accessTokenObj === void 0 ? void 0 : accessTokenObj.accessToken);\n const issuer = oktaAuth.getIssuerOrigin();\n const {\n url,\n method,\n payload\n } = options;\n const requestUrl = url.startsWith(issuer) ? url : `${issuer}${url}`;\n if (!accessToken) {\n throw new AuthSdkError('AccessToken is required to request MyAccount API endpoints.');\n }\n const res = await httpRequest(oktaAuth, Object.assign({\n headers: {\n 'Accept': '*/*;okta-version=1.0.0'\n },\n accessToken,\n url: requestUrl,\n method\n }, payload && {\n args: payload\n }));\n let ret;\n if (Array.isArray(res)) {\n ret = res.map(item => new TransactionClass(oktaAuth, {\n res: item,\n accessToken\n }));\n } else {\n ret = new TransactionClass(oktaAuth, {\n res,\n accessToken\n });\n }\n return ret;\n}\nfunction generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName,\n links\n}, TransactionClass = BaseTransaction) {\n for (const method of ['GET', 'POST', 'PUT', 'DELETE']) {\n if (method.toLowerCase() === methodName) {\n const link = links.self;\n return async payload => sendRequest(oktaAuth, {\n accessToken,\n url: link.href,\n method,\n payload\n }, TransactionClass);\n }\n }\n const link = links[methodName];\n if (!link) {\n throw new AuthSdkError(`No link is found with methodName: ${methodName}`);\n }\n return async payload => sendRequest(oktaAuth, {\n accessToken,\n url: link.href,\n method: link.hints.allow[0],\n payload\n }, TransactionClass);\n}\nexport { generateRequestFnFromLinks, sendRequest };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport BaseTransaction from './Base.js';\nclass ProfileTransaction extends BaseTransaction {\n constructor(oktaAuth, options) {\n super(oktaAuth, options);\n const {\n createdAt,\n modifiedAt,\n profile\n } = options.res;\n this.createdAt = createdAt;\n this.modifiedAt = modifiedAt;\n this.profile = profile;\n }\n}\nexport { ProfileTransaction as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport BaseTransaction from './Base.js';\nclass ProfileSchemaTransaction extends BaseTransaction {\n constructor(oktaAuth, options) {\n super(oktaAuth, options);\n this.properties = options.res.properties;\n }\n}\nexport { ProfileSchemaTransaction as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nvar EmailRole = /*#__PURE__*/function (EmailRole) {\n EmailRole[\"PRIMARY\"] = \"PRIMARY\";\n EmailRole[\"SECONDARY\"] = \"SECONDARY\";\n return EmailRole;\n}(EmailRole || {});\nvar Status = /*#__PURE__*/function (Status) {\n Status[\"VERIFIED\"] = \"VERIFIED\";\n Status[\"UNVERIFIED\"] = \"UNVERIFIED\";\n return Status;\n}(Status || {});\nvar PasswordStatus = /*#__PURE__*/function (PasswordStatus) {\n PasswordStatus[\"NOT_ENROLLED\"] = \"NOT_ENROLLED\";\n PasswordStatus[\"ACTIVE\"] = \"ACTIVE\";\n return PasswordStatus;\n}(PasswordStatus || {});\nexport { EmailRole, PasswordStatus, Status };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { sendRequest } from './request.js';\nimport ProfileTransaction from './transactions/ProfileTransaction.js';\nimport ProfileSchemaTransaction from './transactions/ProfileSchemaTransaction.js';\nimport './types.js';\nconst getProfile = async (oktaAuth, options) => {\n const transaction = await sendRequest(oktaAuth, {\n url: '/idp/myaccount/profile',\n method: 'GET',\n accessToken: options === null || options === void 0 ? void 0 : options.accessToken\n }, ProfileTransaction);\n return transaction;\n};\nconst updateProfile = async (oktaAuth, options) => {\n const {\n payload,\n accessToken\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: '/idp/myaccount/profile',\n method: 'PUT',\n payload,\n accessToken\n }, ProfileTransaction);\n return transaction;\n};\nconst getProfileSchema = async (oktaAuth, options) => {\n const transaction = await sendRequest(oktaAuth, {\n url: '/idp/myaccount/profile/schema',\n method: 'GET',\n accessToken: options === null || options === void 0 ? void 0 : options.accessToken\n }, ProfileSchemaTransaction);\n return transaction;\n};\nexport { getProfile, getProfileSchema, updateProfile };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport BaseTransaction from './Base.js';\nclass EmailStatusTransaction extends BaseTransaction {\n constructor(oktaAuth, options) {\n super(oktaAuth, options);\n const {\n res\n } = options;\n const {\n id,\n profile,\n expiresAt,\n status\n } = res;\n this.id = id;\n this.expiresAt = expiresAt;\n this.profile = profile;\n this.status = status;\n }\n}\nexport { EmailStatusTransaction as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport EmailStatusTransaction from './EmailStatusTransaction.js';\nimport BaseTransaction from './Base.js';\nimport { generateRequestFnFromLinks } from '../request.js';\nclass EmailChallengeTransaction extends BaseTransaction {\n constructor(oktaAuth, options) {\n super(oktaAuth, options);\n const {\n accessToken,\n res\n } = options;\n const {\n id,\n expiresAt,\n profile,\n status,\n _links\n } = res;\n this.id = id;\n this.expiresAt = expiresAt;\n this.profile = profile;\n this.status = status;\n this.poll = async () => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'poll',\n links: _links\n }, EmailStatusTransaction);\n return await fn();\n };\n this.verify = async payload => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'verify',\n links: _links\n }, EmailChallengeTransaction);\n return await fn(payload);\n };\n }\n}\nexport { EmailChallengeTransaction as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport EmailChallengeTransaction from './EmailChallengeTransaction.js';\nimport EmailStatusTransaction from './EmailStatusTransaction.js';\nimport BaseTransaction from './Base.js';\nimport { generateRequestFnFromLinks } from '../request.js';\nclass EmailTransaction extends BaseTransaction {\n constructor(oktaAuth, options) {\n super(oktaAuth, options);\n const {\n accessToken,\n res\n } = options;\n const {\n id,\n profile,\n roles,\n status,\n _links\n } = res;\n this.id = id;\n this.profile = profile;\n this.roles = roles;\n this.status = status;\n this.get = async () => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'get',\n links: _links\n }, EmailTransaction);\n return await fn();\n };\n this.delete = async () => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'delete',\n links: _links\n });\n return await fn();\n };\n this.challenge = async () => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'challenge',\n links: _links\n }, EmailChallengeTransaction);\n return await fn();\n };\n if (_links.poll) {\n this.poll = async () => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'poll',\n links: _links\n }, EmailStatusTransaction);\n return await fn();\n };\n }\n if (_links.verify) {\n this.verify = async payload => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'verify',\n links: _links\n });\n return await fn(payload);\n };\n }\n }\n}\nexport { EmailTransaction as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { sendRequest } from './request.js';\nimport EmailTransaction from './transactions/EmailTransaction.js';\nimport EmailChallengeTransaction from './transactions/EmailChallengeTransaction.js';\nimport './types.js';\nconst getEmails = async (oktaAuth, options) => {\n const transaction = await sendRequest(oktaAuth, {\n url: '/idp/myaccount/emails',\n method: 'GET',\n accessToken: options === null || options === void 0 ? void 0 : options.accessToken\n }, EmailTransaction);\n return transaction;\n};\nconst getEmail = async (oktaAuth, options) => {\n const {\n id,\n accessToken\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: `/idp/myaccount/emails/${id}`,\n method: 'GET',\n accessToken\n }, EmailTransaction);\n return transaction;\n};\nconst addEmail = async (oktaAuth, options) => {\n const {\n accessToken,\n payload\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: '/idp/myaccount/emails',\n method: 'POST',\n payload,\n accessToken\n }, EmailTransaction);\n return transaction;\n};\nconst deleteEmail = async (oktaAuth, options) => {\n const {\n id,\n accessToken\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: `/idp/myaccount/emails/${id}`,\n method: 'DELETE',\n accessToken\n });\n return transaction;\n};\nconst sendEmailChallenge = async (oktaAuth, options) => {\n const {\n id,\n accessToken\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: `/idp/myaccount/emails/${id}/challenge`,\n method: 'POST',\n accessToken\n }, EmailChallengeTransaction);\n return transaction;\n};\nconst getEmailChallenge = async (oktaAuth, options) => {\n const {\n emailId,\n challengeId,\n accessToken\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: `/idp/myaccount/emails/${emailId}/challenge/${challengeId}`,\n method: 'POST',\n accessToken\n }, EmailChallengeTransaction);\n return transaction;\n};\nconst verifyEmailChallenge = async (oktaAuth, options) => {\n const {\n emailId,\n challengeId,\n payload,\n accessToken\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: `/idp/myaccount/emails/${emailId}/challenge/${challengeId}/verify`,\n method: 'POST',\n payload,\n accessToken\n });\n return transaction;\n};\nexport { addEmail, deleteEmail, getEmail, getEmailChallenge, getEmails, sendEmailChallenge, verifyEmailChallenge };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport BaseTransaction from './Base.js';\nimport { generateRequestFnFromLinks } from '../request.js';\nclass PhoneTransaction extends BaseTransaction {\n constructor(oktaAuth, options) {\n super(oktaAuth, options);\n const {\n res,\n accessToken\n } = options;\n const {\n id,\n profile,\n status,\n _links\n } = res;\n this.id = id;\n this.profile = profile;\n this.status = status;\n this.get = async () => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'get',\n links: _links\n }, PhoneTransaction);\n return await fn();\n };\n this.delete = async () => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'delete',\n links: _links\n });\n return await fn();\n };\n this.challenge = async payload => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'challenge',\n links: _links\n });\n return await fn(payload);\n };\n if (_links.verify) {\n this.verify = async payload => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'verify',\n links: _links\n });\n return await fn(payload);\n };\n }\n }\n}\nexport { PhoneTransaction as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { sendRequest } from './request.js';\nimport PhoneTransaction from './transactions/PhoneTransaction.js';\nimport './types.js';\nconst getPhones = async (oktaAuth, options) => {\n const transaction = await sendRequest(oktaAuth, {\n url: '/idp/myaccount/phones',\n method: 'GET',\n accessToken: options === null || options === void 0 ? void 0 : options.accessToken\n }, PhoneTransaction);\n return transaction;\n};\nconst getPhone = async (oktaAuth, options) => {\n const {\n accessToken,\n id\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: `/idp/myaccount/phones/${id}`,\n method: 'GET',\n accessToken\n }, PhoneTransaction);\n return transaction;\n};\nconst addPhone = async (oktaAuth, options) => {\n const {\n accessToken,\n payload\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: '/idp/myaccount/phones',\n method: 'POST',\n payload,\n accessToken\n }, PhoneTransaction);\n return transaction;\n};\nconst deletePhone = async (oktaAuth, options) => {\n const {\n id,\n accessToken\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: `/idp/myaccount/phones/${id}`,\n method: 'DELETE',\n accessToken\n });\n return transaction;\n};\nconst sendPhoneChallenge = async (oktaAuth, options) => {\n const {\n accessToken,\n id,\n payload\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: `/idp/myaccount/phones/${id}/challenge`,\n method: 'POST',\n payload,\n accessToken\n });\n return transaction;\n};\nconst verifyPhoneChallenge = async (oktaAuth, options) => {\n const {\n id,\n payload,\n accessToken\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: `/idp/myaccount/phones/${id}/verify`,\n method: 'POST',\n payload,\n accessToken\n });\n return transaction;\n};\nexport { addPhone, deletePhone, getPhone, getPhones, sendPhoneChallenge, verifyPhoneChallenge };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { PasswordStatus } from '../types.js';\nimport BaseTransaction from './Base.js';\nimport { generateRequestFnFromLinks } from '../request.js';\nclass PasswordTransaction extends BaseTransaction {\n constructor(oktaAuth, options) {\n super(oktaAuth, options);\n const {\n res,\n accessToken\n } = options;\n const {\n id,\n status,\n created,\n lastUpdated,\n _links\n } = res;\n this.id = id;\n this.status = status;\n this.created = created;\n this.lastUpdated = lastUpdated;\n if (this.status == PasswordStatus.NOT_ENROLLED) {\n this.enroll = async payload => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'enroll',\n links: _links\n }, PasswordTransaction);\n return await fn(payload);\n };\n } else {\n this.get = async () => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'get',\n links: _links\n }, PasswordTransaction);\n return await fn();\n };\n this.update = async payload => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'put',\n links: _links\n }, PasswordTransaction);\n return await fn(payload);\n };\n this.delete = async () => {\n const fn = generateRequestFnFromLinks({\n oktaAuth,\n accessToken,\n methodName: 'delete',\n links: _links\n });\n return await fn();\n };\n }\n }\n}\nexport { PasswordTransaction as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { sendRequest } from './request.js';\nimport PasswordTransaction from './transactions/PasswordTransaction.js';\nconst getPassword = async (oktaAuth, options) => {\n const transaction = await sendRequest(oktaAuth, {\n url: `/idp/myaccount/password`,\n method: 'GET',\n accessToken: options === null || options === void 0 ? void 0 : options.accessToken\n }, PasswordTransaction);\n return transaction;\n};\nconst enrollPassword = async (oktaAuth, options) => {\n const {\n accessToken,\n payload\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: '/idp/myaccount/password',\n method: 'POST',\n payload,\n accessToken\n }, PasswordTransaction);\n return transaction;\n};\nconst updatePassword = async (oktaAuth, options) => {\n const {\n accessToken,\n payload\n } = options;\n const transaction = await sendRequest(oktaAuth, {\n url: '/idp/myaccount/password',\n method: 'PUT',\n payload,\n accessToken\n }, PasswordTransaction);\n return transaction;\n};\nconst deletePassword = async (oktaAuth, options) => {\n const transaction = await sendRequest(oktaAuth, {\n url: `/idp/myaccount/password`,\n method: 'DELETE',\n accessToken: options === null || options === void 0 ? void 0 : options.accessToken\n });\n return transaction;\n};\nexport { deletePassword, enrollPassword, getPassword, updatePassword };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport { getProfile, getProfileSchema, updateProfile } from './profileApi.js';\nexport { addEmail, deleteEmail, getEmail, getEmailChallenge, getEmails, sendEmailChallenge, verifyEmailChallenge } from './emailApi.js';\nexport { addPhone, deletePhone, getPhone, getPhones, sendPhoneChallenge, verifyPhoneChallenge } from './phoneApi.js';\nexport { deletePassword, enrollPassword, getPassword, updatePassword } from './passwordApi.js';\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport * as api from './api.js';\nfunction mixinMyAccount(Base) {\n return class OktaAuthMyAccount extends Base {\n constructor(...args) {\n super(...args);\n this.myaccount = Object.entries(api).filter(([name]) => name !== 'default').reduce((acc, [name, fn]) => {\n acc[name] = fn.bind(null, this);\n return acc;\n }, {});\n }\n };\n}\nexport { mixinMyAccount };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { post } from '../http/request.js';\nimport { STATE_TOKEN_KEY_NAME } from '../constants.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport { addStateToken } from './util/stateToken.js';\nfunction transactionStatus(sdk, args) {\n args = addStateToken(sdk, args);\n return post(sdk, sdk.getIssuerOrigin() + '/api/v1/authn', args, {\n withCredentials: true\n });\n}\nfunction resumeTransaction(sdk, tx, args) {\n if (!args || !args.stateToken) {\n var stateToken = getSavedStateToken(sdk);\n if (stateToken) {\n args = {\n stateToken: stateToken\n };\n } else {\n return Promise.reject(new AuthSdkError('No transaction to resume'));\n }\n }\n return transactionStatus(sdk, args).then(function (res) {\n return tx.createTransaction(res);\n });\n}\nfunction introspectAuthn(sdk, tx, args) {\n if (!args || !args.stateToken) {\n var stateToken = getSavedStateToken(sdk);\n if (stateToken) {\n args = {\n stateToken: stateToken\n };\n } else {\n return Promise.reject(new AuthSdkError('No transaction to evaluate'));\n }\n }\n return transactionStep(sdk, args).then(function (res) {\n return tx.createTransaction(res);\n });\n}\nfunction transactionStep(sdk, args) {\n args = addStateToken(sdk, args);\n return post(sdk, sdk.getIssuerOrigin() + '/api/v1/authn/introspect', args, {\n withCredentials: true\n });\n}\nfunction transactionExists(sdk) {\n return !!getSavedStateToken(sdk);\n}\nfunction postToTransaction(sdk, tx, url, args, options) {\n options = Object.assign({\n withCredentials: true\n }, options);\n return post(sdk, url, args, options).then(function (res) {\n return tx.createTransaction(res);\n });\n}\nfunction getSavedStateToken(sdk) {\n const storage = sdk.options.storageUtil.storage;\n return storage.get(STATE_TOKEN_KEY_NAME);\n}\nexport { getSavedStateToken, introspectAuthn, postToTransaction, resumeTransaction, transactionExists, transactionStatus, transactionStep };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nfunction addStateToken(res, options) {\n var builtArgs = {};\n Object.assign(builtArgs, options);\n if (!builtArgs.stateToken && res.stateToken) {\n builtArgs.stateToken = res.stateToken;\n }\n return builtArgs;\n}\nfunction getStateToken(res) {\n return addStateToken(res);\n}\nexport { addStateToken, getStateToken };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { find, omit } from '../../util/object.js';\nimport { toQueryString } from '../../util/url.js';\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nimport '../../errors/WWWAuthError.js';\nimport { get } from '../../http/request.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport { postToTransaction } from '../api.js';\nimport { addStateToken } from './stateToken.js';\nfunction link2fn(sdk, tx, res, obj, link, ref) {\n if (Array.isArray(link)) {\n return function (name, opts) {\n if (!name) {\n throw new AuthSdkError('Must provide a link name');\n }\n var lk = find(link, {\n name: name\n });\n if (!lk) {\n throw new AuthSdkError('No link found for that name');\n }\n return link2fn(sdk, tx, res, obj, lk, ref)(opts);\n };\n } else if (link.hints && link.hints.allow && link.hints.allow.length === 1) {\n var method = link.hints.allow[0];\n switch (method) {\n case 'GET':\n return function () {\n return get(sdk, link.href, {\n withCredentials: true\n });\n };\n case 'POST':\n return function (opts) {\n if (ref && ref.isPolling) {\n ref.isPolling = false;\n }\n var data = addStateToken(res, opts);\n if (res.status === 'MFA_ENROLL' || res.status === 'FACTOR_ENROLL') {\n Object.assign(data, {\n factorType: obj.factorType,\n provider: obj.provider\n });\n }\n var params = {};\n var autoPush = data.autoPush;\n if (autoPush !== undefined) {\n if (typeof autoPush === 'function') {\n try {\n params.autoPush = !!autoPush();\n } catch (e) {\n return Promise.reject(new AuthSdkError('AutoPush resulted in an error.'));\n }\n } else if (autoPush !== null) {\n params.autoPush = !!autoPush;\n }\n data = omit(data, 'autoPush');\n }\n var rememberDevice = data.rememberDevice;\n if (rememberDevice !== undefined) {\n if (typeof rememberDevice === 'function') {\n try {\n params.rememberDevice = !!rememberDevice();\n } catch (e) {\n return Promise.reject(new AuthSdkError('RememberDevice resulted in an error.'));\n }\n } else if (rememberDevice !== null) {\n params.rememberDevice = !!rememberDevice;\n }\n data = omit(data, 'rememberDevice');\n } else if (data.profile && data.profile.updatePhone !== undefined) {\n if (data.profile.updatePhone) {\n params.updatePhone = true;\n }\n data.profile = omit(data.profile, 'updatePhone');\n }\n var href = link.href + toQueryString(params);\n return postToTransaction(sdk, tx, href, data);\n };\n }\n }\n}\nexport { link2fn };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport CustomError from './CustomError.js';\nclass AuthPollStopError extends CustomError {\n constructor() {\n const message = 'The poll was stopped by the sdk';\n super(message);\n }\n}\nexport { AuthPollStopError as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthPollStopError from '../../errors/AuthPollStopError.js';\nimport AuthSdkError from '../../errors/AuthSdkError.js';\nimport '../../errors/WWWAuthError.js';\nimport { delay } from '../../util/misc.js';\nimport { getLink } from '../../util/object.js';\nimport { isNumber, isObject } from '../../util/types.js';\nimport { toQueryString } from '../../util/url.js';\nimport { post } from '../../http/request.js';\nimport { DEFAULT_POLLING_DELAY } from '../../constants.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport { getStateToken } from './stateToken.js';\nfunction getPollFn(sdk, res, ref) {\n return function (options) {\n var delay$1;\n var rememberDevice;\n var autoPush;\n var transactionCallBack;\n if (isNumber(options)) {\n delay$1 = options;\n } else if (isObject(options)) {\n options = options;\n delay$1 = options.delay;\n rememberDevice = options.rememberDevice;\n autoPush = options.autoPush;\n transactionCallBack = options.transactionCallBack;\n }\n if (!delay$1 && delay$1 !== 0) {\n delay$1 = DEFAULT_POLLING_DELAY;\n }\n var pollLink = getLink(res, 'next', 'poll');\n function pollFn() {\n var opts = {};\n if (typeof autoPush === 'function') {\n try {\n opts.autoPush = !!autoPush();\n } catch (e) {\n return Promise.reject(new AuthSdkError('AutoPush resulted in an error.'));\n }\n } else if (autoPush !== undefined && autoPush !== null) {\n opts.autoPush = !!autoPush;\n }\n if (typeof rememberDevice === 'function') {\n try {\n opts.rememberDevice = !!rememberDevice();\n } catch (e) {\n return Promise.reject(new AuthSdkError('RememberDevice resulted in an error.'));\n }\n } else if (rememberDevice !== undefined && rememberDevice !== null) {\n opts.rememberDevice = !!rememberDevice;\n }\n var href = pollLink.href + toQueryString(opts);\n return post(sdk, href, getStateToken(res), {\n saveAuthnState: false,\n withCredentials: true\n });\n }\n ref.isPolling = true;\n var retryCount = 0;\n var recursivePoll = function () {\n if (!ref.isPolling) {\n return Promise.reject(new AuthPollStopError());\n }\n return pollFn().then(function (pollRes) {\n retryCount = 0;\n if (pollRes.factorResult && pollRes.factorResult === 'WAITING') {\n if (!ref.isPolling) {\n throw new AuthPollStopError();\n }\n if (typeof transactionCallBack === 'function') {\n transactionCallBack(pollRes);\n }\n return delay(delay$1).then(recursivePoll);\n } else {\n ref.isPolling = false;\n return sdk.tx.createTransaction(pollRes);\n }\n }).catch(function (err) {\n if (err.xhr && (err.xhr.status === 0 || err.xhr.status === 429) && retryCount <= 4) {\n var delayLength = Math.pow(2, retryCount) * 1000;\n retryCount++;\n return delay(delayLength).then(recursivePoll);\n }\n throw err;\n });\n };\n return recursivePoll().catch(function (err) {\n ref.isPolling = false;\n throw err;\n });\n };\n}\nexport { getPollFn };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { link2fn } from './link2fn.js';\nimport { getPollFn } from './poll.js';\nfunction links2fns(sdk, tx, res, obj, ref) {\n var fns = {};\n for (var linkName in obj._links) {\n if (!Object.prototype.hasOwnProperty.call(obj._links, linkName)) {\n continue;\n }\n var link = obj._links[linkName];\n if (linkName === 'next') {\n linkName = link.name;\n }\n if (link.type) {\n fns[linkName] = link;\n continue;\n }\n switch (linkName) {\n case 'poll':\n fns.poll = getPollFn(sdk, res, ref);\n break;\n default:\n var fn = link2fn(sdk, tx, res, obj, link, ref);\n if (fn) {\n fns[linkName] = fn;\n }\n }\n }\n return fns;\n}\nexport { links2fns };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { clone, omit } from '../../util/object.js';\nimport { isObject } from '../../util/types.js';\nimport { links2fns } from './links2fns.js';\nfunction flattenEmbedded(sdk, tx, res, obj, ref) {\n obj = obj || res;\n obj = clone(obj);\n if (Array.isArray(obj)) {\n var objArr = [];\n for (var o = 0, ol = obj.length; o < ol; o++) {\n objArr.push(flattenEmbedded(sdk, tx, res, obj[o], ref));\n }\n return objArr;\n }\n var embedded = obj._embedded || {};\n for (var key in embedded) {\n if (!Object.prototype.hasOwnProperty.call(embedded, key)) {\n continue;\n }\n if (isObject(embedded[key]) || Array.isArray(embedded[key])) {\n embedded[key] = flattenEmbedded(sdk, tx, res, embedded[key], ref);\n }\n }\n var fns = links2fns(sdk, tx, res, obj, ref);\n Object.assign(embedded, fns);\n obj = omit(obj, '_embedded', '_links');\n Object.assign(obj, embedded);\n return obj;\n}\nexport { flattenEmbedded };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { flattenEmbedded } from './util/flattenEmbedded.js';\nclass AuthnTransactionImpl {\n constructor(sdk, tx, res = null) {\n this.data = undefined;\n this.status = undefined;\n if (res) {\n this.data = res;\n Object.assign(this, flattenEmbedded(sdk, tx, res, res, {}));\n delete this.stateToken;\n if (res.status === 'RECOVERY_CHALLENGE' && !res._links) {\n this.cancel = function () {\n return Promise.resolve(tx.createTransaction());\n };\n }\n }\n }\n}\nexport { AuthnTransactionImpl };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { transactionStatus, resumeTransaction, transactionExists, introspectAuthn, postToTransaction } from './api.js';\nimport { AuthnTransactionImpl } from './AuthnTransactionImpl.js';\nfunction createAuthnTransactionAPI(sdk) {\n const tx = {\n status: transactionStatus.bind(null, sdk),\n resume(args) {\n return resumeTransaction(sdk, tx, args);\n },\n exists: transactionExists.bind(null, sdk),\n introspect(args) {\n return introspectAuthn(sdk, tx, args);\n },\n createTransaction: res => {\n return new AuthnTransactionImpl(sdk, tx, res);\n },\n postToTransaction: (url, args, options) => {\n return postToTransaction(sdk, tx, url, args, options);\n }\n };\n return tx;\n}\nexport { createAuthnTransactionAPI };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport AuthSdkError from '../errors/AuthSdkError.js';\nimport '../errors/WWWAuthError.js';\nimport { isFingerprintSupported } from '../features.js';\nimport { addListener, removeListener } from '../oidc/util/browser.js';\nimport 'tiny-emitter';\nimport 'js-cookie';\nimport 'cross-fetch';\nimport '../oidc/types/Token.js';\nfunction fingerprint(sdk, options) {\n options = options || {};\n if (!isFingerprintSupported()) {\n return Promise.reject(new AuthSdkError('Fingerprinting is not supported on this device'));\n }\n var timeout;\n var iframe;\n var listener;\n var promise = new Promise(function (resolve, reject) {\n iframe = document.createElement('iframe');\n iframe.style.display = 'none';\n listener = function listener(e) {\n if (!e || !e.data || e.origin !== sdk.getIssuerOrigin()) {\n return;\n }\n try {\n var msg = JSON.parse(e.data);\n } catch (err) {\n return;\n }\n if (!msg) {\n return;\n }\n if (msg.type === 'FingerprintAvailable') {\n return resolve(msg.fingerprint);\n }\n if (msg.type === 'FingerprintServiceReady') {\n e.source.postMessage(JSON.stringify({\n type: 'GetFingerprint'\n }), e.origin);\n }\n };\n addListener(window, 'message', listener);\n iframe.src = sdk.getIssuerOrigin() + '/auth/services/devicefingerprint';\n document.body.appendChild(iframe);\n timeout = setTimeout(function () {\n reject(new AuthSdkError('Fingerprinting timed out'));\n }, (options === null || options === void 0 ? void 0 : options.timeout) || 15000);\n });\n return promise.finally(function () {\n clearTimeout(timeout);\n removeListener(window, 'message', listener);\n if (document.body.contains(iframe)) {\n iframe.parentElement.removeChild(iframe);\n }\n });\n}\nexport { fingerprint as default };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { clone } from '../util/object.js';\nimport fingerprint from '../browser/fingerprint.js';\nimport { createAuthnTransactionAPI } from './factory.js';\nfunction mixinAuthn(Base) {\n return class OktaAuthTx extends Base {\n constructor(...args) {\n super(...args);\n this.authn = this.tx = createAuthnTransactionAPI(this);\n this.fingerprint = fingerprint.bind(null, this);\n }\n async signIn(opts) {\n opts = clone(opts || {});\n const _postToTransaction = options => {\n delete opts.sendFingerprint;\n return this.tx.postToTransaction('/api/v1/authn', opts, options);\n };\n if (!opts.sendFingerprint) {\n return _postToTransaction();\n }\n return this.fingerprint().then(function (fingerprint) {\n return _postToTransaction({\n headers: {\n 'X-Device-Fingerprint': fingerprint\n }\n });\n });\n }\n async signInWithCredentials(opts) {\n return this.signIn(opts);\n }\n forgotPassword(opts) {\n return this.tx.postToTransaction('/api/v1/authn/recovery/password', opts);\n }\n unlockAccount(opts) {\n return this.tx.postToTransaction('/api/v1/authn/recovery/unlock', opts);\n }\n verifyRecoveryToken(opts) {\n return this.tx.postToTransaction('/api/v1/authn/recovery/token', opts);\n }\n };\n}\nexport { mixinAuthn };\n","/*!\n * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * \n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport { authenticate } from '../../idx/authenticate.js';\nexport { cancel } from '../../idx/cancel.js';\nexport { handleEmailVerifyCallback, isEmailVerifyCallback, isEmailVerifyCallbackError, parseEmailVerifyCallback } from '../../idx/emailVerify.js';\nexport { interact } from '../../idx/interact.js';\nexport { introspect } from '../../idx/introspect.js';\nexport { poll } from '../../idx/poll.js';\nexport { canProceed, proceed } from '../../idx/proceed.js';\nexport { register } from '../../idx/register.js';\nexport { recoverPassword } from '../../idx/recoverPassword.js';\nexport { handleInteractionCodeRedirect } from '../../idx/handleInteractionCodeRedirect.js';\nexport { startTransaction } from '../../idx/startTransaction.js';\nexport { unlockAccount } from '../../idx/unlockAccount.js';\nexport { clearTransactionMeta, createTransactionMeta, getSavedTransactionMeta, getTransactionMeta, hasSavedInteractionHandle, isTransactionMetaValid, isTransactionMetaValidForFlow, isTransactionMetaValidForOptions, saveTransactionMeta } from '../../idx/transactionMeta.js';\nexport { createIdxAPI } from '../../idx/factory/api.js';\nimport { createOktaAuthIdx } from '../../idx/factory/OktaAuthIdx.js';\nexport { createOktaAuthIdx } from '../../idx/factory/OktaAuthIdx.js';\nexport { createMinimalOktaAuthIdx } from '../../idx/factory/MinimalOktaAuthIdx.js';\nexport { mixinIdx } from '../../idx/mixin.js';\nimport { createIdxOptionsConstructor } from '../../idx/options.js';\nexport { createIdxOptionsConstructor } from '../../idx/options.js';\nimport { createIdxStorageManager } from '../../idx/storage.js';\nexport { createIdxStorageManager } from '../../idx/storage.js';\nexport { AuthenticatorKey, IdxFeature, IdxStatus, isAuthenticator } from '../../idx/types/api.js';\nimport { createIdxTransactionManager } from '../../idx/IdxTransactionManager.js';\nexport { createIdxTransactionManager } from '../../idx/IdxTransactionManager.js';\nexport { getProfile, getProfileSchema, updateProfile } from '../../myaccount/profileApi.js';\nexport { addEmail, deleteEmail, getEmail, getEmailChallenge, getEmails, sendEmailChallenge, verifyEmailChallenge } from '../../myaccount/emailApi.js';\nexport { addPhone, deletePhone, getPhone, getPhones, sendPhoneChallenge, verifyPhoneChallenge } from '../../myaccount/phoneApi.js';\nexport { deletePassword, enrollPassword, getPassword, updatePassword } from '../../myaccount/passwordApi.js';\nexport { createOktaAuthMyAccount } from '../../myaccount/factory.js';\nimport { mixinMyAccount } from '../../myaccount/mixin.js';\nexport { mixinMyAccount } from '../../myaccount/mixin.js';\nexport { EmailRole, PasswordStatus, Status } from '../../myaccount/types.js';\nexport { createAuthnTransactionAPI } from '../../authn/factory.js';\nimport { mixinAuthn } from '../../authn/mixin.js';\nexport { mixinAuthn } from '../../authn/mixin.js';\nimport * as index from '../../crypto/index.js';\nexport { index as crypto };\nexport { createOktaAuthBase } from '../../base/factory.js';\nexport { createBaseOptionsConstructor } from '../../base/options.js';\nexport { ACCESS_TOKEN_STORAGE_KEY, CACHE_STORAGE_NAME, DEFAULT_CACHE_DURATION, DEFAULT_CODE_CHALLENGE_METHOD, DEFAULT_MAX_CLOCK_SKEW, DEFAULT_POLLING_DELAY, IDX_API_VERSION, IDX_RESPONSE_STORAGE_NAME, ID_TOKEN_STORAGE_KEY, MAX_VERIFIER_LENGTH, MIN_VERIFIER_LENGTH, ORIGINAL_URI_STORAGE_NAME, PKCE_STORAGE_NAME, REFERRER_PATH_STORAGE_KEY, REFRESH_TOKEN_STORAGE_KEY, SHARED_TRANSACTION_STORAGE_NAME, STATE_TOKEN_KEY_NAME, TOKEN_STORAGE_NAME, TRANSACTION_STORAGE_NAME } from '../../constants.js';\nexport { AuthStateManager, INITIAL_AUTH_STATE } from '../../core/AuthStateManager.js';\nexport { createCoreOptionsConstructor } from '../../core/options.js';\nexport { createOktaAuthCore } from '../../core/factory.js';\nexport { mixinCore } from '../../core/mixin.js';\nexport { createCoreStorageManager } from '../../core/storage.js';\nexport { ServiceManager } from '../../core/ServiceManager/browser.js';\nexport { isAuthApiError, isOAuthError, isWWWAuthError } from '../../errors/index.js';\nexport { setRequestHeader } from '../../http/headers.js';\nexport { OktaUserAgent } from '../../http/OktaUserAgent.js';\nexport { get, httpRequest, post } from '../../http/request.js';\nexport { mixinHttp } from '../../http/mixin.js';\nexport { createHttpOptionsConstructor } from '../../http/options.js';\nexport { createEndpoints, createTokenAPI } from '../../oidc/factory/api.js';\nexport { createOktaAuthOAuth } from '../../oidc/factory/OktaAuthOAuth.js';\nexport { mixinOAuth } from '../../oidc/mixin/index.js';\nexport { createOAuthStorageManager } from '../../oidc/storage.js';\nexport { buildAuthorizeParams, convertTokenParamsToOAuthParams } from '../../oidc/endpoints/authorize.js';\nexport { postRefreshToken, postToTokenEndpoint } from '../../oidc/endpoints/token.js';\nexport { getKey, getWellKnown } from '../../oidc/endpoints/well-known.js';\nexport { createOAuthOptionsConstructor } from '../../oidc/options/OAuthOptionsConstructor.js';\nexport { TokenKind, isAccessToken, isIDToken, isRefreshToken, isToken } from '../../oidc/types/Token.js';\nexport { EVENT_ADDED, EVENT_ERROR, EVENT_EXPIRED, EVENT_REMOVED, EVENT_RENEWED, EVENT_SET_STORAGE } from '../../oidc/types/TokenManager.js';\nexport { isCustomAuthTransactionMeta, isIdxTransactionMeta, isOAuthTransactionMeta, isPKCETransactionMeta, isTransactionMeta } from '../../oidc/types/Transaction.js';\nexport { TokenManager } from '../../oidc/TokenManager.js';\nexport { createTransactionManager } from '../../oidc/TransactionManager.js';\nexport { addListener, addPostMessageListener, loadFrame, loadPopup, removeListener } from '../../oidc/util/browser.js';\nexport { getDefaultTokenParams } from '../../oidc/util/defaultTokenParams.js';\nexport { getDefaultEnrollAuthenticatorParams } from '../../oidc/util/defaultEnrollAuthenticatorParams.js';\nexport { isAuthorizationCodeError, isInteractionRequiredError, isRefreshTokenInvalidError } from '../../oidc/util/errors.js';\nexport { getHashOrSearch, hasAuthorizationCode, hasErrorInUrl, hasInteractionCode, hasResponseType, hasTokensInHash, isCodeFlow, isInteractionRequired, isLoginRedirect, isRedirectUri } from '../../oidc/util/loginRedirect.js';\nexport { generateNonce, generateState, getOAuthBaseUrl, getOAuthDomain, getOAuthUrls } from '../../oidc/util/oauth.js';\nexport { createOAuthMeta } from '../../oidc/util/oauthMeta.js';\nexport { createEnrollAuthenticatorMeta } from '../../oidc/util/enrollAuthenticatorMeta.js';\nexport { default as pkce } from '../../oidc/util/pkce.js';\nexport { assertPKCESupport, preparePKCE, prepareTokenParams, validateCodeChallengeMethod } from '../../oidc/util/prepareTokenParams.js';\nexport { prepareEnrollAuthenticatorParams } from '../../oidc/util/prepareEnrollAuthenticatorParams.js';\nexport { isRefreshTokenError, isSameRefreshToken } from '../../oidc/util/refreshToken.js';\nexport { urlParamsToObject } from '../../oidc/util/urlParams.js';\nexport { validateClaims } from '../../oidc/util/validateClaims.js';\nexport { validateToken } from '../../oidc/util/validateToken.js';\nexport { decodeToken } from '../../oidc/decodeToken.js';\nexport { revokeToken } from '../../oidc/revokeToken.js';\nexport { renewToken } from '../../oidc/renewToken.js';\nexport { renewTokensWithRefresh } from '../../oidc/renewTokensWithRefresh.js';\nexport { renewTokens } from '../../oidc/renewTokens.js';\nexport { verifyToken } from '../../oidc/verifyToken.js';\nexport { getUserInfo } from '../../oidc/getUserInfo.js';\nexport { handleOAuthResponse } from '../../oidc/handleOAuthResponse.js';\nexport { exchangeCodeForTokens } from '../../oidc/exchangeCodeForTokens.js';\nexport { getToken } from '../../oidc/getToken.js';\nexport { getWithoutPrompt } from '../../oidc/getWithoutPrompt.js';\nexport { getWithPopup } from '../../oidc/getWithPopup.js';\nexport { getWithRedirect } from '../../oidc/getWithRedirect.js';\nexport { parseFromUrl } from '../../oidc/parseFromUrl.js';\nexport { oidcIntrospect } from '../../oidc/introspect.js';\nexport { closeSession, getSession, refreshSession, sessionExists, setCookieAndRedirect } from '../../session/api.js';\nexport { createSessionApi } from '../../session/factory.js';\nexport { mixinSession } from '../../session/mixin.js';\nexport { createStorageOptionsConstructor } from '../../storage/options/StorageOptionsConstructor.js';\nexport { BaseStorageManager, logServerSideMemoryStorageWarning } from '../../storage/BaseStorageManager.js';\nexport { mixinStorage } from '../../storage/mixin.js';\nexport { SavedObject } from '../../storage/SavedObject.js';\nexport { deprecate, deprecateWrap, getConsole, getNativeConsole, warn } from '../../util/console.js';\nexport { delay, genRandomString, isoToUTCString, split2 } from '../../util/misc.js';\nexport { bind, clone, extend, find, getLink, omit, removeNils } from '../../util/object.js';\nexport { PromiseQueue } from '../../util/PromiseQueue.js';\nexport { isFunction, isNumber, isObject, isPromise, isString } from '../../util/types.js';\nexport { isAbsoluteUrl, removeTrailingSlash, toAbsoluteUrl, toQueryString, toRelativeUrl } from '../../util/url.js';\nexport { default as AuthApiError } from '../../errors/AuthApiError.js';\nexport { default as AuthPollStopError } from '../../errors/AuthPollStopError.js';\nexport { default as AuthSdkError } from '../../errors/AuthSdkError.js';\nexport { default as OAuthError } from '../../errors/OAuthError.js';\nexport { default as WWWAuthError } from '../../errors/WWWAuthError.js';\nconst OptionsConstructor = createIdxOptionsConstructor();\nconst StorageManager = createIdxStorageManager();\nconst TransactionManager = createIdxTransactionManager();\nconst WithIdx = createOktaAuthIdx(StorageManager, OptionsConstructor, TransactionManager);\nconst WithMyAccount = mixinMyAccount(WithIdx);\nconst WithAuthn = mixinAuthn(WithMyAccount);\nclass OktaAuth extends WithAuthn {\n constructor(options) {\n super(options);\n }\n}\nexport { OktaAuth, OktaAuth as default };\n","/**\n * Compare [semver](https://semver.org/) version strings to find greater, equal or lesser.\n * This library supports the full semver specification, including comparing versions with different number of digits like `1.0.0`, `1.0`, `1`, and pre-release versions like `1.0.0-alpha`.\n * @param v1 - First version to compare\n * @param v2 - Second version to compare\n * @returns Numeric value compatible with the [Array.sort(fn) interface](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Parameters).\n */\nexport const compareVersions = (v1, v2) => {\n // validate input and split into segments\n const n1 = validateAndParse(v1);\n const n2 = validateAndParse(v2);\n // pop off the patch\n const p1 = n1.pop();\n const p2 = n2.pop();\n // validate numbers\n const r = compareSegments(n1, n2);\n if (r !== 0) return r;\n // validate pre-release\n if (p1 && p2) {\n return compareSegments(p1.split('.'), p2.split('.'));\n } else if (p1 || p2) {\n return p1 ? -1 : 1;\n }\n return 0;\n};\n/**\n * Validate [semver](https://semver.org/) version strings.\n *\n * @param version Version number to validate\n * @returns `true` if the version number is a valid semver version number, `false` otherwise.\n *\n * @example\n * ```\n * validate('1.0.0-rc.1'); // return true\n * validate('1.0-rc.1'); // return false\n * validate('foo'); // return false\n * ```\n */\nexport const validate = version => typeof version === 'string' && /^[v\\d]/.test(version) && semver.test(version);\n/**\n * Compare [semver](https://semver.org/) version strings using the specified operator.\n *\n * @param v1 First version to compare\n * @param v2 Second version to compare\n * @param operator Allowed arithmetic operator to use\n * @returns `true` if the comparison between the firstVersion and the secondVersion satisfies the operator, `false` otherwise.\n *\n * @example\n * ```\n * compare('10.1.8', '10.0.4', '>'); // return true\n * compare('10.0.1', '10.0.1', '='); // return true\n * compare('10.1.1', '10.2.2', '<'); // return true\n * compare('10.1.1', '10.2.2', '<='); // return true\n * compare('10.1.1', '10.2.2', '>='); // return false\n * ```\n */\nexport const compare = (v1, v2, operator) => {\n // validate input operator\n assertValidOperator(operator);\n // since result of compareVersions can only be -1 or 0 or 1\n // a simple map can be used to replace switch\n const res = compareVersions(v1, v2);\n return operatorResMap[operator].includes(res);\n};\n/**\n * Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range.\n *\n * @param version Version number to match\n * @param range Range pattern for version\n * @returns `true` if the version number is within the range, `false` otherwise.\n *\n * @example\n * ```\n * satisfies('1.1.0', '^1.0.0'); // return true\n * satisfies('1.1.0', '~1.0.0'); // return false\n * ```\n */\nexport const satisfies = (version, range) => {\n // if no range operator then \"=\"\n const m = range.match(/^([<>=~^]+)/);\n const op = m ? m[1] : '=';\n // if gt/lt/eq then operator compare\n if (op !== '^' && op !== '~') return compare(version, range, op);\n // else range of either \"~\" or \"^\" is assumed\n const [v1, v2, v3,, vp] = validateAndParse(version);\n const [r1, r2, r3,, rp] = validateAndParse(range);\n const v = [v1, v2, v3];\n const r = [r1, r2 !== null && r2 !== void 0 ? r2 : 'x', r3 !== null && r3 !== void 0 ? r3 : 'x'];\n // validate pre-release\n if (rp) {\n if (!vp) return false;\n if (compareSegments(v, r) !== 0) return false;\n if (compareSegments(vp.split('.'), rp.split('.')) === -1) return false;\n }\n // first non-zero number\n const nonZero = r.findIndex(v => v !== '0') + 1;\n // pointer to where segments can be >=\n const i = op === '~' ? 2 : nonZero > 1 ? nonZero : 1;\n // before pointer must be equal\n if (compareSegments(v.slice(0, i), r.slice(0, i)) !== 0) return false;\n // after pointer must be >=\n if (compareSegments(v.slice(i), r.slice(i)) === -1) return false;\n return true;\n};\nconst semver = /^[v^~<>=]*?(\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+))?(?:-([\\da-z\\-]+(?:\\.[\\da-z\\-]+)*))?(?:\\+[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?)?)?$/i;\nconst validateAndParse = version => {\n if (typeof version !== 'string') {\n throw new TypeError('Invalid argument expected string');\n }\n const match = version.match(semver);\n if (!match) {\n throw new Error(`Invalid argument not valid semver ('${version}' received)`);\n }\n match.shift();\n return match;\n};\nconst isWildcard = s => s === '*' || s === 'x' || s === 'X';\nconst tryParse = v => {\n const n = parseInt(v, 10);\n return isNaN(n) ? v : n;\n};\nconst forceType = (a, b) => typeof a !== typeof b ? [String(a), String(b)] : [a, b];\nconst compareStrings = (a, b) => {\n if (isWildcard(a) || isWildcard(b)) return 0;\n const [ap, bp] = forceType(tryParse(a), tryParse(b));\n if (ap > bp) return 1;\n if (ap < bp) return -1;\n return 0;\n};\nconst compareSegments = (a, b) => {\n for (let i = 0; i < Math.max(a.length, b.length); i++) {\n const r = compareStrings(a[i] || '0', b[i] || '0');\n if (r !== 0) return r;\n }\n return 0;\n};\nconst operatorResMap = {\n '>': [1],\n '>=': [0, 1],\n '=': [0],\n '<=': [-1, 0],\n '<': [-1]\n};\nconst allowedOperators = Object.keys(operatorResMap);\nconst assertValidOperator = op => {\n if (typeof op !== 'string') {\n throw new TypeError(`Invalid operator type, expected string but got ${typeof op}`);\n }\n if (allowedOperators.indexOf(op) === -1) {\n throw new Error(`Invalid operator, expected one of ${allowedOperators.join('|')}`);\n }\n};\n","import * as i0 from '@angular/core';\nimport { InjectionToken, Injectable, Optional, Inject, Component, VERSION, Directive, Input, NgModule } from '@angular/core';\nimport { Router, NavigationStart } from '@angular/router';\nimport { Location } from '@angular/common';\nimport * as i2 from '@okta/okta-auth-js';\nimport { AuthSdkError, toRelativeUrl } from '@okta/okta-auth-js';\nimport { filter, mergeMap, switchMap, takeUntil } from 'rxjs/operators';\nimport { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';\nimport { compare } from 'compare-versions';\n\n/*\n * Copyright (c) 2017-Present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\nconst OKTA_CONFIG = new InjectionToken('okta.config.angular');\nconst OKTA_AUTH = new InjectionToken('okta.auth');\nlet OktaAuthConfigService = /*#__PURE__*/(() => {\n class OktaAuthConfigService {\n constructor(config) {\n if (config) {\n this.config = config;\n }\n }\n getConfig() {\n return this.config;\n }\n setConfig(config) {\n this.config = config;\n }\n }\n OktaAuthConfigService.ɵfac = function OktaAuthConfigService_Factory(t) {\n return new (t || OktaAuthConfigService)(i0.ɵɵinject(OKTA_CONFIG, 8));\n };\n OktaAuthConfigService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: OktaAuthConfigService,\n factory: OktaAuthConfigService.ɵfac,\n providedIn: 'root'\n });\n return OktaAuthConfigService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar __awaiter$3 = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nlet OktaCallbackComponent = /*#__PURE__*/(() => {\n class OktaCallbackComponent {\n constructor(configService, oktaAuth, injector) {\n this.configService = configService;\n this.oktaAuth = oktaAuth;\n this.injector = injector;\n }\n ngOnInit() {\n return __awaiter$3(this, void 0, void 0, function* () {\n const config = this.configService.getConfig();\n if (!config) {\n throw new Error('Okta config is not provided');\n }\n try {\n // Parse code or tokens from the URL, store tokens in the TokenManager, and redirect back to the originalUri\n yield this.oktaAuth.handleLoginRedirect();\n } catch (e) {\n // Callback from social IDP. Show custom login page to continue.\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore Supports auth-js v5 & v6-7\n const isInteractionRequiredError = this.oktaAuth.isInteractionRequiredError || this.oktaAuth.idx.isInteractionRequiredError;\n if (isInteractionRequiredError(e) && this.injector) {\n const {\n onAuthResume,\n onAuthRequired\n } = config;\n const callbackFn = onAuthResume || onAuthRequired;\n if (callbackFn) {\n callbackFn(this.oktaAuth, this.injector);\n return;\n }\n }\n this.error = e.toString();\n }\n });\n }\n }\n OktaCallbackComponent.ɵfac = function OktaCallbackComponent_Factory(t) {\n return new (t || OktaCallbackComponent)(i0.ɵɵdirectiveInject(OktaAuthConfigService), i0.ɵɵdirectiveInject(OKTA_AUTH), i0.ɵɵdirectiveInject(i0.Injector, 8));\n };\n OktaCallbackComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: OktaCallbackComponent,\n selectors: [[\"ng-component\"]],\n decls: 2,\n vars: 1,\n template: function OktaCallbackComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx.error);\n }\n },\n encapsulation: 2\n });\n return OktaCallbackComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar __awaiter$2 = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nlet OktaAuthGuard = /*#__PURE__*/(() => {\n class OktaAuthGuard {\n constructor(oktaAuth, injector, configService) {\n this.oktaAuth = oktaAuth;\n this.injector = injector;\n this.configService = configService;\n this.updateAuthStateListener = authState => __awaiter$2(this, void 0, void 0, function* () {\n const isAuthenticated = yield this.isAuthenticated(this.routeData, authState);\n if (!isAuthenticated) {\n this.handleLogin(this.state.url, this.routeData);\n }\n });\n const config = this.configService.getConfig();\n if (!config) {\n throw new Error('Okta config is not provided');\n }\n this.onAuthRequired = config.onAuthRequired;\n // Unsubscribe updateAuthStateListener when route change\n const router = injector.get(Router);\n router.events.pipe(filter(e => e instanceof NavigationStart && this.state && this.state.url !== e.url)).subscribe(() => {\n this.oktaAuth.authStateManager.unsubscribe(this.updateAuthStateListener);\n });\n }\n canLoad(route) {\n var _a;\n return __awaiter$2(this, void 0, void 0, function* () {\n this.onAuthRequired = ((_a = route.data) === null || _a === void 0 ? void 0 : _a.onAuthRequired) || this.onAuthRequired;\n const isAuthenticated = yield this.isAuthenticated(route.data);\n if (isAuthenticated) {\n return true;\n }\n const router = this.injector.get(Router);\n const nav = router.getCurrentNavigation();\n const originalUri = nav ? nav.extractedUrl.toString() : undefined;\n yield this.handleLogin(originalUri, route.data);\n return false;\n });\n }\n /**\n * Gateway for protected route. Returns true if there is a valid accessToken,\n * otherwise it will cache the route and start the login flow.\n * @param route\n * @param state\n */\n canActivate(route, state) {\n return __awaiter$2(this, void 0, void 0, function* () {\n // Track states for current route\n this.state = state;\n this.routeData = route.data;\n this.onAuthRequired = route.data && route.data.onAuthRequired || this.onAuthRequired;\n // Protect the route after accessing\n this.oktaAuth.authStateManager.subscribe(this.updateAuthStateListener);\n const isAuthenticated = yield this.isAuthenticated(route.data);\n if (isAuthenticated) {\n return true;\n }\n yield this.handleLogin(state.url, route.data);\n return false;\n });\n }\n canActivateChild(route, state) {\n return __awaiter$2(this, void 0, void 0, function* () {\n return this.canActivate(route, state);\n });\n }\n isAuthenticated(routeData, authState) {\n var _a, _b, _c;\n return __awaiter$2(this, void 0, void 0, function* () {\n const isAuthenticated = authState ? authState === null || authState === void 0 ? void 0 : authState.isAuthenticated : yield this.oktaAuth.isAuthenticated();\n let res = isAuthenticated;\n if ((_a = routeData === null || routeData === void 0 ? void 0 : routeData.okta) === null || _a === void 0 ? void 0 : _a.acrValues) {\n if (!authState) {\n authState = this.oktaAuth.authStateManager.getAuthState();\n }\n res = ((_b = authState === null || authState === void 0 ? void 0 : authState.accessToken) === null || _b === void 0 ? void 0 : _b.claims.acr) === ((_c = routeData === null || routeData === void 0 ? void 0 : routeData.okta) === null || _c === void 0 ? void 0 : _c.acrValues);\n }\n return res;\n });\n }\n handleLogin(originalUri, routeData) {\n var _a;\n return __awaiter$2(this, void 0, void 0, function* () {\n // Store the current path\n if (originalUri) {\n this.oktaAuth.setOriginalUri(originalUri);\n }\n const options = {};\n if ((_a = routeData === null || routeData === void 0 ? void 0 : routeData.okta) === null || _a === void 0 ? void 0 : _a.acrValues) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore Supports auth-js >= 7.1.0\n options.acrValues = routeData.okta.acrValues;\n }\n if (this.onAuthRequired) {\n this.onAuthRequired(this.oktaAuth, this.injector, options);\n } else {\n this.oktaAuth.signInWithRedirect(options);\n }\n });\n }\n }\n OktaAuthGuard.ɵfac = function OktaAuthGuard_Factory(t) {\n return new (t || OktaAuthGuard)(i0.ɵɵinject(OKTA_AUTH), i0.ɵɵinject(i0.Injector), i0.ɵɵinject(OktaAuthConfigService));\n };\n OktaAuthGuard.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: OktaAuthGuard,\n factory: OktaAuthGuard.ɵfac\n });\n return OktaAuthGuard;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar __awaiter$1 = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nconst defaultAuthState = {\n isAuthenticated: false\n};\nlet OktaAuthStateService = /*#__PURE__*/(() => {\n class OktaAuthStateService {\n constructor(oktaAuth) {\n this.oktaAuth = oktaAuth;\n this._authState = new BehaviorSubject(defaultAuthState);\n // only expose readonly property\n this.authState$ = this._authState.asObservable();\n this.updateAuthState = this.updateAuthState.bind(this);\n // set initial authState\n const initialAuthState = this.oktaAuth.authStateManager.getAuthState() || defaultAuthState;\n this._authState.next(initialAuthState);\n // subscribe to future changes\n this.oktaAuth.authStateManager.subscribe(this.updateAuthState);\n }\n ngOnDestroy() {\n this.oktaAuth.authStateManager.unsubscribe(this.updateAuthState);\n }\n // Observes as true when any group input can match groups from user claims \n hasAnyGroups(groups) {\n return this.authState$.pipe(mergeMap(({\n isAuthenticated,\n idToken\n }) => __awaiter$1(this, void 0, void 0, function* () {\n // return false when not authenticated or openid is not in scopes\n if (!isAuthenticated || !idToken) {\n return false;\n }\n // transform inputs to consistent object format\n if (typeof groups === 'string') {\n groups = {\n groups: [groups]\n };\n }\n if (Array.isArray(groups)) {\n groups = {\n groups\n };\n }\n const key = Object.keys(groups)[0];\n const value = groups[key];\n // groups or custom claims is available in idToken\n if (idToken.claims[key]) {\n return value.some(authority => idToken.claims[key].includes(authority));\n }\n // try /userinfo endpoint when thin idToken (no groups claim) is returned\n // https://developer.okta.com/docs/concepts/api-access-management/#tokens-and-scopes\n const userInfo = yield this.oktaAuth.getUser();\n if (!userInfo[key]) {\n return false;\n }\n return value.some(authority => userInfo[key].includes(authority));\n })));\n }\n updateAuthState(authState) {\n this._authState.next(authState);\n }\n }\n OktaAuthStateService.ɵfac = function OktaAuthStateService_Factory(t) {\n return new (t || OktaAuthStateService)(i0.ɵɵinject(OKTA_AUTH));\n };\n OktaAuthStateService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: OktaAuthStateService,\n factory: OktaAuthStateService.ɵfac\n });\n return OktaAuthStateService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar packageInfo = {\n 'name': '@okta/okta-angular',\n 'version': '6.3.2',\n 'authJSMinSupportedVersion': '5.3.1'\n};\nvar __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nclass OktaAuthFactoryService {\n static setupOktaAuth(oktaAuth, router, location) {\n const isAuthJsSupported = oktaAuth._oktaUserAgent && compare(oktaAuth._oktaUserAgent.getVersion(), packageInfo.authJSMinSupportedVersion, '>=');\n if (!isAuthJsSupported) {\n throw new AuthSdkError(`Passed in oktaAuth is not compatible with the SDK, minimum supported okta-auth-js version is ${packageInfo.authJSMinSupportedVersion}.`);\n }\n // Add Okta UA\n oktaAuth._oktaUserAgent.addEnvironment(`${packageInfo.name}/${packageInfo.version}`);\n oktaAuth._oktaUserAgent.addEnvironment(`Angular/${VERSION.full}`);\n // Provide a default implementation of `restoreOriginalUri`\n if (!oktaAuth.options.restoreOriginalUri && router && location) {\n oktaAuth.options.restoreOriginalUri = (_, originalUri) => __awaiter(this, void 0, void 0, function* () {\n const baseUrl = window.location.origin + location.prepareExternalUrl('');\n const routePath = toRelativeUrl(originalUri || '/', baseUrl);\n router.navigateByUrl(routePath);\n });\n }\n // Start services\n oktaAuth.start();\n }\n static createOktaAuth(configService, router, location) {\n const config = configService.getConfig();\n if (!config) {\n throw new Error('Okta config is not provided');\n }\n const {\n oktaAuth\n } = config;\n if (!oktaAuth) {\n throw new Error('Okta config should contain oktaAuth');\n }\n OktaAuthFactoryService.setupOktaAuth(oktaAuth, router, location);\n return oktaAuth;\n }\n}\nlet OktaHasAnyGroupDirective = /*#__PURE__*/(() => {\n class OktaHasAnyGroupDirective {\n constructor(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n templateRef, viewContainer, authStateService) {\n this.templateRef = templateRef;\n this.viewContainer = viewContainer;\n this.authStateService = authStateService;\n this.groupsSub$ = new ReplaySubject();\n this.destroySub$ = new Subject();\n }\n ngOnInit() {\n this.groupsSub$.pipe(filter(groups => !!groups), switchMap(groups => this.authStateService.hasAnyGroups(groups)), takeUntil(this.destroySub$)).subscribe(isAuthorized => {\n this.viewContainer.clear();\n if (isAuthorized) {\n this.viewContainer.createEmbeddedView(this.templateRef);\n }\n });\n }\n ngOnChanges(changes) {\n if (changes['oktaHasAnyGroup'].currentValue !== changes['oktaHasAnyGroup'].previousValue) {\n this.groupsSub$.next(changes['oktaHasAnyGroup'].currentValue);\n }\n }\n ngOnDestroy() {\n this.destroySub$.next();\n this.destroySub$.complete();\n }\n }\n OktaHasAnyGroupDirective.ɵfac = function OktaHasAnyGroupDirective_Factory(t) {\n return new (t || OktaHasAnyGroupDirective)(i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(OktaAuthStateService));\n };\n OktaHasAnyGroupDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: OktaHasAnyGroupDirective,\n selectors: [[\"\", \"oktaHasAnyGroup\", \"\"]],\n inputs: {\n oktaHasAnyGroup: \"oktaHasAnyGroup\"\n },\n features: [i0.ɵɵNgOnChangesFeature]\n });\n return OktaHasAnyGroupDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/*\n * Copyright (c) 2017-Present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\nlet OktaAuthModule = /*#__PURE__*/(() => {\n class OktaAuthModule {\n static forRoot(config) {\n return {\n ngModule: OktaAuthModule,\n providers: [{\n provide: OKTA_CONFIG,\n useValue: config\n }]\n };\n }\n }\n OktaAuthModule.ɵfac = function OktaAuthModule_Factory(t) {\n return new (t || OktaAuthModule)();\n };\n OktaAuthModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: OktaAuthModule\n });\n OktaAuthModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [OktaAuthConfigService, OktaAuthStateService, OktaAuthGuard, {\n provide: OKTA_AUTH,\n useFactory: OktaAuthFactoryService.createOktaAuth,\n deps: [OktaAuthConfigService, [new Optional(), Router], [new Optional(), Location]]\n }]\n });\n return OktaAuthModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/*\n * Copyright (c) 2017-Present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Entry point for all public APIs of the package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { OKTA_AUTH, OKTA_CONFIG, OktaAuthConfigService, OktaAuthGuard, OktaAuthModule, OktaAuthStateService, OktaCallbackComponent, OktaHasAnyGroupDirective };\n","import { Inject, Injectable, OnDestroy } from '@angular/core';\r\nimport { OKTA_AUTH, OktaAuthStateService } from '@okta/okta-angular';\r\nimport { OktaAuth, UserClaims } from '@okta/okta-auth-js';\r\nimport { from, Observable, ReplaySubject, Subject } from 'rxjs';\r\nimport { distinctUntilChanged, switchMap, take, takeUntil } from 'rxjs/operators';\r\nimport { Logger } from 'src/app/shared/tcs-logging/logger';\r\nimport { firstValueOrDefault } from 'src/util/rxjs';\r\nimport { createSafeProps } from '../tcs-app-insights/app-insights-util';\r\nimport { ImpersonationService } from './impersonation.service';\r\n\r\ntype TcsUserClaims = UserClaims & { EmployeeNumber?: string };\r\n\r\nfunction decode(token: string): TcsUserClaims {\r\n const claims = JSON.parse(atob(token.split('.')[1]));\r\n return claims;\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AuthenticationService implements OnDestroy {\r\n private _accessToken$ = new ReplaySubject(1);\r\n private _idToken$ = new ReplaySubject(1);\r\n private _accessTokenClaims?: TcsUserClaims;\r\n private _onDestroy$ = new Subject();\r\n\r\n public get accessClaims(): TcsUserClaims | undefined {\r\n return this._accessTokenClaims;\r\n }\r\n\r\n private _accessClaims$ = new ReplaySubject(1);\r\n public get accessClaims$(): Observable {\r\n return this._accessClaims$.asObservable();\r\n }\r\n\r\n private _idClaims?: TcsUserClaims;\r\n public get idClaims(): TcsUserClaims | undefined {\r\n return this._idClaims;\r\n }\r\n\r\n private _idClaims$ = new ReplaySubject(1);\r\n public get idClaims$(): Observable {\r\n return this._idClaims$.asObservable();\r\n }\r\n\r\n public isAuthenticated(): Promise {\r\n return this._okta.isAuthenticated();\r\n }\r\n\r\n public get isAuthenticated$(): Observable {\r\n return this._accessClaims$.pipe(\r\n switchMap((claims) => from(this._okta.isAuthenticated())),\r\n distinctUntilChanged(),\r\n );\r\n }\r\n\r\n get accessToken$(): Observable {\r\n return this._accessToken$.asObservable();\r\n }\r\n\r\n public getAccessToken(): Promise {\r\n return firstValueOrDefault(this._accessToken$.pipe(take(1)), undefined);\r\n }\r\n\r\n public getIdToken(): Promise {\r\n return firstValueOrDefault(this._idToken$.pipe(take(1)), undefined);\r\n }\r\n\r\n constructor(\r\n @Inject(OKTA_AUTH) private _okta: OktaAuth,\r\n private _oktaState: OktaAuthStateService,\r\n private _impersonation: ImpersonationService,\r\n private _log: Logger,\r\n ) {\r\n this._accessToken$\r\n .pipe(distinctUntilChanged(), takeUntil(this._onDestroy$))\r\n .subscribe((accessToken) => {\r\n this._accessTokenClaims = accessToken != null ? decode(accessToken) : undefined;\r\n this._accessClaims$.next(this._accessTokenClaims);\r\n });\r\n\r\n this._idToken$\r\n .pipe(distinctUntilChanged(), takeUntil(this._onDestroy$))\r\n .subscribe((idToken) => {\r\n this._idClaims = idToken != null ? decode(idToken) : undefined;\r\n this._idClaims$.next(this._idClaims);\r\n });\r\n\r\n // Update tokens when changed\r\n // if the browser allows third-party cookies\r\n // - this executes on subscribe and after tokens are created, renewed, or expired\r\n // - on renewed the tokens have been updated\r\n // - on expired the session length has elapsed and the user is required to login again\r\n // if the browser blocks third-party cookies\r\n // - this executes on subscribe and after tokens are created or expired\r\n // - on expired causes a redirect to okta. If the session length has elapsed a login is required,\r\n // otherwise new tokens are returned\r\n this._oktaState.authState$.pipe(takeUntil(this._onDestroy$)).subscribe((authState) => {\r\n this._accessToken$.next(authState.accessToken?.accessToken);\r\n this._idToken$.next(authState.idToken?.idToken);\r\n });\r\n }\r\n\r\n public async init() {\r\n const idToken = this._okta.getIdToken();\r\n if (idToken != null) {\r\n const claims = decode(idToken);\r\n const config = this._okta.options;\r\n // Clear the local/session storage if the current tokens we have don't match the issuer (Okta tenant)\r\n // we're configured to use. This happens during local development and alternating between training/prod\r\n // and lower environments. Otherwise, the app will just throw an uncatchable exception and the developer has to clear\r\n // the local storage manually to get around this\r\n if (claims.iss !== config.issuer) {\r\n const props = this._log.info(\r\n 'Claims/config issuer mismatch detected, resetting storage',\r\n createSafeProps({\r\n claims,\r\n config,\r\n }),\r\n );\r\n this.clearLogin();\r\n await this.login({\r\n caller: 'AuthenticationService.init',\r\n fromUri: window.location.href,\r\n });\r\n }\r\n }\r\n }\r\n\r\n public async login({ fromUri, caller }: { fromUri?: string; caller: string }): Promise {\r\n fromUri = fromUri?.toLowerCase().includes('callback') ?? false ? undefined : fromUri;\r\n this._log.info('AuthenticationService.login', createSafeProps({ fromUri, caller }));\r\n return this._okta.signInWithRedirect({ originalUri: fromUri });\r\n }\r\n\r\n public async logout({ url, caller }: { url?: string; caller: string }) {\r\n this._log.info('AuthenticationService.logout', createSafeProps({ url, caller }));\r\n this.clearLogin();\r\n url = url?.toLowerCase().includes('callback') ?? false ? undefined : url;\r\n await this._okta.signOut({ state: url ?? '/' });\r\n }\r\n\r\n private async clearLogin() {\r\n this._impersonation.clearImpersonation();\r\n localStorage.removeItem('okta-cache-storage');\r\n localStorage.removeItem('okta-token-storage');\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this._onDestroy$.next(null);\r\n this._onDestroy$.complete();\r\n }\r\n}\r\n","/*! https://github.com/nevware21/ts-utils v0.11.3 */\n/*\n * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.\n * Licensed under the MIT license.\n */\n/*#__NO_SIDE_EFFECTS__*/\nfunction _pureAssign(func1, func2) {\n return func1 || func2;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _pureRef(value, name) {\n return value[name];\n}\nvar UNDEF_VALUE = undefined;\nvar NULL_VALUE = null;\nvar EMPTY = \"\";\nvar FUNCTION = \"function\";\nvar OBJECT = \"object\";\nvar PROTOTYPE = \"prototype\";\nvar __PROTO__ = \"__proto__\";\nvar UNDEFINED = \"undefined\";\nvar CONSTRUCTOR = \"constructor\";\nvar SYMBOL = \"Symbol\";\nvar POLYFILL_TAG = \"_polyfill\";\nvar LENGTH = \"length\";\nvar NAME = \"name\";\nvar CALL = \"call\";\nvar TO_STRING = \"toString\";\nvar ObjClass = /*#__PURE__*/_pureAssign(Object);\nvar ObjProto = /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE);\nvar StrCls = /*#__PURE__*/_pureAssign(String);\nvar StrProto = /*#__PURE__*/_pureRef(StrCls, PROTOTYPE);\nvar MathCls = /*#__PURE__*/_pureAssign(Math);\nvar ArrCls = /*#__PURE__*/_pureAssign(Array);\nvar ArrProto = /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE);\nvar ArrSlice = /*#__PURE__*/_pureRef(ArrProto, \"slice\");\nfunction safe(func, argArray) {\n try {\n return {\n v: func.apply(this, argArray)\n };\n } catch (e) {\n return {\n e: e\n };\n }\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction safeGet(cb, defValue) {\n var result = safe(cb);\n return result.e ? defValue : result.v;\n}\nvar _primitiveTypes;\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createIs(theType) {\n return function (value) {\n return typeof value === theType;\n };\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createObjIs(theName) {\n var theType = \"[object \" + theName + \"]\";\n return function (value) {\n return !!(value && objToString(value) === theType);\n };\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction objToString(value) {\n return ObjProto[TO_STRING].call(value);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction isTypeof(value, theType) {\n return typeof value === theType;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction isUndefined(value) {\n return typeof value === UNDEFINED || value === UNDEFINED;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction isStrictUndefined(arg) {\n return !isDefined(arg);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction isNullOrUndefined(value) {\n return value === NULL_VALUE || isUndefined(value);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction isStrictNullOrUndefined(value) {\n return value === NULL_VALUE || !isDefined(value);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction isDefined(arg) {\n return !!arg || arg !== UNDEF_VALUE;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction isPrimitive(value) {\n return value === NULL_VALUE || isPrimitiveType(typeof value);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction isPrimitiveType(theType) {\n !_primitiveTypes && (_primitiveTypes = [\"string\", \"number\", \"boolean\", UNDEFINED, \"symbol\", \"bigint\"]);\n return theType !== OBJECT && _primitiveTypes.indexOf(theType) !== -1;\n}\nvar isString = /*#__PURE__*/_createIs(\"string\");\nvar isFunction = /*#__PURE__*/_createIs(FUNCTION);\n/*#__NO_SIDE_EFFECTS__*/\nfunction isObject(value) {\n if (!value && isNullOrUndefined(value)) {\n return false;\n }\n return !!value && typeof value === OBJECT;\n}\nvar isArray = /* #__PURE__*/_pureRef(ArrCls, \"isArray\");\nvar isDate = /*#__PURE__*/_createObjIs(\"Date\");\nvar isNumber = /*#__PURE__*/_createIs(\"number\");\nvar isBoolean = /*#__PURE__*/_createIs(\"boolean\");\nvar isRegExp = /*#__PURE__*/_createObjIs(\"RegExp\");\nvar isFile = /*#__PURE__*/_createObjIs(\"File\");\nvar isFormData = /*#__PURE__*/_createObjIs(\"FormData\");\nvar isBlob = /*#__PURE__*/_createObjIs(\"Blob\");\nvar isArrayBuffer = /*#__PURE__*/_createObjIs(\"ArrayBuffer\");\nvar isError = /*#__PURE__*/_createObjIs(\"Error\");\n/*#__NO_SIDE_EFFECTS__*/\nfunction isPromiseLike(value) {\n return !!(value && value.then && isFunction(value.then));\n}\nvar isThenable = isPromiseLike;\n/*#__NO_SIDE_EFFECTS__*/\nfunction isPromise(value) {\n return !!(value && value.then && value.catch && isFunction(value.then) && isFunction(value.catch));\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction isNotTruthy(value) {\n return !value || !isTruthy(value);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction isTruthy(value) {\n return !(!value || safeGet(function () {\n return !(value && 0 + value);\n }, !value));\n}\nvar objGetOwnPropertyDescriptor = /* #__PURE__ */_pureRef(ObjClass, \"getOwnPropertyDescriptor\");\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction objHasOwnProperty(obj, prop) {\n return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);\n}\nvar objHasOwn = /*#__PURE__*/_pureAssign(/* #__PURE__ */_pureRef(ObjClass, \"hasOwn\"), polyObjHasOwn);\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyObjHasOwn(obj, prop) {\n return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);\n}\nfunction objForEachKey(theObject, callbackfn, thisArg) {\n if (theObject && isObject(theObject)) {\n for (var prop in theObject) {\n if (objHasOwn(theObject, prop)) {\n if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {\n break;\n }\n }\n }\n }\n}\nvar propMap = {\n e: \"enumerable\",\n c: \"configurable\",\n v: \"value\",\n w: \"writable\",\n g: \"get\",\n s: \"set\"\n};\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createProp(value) {\n var prop = {};\n prop[propMap[\"c\"]] = true;\n prop[propMap[\"e\"]] = true;\n if (value.l) {\n prop.get = function () {\n return value.l.v;\n };\n var desc = objGetOwnPropertyDescriptor(value.l, \"v\");\n if (desc && desc.set) {\n prop.set = function (newValue) {\n value.l.v = newValue;\n };\n }\n }\n objForEachKey(value, function (key, value) {\n prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;\n });\n return prop;\n}\nvar objDefineProp = /*#__PURE__*/_pureRef(ObjClass, \"defineProperty\");\nvar objDefineProperties = /*#__PURE__*/_pureRef(ObjClass, \"defineProperties\");\nfunction objDefineGet(target, key, value, configurable, enumerable) {\n var _a;\n return objDefineProp(target, key, _createProp((_a = {\n e: enumerable,\n c: configurable\n }, _a[isFunction(value) ? \"g\" : \"v\"] = value, _a)));\n}\nfunction objDefineAccessors(target, prop, getProp, setProp, configurable, enumerable) {\n var desc = {\n e: enumerable,\n c: configurable\n };\n if (getProp) {\n desc.g = getProp;\n }\n if (setProp) {\n desc.s = setProp;\n }\n return objDefineProp(target, prop, _createProp(desc));\n}\nfunction objDefine(target, key, propDesc) {\n return objDefineProp(target, key, _createProp(propDesc));\n}\nfunction objDefineProps(target, propDescMap) {\n var props = {};\n objForEachKey(propDescMap, function (key, value) {\n props[key] = _createProp(value);\n });\n return objDefineProperties(target, props);\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createKeyValueMap(values, keyType, valueType, completeFn, writable) {\n var theMap = {};\n objForEachKey(values, function (key, value) {\n _assignMapValue(theMap, key, keyType ? value : key, writable);\n _assignMapValue(theMap, value, valueType ? value : key, writable);\n });\n return completeFn ? completeFn(theMap) : theMap;\n}\nfunction _assignMapValue(theMap, key, value, writable) {\n objDefineProp(theMap, key, {\n value: value,\n enumerable: true,\n writable: !!writable\n });\n}\nvar asString = /* #__PURE__ */_pureAssign(StrCls);\nvar ERROR_TYPE = \"[object Error]\";\n/*#__NO_SIDE_EFFECTS__*/\nfunction dumpObj(object, format) {\n var propertyValueDump = EMPTY;\n var objType = ObjProto[TO_STRING][CALL](object);\n if (objType === ERROR_TYPE) {\n object = {\n stack: asString(object.stack),\n message: asString(object.message),\n name: asString(object.name)\n };\n }\n try {\n propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? typeof format === \"number\" ? format : 4 : UNDEF_VALUE);\n propertyValueDump = propertyValueDump && propertyValueDump.replace(/\"(\\w+)\"\\s*:\\s{0,1}/g, \"$1: \") || asString(object);\n } catch (e) {\n propertyValueDump = \" - \" + dumpObj(e, format);\n }\n return objType + \": \" + propertyValueDump;\n}\nfunction throwError(message) {\n throw new Error(message);\n}\nfunction throwTypeError(message) {\n throw new TypeError(message);\n}\nfunction throwRangeError(message) {\n throw new RangeError(message);\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyObjKeys(obj) {\n if (!isObject(obj) || obj === NULL_VALUE) {\n throwTypeError(\"non-object \" + dumpObj(obj));\n }\n var result = [];\n for (var prop in obj) {\n if (objHasOwn(obj, prop)) {\n result.push(prop);\n }\n }\n return result;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyObjEntries(value) {\n var result = [];\n objForEachKey(value, function (key, value) {\n result.push([key, value]);\n });\n return result;\n}\nvar _objFreeze = /* #__PURE__ */_pureRef(ObjClass, \"freeze\");\nfunction _doNothing(value) {\n return value;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _getProto(value) {\n return value[__PROTO__] || NULL_VALUE;\n}\nvar objAssign = /*#__PURE__*/_pureRef(ObjClass, \"assign\");\nvar objKeys = /*#__PURE__*/_pureRef(ObjClass, \"keys\");\nfunction objDeepFreeze(value) {\n if (_objFreeze) {\n objForEachKey(value, function (key, value) {\n if (isArray(value) || isObject(value)) {\n objDeepFreeze(value);\n }\n });\n }\n return objFreeze(value);\n}\nvar objFreeze = /* #__PURE__*/_pureAssign(_objFreeze, _doNothing);\nvar objSeal = /* #__PURE__*/_pureAssign(/* #__PURE__*/_pureRef(ObjClass, \"seal\"), _doNothing);\nvar objGetPrototypeOf = /* #__PURE__*/_pureAssign(/* #__PURE__*/_pureRef(ObjClass, \"getPrototypeOf\"), _getProto);\nvar objEntries = /* #__PURE__*/_pureAssign(/* #__PURE__*/_pureRef(ObjClass, \"entries\"), polyObjEntries);\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction createEnum(values) {\n return _createKeyValueMap(values, 1, 0, objFreeze);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction createEnumKeyMap(values) {\n return _createKeyValueMap(values, 0, 0, objFreeze);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction createEnumValueMap(values) {\n return _createKeyValueMap(values, 1, 1, objFreeze);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction createSimpleMap(values) {\n var mapClass = {};\n objForEachKey(values, function (key, value) {\n _assignMapValue(mapClass, key, value[1]);\n _assignMapValue(mapClass, value[0], value[1]);\n });\n return objFreeze(mapClass);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction createTypeMap(values) {\n return createSimpleMap(values);\n}\nvar _wellKnownSymbolMap = /*#__PURE__*/createEnumKeyMap({\n asyncIterator: 0,\n hasInstance: 1,\n isConcatSpreadable: 2,\n iterator: 3,\n match: 4,\n matchAll: 5,\n replace: 6,\n search: 7,\n species: 8,\n split: 9,\n toPrimitive: 10,\n toStringTag: 11,\n unscopables: 12\n});\nvar GLOBAL_CONFIG_KEY = \"__tsUtils$gblCfg\";\nvar _globalCfg;\n/*#__NO_SIDE_EFFECTS__*/\nfunction _getGlobalValue() {\n var result;\n if (typeof globalThis !== UNDEFINED) {\n result = globalThis;\n }\n if (!result && typeof self !== UNDEFINED) {\n result = self;\n }\n if (!result && typeof window !== UNDEFINED) {\n result = window;\n }\n if (!result && typeof global !== UNDEFINED) {\n result = global;\n }\n return result;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _getGlobalConfig() {\n if (!_globalCfg) {\n var gbl = safe(_getGlobalValue).v || {};\n _globalCfg = gbl[GLOBAL_CONFIG_KEY] = gbl[GLOBAL_CONFIG_KEY] || {};\n }\n return _globalCfg;\n}\nvar _unwrapFunction = _unwrapFunctionWithPoly;\n/*#__NO_SIDE_EFFECTS__*/\nfunction _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {\n var clsFn = clsProto && clsProto[funcName];\n return function (thisArg) {\n var theFunc = thisArg && thisArg[funcName] || clsFn;\n if (theFunc || polyFunc) {\n var theArgs = arguments;\n return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);\n }\n throwTypeError(\"\\\"\" + asString(funcName) + \"\\\" not defined for \" + dumpObj(thisArg));\n };\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _unwrapProp(propName) {\n return function (thisArg) {\n return thisArg[propName];\n };\n}\nvar mathMin = /*#__PURE__*/_pureRef(MathCls, \"min\");\nvar mathMax = /*#__PURE__*/_pureRef(MathCls, \"max\");\nvar strSlice = /*#__PURE__*/_unwrapFunction(\"slice\", StrProto);\nvar strSubstring = /*#__PURE__*/_unwrapFunction(\"substring\", StrProto);\nvar strSubstr = /*#__PURE__*/_unwrapFunctionWithPoly(\"substr\", StrProto, polyStrSubstr);\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyStrSubstr(value, start, length) {\n if (isNullOrUndefined(value)) {\n throwTypeError(\"Invalid \" + dumpObj(value));\n }\n if (length < 0) {\n return EMPTY;\n }\n start = start || 0;\n if (start < 0) {\n start = mathMax(start + value[LENGTH], 0);\n }\n if (isUndefined(length)) {\n return strSlice(value, start);\n }\n return strSlice(value, start, start + length);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction strLeft(value, count) {\n return strSubstring(value, 0, count);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction strRight(value, count) {\n return count <= 0 ? EMPTY : value[LENGTH] > count ? strSlice(value, -count) : value;\n}\nvar UNIQUE_REGISTRY_ID = \"_urid\";\nvar _polySymbols;\n/*#__NO_SIDE_EFFECTS__*/\nfunction _globalSymbolRegistry() {\n if (!_polySymbols) {\n var gblCfg = _getGlobalConfig();\n _polySymbols = gblCfg.gblSym = gblCfg.gblSym || {\n k: {},\n s: {}\n };\n }\n return _polySymbols;\n}\nvar _wellKnownSymbolCache;\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyNewSymbol(description) {\n var theSymbol = {\n description: asString(description),\n toString: function () {\n return SYMBOL + \"(\" + description + \")\";\n }\n };\n theSymbol[POLYFILL_TAG] = true;\n return theSymbol;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction polySymbolFor(key) {\n var registry = _globalSymbolRegistry();\n if (!objHasOwn(registry.k, key)) {\n var newSymbol_1 = polyNewSymbol(key);\n var regId_1 = objKeys(registry.s).length;\n newSymbol_1[UNIQUE_REGISTRY_ID] = function () {\n return regId_1 + \"_\" + newSymbol_1[TO_STRING]();\n };\n registry.k[key] = newSymbol_1;\n registry.s[newSymbol_1[UNIQUE_REGISTRY_ID]()] = asString(key);\n }\n return registry.k[key];\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction polySymbolKeyFor(sym) {\n if (!sym || !sym[TO_STRING] || strSubstring(sym[TO_STRING](), 0, 6) != SYMBOL) {\n throwTypeError(sym + \" is not a symbol\");\n }\n var regId = sym[POLYFILL_TAG] && sym[UNIQUE_REGISTRY_ID] && sym[UNIQUE_REGISTRY_ID]();\n return regId ? _globalSymbolRegistry().s[regId] : undefined;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyGetKnownSymbol(name) {\n !_wellKnownSymbolCache && (_wellKnownSymbolCache = {});\n var result;\n var knownName = _wellKnownSymbolMap[name];\n if (knownName) {\n result = _wellKnownSymbolCache[knownName] = _wellKnownSymbolCache[knownName] || polyNewSymbol(SYMBOL + \".\" + knownName);\n }\n return result;\n}\nvar _globalLazyTestHooks;\nfunction _initTestHooks() {\n _globalLazyTestHooks = _getGlobalConfig();\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction getLazy(cb) {\n var lazyValue = {};\n !_globalLazyTestHooks && _initTestHooks();\n lazyValue.b = _globalLazyTestHooks.lzy;\n objDefineProp(lazyValue, \"v\", {\n configurable: true,\n get: function () {\n var result = cb();\n if (!_globalLazyTestHooks.lzy) {\n objDefineProp(lazyValue, \"v\", {\n value: result\n });\n }\n lazyValue.b = _globalLazyTestHooks.lzy;\n return result;\n }\n });\n return lazyValue;\n}\nfunction setBypassLazyCache(newValue) {\n !_globalLazyTestHooks && _initTestHooks();\n _globalLazyTestHooks.lzy = newValue;\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction createCachedValue(value) {\n return objDefineProp({\n toJSON: function () {\n return value;\n }\n }, \"v\", {\n value: value\n });\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction createDeferredCachedValue(cb) {\n var theValue = {\n toJSON: function () {\n return theValue.v;\n }\n };\n return objDefineProp(theValue, \"v\", {\n get: function () {\n var result = cb();\n cb = NULL_VALUE;\n objDefineProp(theValue, \"v\", {\n value: result\n });\n return result;\n },\n configurable: true\n });\n}\nvar WINDOW = \"window\";\nvar _cachedGlobal;\nfunction _getGlobalInstFn(getFn, theArgs) {\n var cachedValue;\n return function () {\n !_globalLazyTestHooks && _initTestHooks();\n (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));\n return cachedValue.v;\n };\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction lazySafeGetInst(name) {\n return getLazy(function () {\n return safe(getInst, [name]).v || UNDEF_VALUE;\n });\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction getGlobal(useCached) {\n !_globalLazyTestHooks && _initTestHooks();\n (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE));\n return _cachedGlobal.v;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction getInst(name, useCached) {\n var gbl = !_cachedGlobal || useCached === false ? getGlobal(useCached) : _cachedGlobal.v;\n if (gbl && gbl[name]) {\n return gbl[name];\n }\n if (name === WINDOW) {\n return getWindow();\n }\n return NULL_VALUE;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction hasDocument() {\n return !!(/*#__PURE__*/getDocument());\n}\nvar getDocument = /*#__PURE__*/_getGlobalInstFn(getInst, [\"document\"]);\n/*#__NO_SIDE_EFFECTS__*/\nfunction hasWindow() {\n return !!(/*#__PURE__*/getWindow());\n}\nvar getWindow = /*#__PURE__*/_getGlobalInstFn(getInst, [WINDOW]);\n/*#__NO_SIDE_EFFECTS__*/\nfunction hasNavigator() {\n return !!(/*#__PURE__*/getNavigator());\n}\nvar getNavigator = /*#__PURE__*/_getGlobalInstFn(getInst, [\"navigator\"]);\n/*#__NO_SIDE_EFFECTS__*/\nfunction hasHistory() {\n return !!(/*#__PURE__*/getHistory());\n}\nvar getHistory = /*#__PURE__*/_getGlobalInstFn(getInst, [\"history\"]);\nvar isNode = /*#__PURE__*/_getGlobalInstFn(function () {\n return !!(/*#__PURE__*/safe(function () {\n return process && (process.versions || {}).node;\n }).v);\n});\nvar isWebWorker = /*#__PURE__*/_getGlobalInstFn(function () {\n return !!(/*#__PURE__*/safe(function () {\n return self && self instanceof WorkerGlobalScope;\n }).v);\n});\nvar _symbol;\nvar _symbolFor;\nvar _symbolKeyFor;\n/*#__NO_SIDE_EFFECTS__*/\nfunction _initSymbol() {\n _symbol = /*#__PURE__*/createCachedValue(safe(getInst, [SYMBOL]).v);\n return _symbol;\n}\nfunction _getSymbolKey(key) {\n var gblSym = (!_globalLazyTestHooks.lzy ? _symbol : 0) || _initSymbol();\n return gblSym.v ? gblSym.v[key] : UNDEF_VALUE;\n}\nvar isSymbol = /*#__PURE__*/_createIs(\"symbol\");\n/*#__NO_SIDE_EFFECTS__*/\nfunction hasSymbol() {\n return !!(/*#__PURE__*/getSymbol());\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction getSymbol() {\n !_globalLazyTestHooks && _initTestHooks();\n return ((!_globalLazyTestHooks.lzy ? _symbol : 0) || _initSymbol()).v;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction getKnownSymbol(name, noPoly) {\n var knownName = _wellKnownSymbolMap[name];\n !_globalLazyTestHooks && _initTestHooks();\n var sym = (!_globalLazyTestHooks.lzy ? _symbol : 0) || _initSymbol();\n return sym.v ? sym.v[knownName || name] : !noPoly ? polyGetKnownSymbol(name) : UNDEF_VALUE;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction newSymbol(description, noPoly) {\n !_globalLazyTestHooks && _initTestHooks();\n var sym = (!_globalLazyTestHooks.lzy ? _symbol : 0) || _initSymbol();\n return sym.v ? sym.v(description) : !noPoly ? polyNewSymbol(description) : NULL_VALUE;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction symbolFor(key) {\n !_globalLazyTestHooks && _initTestHooks();\n _symbolFor = (!_globalLazyTestHooks.lzy ? _symbolFor : 0) || (/*#__PURE__*/createCachedValue(safe(_getSymbolKey, [\"for\"]).v));\n return (_symbolFor.v || polySymbolFor)(key);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction symbolKeyFor(sym) {\n !_globalLazyTestHooks && _initTestHooks();\n _symbolKeyFor = (!_globalLazyTestHooks.lzy ? _symbolKeyFor : 0) || (/*#__PURE__*/createCachedValue(safe(_getSymbolKey, [\"keyFor\"]).v));\n return (_symbolKeyFor.v || polySymbolKeyFor)(sym);\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction isIterator(value) {\n return !!value && isFunction(value.next);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction isIterable(value) {\n return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3)]);\n}\nvar _iterSymbol$1;\nfunction iterForOf(iter, callbackfn, thisArg) {\n if (iter) {\n if (!isIterator(iter)) {\n !_iterSymbol$1 && (_iterSymbol$1 = createCachedValue(getKnownSymbol(3)));\n iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : null;\n }\n if (isIterator(iter)) {\n var err = UNDEF_VALUE;\n var iterResult = UNDEF_VALUE;\n try {\n var count = 0;\n while (!(iterResult = iter.next()).done) {\n if (callbackfn[CALL](thisArg || iter, iterResult.value, count, iter) === -1) {\n break;\n }\n count++;\n }\n } catch (failed) {\n err = {\n e: failed\n };\n if (iter.throw) {\n iterResult = NULL_VALUE;\n iter.throw(err);\n }\n } finally {\n try {\n if (iterResult && !iterResult.done) {\n iter.return && iter.return(iterResult);\n }\n } finally {\n if (err) {\n // eslint-disable-next-line no-unsafe-finally\n throw err.e;\n }\n }\n }\n }\n }\n}\nfunction fnApply(fn, thisArg, argArray) {\n return fn.apply(thisArg, argArray);\n}\nfunction fnCall(fn, thisArg) {\n return fn.apply(thisArg, ArrSlice[CALL](arguments, 2));\n}\nfunction fnBind(fn, thisArg) {\n return fn.bind.apply(fn, ArrSlice[CALL](arguments, 1));\n}\nfunction arrAppend(target, elms) {\n if (!isUndefined(elms) && target) {\n if (isArray(elms)) {\n fnApply(target.push, target, elms);\n } else if (isIterator(elms) || isIterable(elms)) {\n iterForOf(elms, function (elm) {\n target.push(elm);\n });\n } else {\n target.push(elms);\n }\n }\n return target;\n}\nvar arrEvery = /*#__PURE__*/_unwrapFunction(\"every\", ArrProto);\nvar arrFilter = /*#__PURE__*/_unwrapFunction(\"filter\", ArrProto);\nfunction arrForEach(theArray, callbackfn, thisArg) {\n if (theArray) {\n var len = theArray[LENGTH] >>> 0;\n for (var idx = 0; idx < len; idx++) {\n if (idx in theArray) {\n if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {\n break;\n }\n }\n }\n }\n}\nvar arrIndexOf = /*#__PURE__*/_unwrapFunction(\"indexOf\", ArrProto);\nvar arrLastIndexOf = /*#__PURE__*/_unwrapFunction(\"lastIndexOf\", ArrProto);\nvar arrMap = /*#__PURE__*/_unwrapFunction(\"map\", ArrProto);\nfunction arrSlice(theArray, start, end) {\n return (theArray && theArray[\"slice\"] || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyIsArray(value) {\n if (isNullOrUndefined(value)) {\n return false;\n }\n return objToString(value) === \"[object Array]\";\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyArrIncludes(theArray, searchElement, fromIndex) {\n return arrIndexOf(theArray, searchElement, fromIndex) !== -1;\n}\nfunction polyArrFind(theArray, callbackFn, thisArg) {\n var result;\n var idx = polyArrFindIndex(theArray, callbackFn, thisArg);\n return idx !== -1 ? theArray[idx] : result;\n}\nfunction polyArrFindIndex(theArray, callbackFn, thisArg) {\n var result = -1;\n arrForEach(theArray, function (value, index) {\n if (callbackFn[CALL](thisArg | theArray, value, index, theArray)) {\n result = index;\n return -1;\n }\n });\n return result;\n}\nfunction polyArrFindLast(theArray, callbackFn, thisArg) {\n var result;\n var idx = polyArrFindLastIndex(theArray, callbackFn, thisArg);\n return idx !== -1 ? theArray[idx] : result;\n}\nfunction polyArrFindLastIndex(theArray, callbackFn, thisArg) {\n var result = -1;\n var len = theArray[LENGTH] >>> 0;\n for (var idx = len - 1; idx >= 0; idx--) {\n if (idx in theArray && callbackFn[CALL](thisArg | theArray, theArray[idx], idx, theArray)) {\n result = idx;\n break;\n }\n }\n return result;\n}\nfunction polyArrFrom(theValue, mapFn, thisArg) {\n if (isArray(theValue)) {\n var result_1 = arrSlice(theValue);\n return mapFn ? arrMap(result_1, mapFn, thisArg) : result_1;\n }\n var result = [];\n iterForOf(theValue, function (value, cnt) {\n return result.push(mapFn ? mapFn[CALL](thisArg, value, cnt) : value);\n });\n return result;\n}\nvar arrFind = /*#__PURE__*/_unwrapFunctionWithPoly(\"find\", ArrProto, polyArrFind);\nvar arrFindIndex = /*#__PURE__*/_unwrapFunctionWithPoly(\"findIndex\", ArrProto, polyArrFindIndex);\nvar arrFindLast = /*#__PURE__*/_unwrapFunctionWithPoly(\"findLast\", ArrProto, polyArrFindLast);\nvar arrFindLastIndex = /*#__PURE__*/_unwrapFunctionWithPoly(\"findLastIndex\", ArrProto, polyArrFindLastIndex);\nvar arrFrom = /* #__PURE__*/_pureAssign(/* #__PURE__*/_pureRef(ArrCls, \"from\"), polyArrFrom);\nvar arrIncludes = /*#__PURE__*/_unwrapFunctionWithPoly(\"includes\", ArrProto, polyArrIncludes);\nvar arrContains = arrIncludes;\nvar arrReduce = /*#__PURE__*/_unwrapFunction(\"reduce\", ArrProto);\nvar arrSome = /*#__PURE__*/_unwrapFunction(\"some\", ArrProto);\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction createFnDeferredProxy(hostFn, funcName) {\n return function () {\n var theArgs = ArrSlice[CALL](arguments);\n var theHost = hostFn();\n return fnApply(theHost[funcName], theHost, theArgs);\n };\n}\nfunction createProxyFuncs(target, host, funcDefs) {\n if (target && host && isArray(funcDefs)) {\n var isDeferred_1 = isFunction(host);\n arrForEach(funcDefs, function (funcDef) {\n var targetName = funcDef.as || funcDef.n;\n if (funcDef.rp === false && target[targetName]) {\n return;\n }\n target[targetName] = isDeferred_1 ? createFnDeferredProxy(host, funcDef.n) : fnBind(host[funcDef.n], host);\n });\n }\n return target;\n}\nvar _iterSymbol;\n/*#__NO_SIDE_EFFECTS__*/\nfunction readArgs(theArgs, start, end) {\n if (!objHasOwn(theArgs, LENGTH)) {\n !_iterSymbol && (_iterSymbol = createCachedValue(hasSymbol() && getKnownSymbol(3)));\n var iterFn = _iterSymbol.v && theArgs[_iterSymbol.v];\n if (iterFn) {\n var values_1 = [];\n var from_1 = start === UNDEF_VALUE || start < 0 ? 0 : start;\n var to_1 = end < 0 || start < 0 ? UNDEF_VALUE : end;\n iterForOf(iterFn[CALL](theArgs), function (value, cnt) {\n if (to_1 !== UNDEF_VALUE && cnt >= to_1) {\n return -1;\n }\n if (cnt >= from_1) {\n values_1.push(value);\n }\n });\n if ((start === UNDEF_VALUE || start >= 0) && (end === UNDEF_VALUE || end >= 0)) {\n return values_1;\n }\n theArgs = values_1;\n }\n }\n return arrSlice(theArgs, start, end);\n}\nvar objCreate = /* #__PURE__*/_pureAssign(/* #__PURE__*/_pureRef(ObjClass, \"create\"), polyObjCreate);\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyObjCreate(obj) {\n if (!obj) {\n return {};\n }\n var type = typeof obj;\n if (type !== OBJECT && type !== FUNCTION) {\n throwTypeError(\"Prototype must be an Object or function: \" + dumpObj(obj));\n }\n function tempFunc() {}\n tempFunc[PROTOTYPE] = obj;\n return new tempFunc();\n}\nvar _isProtoArray;\nfunction objSetPrototypeOf(obj, proto) {\n var fn = ObjClass[\"setPrototypeOf\"] || function (d, b) {\n var _a;\n !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));\n _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) {\n return d[key] = value;\n });\n };\n return fn(obj, proto);\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createCustomError(name, d, b) {\n safe(objDefine, [d, NAME, {\n v: name,\n c: true,\n e: false\n }]);\n d = objSetPrototypeOf(d, b);\n function __() {\n this[CONSTRUCTOR] = d;\n safe(objDefine, [this, NAME, {\n v: name,\n c: true,\n e: false\n }]);\n }\n d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());\n return d;\n}\nfunction _setName(baseClass, name) {\n name && (baseClass[NAME] = name);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction createCustomError(name, constructCb, errorBase) {\n var theBaseClass = errorBase || Error;\n var orgName = theBaseClass[PROTOTYPE][NAME];\n var captureFn = Error.captureStackTrace;\n return _createCustomError(name, function () {\n var _this = this;\n var theArgs = arguments;\n try {\n safe(_setName, [theBaseClass, name]);\n var _self = fnApply(theBaseClass, _this, ArrSlice[CALL](theArgs)) || _this;\n if (_self !== _this) {\n var orgProto = objGetPrototypeOf(_this);\n if (orgProto !== objGetPrototypeOf(_self)) {\n objSetPrototypeOf(_self, orgProto);\n }\n }\n captureFn && captureFn(_self, _this[CONSTRUCTOR]);\n constructCb && constructCb(_self, theArgs);\n return _self;\n } finally {\n safe(_setName, [theBaseClass, orgName]);\n }\n }, theBaseClass);\n}\nvar _unsupportedError;\nfunction throwUnsupported(message) {\n if (!_unsupportedError) {\n _unsupportedError = createCustomError(\"UnsupportedError\");\n }\n throw new _unsupportedError(message);\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction utcNow() {\n return (Date.now || polyUtcNow)();\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyUtcNow() {\n return new Date().getTime();\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createTrimFn(exp) {\n return function _doTrim(value) {\n if (isNullOrUndefined(value)) {\n throwTypeError(\"strTrim called [\" + dumpObj(value) + \"]\");\n }\n if (value && value.replace) {\n value = value.replace(exp, EMPTY);\n }\n return value;\n };\n}\nvar polyStrTrim = /*#__PURE__*/_createTrimFn(/^\\s+|(?=\\s)\\s+$/g);\nvar polyStrTrimStart = /*#__PURE__*/_createTrimFn(/^\\s+/g);\nvar polyStrTrimEnd = /*#__PURE__*/_createTrimFn(/(?=\\s)\\s+$/g);\nvar strTrim = /*#__PURE__*/_unwrapFunctionWithPoly(\"trim\", StrProto, polyStrTrim);\nvar strTrimStart = /*#__PURE__*/_unwrapFunctionWithPoly(\"trimStart\", StrProto, polyStrTrimStart);\nvar strTrimLeft = /*#__PURE__*/_pureAssign(strTrimStart);\nvar strTrimEnd = /*#__PURE__*/_unwrapFunctionWithPoly(\"trimEnd\", StrProto, polyStrTrimEnd);\nvar strTrimRight = /*#__PURE__*/_pureAssign(strTrimEnd);\nvar strUpper = /*#__PURE__*/_unwrapFunction(\"toUpperCase\", StrProto);\nvar strLower = /*#__PURE__*/_unwrapFunction(\"toLowerCase\", StrProto);\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction _convertCase(value, newPrefix, upperWord) {\n return strTrim(asString(value)).replace(/((_|\\W)+(\\w){0,1}|([a-z])([A-Z]))/g, function (_match, _g1, _g2, wordStart, upperPrefix, upperLetter) {\n var convertMatch = wordStart || upperLetter || EMPTY;\n if (upperWord) {\n convertMatch = strUpper(convertMatch);\n }\n return (upperPrefix || EMPTY) + newPrefix + convertMatch;\n });\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction strLetterCase(value) {\n return asString(value).replace(/(_|\\b)\\w/g, strUpper);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction strCamelCase(value, upperFirst) {\n var result = _convertCase(value, \"\", true);\n return result.replace(/^\\w/, upperFirst ? strUpper : strLower);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction strKebabCase(value, scream) {\n var result = _convertCase(value, \"-\");\n return (scream ? strUpper : strLower)(result);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction strSnakeCase(value, scream) {\n var result = _convertCase(value, \"_\");\n return (scream ? strUpper : strLower)(result);\n}\nvar mathFloor = /*#__PURE__*/_pureRef(MathCls, \"floor\");\nvar mathCeil = /*#__PURE__*/_pureRef(MathCls, \"ceil\");\nvar mathTrunc = /* #__PURE__*/_pureAssign(/* #__PURE__*/_pureRef(MathCls, \"trunc\"), polyMathTrunc);\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyMathTrunc(value) {\n var theValue = +value;\n return (theValue > 0 ? mathFloor : mathCeil)(theValue);\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction mathToInt(value, throwInfinity) {\n var result = +value;\n if (result == Infinity && throwInfinity) {\n throwRangeError(\"invalid value [\" + dumpObj(value) + \"]\");\n }\n return result !== result || result === 0 ? 0 : mathTrunc(result);\n}\nvar strRepeat = /*#__PURE__*/_unwrapFunctionWithPoly(\"repeat\", StrProto, polyStrRepeat);\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyStrRepeat(value, count) {\n if (isNullOrUndefined(value)) {\n throwTypeError(\"can't convert [\" + dumpObj(value) + \"]\");\n }\n count = mathToInt(count, true);\n if (count < 0) {\n throwRangeError(\"invalid count must be >= 0 && < Infinity\");\n }\n var pad = isString(value) ? value : asString(value);\n var result = EMPTY;\n for (; count > 0; (count >>>= 1) && (pad += pad)) {\n if (count & 1) {\n result += pad;\n }\n }\n return result;\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction _padValue(value, targetLength, padString) {\n var result = EMPTY;\n targetLength = mathToInt(targetLength, true);\n targetLength >>= 0;\n var len = value[LENGTH];\n if (len < targetLength) {\n result = isNullOrUndefined(padString) ? \" \" : asString(padString);\n targetLength = targetLength - len;\n if (targetLength > result[LENGTH]) {\n result = strRepeat(result, mathCeil(targetLength / result[LENGTH]));\n }\n if (result[LENGTH] > targetLength) {\n result = strSubstring(result, 0, targetLength);\n }\n }\n return result;\n}\nvar strPadStart = /*#__PURE__*/_unwrapFunctionWithPoly(\"padStart\", StrProto, polyStrPadStart);\nvar strPadEnd = /*#__PURE__*/_unwrapFunctionWithPoly(\"padEnd\", StrProto, polyStrPadEnd);\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyStrPadStart(value, targetLength, padString) {\n return _padValue(value, targetLength, padString) + value;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyStrPadEnd(value, targetLength, padString) {\n return value + _padValue(value, targetLength, padString);\n}\nvar DBL_QUOTE = \"\\\"\";\nvar INVALID_JS_NAME = /([^\\w\\d_$])/g;\nvar _htmlEntityCache;\n/*#__NO_SIDE_EFFECTS__*/\nfunction normalizeJsName(jsName, camelCase) {\n var result = asString(jsName).replace(INVALID_JS_NAME, \"_\");\n return !isUndefined(camelCase) ? strCamelCase(result, !camelCase) : result;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction encodeAsJson(value, format) {\n var result;\n if (isString(value)) {\n result = DBL_QUOTE + value.replace(/[^\\w .,\\-!@#$%\\^&*\\(\\)_+={}\\[\\]:;|<>?]/g, function (match) {\n if (match === DBL_QUOTE || match === \"\\\\\") {\n return \"\\\\\" + match;\n }\n var hex = match.charCodeAt(0)[TO_STRING](16);\n return \"\\\\u\" + strPadStart(strUpper(hex), 4, \"0\");\n }) + DBL_QUOTE;\n } else {\n try {\n result = JSON.stringify(value, NULL_VALUE, format ? isNumber(format) ? format : 4 : UNDEF_VALUE);\n } catch (e) {\n result = DBL_QUOTE + dumpObj(e) + DBL_QUOTE;\n }\n }\n return result;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction encodeAsHtml(value) {\n !_htmlEntityCache && (_htmlEntityCache = {\n \"&\": \"amp\",\n \"<\": \"lt\",\n \">\": \"gt\",\n \"\\\"\": \"quot\",\n \"'\": \"#39\"\n });\n return asString(value).replace(/[&<>\"']/g, function (match) {\n return \"&\" + _htmlEntityCache[match] + \";\";\n });\n}\nvar _fnToString;\nvar _objCtrFnString;\nvar _gblWindow;\n/*#__NO_SIDE_EFFECTS__*/\nfunction isPlainObject(value) {\n if (!value || typeof value !== OBJECT) {\n return false;\n }\n if (!_gblWindow) {\n _gblWindow = hasWindow() ? getWindow() : true;\n }\n var result = false;\n if (value !== _gblWindow) {\n if (!_objCtrFnString) {\n _fnToString = Function[PROTOTYPE][TO_STRING];\n _objCtrFnString = _fnToString[CALL](ObjClass);\n }\n try {\n var proto = objGetPrototypeOf(value);\n result = !proto;\n if (!result) {\n if (objHasOwnProperty(proto, CONSTRUCTOR)) {\n proto = proto[CONSTRUCTOR];\n }\n result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;\n }\n } catch (ex) {}\n }\n return result;\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction _defaultDeepCopyHandler(details) {\n details.value && plainObjDeepCopyHandler(details);\n return true;\n}\nvar defaultDeepCopyHandlers = [arrayDeepCopyHandler, plainObjDeepCopyHandler, functionDeepCopyHandler, dateDeepCopyHandler];\n/*#__NO_SIDE_EFFECTS__*/\nfunction _getSetVisited(visitMap, source, newPath, cb) {\n var theEntry;\n arrForEach(visitMap, function (entry) {\n if (entry.k === source) {\n theEntry = entry;\n return -1;\n }\n });\n if (!theEntry) {\n theEntry = {\n k: source,\n v: source\n };\n visitMap.push(theEntry);\n cb(theEntry);\n }\n return theEntry.v;\n}\nfunction _deepCopy(visitMap, value, ctx, key) {\n var userHandler = ctx.handler;\n var newPath = ctx.path ? key ? ctx.path.concat(key) : ctx.path : [];\n var newCtx = {\n handler: ctx.handler,\n src: ctx.src,\n path: newPath\n };\n var theType = typeof value;\n var isPlain = false;\n var isPrim = false;\n if (value && theType === OBJECT) {\n isPlain = isPlainObject(value);\n } else {\n isPrim = value === NULL_VALUE || isPrimitiveType(theType);\n }\n var details = {\n type: theType,\n isPrim: isPrim,\n isPlain: isPlain,\n value: value,\n result: value,\n path: newPath,\n origin: ctx.src,\n copy: function (source, newKey) {\n return _deepCopy(visitMap, source, newKey ? newCtx : ctx, newKey);\n },\n copyTo: function (target, source) {\n return _copyProps(visitMap, target, source, newCtx);\n }\n };\n if (!details.isPrim) {\n return _getSetVisited(visitMap, value, newPath, function (newEntry) {\n objDefine(details, \"result\", {\n g: function () {\n return newEntry.v;\n },\n s: function (newValue) {\n newEntry.v = newValue;\n }\n });\n var idx = 0;\n var handler = userHandler;\n while (!(handler || (idx < defaultDeepCopyHandlers.length ? defaultDeepCopyHandlers[idx++] : _defaultDeepCopyHandler))[CALL](ctx, details)) {\n handler = NULL_VALUE;\n }\n });\n }\n if (userHandler && userHandler[CALL](ctx, details)) {\n return details.result;\n }\n return value;\n}\nfunction _copyProps(visitMap, target, source, ctx) {\n if (!isNullOrUndefined(source)) {\n for (var key in source) {\n target[key] = _deepCopy(visitMap, source[key], ctx, key);\n }\n }\n return target;\n}\nfunction objCopyProps(target, source, handler) {\n var ctx = {\n handler: handler,\n src: source,\n path: []\n };\n return _copyProps([], target, source, ctx);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction objDeepCopy(source, handler) {\n var ctx = {\n handler: handler,\n src: source\n };\n return _deepCopy([], source, ctx);\n}\nfunction arrayDeepCopyHandler(details) {\n var value = details.value;\n if (isArray(value)) {\n var target = details.result = [];\n target.length = value.length;\n details.copyTo(target, value);\n return true;\n }\n return false;\n}\nfunction dateDeepCopyHandler(details) {\n var value = details.value;\n if (isDate(value)) {\n details.result = new Date(value.getTime());\n return true;\n }\n return false;\n}\nfunction functionDeepCopyHandler(details) {\n if (details.type === FUNCTION) {\n return true;\n }\n return false;\n}\nfunction plainObjDeepCopyHandler(details) {\n var value = details.value;\n if (value && details.isPlain) {\n var target = details.result = {};\n details.copyTo(target, value);\n return true;\n }\n return false;\n}\nfunction _doExtend(target, theArgs) {\n arrForEach(theArgs, function (theArg) {\n objCopyProps(target, theArg);\n });\n return target;\n}\nfunction deepExtend(target, obj1, obj2, obj3, obj4, obj5, obj6) {\n return _doExtend(objDeepCopy(target) || {}, ArrSlice[CALL](arguments));\n}\nfunction objExtend(target, obj1, obj2, obj3, obj4, obj5, obj6) {\n return _doExtend(target || {}, ArrSlice[CALL](arguments));\n}\nvar getLength = /*#__PURE__*/_unwrapProp(LENGTH);\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction getIntValue(value, defValue) {\n if (!isNullOrUndefined(value)) {\n if (isNumber(value)) {\n return value;\n }\n var theValue = parseInt(value, 10);\n return isNaN(theValue) ? defValue : theValue;\n }\n return defValue;\n}\nvar _perf;\n/*#__NO_SIDE_EFFECTS__*/\nfunction hasPerformance() {\n return !!getPerformance();\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction getPerformance() {\n !_globalLazyTestHooks && _initTestHooks();\n (!_perf || _globalLazyTestHooks.lzy) && (_perf = createCachedValue(safe(getInst, [\"performance\"]).v));\n return _perf.v;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction perfNow() {\n var perf = getPerformance();\n if (perf && perf.now) {\n return perf.now();\n }\n return utcNow();\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction elapsedTime(startTime) {\n return perfNow() - startTime;\n}\nvar MATCH_ANY = \"(.*)\";\nvar MATCH_SINGLE = \"(.)\";\nfunction _createRegExp(value, escapeRgx, replaceFn, ignoreCase, fullMatch) {\n // eslint-disable-next-line security/detect-non-literal-regexp\n return new RegExp((fullMatch ? \"^\" : EMPTY) + replaceFn(value.replace(escapeRgx, \"\\\\$1\")) + (fullMatch ? \"$\" : EMPTY), ignoreCase ? \"i\" : \"\");\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction createWildcardRegex(value, ignoreCase, fullMatch) {\n return _createRegExp(asString(value), /([-+|^$#.\\?{}()\\[\\]\\\\/\\\"\\'])/g, function (value) {\n return value.replace(/\\*/g, MATCH_ANY);\n }, !!ignoreCase, fullMatch);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction createFilenameRegex(value, ignoreCase, fullMatch) {\n return _createRegExp(asString(value), /([-+|^$#.{}()\\\\\\/\\[\\]\\\"\\'])/g, function (value) {\n return value.replace(/(\\\\\\\\|\\\\\\/|\\*|\\?)/g, function (_all, g1) {\n if (g1 == \"\\\\/\" || g1 == \"\\\\\\\\\") {\n return \"[\\\\\\\\\\\\/]{1}\";\n }\n return g1 == \"*\" ? MATCH_ANY : MATCH_SINGLE;\n });\n }, !!ignoreCase, fullMatch);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction makeGlobRegex(value, ignoreCase, fullMatch) {\n return _createRegExp(asString(value), /([-+|^$#.{}()\\\\\\/\\[\\]\\\"\\'])/g, function (value) {\n return value.replace(/(\\*\\*\\\\[\\\\\\/]|\\\\\\\\|\\\\\\/|\\*\\*|\\*|\\?)/g, function (_all, g1) {\n if (g1 == \"**\\\\/\" || g1 == \"**\\\\\\\\\") {\n return \"(.*[\\\\\\\\\\\\/])*\";\n }\n if (g1 === \"\\\\/\" || g1 == \"\\\\\\\\\") {\n return \"[\\\\\\\\\\\\/]{1}\";\n }\n if (g1 === \"**\") {\n return MATCH_ANY;\n }\n return g1 === \"*\" ? \"([^\\\\\\\\\\\\/]*)\" : \"([^\\\\\\\\\\\\/]{1})\";\n });\n }, !!ignoreCase, fullMatch);\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction safeGetLazy(cb, defValue) {\n return getLazy(function () {\n var result = safe(cb);\n return result.e ? defValue : result.v;\n });\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction _checkLength(value, props) {\n var result;\n arrForEach(props, function (prop) {\n if (prop in value) {\n var propValue = value[prop];\n result = (isFunction(propValue) ? propValue() : propValue) > 0;\n return -1;\n }\n });\n return result;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _hasValue(value, depth) {\n var result = value === false || value === 0;\n if (!result && !isNullOrUndefined(value)) {\n if (isArray(value)) {\n result = value[LENGTH] > 0;\n } else if (isDate(value)) {\n result = !isNaN(value.getTime());\n } else if (isBoolean(value)) {\n return true;\n } else if (isObject(value)) {\n try {\n var chkValue = _checkLength(value, [LENGTH, \"byteLength\", \"size\", \"count\"]);\n if (isBoolean(chkValue)) {\n return chkValue;\n }\n if (isFunction(value.valueOf) && depth < 5) {\n return _hasValue(value.valueOf(), ++depth);\n }\n } catch (e) {}\n return !!objKeys(value)[LENGTH];\n } else {\n result = isTruthy(value);\n }\n }\n return result;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction hasValue(value) {\n return _hasValue(value, 0);\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction createIterable(ctx) {\n return makeIterable({}, ctx);\n}\nfunction makeIterable(target, ctx) {\n var itSymbol = getKnownSymbol(3);\n function _createIterator() {\n return createIterator(ctx);\n }\n target[itSymbol] = _createIterator;\n return target;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction createIterator(ctx) {\n var isDone = false;\n function _value() {\n return ctx.v;\n }\n function _next() {\n isDone = isDone || (ctx.n ? ctx.n(arguments) : true);\n var result = {\n done: isDone\n };\n if (!isDone) {\n objDefine(result, \"value\", {\n g: _value\n });\n }\n return result;\n }\n function _return(value) {\n isDone = true;\n return {\n done: true,\n value: ctx.r && ctx.r(value)\n };\n }\n function _throw(e) {\n isDone = true;\n return {\n done: true,\n value: ctx.t && ctx.t(e)\n };\n }\n var theIterator = {\n next: _next\n };\n if (ctx.r) {\n theIterator.return = _return;\n }\n if (ctx.t) {\n theIterator.throw = _throw;\n }\n return theIterator;\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction createArrayIterator(values) {\n var idx = -1;\n var theValues = values ? values.slice() : [];\n var len = theValues[LENGTH];\n function _value() {\n if (idx >= 0 && idx < len) {\n return theValues[idx];\n }\n }\n function _getNext() {\n idx++;\n return idx >= len;\n }\n var ctx = {\n n: _getNext\n };\n objDefine(ctx, \"v\", {\n g: _value\n });\n return createIterator(ctx);\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction createRangeIterator(start, end, step) {\n var nextValue = start;\n var theValue = UNDEF_VALUE;\n if (isNullOrUndefined(end)) {\n end = start;\n }\n var theStep = step || (start <= end ? 1 : -1);\n function _value() {\n return theValue;\n }\n function _getNext() {\n var isDone = false;\n if (theStep > 0) {\n isDone = nextValue > end;\n } else {\n isDone = nextValue < end;\n }\n if (!isDone) {\n theValue = nextValue;\n nextValue += theStep;\n }\n return isDone;\n }\n var ctx = {\n n: _getNext\n };\n objDefine(ctx, \"v\", {\n g: _value\n });\n return createIterator(ctx);\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyStrSymSplit(value, splitter, limit) {\n var splitFn = splitter && splitter[getKnownSymbol(9)];\n return splitFn ? splitFn(value, limit) : [value];\n}\nvar strSplit = /*#__PURE__*/_unwrapFunction(\"split\", StrProto);\nvar strSymSplit = /*#__PURE__*/_unwrapFunctionWithPoly(\"split\", StrProto, !hasSymbol() ? polyStrSymSplit : null);\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction getValueByKey(target, path, defValue) {\n if (!path || !target) {\n return defValue;\n }\n var parts = strSplit(path, \".\");\n var cnt = parts.length;\n for (var lp = 0; lp < cnt && !isNullOrUndefined(target); lp++) {\n target = target[parts[lp]];\n }\n return !isNullOrUndefined(target) ? target : defValue;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction getValueByIter(target, iter, defValue) {\n if (!iter || !target) {\n return defValue;\n }\n iterForOf(iter, function (value) {\n if (isNullOrUndefined(target)) {\n return -1;\n }\n target = target[value];\n });\n return !isNullOrUndefined(target) ? target : defValue;\n}\nfunction setValueByKey(target, path, value) {\n if (target && path) {\n var parts = strSplit(path, \".\");\n var lastKey = parts.pop();\n arrForEach(parts, function (key) {\n if (isNullOrUndefined(target[key])) {\n target[key] = {};\n }\n target = target[key];\n });\n target[lastKey] = value;\n }\n}\nfunction setValueByIter(target, iter, value) {\n if (target && iter) {\n var lastKey_1;\n iterForOf(iter, function (key) {\n if (lastKey_1) {\n if (isNullOrUndefined(target[lastKey_1])) {\n target[lastKey_1] = {};\n }\n target = target[lastKey_1];\n }\n lastKey_1 = key;\n });\n target[lastKey_1] = value;\n }\n}\nvar strEndsWith = /*#__PURE__*/_unwrapFunctionWithPoly(\"endsWith\", StrProto, polyStrEndsWith);\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyStrEndsWith(value, searchString, length) {\n if (!isString(value)) {\n throwTypeError(\"'\" + dumpObj(value) + \"' is not a string\");\n }\n var searchValue = isString(searchString) ? searchString : asString(searchString);\n var end = !isUndefined(length) && length < value[LENGTH] ? length : value[LENGTH];\n return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;\n}\nvar strIndexOf = /*#__PURE__*/_unwrapFunction(\"indexOf\", StrProto);\nvar strLastIndexOf = /*#__PURE__*/_unwrapFunction(\"lastIndexOf\", StrProto);\nvar strIncludes = /*#__PURE__*/_unwrapFunctionWithPoly(\"includes\", StrProto, polyStrIncludes);\nvar strContains = /*#__PURE__*/_pureAssign(strIncludes);\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyStrIncludes(value, searchString, position) {\n if (isRegExp(searchString)) {\n throwTypeError(\"'searchString' must not be a regular expression\" + dumpObj(searchString));\n }\n return strIndexOf(value, asString(searchString), position) !== -1;\n}\n\n/*#__NO_SIDE_EFFECTS__*/\nfunction strIsNullOrWhiteSpace(value) {\n if (isString(value)) {\n return value.replace(/[\\s\\t\\r\\n\\f]+/g, EMPTY) === EMPTY;\n }\n return isNullOrUndefined(value);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction strIsNullOrEmpty(value) {\n if (isString(value)) {\n return value === EMPTY;\n }\n return isNullOrUndefined(value);\n}\nvar strStartsWith = /*#__PURE__*/_unwrapFunctionWithPoly(\"startsWith\", StrProto, polyStrStartsWith);\n/*#__NO_SIDE_EFFECTS__*/\nfunction polyStrStartsWith(value, searchString, position) {\n if (!isString(value)) {\n throwTypeError(\"'\" + dumpObj(value) + \"' is not a string\");\n }\n var searchValue = isString(searchString) ? searchString : asString(searchString);\n var pos = position > 0 ? position : 0;\n return strSubstring(value, pos, pos + searchValue[LENGTH]) === searchValue;\n}\nvar REF = \"ref\";\nvar UNREF = \"unref\";\nvar HAS_REF = \"hasRef\";\nvar ENABLED = \"enabled\";\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createTimerHandler(startTimer, refreshFn, cancelFn) {\n var ref = true;\n var timerId = startTimer ? refreshFn(NULL_VALUE) : NULL_VALUE;\n var theTimerHandler;\n function _unref() {\n ref = false;\n timerId && timerId[UNREF] && timerId[UNREF]();\n return theTimerHandler;\n }\n function _cancel() {\n timerId && cancelFn(timerId);\n timerId = NULL_VALUE;\n }\n function _refresh() {\n timerId = refreshFn(timerId);\n if (!ref) {\n _unref();\n }\n return theTimerHandler;\n }\n function _setEnabled(value) {\n !value && timerId && _cancel();\n value && !timerId && _refresh();\n }\n theTimerHandler = {\n cancel: _cancel,\n refresh: _refresh\n };\n theTimerHandler[HAS_REF] = function () {\n if (timerId && timerId[HAS_REF]) {\n return timerId[HAS_REF]();\n }\n return ref;\n };\n theTimerHandler[REF] = function () {\n ref = true;\n timerId && timerId[REF] && timerId[REF]();\n return theTimerHandler;\n };\n theTimerHandler[UNREF] = _unref;\n theTimerHandler = objDefineProp(theTimerHandler, ENABLED, {\n get: function () {\n return !!timerId;\n },\n set: _setEnabled\n });\n return {\n h: theTimerHandler,\n dn: function () {\n timerId = NULL_VALUE;\n }\n };\n}\nfunction _createTimeoutWith(startTimer, overrideFn, theArgs) {\n var isArr = isArray(overrideFn);\n var len = isArr ? overrideFn.length : 0;\n var setFn = (len > 0 ? overrideFn[0] : !isArr ? overrideFn : UNDEF_VALUE) || setTimeout;\n var clearFn = (len > 1 ? overrideFn[1] : UNDEF_VALUE) || clearTimeout;\n var timerFn = theArgs[0];\n theArgs[0] = function () {\n handler.dn();\n fnApply(timerFn, UNDEF_VALUE, ArrSlice[CALL](arguments));\n };\n var handler = _createTimerHandler(startTimer, function (timerId) {\n if (timerId) {\n if (timerId.refresh) {\n timerId.refresh();\n return timerId;\n }\n fnApply(clearFn, UNDEF_VALUE, [timerId]);\n }\n return fnApply(setFn, UNDEF_VALUE, theArgs);\n }, function (timerId) {\n fnApply(clearFn, UNDEF_VALUE, [timerId]);\n });\n return handler.h;\n}\nfunction scheduleTimeout(callback, timeout) {\n return _createTimeoutWith(true, UNDEF_VALUE, ArrSlice[CALL](arguments));\n}\nfunction scheduleTimeoutWith(overrideFn, callback, timeout) {\n return _createTimeoutWith(true, overrideFn, ArrSlice[CALL](arguments, 1));\n}\nfunction createTimeout(callback, timeout) {\n return _createTimeoutWith(false, UNDEF_VALUE, ArrSlice[CALL](arguments));\n}\nfunction createTimeoutWith(overrideFn, callback, timeout) {\n return _createTimeoutWith(false, overrideFn, ArrSlice[CALL](arguments, 1));\n}\nvar _defaultIdleTimeout = 100;\nvar _maxExecutionTime = 50;\n/*#__NO_SIDE_EFFECTS__*/\nfunction hasIdleCallback() {\n return !!(/*#__PURE__*/getIdleCallback());\n}\nvar getIdleCallback = /*#__PURE__*/_getGlobalInstFn(getInst, [\"requestIdleCallback\"]);\nvar getCancelIdleCallback = /*#__PURE__*/_getGlobalInstFn(getInst, [\"cancelIdleCallback\"]);\nfunction setDefaultIdleTimeout(timeout) {\n _defaultIdleTimeout = timeout;\n}\nfunction setDefaultMaxExecutionTime(maxTime) {\n _maxExecutionTime = maxTime;\n}\nfunction scheduleIdleCallback(callback, options) {\n function _createDeadline(timedOut) {\n var startTime = perfNow();\n return {\n didTimeout: timedOut,\n timeRemaining: function () {\n return _maxExecutionTime - elapsedTime(startTime);\n }\n };\n }\n if (hasIdleCallback()) {\n var handler_1 = _createTimerHandler(true, function (idleId) {\n idleId && getCancelIdleCallback()(idleId);\n return getIdleCallback()(function (deadline) {\n handler_1.dn();\n callback(deadline || _createDeadline(false));\n }, options);\n }, function (idleId) {\n getCancelIdleCallback()(idleId);\n });\n return handler_1.h;\n }\n var timeout = (options || {}).timeout;\n if (isUndefined(timeout)) {\n timeout = _defaultIdleTimeout;\n }\n return scheduleTimeout(function () {\n callback(_createDeadline(true));\n }, timeout);\n}\nfunction scheduleInterval(callback, timeout) {\n var theArguments = ArrSlice[CALL](arguments);\n var handler = _createTimerHandler(true, function (intervalId) {\n intervalId && clearInterval(intervalId);\n return fnApply(setInterval, UNDEF_VALUE, theArguments);\n }, function (intervalId) {\n fnApply(clearInterval, UNDEF_VALUE, [intervalId]);\n });\n return handler.h;\n}\nexport { arrAppend, arrContains, arrEvery, arrFilter, arrFind, arrFindIndex, arrFindLast, arrFindLastIndex, arrForEach, arrFrom, arrIncludes, arrIndexOf, arrLastIndexOf, arrMap, arrReduce, arrSlice, arrSome, arrayDeepCopyHandler, asString, createArrayIterator, createCachedValue, createCustomError, createDeferredCachedValue, createEnum, createEnumKeyMap, createEnumValueMap, createFilenameRegex, createFnDeferredProxy, createIterable, createIterator, createProxyFuncs, createRangeIterator, createSimpleMap, createTimeout, createTimeoutWith, createTypeMap, createWildcardRegex, dateDeepCopyHandler, deepExtend, dumpObj, elapsedTime, encodeAsHtml, encodeAsJson, fnApply, fnBind, fnCall, functionDeepCopyHandler, getCancelIdleCallback, getDocument, getGlobal, getHistory, getIdleCallback, getInst, getIntValue, getKnownSymbol, getLazy, getLength, getNavigator, getPerformance, getSymbol, getValueByIter, getValueByKey, getWindow, hasDocument, hasHistory, hasIdleCallback, hasNavigator, hasPerformance, hasSymbol, hasValue, hasWindow, isArray, isArrayBuffer, isBlob, isBoolean, isDate, isDefined, isError, isFile, isFormData, isFunction, isIterable, isIterator, isNode, isNotTruthy, isNullOrUndefined, isNumber, isObject, isPlainObject, isPrimitive, isPrimitiveType, isPromise, isPromiseLike, isRegExp, isStrictNullOrUndefined, isStrictUndefined, isString, isSymbol, isThenable, isTruthy, isTypeof, isUndefined, isWebWorker, iterForOf, lazySafeGetInst, makeGlobRegex, makeIterable, mathCeil, mathFloor, mathMax, mathMin, mathToInt, mathTrunc, newSymbol, normalizeJsName, objAssign, objCopyProps, objCreate, objDeepCopy, objDeepFreeze, objDefine, objDefineAccessors, objDefineGet, objDefineProp, objDefineProperties, objDefineProps, objEntries, objExtend, objForEachKey, objFreeze, objGetOwnPropertyDescriptor, objGetPrototypeOf, objHasOwn, objHasOwnProperty, objKeys, objSeal, objSetPrototypeOf, objToString, perfNow, plainObjDeepCopyHandler, polyArrFind, polyArrFindIndex, polyArrFindLast, polyArrFindLastIndex, polyArrFrom, polyArrIncludes, polyGetKnownSymbol, polyIsArray, polyNewSymbol, polyObjEntries, polyObjHasOwn, polyObjKeys, polyStrIncludes, polyStrSubstr, polyStrSymSplit, polyStrTrim, polyStrTrimEnd, polyStrTrimStart, polySymbolFor, polySymbolKeyFor, polyUtcNow, readArgs, safe, safeGet, safeGetLazy, scheduleIdleCallback, scheduleInterval, scheduleTimeout, scheduleTimeoutWith, setBypassLazyCache, setDefaultIdleTimeout, setDefaultMaxExecutionTime, setValueByIter, setValueByKey, strCamelCase, strContains, strEndsWith, strIncludes, strIndexOf, strIsNullOrEmpty, strIsNullOrWhiteSpace, strKebabCase, strLastIndexOf, strLeft, strLetterCase, strLower, strPadEnd, strPadStart, strRepeat, strRight, strSlice, strSnakeCase, strSplit, strStartsWith, strSubstr, strSubstring, strSymSplit, strTrim, strTrimEnd, strTrimLeft, strTrimRight, strTrimStart, strUpper, symbolFor, symbolKeyFor, throwError, throwRangeError, throwTypeError, throwUnsupported, utcNow };\n","// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\nvar _a;\nimport { getGlobal, objCreate, objHasOwnProperty, throwTypeError } from \"@nevware21/ts-utils\";\n;\nvar UNDEFINED = \"undefined\";\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\nvar Constructor = 'constructor';\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\nvar Prototype = 'prototype';\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\nvar strFunction = 'function';\n/**\r\n * Used to define the name of the instance function lookup table\r\n * @ignore\r\n */\nvar DynInstFuncTable = '_dynInstFuncs';\n/**\r\n * Name used to tag the dynamic prototype function\r\n * @ignore\r\n */\nvar DynProxyTag = '_isDynProxy';\n/**\r\n * Name added to a prototype to define the dynamic prototype \"class\" name used to lookup the function table\r\n * @ignore\r\n */\nvar DynClassName = '_dynClass';\n/**\r\n * Prefix added to the classname to avoid any name clashes with other instance level properties\r\n * @ignore\r\n */\nvar DynClassNamePrefix = '_dynCls$';\n/**\r\n * A tag which is used to check if we have already to attempted to set the instance function if one is not present\r\n * @ignore\r\n */\nvar DynInstChkTag = '_dynInstChk';\n/**\r\n * A tag which is used to check if we are allows to try and set an instance function is one is not present. Using the same\r\n * tag name as the function level but a different const name for readability only.\r\n */\nvar DynAllowInstChkTag = DynInstChkTag;\n/**\r\n * The global (imported) instances where the global performance options are stored\r\n */\nvar DynProtoDefaultOptions = '_dfOpts';\n/**\r\n * Value used as the name of a class when it cannot be determined\r\n * @ignore\r\n */\nvar UnknownValue = '_unknown_';\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\nvar str__Proto = \"__proto__\";\n/**\r\n * The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist\r\n */\nvar DynProtoBaseProto = \"_dyn\" + str__Proto;\n/**\r\n * Runtime Global holder for dynamicProto settings\r\n */\nvar DynProtoGlobalSettings = \"__dynProto$Gbl\";\n/**\r\n * Track the current prototype for IE8 as you can't look back to get the prototype\r\n */\nvar DynProtoCurrent = \"_dynInstProto\";\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\nvar strUseBaseInst = 'useBaseInst';\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\nvar strSetInstFuncs = 'setInstFuncs';\nvar Obj = Object;\n/**\r\n * Pre-lookup to check if we are running on a modern browser (i.e. not IE8)\r\n * @ignore\r\n */\nvar _objGetPrototypeOf = Obj[\"getPrototypeOf\"];\n/**\r\n * Pre-lookup to check for the existence of this function\r\n */\nvar _objGetOwnProps = Obj[\"getOwnPropertyNames\"];\n// Since 1.1.7 moving these to the runtime global to work around mixed version and module issues\n// See Issue https://github.com/microsoft/DynamicProto-JS/issues/57 for details\nvar _gbl = getGlobal();\nvar _gblInst = _gbl[DynProtoGlobalSettings] || (_gbl[DynProtoGlobalSettings] = {\n o: (_a = {}, _a[strSetInstFuncs] = true, _a[strUseBaseInst] = true, _a),\n n: 1000 // Start new global index @ 1000 so we \"fix\" some cases when mixed with 1.1.6 or earlier\n});\n/**\r\n * Helper used to check whether the target is an Object prototype or Array prototype\r\n * @ignore\r\n */\nfunction _isObjectOrArrayPrototype(target) {\n return target && (target === Obj[Prototype] || target === Array[Prototype]);\n}\n/**\r\n * Helper used to check whether the target is an Object prototype, Array prototype or Function prototype\r\n * @ignore\r\n */\nfunction _isObjectArrayOrFunctionPrototype(target) {\n return _isObjectOrArrayPrototype(target) || target === Function[Prototype];\n}\n/**\r\n * Helper used to get the prototype of the target object as getPrototypeOf is not available in an ES3 environment.\r\n * @ignore\r\n */\nfunction _getObjProto(target) {\n var newProto;\n if (target) {\n // This method doesn't exist in older browsers (e.g. IE8)\n if (_objGetPrototypeOf) {\n return _objGetPrototypeOf(target);\n }\n var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);\n // Using the pre-calculated value as IE8 doesn't support looking up the prototype of a prototype and thus fails for more than 1 base class\n newProto = target[DynProtoBaseProto] || curProto;\n if (!objHasOwnProperty(target, DynProtoBaseProto)) {\n // As this prototype doesn't have this property then this is from an inherited class so newProto is the base to return so save it\n // so we can look it up value (which for a multiple hierarchy dynamicProto will be the base class)\n delete target[DynProtoCurrent]; // Delete any current value allocated to this instance so we pick up the value from prototype hierarchy\n newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];\n target[DynProtoCurrent] = curProto;\n }\n }\n return newProto;\n}\n/**\r\n * Helper to get the properties of an object, including none enumerable ones as functions on a prototype in ES6\r\n * are not enumerable.\r\n * @param target\r\n */\nfunction _forEachProp(target, func) {\n var props = [];\n if (_objGetOwnProps) {\n props = _objGetOwnProps(target);\n } else {\n for (var name_1 in target) {\n if (typeof name_1 === \"string\" && objHasOwnProperty(target, name_1)) {\n props.push(name_1);\n }\n }\n }\n if (props && props.length > 0) {\n for (var lp = 0; lp < props.length; lp++) {\n func(props[lp]);\n }\n }\n}\n/**\r\n * Helper function to check whether the provided function name is a potential candidate for dynamic\r\n * callback and prototype generation.\r\n * @param target The target object, may be a prototype or class object\r\n * @param funcName The function name\r\n * @param skipOwn Skips the check for own property\r\n * @ignore\r\n */\nfunction _isDynamicCandidate(target, funcName, skipOwn) {\n return funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || objHasOwnProperty(target, funcName)) && funcName !== str__Proto && funcName !== Prototype;\n}\n/**\r\n * Helper to throw a TypeError exception\r\n * @param message the message\r\n * @ignore\r\n */\nfunction _throwTypeError(message) {\n throwTypeError(\"DynamicProto: \" + message);\n}\n/**\r\n * Returns a collection of the instance functions that are defined directly on the thisTarget object, it does\r\n * not return any inherited functions\r\n * @param thisTarget The object to get the instance functions from\r\n * @ignore\r\n */\nfunction _getInstanceFuncs(thisTarget) {\n // Get the base proto\n var instFuncs = objCreate(null);\n // Save any existing instance functions\n _forEachProp(thisTarget, function (name) {\n // Don't include any dynamic prototype instances - as we only want the real functions\n if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {\n // Create an instance callback for passing the base function to the caller\n instFuncs[name] = thisTarget[name];\n }\n });\n return instFuncs;\n}\n/**\r\n * Returns whether the value is included in the array\r\n * @param values The array of values\r\n * @param value The value\r\n */\nfunction _hasVisited(values, value) {\n for (var lp = values.length - 1; lp >= 0; lp--) {\n if (values[lp] === value) {\n return true;\n }\n }\n return false;\n}\n/**\r\n * Returns an object that contains callback functions for all \"base/super\" functions, this is used to \"save\"\r\n * enabling calling super.xxx() functions without requiring that the base \"class\" has defined a prototype references\r\n * @param target The current instance\r\n * @ignore\r\n */\nfunction _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {\n function _instFuncProxy(target, funcHost, funcName) {\n var theFunc = funcHost[funcName];\n if (theFunc[DynProxyTag] && useBaseInst) {\n // grab and reuse the hosted looking function (if available) otherwise the original passed function\n var instFuncTable = target[DynInstFuncTable] || {};\n if (instFuncTable[DynAllowInstChkTag] !== false) {\n theFunc = (instFuncTable[funcHost[DynClassName]] || {})[funcName] || theFunc;\n }\n }\n return function () {\n // eslint-disable-next-line prefer-rest-params\n return theFunc.apply(target, arguments);\n };\n }\n // Start creating a new baseFuncs by creating proxies for the instance functions (as they may get replaced)\n var baseFuncs = objCreate(null);\n _forEachProp(instFuncs, function (name) {\n // Create an instance callback for passing the base function to the caller\n baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);\n });\n // Get the base prototype functions\n var baseProto = _getObjProto(classProto);\n var visited = [];\n // Don't include base object functions for Object, Array or Function\n while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {\n // look for prototype functions\n _forEachProp(baseProto, function (name) {\n // Don't include any dynamic prototype instances - as we only want the real functions\n // For IE 7/8 the prototype lookup doesn't provide the full chain so we need to bypass the \n // hasOwnProperty check we get all of the methods, main difference is that IE7/8 doesn't return\n // the Object prototype methods while bypassing the check\n if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {\n // Create an instance callback for passing the base function to the caller\n baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);\n }\n });\n // We need to find all possible functions that might be overloaded by walking the entire prototype chain\n // This avoids the caller from needing to check whether it's direct base class implements the function or not\n // by walking the entire chain it simplifies the usage and issues from upgrading any of the base classes.\n visited.push(baseProto);\n baseProto = _getObjProto(baseProto);\n }\n return baseFuncs;\n}\nfunction _getInstFunc(target, funcName, proto, currentDynProtoProxy) {\n var instFunc = null;\n // We need to check whether the class name is defined directly on this prototype otherwise\n // it will walk the proto chain and return any parent proto classname.\n if (target && objHasOwnProperty(proto, DynClassName)) {\n var instFuncTable = target[DynInstFuncTable] || objCreate(null);\n instFunc = (instFuncTable[proto[DynClassName]] || objCreate(null))[funcName];\n if (!instFunc) {\n // Avoid stack overflow from recursive calling the same function\n _throwTypeError(\"Missing [\" + funcName + \"] \" + strFunction);\n }\n // We have the instance function, lets check it we can speed up further calls\n // by adding the instance function back directly on the instance (avoiding the dynamic func lookup)\n if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {\n // If the instance already has an instance function we can't replace it\n var canAddInst = !objHasOwnProperty(target, funcName);\n // Get current prototype\n var objProto = _getObjProto(target);\n var visited = [];\n // Lookup the function starting at the top (instance level prototype) and traverse down, if the first matching function\n // if nothing is found or if the first hit is a dynamic proto instance then we can safely add an instance shortcut\n while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {\n var protoFunc = objProto[funcName];\n if (protoFunc) {\n canAddInst = protoFunc === currentDynProtoProxy;\n break;\n }\n // We need to find all possible initial functions to ensure that we don't bypass a valid override function\n visited.push(objProto);\n objProto = _getObjProto(objProto);\n }\n try {\n if (canAddInst) {\n // This instance doesn't have an instance func and the class hierarchy does have a higher level prototype version\n // so it's safe to directly assign for any subsequent calls (for better performance)\n target[funcName] = instFunc;\n }\n // Block further attempts to set the instance function for any\n instFunc[DynInstChkTag] = 1;\n } catch (e) {\n // Don't crash if the object is readonly or the runtime doesn't allow changing this\n // And set a flag so we don't try again for any function\n instFuncTable[DynAllowInstChkTag] = false;\n }\n }\n }\n return instFunc;\n}\nfunction _getProtoFunc(funcName, proto, currentDynProtoProxy) {\n var protoFunc = proto[funcName];\n // Check that the prototype function is not a self reference -- try to avoid stack overflow!\n if (protoFunc === currentDynProtoProxy) {\n // It is so lookup the base prototype\n protoFunc = _getObjProto(proto)[funcName];\n }\n if (typeof protoFunc !== strFunction) {\n _throwTypeError(\"[\" + funcName + \"] is not a \" + strFunction);\n }\n return protoFunc;\n}\n/**\r\n * Add the required dynamic prototype methods to the the class prototype\r\n * @param proto - The class prototype\r\n * @param className - The instance classname\r\n * @param target - The target instance\r\n * @param baseInstFuncs - The base instance functions\r\n * @param setInstanceFunc - Flag to allow prototype function to reset the instance function if one does not exist\r\n * @ignore\r\n */\nfunction _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {\n function _createDynamicPrototype(proto, funcName) {\n var dynProtoProxy = function () {\n // Use the instance or prototype function\n var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);\n // eslint-disable-next-line prefer-rest-params\n return instFunc.apply(this, arguments);\n };\n // Tag this function as a proxy to support replacing dynamic proxy elements (primary use case is for unit testing\n // via which can dynamically replace the prototype function reference)\n dynProtoProxy[DynProxyTag] = 1;\n return dynProtoProxy;\n }\n if (!_isObjectOrArrayPrototype(proto)) {\n var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);\n if (!_isObjectOrArrayPrototype(instFuncTable)) {\n var instFuncs_1 = instFuncTable[className] = instFuncTable[className] || objCreate(null); // fetch and assign if as it may not exist yet\n // Set whether we are allow to lookup instances, if someone has set to false then do not re-enable\n if (instFuncTable[DynAllowInstChkTag] !== false) {\n instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;\n }\n if (!_isObjectOrArrayPrototype(instFuncs_1)) {\n _forEachProp(target, function (name) {\n // Only add overridden functions\n if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {\n // Save the instance Function to the lookup table and remove it from the instance as it's not a dynamic proto function\n instFuncs_1[name] = target[name];\n delete target[name];\n // Add a dynamic proto if one doesn't exist or if a prototype function exists and it's not a dynamic one\n if (!objHasOwnProperty(proto, name) || proto[name] && !proto[name][DynProxyTag]) {\n proto[name] = _createDynamicPrototype(proto, name);\n }\n }\n });\n }\n }\n }\n}\n/**\r\n * Checks whether the passed prototype object appears to be correct by walking the prototype hierarchy of the instance\r\n * @param classProto The class prototype instance\r\n * @param thisTarget The current instance that will be checked whether the passed prototype instance is in the hierarchy\r\n * @ignore\r\n */\nfunction _checkPrototype(classProto, thisTarget) {\n // This method doesn't existing in older browsers (e.g. IE8)\n if (_objGetPrototypeOf) {\n // As this is primarily a coding time check, don't bother checking if running in IE8 or lower\n var visited = [];\n var thisProto = _getObjProto(thisTarget);\n while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {\n if (thisProto === classProto) {\n return true;\n }\n // This avoids the caller from needing to check whether it's direct base class implements the function or not\n // by walking the entire chain it simplifies the usage and issues from upgrading any of the base classes.\n visited.push(thisProto);\n thisProto = _getObjProto(thisProto);\n }\n return false;\n }\n // If objGetPrototypeOf doesn't exist then just assume everything is ok.\n return true;\n}\n/**\r\n * Gets the current prototype name using the ES6 name if available otherwise falling back to a use unknown as the name.\r\n * It's not critical for this to return a name, it's used to decorate the generated unique name for easier debugging only.\r\n * @param target\r\n * @param unknownValue\r\n * @ignore\r\n */\nfunction _getObjName(target, unknownValue) {\n if (objHasOwnProperty(target, Prototype)) {\n // Look like a prototype\n return target.name || unknownValue || UnknownValue;\n }\n return ((target || {})[Constructor] || {}).name || unknownValue || UnknownValue;\n}\n/**\r\n * Helper function when creating dynamic (inline) functions for classes, this helper performs the following tasks :-\r\n * - Saves references to all defined base class functions\r\n * - Calls the delegateFunc with the current target (this) and a base object reference that can be used to call all \"super\" functions.\r\n * - Will populate the class prototype for all overridden functions to support class extension that call the prototype instance.\r\n * Callers should use this helper when declaring all function within the constructor of a class, as mentioned above the delegateFunc is\r\n * passed both the target \"this\" and an object that can be used to call any base (super) functions, using this based object in place of\r\n * super.XXX() (which gets expanded to _super.prototype.XXX()) provides a better minification outcome and also ensures the correct \"this\"\r\n * context is maintained as TypeScript creates incorrect references using super.XXXX() for dynamically defined functions i.e. Functions\r\n * defined in the constructor or some other function (rather than declared as complete typescript functions).\r\n * ### Usage\r\n * ```typescript\r\n * import dynamicProto from \"@microsoft/dynamicproto-js\";\r\n * class ExampleClass extends BaseClass {\r\n * constructor() {\r\n * dynamicProto(ExampleClass, this, (_self, base) => {\r\n * // This will define a function that will be converted to a prototype function\r\n * _self.newFunc = () => {\r\n * // Access any \"this\" instance property\r\n * if (_self.someProperty) {\r\n * ...\r\n * }\r\n * }\r\n * // This will define a function that will be converted to a prototype function\r\n * _self.myFunction = () => {\r\n * // Access any \"this\" instance property\r\n * if (_self.someProperty) {\r\n * // Call the base version of the function that we are overriding\r\n * base.myFunction();\r\n * }\r\n * ...\r\n * }\r\n * _self.initialize = () => {\r\n * ...\r\n * }\r\n * // Warnings: While the following will work as _self is simply a reference to\r\n * // this, if anyone overrides myFunction() the overridden will be called first\r\n * // as the normal JavaScript method resolution will occur and the defined\r\n * // _self.initialize() function is actually gets removed from the instance and\r\n * // a proxy prototype version is created to reference the created method.\r\n * _self.initialize();\r\n * });\r\n * }\r\n * }\r\n * ```\r\n * @typeparam DPType This is the generic type of the class, used to keep intellisense valid\r\n * @typeparam DPCls The type that contains the prototype of the current class\r\n * @param theClass - This is the current class instance which contains the prototype for the current class\r\n * @param target - The current \"this\" (target) reference, when the class has been extended this.prototype will not be the 'theClass' value.\r\n * @param delegateFunc - The callback function (closure) that will create the dynamic function\r\n * @param options - Additional options to configure how the dynamic prototype operates\r\n */\nexport default function dynamicProto(theClass, target, delegateFunc, options) {\n // Make sure that the passed theClass argument looks correct\n if (!objHasOwnProperty(theClass, Prototype)) {\n _throwTypeError(\"theClass is an invalid class definition.\");\n }\n // Quick check to make sure that the passed theClass argument looks correct (this is a common copy/paste error)\n var classProto = theClass[Prototype];\n if (!_checkPrototype(classProto, target)) {\n _throwTypeError(\"[\" + _getObjName(theClass) + \"] not in hierarchy of [\" + _getObjName(target) + \"]\");\n }\n var className = null;\n if (objHasOwnProperty(classProto, DynClassName)) {\n // Only grab the class name if it's defined on this prototype (i.e. don't walk the prototype chain)\n className = classProto[DynClassName];\n } else {\n // As not all browser support name on the prototype creating a unique dynamic one if we have not already\n // assigned one, so we can use a simple string as the lookup rather than an object for the dynamic instance\n // function table lookup.\n className = DynClassNamePrefix + _getObjName(theClass, \"_\") + \"$\" + _gblInst.n;\n _gblInst.n++;\n classProto[DynClassName] = className;\n }\n var perfOptions = dynamicProto[DynProtoDefaultOptions];\n var useBaseInst = !!perfOptions[strUseBaseInst];\n if (useBaseInst && options && options[strUseBaseInst] !== undefined) {\n useBaseInst = !!options[strUseBaseInst];\n }\n // Get the current instance functions\n var instFuncs = _getInstanceFuncs(target);\n // Get all of the functions for any base instance (before they are potentially overridden)\n var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);\n // Execute the delegate passing in both the current target \"this\" and \"base\" function references\n // Note casting the same type as we don't actually have the base class here and this will provide some intellisense support\n delegateFunc(target, baseFuncs);\n // Don't allow setting instance functions for older IE instances\n var setInstanceFunc = !!_objGetPrototypeOf && !!perfOptions[strSetInstFuncs];\n if (setInstanceFunc && options) {\n setInstanceFunc = !!options[strSetInstFuncs];\n }\n // Populate the Prototype for any overridden instance functions\n _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);\n}\n/**\r\n * Exposes the default global options to allow global configuration, if the global values are disabled these will override\r\n * any passed values. This is primarily exposed to support unit-testing without the need for individual classes to expose\r\n * their internal usage of dynamic proto.\r\n */\ndynamicProto[DynProtoDefaultOptions] = _gblInst.o;\n","// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\nexport var strShimFunction = \"function\";\nexport var strShimObject = \"object\";\nexport var strShimUndefined = \"undefined\";\nexport var strShimPrototype = \"prototype\";\nexport var strDefault = \"default\";\nexport var ObjClass = Object;\nexport var ObjProto = ObjClass[strShimPrototype];\n","// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\nimport { getGlobal, objAssign, objCreate, objDefineProp, objHasOwnProperty, throwTypeError } from \"@nevware21/ts-utils\";\nimport { ObjClass, ObjProto, strDefault, strShimFunction, strShimPrototype } from \"./Constants\";\n// Most of these functions have been directly shamelessly \"lifted\" from the https://github.com/@microsoft/tslib and\n// modified to be ES5 compatible and applying several minification and tree-shaking techniques so that Application Insights\n// can successfully use TypeScript \"importHelpers\" which imports tslib during compilation but it will use these at runtime\n// Which is also why all of the functions have not been included as Application Insights currently doesn't use or require\n// them.\nexport var SymbolObj = (getGlobal() || {})[\"Symbol\"];\nexport var ReflectObj = (getGlobal() || {})[\"Reflect\"];\nexport var __hasReflect = !!ReflectObj;\nvar strDecorate = \"decorate\";\nvar strMetadata = \"metadata\";\nvar strGetOwnPropertySymbols = \"getOwnPropertySymbols\";\nvar strIterator = \"iterator\";\nvar strHasOwnProperty = \"hasOwnProperty\";\nexport var __objAssignFnImpl = function (t) {\n // tslint:disable-next-line: ban-comma-operator\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) {\n if (ObjProto[strHasOwnProperty].call(s, p)) {\n t[p] = s[p];\n }\n }\n }\n return t;\n};\nexport var __assignFn = objAssign || __objAssignFnImpl;\n// tslint:disable-next-line: only-arrow-functions\nvar extendStaticsFn = function (d, b) {\n extendStaticsFn = ObjClass[\"setPrototypeOf\"] ||\n // tslint:disable-next-line: only-arrow-functions\n {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } ||\n // tslint:disable-next-line: only-arrow-functions\n function (d, b) {\n for (var p in b) {\n if (b[strHasOwnProperty](p)) {\n d[p] = b[p];\n }\n }\n };\n return extendStaticsFn(d, b);\n};\nexport function __extendsFn(d, b) {\n if (typeof b !== strShimFunction && b !== null) {\n throwTypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n }\n extendStaticsFn(d, b);\n function __() {\n this.constructor = d;\n }\n // tslint:disable-next-line: ban-comma-operator\n d[strShimPrototype] = b === null ? objCreate(b) : (__[strShimPrototype] = b[strShimPrototype], new __());\n}\nexport function __restFn(s, e) {\n var t = {};\n for (var k in s) {\n if (objHasOwnProperty(s, k) && e.indexOf(k) < 0) {\n t[k] = s[k];\n }\n }\n if (s != null && typeof ObjClass[strGetOwnPropertySymbols] === strShimFunction) {\n for (var i = 0, p = ObjClass[strGetOwnPropertySymbols](s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && ObjProto[\"propertyIsEnumerable\"].call(s, p[i])) {\n t[p[i]] = s[p[i]];\n }\n }\n }\n return t;\n}\nexport function __decorateFn(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = ObjClass[\"getOwnPropertyDescriptor\"](target, key) : desc,\n d;\n if (__hasReflect && typeof ReflectObj[strDecorate] === strShimFunction) {\n r = ReflectObj[strDecorate](decorators, target, key, desc);\n } else {\n for (var i = decorators.length - 1; i >= 0; i--) {\n // eslint-disable-next-line no-cond-assign\n if (d = decorators[i]) {\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n }\n }\n // tslint:disable-next-line:ban-comma-operator\n return c > 3 && r && objDefineProp(target, key, r), r;\n}\nexport function __paramFn(paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n}\nexport function __metadataFn(metadataKey, metadataValue) {\n if (__hasReflect && ReflectObj[strMetadata] === strShimFunction) {\n return ReflectObj[strMetadata](metadataKey, metadataValue);\n }\n}\nexport function __exportStarFn(m, o) {\n for (var p in m) {\n if (p !== strDefault && !objHasOwnProperty(o, p)) {\n __createBindingFn(o, m, p);\n }\n }\n}\nexport function __createBindingFn(o, m, k, k2) {\n if (k2 === undefined) {\n k2 = k;\n }\n if (!!objDefineProp) {\n objDefineProp(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n } else {\n o[k2] = m[k];\n }\n}\nexport function __valuesFn(o) {\n var s = typeof SymbolObj === strShimFunction && SymbolObj[strIterator],\n m = s && o[s],\n i = 0;\n if (m) {\n return m.call(o);\n }\n if (o && typeof o.length === \"number\") {\n return {\n next: function () {\n if (o && i >= o.length) {\n o = void 0;\n }\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n }\n throwTypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nexport function __readFn(o, n) {\n var m = typeof SymbolObj === strShimFunction && o[SymbolObj[strIterator]];\n if (!m) {\n return o;\n }\n var i = m.call(o),\n r,\n ar = [],\n e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n // tslint:disable-next-line:no-conditional-assignment\n if (r && !r.done && (m = i[\"return\"])) {\n m.call(i);\n }\n } finally {\n if (e) {\n // eslint-disable-next-line no-unsafe-finally\n throw e.error;\n }\n }\n }\n return ar;\n}\n/** @deprecated */\nexport function __spreadArraysFn() {\n var theArgs = arguments;\n // Calculate new total size\n for (var s = 0, i = 0, il = theArgs.length; i < il; i++) {\n s += theArgs[i].length;\n }\n // Create new full array\n for (var r = Array(s), k = 0, i = 0; i < il; i++) {\n for (var a = theArgs[i], j = 0, jl = a.length; j < jl; j++, k++) {\n r[k] = a[j];\n }\n }\n return r;\n}\nexport function __spreadArrayFn(to, from) {\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) {\n to[j] = from[i];\n }\n return to;\n}\nexport function __makeTemplateObjectFn(cooked, raw) {\n if (objDefineProp) {\n objDefineProp(cooked, \"raw\", {\n value: raw\n });\n } else {\n cooked.raw = raw;\n }\n return cooked;\n}\nexport function __importStarFn(mod) {\n if (mod && mod.__esModule) {\n return mod;\n }\n var result = {};\n if (mod != null) {\n for (var k in mod) {\n if (k !== strDefault && Object.prototype.hasOwnProperty.call(mod, k)) {\n __createBindingFn(result, mod, k);\n }\n }\n }\n // Set default module\n if (!!objDefineProp) {\n objDefineProp(result, strDefault, {\n enumerable: true,\n value: mod\n });\n } else {\n result[strDefault] = mod;\n }\n return result;\n}\nexport function __importDefaultFn(mod) {\n return mod && mod.__esModule ? mod : {\n strDefault: mod\n };\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { createEnum, createTypeMap } from \"@nevware21/ts-utils\";\n/**\r\n * Create an enum style object which has both the key => value and value => key mappings\r\n * @param values - The values to populate on the new object\r\n * @returns\r\n */\nexport var createEnumStyle = createEnum;\n/**\r\n * Create a 2 index map that maps an enum's key and value to the defined map value, X[\"key\"] => mapValue and X[0] => mapValue.\r\n * Generic values\r\n * - E = the const enum type (typeof eRequestHeaders);\r\n * - V = Identifies the valid values for the keys, this should include both the enum numeric and string key of the type. The\r\n * resulting \"Value\" of each entry identifies the valid values withing the assignments.\r\n * @param values - The values to populate on the new object\r\n * @returns\r\n */\nexport var createValueMap = createTypeMap;\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// @skip-file-minify\n// ##############################################################\n// AUTO GENERATED FILE: This file is Auto Generated during build.\n// ##############################################################\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nexport var _DYN_TO_LOWER_CASE = \"toLowerCase\"; // Count: 9\nexport var _DYN_BLK_VAL = \"blkVal\"; // Count: 5\nexport var _DYN_LENGTH = \"length\"; // Count: 43\nexport var _DYN_RD_ONLY = \"rdOnly\"; // Count: 4\nexport var _DYN_NOTIFY = \"notify\"; // Count: 4\nexport var _DYN_WARN_TO_CONSOLE = \"warnToConsole\"; // Count: 4\nexport var _DYN_THROW_INTERNAL = \"throwInternal\"; // Count: 5\nexport var _DYN_SET_DF = \"setDf\"; // Count: 6\nexport var _DYN_WATCH = \"watch\"; // Count: 9\nexport var _DYN_LOGGER = \"logger\"; // Count: 21\nexport var _DYN_APPLY = \"apply\"; // Count: 7\nexport var _DYN_PUSH = \"push\"; // Count: 31\nexport var _DYN_SPLICE = \"splice\"; // Count: 8\nexport var _DYN_HDLR = \"hdlr\"; // Count: 6\nexport var _DYN_CANCEL = \"cancel\"; // Count: 5\nexport var _DYN_INITIALIZE = \"initialize\"; // Count: 4\nexport var _DYN_IDENTIFIER = \"identifier\"; // Count: 8\nexport var _DYN_IS_INITIALIZED = \"isInitialized\"; // Count: 10\nexport var _DYN_GET_PLUGIN = \"getPlugin\"; // Count: 6\nexport var _DYN_POLL_INTERNAL_LOGS = \"pollInternalLogs\"; // Count: 2\nexport var _DYN_NAME = \"name\"; // Count: 11\nexport var _DYN_TIME = \"time\"; // Count: 6\nexport var _DYN_PROCESS_NEXT = \"processNext\"; // Count: 15\nexport var _DYN_GET_PROCESS_TEL_CONT0 = \"getProcessTelContext\"; // Count: 2\nexport var _DYN_GET_NOTIFY_MGR = \"getNotifyMgr\"; // Count: 5\nexport var _DYN_ADD_NOTIFICATION_LIS1 = \"addNotificationListener\"; // Count: 4\nexport var _DYN_REMOVE_NOTIFICATION_2 = \"removeNotificationListener\"; // Count: 4\nexport var _DYN_ENABLED = \"enabled\"; // Count: 6\nexport var _DYN_STOP_POLLING_INTERNA3 = \"stopPollingInternalLogs\"; // Count: 2\nexport var _DYN_UNLOAD = \"unload\"; // Count: 9\nexport var _DYN_ON_COMPLETE = \"onComplete\"; // Count: 5\nexport var _DYN_VERSION = \"version\"; // Count: 6\nexport var _DYN_LOGGING_LEVEL_CONSOL4 = \"loggingLevelConsole\"; // Count: 2\nexport var _DYN_CREATE_NEW = \"createNew\"; // Count: 7\nexport var _DYN_TEARDOWN = \"teardown\"; // Count: 9\nexport var _DYN_MESSAGE_ID = \"messageId\"; // Count: 4\nexport var _DYN_MESSAGE = \"message\"; // Count: 6\nexport var _DYN_IS_ASYNC = \"isAsync\"; // Count: 6\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 10\nexport var _DYN__DO_TEARDOWN = \"_doTeardown\"; // Count: 4\nexport var _DYN_UPDATE = \"update\"; // Count: 6\nexport var _DYN_GET_NEXT = \"getNext\"; // Count: 12\nexport var _DYN_SET_NEXT_PLUGIN = \"setNextPlugin\"; // Count: 5\nexport var _DYN_USER_AGENT = \"userAgent\"; // Count: 5\nexport var _DYN_SPLIT = \"split\"; // Count: 6\nexport var _DYN_NODE_TYPE = \"nodeType\"; // Count: 3\nexport var _DYN_REPLACE = \"replace\"; // Count: 8\nexport var _DYN_LOG_INTERNAL_MESSAGE = \"logInternalMessage\"; // Count: 2\nexport var _DYN_TYPE = \"type\"; // Count: 14\nexport var _DYN_HANDLER = \"handler\"; // Count: 5\nexport var _DYN_IS_CHILD_EVT = \"isChildEvt\"; // Count: 3\nexport var _DYN_GET_CTX = \"getCtx\"; // Count: 6\nexport var _DYN_SET_CTX = \"setCtx\"; // Count: 10\nexport var _DYN_COMPLETE = \"complete\"; // Count: 3\nexport var _DYN_TRACE_ID = \"traceId\"; // Count: 5\nexport var _DYN_SPAN_ID = \"spanId\"; // Count: 5\nexport var _DYN_TRACE_FLAGS = \"traceFlags\"; // Count: 6\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrForEach, createCustomError, dumpObj } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH } from \"../__DynamicConstants\";\nvar aggregationErrorType;\n/**\r\n * Throws an Aggregation Error which includes all of the errors that led to this error occurring\r\n * @param message - The message describing the aggregation error (the sourceError details are added to this)\r\n * @param sourceErrors - An array of the errors that caused this situation\r\n */\nexport function throwAggregationError(message, sourceErrors) {\n if (!aggregationErrorType) {\n aggregationErrorType = createCustomError(\"AggregationError\", function (self, args) {\n if (args[_DYN_LENGTH /* @min:%2elength */] > 1) {\n // Save the provided errors\n self.errors = args[1];\n }\n });\n }\n var theMessage = message || \"One or more errors occurred.\";\n arrForEach(sourceErrors, function (srcError, idx) {\n theMessage += \"\\n\".concat(idx, \" > \").concat(dumpObj(srcError));\n });\n throw new aggregationErrorType(theMessage, sourceErrors || []);\n}\n","/*!\n * NevWare21 Solutions LLC - ts-async, 0.5.2\n * https://github.com/nevware21/ts-async\n * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.\n * Licensed under the MIT license.\n */\nimport { isPromiseLike, objDefineProperties, getDocument, createCachedValue, safe, getInst, dumpObj, arrSlice, objDefineProp, hasSymbol, getKnownSymbol, isFunction, throwTypeError, iterForOf, scheduleTimeout, isNode, getWindow, getGlobal, objDefine, objToString, isUndefined, isArray, arrForEach, isIterable, createCustomError, isNumber, scheduleIdleCallback, utcNow, getLength, isIterator, fnCall, arrIndexOf } from '@nevware21/ts-utils';\nvar STR_PROMISE = \"Promise\";\nvar DONE = \"done\";\nvar VALUE = \"value\";\nvar RETURN = \"return\";\nvar REJECTED = \"rejected\";\nfunction doAwaitResponse(value, cb) {\n return doAwait(value, function (value) {\n return cb ? cb({\n status: \"fulfilled\",\n rejected: false,\n value: value\n }) : value;\n }, function (reason) {\n return cb ? cb({\n status: REJECTED,\n rejected: true,\n reason: reason\n }) : reason;\n });\n}\nfunction doAwait(value, resolveFn, rejectFn, finallyFn) {\n var result = value;\n try {\n if (isPromiseLike(value)) {\n if (resolveFn || rejectFn) {\n result = value.then(resolveFn, rejectFn);\n }\n } else {\n try {\n if (resolveFn) {\n result = resolveFn(value);\n }\n } catch (err) {\n if (rejectFn) {\n result = rejectFn(err);\n } else {\n throw err;\n }\n }\n }\n } finally {\n if (finallyFn) {\n doFinally(result, finallyFn);\n }\n }\n return result;\n}\nfunction doFinally(value, finallyFn) {\n var result = value;\n if (finallyFn) {\n if (isPromiseLike(value)) {\n if (value.finally) {\n result = value.finally(finallyFn);\n } else {\n result = value.then(function (value) {\n finallyFn();\n return value;\n }, function (reason) {\n finallyFn();\n throw reason;\n });\n }\n } else {\n finallyFn();\n }\n }\n return result;\n}\nvar _debugState;\nvar _debugResult;\nvar _debugHandled;\nvar _promiseDebugEnabled = false;\nfunction _addDebugState$1(thePromise, stateFn, resultFn, handledFn) {\n _debugState = _debugState || {\n toString: function () {\n return \"[[PromiseState]]\";\n }\n };\n _debugResult = _debugResult || {\n toString: function () {\n return \"[[PromiseResult]]\";\n }\n };\n _debugHandled = _debugHandled || {\n toString: function () {\n return \"[[PromiseIsHandled]]\";\n }\n };\n var props = {};\n props[_debugState] = {\n get: stateFn\n };\n props[_debugResult] = {\n get: resultFn\n };\n props[_debugHandled] = {\n get: handledFn\n };\n objDefineProperties(thePromise, props);\n}\nfunction setPromiseDebugState(enabled, logger) {\n _promiseDebugEnabled = enabled;\n}\nvar STRING_STATES = [\"pending\", \"resolving\", \"resolved\", REJECTED];\nvar DISPATCH_EVENT = \"dispatchEvent\";\nvar _hasInitEvent;\nfunction _hasInitEventFn(doc) {\n var evt;\n if (doc && doc.createEvent) {\n evt = doc.createEvent(\"Event\");\n }\n return !!evt && evt.initEvent;\n}\nfunction emitEvent(target, evtName, populateEvent, useNewEvent) {\n var doc = getDocument();\n !_hasInitEvent && (_hasInitEvent = createCachedValue(!!safe(_hasInitEventFn, [doc]).v));\n var theEvt = _hasInitEvent.v ? doc.createEvent(\"Event\") : useNewEvent ? new Event(evtName) : {};\n populateEvent && populateEvent(theEvt);\n if (_hasInitEvent.v) {\n theEvt.initEvent(evtName, false, true);\n }\n if (theEvt && target[DISPATCH_EVENT]) {\n target[DISPATCH_EVENT](theEvt);\n } else {\n var handler = target[\"on\" + evtName];\n if (handler) {\n handler(theEvt);\n } else {\n var theConsole = getInst(\"console\");\n theConsole && (theConsole[\"error\"] || theConsole[\"log\"])(evtName, dumpObj(theEvt));\n }\n }\n}\nvar NODE_UNHANDLED_REJECTION = \"unhandledRejection\";\nvar UNHANDLED_REJECTION = NODE_UNHANDLED_REJECTION.toLowerCase();\nvar _currentPromiseId = [];\nvar _uniquePromiseId = 0;\nvar _unhandledRejectionTimeout = 10;\nvar _aggregationError;\nvar _hasPromiseRejectionEvent;\nfunction dumpFnObj(value) {\n if (isFunction(value)) {\n return value.toString();\n }\n return dumpObj(value);\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createAggregationError(values) {\n !_aggregationError && (_aggregationError = createCachedValue(safe(getInst, [\"AggregationError\"]).v || createCustomError(\"AggregationError\", function (self, args) {\n self.errors = args[0];\n })));\n return new _aggregationError.v(values);\n}\nfunction _createPromise(newPromise, processor, executor) {\n var additionalArgs = arrSlice(arguments, 3);\n var _state = 0;\n var _hasResolved = false;\n var _settledValue;\n var _queue = [];\n var _id = _uniquePromiseId++;\n var _parentId = _currentPromiseId.length > 0 ? _currentPromiseId[_currentPromiseId.length - 1] : undefined;\n var _handled = false;\n var _unHandledRejectionHandler = null;\n var _thePromise;\n function _then(onResolved, onRejected) {\n try {\n _currentPromiseId.push(_id);\n _handled = true;\n _unHandledRejectionHandler && _unHandledRejectionHandler.cancel();\n _unHandledRejectionHandler = null;\n var thenPromise = newPromise(function (resolve, reject) {\n _queue.push(function () {\n try {\n var handler = _state === 2 ? onResolved : onRejected;\n var value = isUndefined(handler) ? _settledValue : isFunction(handler) ? handler(_settledValue) : handler;\n if (isPromiseLike(value)) {\n value.then(resolve, reject);\n } else if (handler) {\n resolve(value);\n } else if (_state === 3) {\n reject(value);\n } else {\n resolve(value);\n }\n } catch (e) {\n reject(e);\n }\n });\n if (_hasResolved) {\n _processQueue();\n }\n }, additionalArgs);\n return thenPromise;\n } finally {\n _currentPromiseId.pop();\n }\n }\n function _catch(onRejected) {\n return _then(undefined, onRejected);\n }\n function _finally(onFinally) {\n var thenFinally = onFinally;\n var catchFinally = onFinally;\n if (isFunction(onFinally)) {\n thenFinally = function (value) {\n onFinally && onFinally();\n return value;\n };\n catchFinally = function (reason) {\n onFinally && onFinally();\n throw reason;\n };\n }\n return _then(thenFinally, catchFinally);\n }\n function _strState() {\n return STRING_STATES[_state];\n }\n function _processQueue() {\n if (_queue.length > 0) {\n var pending = _queue.slice();\n _queue = [];\n _handled = true;\n _unHandledRejectionHandler && _unHandledRejectionHandler.cancel();\n _unHandledRejectionHandler = null;\n processor(pending);\n }\n }\n function _createSettleIfFn(newState, allowState) {\n return function (theValue) {\n if (_state === allowState) {\n if (newState === 2 && isPromiseLike(theValue)) {\n _state = 1;\n theValue.then(_createSettleIfFn(2, 1), _createSettleIfFn(3, 1));\n return;\n }\n _state = newState;\n _hasResolved = true;\n _settledValue = theValue;\n _processQueue();\n if (!_handled && newState === 3 && !_unHandledRejectionHandler) {\n _unHandledRejectionHandler = scheduleTimeout(_notifyUnhandledRejection, _unhandledRejectionTimeout);\n }\n }\n };\n }\n function _notifyUnhandledRejection() {\n if (!_handled) {\n _handled = true;\n if (isNode()) {\n process.emit(NODE_UNHANDLED_REJECTION, _settledValue, _thePromise);\n } else {\n var gbl = getWindow() || getGlobal();\n !_hasPromiseRejectionEvent && (_hasPromiseRejectionEvent = createCachedValue(safe(getInst, [STR_PROMISE + \"RejectionEvent\"]).v));\n emitEvent(gbl, UNHANDLED_REJECTION, function (theEvt) {\n objDefine(theEvt, \"promise\", {\n g: function () {\n return _thePromise;\n }\n });\n theEvt.reason = _settledValue;\n return theEvt;\n }, !!_hasPromiseRejectionEvent.v);\n }\n }\n }\n _thePromise = {\n then: _then,\n \"catch\": _catch,\n finally: _finally\n };\n objDefineProp(_thePromise, \"state\", {\n get: _strState\n });\n if (_promiseDebugEnabled) {\n _addDebugState$1(_thePromise, _strState, function () {\n return objToString(_settledValue);\n }, function () {\n return _handled;\n });\n }\n if (hasSymbol()) {\n _thePromise[getKnownSymbol(11)] = \"IPromise\";\n }\n function _toString() {\n return \"IPromise\" + (_promiseDebugEnabled ? \"[\" + _id + (!isUndefined(_parentId) ? \":\" + _parentId : \"\") + \"]\" : \"\") + \" \" + _strState() + (_hasResolved ? \" - \" + dumpFnObj(_settledValue) : \"\") + \"\";\n }\n _thePromise.toString = _toString;\n (function _initialize() {\n if (!isFunction(executor)) {\n throwTypeError(STR_PROMISE + \": executor is not a function - \" + dumpFnObj(executor));\n }\n var _rejectFn = _createSettleIfFn(3, 0);\n try {\n executor.call(_thePromise, _createSettleIfFn(2, 0), _rejectFn);\n } catch (e) {\n _rejectFn(e);\n }\n })();\n return _thePromise;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createAllPromise(newPromise) {\n return function (input) {\n var additionalArgs = arrSlice(arguments, 1);\n return newPromise(function (resolve, reject) {\n try {\n var values_1 = [];\n var pending_1 = 1;\n iterForOf(input, function (item, idx) {\n if (item) {\n pending_1++;\n doAwait(item, function (value) {\n values_1[idx] = value;\n if (--pending_1 === 0) {\n resolve(values_1);\n }\n }, reject);\n }\n });\n pending_1--;\n if (pending_1 === 0) {\n resolve(values_1);\n }\n } catch (e) {\n reject(e);\n }\n }, additionalArgs);\n };\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createResolvedPromise(newPromise) {\n return function (value) {\n var additionalArgs = arrSlice(arguments, 1);\n if (isPromiseLike(value)) {\n return value;\n }\n return newPromise(function (resolve) {\n resolve(value);\n }, additionalArgs);\n };\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createRejectedPromise(newPromise) {\n return function (reason) {\n var additionalArgs = arrSlice(arguments, 1);\n return newPromise(function (_resolve, reject) {\n reject(reason);\n }, additionalArgs);\n };\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createAllSettledPromise(newPromise) {\n return createCachedValue(function (input) {\n var additionalArgs = arrSlice(arguments, 1);\n return newPromise(function (resolve, reject) {\n var values = [];\n var pending = 1;\n function processItem(item, idx) {\n pending++;\n doAwaitResponse(item, function (value) {\n if (value.rejected) {\n values[idx] = {\n status: REJECTED,\n reason: value.reason\n };\n } else {\n values[idx] = {\n status: \"fulfilled\",\n value: value.value\n };\n }\n if (--pending === 0) {\n resolve(values);\n }\n });\n }\n try {\n if (isArray(input)) {\n arrForEach(input, processItem);\n } else if (isIterable(input)) {\n iterForOf(input, processItem);\n } else {\n throwTypeError(\"Input is not an iterable\");\n }\n pending--;\n if (pending === 0) {\n resolve(values);\n }\n } catch (e) {\n reject(e);\n }\n }, additionalArgs);\n });\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createRacePromise(newPromise) {\n return createCachedValue(function (input) {\n var additionalArgs = arrSlice(arguments, 1);\n return newPromise(function (resolve, reject) {\n var isDone = false;\n function processItem(item) {\n doAwaitResponse(item, function (value) {\n if (!isDone) {\n isDone = true;\n if (value.rejected) {\n reject(value.reason);\n } else {\n resolve(value.value);\n }\n }\n });\n }\n try {\n if (isArray(input)) {\n arrForEach(input, processItem);\n } else if (isIterable(input)) {\n iterForOf(input, processItem);\n } else {\n throwTypeError(\"Input is not an iterable\");\n }\n } catch (e) {\n reject(e);\n }\n }, additionalArgs);\n });\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createAnyPromise(newPromise) {\n return createCachedValue(function (input) {\n var additionalArgs = arrSlice(arguments, 1);\n return newPromise(function (resolve, reject) {\n var theErros = [];\n var pending = 1;\n var isDone = false;\n function processItem(item, idx) {\n pending++;\n doAwaitResponse(item, function (value) {\n if (!value.rejected) {\n isDone = true;\n resolve(value.value);\n return;\n } else {\n theErros[idx] = value.reason;\n }\n if (--pending === 0 && !isDone) {\n reject(_createAggregationError(theErros));\n }\n });\n }\n try {\n if (isArray(input)) {\n arrForEach(input, processItem);\n } else if (isIterable(input)) {\n iterForOf(input, processItem);\n } else {\n throwTypeError(\"Input is not an iterable\");\n }\n pending--;\n if (pending === 0 && !isDone) {\n reject(_createAggregationError(theErros));\n }\n } catch (e) {\n reject(e);\n }\n }, additionalArgs);\n });\n}\nfunction syncItemProcessor(pending) {\n arrForEach(pending, function (fn) {\n try {\n fn();\n } catch (e) {}\n });\n}\nfunction timeoutItemProcessor(timeout) {\n var callbackTimeout = isNumber(timeout) ? timeout : 0;\n return function (pending) {\n scheduleTimeout(function () {\n syncItemProcessor(pending);\n }, callbackTimeout);\n };\n}\nfunction idleItemProcessor(timeout) {\n var options;\n if (timeout >= 0) {\n options = {\n timeout: +timeout\n };\n }\n return function (pending) {\n scheduleIdleCallback(function (deadline) {\n syncItemProcessor(pending);\n }, options);\n };\n}\nvar _allAsyncSettledCreator;\nvar _raceAsyncCreator;\nvar _anyAsyncCreator;\nfunction createAsyncPromise(executor, timeout) {\n return _createPromise(createAsyncPromise, timeoutItemProcessor(timeout), executor, timeout);\n}\nvar createAsyncAllPromise = /*#__PURE__*/_createAllPromise(createAsyncPromise);\nvar createAsyncResolvedPromise = /*#__PURE__*/_createResolvedPromise(createAsyncPromise);\nvar createAsyncRejectedPromise = /*#__PURE__*/_createRejectedPromise(createAsyncPromise);\nfunction createAsyncAllSettledPromise(input, timeout) {\n !_allAsyncSettledCreator && (_allAsyncSettledCreator = _createAllSettledPromise(createAsyncPromise));\n return _allAsyncSettledCreator.v(input, timeout);\n}\nfunction createAsyncRacePromise(values, timeout) {\n !_raceAsyncCreator && (_raceAsyncCreator = _createRacePromise(createAsyncPromise));\n return _raceAsyncCreator.v(values, timeout);\n}\nfunction createAsyncAnyPromise(values, timeout) {\n !_anyAsyncCreator && (_anyAsyncCreator = _createAnyPromise(createAsyncPromise));\n return _anyAsyncCreator.v(values, timeout);\n}\nvar _promiseCls;\nvar _allCreator;\nvar _allNativeSettledCreator;\nvar _raceNativeCreator;\nvar _anyNativeCreator;\n/*#__NO_SIDE_EFFECTS__*/\nfunction _createNativePromiseHelper(name, func) {\n !_promiseCls && (_promiseCls = createCachedValue(safe(getInst, [STR_PROMISE]).v || null));\n if (_promiseCls.v && _promiseCls.v[name]) {\n return createCachedValue(function (input, timeout) {\n return createNativePromise(function (resolve, reject) {\n _promiseCls.v[name](input).then(resolve, reject);\n });\n });\n }\n return func();\n}\nfunction createNativePromise(executor, timeout) {\n !_promiseCls && (_promiseCls = createCachedValue(safe(getInst, [STR_PROMISE]).v || null));\n var PrmCls = _promiseCls.v;\n if (!PrmCls) {\n return createAsyncPromise(executor);\n }\n if (!isFunction(executor)) {\n throwTypeError(STR_PROMISE + \": executor is not a function - \" + dumpObj(executor));\n }\n var _state = 0;\n function _strState() {\n return STRING_STATES[_state];\n }\n var thePromise = new PrmCls(function (resolve, reject) {\n function _resolve(value) {\n _state = 2;\n resolve(value);\n }\n function _reject(reason) {\n _state = 3;\n reject(reason);\n }\n executor(_resolve, _reject);\n });\n objDefineProp(thePromise, \"state\", {\n get: _strState\n });\n return thePromise;\n}\nfunction createNativeAllPromise(input, timeout) {\n !_allCreator && (_allCreator = _createNativePromiseHelper(\"all\", function () {\n return createCachedValue(_createAllPromise(createNativePromise));\n }));\n return _allCreator.v(input, timeout);\n}\nvar createNativeResolvedPromise = /*#__PURE__*/_createResolvedPromise(createNativePromise);\nvar createNativeRejectedPromise = /*#__PURE__*/_createRejectedPromise(createNativePromise);\nfunction createNativeAllSettledPromise(input, timeout) {\n !_allNativeSettledCreator && (_allNativeSettledCreator = _createNativePromiseHelper(\"allSettled\", function () {\n return _createAllSettledPromise(createNativePromise);\n }));\n return _allNativeSettledCreator.v(input, timeout);\n}\nfunction createNativeRacePromise(values, timeout) {\n !_raceNativeCreator && (_raceNativeCreator = _createNativePromiseHelper(\"race\", function () {\n return _createRacePromise(createNativePromise);\n }));\n return _raceNativeCreator.v(values, timeout);\n}\nfunction createNativeAnyPromise(values, timeout) {\n !_anyNativeCreator && (_anyNativeCreator = _createNativePromiseHelper(\"any\", function () {\n return _createAnyPromise(createNativePromise);\n }));\n return _anyNativeCreator.v(values, timeout);\n}\nvar _allSyncSettledCreator;\nvar _raceSyncCreator;\nvar _anySyncCreator;\nfunction createSyncPromise(executor) {\n return _createPromise(createSyncPromise, syncItemProcessor, executor);\n}\nvar createSyncAllPromise = /*#__PURE__*/_createAllPromise(createSyncPromise);\nvar createSyncResolvedPromise = /*#__PURE__*/_createResolvedPromise(createSyncPromise);\nvar createSyncRejectedPromise = /*#__PURE__*/_createRejectedPromise(createSyncPromise);\nfunction createSyncAllSettledPromise(input, timeout) {\n !_allSyncSettledCreator && (_allSyncSettledCreator = _createAllSettledPromise(createSyncPromise));\n return _allSyncSettledCreator.v(input, timeout);\n}\nfunction createSyncRacePromise(values, timeout) {\n !_raceSyncCreator && (_raceSyncCreator = _createRacePromise(createSyncPromise));\n return _raceSyncCreator.v(values, timeout);\n}\nfunction createSyncAnyPromise(values, timeout) {\n !_anySyncCreator && (_anySyncCreator = _createAnyPromise(createSyncPromise));\n return _anySyncCreator.v(values, timeout);\n}\nvar _defaultIdleTimeout;\nvar _allIdleSettledCreator;\nvar _raceIdleCreator;\nvar _anyIdleCreator;\nfunction setDefaultIdlePromiseTimeout(idleDeadline) {\n _defaultIdleTimeout = idleDeadline;\n}\nvar setDefaultIdleTimeout = setDefaultIdlePromiseTimeout;\nfunction createIdlePromise(executor, timeout) {\n var theTimeout = isUndefined(timeout) ? _defaultIdleTimeout : timeout;\n return _createPromise(createIdlePromise, idleItemProcessor(theTimeout), executor, theTimeout);\n}\nvar createIdleAllPromise = /*#__PURE__*/_createAllPromise(createIdlePromise);\nvar createIdleResolvedPromise = /*#__PURE__*/_createResolvedPromise(createIdlePromise);\nvar createIdleRejectedPromise = /*#__PURE__*/_createRejectedPromise(createIdlePromise);\nfunction createIdleAllSettledPromise(input, timeout) {\n !_allIdleSettledCreator && (_allIdleSettledCreator = _createAllSettledPromise(createIdlePromise));\n return _allIdleSettledCreator.v(input, timeout);\n}\nfunction createIdleRacePromise(values, timeout) {\n !_raceIdleCreator && (_raceIdleCreator = _createRacePromise(createIdlePromise));\n return _raceIdleCreator.v(values, timeout);\n}\nfunction createIdleAnyPromise(values, timeout) {\n !_anyIdleCreator && (_anyIdleCreator = _createAnyPromise(createIdlePromise));\n return _anyIdleCreator.v(values, timeout);\n}\nvar _promiseCreator;\nvar _allSettledCreator;\nvar _raceCreator;\nvar _anyCreator;\nfunction setCreatePromiseImpl(creator) {\n _promiseCreator = creator ? createCachedValue(creator) : null;\n}\nfunction createPromise(executor, timeout) {\n !_promiseCreator && (_promiseCreator = createCachedValue(createNativePromise));\n return _promiseCreator.v.call(this, executor, timeout);\n}\nvar createAllPromise = /*#__PURE__*/_createAllPromise(createPromise);\nvar createResolvedPromise = /*#__PURE__*/_createResolvedPromise(createPromise);\nvar createRejectedPromise = /*#__PURE__*/_createRejectedPromise(createPromise);\nfunction createAllSettledPromise(input, timeout) {\n !_allSettledCreator && (_allSettledCreator = _createAllSettledPromise(createPromise));\n return _allSettledCreator.v(input, timeout);\n}\nfunction createRacePromise(values, timeout) {\n !_raceCreator && (_raceCreator = _createRacePromise(createPromise));\n return _raceCreator.v(values, timeout);\n}\nfunction createAnyPromise(values, timeout) {\n !_anyCreator && (_anyCreator = _createAnyPromise(createPromise));\n return _anyCreator.v(values, timeout);\n}\nfunction createTimeoutPromise(timeout, resolveReject, message) {\n return createPromise(function (resolve, reject) {\n scheduleTimeout(function () {\n (resolveReject ? resolve : reject)(!isUndefined(message) ? message : \"Timeout of \" + timeout + \"ms exceeded\");\n }, timeout);\n });\n}\nfunction _doneChk(isDone, state, value, thisArg) {\n var result = isDone;\n state.res = value;\n if (!result) {\n if (state.isDone && isFunction(state.isDone)) {\n return doAwait(state.isDone.call(thisArg, state), function (done) {\n state.iter++;\n return !!done;\n });\n } else {\n result = !!state.isDone;\n }\n }\n state.iter++;\n return result;\n}\nfunction doWhileAsync(callbackFn, isDoneFn, thisArg) {\n var promise;\n var resolve;\n var reject = function (reason) {\n isDone = true;\n throw reason;\n };\n var isDone = false;\n var state = {\n st: utcNow(),\n iter: 0,\n isDone: isDoneFn || false\n };\n if (callbackFn) {\n var _createPromise_1 = function () {\n return createPromise(function (res, rej) {\n resolve = res;\n reject = rej;\n });\n };\n var _handleAsyncDone_1 = function (done) {\n isDone = !!done;\n if (!isDone) {\n _processNext_1();\n } else {\n resolve(state.res);\n }\n };\n var _processNext_1 = function () {\n while (!isDone) {\n try {\n var cbResult = callbackFn.call(thisArg, state);\n if (isPromiseLike(cbResult)) {\n promise = promise || _createPromise_1();\n doAwait(cbResult, function (res) {\n try {\n doAwait(_doneChk(isDone, state, res, thisArg), _handleAsyncDone_1, reject);\n } catch (e) {\n reject(e);\n }\n }, reject);\n return promise;\n } else {\n var dnRes = _doneChk(isDone, state, cbResult, thisArg);\n if (isPromiseLike(dnRes)) {\n promise = promise || _createPromise_1();\n doAwait(dnRes, _handleAsyncDone_1, reject);\n return promise;\n } else {\n isDone = !!dnRes;\n }\n }\n } catch (e) {\n reject(e);\n return promise;\n }\n }\n if (isDone && resolve) {\n resolve(state.res);\n }\n return promise || state.res;\n };\n return _processNext_1();\n }\n}\nfunction arrForEachAsync(theArray, callbackFn, thisArg) {\n if (theArray) {\n var len_1 = getLength(theArray);\n if (len_1) {\n var isDone = function (state) {\n if (state.iter >= len_1 || state.res === -1) {\n return true;\n }\n };\n return doWhileAsync(function (state) {\n var idx = state.iter;\n if (idx in theArray) {\n return callbackFn.call(thisArg || theArray, theArray[idx], idx, theArray);\n }\n }, isDone);\n }\n }\n}\nvar _iterSymbol;\nvar _iterAsyncSymbol;\nfunction iterForOfAsync(iter, callbackFn, thisArg) {\n var err;\n var iterResult;\n var theIter = iter;\n function onFailed(failed) {\n err = {\n e: failed\n };\n if (theIter.throw) {\n iterResult = null;\n theIter.throw(err);\n }\n throw failed;\n }\n function onFinally() {\n try {\n if (iterResult && !iterResult[DONE]) {\n theIter[RETURN] && theIter[RETURN](iterResult);\n }\n } finally {\n if (err) {\n throw err.e;\n }\n }\n }\n if (iter) {\n if (!isIterator(iter)) {\n !_iterAsyncSymbol && (_iterAsyncSymbol = createCachedValue(getKnownSymbol(0)));\n theIter = iter[_iterAsyncSymbol.v] ? iter[_iterAsyncSymbol.v]() : null;\n if (!theIter) {\n !_iterSymbol && (_iterSymbol = createCachedValue(getKnownSymbol(3)));\n theIter = iter[_iterSymbol.v] ? iter[_iterSymbol.v]() : null;\n }\n }\n if (theIter && isIterator(theIter)) {\n var result = void 0;\n try {\n result = doWhileAsync(function (state) {\n return doAwait(theIter.next(), function (res) {\n iterResult = res;\n if (!res[DONE]) {\n return fnCall(callbackFn, thisArg || theIter, iterResult[VALUE], state.iter, theIter);\n }\n }, function (reason) {\n state.isDone = true;\n onFailed(reason);\n });\n }, function (state) {\n if (!iterResult || iterResult[DONE] || state.res === -1) {\n onFinally();\n return true;\n }\n }, thisArg || theIter);\n if (isPromiseLike(result)) {\n result = doFinally(result.catch(onFailed), onFinally);\n }\n return result;\n } catch (failed) {\n onFailed(failed);\n } finally {\n if (result && !isPromiseLike(result)) {\n onFinally();\n }\n }\n }\n }\n}\nvar REJECT = \"reject\";\nvar REJECTED_ERROR = \"Rejected\";\nvar _schedulerId = 0;\nvar _debugName;\nvar _debugIntState;\nvar _customErrors = {};\nfunction _rejectDone() {}\nfunction _createError(type, evt, message) {\n !_customErrors[type] && (_customErrors[type] = createCustomError(type));\n var now = utcNow();\n return new _customErrors[type](\"Task [\".concat(evt.id, \"] \").concat(message || \"\", \"- \").concat(evt.st ? \"Running\" : \"Waiting\", \": \").concat(_calcTime(now, evt.st || evt.cr)));\n}\nfunction _calcTime(now, start) {\n return (now - start || \"0\") + \" ms\";\n}\nfunction _abortStaleTasks(taskQueue, staleTimeoutPeriod) {\n var now = utcNow();\n var expired = now - staleTimeoutPeriod;\n arrForEach(taskQueue, function (evt) {\n if (evt && !evt.rj && evt.st && evt.st < expired || !evt.st && evt.cr && evt.cr < expired) {\n evt && evt[REJECT](evt.rj || _createError(\"Aborted\", evt, \"Stale \"));\n }\n });\n}\nfunction _removeTask(queue, taskDetail) {\n var idx = arrIndexOf(queue, taskDetail);\n if (idx !== -1) {\n queue.splice(idx, 1);\n }\n}\nfunction _addDebugState(theScheduler, nameFn, stateFn) {\n _debugName = _debugName || {\n toString: function () {\n return \"[[SchedulerName]]\";\n }\n };\n _debugIntState = _debugIntState || {\n toString: function () {\n return \"[[SchedulerState]]\";\n }\n };\n objDefineProp(theScheduler, _debugName, {\n get: nameFn\n });\n objDefineProp(theScheduler, _debugIntState, {\n get: stateFn\n });\n}\nfunction createTaskScheduler(newPromise, name) {\n var _theTask;\n var _running = [];\n var _waiting = [];\n var _staleTimeoutPeriod = 600000;\n var _staleTimeoutCheckPeriod = _staleTimeoutPeriod / 10;\n var _taskCount = 0;\n var _schedulerName = (name ? name + \".\" : \"\") + _schedulerId++;\n var _blockedTimer;\n newPromise = newPromise || createPromise;\n var _startBlockedTimer = function () {\n var hasTasks = getLength(_running) + getLength(_waiting) > 0;\n if (_staleTimeoutPeriod > 0) {\n if (!_blockedTimer) {\n _blockedTimer = scheduleTimeout(function () {\n _abortStaleTasks(_running, _staleTimeoutPeriod);\n _abortStaleTasks(_waiting, _staleTimeoutPeriod);\n _blockedTimer && (_blockedTimer.enabled = getLength(_running) + getLength(_waiting) > 0);\n }, _staleTimeoutCheckPeriod);\n _blockedTimer.unref();\n }\n _blockedTimer && (_blockedTimer.enabled = hasTasks);\n }\n };\n var _queueTask = function (startAction, taskName, timeout) {\n var _a;\n var taskId = _schedulerName + \".\" + _taskCount++;\n if (taskName) {\n taskId += \"-(\" + taskName + \")\";\n }\n var newTask = (_a = {\n id: taskId,\n cr: utcNow(),\n to: timeout\n }, _a[REJECT] = function (reason) {\n newTask.rj = reason || _createError(REJECTED_ERROR, newTask);\n newTask[REJECT] = _rejectDone;\n }, _a);\n if (!_theTask) {\n newTask.p = newPromise(_runTask(newTask, startAction));\n } else {\n newTask.p = _waitForPreviousTask(newTask, _theTask, startAction);\n }\n _theTask = newTask;\n return newTask.p;\n };\n var _runTask = function (taskDetail, startAction) {\n taskDetail.st = utcNow();\n _running.push(taskDetail);\n _startBlockedTimer();\n return function (onTaskResolve, onTaskReject) {\n var _promiseReject = function (reason) {\n taskDetail.rj = taskDetail.rj || reason || _createError(REJECTED_ERROR, taskDetail);\n taskDetail[REJECT] = _rejectDone;\n _doCleanup(taskDetail);\n onTaskResolve = null;\n onTaskReject && onTaskReject(reason);\n onTaskReject = null;\n };\n var taskId = taskDetail.id;\n if (taskDetail.rj) {\n _promiseReject(taskDetail.rj);\n } else {\n taskDetail[REJECT] = _promiseReject;\n try {\n var startResult = startAction(taskId);\n if (taskDetail.to && isPromiseLike(startResult)) {\n taskDetail.t = scheduleTimeout(function () {\n _promiseReject(_createError(\"Timeout\", taskDetail));\n }, taskDetail.to);\n }\n doAwait(startResult, function (theResult) {\n _doCleanup(taskDetail);\n try {\n onTaskResolve && onTaskResolve(theResult);\n } catch (e) {\n onTaskReject && onTaskReject(e);\n }\n onTaskReject = null;\n onTaskResolve = null;\n }, _promiseReject);\n } catch (e) {\n _promiseReject(e);\n }\n }\n };\n };\n var _waitForPreviousTask = function (taskDetail, prevTask, startAction) {\n _waiting.push(taskDetail);\n _startBlockedTimer();\n return newPromise(function (onWaitResolve, onWaitReject) {\n doAwaitResponse(prevTask.p, function () {\n _removeTask(_waiting, taskDetail);\n _runTask(taskDetail, startAction)(onWaitResolve, onWaitReject);\n });\n });\n };\n var _doCleanup = function (taskDetail) {\n _removeTask(_running, taskDetail);\n taskDetail.t && taskDetail.t.cancel();\n taskDetail.t = null;\n if (_theTask && _theTask === taskDetail) {\n _theTask = null;\n if (getLength(_running) + getLength(_waiting) === 0) {\n _blockedTimer && _blockedTimer.cancel();\n _blockedTimer = null;\n }\n }\n };\n var theScheduler = {\n idle: true,\n queue: _queueTask,\n setStaleTimeout: function (staleTimeout, staleCheckPeriod) {\n _blockedTimer && _blockedTimer.cancel();\n _blockedTimer = null;\n _staleTimeoutPeriod = staleTimeout;\n _staleTimeoutCheckPeriod = staleCheckPeriod || staleTimeout / 10;\n _startBlockedTimer();\n }\n };\n objDefine(theScheduler, \"idle\", {\n g: function () {\n return getLength(_running) + getLength(_waiting) === 0;\n }\n });\n _addDebugState(theScheduler, function () {\n return _schedulerName;\n }, function () {\n return {\n l: _theTask,\n r: _running,\n w: _waiting\n };\n });\n return theScheduler;\n}\nvar toStringTagSymbol = getKnownSymbol(11);\nvar PolyPromise = /*#__PURE__*/function () {\n function PolyPromiseImpl(executor) {\n this._$ = createAsyncPromise(executor);\n if (toStringTagSymbol) {\n this[toStringTagSymbol] = \"Promise\";\n }\n objDefineProp(this, \"state\", {\n get: function () {\n return this._$.state;\n }\n });\n }\n PolyPromiseImpl.all = createAsyncAllPromise;\n PolyPromiseImpl.race = createAsyncRacePromise;\n PolyPromiseImpl.any = createAsyncAnyPromise;\n PolyPromiseImpl.reject = createAsyncRejectedPromise;\n PolyPromiseImpl.resolve = createAsyncResolvedPromise;\n PolyPromiseImpl.allSettled = createAsyncAllSettledPromise;\n var theProto = PolyPromiseImpl.prototype;\n theProto.then = function (onResolved, onRejected) {\n return this._$.then(onResolved, onRejected);\n };\n theProto.catch = function (onRejected) {\n return this._$.catch(onRejected);\n };\n theProto.finally = function (onfinally) {\n return this._$.finally(onfinally);\n };\n return PolyPromiseImpl;\n}();\nexport { PolyPromise, arrForEachAsync, createAllPromise, createAllSettledPromise, createAnyPromise, createAsyncAllPromise, createAsyncAllSettledPromise, createAsyncAnyPromise, createAsyncPromise, createAsyncRacePromise, createAsyncRejectedPromise, createAsyncResolvedPromise, createIdleAllPromise, createIdleAllSettledPromise, createIdleAnyPromise, createIdlePromise, createIdleRacePromise, createIdleRejectedPromise, createIdleResolvedPromise, createNativeAllPromise, createNativeAllSettledPromise, createNativeAnyPromise, createNativePromise, createNativeRacePromise, createNativeRejectedPromise, createNativeResolvedPromise, createPromise, createRacePromise, createRejectedPromise, createResolvedPromise, createSyncAllPromise, createSyncAllSettledPromise, createSyncAnyPromise, createSyncPromise, createSyncRacePromise, createSyncRejectedPromise, createSyncResolvedPromise, createTaskScheduler, createTimeoutPromise, doAwait, doAwaitResponse, doFinally, doWhileAsync, iterForOfAsync, setCreatePromiseImpl, setDefaultIdlePromiseTimeout, setDefaultIdleTimeout, setPromiseDebugState };\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// ###################################################################################################################################################\n// Note: DON'T Export these const from the package as we are still targeting IE/ES5 this will export a mutable variables that someone could change ###\n// ###################################################################################################################################################\nexport var UNDEFINED_VALUE = undefined;\nexport var STR_EMPTY = \"\";\nexport var STR_CHANNELS = \"channels\";\nexport var STR_CORE = \"core\";\nexport var STR_CREATE_PERF_MGR = \"createPerfMgr\";\nexport var STR_DISABLED = \"disabled\";\nexport var STR_EXTENSION_CONFIG = \"extensionConfig\";\nexport var STR_EXTENSIONS = \"extensions\";\nexport var STR_PROCESS_TELEMETRY = \"processTelemetry\";\nexport var STR_PRIORITY = \"priority\";\nexport var STR_EVENTS_SENT = \"eventsSent\";\nexport var STR_EVENTS_DISCARDED = \"eventsDiscarded\";\nexport var STR_EVENTS_SEND_REQUEST = \"eventsSendRequest\";\nexport var STR_PERF_EVENT = \"perfEvent\";\nexport var STR_GET_PERF_MGR = \"getPerfMgr\";\nexport var STR_DOMAIN = \"domain\";\nexport var STR_PATH = \"path\";\nexport var STR_NOT_DYNAMIC_ERROR = \"Not dynamic - \";\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { ObjAssign, ObjClass } from \"@microsoft/applicationinsights-shims\";\nimport { arrForEach, asString as asString21, isArray, isBoolean, isError, isFunction, isNullOrUndefined, isObject, isPlainObject, isString, isUndefined, objDeepFreeze, objDefine, objForEachKey, objHasOwn, strIndexOf } from \"@nevware21/ts-utils\";\nimport { _DYN_APPLY, _DYN_LENGTH, _DYN_NAME, _DYN_REPLACE } from \"../__DynamicConstants\";\nimport { STR_EMPTY } from \"./InternalConstants\";\n// RESTRICT and AVOID circular dependencies you should not import other contained modules or export the contents of this file directly\n// Added to help with minification\nvar strGetPrototypeOf = \"getPrototypeOf\";\nvar rCamelCase = /-([a-z])/g;\nvar rNormalizeInvalid = /([^\\w\\d_$])/g;\nvar rLeadingNumeric = /^(\\d+[\\w\\d_$])/;\nexport var _getObjProto = Object[strGetPrototypeOf];\nexport function isNotUndefined(value) {\n return !isUndefined(value);\n}\nexport function isNotNullOrUndefined(value) {\n return !isNullOrUndefined(value);\n}\n/**\r\n * Validates that the string name conforms to the JS IdentifierName specification and if not\r\n * normalizes the name so that it would. This method does not identify or change any keywords\r\n * meaning that if you pass in a known keyword the same value will be returned.\r\n * This is a simplified version\r\n * @param name - The name to validate\r\n */\nexport function normalizeJsName(name) {\n var value = name;\n if (value && isString(value)) {\n // CamelCase everything after the \"-\" and remove the dash\n value = value[_DYN_REPLACE /* @min:%2ereplace */](rCamelCase, function (_all, letter) {\n return letter.toUpperCase();\n });\n value = value[_DYN_REPLACE /* @min:%2ereplace */](rNormalizeInvalid, \"_\");\n value = value[_DYN_REPLACE /* @min:%2ereplace */](rLeadingNumeric, function (_all, match) {\n return \"_\" + match;\n });\n }\n return value;\n}\n/**\r\n * A simple wrapper (for minification support) to check if the value contains the search string.\r\n * @param value - The string value to check for the existence of the search value\r\n * @param search - The value search within the value\r\n */\nexport function strContains(value, search) {\n if (value && search) {\n return strIndexOf(value, search) !== -1;\n }\n return false;\n}\n/**\r\n * Convert a date to I.S.O. format in IE8\r\n */\nexport function toISOString(date) {\n return date && date.toISOString() || \"\";\n}\nexport var deepFreeze = objDeepFreeze;\n/**\r\n * Returns the name of object if it's an Error. Otherwise, returns empty string.\r\n */\nexport function getExceptionName(object) {\n if (isError(object)) {\n return object[_DYN_NAME /* @min:%2ename */];\n }\n return STR_EMPTY;\n}\n/**\r\n * Sets the provided value on the target instance using the field name when the provided chk function returns true, the chk\r\n * function will only be called if the new value is no equal to the original value.\r\n * @param target - The target object\r\n * @param field - The key of the target\r\n * @param value - The value to set\r\n * @param valChk - [Optional] Callback to check the value that if supplied will be called check if the new value can be set\r\n * @param srcChk - [Optional] Callback to check to original value that if supplied will be called if the new value should be set (if allowed)\r\n * @returns The existing or new value, depending what was set\r\n */\nexport function setValue(target, field, value, valChk, srcChk) {\n var theValue = value;\n if (target) {\n theValue = target[field];\n if (theValue !== value && (!srcChk || srcChk(theValue)) && (!valChk || valChk(value))) {\n theValue = value;\n target[field] = theValue;\n }\n }\n return theValue;\n}\n/**\r\n * Returns the current value from the target object if not null or undefined otherwise sets the new value and returns it\r\n * @param target - The target object to return or set the default value\r\n * @param field - The key for the field to set on the target\r\n * @param defValue - [Optional] The value to set if not already present, when not provided a empty object will be added\r\n */\nexport function getSetValue(target, field, defValue) {\n var theValue;\n if (target) {\n theValue = target[field];\n if (!theValue && isNullOrUndefined(theValue)) {\n // Supports having the default as null\n theValue = !isUndefined(defValue) ? defValue : {};\n target[field] = theValue;\n }\n } else {\n // Expanded for performance so we only check defValue if required\n theValue = !isUndefined(defValue) ? defValue : {};\n }\n return theValue;\n}\nfunction _createProxyFunction(source, funcName) {\n var srcFunc = null;\n var src = null;\n if (isFunction(source)) {\n srcFunc = source;\n } else {\n src = source;\n }\n return function () {\n // Capture the original arguments passed to the method\n var originalArguments = arguments;\n if (srcFunc) {\n src = srcFunc();\n }\n if (src) {\n return src[funcName][_DYN_APPLY /* @min:%2eapply */](src, originalArguments);\n }\n };\n}\n/**\r\n * Effectively assigns all enumerable properties (not just own properties) and functions (including inherited prototype) from\r\n * the source object to the target, it attempts to use proxy getters / setters (if possible) and proxy functions to avoid potential\r\n * implementation issues by assigning prototype functions as instance ones\r\n *\r\n * This method is the primary method used to \"update\" the snippet proxy with the ultimate implementations.\r\n *\r\n * Special ES3 Notes:\r\n * Updates (setting) of direct property values on the target or indirectly on the source object WILL NOT WORK PROPERLY, updates to the\r\n * properties of \"referenced\" object will work (target.context.newValue = 10 => will be reflected in the source.context as it's the\r\n * same object). ES3 Failures: assigning target.myProp = 3 -> Won't change source.myProp = 3, likewise the reverse would also fail.\r\n * @param target - The target object to be assigned with the source properties and functions\r\n * @param source - The source object which will be assigned / called by setting / calling the targets proxies\r\n * @param chkSet - An optional callback to determine whether a specific property/function should be proxied\r\n */\nexport function proxyAssign(target, source, chkSet) {\n if (target && source && isObject(target) && isObject(source)) {\n var _loop_1 = function (field) {\n if (isString(field)) {\n var value = source[field];\n if (isFunction(value)) {\n if (!chkSet || chkSet(field, true, source, target)) {\n // Create a proxy function rather than just copying the (possible) prototype to the new object as an instance function\n target[field] = _createProxyFunction(source, field);\n }\n } else if (!chkSet || chkSet(field, false, source, target)) {\n if (objHasOwn(target, field)) {\n // Remove any previous instance property\n delete target[field];\n }\n objDefine(target, field, {\n g: function () {\n return source[field];\n },\n s: function (theValue) {\n source[field] = theValue;\n }\n });\n }\n }\n };\n // effectively apply/proxy full source to the target instance\n for (var field in source) {\n _loop_1(field);\n }\n }\n return target;\n}\n/**\r\n * Creates a proxy function on the target which internally will call the source version with all arguments passed to the target method.\r\n *\r\n * @param target - The target object to be assigned with the source properties and functions\r\n * @param name - The function name that will be added on the target\r\n * @param source - The source object which will be assigned / called by setting / calling the targets proxies\r\n * @param theFunc - The function name on the source that will be proxied on the target\r\n * @param overwriteTarget - If `false` this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name\r\n */\nexport function proxyFunctionAs(target, name, source, theFunc, overwriteTarget) {\n if (target && name && source) {\n if (overwriteTarget !== false || isUndefined(target[name])) {\n target[name] = _createProxyFunction(source, theFunc);\n }\n }\n}\n/**\r\n * Creates proxy functions on the target which internally will call the source version with all arguments passed to the target method.\r\n *\r\n * @param target - The target object to be assigned with the source properties and functions\r\n * @param source - The source object which will be assigned / called by setting / calling the targets proxies\r\n * @param functionsToProxy - An array of function names that will be proxied on the target\r\n * @param overwriteTarget - If false this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name\r\n */\nexport function proxyFunctions(target, source, functionsToProxy, overwriteTarget) {\n if (target && source && isObject(target) && isArray(functionsToProxy)) {\n arrForEach(functionsToProxy, function (theFuncName) {\n if (isString(theFuncName)) {\n proxyFunctionAs(target, theFuncName, source, theFuncName, overwriteTarget);\n }\n });\n }\n return target;\n}\n/**\r\n * Simpler helper to create a dynamic class that implements the interface and populates the values with the defaults.\r\n * Only instance properties (hasOwnProperty) values are copied from the defaults to the new instance\r\n * @param defaults - Simple helper\r\n */\nexport function createClassFromInterface(defaults) {\n return /** @class */function () {\n function class_1() {\n var _this = this;\n if (defaults) {\n objForEachKey(defaults, function (field, value) {\n _this[field] = value;\n });\n }\n }\n return class_1;\n }();\n}\n/**\r\n * A helper function to assist with JIT performance for objects that have properties added / removed dynamically\r\n * this is primarily for chromium based browsers and has limited effects on Firefox and none of IE. Only call this\r\n * function after you have finished \"updating\" the object, calling this within loops reduces or defeats the benefits.\r\n * This helps when iterating using for..in, objKeys() and objForEach()\r\n * @param theObject - The object to be optimized if possible\r\n */\nexport function optimizeObject(theObject) {\n // V8 Optimization to cause the JIT compiler to create a new optimized object for looking up the own properties\n // primarily for object with <= 19 properties for >= 20 the effect is reduced or non-existent\n if (theObject && ObjAssign) {\n theObject = ObjClass(ObjAssign({}, theObject));\n }\n return theObject;\n}\nexport function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {\n // Variables\n var theArgs = arguments;\n var extended = theArgs[0] || {};\n var argLen = theArgs[_DYN_LENGTH /* @min:%2elength */];\n var deep = false;\n var idx = 1;\n // Check for \"Deep\" flag\n if (argLen > 0 && isBoolean(extended)) {\n deep = extended;\n extended = theArgs[idx] || {};\n idx++;\n }\n // Handle case when target is a string or something (possible in deep copy)\n if (!isObject(extended)) {\n extended = {};\n }\n // Loop through each remaining object and conduct a merge\n for (; idx < argLen; idx++) {\n var arg = theArgs[idx];\n var isArgArray = isArray(arg);\n var isArgObj = isObject(arg);\n for (var prop in arg) {\n var propOk = isArgArray && prop in arg || isArgObj && objHasOwn(arg, prop);\n if (!propOk) {\n continue;\n }\n var newValue = arg[prop];\n var isNewArray = void 0;\n // If deep merge and property is an object, merge properties\n if (deep && newValue && ((isNewArray = isArray(newValue)) || isPlainObject(newValue))) {\n // Grab the current value of the extended object\n var clone = extended[prop];\n if (isNewArray) {\n if (!isArray(clone)) {\n // We can't \"merge\" an array with a non-array so overwrite the original\n clone = [];\n }\n } else if (!isPlainObject(clone)) {\n // We can't \"merge\" an object with a non-object\n clone = {};\n }\n // Never move the original objects always clone them\n newValue = objExtend(deep, clone, newValue);\n }\n // Assign the new (or previous) value (unless undefined)\n if (newValue !== undefined) {\n extended[prop] = newValue;\n }\n }\n }\n return extended;\n}\nexport var asString = asString21;\nexport function isFeatureEnabled(feature, cfg) {\n var rlt = false;\n var ft = cfg && cfg.featureOptIn && cfg.featureOptIn[feature];\n if (feature && ft) {\n var mode = ft.mode;\n // NOTE: None will be considered as true\n rlt = mode == 3 /* FeatureOptInMode.enable */ || mode == 1 /* FeatureOptInMode.none */;\n }\n return rlt;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nimport { getGlobal, strShimObject, strShimPrototype, strShimUndefined } from \"@microsoft/applicationinsights-shims\";\nimport { getDocument, getInst, getNavigator, getPerformance, hasNavigator, isFunction, isString, isUndefined, strIndexOf } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH, _DYN_NAME, _DYN_SPLIT, _DYN_TO_LOWER_CASE, _DYN_USER_AGENT } from \"../__DynamicConstants\";\nimport { strContains } from \"./HelperFuncs\";\nimport { STR_EMPTY } from \"./InternalConstants\";\n/**\r\n * This file exists to hold environment utilities that are required to check and\r\n * validate the current operating environment. Unless otherwise required, please\r\n * only use defined methods (functions) in this class so that users of these\r\n * functions/properties only need to include those that are used within their own modules.\r\n */\nvar strDocumentMode = \"documentMode\";\nvar strLocation = \"location\";\nvar strConsole = \"console\";\nvar strJSON = \"JSON\";\nvar strCrypto = \"crypto\";\nvar strMsCrypto = \"msCrypto\";\nvar strReactNative = \"ReactNative\";\nvar strMsie = \"msie\";\nvar strTrident = \"trident/\";\nvar strXMLHttpRequest = \"XMLHttpRequest\";\nvar _isTrident = null;\nvar _navUserAgentCheck = null;\nvar _enableMocks = false;\nvar _useXDomainRequest = null;\nvar _beaconsSupported = null;\nfunction _hasProperty(theClass, property) {\n var supported = false;\n if (theClass) {\n try {\n supported = property in theClass;\n if (!supported) {\n var proto = theClass[strShimPrototype];\n if (proto) {\n supported = property in proto;\n }\n }\n } catch (e) {\n // Do Nothing\n }\n if (!supported) {\n try {\n var tmp = new theClass();\n supported = !isUndefined(tmp[property]);\n } catch (e) {\n // Do Nothing\n }\n }\n }\n return supported;\n}\n/**\r\n * Enable the lookup of test mock objects if requested\r\n * @param enabled\r\n */\nexport function setEnableEnvMocks(enabled) {\n _enableMocks = enabled;\n}\n/**\r\n * Returns the global location object if it is present otherwise null.\r\n * This helper is used to access the location object without causing an exception\r\n * \"Uncaught ReferenceError: location is not defined\"\r\n */\nexport function getLocation(checkForMock) {\n if (checkForMock && _enableMocks) {\n var mockLocation = getInst(\"__mockLocation\");\n if (mockLocation) {\n return mockLocation;\n }\n }\n if (typeof location === strShimObject && location) {\n return location;\n }\n return getInst(strLocation);\n}\n/**\r\n * Returns the global console object\r\n */\nexport function getConsole() {\n if (typeof console !== strShimUndefined) {\n return console;\n }\n return getInst(strConsole);\n}\n/**\r\n * Checks if JSON object is available, this is required as we support the API running without a\r\n * window /document (eg. Node server, electron webworkers) and if we attempt to assign a history\r\n * object to a local variable or pass as an argument an \"Uncaught ReferenceError: JSON is not defined\"\r\n * exception will be thrown.\r\n * Defined as a function to support lazy / late binding environments.\r\n */\nexport function hasJSON() {\n return Boolean(typeof JSON === strShimObject && JSON || getInst(strJSON) !== null);\n}\n/**\r\n * Returns the global JSON object if it is present otherwise null.\r\n * This helper is used to access the JSON object without causing an exception\r\n * \"Uncaught ReferenceError: JSON is not defined\"\r\n */\nexport function getJSON() {\n if (hasJSON()) {\n return JSON || getInst(strJSON);\n }\n return null;\n}\n/**\r\n * Returns the crypto object if it is present otherwise null.\r\n * This helper is used to access the crypto object from the current\r\n * global instance which could be window or globalThis for a web worker\r\n */\nexport function getCrypto() {\n return getInst(strCrypto);\n}\n/**\r\n * Returns the crypto object if it is present otherwise null.\r\n * This helper is used to access the crypto object from the current\r\n * global instance which could be window or globalThis for a web worker\r\n */\nexport function getMsCrypto() {\n return getInst(strMsCrypto);\n}\n/**\r\n * Returns whether the environment is reporting that we are running in a React Native Environment\r\n */\nexport function isReactNative() {\n // If running in React Native, navigator.product will be populated\n var nav = getNavigator();\n if (nav && nav.product) {\n return nav.product === strReactNative;\n }\n return false;\n}\n/**\r\n * Identifies whether the current environment appears to be IE\r\n */\nexport function isIE() {\n var nav = getNavigator();\n if (nav && (nav[_DYN_USER_AGENT /* @min:%2euserAgent */] !== _navUserAgentCheck || _isTrident === null)) {\n // Added to support test mocking of the user agent\n _navUserAgentCheck = nav[_DYN_USER_AGENT /* @min:%2euserAgent */];\n var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n _isTrident = strContains(userAgent, strMsie) || strContains(userAgent, strTrident);\n }\n return _isTrident;\n}\n/**\r\n * Gets IE version returning the document emulation mode if we are running on IE, or null otherwise\r\n */\nexport function getIEVersion(userAgentStr) {\n if (userAgentStr === void 0) {\n userAgentStr = null;\n }\n if (!userAgentStr) {\n var navigator_1 = getNavigator() || {};\n userAgentStr = navigator_1 ? (navigator_1.userAgent || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]() : STR_EMPTY;\n }\n var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n // Also check for documentMode in case X-UA-Compatible meta tag was included in HTML.\n if (strContains(ua, strMsie)) {\n var doc = getDocument() || {};\n return Math.max(parseInt(ua[_DYN_SPLIT /* @min:%2esplit */](strMsie)[1]), doc[strDocumentMode] || 0);\n } else if (strContains(ua, strTrident)) {\n var tridentVer = parseInt(ua[_DYN_SPLIT /* @min:%2esplit */](strTrident)[1]);\n if (tridentVer) {\n return tridentVer + 4;\n }\n }\n return null;\n}\nexport function isSafari(userAgentStr) {\n if (!userAgentStr || !isString(userAgentStr)) {\n var navigator_2 = getNavigator() || {};\n userAgentStr = navigator_2 ? (navigator_2.userAgent || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]() : STR_EMPTY;\n }\n var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n return strIndexOf(ua, \"safari\") >= 0;\n}\n/**\r\n * Checks if HTML5 Beacons are supported in the current environment.\r\n * @param useCached - [Optional] used for testing to bypass the cached lookup, when `true` this will\r\n * cause the cached global to be reset.\r\n * @returns True if supported, false otherwise.\r\n */\nexport function isBeaconsSupported(useCached) {\n if (_beaconsSupported === null || useCached === false) {\n _beaconsSupported = hasNavigator() && Boolean(getNavigator().sendBeacon);\n }\n return _beaconsSupported;\n}\n/**\r\n * Checks if the Fetch API is supported in the current environment.\r\n * @param withKeepAlive - [Optional] If True, check if fetch is available and it supports the keepalive feature, otherwise only check if fetch is supported\r\n * @returns True if supported, otherwise false\r\n */\nexport function isFetchSupported(withKeepAlive) {\n var isSupported = false;\n try {\n isSupported = !!getInst(\"fetch\");\n var request = getInst(\"Request\");\n if (isSupported && withKeepAlive && request) {\n isSupported = _hasProperty(request, \"keepalive\");\n }\n } catch (e) {\n // Just Swallow any failure during availability checks\n }\n return isSupported;\n}\nexport function useXDomainRequest() {\n if (_useXDomainRequest === null) {\n _useXDomainRequest = typeof XDomainRequest !== strShimUndefined;\n if (_useXDomainRequest && isXhrSupported()) {\n _useXDomainRequest = _useXDomainRequest && !_hasProperty(getInst(strXMLHttpRequest), \"withCredentials\");\n }\n }\n return _useXDomainRequest;\n}\n/**\r\n * Checks if XMLHttpRequest is supported\r\n * @returns True if supported, otherwise false\r\n */\nexport function isXhrSupported() {\n var isSupported = false;\n try {\n var xmlHttpRequest = getInst(strXMLHttpRequest);\n isSupported = !!xmlHttpRequest;\n } catch (e) {\n // Just Swallow any failure during availability checks\n }\n return isSupported;\n}\nfunction _getNamedValue(values, name) {\n if (values) {\n for (var i = 0; i < values[_DYN_LENGTH /* @min:%2elength */]; i++) {\n var value = values[i];\n if (value[_DYN_NAME /* @min:%2ename */]) {\n if (value[_DYN_NAME /* @min:%2ename */] === name) {\n return value;\n }\n }\n }\n }\n return {};\n}\n/**\r\n * Helper function to fetch the named meta-tag from the page.\r\n * @param name\r\n */\nexport function findMetaTag(name) {\n var doc = getDocument();\n if (doc && name) {\n // Look for a meta-tag\n return _getNamedValue(doc.querySelectorAll(\"meta\"), name).content;\n }\n return null;\n}\n/**\r\n * Helper function to fetch the named server timing value from the page response (first navigation event).\r\n * @param name\r\n */\nexport function findNamedServerTiming(name) {\n var value;\n var perf = getPerformance();\n if (perf) {\n // Try looking for a server-timing header\n var navPerf = perf.getEntriesByType(\"navigation\") || [];\n value = _getNamedValue((navPerf[_DYN_LENGTH /* @min:%2elength */] > 0 ? navPerf[0] : {}).serverTiming, name).description;\n }\n return value;\n}\n// TODO: should reuse this method for analytics plugin\nexport function dispatchEvent(target, evnt) {\n if (target && target.dispatchEvent && evnt) {\n target.dispatchEvent(evnt);\n return true;\n }\n return false;\n}\nexport function createCustomDomEvent(eventName, details) {\n var event = null;\n var detail = {\n detail: details || null\n };\n if (isFunction(CustomEvent)) {\n // Use CustomEvent constructor when available\n event = new CustomEvent(eventName, detail);\n } else {\n // CustomEvent has no constructor in IE\n var doc = getDocument();\n if (doc && doc.createEvent) {\n event = doc.createEvent(\"CustomEvent\");\n event.initCustomEvent(eventName, true, true, detail);\n }\n }\n return event;\n}\nexport function sendCustomEvent(evtName, cfg, customDetails) {\n var global = getGlobal();\n if (global && global.CustomEvent) {\n try {\n var details = {\n cfg: cfg || null,\n customDetails: customDetails || null\n };\n return dispatchEvent(global, createCustomDomEvent(evtName, details));\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n }\n return false;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { utcNow } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH } from \"../__DynamicConstants\";\nimport { getCrypto, getMsCrypto, isIE } from \"./EnvUtils\";\nimport { STR_EMPTY } from \"./InternalConstants\";\nvar UInt32Mask = 0x100000000;\nvar MaxUInt32 = 0xffffffff;\nvar SEED1 = 123456789;\nvar SEED2 = 987654321;\n// MWC based Random generator (for IE)\nvar _mwcSeeded = false;\nvar _mwcW = SEED1;\nvar _mwcZ = SEED2;\n// Takes any integer\nfunction _mwcSeed(seedValue) {\n if (seedValue < 0) {\n // Make sure we end up with a positive number and not -ve one.\n seedValue >>>= 0;\n }\n _mwcW = SEED1 + seedValue & MaxUInt32;\n _mwcZ = SEED2 - seedValue & MaxUInt32;\n _mwcSeeded = true;\n}\nfunction _autoSeedMwc() {\n // Simple initialization using default Math.random() - So we inherit any entropy from the browser\n // and bitwise XOR with the current milliseconds\n try {\n var now = utcNow() & 0x7fffffff;\n _mwcSeed((Math.random() * UInt32Mask ^ now) + now);\n } catch (e) {\n // Don't crash if something goes wrong\n }\n}\n/**\r\n * Generate a random value between 0 and maxValue, max value should be limited to a 32-bit maximum.\r\n * So maxValue(16) will produce a number from 0..16 (range of 17)\r\n * @param maxValue\r\n */\nexport function randomValue(maxValue) {\n if (maxValue > 0) {\n return Math.floor(random32() / MaxUInt32 * (maxValue + 1)) >>> 0;\n }\n return 0;\n}\n/**\r\n * generate a random 32-bit number (0x000000..0xFFFFFFFF) or (-0x80000000..0x7FFFFFFF), defaults un-unsigned.\r\n * @param signed - True to return a signed 32-bit number (-0x80000000..0x7FFFFFFF) otherwise an unsigned one (0x000000..0xFFFFFFFF)\r\n */\nexport function random32(signed) {\n var value = 0;\n var c = getCrypto() || getMsCrypto();\n if (c && c.getRandomValues) {\n // Make sure the number is converted into the specified range (-0x80000000..0x7FFFFFFF)\n value = c.getRandomValues(new Uint32Array(1))[0] & MaxUInt32;\n }\n if (value === 0 && isIE()) {\n // For IE 6, 7, 8 (especially on XP) Math.random is not very random\n if (!_mwcSeeded) {\n // Set the seed for the Mwc algorithm\n _autoSeedMwc();\n }\n // Don't use Math.random for IE\n // Make sure the number is converted into the specified range (-0x80000000..0x7FFFFFFF)\n value = mwcRandom32() & MaxUInt32;\n }\n if (value === 0) {\n // Make sure the number is converted into the specified range (-0x80000000..0x7FFFFFFF)\n value = Math.floor(UInt32Mask * Math.random() | 0);\n }\n if (!signed) {\n // Make sure we end up with a positive number and not -ve one.\n value >>>= 0;\n }\n return value;\n}\n/**\r\n * Seed the MWC random number generator with the specified seed or a random value\r\n * @param value - optional the number to used as the seed, if undefined, null or zero a random value will be chosen\r\n */\nexport function mwcRandomSeed(value) {\n if (!value) {\n _autoSeedMwc();\n } else {\n _mwcSeed(value);\n }\n}\n/**\r\n * Generate a random 32-bit number between (0x000000..0xFFFFFFFF) or (-0x80000000..0x7FFFFFFF), using MWC (Multiply with carry)\r\n * instead of Math.random() defaults to un-signed.\r\n * Used as a replacement random generator for IE to avoid issues with older IE instances.\r\n * @param signed - True to return a signed 32-bit number (-0x80000000..0x7FFFFFFF) otherwise an unsigned one (0x000000..0xFFFFFFFF)\r\n */\nexport function mwcRandom32(signed) {\n _mwcZ = 36969 * (_mwcZ & 0xFFFF) + (_mwcZ >> 16) & MaxUInt32;\n _mwcW = 18000 * (_mwcW & 0xFFFF) + (_mwcW >> 16) & MaxUInt32;\n var value = (_mwcZ << 16) + (_mwcW & 0xFFFF) >>> 0 & MaxUInt32 | 0;\n if (!signed) {\n // Make sure we end up with a positive number and not -ve one.\n value >>>= 0;\n }\n return value;\n}\n/**\r\n * Generate random base64 id string.\r\n * The default length is 22 which is 132-bits so almost the same as a GUID but as base64 (the previous default was 5)\r\n * @param maxLength - Optional value to specify the length of the id to be generated, defaults to 22\r\n */\nexport function newId(maxLength) {\n if (maxLength === void 0) {\n maxLength = 22;\n }\n var base64chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n // Start with an initial random number, consuming the value in reverse byte order\n var number = random32() >>> 0; // Make sure it's a +ve number\n var chars = 0;\n var result = STR_EMPTY;\n while (result[_DYN_LENGTH /* @min:%2elength */] < maxLength) {\n chars++;\n result += base64chars.charAt(number & 0x3F);\n number >>>= 6; // Zero fill with right shift\n if (chars === 5) {\n // 5 base64 characters === 30 bits so we don't have enough bits for another base64 char\n // So add on another 30 bits and make sure it's +ve\n number = (random32() << 2 & 0xFFFFFFFF | number & 0x03) >>> 0;\n chars = 0; // We need to reset the number every 5 chars (30 bits)\n }\n }\n return result;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { objDefine } from \"@nevware21/ts-utils\";\nimport { _DYN_NODE_TYPE } from \"../__DynamicConstants\";\nimport { normalizeJsName } from \"./HelperFuncs\";\nimport { STR_EMPTY } from \"./InternalConstants\";\nimport { newId } from \"./RandomHelper\";\nvar version = '3.0.3';\nvar instanceName = \".\" + newId(6);\nvar _dataUid = 0;\n// Accepts only:\n// - Node\n// - Node.ELEMENT_NODE\n// - Node.DOCUMENT_NODE\n// - Object\n// - Any\nfunction _canAcceptData(target) {\n return target[_DYN_NODE_TYPE /* @min:%2enodeType */] === 1 || target[_DYN_NODE_TYPE /* @min:%2enodeType */] === 9 || !+target[_DYN_NODE_TYPE /* @min:%2enodeType */];\n}\nfunction _getCache(data, target) {\n var theCache = target[data.id];\n if (!theCache) {\n theCache = {};\n try {\n if (_canAcceptData(target)) {\n objDefine(target, data.id, {\n e: false,\n v: theCache\n });\n }\n } catch (e) {\n // Not all environments allow extending all objects, so just ignore the cache in those cases\n }\n }\n return theCache;\n}\nexport function createUniqueNamespace(name, includeVersion) {\n if (includeVersion === void 0) {\n includeVersion = false;\n }\n return normalizeJsName(name + _dataUid++ + (includeVersion ? \".\" + version : STR_EMPTY) + instanceName);\n}\nexport function createElmNodeData(name) {\n var data = {\n id: createUniqueNamespace(\"_aiData-\" + (name || STR_EMPTY) + \".\" + version),\n accept: function (target) {\n return _canAcceptData(target);\n },\n get: function (target, name, defValue, addDefault) {\n var theCache = target[data.id];\n if (!theCache) {\n if (addDefault) {\n // Side effect is adds the cache\n theCache = _getCache(data, target);\n theCache[normalizeJsName(name)] = defValue;\n }\n return defValue;\n }\n return theCache[normalizeJsName(name)];\n },\n kill: function (target, name) {\n if (target && target[name]) {\n try {\n delete target[name];\n } catch (e) {\n // Just cleaning up, so if this fails -- ignore\n }\n }\n }\n };\n return data;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { asString, isArray, isDefined, isNullOrUndefined, isObject, isPlainObject, isUndefined, objForEachKey, objHasOwn } from \"@nevware21/ts-utils\";\nimport { _DYN_BLK_VAL, _DYN_LENGTH, _DYN_RD_ONLY } from \"../__DynamicConstants\";\nfunction _isConfigDefaults(value) {\n return value && isObject(value) && (value.isVal || value.fb || objHasOwn(value, \"v\") || objHasOwn(value, \"mrg\") || objHasOwn(value, \"ref\") || value.set);\n}\nfunction _getDefault(dynamicHandler, theConfig, cfgDefaults) {\n var defValue;\n var isDefaultValid = cfgDefaults.dfVal || isDefined;\n // There is a fallback config key so try and grab that first\n if (theConfig && cfgDefaults.fb) {\n var fallbacks = cfgDefaults.fb;\n if (!isArray(fallbacks)) {\n fallbacks = [fallbacks];\n }\n for (var lp = 0; lp < fallbacks[_DYN_LENGTH /* @min:%2elength */]; lp++) {\n var fallback = fallbacks[lp];\n var fbValue = theConfig[fallback];\n if (isDefaultValid(fbValue)) {\n defValue = fbValue;\n } else if (dynamicHandler) {\n // Needed to ensure that the fallback value (and potentially) new field is also dynamic even if null/undefined\n fbValue = dynamicHandler.cfg[fallback];\n if (isDefaultValid(fbValue)) {\n defValue = fbValue;\n }\n // Needed to ensure that the fallback value (and potentially) new field is also dynamic even if null/undefined\n dynamicHandler.set(dynamicHandler.cfg, asString(fallback), fbValue);\n }\n if (isDefaultValid(defValue)) {\n // We have a valid default so break out of the look\n break;\n }\n }\n }\n // If the value is still not defined and we have a default value then use that\n if (!isDefaultValid(defValue) && isDefaultValid(cfgDefaults.v)) {\n defValue = cfgDefaults.v;\n }\n return defValue;\n}\n/**\r\n * Recursively resolve the default value\r\n * @param dynamicHandler\r\n * @param theConfig\r\n * @param cfgDefaults\r\n * @returns\r\n */\nfunction _resolveDefaultValue(dynamicHandler, theConfig, cfgDefaults) {\n var theValue = cfgDefaults;\n if (cfgDefaults && _isConfigDefaults(cfgDefaults)) {\n theValue = _getDefault(dynamicHandler, theConfig, cfgDefaults);\n }\n if (theValue) {\n if (_isConfigDefaults(theValue)) {\n theValue = _resolveDefaultValue(dynamicHandler, theConfig, theValue);\n }\n var newValue_1;\n if (isArray(theValue)) {\n newValue_1 = [];\n newValue_1[_DYN_LENGTH /* @min:%2elength */] = theValue[_DYN_LENGTH /* @min:%2elength */];\n } else if (isPlainObject(theValue)) {\n newValue_1 = {};\n }\n if (newValue_1) {\n objForEachKey(theValue, function (key, value) {\n if (value && _isConfigDefaults(value)) {\n value = _resolveDefaultValue(dynamicHandler, theConfig, value);\n }\n newValue_1[key] = value;\n });\n theValue = newValue_1;\n }\n }\n return theValue;\n}\n/**\r\n * Applies the default value on the config property and makes sure that it's dynamic\r\n * @param theConfig\r\n * @param name\r\n * @param defaultValue\r\n */\nexport function _applyDefaultValue(dynamicHandler, theConfig, name, defaultValue) {\n // Resolve the initial config value from the provided value or use the defined default\n var isValid;\n var setFn;\n var defValue;\n var cfgDefaults = defaultValue;\n var mergeDf;\n var reference;\n var readOnly;\n var blkDynamicValue;\n if (_isConfigDefaults(cfgDefaults)) {\n // looks like a IConfigDefault\n isValid = cfgDefaults.isVal;\n setFn = cfgDefaults.set;\n readOnly = cfgDefaults[_DYN_RD_ONLY /* @min:%2erdOnly */];\n blkDynamicValue = cfgDefaults[_DYN_BLK_VAL /* @min:%2eblkVal */];\n mergeDf = cfgDefaults.mrg;\n reference = cfgDefaults.ref;\n if (!reference && isUndefined(reference)) {\n reference = !!mergeDf;\n }\n defValue = _getDefault(dynamicHandler, theConfig, cfgDefaults);\n } else {\n defValue = defaultValue;\n }\n if (blkDynamicValue) {\n // Mark the property so that any value assigned will be blocked from conversion, we need to do this\n // before assigning or fetching the value to ensure it's not converted\n dynamicHandler[_DYN_BLK_VAL /* @min:%2eblkVal */](theConfig, name);\n }\n // Set the value to the default value;\n var theValue;\n var usingDefault = true;\n var cfgValue = theConfig[name];\n // try and get and user provided values\n if (cfgValue || !isNullOrUndefined(cfgValue)) {\n // Use the defined theConfig[name] value\n theValue = cfgValue;\n usingDefault = false;\n // The values are different and we have a special default value check, which is used to\n // override config values like empty strings to continue using the default\n if (isValid && theValue !== defValue && !isValid(theValue)) {\n theValue = defValue;\n usingDefault = true;\n }\n if (setFn) {\n theValue = setFn(theValue, defValue, theConfig);\n usingDefault = theValue === defValue;\n }\n }\n if (!usingDefault) {\n if (isPlainObject(theValue) || isArray(defValue)) {\n // we are using the user supplied value and it's an object\n if (mergeDf && defValue && (isPlainObject(defValue) || isArray(defValue))) {\n // Resolve/apply the defaults\n objForEachKey(defValue, function (dfName, dfValue) {\n // Sets the value and makes it dynamic (if it doesn't already exist)\n _applyDefaultValue(dynamicHandler, theValue, dfName, dfValue);\n });\n }\n }\n } else if (defValue) {\n // Just resolve the default\n theValue = _resolveDefaultValue(dynamicHandler, theConfig, defValue);\n } else {\n theValue = defValue;\n }\n // if (theValue && usingDefault && (isPlainObject(theValue) || isArray(theValue))) {\n // theValue = _cfgDeepCopy(theValue);\n // }\n // Needed to ensure that the (potentially) new field is dynamic even if null/undefined\n dynamicHandler.set(theConfig, name, theValue);\n if (reference) {\n dynamicHandler.ref(theConfig, name);\n }\n if (readOnly) {\n dynamicHandler[_DYN_RD_ONLY /* @min:%2erdOnly */](theConfig, name);\n }\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { isArray, isPlainObject, objForEachKey, symbolFor, throwTypeError } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH } from \"../__DynamicConstants\";\n// Using Symbol.for so that if the same symbol was already created it would be returned\n// To handle multiple instances using potentially different versions we are not using\n// createUniqueNamespace()\nexport var CFG_HANDLER_LINK = symbolFor(\"[[ai_dynCfg_1]]\");\n/**\r\n * @internal\r\n * @ignore\r\n * The symbol to tag objects / arrays with if they should not be converted\r\n */\nvar BLOCK_DYNAMIC = symbolFor(\"[[ai_blkDynCfg_1]]\");\n/**\r\n * @internal\r\n * @ignore\r\n * The symbol to tag objects to indicate that when included into the configuration that\r\n * they should be converted into a trackable dynamic object.\r\n */\nvar FORCE_DYNAMIC = symbolFor(\"[[ai_frcDynCfg_1]]\");\nexport function _cfgDeepCopy(source) {\n if (source) {\n var target_1;\n if (isArray(source)) {\n target_1 = [];\n target_1[_DYN_LENGTH /* @min:%2elength */] = source[_DYN_LENGTH /* @min:%2elength */];\n } else if (isPlainObject(source)) {\n target_1 = {};\n }\n if (target_1) {\n // Copying index values by property name as the extensionConfig can be an array or object\n objForEachKey(source, function (key, value) {\n // Perform a deep copy of the object\n target_1[key] = _cfgDeepCopy(value);\n });\n return target_1;\n }\n }\n return source;\n}\n/**\r\n * @internal\r\n * Get the dynamic config handler if the value is already dynamic\r\n * @param value\r\n * @returns\r\n */\nexport function getDynamicConfigHandler(value) {\n if (value) {\n var handler = value[CFG_HANDLER_LINK] || value;\n if (handler.cfg && (handler.cfg === value || handler.cfg[CFG_HANDLER_LINK] === handler)) {\n return handler;\n }\n }\n return null;\n}\n/**\r\n * Mark the provided value so that if it's included into the configuration it will NOT have\r\n * its properties converted into a dynamic (reactive) object. If the object is not a plain object\r\n * or an array (ie. a class) this function has not affect as only Objects and Arrays are converted\r\n * into dynamic objects in the dynamic configuration.\r\n *\r\n * When you have tagged a value as both {@link forceDynamicConversion} and blocked force will take precedence.\r\n *\r\n * You should only need to use this function, if you are creating dynamic \"classes\" from objects\r\n * which confirm to the require interface. A common case for this is during unit testing where it's\r\n * easier to create mock extensions.\r\n *\r\n * If `value` is falsy (null / undefined / 0 / empty string etc) it will not be tagged and\r\n * if there is an exception adding the property to the value (because its frozen etc) the\r\n * exception will be swallowed\r\n *\r\n * @example\r\n * ```ts\r\n * // This is a valid \"extension\", but it is technically an object\r\n * // So when included in the config.extensions it WILL be cloned and then\r\n * // converted into a dynamic object, where all of its properties will become\r\n * // get/set object properties and will be tracked. While this WILL still\r\n * // function, when attempt to use a mocking framework on top of this the\r\n * // functions are now technically get accessors which return a function\r\n * // and this can cause some mocking frameworks to fail.\r\n * let mockChannel = {\r\n * pause: () => { },\r\n* resume: () => { },\r\n* teardown: () => { },\r\n* flush: (async: any, callBack: any) => { },\r\n* processTelemetry: (env: any) => { },\r\n* setNextPlugin: (next: any) => { },\r\n* initialize: (config: any, core: any, extensions: any) => { },\r\n* identifier: \"testChannel\",\r\n* priority: 1003\r\n* };\r\n * ```\r\n * @param value - The object that you want to block from being converted into a\r\n * trackable dynamic object\r\n * @returns The original value\r\n */\nexport function blockDynamicConversion(value) {\n if (value && (isPlainObject(value) || isArray(value))) {\n try {\n value[BLOCK_DYNAMIC] = true;\n } catch (e) {\n // Don't throw for this case as it's an ask only\n }\n }\n return value;\n}\n/**\r\n * This is the reverse case of {@link blockDynamicConversion} in that this will tag an\r\n * object to indicate that it should always be converted into a dynamic trackable object\r\n * even when not an object or array. So all properties of this object will become\r\n * get / set accessor functions.\r\n *\r\n * When you have tagged a value as both {@link forceDynamicConversion} and blocked force will take precedence.\r\n *\r\n * If `value` is falsy (null / undefined / 0 / empty string etc) it will not be tagged and\r\n * if there is an exception adding the property to the value (because its frozen etc) the\r\n * exception will be swallowed.\r\n * @param value - The object that should be tagged and converted if included into a dynamic\r\n * configuration.\r\n * @returns The original value\r\n */\nexport function forceDynamicConversion(value) {\n if (value) {\n try {\n value[FORCE_DYNAMIC] = true;\n } catch (e) {\n // Don't throw for this case as it's an ask only\n }\n }\n return value;\n}\n/**\r\n * @internal\r\n * @ignore\r\n * Helper function to check whether an object can or should be converted into a dynamic\r\n * object.\r\n * @param value - The object to check whether it should be converted\r\n * @returns `true` if the value should be converted otherwise `false`.\r\n */\nexport function _canMakeDynamic(getFunc, state, value) {\n var result = false;\n // Object must exist and be truthy\n if (value && !getFunc[state.blkVal]) {\n // Tagged as always convert\n result = value[FORCE_DYNAMIC];\n // Check that it's not explicitly tagged as blocked\n if (!result && !value[BLOCK_DYNAMIC]) {\n // Only convert plain objects or arrays by default\n result = isPlainObject(value) || isArray(value);\n }\n }\n return result;\n}\n/**\r\n * Throws an invalid access exception\r\n * @param message - The message to include in the exception\r\n */\nexport function throwInvalidAccess(message) {\n throwTypeError(\"InvalidAccess:\" + message);\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrForEach, arrIndexOf, dumpObj, isArray, objDefine, objDefineProp, objForEachKey, objGetOwnPropertyDescriptor } from \"@nevware21/ts-utils\";\nimport { UNDEFINED_VALUE } from \"../JavaScriptSDK/InternalConstants\";\nimport { _DYN_APPLY, _DYN_HDLR, _DYN_LOGGER, _DYN_PUSH, _DYN_SPLICE, _DYN_THROW_INTERNAL } from \"../__DynamicConstants\";\nimport { CFG_HANDLER_LINK, _canMakeDynamic, blockDynamicConversion, throwInvalidAccess } from \"./DynamicSupport\";\nvar arrayMethodsToPatch = [\"push\", \"pop\", \"shift\", \"unshift\", \"splice\"];\nexport var _throwDynamicError = function (logger, name, desc, e) {\n logger && logger[_DYN_THROW_INTERNAL /* @min:%2ethrowInternal */](3 /* eLoggingSeverity.DEBUG */, 108 /* _eInternalMessageId.DynamicConfigException */, \"\".concat(desc, \" [\").concat(name, \"] failed - \") + dumpObj(e));\n};\nfunction _patchArray(state, target, name) {\n if (isArray(target)) {\n // Monkey Patch the methods that might change the array\n arrForEach(arrayMethodsToPatch, function (method) {\n var orgMethod = target[method];\n target[method] = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var result = orgMethod[_DYN_APPLY /* @min:%2eapply */](this, args);\n // items may be added, removed or moved so need to make some new dynamic properties\n _makeDynamicObject(state, target, name, \"Patching\");\n return result;\n };\n });\n }\n}\nfunction _getOwnPropGetter(target, name) {\n var propDesc = objGetOwnPropertyDescriptor(target, name);\n return propDesc && propDesc.get;\n}\nfunction _createDynamicProperty(state, theConfig, name, value) {\n // Does not appear to be dynamic so lets make it so\n var detail = {\n n: name,\n h: [],\n trk: function (handler) {\n if (handler && handler.fn) {\n if (arrIndexOf(detail.h, handler) === -1) {\n // Add this handler to the collection that should be notified when the value changes\n detail.h[_DYN_PUSH /* @min:%2epush */](handler);\n }\n state.trk(handler, detail);\n }\n },\n clr: function (handler) {\n var idx = arrIndexOf(detail.h, handler);\n if (idx !== -1) {\n detail.h[_DYN_SPLICE /* @min:%2esplice */](idx, 1);\n }\n }\n };\n // Flag to optimize lookup response time by avoiding additional function calls\n var checkDynamic = true;\n var isObjectOrArray = false;\n function _getProperty() {\n if (checkDynamic) {\n isObjectOrArray = isObjectOrArray || _canMakeDynamic(_getProperty, state, value);\n // Make sure that if it's an object that we make it dynamic\n if (value && !value[CFG_HANDLER_LINK] && isObjectOrArray) {\n // It doesn't look like it's already dynamic so lets make sure it's converted the object into a dynamic Config as well\n value = _makeDynamicObject(state, value, name, \"Converting\");\n }\n // If it needed to be converted it now has been\n checkDynamic = false;\n }\n // If there is an active handler then add it to the tracking set of handlers\n var activeHandler = state.act;\n if (activeHandler) {\n detail.trk(activeHandler);\n }\n return value;\n }\n // Tag this getter as our dynamic property and provide shortcut for notifying a change\n _getProperty[state.prop] = {\n chng: function () {\n state.add(detail);\n }\n };\n function _setProperty(newValue) {\n if (value !== newValue) {\n if (!!_getProperty[state.ro] && !state.upd) {\n // field is marked as readonly so return false\n throwInvalidAccess(\"[\" + name + \"] is read-only:\" + dumpObj(theConfig));\n }\n if (checkDynamic) {\n isObjectOrArray = isObjectOrArray || _canMakeDynamic(_getProperty, state, value);\n checkDynamic = false;\n }\n // The value must be a plain object or an array to enforce the reference (in-place updates)\n var isReferenced = isObjectOrArray && _getProperty[state.rf];\n if (isObjectOrArray) {\n // We are about to replace a plain object or an array\n if (isReferenced) {\n // Reassign the properties from the current value to the same properties from the newValue\n // This will set properties not in the newValue to undefined\n objForEachKey(value, function (key) {\n value[key] = newValue ? newValue[key] : UNDEFINED_VALUE;\n });\n // Now assign / re-assign value with all of the keys from newValue\n try {\n objForEachKey(newValue, function (key, theValue) {\n _setDynamicProperty(state, value, key, theValue);\n });\n // Now drop newValue so when we assign value later it keeps the existing reference\n newValue = value;\n } catch (e) {\n // Unable to convert to dynamic property so just leave as non-dynamic\n _throwDynamicError((state.hdlr || {})[_DYN_LOGGER /* @min:%2elogger */], name, \"Assigning\", e);\n // Mark as not an object or array so we don't try and do this again\n isObjectOrArray = false;\n }\n } else if (value && value[CFG_HANDLER_LINK]) {\n // As we are replacing the value, if it's already dynamic then we need to notify the listeners\n // for every property it has already\n objForEachKey(value, function (key) {\n // Check if the value is dynamic\n var getter = _getOwnPropGetter(value, key);\n if (getter) {\n // And if it is tell it's listeners that the value has changed\n var valueState = getter[state.prop];\n valueState && valueState.chng();\n }\n });\n }\n }\n if (newValue !== value) {\n var newIsObjectOrArray = newValue && _canMakeDynamic(_getProperty, state, newValue);\n if (!isReferenced && newIsObjectOrArray) {\n // As the newValue is an object/array lets preemptively make it dynamic\n newValue = _makeDynamicObject(state, newValue, name, \"Converting\");\n }\n // Now assign the internal \"value\" to the newValue\n value = newValue;\n isObjectOrArray = newIsObjectOrArray;\n }\n // Cause any listeners to be scheduled for notification\n state.add(detail);\n }\n }\n objDefine(theConfig, detail.n, {\n g: _getProperty,\n s: _setProperty\n });\n}\nexport function _setDynamicProperty(state, target, name, value) {\n if (target) {\n // To be a dynamic property it needs to have a get function\n var getter = _getOwnPropGetter(target, name);\n var isDynamic = getter && !!getter[state.prop];\n if (!isDynamic) {\n _createDynamicProperty(state, target, name, value);\n } else {\n // Looks like it's already dynamic just assign the new value\n target[name] = value;\n }\n }\n return target;\n}\nexport function _setDynamicPropertyState(state, target, name, flags) {\n if (target) {\n // To be a dynamic property it needs to have a get function\n var getter = _getOwnPropGetter(target, name);\n var isDynamic = getter && !!getter[state.prop];\n var inPlace = flags && flags[0 /* _eSetDynamicPropertyFlags.inPlace */];\n var rdOnly = flags && flags[1 /* _eSetDynamicPropertyFlags.readOnly */];\n var blkProp = flags && flags[2 /* _eSetDynamicPropertyFlags.blockDynamicProperty */];\n if (!isDynamic) {\n if (blkProp) {\n try {\n // Attempt to mark the target as blocked from conversion\n blockDynamicConversion(target);\n } catch (e) {\n _throwDynamicError((state.hdlr || {})[_DYN_LOGGER /* @min:%2elogger */], name, \"Blocking\", e);\n }\n }\n try {\n // Make sure it's dynamic so that we can tag the property as per the state\n _setDynamicProperty(state, target, name, target[name]);\n getter = _getOwnPropGetter(target, name);\n } catch (e) {\n // Unable to convert to dynamic property so just leave as non-dynamic\n _throwDynamicError((state.hdlr || {})[_DYN_LOGGER /* @min:%2elogger */], name, \"State\", e);\n }\n }\n // Assign the optional flags if true\n if (inPlace) {\n getter[state.rf] = inPlace;\n }\n if (rdOnly) {\n getter[state.ro] = rdOnly;\n }\n if (blkProp) {\n getter[state.blkVal] = true;\n }\n }\n return target;\n}\nexport function _makeDynamicObject(state, target, name, desc) {\n try {\n // Assign target with new value properties (converting into dynamic properties in the process)\n objForEachKey(target, function (key, value) {\n // Assign and/or make the property dynamic\n _setDynamicProperty(state, target, key, value);\n });\n if (!target[CFG_HANDLER_LINK]) {\n // Link the config back to the dynamic config details\n objDefineProp(target, CFG_HANDLER_LINK, {\n get: function () {\n return state[_DYN_HDLR /* @min:%2ehdlr */];\n }\n });\n _patchArray(state, target, name);\n }\n } catch (e) {\n // Unable to convert to dynamic property so just leave as non-dynamic\n _throwDynamicError((state.hdlr || {})[_DYN_LOGGER /* @min:%2elogger */], name, desc, e);\n }\n return target;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrForEach, arrIndexOf, dumpObj, newSymbol, scheduleTimeout } from \"@nevware21/ts-utils\";\nimport { throwAggregationError } from \"../JavaScriptSDK/AggregationError\";\nimport { _DYN_BLK_VAL, _DYN_CANCEL, _DYN_HDLR, _DYN_LENGTH, _DYN_LOGGER, _DYN_NOTIFY, _DYN_PUSH, _DYN_RD_ONLY, _DYN_SET_DF, _DYN_THROW_INTERNAL } from \"../__DynamicConstants\";\nvar symPrefix = \"[[ai_\";\nvar symPostfix = \"]]\";\nexport function _createState(cfgHandler) {\n var _a;\n var dynamicPropertySymbol = newSymbol(symPrefix + \"get\" + cfgHandler.uid + symPostfix);\n var dynamicPropertyReadOnly = newSymbol(symPrefix + \"ro\" + cfgHandler.uid + symPostfix);\n var dynamicPropertyReferenced = newSymbol(symPrefix + \"rf\" + cfgHandler.uid + symPostfix);\n var dynamicPropertyBlockValue = newSymbol(symPrefix + \"blkVal\" + cfgHandler.uid + symPostfix);\n var dynamicPropertyDetail = newSymbol(symPrefix + \"dtl\" + cfgHandler.uid + symPostfix);\n var _waitingHandlers = null;\n var _watcherTimer = null;\n var theState;\n function _useHandler(activeHandler, callback) {\n var prevWatcher = theState.act;\n try {\n theState.act = activeHandler;\n if (activeHandler && activeHandler[dynamicPropertyDetail]) {\n // Clear out the previously tracked details for this handler, so that access are re-evaluated\n arrForEach(activeHandler[dynamicPropertyDetail], function (detail) {\n detail.clr(activeHandler);\n });\n activeHandler[dynamicPropertyDetail] = [];\n }\n callback({\n cfg: cfgHandler.cfg,\n set: cfgHandler.set.bind(cfgHandler),\n setDf: cfgHandler[_DYN_SET_DF /* @min:%2esetDf */].bind(cfgHandler),\n ref: cfgHandler.ref.bind(cfgHandler),\n rdOnly: cfgHandler[_DYN_RD_ONLY /* @min:%2erdOnly */].bind(cfgHandler)\n });\n } catch (e) {\n var logger = cfgHandler[_DYN_LOGGER /* @min:%2elogger */];\n if (logger) {\n // Don't let one individual failure break everyone\n logger[_DYN_THROW_INTERNAL /* @min:%2ethrowInternal */](1 /* eLoggingSeverity.CRITICAL */, 107 /* _eInternalMessageId.ConfigWatcherException */, dumpObj(e));\n }\n // Re-throw the exception so that any true \"error\" is reported back to the called\n throw e;\n } finally {\n theState.act = prevWatcher || null;\n }\n }\n function _notifyWatchers() {\n if (_waitingHandlers) {\n var notifyHandlers = _waitingHandlers;\n _waitingHandlers = null;\n // Stop any timer as we are running them now anyway\n _watcherTimer && _watcherTimer[_DYN_CANCEL /* @min:%2ecancel */]();\n _watcherTimer = null;\n var watcherFailures_1 = [];\n // Now run the handlers\n arrForEach(notifyHandlers, function (handler) {\n if (handler) {\n if (handler[dynamicPropertyDetail]) {\n arrForEach(handler[dynamicPropertyDetail], function (detail) {\n // Clear out this handler from previously tracked details, so that access are re-evaluated\n detail.clr(handler);\n });\n handler[dynamicPropertyDetail] = null;\n }\n // The handler may have self removed as part of another handler so re-check\n if (handler.fn) {\n try {\n _useHandler(handler, handler.fn);\n } catch (e) {\n // Don't let a single failing watcher cause other watches to fail\n watcherFailures_1[_DYN_PUSH /* @min:%2epush */](e);\n }\n }\n }\n });\n // During notification we may have had additional updates -- so notify those updates as well\n if (_waitingHandlers) {\n try {\n _notifyWatchers();\n } catch (e) {\n watcherFailures_1[_DYN_PUSH /* @min:%2epush */](e);\n }\n }\n if (watcherFailures_1[_DYN_LENGTH /* @min:%2elength */] > 0) {\n throwAggregationError(\"Watcher error(s): \", watcherFailures_1);\n }\n }\n }\n function _addWatcher(detail) {\n if (detail && detail.h[_DYN_LENGTH /* @min:%2elength */] > 0) {\n if (!_waitingHandlers) {\n _waitingHandlers = [];\n }\n if (!_watcherTimer) {\n _watcherTimer = scheduleTimeout(function () {\n _watcherTimer = null;\n _notifyWatchers();\n }, 0);\n }\n // Add all of the handlers for this detail (if not already present) - using normal for-loop for performance\n for (var idx = 0; idx < detail.h[_DYN_LENGTH /* @min:%2elength */]; idx++) {\n var handler = detail.h[idx];\n // Add this handler to the collection of handlers to re-execute\n if (handler && arrIndexOf(_waitingHandlers, handler) === -1) {\n _waitingHandlers[_DYN_PUSH /* @min:%2epush */](handler);\n }\n }\n }\n }\n function _trackHandler(handler, detail) {\n if (handler) {\n var details = handler[dynamicPropertyDetail] = handler[dynamicPropertyDetail] || [];\n if (arrIndexOf(details, detail) === -1) {\n // If this detail is not already listed as tracked then add it so that we re-evaluate it's usage\n details[_DYN_PUSH /* @min:%2epush */](detail);\n }\n }\n }\n theState = (_a = {\n prop: dynamicPropertySymbol,\n ro: dynamicPropertyReadOnly,\n rf: dynamicPropertyReferenced\n }, _a[_DYN_BLK_VAL /* @min:blkVal */] = dynamicPropertyBlockValue, _a[_DYN_HDLR /* @min:hdlr */] = cfgHandler, _a.add = _addWatcher, _a[_DYN_NOTIFY /* @min:notify */] = _notifyWatchers, _a.use = _useHandler, _a.trk = _trackHandler, _a);\n return theState;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { dumpObj, isUndefined, objDefine, objForEachKey } from \"@nevware21/ts-utils\";\nimport { createUniqueNamespace } from \"../JavaScriptSDK/DataCacheHelper\";\nimport { STR_NOT_DYNAMIC_ERROR } from \"../JavaScriptSDK/InternalConstants\";\nimport { _DYN_BLK_VAL, _DYN_LOGGER, _DYN_NOTIFY, _DYN_RD_ONLY, _DYN_SET_DF, _DYN_THROW_INTERNAL, _DYN_WARN_TO_CONSOLE, _DYN_WATCH } from \"../__DynamicConstants\";\nimport { _applyDefaultValue } from \"./ConfigDefaults\";\nimport { _makeDynamicObject, _setDynamicProperty, _setDynamicPropertyState, _throwDynamicError } from \"./DynamicProperty\";\nimport { _createState } from \"./DynamicState\";\nimport { CFG_HANDLER_LINK, _cfgDeepCopy, getDynamicConfigHandler, throwInvalidAccess } from \"./DynamicSupport\";\n/**\r\n * Identifies a function which will be re-called whenever any of it's accessed configuration values\r\n * change.\r\n * @param configHandler - The callback that will be called for the initial request and then whenever any\r\n * accessed configuration changes are identified.\r\n */\nfunction _createAndUseHandler(state, configHandler) {\n var handler = {\n fn: configHandler,\n rm: function () {\n // Clear all references to the handler so it can be garbage collected\n // This will also cause this handler to never get called and eventually removed\n handler.fn = null;\n state = null;\n configHandler = null;\n }\n };\n state.use(handler, configHandler);\n return handler;\n}\n/**\r\n * Creates the dynamic config handler and associates with the target config as the root object\r\n * @param target - The config that you want to be root of the dynamic config\r\n * @param inPlace - Should the passed config be converted in-place or a new proxy returned\r\n * @returns The existing dynamic handler or a new instance with the provided config values\r\n */\nfunction _createDynamicHandler(logger, target, inPlace) {\n var _a;\n var dynamicHandler = getDynamicConfigHandler(target);\n if (dynamicHandler) {\n // The passed config is already dynamic so return it's tracker\n return dynamicHandler;\n }\n var uid = createUniqueNamespace(\"dyncfg\", true);\n var newTarget = target && inPlace !== false ? target : _cfgDeepCopy(target);\n var theState;\n function _notifyWatchers() {\n theState[_DYN_NOTIFY /* @min:%2enotify */]();\n }\n function _setValue(target, name, value) {\n try {\n target = _setDynamicProperty(theState, target, name, value);\n } catch (e) {\n // Unable to convert to dynamic property so just leave as non-dynamic\n _throwDynamicError(logger, name, \"Setting value\", e);\n }\n return target[name];\n }\n function _watch(configHandler) {\n return _createAndUseHandler(theState, configHandler);\n }\n function _block(configHandler, allowUpdate) {\n theState.use(null, function (details) {\n var prevUpd = theState.upd;\n try {\n if (!isUndefined(allowUpdate)) {\n theState.upd = allowUpdate;\n }\n configHandler(details);\n } finally {\n theState.upd = prevUpd;\n }\n });\n }\n function _ref(target, name) {\n var _a;\n // Make sure it's dynamic and mark as referenced with it's current value\n return _setDynamicPropertyState(theState, target, name, (_a = {}, _a[0 /* _eSetDynamicPropertyFlags.inPlace */] = true, _a))[name];\n }\n function _rdOnly(target, name) {\n var _a;\n // Make sure it's dynamic and mark as readonly with it's current value\n return _setDynamicPropertyState(theState, target, name, (_a = {}, _a[1 /* _eSetDynamicPropertyFlags.readOnly */] = true, _a))[name];\n }\n function _blkPropValue(target, name) {\n var _a;\n // Make sure it's dynamic and mark as readonly with it's current value\n return _setDynamicPropertyState(theState, target, name, (_a = {}, _a[2 /* _eSetDynamicPropertyFlags.blockDynamicProperty */] = true, _a))[name];\n }\n function _applyDefaults(theConfig, defaultValues) {\n if (defaultValues) {\n // Resolve/apply the defaults\n objForEachKey(defaultValues, function (name, value) {\n // Sets the value and makes it dynamic (if it doesn't already exist)\n _applyDefaultValue(cfgHandler, theConfig, name, value);\n });\n }\n return theConfig;\n }\n var cfgHandler = (_a = {\n uid: null,\n cfg: newTarget\n }, _a[_DYN_LOGGER /* @min:logger */] = logger, _a[_DYN_NOTIFY /* @min:notify */] = _notifyWatchers, _a.set = _setValue, _a[_DYN_SET_DF /* @min:setDf */] = _applyDefaults, _a[_DYN_WATCH /* @min:watch */] = _watch, _a.ref = _ref, _a[_DYN_RD_ONLY /* @min:rdOnly */] = _rdOnly, _a[_DYN_BLK_VAL /* @min:blkVal */] = _blkPropValue, _a._block = _block, _a);\n objDefine(cfgHandler, \"uid\", {\n c: false,\n e: false,\n w: false,\n v: uid\n });\n theState = _createState(cfgHandler);\n // Setup tracking for all defined default keys\n _makeDynamicObject(theState, newTarget, \"config\", \"Creating\");\n return cfgHandler;\n}\n/**\r\n * Log an invalid access message to the console\r\n * @param message\r\n */\nfunction _logInvalidAccess(logger, message) {\n if (logger) {\n logger[_DYN_WARN_TO_CONSOLE /* @min:%2ewarnToConsole */](message);\n logger[_DYN_THROW_INTERNAL /* @min:%2ethrowInternal */](2 /* eLoggingSeverity.WARNING */, 108 /* _eInternalMessageId.DynamicConfigException */, message);\n } else {\n // We don't have a logger so just throw an exception\n throwInvalidAccess(message);\n }\n}\n/**\r\n * Create or return a dynamic version of the passed config, if it is not already dynamic\r\n * @param config - The config to be converted into a dynamic config\r\n * @param defaultConfig - The default values to apply on the config if the properties don't already exist\r\n * @param inPlace - Should the config be converted in-place into a dynamic config or a new instance returned, defaults to true\r\n * @returns The dynamic config handler for the config (whether new or existing)\r\n */\nexport function createDynamicConfig(config, defaultConfig, logger, inPlace) {\n var dynamicHandler = _createDynamicHandler(logger, config || {}, inPlace);\n if (defaultConfig) {\n dynamicHandler[_DYN_SET_DF /* @min:%2esetDf */](dynamicHandler.cfg, defaultConfig);\n }\n return dynamicHandler;\n}\n/**\r\n * Watch and track changes for accesses to the current config, the provided config MUST already be\r\n * a dynamic config or a child accessed via the dynamic config\r\n * @param config\r\n * @param configHandler\r\n * @param logger - The logger instance to use if there is no existing handler\r\n * @returns A watcher handler instance that can be used to remove itself when being unloaded\r\n * @throws TypeError if the provided config is not a dynamic config instance\r\n */\nexport function onConfigChange(config, configHandler, logger) {\n var handler = config[CFG_HANDLER_LINK] || config;\n if (handler.cfg && (handler.cfg === config || handler.cfg[CFG_HANDLER_LINK] === handler)) {\n return handler[_DYN_WATCH /* @min:%2ewatch */](configHandler);\n }\n _logInvalidAccess(logger, STR_NOT_DYNAMIC_ERROR + dumpObj(config));\n return createDynamicConfig(config, null, logger)[_DYN_WATCH /* @min:%2ewatch */](configHandler);\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { createPromise, doAwaitResponse } from \"@nevware21/ts-async\";\nimport { arrSlice, getLength } from \"@nevware21/ts-utils\";\nimport { _DYN_UNLOAD } from \"../__DynamicConstants\";\n/**\r\n * Run the unload function of the target object if it exists\r\n * @param target - The target object that contains the unload function\r\n * @param isAsync - The caller identifies whether it is expecting the operation to complete synchronously or asynchronously. Even\r\n * if the caller is not waiting the operation may still be performed asynchronously depending on the component and the reverse is\r\n * also true.\r\n * @returns The result of the target function\r\n */\nexport function runTargetUnload(target, isAsync) {\n if (target && target[_DYN_UNLOAD /* @min:%2eunload */]) {\n return target[_DYN_UNLOAD /* @min:%2eunload */](isAsync);\n }\n}\n/**\r\n * Call the unload function on all targets handling any returned [IPromise](https://nevware21.github.io/ts-async/typedoc/interfaces/IPromise.html)\r\n * / Promise before calling the next targets unload\r\n * @param targets - An array of the targets to unload\r\n * @param isAsync - The caller identifies whether it is expecting the operations to complete synchronously or asynchronously. Even\r\n * if the caller is not waiting the operation may still be performed asynchronously depending on the component and the reverse is\r\n * also true.\r\n * @param done - Optional callback function to call once all of the unload functions have been called.\r\n */\nexport function doUnloadAll(targets, isAsync, done) {\n var result;\n if (!done) {\n result = createPromise(function (resolved) {\n done = resolved;\n });\n }\n if (targets && getLength(targets) > 0) {\n doAwaitResponse(runTargetUnload(targets[0], isAsync), function () {\n doUnloadAll(arrSlice(targets, 1), isAsync, done);\n });\n } else {\n done();\n }\n return result;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nexport var ChannelControllerPriority = 500;\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { asString, isBoolean, isFunction, isNullOrUndefined, isString } from \"@nevware21/ts-utils\";\nimport { STR_EMPTY } from \"../JavaScriptSDK/InternalConstants\";\nimport { _DYN_BLK_VAL, _DYN_TO_LOWER_CASE } from \"../__DynamicConstants\";\n/**\r\n * @internal\r\n * @ignore\r\n * @param str\r\n * @param defaultValue\r\n * @returns\r\n */\nfunction _stringToBoolOrDefault(theValue, defaultValue, theConfig) {\n if (!theValue && isNullOrUndefined(theValue)) {\n return defaultValue;\n }\n if (isBoolean(theValue)) {\n return theValue;\n }\n return asString(theValue)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]() === \"true\";\n}\n/**\r\n * Helper which returns an IConfigDefaultCheck instance with the field defined as an object\r\n * that should be merged\r\n * @param defaultValue - The default value to apply it not provided or it's not valid\r\n * @returns a new IConfigDefaultCheck structure\r\n */\nexport function cfgDfMerge(defaultValue) {\n return {\n mrg: true,\n v: defaultValue\n };\n}\n/**\r\n * Helper which returns an IConfigDefaultCheck instance with the provided field set function\r\n * @param setter - The IConfigCheckFn function to validate the user provided value\r\n * @param defaultValue - The default value to apply it not provided or it's not valid\r\n * @returns a new IConfigDefaultCheck structure\r\n */\nexport function cfgDfSet(setter, defaultValue) {\n return {\n set: setter,\n v: defaultValue\n };\n}\n/**\r\n * Helper which returns an IConfigDefaultCheck instance with the provided field validator\r\n * @param validator - The IConfigCheckFn function to validate the user provided value\r\n * @param defaultValue - The default value to apply it not provided or it's not valid\r\n * @param fallBackName - The fallback configuration name if the current value is not available\r\n * @returns a new IConfigDefaultCheck structure\r\n */\nexport function cfgDfValidate(validator, defaultValue, fallBackName) {\n return {\n fb: fallBackName,\n isVal: validator,\n v: defaultValue\n };\n}\n/**\r\n * Helper which returns an IConfigDefaultCheck instance that will validate and convert the user\r\n * provided value to a boolean from a string or boolean value\r\n * @param defaultValue - The default value to apply it not provided or it's not valid\r\n * @param fallBackName - The fallback configuration name if the current value is not available\r\n * @returns a new IConfigDefaultCheck structure\r\n */\nexport function cfgDfBoolean(defaultValue, fallBackName) {\n return {\n fb: fallBackName,\n set: _stringToBoolOrDefault,\n v: !!defaultValue\n };\n}\n/**\r\n * Helper which returns an IConfigDefaultCheck instance that will validate that the user\r\n * provided value is a function.\r\n * @param defaultValue - The default value to apply it not provided or it's not valid\r\n * @returns a new IConfigDefaultCheck structure\r\n */\nexport function cfgDfFunc(defaultValue) {\n return {\n isVal: isFunction,\n v: defaultValue || null\n };\n}\n/**\r\n * Helper which returns an IConfigDefaultCheck instance that will validate that the user\r\n * provided value is a function.\r\n * @param defaultValue - The default string value to apply it not provided or it's not valid, defaults to an empty string\r\n * @returns a new IConfigDefaultCheck structure\r\n */\nexport function cfgDfString(defaultValue) {\n return {\n isVal: isString,\n v: asString(defaultValue || STR_EMPTY)\n };\n}\n/**\r\n * Helper which returns an IConfigDefaultCheck instance identifying that value associated with this property\r\n * should not have it's properties converted into a dynamic config properties.\r\n * @param defaultValue - The default value to apply it not provided or it's not valid\r\n * @returns a new IConfigDefaultCheck structure\r\n */\nexport function cfgDfBlockPropValue(defaultValue) {\n var _a;\n return _a = {}, _a[_DYN_BLK_VAL /* @min:blkVal */] = true, _a.v = defaultValue, _a;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { getInst } from \"@nevware21/ts-utils\";\nimport { _DYN_APPLY, _DYN_LENGTH } from \"../__DynamicConstants\";\nimport { STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_EVENTS_SENT, STR_PERF_EVENT } from \"./InternalConstants\";\nvar listenerFuncs = [STR_EVENTS_SENT, STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_PERF_EVENT];\nvar _aiNamespace = null;\nvar _debugListener;\nfunction _listenerProxyFunc(name, config) {\n return function () {\n var args = arguments;\n var dbgExt = getDebugExt(config);\n if (dbgExt) {\n var listener = dbgExt.listener;\n if (listener && listener[name]) {\n listener[name][_DYN_APPLY /* @min:%2eapply */](listener, args);\n }\n }\n };\n}\nfunction _getExtensionNamespace() {\n // Cache the lookup of the global namespace object\n var target = getInst(\"Microsoft\");\n if (target) {\n _aiNamespace = target[\"ApplicationInsights\"];\n }\n return _aiNamespace;\n}\nexport function getDebugExt(config) {\n var ns = _aiNamespace;\n if (!ns && config.disableDbgExt !== true) {\n ns = _aiNamespace || _getExtensionNamespace();\n }\n return ns ? ns[\"ChromeDbgExt\"] : null;\n}\nexport function getDebugListener(config) {\n if (!_debugListener) {\n _debugListener = {};\n for (var lp = 0; lp < listenerFuncs[_DYN_LENGTH /* @min:%2elength */]; lp++) {\n _debugListener[listenerFuncs[lp]] = _listenerProxyFunc(listenerFuncs[lp], config);\n }\n }\n return _debugListener;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nvar _a;\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { dumpObj, isFunction, isUndefined } from \"@nevware21/ts-utils\";\nimport { createDynamicConfig, onConfigChange } from \"../Config/DynamicConfig\";\nimport { _DYN_DIAG_LOG, _DYN_LOGGER, _DYN_LOGGING_LEVEL_CONSOL4, _DYN_LOG_INTERNAL_MESSAGE, _DYN_MESSAGE, _DYN_MESSAGE_ID, _DYN_PUSH, _DYN_REPLACE, _DYN_THROW_INTERNAL, _DYN_UNLOAD, _DYN_WARN_TO_CONSOLE } from \"../__DynamicConstants\";\nimport { getDebugExt } from \"./DbgExtensionUtils\";\nimport { getConsole, getJSON, hasJSON } from \"./EnvUtils\";\nimport { STR_EMPTY } from \"./InternalConstants\";\nvar STR_WARN_TO_CONSOLE = \"warnToConsole\";\n/**\r\n * For user non actionable traces use AI Internal prefix.\r\n */\nvar AiNonUserActionablePrefix = \"AI (Internal): \";\n/**\r\n * Prefix of the traces in portal.\r\n */\nvar AiUserActionablePrefix = \"AI: \";\n/**\r\n * Session storage key for the prefix for the key indicating message type already logged\r\n */\nvar AIInternalMessagePrefix = \"AITR_\";\nvar defaultValues = {\n loggingLevelConsole: 0,\n loggingLevelTelemetry: 1,\n maxMessageLimit: 25,\n enableDebug: false\n};\nvar _logFuncs = (_a = {}, _a[0 /* eLoggingSeverity.DISABLED */] = null, _a[1 /* eLoggingSeverity.CRITICAL */] = \"errorToConsole\", _a[2 /* eLoggingSeverity.WARNING */] = STR_WARN_TO_CONSOLE, _a[3 /* eLoggingSeverity.DEBUG */] = \"debugToConsole\", _a);\nfunction _sanitizeDiagnosticText(text) {\n if (text) {\n return \"\\\"\" + text[_DYN_REPLACE /* @min:%2ereplace */](/\\\"/g, STR_EMPTY) + \"\\\"\";\n }\n return STR_EMPTY;\n}\nfunction _logToConsole(func, message) {\n var theConsole = getConsole();\n if (!!theConsole) {\n var logFunc = \"log\";\n if (theConsole[func]) {\n logFunc = func;\n }\n if (isFunction(theConsole[logFunc])) {\n theConsole[logFunc](message);\n }\n }\n}\nvar _InternalLogMessage = /** @class */function () {\n function _InternalLogMessage(msgId, msg, isUserAct, properties) {\n if (isUserAct === void 0) {\n isUserAct = false;\n }\n var _self = this;\n _self[_DYN_MESSAGE_ID /* @min:%2emessageId */] = msgId;\n _self[_DYN_MESSAGE /* @min:%2emessage */] = (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) + msgId;\n var strProps = STR_EMPTY;\n if (hasJSON()) {\n strProps = getJSON().stringify(properties);\n }\n var diagnosticText = (msg ? \" message:\" + _sanitizeDiagnosticText(msg) : STR_EMPTY) + (properties ? \" props:\" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);\n _self[_DYN_MESSAGE /* @min:%2emessage */] += diagnosticText;\n }\n _InternalLogMessage.dataType = \"MessageData\";\n return _InternalLogMessage;\n}();\nexport { _InternalLogMessage };\nexport function safeGetLogger(core, config) {\n return (core || {})[_DYN_LOGGER /* @min:%2elogger */] || new DiagnosticLogger(config);\n}\nvar DiagnosticLogger = /** @class */function () {\n function DiagnosticLogger(config) {\n this.identifier = \"DiagnosticLogger\";\n /**\r\n * The internal logging queue\r\n */\n this.queue = [];\n /**\r\n * Count of internal messages sent\r\n */\n var _messageCount = 0;\n /**\r\n * Holds information about what message types were already logged to console or sent to server.\r\n */\n var _messageLogged = {};\n var _loggingLevelConsole;\n var _loggingLevelTelemetry;\n var _maxInternalMessageLimit;\n var _enableDebug;\n var _unloadHandler;\n dynamicProto(DiagnosticLogger, this, function (_self) {\n _unloadHandler = _setDefaultsFromConfig(config || {});\n _self.consoleLoggingLevel = function () {\n return _loggingLevelConsole;\n };\n /**\r\n * This method will throw exceptions in debug mode or attempt to log the error as a console warning.\r\n * @param severity - {LoggingSeverity} - The severity of the log message\r\n * @param message - {_InternalLogMessage} - The log message.\r\n */\n _self[_DYN_THROW_INTERNAL /* @min:%2ethrowInternal */] = function (severity, msgId, msg, properties, isUserAct) {\n if (isUserAct === void 0) {\n isUserAct = false;\n }\n var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);\n if (_enableDebug) {\n throw dumpObj(message);\n } else {\n // Get the logging function and fallback to warnToConsole of for some reason errorToConsole doesn't exist\n var logFunc = _logFuncs[severity] || STR_WARN_TO_CONSOLE;\n if (!isUndefined(message[_DYN_MESSAGE /* @min:%2emessage */])) {\n if (isUserAct) {\n // check if this message type was already logged to console for this page view and if so, don't log it again\n var messageKey = +message[_DYN_MESSAGE_ID /* @min:%2emessageId */];\n if (!_messageLogged[messageKey] && _loggingLevelConsole >= severity) {\n _self[logFunc](message[_DYN_MESSAGE /* @min:%2emessage */]);\n _messageLogged[messageKey] = true;\n }\n } else {\n // Only log traces if the console Logging Level is >= the throwInternal severity level\n if (_loggingLevelConsole >= severity) {\n _self[logFunc](message[_DYN_MESSAGE /* @min:%2emessage */]);\n }\n }\n _logInternalMessage(severity, message);\n } else {\n _debugExtMsg(\"throw\" + (severity === 1 /* eLoggingSeverity.CRITICAL */ ? \"Critical\" : \"Warning\"), message);\n }\n }\n };\n _self.debugToConsole = function (message) {\n _logToConsole(\"debug\", message);\n _debugExtMsg(\"warning\", message);\n };\n _self[_DYN_WARN_TO_CONSOLE /* @min:%2ewarnToConsole */] = function (message) {\n _logToConsole(\"warn\", message);\n _debugExtMsg(\"warning\", message);\n };\n _self.errorToConsole = function (message) {\n _logToConsole(\"error\", message);\n _debugExtMsg(\"error\", message);\n };\n _self.resetInternalMessageCount = function () {\n _messageCount = 0;\n _messageLogged = {};\n };\n _self[_DYN_LOG_INTERNAL_MESSAGE /* @min:%2elogInternalMessage */] = _logInternalMessage;\n _self[_DYN_UNLOAD /* @min:%2eunload */] = function (isAsync) {\n _unloadHandler && _unloadHandler.rm();\n _unloadHandler = null;\n };\n function _logInternalMessage(severity, message) {\n if (_areInternalMessagesThrottled()) {\n return;\n }\n // check if this message type was already logged for this session and if so, don't log it again\n var logMessage = true;\n var messageKey = AIInternalMessagePrefix + message[_DYN_MESSAGE_ID /* @min:%2emessageId */];\n // if the session storage is not available, limit to only one message type per page view\n if (_messageLogged[messageKey]) {\n logMessage = false;\n } else {\n _messageLogged[messageKey] = true;\n }\n if (logMessage) {\n // Push the event in the internal queue\n if (severity <= _loggingLevelTelemetry) {\n _self.queue[_DYN_PUSH /* @min:%2epush */](message);\n _messageCount++;\n _debugExtMsg(severity === 1 /* eLoggingSeverity.CRITICAL */ ? \"error\" : \"warn\", message);\n }\n // When throttle limit reached, send a special event\n if (_messageCount === _maxInternalMessageLimit) {\n var throttleLimitMessage = \"Internal events throttle limit per PageView reached for this app.\";\n var throttleMessage = new _InternalLogMessage(23 /* _eInternalMessageId.MessageLimitPerPVExceeded */, throttleLimitMessage, false);\n _self.queue[_DYN_PUSH /* @min:%2epush */](throttleMessage);\n if (severity === 1 /* eLoggingSeverity.CRITICAL */) {\n _self.errorToConsole(throttleLimitMessage);\n } else {\n _self[_DYN_WARN_TO_CONSOLE /* @min:%2ewarnToConsole */](throttleLimitMessage);\n }\n }\n }\n }\n function _setDefaultsFromConfig(config) {\n // make sure the config is dynamic\n return onConfigChange(createDynamicConfig(config, defaultValues, _self).cfg, function (details) {\n var config = details.cfg;\n _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 /* @min:%2eloggingLevelConsole */];\n _loggingLevelTelemetry = config.loggingLevelTelemetry;\n _maxInternalMessageLimit = config.maxMessageLimit;\n _enableDebug = config.enableDebug;\n });\n }\n function _areInternalMessagesThrottled() {\n return _messageCount >= _maxInternalMessageLimit;\n }\n function _debugExtMsg(name, data) {\n var dbgExt = getDebugExt(config || {});\n if (dbgExt && dbgExt[_DYN_DIAG_LOG /* @min:%2ediagLog */]) {\n dbgExt[_DYN_DIAG_LOG /* @min:%2ediagLog */](name, data);\n }\n }\n });\n }\n // Removed Stub for DiagnosticLogger.prototype.consoleLoggingLevel.\n // Removed Stub for DiagnosticLogger.prototype.throwInternal.\n // Removed Stub for DiagnosticLogger.prototype.debugToConsole.\n // Removed Stub for DiagnosticLogger.prototype.warnToConsole.\n // Removed Stub for DiagnosticLogger.prototype.errorToConsole.\n // Removed Stub for DiagnosticLogger.prototype.resetInternalMessageCount.\n // Removed Stub for DiagnosticLogger.prototype.logInternalMessage.\n // Removed Stub for DiagnosticLogger.prototype.unload.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n DiagnosticLogger.__ieDyn = 1;\n return DiagnosticLogger;\n}();\nexport { DiagnosticLogger };\nfunction _getLogger(logger) {\n return logger || new DiagnosticLogger();\n}\n/**\r\n * This is a helper method which will call throwInternal on the passed logger, will throw exceptions in\r\n * debug mode or attempt to log the error as a console warning. This helper is provided mostly to better\r\n * support minification as logger.throwInternal() will not compress the publish \"throwInternal\" used throughout\r\n * the code.\r\n * @param logger - The Diagnostic Logger instance to use.\r\n * @param severity - {LoggingSeverity} - The severity of the log message\r\n * @param message - {_InternalLogMessage} - The log message.\r\n */\nexport function _throwInternal(logger, severity, msgId, msg, properties, isUserAct) {\n if (isUserAct === void 0) {\n isUserAct = false;\n }\n _getLogger(logger)[_DYN_THROW_INTERNAL /* @min:%2ethrowInternal */](severity, msgId, msg, properties, isUserAct);\n}\n/**\r\n * This is a helper method which will call warnToConsole on the passed logger with the provided message.\r\n * @param logger - The Diagnostic Logger instance to use.\r\n * @param message - {_InternalLogMessage} - The log message.\r\n */\nexport function _warnToConsole(logger, message) {\n _getLogger(logger)[_DYN_WARN_TO_CONSOLE /* @min:%2ewarnToConsole */](message);\n}\n/**\r\n * Logs a message to the internal queue.\r\n * @param logger - The Diagnostic Logger instance to use.\r\n * @param severity - {LoggingSeverity} - The severity of the log message\r\n * @param message - {_InternalLogMessage} - The message to log.\r\n */\nexport function _logInternalMessage(logger, severity, message) {\n _getLogger(logger)[_DYN_LOG_INTERNAL_MESSAGE /* @min:%2elogInternalMessage */](severity, message);\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nvar _a, _b;\nimport { arrForEach, arrIndexOf, dumpObj, getDocument, getLazy, getNavigator, isArray, isFunction, isNullOrUndefined, isString, isTruthy, isUndefined, objForEachKey, strEndsWith, strIndexOf, strLeft, strSubstring, strTrim, utcNow } from \"@nevware21/ts-utils\";\nimport { cfgDfMerge } from \"../Config/ConfigDefaultHelpers\";\nimport { createDynamicConfig, onConfigChange } from \"../Config/DynamicConfig\";\nimport { _DYN_ENABLED, _DYN_LENGTH, _DYN_LOGGER, _DYN_SET_DF, _DYN_SPLIT, _DYN_UNLOAD, _DYN_USER_AGENT } from \"../__DynamicConstants\";\nimport { _throwInternal } from \"./DiagnosticLogger\";\nimport { getLocation, isIE } from \"./EnvUtils\";\nimport { getExceptionName, isNotNullOrUndefined, setValue, strContains } from \"./HelperFuncs\";\nimport { STR_DOMAIN, STR_EMPTY, STR_PATH, UNDEFINED_VALUE } from \"./InternalConstants\";\nvar strToGMTString = \"toGMTString\";\nvar strToUTCString = \"toUTCString\";\nvar strCookie = \"cookie\";\nvar strExpires = \"expires\";\nvar strIsCookieUseDisabled = \"isCookieUseDisabled\";\nvar strDisableCookiesUsage = \"disableCookiesUsage\";\nvar strConfigCookieMgr = \"_ckMgr\";\nvar _supportsCookies = null;\nvar _allowUaSameSite = null;\nvar _parsedCookieValue = null;\nvar _doc;\nvar _cookieCache = {};\nvar _globalCookieConfig = {};\n// // `isCookieUseDisabled` is deprecated, so explicitly casting as a key of IConfiguration to avoid typing error\n// // when both isCookieUseDisabled and disableCookiesUsage are used disableCookiesUsage will take precedent, which is\n// // why its listed first\n/**\r\n * Set the supported dynamic config values as undefined (or an empty object) so that\r\n * any listeners will be informed of any changes.\r\n * Explicitly NOT including the deprecated `isCookieUseDisabled` as we don't want to support\r\n * the v1 deprecated field as dynamic for updates\r\n */\nvar rootDefaultConfig = (_a = {\n cookieCfg: cfgDfMerge((_b = {}, _b[STR_DOMAIN] = {\n fb: \"cookieDomain\",\n dfVal: isNotNullOrUndefined\n }, _b.path = {\n fb: \"cookiePath\",\n dfVal: isNotNullOrUndefined\n }, _b.enabled = UNDEFINED_VALUE, _b.ignoreCookies = UNDEFINED_VALUE, _b.blockedCookies = UNDEFINED_VALUE, _b)),\n cookieDomain: UNDEFINED_VALUE,\n cookiePath: UNDEFINED_VALUE\n}, _a[strDisableCookiesUsage] = UNDEFINED_VALUE, _a);\nfunction _getDoc() {\n !_doc && (_doc = getLazy(function () {\n return getDocument();\n }));\n}\n/**\r\n * @ignore\r\n * DO NOT USE or export from the module, this is exposed as public to support backward compatibility of previous static utility methods only.\r\n * If you want to manager cookies either use the ICookieMgr available from the core instance via getCookieMgr() or create\r\n * your own instance of the CookieMgr and use that.\r\n * Using this directly for enabling / disabling cookie handling will not only affect your usage but EVERY user of cookies.\r\n * Example, if you are using a shared component that is also using Application Insights you will affect their cookie handling.\r\n * @param logger - The DiagnosticLogger to use for reporting errors.\r\n */\nfunction _gblCookieMgr(config, logger) {\n // Stash the global instance against the BaseCookieMgr class\n var inst = createCookieMgr[strConfigCookieMgr] || _globalCookieConfig[strConfigCookieMgr];\n if (!inst) {\n // Note: not using the getSetValue() helper as that would require always creating a temporary cookieMgr\n // that ultimately is never used\n inst = createCookieMgr[strConfigCookieMgr] = createCookieMgr(config, logger);\n _globalCookieConfig[strConfigCookieMgr] = inst;\n }\n return inst;\n}\nfunction _isMgrEnabled(cookieMgr) {\n if (cookieMgr) {\n return cookieMgr.isEnabled();\n }\n return true;\n}\nfunction _isIgnoredCookie(cookieMgrCfg, name) {\n if (name && cookieMgrCfg && isArray(cookieMgrCfg.ignoreCookies)) {\n return arrIndexOf(cookieMgrCfg.ignoreCookies, name) !== -1;\n }\n return false;\n}\nfunction _isBlockedCookie(cookieMgrCfg, name) {\n if (name && cookieMgrCfg && isArray(cookieMgrCfg.blockedCookies)) {\n if (arrIndexOf(cookieMgrCfg.blockedCookies, name) !== -1) {\n return true;\n }\n }\n return _isIgnoredCookie(cookieMgrCfg, name);\n}\nfunction _isCfgEnabled(rootConfig, cookieMgrConfig) {\n var isCfgEnabled = cookieMgrConfig[_DYN_ENABLED /* @min:%2eenabled */];\n if (isNullOrUndefined(isCfgEnabled)) {\n // Set the enabled from the provided setting or the legacy root values\n var cookieEnabled = void 0;\n // This field is deprecated and dynamic updates will not be fully supported\n if (!isUndefined(rootConfig[strIsCookieUseDisabled])) {\n cookieEnabled = !rootConfig[strIsCookieUseDisabled];\n }\n // If this value is defined it takes precedent over the above\n if (!isUndefined(rootConfig[strDisableCookiesUsage])) {\n cookieEnabled = !rootConfig[strDisableCookiesUsage];\n }\n // Not setting the cookieMgrConfig.enabled as that will update (set) the global dynamic config\n // So future \"updates\" then may not be as expected\n isCfgEnabled = cookieEnabled;\n }\n return isCfgEnabled;\n}\n/**\r\n * Helper to return the ICookieMgr from the core (if not null/undefined) or a default implementation\r\n * associated with the configuration or a legacy default.\r\n * @param core\r\n * @param config\r\n * @returns\r\n */\nexport function safeGetCookieMgr(core, config) {\n var cookieMgr;\n if (core) {\n // Always returns an instance\n cookieMgr = core.getCookieMgr();\n } else if (config) {\n var cookieCfg = config.cookieCfg;\n if (cookieCfg && cookieCfg[strConfigCookieMgr]) {\n cookieMgr = cookieCfg[strConfigCookieMgr];\n } else {\n cookieMgr = createCookieMgr(config);\n }\n }\n if (!cookieMgr) {\n // Get or initialize the default global (legacy) cookie manager if we couldn't find one\n cookieMgr = _gblCookieMgr(config, (core || {})[_DYN_LOGGER /* @min:%2elogger */]);\n }\n return cookieMgr;\n}\nexport function createCookieMgr(rootConfig, logger) {\n var _a;\n var cookieMgrConfig;\n var _path;\n var _domain;\n var unloadHandler;\n // Explicitly checking against false, so that setting to undefined will === true\n var _enabled;\n var _getCookieFn;\n var _setCookieFn;\n var _delCookieFn;\n // Make sure the root config is dynamic as it may be the global config\n rootConfig = createDynamicConfig(rootConfig || _globalCookieConfig, null, logger).cfg;\n // Will get recalled if the referenced configuration is changed\n unloadHandler = onConfigChange(rootConfig, function (details) {\n // Make sure the root config has all of the the defaults to the root config to ensure they are dynamic\n details[_DYN_SET_DF /* @min:%2esetDf */](details.cfg, rootDefaultConfig);\n // Create and apply the defaults to the cookieCfg element\n cookieMgrConfig = details.ref(details.cfg, \"cookieCfg\"); // details.setDf(details.cfg.cookieCfg, defaultConfig);\n _path = cookieMgrConfig[STR_PATH /* @min:%2epath */] || \"/\";\n _domain = cookieMgrConfig[STR_DOMAIN /* @min:%2edomain */];\n // Explicitly checking against false, so that setting to undefined will === true\n _enabled = _isCfgEnabled(rootConfig, cookieMgrConfig) !== false;\n _getCookieFn = cookieMgrConfig.getCookie || _getCookieValue;\n _setCookieFn = cookieMgrConfig.setCookie || _setCookieValue;\n _delCookieFn = cookieMgrConfig.delCookie || _setCookieValue;\n }, logger);\n var cookieMgr = (_a = {\n isEnabled: function () {\n var enabled = _isCfgEnabled(rootConfig, cookieMgrConfig) !== false && _enabled && areCookiesSupported(logger);\n // Using an indirect lookup for any global cookie manager to support tree shaking for SDK's\n // that don't use the \"applicationinsights-core\" version of the default cookie function\n var gblManager = _globalCookieConfig[strConfigCookieMgr];\n if (enabled && gblManager && cookieMgr !== gblManager) {\n // Make sure the GlobalCookie Manager instance (if not this instance) is also enabled.\n // As the global (deprecated) functions may have been called (for backward compatibility)\n enabled = _isMgrEnabled(gblManager);\n }\n return enabled;\n },\n setEnabled: function (value) {\n // Explicitly checking against false, so that setting to undefined will === true\n _enabled = value !== false;\n cookieMgrConfig[_DYN_ENABLED /* @min:%2eenabled */] = value;\n },\n set: function (name, value, maxAgeSec, domain, path) {\n var result = false;\n if (_isMgrEnabled(cookieMgr) && !_isBlockedCookie(cookieMgrConfig, name)) {\n var values = {};\n var theValue = strTrim(value || STR_EMPTY);\n var idx = strIndexOf(theValue, \";\");\n if (idx !== -1) {\n theValue = strTrim(strLeft(value, idx));\n values = _extractParts(strSubstring(value, idx + 1));\n }\n // Only update domain if not already present (isUndefined) and the value is truthy (not null, undefined or empty string)\n setValue(values, STR_DOMAIN, domain || _domain, isTruthy, isUndefined);\n if (!isNullOrUndefined(maxAgeSec)) {\n var _isIE = isIE();\n if (isUndefined(values[strExpires])) {\n var nowMs = utcNow();\n // Only add expires if not already present\n var expireMs = nowMs + maxAgeSec * 1000;\n // Sanity check, if zero or -ve then ignore\n if (expireMs > 0) {\n var expiry = new Date();\n expiry.setTime(expireMs);\n setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);\n }\n }\n if (!_isIE) {\n // Only replace if not already present\n setValue(values, \"max-age\", STR_EMPTY + maxAgeSec, null, isUndefined);\n }\n }\n var location_1 = getLocation();\n if (location_1 && location_1.protocol === \"https:\") {\n setValue(values, \"secure\", null, null, isUndefined);\n // Only set same site if not also secure\n if (_allowUaSameSite === null) {\n _allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {})[_DYN_USER_AGENT /* @min:%2euserAgent */]);\n }\n if (_allowUaSameSite) {\n setValue(values, \"SameSite\", \"None\", null, isUndefined);\n }\n }\n setValue(values, STR_PATH, path || _path, null, isUndefined);\n //let setCookieFn = cookieMgrConfig.setCookie || _setCookieValue;\n _setCookieFn(name, _formatCookieValue(theValue, values));\n result = true;\n }\n return result;\n },\n get: function (name) {\n var value = STR_EMPTY;\n if (_isMgrEnabled(cookieMgr) && !_isIgnoredCookie(cookieMgrConfig, name)) {\n value = _getCookieFn(name);\n }\n return value;\n },\n del: function (name, path) {\n var result = false;\n if (_isMgrEnabled(cookieMgr)) {\n // Only remove the cookie if the manager and cookie support has not been disabled\n result = cookieMgr.purge(name, path);\n }\n return result;\n },\n purge: function (name, path) {\n var _a;\n var result = false;\n if (areCookiesSupported(logger)) {\n // Setting the expiration date in the past immediately removes the cookie\n var values = (_a = {}, _a[STR_PATH] = path ? path : \"/\", _a[strExpires] = \"Thu, 01 Jan 1970 00:00:01 GMT\", _a);\n if (!isIE()) {\n // Set max age to expire now\n values[\"max-age\"] = \"0\";\n }\n // let delCookie = cookieMgrConfig.delCookie || _setCookieValue;\n _delCookieFn(name, _formatCookieValue(STR_EMPTY, values));\n result = true;\n }\n return result;\n }\n }, _a[_DYN_UNLOAD /* @min:unload */] = function (isAsync) {\n unloadHandler && unloadHandler.rm();\n unloadHandler = null;\n }, _a);\n // Associated this cookie manager with the config\n cookieMgr[strConfigCookieMgr] = cookieMgr;\n return cookieMgr;\n}\n/*\r\n* Helper method to tell if document.cookie object is supported by the runtime\r\n*/\nexport function areCookiesSupported(logger) {\n if (_supportsCookies === null) {\n _supportsCookies = false;\n !_doc && _getDoc();\n try {\n var doc = _doc.v || {};\n _supportsCookies = doc[strCookie] !== undefined;\n } catch (e) {\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 68 /* _eInternalMessageId.CannotAccessCookie */, \"Cannot access document.cookie - \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n }\n return _supportsCookies;\n}\nfunction _extractParts(theValue) {\n var values = {};\n if (theValue && theValue[_DYN_LENGTH /* @min:%2elength */]) {\n var parts = strTrim(theValue)[_DYN_SPLIT /* @min:%2esplit */](\";\");\n arrForEach(parts, function (thePart) {\n thePart = strTrim(thePart || STR_EMPTY);\n if (thePart) {\n var idx = strIndexOf(thePart, \"=\");\n if (idx === -1) {\n values[thePart] = null;\n } else {\n values[strTrim(strLeft(thePart, idx))] = strTrim(strSubstring(thePart, idx + 1));\n }\n }\n });\n }\n return values;\n}\nfunction _formatDate(theDate, func) {\n if (isFunction(theDate[func])) {\n return theDate[func]();\n }\n return null;\n}\nfunction _formatCookieValue(value, values) {\n var cookieValue = value || STR_EMPTY;\n objForEachKey(values, function (name, theValue) {\n cookieValue += \"; \" + name + (!isNullOrUndefined(theValue) ? \"=\" + theValue : STR_EMPTY);\n });\n return cookieValue;\n}\nfunction _getCookieValue(name) {\n var cookieValue = STR_EMPTY;\n !_doc && _getDoc();\n if (_doc.v) {\n var theCookie = _doc.v[strCookie] || STR_EMPTY;\n if (_parsedCookieValue !== theCookie) {\n _cookieCache = _extractParts(theCookie);\n _parsedCookieValue = theCookie;\n }\n cookieValue = strTrim(_cookieCache[name] || STR_EMPTY);\n }\n return cookieValue;\n}\nfunction _setCookieValue(name, cookieValue) {\n !_doc && _getDoc();\n if (_doc.v) {\n _doc.v[strCookie] = name + \"=\" + cookieValue;\n }\n}\nexport function uaDisallowsSameSiteNone(userAgent) {\n if (!isString(userAgent)) {\n return false;\n }\n // Cover all iOS based browsers here. This includes:\n // - Safari on iOS 12 for iPhone, iPod Touch, iPad\n // - WkWebview on iOS 12 for iPhone, iPod Touch, iPad\n // - Chrome on iOS 12 for iPhone, iPod Touch, iPad\n // All of which are broken by SameSite=None, because they use the iOS networking stack\n if (strContains(userAgent, \"CPU iPhone OS 12\") || strContains(userAgent, \"iPad; CPU OS 12\")) {\n return true;\n }\n // Cover Mac OS X based browsers that use the Mac OS networking stack. This includes:\n // - Safari on Mac OS X\n // This does not include:\n // - Internal browser on Mac OS X\n // - Chrome on Mac OS X\n // - Chromium on Mac OS X\n // Because they do not use the Mac OS networking stack.\n if (strContains(userAgent, \"Macintosh; Intel Mac OS X 10_14\") && strContains(userAgent, \"Version/\") && strContains(userAgent, \"Safari\")) {\n return true;\n }\n // Cover Mac OS X internal browsers that use the Mac OS networking stack. This includes:\n // - Internal browser on Mac OS X\n // This does not include:\n // - Safari on Mac OS X\n // - Chrome on Mac OS X\n // - Chromium on Mac OS X\n // Because they do not use the Mac OS networking stack.\n if (strContains(userAgent, \"Macintosh; Intel Mac OS X 10_14\") && strEndsWith(userAgent, \"AppleWebKit/605.1.15 (KHTML, like Gecko)\")) {\n return true;\n }\n // Cover Chrome 50-69, because some versions are broken by SameSite=None, and none in this range require it.\n // Note: this covers some pre-Chromium Edge versions, but pre-Chromim Edge does not require SameSite=None, so this is fine.\n // Note: this regex applies to Windows, Mac OS X, and Linux, deliberately.\n if (strContains(userAgent, \"Chrome/5\") || strContains(userAgent, \"Chrome/6\")) {\n return true;\n }\n // Unreal Engine runs Chromium 59, but does not advertise as Chrome until 4.23. Treat versions of Unreal\n // that don't specify their Chrome version as lacking support for SameSite=None.\n if (strContains(userAgent, \"UnrealEngine\") && !strContains(userAgent, \"Chrome\")) {\n return true;\n }\n // UCBrowser < 12.13.2 ignores Set-Cookie headers with SameSite=None\n // NB: this rule isn't complete - you need regex to make a complete rule.\n // See: https://www.chromium.org/updates/same-site/incompatible-clients\n if (strContains(userAgent, \"UCBrowser/12\") || strContains(userAgent, \"UCBrowser/11\")) {\n return true;\n }\n return false;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { createAllPromise, createPromise, doAwaitResponse } from \"@nevware21/ts-async\";\nimport { arrForEach, arrIndexOf, objDefine, scheduleTimeout } from \"@nevware21/ts-utils\";\nimport { createDynamicConfig } from \"../Config/DynamicConfig\";\nimport { _DYN_ADD_NOTIFICATION_LIS1, _DYN_IS_ASYNC, _DYN_IS_CHILD_EVT, _DYN_PUSH, _DYN_REMOVE_NOTIFICATION_2, _DYN_SPLICE, _DYN_UNLOAD, _DYN_WATCH } from \"../__DynamicConstants\";\nimport { STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_EVENTS_SENT, STR_PERF_EVENT } from \"./InternalConstants\";\nvar defaultValues = {\n perfEvtsSendAll: false\n};\nfunction _runListeners(listeners, name, isAsync, callback) {\n arrForEach(listeners, function (listener) {\n if (listener && listener[name]) {\n if (isAsync) {\n scheduleTimeout(function () {\n return callback(listener);\n }, 0);\n } else {\n try {\n callback(listener);\n } catch (e) {\n // Catch errors to ensure we don't block sending the requests\n }\n }\n }\n });\n}\n/**\r\n * Class to manage sending notifications to all the listeners.\r\n */\nvar NotificationManager = /** @class */function () {\n function NotificationManager(config) {\n this.listeners = [];\n var perfEvtsSendAll;\n var unloadHandler;\n var _listeners = [];\n var cfgHandler = createDynamicConfig(config, defaultValues);\n unloadHandler = cfgHandler[_DYN_WATCH /* @min:%2ewatch */](function (details) {\n perfEvtsSendAll = !!details.cfg.perfEvtsSendAll;\n });\n dynamicProto(NotificationManager, this, function (_self) {\n objDefine(_self, \"listeners\", {\n g: function () {\n return _listeners;\n }\n });\n _self[_DYN_ADD_NOTIFICATION_LIS1 /* @min:%2eaddNotificationListener */] = function (listener) {\n _listeners[_DYN_PUSH /* @min:%2epush */](listener);\n };\n /**\r\n * Removes all instances of the listener.\r\n * @param listener - AWTNotificationListener to remove.\r\n */\n _self[_DYN_REMOVE_NOTIFICATION_2 /* @min:%2eremoveNotificationListener */] = function (listener) {\n var index = arrIndexOf(_listeners, listener);\n while (index > -1) {\n _listeners[_DYN_SPLICE /* @min:%2esplice */](index, 1);\n index = arrIndexOf(_listeners, listener);\n }\n };\n /**\r\n * Notification for events sent.\r\n * @param events - The array of events that have been sent.\r\n */\n _self[STR_EVENTS_SENT /* @min:%2eeventsSent */] = function (events) {\n _runListeners(_listeners, STR_EVENTS_SENT, true, function (listener) {\n listener[STR_EVENTS_SENT /* @min:%2eeventsSent */](events);\n });\n };\n /**\r\n * Notification for events being discarded.\r\n * @param events - The array of events that have been discarded by the SDK.\r\n * @param reason - The reason for which the SDK discarded the events. The EventsDiscardedReason\r\n * constant should be used to check the different values.\r\n */\n _self[STR_EVENTS_DISCARDED /* @min:%2eeventsDiscarded */] = function (events, reason) {\n _runListeners(_listeners, STR_EVENTS_DISCARDED, true, function (listener) {\n listener[STR_EVENTS_DISCARDED /* @min:%2eeventsDiscarded */](events, reason);\n });\n };\n /**\r\n * [Optional] A function called when the events have been requested to be sent to the sever.\r\n * @param sendReason - The reason why the event batch is being sent.\r\n * @param isAsync - A flag which identifies whether the requests are being sent in an async or sync manner.\r\n */\n _self[STR_EVENTS_SEND_REQUEST /* @min:%2eeventsSendRequest */] = function (sendReason, isAsync) {\n _runListeners(_listeners, STR_EVENTS_SEND_REQUEST, isAsync, function (listener) {\n listener[STR_EVENTS_SEND_REQUEST /* @min:%2eeventsSendRequest */](sendReason, isAsync);\n });\n };\n _self[STR_PERF_EVENT /* @min:%2eperfEvent */] = function (perfEvent) {\n if (perfEvent) {\n // Send all events or only parent events\n if (perfEvtsSendAll || !perfEvent[_DYN_IS_CHILD_EVT /* @min:%2eisChildEvt */]()) {\n _runListeners(_listeners, STR_PERF_EVENT, false, function (listener) {\n if (perfEvent[_DYN_IS_ASYNC /* @min:%2eisAsync */]) {\n scheduleTimeout(function () {\n return listener[STR_PERF_EVENT /* @min:%2eperfEvent */](perfEvent);\n }, 0);\n } else {\n listener[STR_PERF_EVENT /* @min:%2eperfEvent */](perfEvent);\n }\n });\n }\n }\n };\n _self[_DYN_UNLOAD /* @min:%2eunload */] = function (isAsync) {\n var _finishUnload = function () {\n unloadHandler && unloadHandler.rm();\n unloadHandler = null;\n _listeners = [];\n };\n var waiting;\n _runListeners(_listeners, \"unload\", false, function (listener) {\n var asyncUnload = listener[_DYN_UNLOAD /* @min:%2eunload */](isAsync);\n if (asyncUnload) {\n if (!waiting) {\n waiting = [];\n }\n waiting[_DYN_PUSH /* @min:%2epush */](asyncUnload);\n }\n });\n if (waiting) {\n return createPromise(function (resolve) {\n return doAwaitResponse(createAllPromise(waiting), function () {\n _finishUnload();\n resolve();\n });\n });\n } else {\n _finishUnload();\n }\n };\n });\n }\n // Removed Stub for NotificationManager.prototype.addNotificationListener.\n // Removed Stub for NotificationManager.prototype.removeNotificationListener.\n // Removed Stub for NotificationManager.prototype.eventsSent.\n // Removed Stub for NotificationManager.prototype.eventsDiscarded.\n // Removed Stub for NotificationManager.prototype.eventsSendRequest.\n // Removed Stub for NotificationManager.prototype.perfEvent.\n // Removed Stub for NotificationManager.prototype.unload.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n NotificationManager.__ieDyn = 1;\n return NotificationManager;\n}();\nexport { NotificationManager };\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { isArray, isFunction, objDefine, utcNow } from \"@nevware21/ts-utils\";\nimport { _DYN_COMPLETE, _DYN_GET_CTX, _DYN_IS_ASYNC, _DYN_IS_CHILD_EVT, _DYN_LENGTH, _DYN_NAME, _DYN_PUSH, _DYN_SET_CTX, _DYN_TIME } from \"../__DynamicConstants\";\nimport { STR_GET_PERF_MGR, STR_PERF_EVENT } from \"./InternalConstants\";\nvar strExecutionContextKey = \"ctx\";\nvar strParentContextKey = \"ParentContextKey\";\nvar strChildrenContextKey = \"ChildrenContextKey\";\nvar _defaultPerfManager = null;\nvar PerfEvent = /** @class */function () {\n function PerfEvent(name, payloadDetails, isAsync) {\n var _self = this;\n _self.start = utcNow();\n _self[_DYN_NAME /* @min:%2ename */] = name;\n _self[_DYN_IS_ASYNC /* @min:%2eisAsync */] = isAsync;\n _self[_DYN_IS_CHILD_EVT /* @min:%2eisChildEvt */] = function () {\n return false;\n };\n if (isFunction(payloadDetails)) {\n // Create an accessor to minimize the potential performance impact of executing the payloadDetails callback\n var theDetails_1;\n objDefine(_self, \"payload\", {\n g: function () {\n // Delay the execution of the payloadDetails until needed\n if (!theDetails_1 && isFunction(payloadDetails)) {\n theDetails_1 = payloadDetails();\n // clear it out now so the referenced objects can be garbage collected\n payloadDetails = null;\n }\n return theDetails_1;\n }\n });\n }\n _self[_DYN_GET_CTX /* @min:%2egetCtx */] = function (key) {\n if (key) {\n // The parent and child links are located directly on the object (for better viewing in the DebugPlugin)\n if (key === PerfEvent[strParentContextKey] || key === PerfEvent[strChildrenContextKey]) {\n return _self[key];\n }\n return (_self[strExecutionContextKey] || {})[key];\n }\n return null;\n };\n _self[_DYN_SET_CTX /* @min:%2esetCtx */] = function (key, value) {\n if (key) {\n // Put the parent and child links directly on the object (for better viewing in the DebugPlugin)\n if (key === PerfEvent[strParentContextKey]) {\n // Simple assumption, if we are setting a parent then we must be a child\n if (!_self[key]) {\n _self[_DYN_IS_CHILD_EVT /* @min:%2eisChildEvt */] = function () {\n return true;\n };\n }\n _self[key] = value;\n } else if (key === PerfEvent[strChildrenContextKey]) {\n _self[key] = value;\n } else {\n var ctx = _self[strExecutionContextKey] = _self[strExecutionContextKey] || {};\n ctx[key] = value;\n }\n }\n };\n _self[_DYN_COMPLETE /* @min:%2ecomplete */] = function () {\n var childTime = 0;\n var childEvts = _self[_DYN_GET_CTX /* @min:%2egetCtx */](PerfEvent[strChildrenContextKey]);\n if (isArray(childEvts)) {\n for (var lp = 0; lp < childEvts[_DYN_LENGTH /* @min:%2elength */]; lp++) {\n var childEvt = childEvts[lp];\n if (childEvt) {\n childTime += childEvt[_DYN_TIME /* @min:%2etime */];\n }\n }\n }\n _self[_DYN_TIME /* @min:%2etime */] = utcNow() - _self.start;\n _self.exTime = _self[_DYN_TIME /* @min:%2etime */] - childTime;\n _self[_DYN_COMPLETE /* @min:%2ecomplete */] = function () {};\n };\n }\n PerfEvent.ParentContextKey = \"parent\";\n PerfEvent.ChildrenContextKey = \"childEvts\";\n return PerfEvent;\n}();\nexport { PerfEvent };\nvar PerfManager = /** @class */function () {\n function PerfManager(manager) {\n /**\r\n * General bucket used for execution context set and retrieved via setCtx() and getCtx.\r\n * Defined as private so it can be visualized via the DebugPlugin\r\n */\n this.ctx = {};\n dynamicProto(PerfManager, this, function (_self) {\n _self.create = function (src, payloadDetails, isAsync) {\n // TODO (@MSNev): at some point we will want to add additional configuration to \"select\" which events to instrument\n // for now this is just a simple do everything.\n return new PerfEvent(src, payloadDetails, isAsync);\n };\n _self.fire = function (perfEvent) {\n if (perfEvent) {\n perfEvent[_DYN_COMPLETE /* @min:%2ecomplete */]();\n if (manager && isFunction(manager[STR_PERF_EVENT /* @min:%2eperfEvent */])) {\n manager[STR_PERF_EVENT /* @min:%2eperfEvent */](perfEvent);\n }\n }\n };\n _self[_DYN_SET_CTX /* @min:%2esetCtx */] = function (key, value) {\n if (key) {\n var ctx = _self[strExecutionContextKey] = _self[strExecutionContextKey] || {};\n ctx[key] = value;\n }\n };\n _self[_DYN_GET_CTX /* @min:%2egetCtx */] = function (key) {\n return (_self[strExecutionContextKey] || {})[key];\n };\n });\n }\n // Removed Stub for PerfManager.prototype.create.\n // Removed Stub for PerfManager.prototype.fire.\n // Removed Stub for PerfManager.prototype.setCtx.\n // Removed Stub for PerfManager.prototype.getCtx.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n PerfManager.__ieDyn = 1;\n return PerfManager;\n}();\nexport { PerfManager };\nvar doPerfActiveKey = \"CoreUtils.doPerf\";\n/**\r\n * Helper function to wrap a function with a perf event\r\n * @param mgrSource - The Performance Manager or a Performance provider source (may be null)\r\n * @param getSource - The callback to create the source name for the event (if perf monitoring is enabled)\r\n * @param func - The function to call and measure\r\n * @param details - A function to return the payload details\r\n * @param isAsync - Is the event / function being call asynchronously or synchronously\r\n */\nexport function doPerf(mgrSource, getSource, func, details, isAsync) {\n if (mgrSource) {\n var perfMgr = mgrSource;\n if (perfMgr[STR_GET_PERF_MGR]) {\n // Looks like a perf manager provider object\n perfMgr = perfMgr[STR_GET_PERF_MGR]();\n }\n if (perfMgr) {\n var perfEvt = void 0;\n var currentActive = perfMgr[_DYN_GET_CTX /* @min:%2egetCtx */](doPerfActiveKey);\n try {\n perfEvt = perfMgr.create(getSource(), details, isAsync);\n if (perfEvt) {\n if (currentActive && perfEvt[_DYN_SET_CTX /* @min:%2esetCtx */]) {\n perfEvt[_DYN_SET_CTX /* @min:%2esetCtx */](PerfEvent[strParentContextKey], currentActive);\n if (currentActive[_DYN_GET_CTX /* @min:%2egetCtx */] && currentActive[_DYN_SET_CTX /* @min:%2esetCtx */]) {\n var children = currentActive[_DYN_GET_CTX /* @min:%2egetCtx */](PerfEvent[strChildrenContextKey]);\n if (!children) {\n children = [];\n currentActive[_DYN_SET_CTX /* @min:%2esetCtx */](PerfEvent[strChildrenContextKey], children);\n }\n children[_DYN_PUSH /* @min:%2epush */](perfEvt);\n }\n }\n // Set this event as the active event now\n perfMgr[_DYN_SET_CTX /* @min:%2esetCtx */](doPerfActiveKey, perfEvt);\n return func(perfEvt);\n }\n } catch (ex) {\n if (perfEvt && perfEvt[_DYN_SET_CTX /* @min:%2esetCtx */]) {\n perfEvt[_DYN_SET_CTX /* @min:%2esetCtx */](\"exception\", ex);\n }\n } finally {\n // fire the perf event\n if (perfEvt) {\n perfMgr.fire(perfEvt);\n }\n // Reset the active event to the previous value\n perfMgr[_DYN_SET_CTX /* @min:%2esetCtx */](doPerfActiveKey, currentActive);\n }\n }\n }\n return func();\n}\n/**\r\n * Set the global performance manager to use when there is no core instance or it has not been initialized yet.\r\n * @param perfManager - The IPerfManager instance to use when no performance manager is supplied.\r\n */\nexport function setGblPerfMgr(perfManager) {\n _defaultPerfManager = perfManager;\n}\n/**\r\n * Get the current global performance manager that will be used with no performance manager is supplied.\r\n * @returns - The current default manager\r\n */\nexport function getGblPerfMgr() {\n return _defaultPerfManager;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nimport { strShimUndefined } from \"@microsoft/applicationinsights-shims\";\nimport { strSubstr, strSubstring } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH } from \"../__DynamicConstants\";\nimport { STR_EMPTY } from \"./InternalConstants\";\nimport { random32 } from \"./RandomHelper\";\n// Added to help with minfication\nexport var Undefined = strShimUndefined;\nexport function newGuid() {\n var uuid = generateW3CId();\n return strSubstring(uuid, 0, 8) + \"-\" + strSubstring(uuid, 8, 12) + \"-\" + strSubstring(uuid, 12, 16) + \"-\" + strSubstring(uuid, 16, 20) + \"-\" + strSubstring(uuid, 20);\n}\n/**\r\n * The strEndsWith() method determines whether a string ends with the characters of a specified string, returning true or false as appropriate.\r\n * @param value - The value to check whether it ends with the search value.\r\n * @param search - The characters to be searched for at the end of the value.\r\n * @returns true if the given search value is found at the end of the string, otherwise false.\r\n */\nexport function strEndsWith(value, search) {\n if (value && search) {\n var len = value[_DYN_LENGTH /* @min:%2elength */];\n var start = len - search[_DYN_LENGTH /* @min:%2elength */];\n return strSubstring(value, start >= 0 ? start : 0, len) === search;\n }\n return false;\n}\n/**\r\n * generate W3C trace id\r\n */\nexport function generateW3CId() {\n var hexValues = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\"];\n // rfc4122 version 4 UUID without dashes and with lowercase letters\n var oct = STR_EMPTY,\n tmp;\n for (var a = 0; a < 4; a++) {\n tmp = random32();\n oct += hexValues[tmp & 0xF] + hexValues[tmp >> 4 & 0xF] + hexValues[tmp >> 8 & 0xF] + hexValues[tmp >> 12 & 0xF] + hexValues[tmp >> 16 & 0xF] + hexValues[tmp >> 20 & 0xF] + hexValues[tmp >> 24 & 0xF] + hexValues[tmp >> 28 & 0xF];\n }\n // \"Set the two most significant bits (bits 6 and 7) of the clock_seq_hi_and_reserved to zero and one, respectively\"\n var clockSequenceHi = hexValues[8 + (random32() & 0x03) | 0];\n return strSubstr(oct, 0, 8) + strSubstr(oct, 9, 4) + \"4\" + strSubstr(oct, 13, 3) + clockSequenceHi + strSubstr(oct, 16, 3) + strSubstr(oct, 19, 12);\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { isArray, isString, strLeft, strTrim } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH, _DYN_SPAN_ID, _DYN_SPLIT, _DYN_TO_LOWER_CASE, _DYN_TRACE_FLAGS, _DYN_TRACE_ID, _DYN_VERSION } from \"../__DynamicConstants\";\nimport { generateW3CId } from \"./CoreUtils\";\nimport { findMetaTag, findNamedServerTiming } from \"./EnvUtils\";\nimport { STR_EMPTY } from \"./InternalConstants\";\n// using {0,16} for leading and trailing whitespace just to constrain the possible runtime of a random string\nvar TRACE_PARENT_REGEX = /^([\\da-f]{2})-([\\da-f]{32})-([\\da-f]{16})-([\\da-f]{2})(-[^\\s]{1,64})?$/i;\nvar DEFAULT_VERSION = \"00\";\nvar INVALID_VERSION = \"ff\";\nvar INVALID_TRACE_ID = \"00000000000000000000000000000000\";\nvar INVALID_SPAN_ID = \"0000000000000000\";\nvar SAMPLED_FLAG = 0x01;\nfunction _isValid(value, len, invalidValue) {\n if (value && value[_DYN_LENGTH /* @min:%2elength */] === len && value !== invalidValue) {\n return !!value.match(/^[\\da-f]*$/i);\n }\n return false;\n}\nfunction _formatValue(value, len, defValue) {\n if (_isValid(value, len)) {\n return value;\n }\n return defValue;\n}\nfunction _formatFlags(value) {\n if (isNaN(value) || value < 0 || value > 255) {\n value = 0x01;\n }\n var result = value.toString(16);\n while (result[_DYN_LENGTH /* @min:%2elength */] < 2) {\n result = \"0\" + result;\n }\n return result;\n}\n/**\r\n * Create a new ITraceParent instance using the provided values.\r\n * @param traceId - The traceId to use, when invalid a new random W3C id will be generated.\r\n * @param spanId - The parent/span id to use, a new random value will be generated if it is invalid.\r\n * @param flags - The traceFlags to use, defaults to zero (0) if not supplied or invalid\r\n * @param version - The version to used, defaults to version \"01\" if not supplied or invalid.\r\n * @returns\r\n */\nexport function createTraceParent(traceId, spanId, flags, version) {\n var _a;\n return _a = {}, _a[_DYN_VERSION /* @min:version */] = _isValid(version, 2, INVALID_VERSION) ? version : DEFAULT_VERSION, _a[_DYN_TRACE_ID /* @min:traceId */] = isValidTraceId(traceId) ? traceId : generateW3CId(), _a[_DYN_SPAN_ID /* @min:spanId */] = isValidSpanId(spanId) ? spanId : strLeft(generateW3CId(), 16), _a.traceFlags = flags >= 0 && flags <= 0xFF ? flags : 1, _a;\n}\n/**\r\n * Attempt to parse the provided string as a W3C TraceParent header value (https://www.w3.org/TR/trace-context/#traceparent-header)\r\n *\r\n * @param value - The value to be parsed\r\n * @param selectIdx - If the found value is comma separated which is the preferred entry to select, defaults to the first\r\n * @returns\r\n */\nexport function parseTraceParent(value, selectIdx) {\n var _a;\n if (!value) {\n // Don't pass a null/undefined or empty string\n return null;\n }\n if (isArray(value)) {\n // The value may have been encoded on the page into an array so handle this automatically\n value = value[0] || \"\";\n }\n if (!value || !isString(value) || value[_DYN_LENGTH /* @min:%2elength */] > 8192) {\n // limit potential processing based on total length\n return null;\n }\n if (value.indexOf(\",\") !== -1) {\n var values = value[_DYN_SPLIT /* @min:%2esplit */](\",\");\n value = values[selectIdx > 0 && values[_DYN_LENGTH /* @min:%2elength */] > selectIdx ? selectIdx : 0];\n }\n // See https://www.w3.org/TR/trace-context/#versioning-of-traceparent\n var match = TRACE_PARENT_REGEX.exec(strTrim(value));\n if (!match ||\n // No match\n match[1] === INVALID_VERSION ||\n // version ff is forbidden\n match[2] === INVALID_TRACE_ID ||\n // All zeros is considered to be invalid\n match[3] === INVALID_SPAN_ID) {\n // All zeros is considered to be invalid\n return null;\n }\n return _a = {\n version: (match[1] || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */](),\n traceId: (match[2] || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */](),\n spanId: (match[3] || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]()\n }, _a[_DYN_TRACE_FLAGS /* @min:traceFlags */] = parseInt(match[4], 16), _a;\n}\n/**\r\n * Is the provided W3c Trace Id a valid string representation, it must be a 32-character string\r\n * of lowercase hexadecimal characters for example, 4bf92f3577b34da6a3ce929d0e0e4736.\r\n * If all characters as zero (00000000000000000000000000000000) it will be considered an invalid value.\r\n * @param value - The W3c trace Id to be validated\r\n * @returns true if valid otherwise false\r\n */\nexport function isValidTraceId(value) {\n return _isValid(value, 32, INVALID_TRACE_ID);\n}\n/**\r\n * Is the provided W3c span id (aka. parent id) a valid string representation, it must be a 16-character\r\n * string of lowercase hexadecimal characters, for example, 00f067aa0ba902b7.\r\n * If all characters are zero (0000000000000000) this is considered an invalid value.\r\n * @param value - The W3c span id to be validated\r\n * @returns true if valid otherwise false\r\n */\nexport function isValidSpanId(value) {\n return _isValid(value, 16, INVALID_SPAN_ID);\n}\n/**\r\n * Validates that the provided ITraceParent instance conforms to the currently supported specifications\r\n * @param value\r\n * @returns\r\n */\nexport function isValidTraceParent(value) {\n if (!value || !_isValid(value[_DYN_VERSION /* @min:%2eversion */], 2, INVALID_VERSION) || !_isValid(value[_DYN_TRACE_ID /* @min:%2etraceId */], 32, INVALID_TRACE_ID) || !_isValid(value[_DYN_SPAN_ID /* @min:%2espanId */], 16, INVALID_SPAN_ID) || !_isValid(_formatFlags(value[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */]), 2)) {\n // Each known field must contain a valid value\n return false;\n }\n return true;\n}\n/**\r\n * Is the parsed traceParent indicating that the trace is currently sampled.\r\n * @param value - The parsed traceParent value\r\n * @returns\r\n */\nexport function isSampledFlag(value) {\n if (isValidTraceParent(value)) {\n return (value[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] & SAMPLED_FLAG) === SAMPLED_FLAG;\n }\n return false;\n}\n/**\r\n * Format the ITraceParent value as a string using the supported and know version formats.\r\n * So even if the passed traceParent is a later version the string value returned from this\r\n * function will convert it to only the known version formats.\r\n * This currently only supports version \"00\" and invalid \"ff\"\r\n * @param value - The parsed traceParent value\r\n * @returns\r\n */\nexport function formatTraceParent(value) {\n if (value) {\n // Special Note: This only supports formatting as version 00, future versions should encode any known supported version\n // So parsing a future version will populate the correct version value but reformatting will reduce it to version 00.\n var flags = _formatFlags(value[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */]);\n if (!_isValid(flags, 2)) {\n flags = \"01\";\n }\n var version = value[_DYN_VERSION /* @min:%2eversion */] || DEFAULT_VERSION;\n if (version !== \"00\" && version !== \"ff\") {\n // Reduce version to \"00\"\n version = DEFAULT_VERSION;\n }\n // Format as version 00\n return \"\".concat(version.toLowerCase(), \"-\").concat(_formatValue(value.traceId, 32, INVALID_TRACE_ID).toLowerCase(), \"-\").concat(_formatValue(value.spanId, 16, INVALID_SPAN_ID).toLowerCase(), \"-\").concat(flags.toLowerCase());\n }\n return \"\";\n}\n/**\r\n * Helper function to fetch the passed traceparent from the page, looking for it as a meta-tag or a Server-Timing header.\r\n * @param selectIdx - If the found value is comma separated which is the preferred entry to select, defaults to the first\r\n * @returns\r\n */\nexport function findW3cTraceParent(selectIdx) {\n var name = \"traceparent\";\n var traceParent = parseTraceParent(findMetaTag(name), selectIdx);\n if (!traceParent) {\n traceParent = parseTraceParent(findNamedServerTiming(name), selectIdx);\n }\n return traceParent;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nimport { arrForEach, isFunction } from \"@nevware21/ts-utils\";\nimport { _DYN_GET_NEXT, _DYN_GET_PLUGIN, _DYN_INITIALIZE, _DYN_IS_INITIALIZED, _DYN_LENGTH, _DYN_NAME, _DYN_PUSH, _DYN_SET_NEXT_PLUGIN, _DYN_SPAN_ID, _DYN_TEARDOWN, _DYN_TRACE_FLAGS, _DYN_TRACE_ID, _DYN__DO_TEARDOWN } from \"../__DynamicConstants\";\nimport { createElmNodeData } from \"./DataCacheHelper\";\nimport { STR_CORE, STR_PRIORITY, STR_PROCESS_TELEMETRY } from \"./InternalConstants\";\nimport { isValidSpanId, isValidTraceId } from \"./W3cTraceParent\";\nvar pluginStateData = createElmNodeData(\"plugin\");\nexport function _getPluginState(plugin) {\n return pluginStateData.get(plugin, \"state\", {}, true);\n}\n/**\r\n * Initialize the queue of plugins\r\n * @param plugins - The array of plugins to initialize and setting of the next plugin\r\n * @param config - The current config for the instance\r\n * @param core - THe current core instance\r\n * @param extensions - The extensions\r\n */\nexport function initializePlugins(processContext, extensions) {\n // Set the next plugin and identified the uninitialized plugins\n var initPlugins = [];\n var lastPlugin = null;\n var proxy = processContext[_DYN_GET_NEXT /* @min:%2egetNext */]();\n var pluginState;\n while (proxy) {\n var thePlugin = proxy[_DYN_GET_PLUGIN /* @min:%2egetPlugin */]();\n if (thePlugin) {\n if (lastPlugin && lastPlugin[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */] && thePlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */]) {\n // Set this plugin as the next for the previous one\n lastPlugin[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */](thePlugin);\n }\n pluginState = _getPluginState(thePlugin);\n var isInitialized = !!pluginState[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */];\n if (thePlugin[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */]) {\n isInitialized = thePlugin[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */]();\n }\n if (!isInitialized) {\n initPlugins[_DYN_PUSH /* @min:%2epush */](thePlugin);\n }\n lastPlugin = thePlugin;\n proxy = proxy[_DYN_GET_NEXT /* @min:%2egetNext */]();\n }\n }\n // Now initialize the plugins\n arrForEach(initPlugins, function (thePlugin) {\n var core = processContext[STR_CORE /* @min:%2ecore */]();\n thePlugin[_DYN_INITIALIZE /* @min:%2einitialize */](processContext.getCfg(), core, extensions, processContext[_DYN_GET_NEXT /* @min:%2egetNext */]());\n pluginState = _getPluginState(thePlugin);\n // Only add the core to the state if the plugin didn't set it (doesn't extend from BaseTelemetryPlugin)\n if (!thePlugin[STR_CORE] && !pluginState[STR_CORE]) {\n pluginState[STR_CORE] = core;\n }\n pluginState[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */] = true;\n delete pluginState[_DYN_TEARDOWN /* @min:%2eteardown */];\n });\n}\nexport function sortPlugins(plugins) {\n // Sort by priority\n return plugins.sort(function (extA, extB) {\n var result = 0;\n if (extB) {\n var bHasProcess = extB[STR_PROCESS_TELEMETRY];\n if (extA[STR_PROCESS_TELEMETRY]) {\n result = bHasProcess ? extA[STR_PRIORITY] - extB[STR_PRIORITY] : 1;\n } else if (bHasProcess) {\n result = -1;\n }\n } else {\n result = extA ? 1 : -1;\n }\n return result;\n });\n // sort complete\n}\n/**\r\n * Teardown / Unload helper to perform teardown/unloading operations for the provided components synchronously or asynchronously, this will call any\r\n * _doTeardown() or _doUnload() functions on the provided components to allow them to finish removal.\r\n * @param components - The components you want to unload\r\n * @param unloadCtx - This is the context that should be used during unloading.\r\n * @param unloadState - The details / state of the unload process, it holds details like whether it should be unloaded synchronously or asynchronously and the reason for the unload.\r\n * @param asyncCallback - An optional callback that the plugin must call if it returns true to inform the caller that it has completed any async unload/teardown operations.\r\n * @returns boolean - true if the plugin has or will call asyncCallback, this allows the plugin to perform any asynchronous operations.\r\n */\nexport function unloadComponents(components, unloadCtx, unloadState, asyncCallback) {\n var idx = 0;\n function _doUnload() {\n while (idx < components[_DYN_LENGTH /* @min:%2elength */]) {\n var component = components[idx++];\n if (component) {\n var func = component._doUnload || component[_DYN__DO_TEARDOWN /* @min:%2e_doTeardown */];\n if (isFunction(func)) {\n if (func.call(component, unloadCtx, unloadState, _doUnload) === true) {\n return true;\n }\n }\n }\n }\n }\n return _doUnload();\n}\n/**\r\n * Creates a IDistributedTraceContext which optionally also \"sets\" the value on a parent\r\n * @param parentCtx - An optional parent distributed trace instance\r\n * @returns A new IDistributedTraceContext instance that uses an internal temporary object\r\n */\nexport function createDistributedTraceContext(parentCtx) {\n var trace = {};\n return {\n getName: function () {\n return trace[_DYN_NAME /* @min:%2ename */];\n },\n setName: function (newValue) {\n parentCtx && parentCtx.setName(newValue);\n trace[_DYN_NAME /* @min:%2ename */] = newValue;\n },\n getTraceId: function () {\n return trace[_DYN_TRACE_ID /* @min:%2etraceId */];\n },\n setTraceId: function (newValue) {\n parentCtx && parentCtx.setTraceId(newValue);\n if (isValidTraceId(newValue)) {\n trace[_DYN_TRACE_ID /* @min:%2etraceId */] = newValue;\n }\n },\n getSpanId: function () {\n return trace[_DYN_SPAN_ID /* @min:%2espanId */];\n },\n setSpanId: function (newValue) {\n parentCtx && parentCtx.setSpanId(newValue);\n if (isValidSpanId(newValue)) {\n trace[_DYN_SPAN_ID /* @min:%2espanId */] = newValue;\n }\n },\n getTraceFlags: function () {\n return trace[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */];\n },\n setTraceFlags: function (newTraceFlags) {\n parentCtx && parentCtx.setTraceFlags(newTraceFlags);\n trace[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = newTraceFlags;\n }\n };\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nimport { arrForEach, dumpObj, isArray, isFunction, isNullOrUndefined, isUndefined, objForEachKey, objFreeze, objKeys } from \"@nevware21/ts-utils\";\nimport { _applyDefaultValue } from \"../Config/ConfigDefaults\";\nimport { createDynamicConfig } from \"../Config/DynamicConfig\";\nimport { _DYN_CREATE_NEW, _DYN_DIAG_LOG, _DYN_GET_NEXT, _DYN_GET_PLUGIN, _DYN_IDENTIFIER, _DYN_IS_ASYNC, _DYN_IS_INITIALIZED, _DYN_LENGTH, _DYN_LOGGER, _DYN_PROCESS_NEXT, _DYN_PUSH, _DYN_SET_DF, _DYN_SET_NEXT_PLUGIN, _DYN_TEARDOWN, _DYN_UNLOAD, _DYN_UPDATE } from \"../__DynamicConstants\";\nimport { _throwInternal, safeGetLogger } from \"./DiagnosticLogger\";\nimport { proxyFunctions } from \"./HelperFuncs\";\nimport { STR_CORE, STR_DISABLED, STR_EMPTY, STR_EXTENSION_CONFIG, STR_PRIORITY, STR_PROCESS_TELEMETRY } from \"./InternalConstants\";\nimport { doPerf } from \"./PerfManager\";\nimport { _getPluginState } from \"./TelemetryHelpers\";\nvar strTelemetryPluginChain = \"TelemetryPluginChain\";\nvar strHasRunFlags = \"_hasRun\";\nvar strGetTelCtx = \"_getTelCtx\";\nvar _chainId = 0;\nfunction _getNextProxyStart(proxy, core, startAt) {\n while (proxy) {\n if (proxy[_DYN_GET_PLUGIN /* @min:%2egetPlugin */]() === startAt) {\n return proxy;\n }\n proxy = proxy[_DYN_GET_NEXT /* @min:%2egetNext */]();\n }\n // This wasn't found in the existing chain so create an isolated one with just this plugin\n return createTelemetryProxyChain([startAt], core.config || {}, core);\n}\n/**\r\n * @ignore\r\n * @param telemetryChain\r\n * @param dynamicHandler\r\n * @param core\r\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\r\n * @returns\r\n */\nfunction _createInternalContext(telemetryChain, dynamicHandler, core, startAt) {\n // We have a special case where we want to start execution from this specific plugin\n // or we simply reuse the existing telemetry plugin chain (normal execution case)\n var _nextProxy = null; // By Default set as no next plugin\n var _onComplete = [];\n if (!dynamicHandler) {\n dynamicHandler = createDynamicConfig({}, null, core[_DYN_LOGGER /* @min:%2elogger */]);\n }\n if (startAt !== null) {\n // There is no next element (null) vs not defined (undefined) so use the full chain\n _nextProxy = startAt ? _getNextProxyStart(telemetryChain, core, startAt) : telemetryChain;\n }\n var context = {\n _next: _moveNext,\n ctx: {\n core: function () {\n return core;\n },\n diagLog: function () {\n return safeGetLogger(core, dynamicHandler.cfg);\n },\n getCfg: function () {\n return dynamicHandler.cfg;\n },\n getExtCfg: _resolveExtCfg,\n getConfig: _getConfig,\n hasNext: function () {\n return !!_nextProxy;\n },\n getNext: function () {\n return _nextProxy;\n },\n setNext: function (nextPlugin) {\n _nextProxy = nextPlugin;\n },\n iterate: _iterateChain,\n onComplete: _addOnComplete\n }\n };\n function _addOnComplete(onComplete, that) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n if (onComplete) {\n _onComplete[_DYN_PUSH /* @min:%2epush */]({\n func: onComplete,\n self: !isUndefined(that) ? that : context.ctx,\n args: args\n });\n }\n }\n function _moveNext() {\n var nextProxy = _nextProxy;\n // Automatically move to the next plugin\n _nextProxy = nextProxy ? nextProxy[_DYN_GET_NEXT /* @min:%2egetNext */]() : null;\n if (!nextProxy) {\n var onComplete = _onComplete;\n if (onComplete && onComplete[_DYN_LENGTH /* @min:%2elength */] > 0) {\n arrForEach(onComplete, function (completeDetails) {\n try {\n completeDetails.func.call(completeDetails.self, completeDetails.args);\n } catch (e) {\n _throwInternal(core[_DYN_LOGGER /* @min:%2elogger */], 2 /* eLoggingSeverity.WARNING */, 73 /* _eInternalMessageId.PluginException */, \"Unexpected Exception during onComplete - \" + dumpObj(e));\n }\n });\n _onComplete = [];\n }\n }\n return nextProxy;\n }\n function _getExtCfg(identifier, createIfMissing) {\n var idCfg = null;\n var cfg = dynamicHandler.cfg;\n if (cfg && identifier) {\n var extCfg = cfg[STR_EXTENSION_CONFIG /* @min:%2eextensionConfig */];\n if (!extCfg && createIfMissing) {\n extCfg = {};\n }\n // Always set the value so that the property always exists\n cfg[STR_EXTENSION_CONFIG] = extCfg; // Note: it is valid for the \"value\" to be undefined\n // Calling `ref()` has a side effect of causing the referenced property to become dynamic (if not already)\n extCfg = dynamicHandler.ref(cfg, STR_EXTENSION_CONFIG);\n if (extCfg) {\n idCfg = extCfg[identifier];\n if (!idCfg && createIfMissing) {\n idCfg = {};\n }\n // Always set the value so that the property always exists\n extCfg[identifier] = idCfg; // Note: it is valid for the \"value\" to be undefined\n // Calling `ref()` has a side effect of causing the referenced property to become dynamic (if not already)\n idCfg = dynamicHandler.ref(extCfg, identifier);\n }\n }\n return idCfg;\n }\n function _resolveExtCfg(identifier, defaultValues) {\n var newConfig = _getExtCfg(identifier, true);\n if (defaultValues) {\n // Enumerate over the defaultValues and if not already populated attempt to\n // find a value from the root config or use the default value\n objForEachKey(defaultValues, function (field, defaultValue) {\n // for each unspecified field, set the default value\n if (isNullOrUndefined(newConfig[field])) {\n var cfgValue = dynamicHandler.cfg[field];\n if (cfgValue || !isNullOrUndefined(cfgValue)) {\n newConfig[field] = cfgValue;\n }\n }\n _applyDefaultValue(dynamicHandler, newConfig, field, defaultValue);\n });\n }\n return dynamicHandler[_DYN_SET_DF /* @min:%2esetDf */](newConfig, defaultValues);\n }\n function _getConfig(identifier, field, defaultValue) {\n if (defaultValue === void 0) {\n defaultValue = false;\n }\n var theValue;\n var extConfig = _getExtCfg(identifier, false);\n var rootConfig = dynamicHandler.cfg;\n if (extConfig && (extConfig[field] || !isNullOrUndefined(extConfig[field]))) {\n theValue = extConfig[field];\n } else if (rootConfig[field] || !isNullOrUndefined(rootConfig[field])) {\n theValue = rootConfig[field];\n }\n return theValue || !isNullOrUndefined(theValue) ? theValue : defaultValue;\n }\n function _iterateChain(cb) {\n // Keep processing until we reach the end of the chain\n var nextPlugin;\n while (!!(nextPlugin = context._next())) {\n var plugin = nextPlugin[_DYN_GET_PLUGIN /* @min:%2egetPlugin */]();\n if (plugin) {\n // callback with the current on\n cb(plugin);\n }\n }\n }\n return context;\n}\n/**\r\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain\r\n * @param plugins - The plugin instances that will be executed\r\n * @param config - The current config\r\n * @param core - The current core instance\r\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\r\n */\nexport function createProcessTelemetryContext(telemetryChain, cfg, core, startAt) {\n var config = createDynamicConfig(cfg);\n var internalContext = _createInternalContext(telemetryChain, config, core, startAt);\n var context = internalContext.ctx;\n function _processNext(env) {\n var nextPlugin = internalContext._next();\n if (nextPlugin) {\n // Run the next plugin which will call \"processNext()\"\n nextPlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */](env, context);\n }\n return !nextPlugin;\n }\n function _createNew(plugins, startAt) {\n if (plugins === void 0) {\n plugins = null;\n }\n if (isArray(plugins)) {\n plugins = createTelemetryProxyChain(plugins, config.cfg, core, startAt);\n }\n return createProcessTelemetryContext(plugins || context[_DYN_GET_NEXT /* @min:%2egetNext */](), config.cfg, core, startAt);\n }\n context[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */] = _processNext;\n context[_DYN_CREATE_NEW /* @min:%2ecreateNew */] = _createNew;\n return context;\n}\n/**\r\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain for handling the unloading of the chain\r\n * @param plugins - The plugin instances that will be executed\r\n * @param config - The current config\r\n * @param core - The current core instance\r\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\r\n */\nexport function createProcessTelemetryUnloadContext(telemetryChain, core, startAt) {\n var config = createDynamicConfig(core.config);\n var internalContext = _createInternalContext(telemetryChain, config, core, startAt);\n var context = internalContext.ctx;\n function _processNext(unloadState) {\n var nextPlugin = internalContext._next();\n nextPlugin && nextPlugin[_DYN_UNLOAD /* @min:%2eunload */](context, unloadState);\n return !nextPlugin;\n }\n function _createNew(plugins, startAt) {\n if (plugins === void 0) {\n plugins = null;\n }\n if (isArray(plugins)) {\n plugins = createTelemetryProxyChain(plugins, config.cfg, core, startAt);\n }\n return createProcessTelemetryUnloadContext(plugins || context[_DYN_GET_NEXT /* @min:%2egetNext */](), core, startAt);\n }\n context[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */] = _processNext;\n context[_DYN_CREATE_NEW /* @min:%2ecreateNew */] = _createNew;\n return context;\n}\n/**\r\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain for updating the configuration\r\n * @param plugins - The plugin instances that will be executed\r\n * @param config - The current config\r\n * @param core - The current core instance\r\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\r\n */\nexport function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {\n var config = createDynamicConfig(core.config);\n var internalContext = _createInternalContext(telemetryChain, config, core, startAt);\n var context = internalContext.ctx;\n function _processNext(updateState) {\n return context.iterate(function (plugin) {\n if (isFunction(plugin[_DYN_UPDATE /* @min:%2eupdate */])) {\n plugin[_DYN_UPDATE /* @min:%2eupdate */](context, updateState);\n }\n });\n }\n function _createNew(plugins, startAt) {\n if (plugins === void 0) {\n plugins = null;\n }\n if (isArray(plugins)) {\n plugins = createTelemetryProxyChain(plugins, config.cfg, core, startAt);\n }\n return createProcessTelemetryUpdateContext(plugins || context[_DYN_GET_NEXT /* @min:%2egetNext */](), core, startAt);\n }\n context[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */] = _processNext;\n context[_DYN_CREATE_NEW /* @min:%2ecreateNew */] = _createNew;\n return context;\n}\n/**\r\n * Creates an execution chain from the array of plugins\r\n * @param plugins - The array of plugins that will be executed in this order\r\n * @param defItemCtx - The default execution context to use when no telemetry context is passed to processTelemetry(), this\r\n * should be for legacy plugins only. Currently, only used for passing the current core instance and to provide better error\r\n * reporting (hasRun) when errors occur.\r\n */\nexport function createTelemetryProxyChain(plugins, config, core, startAt) {\n var firstProxy = null;\n var add = startAt ? false : true;\n if (isArray(plugins) && plugins[_DYN_LENGTH /* @min:%2elength */] > 0) {\n // Create the proxies and wire up the next plugin chain\n var lastProxy_1 = null;\n arrForEach(plugins, function (thePlugin) {\n if (!add && startAt === thePlugin) {\n add = true;\n }\n if (add && thePlugin && isFunction(thePlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */])) {\n // Only add plugins that are processors\n var newProxy = createTelemetryPluginProxy(thePlugin, config, core);\n if (!firstProxy) {\n firstProxy = newProxy;\n }\n if (lastProxy_1) {\n // Set this new proxy as the next for the previous one\n lastProxy_1._setNext(newProxy);\n }\n lastProxy_1 = newProxy;\n }\n });\n }\n if (startAt && !firstProxy) {\n // Special case where the \"startAt\" was not in the original list of plugins\n return createTelemetryProxyChain([startAt], config, core);\n }\n return firstProxy;\n}\n/**\r\n * Create the processing telemetry proxy instance, the proxy is used to abstract the current plugin to allow monitoring and\r\n * execution plugins while passing around the dynamic execution state (IProcessTelemetryContext), the proxy instance no longer\r\n * contains any execution state and can be reused between requests (this was not the case for 2.7.2 and earlier with the\r\n * TelemetryPluginChain class).\r\n * @param plugin - The plugin instance to proxy\r\n * @param config - The default execution context to use when no telemetry context is passed to processTelemetry(), this\r\n * should be for legacy plugins only. Currently, only used for passing the current core instance and to provide better error\r\n * reporting (hasRun) when errors occur.\r\n * @returns\r\n */\nexport function createTelemetryPluginProxy(plugin, config, core) {\n var nextProxy = null;\n var hasProcessTelemetry = isFunction(plugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */]);\n var hasSetNext = isFunction(plugin[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */]);\n var chainId;\n if (plugin) {\n chainId = plugin[_DYN_IDENTIFIER /* @min:%2eidentifier */] + \"-\" + plugin[STR_PRIORITY /* @min:%2epriority */] + \"-\" + _chainId++;\n } else {\n chainId = \"Unknown-0-\" + _chainId++;\n }\n var proxyChain = {\n getPlugin: function () {\n return plugin;\n },\n getNext: function () {\n return nextProxy;\n },\n processTelemetry: _processTelemetry,\n unload: _unloadPlugin,\n update: _updatePlugin,\n _id: chainId,\n _setNext: function (nextPlugin) {\n nextProxy = nextPlugin;\n }\n };\n function _getTelCtx() {\n var itemCtx;\n // Looks like a plugin didn't pass the (optional) context, so create a new one\n if (plugin && isFunction(plugin[strGetTelCtx])) {\n // This plugin extends from the BaseTelemetryPlugin so lets use it\n itemCtx = plugin[strGetTelCtx]();\n }\n if (!itemCtx) {\n // Create a temporary one\n itemCtx = createProcessTelemetryContext(proxyChain, config, core);\n }\n return itemCtx;\n }\n function _processChain(itemCtx, processPluginFn, name, details, isAsync) {\n var hasRun = false;\n var identifier = plugin ? plugin[_DYN_IDENTIFIER /* @min:%2eidentifier */] : strTelemetryPluginChain;\n var hasRunContext = itemCtx[strHasRunFlags];\n if (!hasRunContext) {\n // Assign and populate\n hasRunContext = itemCtx[strHasRunFlags] = {};\n }\n // Ensure that we keep the context in sync\n itemCtx.setNext(nextProxy);\n if (plugin) {\n doPerf(itemCtx[STR_CORE /* @min:%2ecore */](), function () {\n return identifier + \":\" + name;\n }, function () {\n // Mark this component as having run\n hasRunContext[chainId] = true;\n try {\n // Set a flag on the next plugin so we know if it was attempted to be executed\n var nextId = nextProxy ? nextProxy._id : STR_EMPTY;\n if (nextId) {\n hasRunContext[nextId] = false;\n }\n hasRun = processPluginFn(itemCtx);\n } catch (error) {\n var hasNextRun = nextProxy ? hasRunContext[nextProxy._id] : true;\n if (hasNextRun) {\n // The next plugin after us has already run so set this one as complete\n hasRun = true;\n }\n if (!nextProxy || !hasNextRun) {\n // Either we have no next plugin or the current one did not attempt to call the next plugin\n // Which means the current one is the root of the failure so log/report this failure\n _throwInternal(itemCtx[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 73 /* _eInternalMessageId.PluginException */, \"Plugin [\" + identifier + \"] failed during \" + name + \" - \" + dumpObj(error) + \", run flags: \" + dumpObj(hasRunContext));\n }\n }\n }, details, isAsync);\n }\n return hasRun;\n }\n function _processTelemetry(env, itemCtx) {\n itemCtx = itemCtx || _getTelCtx();\n function _callProcessTelemetry(itemCtx) {\n if (!plugin || !hasProcessTelemetry) {\n return false;\n }\n var pluginState = _getPluginState(plugin);\n if (pluginState[_DYN_TEARDOWN /* @min:%2eteardown */] || pluginState[STR_DISABLED]) {\n return false;\n }\n // Ensure that we keep the context in sync (for processNext()), just in case a plugin\n // doesn't calls processTelemetry() instead of itemContext.processNext() or some\n // other form of error occurred\n if (hasSetNext) {\n // Backward compatibility setting the next plugin on the instance\n plugin[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */](nextProxy);\n }\n plugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */](env, itemCtx);\n // Process Telemetry is expected to call itemCtx.processNext() or nextPlugin.processTelemetry()\n return true;\n }\n if (!_processChain(itemCtx, _callProcessTelemetry, \"processTelemetry\", function () {\n return {\n item: env\n };\n }, !env.sync)) {\n // The underlying plugin is either not defined, not enabled or does not have a processTelemetry implementation\n // so we still want the next plugin to be executed.\n itemCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](env);\n }\n }\n function _unloadPlugin(unloadCtx, unloadState) {\n function _callTeardown() {\n // Setting default of hasRun as false so the proxyProcessFn() is called as teardown() doesn't have to exist or call unloadNext().\n var hasRun = false;\n if (plugin) {\n var pluginState = _getPluginState(plugin);\n var pluginCore = plugin[STR_CORE] || pluginState[STR_CORE /* @min:%2ecore */];\n // Only teardown the plugin if it was initialized by the current core (i.e. It's not a shared plugin)\n if (plugin && (!pluginCore || pluginCore === unloadCtx.core()) && !pluginState[_DYN_TEARDOWN /* @min:%2eteardown */]) {\n // Handle plugins that don't extend from the BaseTelemetryPlugin\n pluginState[STR_CORE /* @min:%2ecore */] = null;\n pluginState[_DYN_TEARDOWN /* @min:%2eteardown */] = true;\n pluginState[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */] = false;\n if (plugin[_DYN_TEARDOWN /* @min:%2eteardown */] && plugin[_DYN_TEARDOWN /* @min:%2eteardown */](unloadCtx, unloadState) === true) {\n // plugin told us that it was going to (or has) call unloadCtx.processNext()\n hasRun = true;\n }\n }\n }\n return hasRun;\n }\n if (!_processChain(unloadCtx, _callTeardown, \"unload\", function () {}, unloadState[_DYN_IS_ASYNC /* @min:%2eisAsync */])) {\n // Only called if we hasRun was not true\n unloadCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](unloadState);\n }\n }\n function _updatePlugin(updateCtx, updateState) {\n function _callUpdate() {\n // Setting default of hasRun as false so the proxyProcessFn() is called as teardown() doesn't have to exist or call unloadNext().\n var hasRun = false;\n if (plugin) {\n var pluginState = _getPluginState(plugin);\n var pluginCore = plugin[STR_CORE] || pluginState[STR_CORE /* @min:%2ecore */];\n // Only update the plugin if it was initialized by the current core (i.e. It's not a shared plugin)\n if (plugin && (!pluginCore || pluginCore === updateCtx.core()) && !pluginState[_DYN_TEARDOWN /* @min:%2eteardown */]) {\n if (plugin[_DYN_UPDATE /* @min:%2eupdate */] && plugin[_DYN_UPDATE /* @min:%2eupdate */](updateCtx, updateState) === true) {\n // plugin told us that it was going to (or has) call unloadCtx.processNext()\n hasRun = true;\n }\n }\n }\n return hasRun;\n }\n if (!_processChain(updateCtx, _callUpdate, \"update\", function () {}, false)) {\n // Only called if we hasRun was not true\n updateCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](updateState);\n }\n }\n return objFreeze(proxyChain);\n}\n/**\r\n * This class will be removed!\r\n * @deprecated use createProcessTelemetryContext() instead\r\n */\nvar ProcessTelemetryContext = /** @class */function () {\n /**\r\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain\r\n * @param plugins - The plugin instances that will be executed\r\n * @param config - The current config\r\n * @param core - The current core instance\r\n */\n function ProcessTelemetryContext(pluginChain, config, core, startAt) {\n var _self = this;\n var context = createProcessTelemetryContext(pluginChain, config, core, startAt);\n // Proxy all functions of the context to this object\n proxyFunctions(_self, context, objKeys(context));\n }\n return ProcessTelemetryContext;\n}();\nexport { ProcessTelemetryContext };\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrForEach, dumpObj } from \"@nevware21/ts-utils\";\nimport { _DYN_DIAG_LOG, _DYN_PUSH } from \"../__DynamicConstants\";\nimport { _throwInternal } from \"./DiagnosticLogger\";\nexport function createUnloadHandlerContainer() {\n var handlers = [];\n function _addHandler(handler) {\n if (handler) {\n handlers[_DYN_PUSH /* @min:%2epush */](handler);\n }\n }\n function _runHandlers(unloadCtx, unloadState) {\n arrForEach(handlers, function (handler) {\n try {\n handler(unloadCtx, unloadState);\n } catch (e) {\n _throwInternal(unloadCtx[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 73 /* _eInternalMessageId.PluginException */, \"Unexpected error calling unload handler - \" + dumpObj(e));\n }\n });\n handlers = [];\n }\n return {\n add: _addHandler,\n run: _runHandlers\n };\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrAppend, arrForEach, dumpObj } from \"@nevware21/ts-utils\";\nimport { _throwInternal } from \"./DiagnosticLogger\";\n/**\r\n * Create a IUnloadHookContainer which can be used to remember unload hook functions to be executed during the component unloading\r\n * process.\r\n * @returns A new IUnloadHookContainer instance\r\n */\nexport function createUnloadHookContainer() {\n var _hooks = [];\n function _doUnload(logger) {\n var oldHooks = _hooks;\n _hooks = [];\n // Remove all registered unload hooks\n arrForEach(oldHooks, function (fn) {\n // allow either rm or remove callback function\n try {\n (fn.rm || fn.remove).call(fn);\n } catch (e) {\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 73 /* _eInternalMessageId.PluginException */, \"Unloading:\" + dumpObj(e));\n }\n });\n }\n function _addHook(hooks) {\n if (hooks) {\n arrAppend(_hooks, hooks);\n }\n }\n return {\n run: _doUnload,\n add: _addHook\n };\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nvar _a;\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { isFunction, objDefine } from \"@nevware21/ts-utils\";\nimport { createDynamicConfig } from \"../Config/DynamicConfig\";\nimport { _DYN_CREATE_NEW, _DYN_DIAG_LOG, _DYN_GET_NEXT, _DYN_GET_PROCESS_TEL_CONT0, _DYN_INITIALIZE, _DYN_IS_ASYNC, _DYN_IS_INITIALIZED, _DYN_PROCESS_NEXT, _DYN_SET_NEXT_PLUGIN, _DYN_TEARDOWN, _DYN_UPDATE, _DYN__DO_TEARDOWN } from \"../__DynamicConstants\";\nimport { safeGetLogger } from \"./DiagnosticLogger\";\nimport { isNotNullOrUndefined, proxyFunctionAs } from \"./HelperFuncs\";\nimport { STR_CORE, STR_EXTENSION_CONFIG, STR_PROCESS_TELEMETRY } from \"./InternalConstants\";\nimport { createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext } from \"./ProcessTelemetryContext\";\nimport { createUnloadHandlerContainer } from \"./UnloadHandlerContainer\";\nimport { createUnloadHookContainer } from \"./UnloadHookContainer\";\nvar strGetPlugin = \"getPlugin\";\nvar defaultValues = (_a = {}, _a[STR_EXTENSION_CONFIG] = {\n isVal: isNotNullOrUndefined,\n v: {}\n}, _a);\n/**\r\n * BaseTelemetryPlugin provides a basic implementation of the ITelemetryPlugin interface so that plugins\r\n * can avoid implementation the same set of boiler plate code as well as provide a base\r\n * implementation so that new default implementations can be added without breaking all plugins.\r\n */\nvar BaseTelemetryPlugin = /** @class */function () {\n function BaseTelemetryPlugin() {\n var _self = this; // Setting _self here as it's used outside of the dynamicProto as well\n // NOTE!: DON'T set default values here, instead set them in the _initDefaults() function as it is also called during teardown()\n var _isinitialized;\n var _rootCtx; // Used as the root context, holding the current config and initialized core\n var _nextPlugin; // Used for backward compatibility where plugins don't call the main pipeline\n var _unloadHandlerContainer;\n var _hookContainer;\n _initDefaults();\n dynamicProto(BaseTelemetryPlugin, _self, function (_self) {\n _self[_DYN_INITIALIZE /* @min:%2einitialize */] = function (config, core, extensions, pluginChain) {\n _setDefaults(config, core, pluginChain);\n _isinitialized = true;\n };\n _self[_DYN_TEARDOWN /* @min:%2eteardown */] = function (unloadCtx, unloadState) {\n var _a;\n // If this plugin has already been torn down (not operational) or is not initialized (core is not set)\n // or the core being used for unload was not the same core used for initialization.\n var core = _self[STR_CORE /* @min:%2ecore */];\n if (!core || unloadCtx && core !== unloadCtx[STR_CORE /* @min:%2ecore */]()) {\n // Do Nothing as either the plugin is not initialized or was not initialized by the current core\n return;\n }\n var result;\n var unloadDone = false;\n var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);\n var theUnloadState = unloadState || (_a = {\n reason: 0 /* TelemetryUnloadReason.ManualTeardown */\n }, _a[_DYN_IS_ASYNC /* @min:isAsync */] = false, _a);\n function _unloadCallback() {\n if (!unloadDone) {\n unloadDone = true;\n _unloadHandlerContainer.run(theUnloadCtx, unloadState);\n _hookContainer.run(theUnloadCtx[_DYN_DIAG_LOG /* @min:%2ediagLog */]());\n if (result === true) {\n theUnloadCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](theUnloadState);\n }\n _initDefaults();\n }\n }\n if (!_self[_DYN__DO_TEARDOWN /* @min:%2e_doTeardown */] || _self[_DYN__DO_TEARDOWN /* @min:%2e_doTeardown */](theUnloadCtx, theUnloadState, _unloadCallback) !== true) {\n _unloadCallback();\n } else {\n // Tell the caller that we will be calling processNext()\n result = true;\n }\n return result;\n };\n _self[_DYN_UPDATE /* @min:%2eupdate */] = function (updateCtx, updateState) {\n // If this plugin has already been torn down (not operational) or is not initialized (core is not set)\n // or the core being used for unload was not the same core used for initialization.\n var core = _self[STR_CORE /* @min:%2ecore */];\n if (!core || updateCtx && core !== updateCtx[STR_CORE /* @min:%2ecore */]()) {\n // Do Nothing\n return;\n }\n var result;\n var updateDone = false;\n var theUpdateCtx = updateCtx || createProcessTelemetryUpdateContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);\n var theUpdateState = updateState || {\n reason: 0 /* TelemetryUpdateReason.Unknown */\n };\n function _updateCallback() {\n if (!updateDone) {\n updateDone = true;\n _setDefaults(theUpdateCtx.getCfg(), theUpdateCtx.core(), theUpdateCtx[_DYN_GET_NEXT /* @min:%2egetNext */]());\n }\n }\n if (!_self._doUpdate || _self._doUpdate(theUpdateCtx, theUpdateState, _updateCallback) !== true) {\n _updateCallback();\n } else {\n result = true;\n }\n return result;\n };\n proxyFunctionAs(_self, \"_addUnloadCb\", function () {\n return _unloadHandlerContainer;\n }, \"add\");\n proxyFunctionAs(_self, \"_addHook\", function () {\n return _hookContainer;\n }, \"add\");\n objDefine(_self, \"_unloadHooks\", {\n g: function () {\n return _hookContainer;\n }\n });\n });\n // These are added after the dynamicProto so that are not moved to the prototype\n _self[_DYN_DIAG_LOG /* @min:%2ediagLog */] = function (itemCtx) {\n return _getTelCtx(itemCtx)[_DYN_DIAG_LOG /* @min:%2ediagLog */]();\n };\n _self[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */] = function () {\n return _isinitialized;\n };\n _self.setInitialized = function (isInitialized) {\n _isinitialized = isInitialized;\n };\n // _self.getNextPlugin = () => DO NOT IMPLEMENT\n // Sub-classes of this base class *should* not be relying on this value and instead\n // should use processNext() function. If you require access to the plugin use the\n // IProcessTelemetryContext.getNext().getPlugin() while in the pipeline, Note getNext() may return null.\n _self[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */] = function (next) {\n _nextPlugin = next;\n };\n _self[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */] = function (env, itemCtx) {\n if (itemCtx) {\n // Normal core execution sequence\n itemCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](env);\n } else if (_nextPlugin && isFunction(_nextPlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */])) {\n // Looks like backward compatibility or out of band processing. And as it looks\n // like a ITelemetryPlugin or ITelemetryPluginChain, just call processTelemetry\n _nextPlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */](env, null);\n }\n };\n _self._getTelCtx = _getTelCtx;\n function _getTelCtx(currentCtx) {\n if (currentCtx === void 0) {\n currentCtx = null;\n }\n var itemCtx = currentCtx;\n if (!itemCtx) {\n var rootCtx = _rootCtx || createProcessTelemetryContext(null, {}, _self[STR_CORE /* @min:%2ecore */]);\n // tslint:disable-next-line: prefer-conditional-expression\n if (_nextPlugin && _nextPlugin[strGetPlugin]) {\n // Looks like a chain object\n itemCtx = rootCtx[_DYN_CREATE_NEW /* @min:%2ecreateNew */](null, _nextPlugin[strGetPlugin]);\n } else {\n itemCtx = rootCtx[_DYN_CREATE_NEW /* @min:%2ecreateNew */](null, _nextPlugin);\n }\n }\n return itemCtx;\n }\n function _setDefaults(config, core, pluginChain) {\n // Make sure the extensionConfig exists and the config is dynamic\n createDynamicConfig(config, defaultValues, safeGetLogger(core));\n if (!pluginChain && core) {\n // Get the first plugin from the core\n pluginChain = core[_DYN_GET_PROCESS_TEL_CONT0 /* @min:%2egetProcessTelContext */]()[_DYN_GET_NEXT /* @min:%2egetNext */]();\n }\n var nextPlugin = _nextPlugin;\n if (_nextPlugin && _nextPlugin[strGetPlugin]) {\n // If it looks like a proxy/chain then get the plugin\n nextPlugin = _nextPlugin[strGetPlugin]();\n }\n // Support legacy plugins where core was defined as a property\n _self[STR_CORE /* @min:%2ecore */] = core;\n _rootCtx = createProcessTelemetryContext(pluginChain, config, core, nextPlugin);\n }\n function _initDefaults() {\n _isinitialized = false;\n _self[STR_CORE /* @min:%2ecore */] = null;\n _rootCtx = null;\n _nextPlugin = null;\n _hookContainer = createUnloadHookContainer();\n _unloadHandlerContainer = createUnloadHandlerContainer();\n }\n }\n // Removed Stub for BaseTelemetryPlugin.prototype.initialize.\n // Removed Stub for BaseTelemetryPlugin.prototype.teardown.\n // Removed Stub for BaseTelemetryPlugin.prototype.update.\n // Removed Stub for BaseTelemetryPlugin.prototype._addUnloadCb.\n // Removed Stub for BaseTelemetryPlugin.prototype._addHook.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n BaseTelemetryPlugin.__ieDyn = 1;\n return BaseTelemetryPlugin;\n}();\nexport { BaseTelemetryPlugin };\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n// \n// \nimport { __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { arrAppend, arrForEach, dumpObj } from \"@nevware21/ts-utils\";\nimport { _DYN_APPLY, _DYN_DIAG_LOG, _DYN_LENGTH, _DYN_PROCESS_NEXT, _DYN_SPLICE, _DYN__DO_TEARDOWN } from \"../__DynamicConstants\";\nimport { BaseTelemetryPlugin } from \"./BaseTelemetryPlugin\";\nimport { _throwInternal } from \"./DiagnosticLogger\";\nimport { getExceptionName } from \"./HelperFuncs\";\nimport { STR_PROCESS_TELEMETRY } from \"./InternalConstants\";\nfunction _addInitializer(_initializers, id, telemetryInitializer) {\n var theInitializer = {\n id: id,\n fn: telemetryInitializer\n };\n arrAppend(_initializers, theInitializer);\n var handler = {\n remove: function () {\n arrForEach(_initializers, function (initializer, idx) {\n if (initializer.id === theInitializer.id) {\n _initializers[_DYN_SPLICE /* @min:%2esplice */](idx, 1);\n return -1;\n }\n });\n }\n };\n return handler;\n}\nfunction _runInitializers(_initializers, item, logger) {\n var doNotSendItem = false;\n var telemetryInitializersCount = _initializers[_DYN_LENGTH /* @min:%2elength */];\n for (var i = 0; i < telemetryInitializersCount; ++i) {\n var telemetryInitializer = _initializers[i];\n if (telemetryInitializer) {\n try {\n if (telemetryInitializer.fn[_DYN_APPLY /* @min:%2eapply */](null, [item]) === false) {\n doNotSendItem = true;\n break;\n }\n } catch (e) {\n // log error but dont stop executing rest of the telemetry initializers\n // doNotSendItem = true;\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 64 /* _eInternalMessageId.TelemetryInitializerFailed */, \"Telemetry initializer failed: \" + getExceptionName(e), {\n exception: dumpObj(e)\n }, true);\n }\n }\n }\n return !doNotSendItem;\n}\nvar TelemetryInitializerPlugin = /** @class */function (_super) {\n __extends(TelemetryInitializerPlugin, _super);\n function TelemetryInitializerPlugin() {\n var _this = _super.call(this) || this;\n _this.identifier = \"TelemetryInitializerPlugin\";\n _this.priority = 199;\n // NOTE!: DON'T set default values here, instead set them in the _initDefaults() function as it is also called during teardown()\n var _id;\n var _initializers;\n _initDefaults();\n dynamicProto(TelemetryInitializerPlugin, _this, function (_self, _base) {\n _self.addTelemetryInitializer = function (telemetryInitializer) {\n return _addInitializer(_initializers, _id++, telemetryInitializer);\n };\n _self[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */] = function (item, itemCtx) {\n if (_runInitializers(_initializers, item, itemCtx ? itemCtx[_DYN_DIAG_LOG /* @min:%2ediagLog */]() : _self[_DYN_DIAG_LOG /* @min:%2ediagLog */]())) {\n _self[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](item, itemCtx);\n }\n };\n _self[_DYN__DO_TEARDOWN /* @min:%2e_doTeardown */] = function () {\n _initDefaults();\n };\n });\n function _initDefaults() {\n _id = 0;\n _initializers = [];\n }\n return _this;\n }\n // Removed Stub for TelemetryInitializerPlugin.prototype.addTelemetryInitializer.\n // Removed Stub for TelemetryInitializerPlugin.prototype.processTelemetry.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n TelemetryInitializerPlugin.__ieDyn = 1;\n return TelemetryInitializerPlugin;\n}(BaseTelemetryPlugin);\nexport { TelemetryInitializerPlugin };\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nvar _a;\nimport { __spreadArrayFn as __spreadArray } from \"@microsoft/applicationinsights-shims\";\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { createPromise } from \"@nevware21/ts-async\";\nimport { arrAppend, arrForEach, arrIndexOf, createTimeout, deepExtend, hasDocument, isFunction, isNullOrUndefined, isPlainObject, objDeepFreeze, objDefine, objForEachKey, objFreeze, objHasOwn, scheduleTimeout, throwError } from \"@nevware21/ts-utils\";\nimport { createDynamicConfig, onConfigChange } from \"../Config/DynamicConfig\";\nimport { _DYN_ADD_NOTIFICATION_LIS1, _DYN_CANCEL, _DYN_CREATE_NEW, _DYN_ENABLED, _DYN_GET_NOTIFY_MGR, _DYN_GET_PLUGIN, _DYN_GET_PROCESS_TEL_CONT0, _DYN_IDENTIFIER, _DYN_INITIALIZE, _DYN_IS_ASYNC, _DYN_IS_INITIALIZED, _DYN_LENGTH, _DYN_LOGGER, _DYN_LOGGING_LEVEL_CONSOL4, _DYN_MESSAGE, _DYN_MESSAGE_ID, _DYN_NAME, _DYN_NOTIFY, _DYN_ON_COMPLETE, _DYN_POLL_INTERNAL_LOGS, _DYN_PROCESS_NEXT, _DYN_PUSH, _DYN_REMOVE_NOTIFICATION_2, _DYN_SET_DF, _DYN_SPLICE, _DYN_STOP_POLLING_INTERNA3, _DYN_TEARDOWN, _DYN_TIME, _DYN_UNLOAD, _DYN_VERSION, _DYN_WATCH } from \"../__DynamicConstants\";\nimport { doUnloadAll, runTargetUnload } from \"./AsyncUtils\";\nimport { ChannelControllerPriority } from \"./Constants\";\nimport { createCookieMgr } from \"./CookieMgr\";\nimport { createUniqueNamespace } from \"./DataCacheHelper\";\nimport { getDebugListener } from \"./DbgExtensionUtils\";\nimport { DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole } from \"./DiagnosticLogger\";\nimport { getSetValue, proxyFunctionAs, proxyFunctions, toISOString } from \"./HelperFuncs\";\nimport { STR_CHANNELS, STR_CORE, STR_CREATE_PERF_MGR, STR_DISABLED, STR_EMPTY, STR_EVENTS_DISCARDED, STR_EXTENSIONS, STR_EXTENSION_CONFIG, STR_GET_PERF_MGR, STR_PRIORITY, UNDEFINED_VALUE } from \"./InternalConstants\";\nimport { NotificationManager } from \"./NotificationManager\";\nimport { PerfManager, doPerf, getGblPerfMgr } from \"./PerfManager\";\nimport { createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext, createTelemetryProxyChain } from \"./ProcessTelemetryContext\";\nimport { _getPluginState, createDistributedTraceContext, initializePlugins, sortPlugins } from \"./TelemetryHelpers\";\nimport { TelemetryInitializerPlugin } from \"./TelemetryInitializerPlugin\";\nimport { createUnloadHandlerContainer } from \"./UnloadHandlerContainer\";\nimport { createUnloadHookContainer } from \"./UnloadHookContainer\";\nvar strValidationError = \"Plugins must provide initialize method\";\nvar strNotificationManager = \"_notificationManager\";\nvar strSdkUnloadingError = \"SDK is still unloading...\";\nvar strSdkNotInitialized = \"SDK is not initialized\";\n// const strPluginUnloadFailed = \"Failed to unload plugin\";\n/**\r\n * The default settings for the config.\r\n * WE MUST include all defaults here to ensure that the config is created with all of the properties\r\n * defined as dynamic.\r\n */\nvar defaultConfig = objDeepFreeze((_a = {\n cookieCfg: {}\n}, _a[STR_EXTENSIONS] = {\n rdOnly: true,\n ref: true,\n v: []\n}, _a[STR_CHANNELS] = {\n rdOnly: true,\n ref: true,\n v: []\n}, _a[STR_EXTENSION_CONFIG] = {\n ref: true,\n v: {}\n}, _a[STR_CREATE_PERF_MGR] = UNDEFINED_VALUE, _a.loggingLevelConsole = 0 /* eLoggingSeverity.DISABLED */, _a.diagnosticLogInterval = UNDEFINED_VALUE, _a));\n/**\r\n * Helper to create the default performance manager\r\n * @param core\r\n * @param notificationMgr\r\n */\nfunction _createPerfManager(core, notificationMgr) {\n return new PerfManager(notificationMgr);\n}\nfunction _validateExtensions(logger, channelPriority, allExtensions) {\n var _a;\n // Concat all available extensions\n var coreExtensions = [];\n var channels = [];\n // Check if any two extensions have the same priority, then warn to console\n // And extract the local extensions from the\n var extPriorities = {};\n // Extension validation\n arrForEach(allExtensions, function (ext) {\n // Check for ext.initialize\n if (isNullOrUndefined(ext) || isNullOrUndefined(ext[_DYN_INITIALIZE /* @min:%2einitialize */])) {\n throwError(strValidationError);\n }\n var extPriority = ext[STR_PRIORITY /* @min:%2epriority */];\n var identifier = ext[_DYN_IDENTIFIER /* @min:%2eidentifier */];\n if (ext && extPriority) {\n if (!isNullOrUndefined(extPriorities[extPriority])) {\n _warnToConsole(logger, \"Two extensions have same priority #\" + extPriority + \" - \" + extPriorities[extPriority] + \", \" + identifier);\n } else {\n // set a value\n extPriorities[extPriority] = identifier;\n }\n }\n // Split extensions to core and channels\n if (!extPriority || extPriority < channelPriority) {\n // Add to core extension that will be managed by AppInsightsCore\n coreExtensions[_DYN_PUSH /* @min:%2epush */](ext);\n } else {\n channels[_DYN_PUSH /* @min:%2epush */](ext);\n }\n });\n return _a = {}, _a[STR_CORE /* @min:core */] = coreExtensions, _a[STR_CHANNELS /* @min:channels */] = channels, _a;\n}\nfunction _isPluginPresent(thePlugin, plugins) {\n var exists = false;\n arrForEach(plugins, function (plugin) {\n if (plugin === thePlugin) {\n exists = true;\n return -1;\n }\n });\n return exists;\n}\nfunction _deepMergeConfig(details, target, newValues, merge) {\n // Lets assign the new values to the existing config\n if (newValues) {\n objForEachKey(newValues, function (key, value) {\n if (merge) {\n if (isPlainObject(value) && isPlainObject(target[key])) {\n // The target is an object and it has a value\n _deepMergeConfig(details, target[key], value, merge);\n }\n }\n if (merge && isPlainObject(value) && isPlainObject(target[key])) {\n // The target is an object and it has a value\n _deepMergeConfig(details, target[key], value, merge);\n } else {\n // Just Assign (replace) and/or make the property dynamic\n details.set(target, key, value);\n }\n });\n }\n}\nfunction _findWatcher(listeners, newWatcher) {\n var theListener = null;\n var idx = -1;\n arrForEach(listeners, function (listener, lp) {\n if (listener.w === newWatcher) {\n theListener = listener;\n idx = lp;\n return -1;\n }\n });\n return {\n i: idx,\n l: theListener\n };\n}\nfunction _addDelayedCfgListener(listeners, newWatcher) {\n var theListener = _findWatcher(listeners, newWatcher).l;\n if (!theListener) {\n theListener = {\n w: newWatcher,\n rm: function () {\n var fnd = _findWatcher(listeners, newWatcher);\n if (fnd.i !== -1) {\n listeners[_DYN_SPLICE /* @min:%2esplice */](fnd.i, 1);\n }\n }\n };\n listeners[_DYN_PUSH /* @min:%2epush */](theListener);\n }\n return theListener;\n}\nfunction _registerDelayedCfgListener(config, listeners, logger) {\n arrForEach(listeners, function (listener) {\n var unloadHdl = onConfigChange(config, listener.w, logger);\n delete listener.w; // Clear the listener reference so it will get garbage collected.\n // replace the remove function\n listener.rm = function () {\n unloadHdl.rm();\n };\n });\n}\n/**\r\n * @group Classes\r\n * @group Entrypoint\r\n */\nvar AppInsightsCore = /** @class */function () {\n function AppInsightsCore() {\n // NOTE!: DON'T set default values here, instead set them in the _initDefaults() function as it is also called during teardown()\n var _configHandler;\n var _isInitialized;\n var _logger;\n var _eventQueue;\n var _notificationManager;\n var _perfManager;\n var _cfgPerfManager;\n var _cookieManager;\n var _pluginChain;\n var _configExtensions;\n var _channelConfig;\n var _channels;\n var _isUnloading;\n var _telemetryInitializerPlugin;\n var _internalLogsEventName;\n var _evtNamespace;\n var _unloadHandlers;\n var _hookContainer;\n var _debugListener;\n var _traceCtx;\n var _instrumentationKey;\n var _cfgListeners;\n var _extensions;\n var _pluginVersionStringArr;\n var _pluginVersionString;\n /**\r\n * Internal log poller\r\n */\n var _internalLogPoller;\n var _internalLogPollerListening;\n var _forceStopInternalLogPoller;\n dynamicProto(AppInsightsCore, this, function (_self) {\n // Set the default values (also called during teardown)\n _initDefaults();\n // Special internal method to allow the unit tests and DebugPlugin to hook embedded objects\n _self[\"_getDbgPlgTargets\"] = function () {\n return [_extensions];\n };\n _self[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */] = function () {\n return _isInitialized;\n };\n // Creating the self.initialize = ()\n _self[_DYN_INITIALIZE /* @min:%2einitialize */] = function (config, extensions, logger, notificationManager) {\n if (_isUnloading) {\n throwError(strSdkUnloadingError);\n }\n // Make sure core is only initialized once\n if (_self[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */]()) {\n throwError(\"Core cannot be initialized more than once\");\n }\n _configHandler = createDynamicConfig(config, defaultConfig, logger || _self[_DYN_LOGGER /* @min:%2elogger */], false);\n // Re-assigning the local config property so we don't have any references to the passed value and it can be garbage collected\n config = _configHandler.cfg;\n // This will be \"re-run\" if the referenced config properties are changed\n _addUnloadHook(_configHandler[_DYN_WATCH /* @min:%2ewatch */](function (details) {\n _instrumentationKey = details.cfg.instrumentationKey;\n // Mark the extensionConfig and all first level keys as referenced\n // This is so that calls to getExtCfg() will always return the same object\n // Even when a user may \"re-assign\" the plugin properties (or it's unloaded/reloaded)\n var extCfg = details.ref(details.cfg, STR_EXTENSION_CONFIG);\n objForEachKey(extCfg, function (key) {\n details.ref(extCfg, key);\n });\n if (isNullOrUndefined(_instrumentationKey)) {\n throwError(\"Please provide instrumentation key\");\n }\n }));\n _notificationManager = notificationManager;\n _initDebugListener();\n _initPerfManager();\n _self[_DYN_LOGGER /* @min:%2elogger */] = logger;\n var cfgExtensions = config[STR_EXTENSIONS /* @min:%2eextensions */];\n // Extension validation\n _configExtensions = [];\n _configExtensions[_DYN_PUSH /* @min:%2epush */].apply(_configExtensions, __spreadArray(__spreadArray([], extensions, false), cfgExtensions, false));\n _channelConfig = config[STR_CHANNELS /* @min:%2echannels */];\n _initPluginChain(null);\n if (!_channels || _channels[_DYN_LENGTH /* @min:%2elength */] === 0) {\n throwError(\"No \" + STR_CHANNELS + \" available\");\n }\n if (_channelConfig && _channelConfig[_DYN_LENGTH /* @min:%2elength */] > 1) {\n var teeController = _self[_DYN_GET_PLUGIN /* @min:%2egetPlugin */](\"TeeChannelController\");\n if (!teeController || !teeController.plugin) {\n _throwInternal(_logger, 1 /* eLoggingSeverity.CRITICAL */, 28 /* _eInternalMessageId.SenderNotInitialized */, \"TeeChannel required\");\n }\n }\n _registerDelayedCfgListener(config, _cfgListeners, _logger);\n _cfgListeners = null;\n _isInitialized = true;\n _self.releaseQueue();\n _self[_DYN_POLL_INTERNAL_LOGS /* @min:%2epollInternalLogs */]();\n };\n _self.getChannels = function () {\n var controls = [];\n if (_channels) {\n arrForEach(_channels, function (channel) {\n controls[_DYN_PUSH /* @min:%2epush */](channel);\n });\n }\n return objFreeze(controls);\n };\n _self.track = function (telemetryItem) {\n doPerf(_self[STR_GET_PERF_MGR /* @min:%2egetPerfMgr */](), function () {\n return \"AppInsightsCore:track\";\n }, function () {\n if (telemetryItem === null) {\n _notifyInvalidEvent(telemetryItem);\n // throw error\n throwError(\"Invalid telemetry item\");\n }\n // do basic validation before sending it through the pipeline\n if (!telemetryItem[_DYN_NAME /* @min:%2ename */] && isNullOrUndefined(telemetryItem[_DYN_NAME /* @min:%2ename */])) {\n _notifyInvalidEvent(telemetryItem);\n throwError(\"telemetry name required\");\n }\n // setup default iKey if not passed in\n telemetryItem.iKey = telemetryItem.iKey || _instrumentationKey;\n // add default timestamp if not passed in\n telemetryItem[_DYN_TIME /* @min:%2etime */] = telemetryItem[_DYN_TIME /* @min:%2etime */] || toISOString(new Date());\n // Common Schema 4.0\n telemetryItem.ver = telemetryItem.ver || \"4.0\";\n if (!_isUnloading && _self[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */]()) {\n // Process the telemetry plugin chain\n _createTelCtx()[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](telemetryItem);\n } else {\n // Queue events until all extensions are initialized\n _eventQueue[_DYN_PUSH /* @min:%2epush */](telemetryItem);\n }\n }, function () {\n return {\n item: telemetryItem\n };\n }, !telemetryItem.sync);\n };\n _self[_DYN_GET_PROCESS_TEL_CONT0 /* @min:%2egetProcessTelContext */] = _createTelCtx;\n _self[_DYN_GET_NOTIFY_MGR /* @min:%2egetNotifyMgr */] = function () {\n if (!_notificationManager) {\n _notificationManager = new NotificationManager(_configHandler.cfg);\n // For backward compatibility only\n _self[strNotificationManager] = _notificationManager;\n }\n return _notificationManager;\n };\n /**\r\n * Adds a notification listener. The SDK calls methods on the listener when an appropriate notification is raised.\r\n * The added plugins must raise notifications. If the plugins do not implement the notifications, then no methods will be\r\n * called.\r\n * @param listener - An INotificationListener object.\r\n */\n _self[_DYN_ADD_NOTIFICATION_LIS1 /* @min:%2eaddNotificationListener */] = function (listener) {\n _self[_DYN_GET_NOTIFY_MGR /* @min:%2egetNotifyMgr */]()[_DYN_ADD_NOTIFICATION_LIS1 /* @min:%2eaddNotificationListener */](listener);\n };\n /**\r\n * Removes all instances of the listener.\r\n * @param listener - INotificationListener to remove.\r\n */\n _self[_DYN_REMOVE_NOTIFICATION_2 /* @min:%2eremoveNotificationListener */] = function (listener) {\n if (_notificationManager) {\n _notificationManager[_DYN_REMOVE_NOTIFICATION_2 /* @min:%2eremoveNotificationListener */](listener);\n }\n };\n _self.getCookieMgr = function () {\n if (!_cookieManager) {\n _cookieManager = createCookieMgr(_configHandler.cfg, _self[_DYN_LOGGER /* @min:%2elogger */]);\n }\n return _cookieManager;\n };\n _self.setCookieMgr = function (cookieMgr) {\n if (_cookieManager !== cookieMgr) {\n runTargetUnload(_cookieManager, false);\n _cookieManager = cookieMgr;\n }\n };\n _self[STR_GET_PERF_MGR /* @min:%2egetPerfMgr */] = function () {\n if (!_perfManager && !_cfgPerfManager) {\n _addUnloadHook(_configHandler[_DYN_WATCH /* @min:%2ewatch */](function (details) {\n if (details.cfg.enablePerfMgr) {\n var createPerfMgr = details.cfg[STR_CREATE_PERF_MGR /* @min:%2ecreatePerfMgr */];\n if (isFunction(createPerfMgr)) {\n _cfgPerfManager = createPerfMgr(_self, _self[_DYN_GET_NOTIFY_MGR /* @min:%2egetNotifyMgr */]());\n }\n }\n }));\n }\n return _perfManager || _cfgPerfManager || getGblPerfMgr();\n };\n _self.setPerfMgr = function (perfMgr) {\n _perfManager = perfMgr;\n };\n _self.eventCnt = function () {\n return _eventQueue[_DYN_LENGTH /* @min:%2elength */];\n };\n _self.releaseQueue = function () {\n if (_isInitialized && _eventQueue[_DYN_LENGTH /* @min:%2elength */] > 0) {\n var eventQueue = _eventQueue;\n _eventQueue = [];\n arrForEach(eventQueue, function (event) {\n _createTelCtx()[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](event);\n });\n }\n };\n _self[_DYN_POLL_INTERNAL_LOGS /* @min:%2epollInternalLogs */] = function (eventName) {\n _internalLogsEventName = eventName || null;\n _forceStopInternalLogPoller = false;\n _internalLogPoller && _internalLogPoller[_DYN_CANCEL /* @min:%2ecancel */]();\n return _startLogPoller(true);\n };\n function _startLogPoller(alwaysStart) {\n if ((!_internalLogPoller || !_internalLogPoller[_DYN_ENABLED /* @min:%2eenabled */]) && !_forceStopInternalLogPoller) {\n var shouldStart = alwaysStart || _logger && _logger.queue[_DYN_LENGTH /* @min:%2elength */] > 0;\n if (shouldStart) {\n if (!_internalLogPollerListening) {\n _internalLogPollerListening = true;\n // listen for any configuration changes so that changes to the\n // interval will cause the timer to be re-initialized\n _addUnloadHook(_configHandler[_DYN_WATCH /* @min:%2ewatch */](function (details) {\n var interval = details.cfg.diagnosticLogInterval;\n if (!interval || !(interval > 0)) {\n interval = 10000;\n }\n var isRunning = false;\n if (_internalLogPoller) {\n // It was already created so remember it's running and cancel\n isRunning = _internalLogPoller[_DYN_ENABLED /* @min:%2eenabled */];\n _internalLogPoller[_DYN_CANCEL /* @min:%2ecancel */]();\n }\n // Create / reconfigure\n _internalLogPoller = createTimeout(_flushInternalLogs, interval);\n _internalLogPoller.unref();\n // Restart if previously running\n _internalLogPoller[_DYN_ENABLED /* @min:%2eenabled */] = isRunning;\n }));\n }\n _internalLogPoller[_DYN_ENABLED /* @min:%2eenabled */] = true;\n }\n }\n return _internalLogPoller;\n }\n _self[_DYN_STOP_POLLING_INTERNA3 /* @min:%2estopPollingInternalLogs */] = function () {\n _forceStopInternalLogPoller = true;\n _internalLogPoller && _internalLogPoller[_DYN_CANCEL /* @min:%2ecancel */]();\n _flushInternalLogs();\n };\n // Add addTelemetryInitializer\n proxyFunctions(_self, function () {\n return _telemetryInitializerPlugin;\n }, [\"addTelemetryInitializer\"]);\n _self[_DYN_UNLOAD /* @min:%2eunload */] = function (isAsync, unloadComplete, cbTimeout) {\n var _a;\n if (isAsync === void 0) {\n isAsync = true;\n }\n if (!_isInitialized) {\n // The SDK is not initialized\n throwError(strSdkNotInitialized);\n }\n // Check if the SDK still unloading so throw\n if (_isUnloading) {\n // The SDK is already unloading\n throwError(strSdkUnloadingError);\n }\n var unloadState = (_a = {\n reason: 50 /* TelemetryUnloadReason.SdkUnload */\n }, _a[_DYN_IS_ASYNC /* @min:isAsync */] = isAsync, _a.flushComplete = false, _a);\n var result;\n if (isAsync && !unloadComplete) {\n result = createPromise(function (resolve) {\n // Set the callback to the promise resolve callback\n unloadComplete = resolve;\n });\n }\n var processUnloadCtx = createProcessTelemetryUnloadContext(_getPluginChain(), _self);\n processUnloadCtx[_DYN_ON_COMPLETE /* @min:%2eonComplete */](function () {\n _hookContainer.run(_self[_DYN_LOGGER /* @min:%2elogger */]);\n // Run any \"unload\" functions for the _cookieManager, _notificationManager and _logger\n doUnloadAll([_cookieManager, _notificationManager, _logger], isAsync, function () {\n _initDefaults();\n unloadComplete && unloadComplete(unloadState);\n });\n }, _self);\n function _doUnload(flushComplete) {\n unloadState.flushComplete = flushComplete;\n _isUnloading = true;\n // Run all of the unload handlers first (before unloading the plugins)\n _unloadHandlers.run(processUnloadCtx, unloadState);\n // Stop polling the internal logs\n _self[_DYN_STOP_POLLING_INTERNA3 /* @min:%2estopPollingInternalLogs */]();\n // Start unloading the components, from this point onwards the SDK should be considered to be in an unstable state\n processUnloadCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](unloadState);\n }\n _flushInternalLogs();\n if (!_flushChannels(isAsync, _doUnload, 6 /* SendRequestReason.SdkUnload */, cbTimeout)) {\n _doUnload(false);\n }\n return result;\n };\n _self[_DYN_GET_PLUGIN /* @min:%2egetPlugin */] = _getPlugin;\n _self.addPlugin = function (plugin, replaceExisting, isAsync, addCb) {\n if (!plugin) {\n addCb && addCb(false);\n _logOrThrowError(strValidationError);\n return;\n }\n var existingPlugin = _getPlugin(plugin[_DYN_IDENTIFIER /* @min:%2eidentifier */]);\n if (existingPlugin && !replaceExisting) {\n addCb && addCb(false);\n _logOrThrowError(\"Plugin [\" + plugin[_DYN_IDENTIFIER /* @min:%2eidentifier */] + \"] is already loaded!\");\n return;\n }\n var updateState = {\n reason: 16 /* TelemetryUpdateReason.PluginAdded */\n };\n function _addPlugin(removed) {\n _configExtensions[_DYN_PUSH /* @min:%2epush */](plugin);\n updateState.added = [plugin];\n // Re-Initialize the plugin chain\n _initPluginChain(updateState);\n addCb && addCb(true);\n }\n if (existingPlugin) {\n var removedPlugins_1 = [existingPlugin.plugin];\n var unloadState = {\n reason: 2 /* TelemetryUnloadReason.PluginReplace */,\n isAsync: !!isAsync\n };\n _removePlugins(removedPlugins_1, unloadState, function (removed) {\n if (!removed) {\n // Previous plugin was successfully removed or was not installed\n addCb && addCb(false);\n } else {\n updateState.removed = removedPlugins_1;\n updateState.reason |= 32 /* TelemetryUpdateReason.PluginRemoved */;\n _addPlugin(true);\n }\n });\n } else {\n _addPlugin(false);\n }\n };\n _self.updateCfg = function (newConfig, mergeExisting) {\n if (mergeExisting === void 0) {\n mergeExisting = true;\n }\n var updateState;\n if (_self[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */]()) {\n updateState = {\n reason: 1 /* TelemetryUpdateReason.ConfigurationChanged */,\n cfg: _configHandler.cfg,\n oldCfg: deepExtend({}, _configHandler.cfg),\n newConfig: deepExtend({}, newConfig),\n merge: mergeExisting\n };\n newConfig = updateState.newConfig;\n var cfg = _configHandler.cfg;\n // replace the immutable (if initialized) values\n // We don't currently allow updating the extensions and channels via the update config\n // So overwriting any user provided values to reuse the existing values\n newConfig[STR_EXTENSIONS /* @min:%2eextensions */] = cfg[STR_EXTENSIONS /* @min:%2eextensions */];\n newConfig[STR_CHANNELS /* @min:%2echannels */] = cfg[STR_CHANNELS /* @min:%2echannels */];\n }\n // Explicitly blocking any previous config watchers so that they don't get called because\n // of this bulk update (Probably not necessary)\n _configHandler._block(function (details) {\n // Lets assign the new values to the existing config either overwriting or re-assigning\n var theConfig = details.cfg;\n _deepMergeConfig(details, theConfig, newConfig, mergeExisting);\n if (!mergeExisting) {\n // Remove (unassign) the values \"missing\" from the newConfig and also not in the default config\n objForEachKey(theConfig, function (key) {\n if (!objHasOwn(newConfig, key)) {\n // Set the value to undefined\n details.set(theConfig, key, UNDEFINED_VALUE);\n }\n });\n }\n // Apply defaults to the new config\n details[_DYN_SET_DF /* @min:%2esetDf */](theConfig, defaultConfig);\n }, true);\n // Now execute all of the listeners (synchronously) so they update their values immediately\n _configHandler[_DYN_NOTIFY /* @min:%2enotify */]();\n if (updateState) {\n _doUpdate(updateState);\n }\n };\n _self.evtNamespace = function () {\n return _evtNamespace;\n };\n _self.flush = _flushChannels;\n _self.getTraceCtx = function (createNew) {\n if (!_traceCtx) {\n _traceCtx = createDistributedTraceContext();\n }\n return _traceCtx;\n };\n _self.setTraceCtx = function (traceCtx) {\n _traceCtx = traceCtx || null;\n };\n _self.addUnloadHook = _addUnloadHook;\n // Create the addUnloadCb\n proxyFunctionAs(_self, \"addUnloadCb\", function () {\n return _unloadHandlers;\n }, \"add\");\n _self.onCfgChange = function (handler) {\n var unloadHook;\n if (!_isInitialized) {\n unloadHook = _addDelayedCfgListener(_cfgListeners, handler);\n } else {\n unloadHook = onConfigChange(_configHandler.cfg, handler, _self[_DYN_LOGGER /* @min:%2elogger */]);\n }\n return {\n rm: function () {\n unloadHook.rm();\n }\n };\n };\n _self.getWParam = function () {\n return hasDocument() || !!_configHandler.cfg.enableWParam ? 0 : -1;\n };\n function _setPluginVersions() {\n var thePlugins = {};\n _pluginVersionStringArr = [];\n var _addPluginVersions = function (plugins) {\n if (plugins) {\n arrForEach(plugins, function (plugin) {\n if (plugin[_DYN_IDENTIFIER /* @min:%2eidentifier */] && plugin[_DYN_VERSION /* @min:%2eversion */] && !thePlugins[plugin.identifier]) {\n var ver = plugin[_DYN_IDENTIFIER /* @min:%2eidentifier */] + \"=\" + plugin[_DYN_VERSION /* @min:%2eversion */];\n _pluginVersionStringArr[_DYN_PUSH /* @min:%2epush */](ver);\n thePlugins[plugin.identifier] = plugin;\n }\n });\n }\n };\n _addPluginVersions(_channels);\n if (_channelConfig) {\n arrForEach(_channelConfig, function (channels) {\n _addPluginVersions(channels);\n });\n }\n _addPluginVersions(_configExtensions);\n }\n function _initDefaults() {\n _isInitialized = false;\n // Use a default logger so initialization errors are not dropped on the floor with full logging\n _configHandler = createDynamicConfig({}, defaultConfig, _self[_DYN_LOGGER /* @min:%2elogger */]);\n // Set the logging level to critical so that any critical initialization failures are displayed on the console\n _configHandler.cfg[_DYN_LOGGING_LEVEL_CONSOL4 /* @min:%2eloggingLevelConsole */] = 1 /* eLoggingSeverity.CRITICAL */;\n // Define _self.config\n objDefine(_self, \"config\", {\n g: function () {\n return _configHandler.cfg;\n },\n s: function (newValue) {\n _self.updateCfg(newValue, false);\n }\n });\n objDefine(_self, \"pluginVersionStringArr\", {\n g: function () {\n if (!_pluginVersionStringArr) {\n _setPluginVersions();\n }\n return _pluginVersionStringArr;\n }\n });\n objDefine(_self, \"pluginVersionString\", {\n g: function () {\n if (!_pluginVersionString) {\n if (!_pluginVersionStringArr) {\n _setPluginVersions();\n }\n _pluginVersionString = _pluginVersionStringArr.join(\";\");\n }\n return _pluginVersionString || STR_EMPTY;\n }\n });\n objDefine(_self, \"logger\", {\n g: function () {\n if (!_logger) {\n _logger = new DiagnosticLogger(_configHandler.cfg);\n _configHandler[_DYN_LOGGER /* @min:%2elogger */] = _logger;\n }\n return _logger;\n },\n s: function (newLogger) {\n _configHandler[_DYN_LOGGER /* @min:%2elogger */] = newLogger;\n if (_logger !== newLogger) {\n runTargetUnload(_logger, false);\n _logger = newLogger;\n }\n }\n });\n _self[_DYN_LOGGER /* @min:%2elogger */] = new DiagnosticLogger(_configHandler.cfg);\n _extensions = [];\n var cfgExtensions = _self.config[STR_EXTENSIONS /* @min:%2eextensions */] || [];\n cfgExtensions.splice(0, cfgExtensions[_DYN_LENGTH /* @min:%2elength */]);\n arrAppend(cfgExtensions, _extensions);\n _telemetryInitializerPlugin = new TelemetryInitializerPlugin();\n _eventQueue = [];\n runTargetUnload(_notificationManager, false);\n _notificationManager = null;\n _perfManager = null;\n _cfgPerfManager = null;\n runTargetUnload(_cookieManager, false);\n _cookieManager = null;\n _pluginChain = null;\n _configExtensions = [];\n _channelConfig = null;\n _channels = null;\n _isUnloading = false;\n _internalLogsEventName = null;\n _evtNamespace = createUniqueNamespace(\"AIBaseCore\", true);\n _unloadHandlers = createUnloadHandlerContainer();\n _traceCtx = null;\n _instrumentationKey = null;\n _hookContainer = createUnloadHookContainer();\n _cfgListeners = [];\n _pluginVersionString = null;\n _pluginVersionStringArr = null;\n _forceStopInternalLogPoller = false;\n }\n function _createTelCtx() {\n var theCtx = createProcessTelemetryContext(_getPluginChain(), _configHandler.cfg, _self);\n theCtx[_DYN_ON_COMPLETE /* @min:%2eonComplete */](_startLogPoller);\n return theCtx;\n }\n // Initialize or Re-initialize the plugins\n function _initPluginChain(updateState) {\n // Extension validation\n var theExtensions = _validateExtensions(_self[_DYN_LOGGER /* @min:%2elogger */], ChannelControllerPriority, _configExtensions);\n _pluginChain = null;\n _pluginVersionString = null;\n _pluginVersionStringArr = null;\n // Get the primary channel queue and include as part of the normal extensions\n _channels = (_channelConfig || [])[0] || [];\n // Add any channels provided in the extensions and sort them\n _channels = sortPlugins(arrAppend(_channels, theExtensions[STR_CHANNELS /* @min:%2echannels */]));\n // Create an array of all extensions, including the _channels\n var allExtensions = arrAppend(sortPlugins(theExtensions[STR_CORE /* @min:%2ecore */]), _channels);\n // Required to allow plugins to call core.getPlugin() during their own initialization\n _extensions = objFreeze(allExtensions);\n // This has a side effect of adding the extensions passed during initialization\n // into the config.extensions, so you can see all of the extensions loaded.\n // This will also get updated by the addPlugin() and remove plugin code.\n var cfgExtensions = _self.config[STR_EXTENSIONS /* @min:%2eextensions */] || [];\n cfgExtensions.splice(0, cfgExtensions[_DYN_LENGTH /* @min:%2elength */]);\n arrAppend(cfgExtensions, _extensions);\n var rootCtx = _createTelCtx();\n // Initializing the channels first\n if (_channels && _channels[_DYN_LENGTH /* @min:%2elength */] > 0) {\n initializePlugins(rootCtx[_DYN_CREATE_NEW /* @min:%2ecreateNew */](_channels), allExtensions);\n }\n // Now initialize the normal extensions (explicitly not including the _channels as this can cause duplicate initialization)\n initializePlugins(rootCtx, allExtensions);\n if (updateState) {\n _doUpdate(updateState);\n }\n }\n function _getPlugin(pluginIdentifier) {\n var theExt = null;\n var thePlugin = null;\n var channelHosts = [];\n arrForEach(_extensions, function (ext) {\n if (ext[_DYN_IDENTIFIER /* @min:%2eidentifier */] === pluginIdentifier && ext !== _telemetryInitializerPlugin) {\n thePlugin = ext;\n return -1;\n }\n if (ext.getChannel) {\n channelHosts[_DYN_PUSH /* @min:%2epush */](ext);\n }\n });\n if (!thePlugin && channelHosts[_DYN_LENGTH /* @min:%2elength */] > 0) {\n arrForEach(channelHosts, function (host) {\n thePlugin = host.getChannel(pluginIdentifier);\n if (!thePlugin) {\n return -1;\n }\n });\n }\n if (thePlugin) {\n theExt = {\n plugin: thePlugin,\n setEnabled: function (enabled) {\n _getPluginState(thePlugin)[STR_DISABLED] = !enabled;\n },\n isEnabled: function () {\n var pluginState = _getPluginState(thePlugin);\n return !pluginState[_DYN_TEARDOWN /* @min:%2eteardown */] && !pluginState[STR_DISABLED];\n },\n remove: function (isAsync, removeCb) {\n var _a;\n if (isAsync === void 0) {\n isAsync = true;\n }\n var pluginsToRemove = [thePlugin];\n var unloadState = (_a = {\n reason: 1 /* TelemetryUnloadReason.PluginUnload */\n }, _a[_DYN_IS_ASYNC /* @min:isAsync */] = isAsync, _a);\n _removePlugins(pluginsToRemove, unloadState, function (removed) {\n if (removed) {\n // Re-Initialize the plugin chain\n _initPluginChain({\n reason: 32 /* TelemetryUpdateReason.PluginRemoved */,\n removed: pluginsToRemove\n });\n }\n removeCb && removeCb(removed);\n });\n }\n };\n }\n return theExt;\n }\n function _getPluginChain() {\n if (!_pluginChain) {\n // copy the collection of extensions\n var extensions = (_extensions || []).slice();\n // During add / remove this may get called again, so don't read if already present\n if (arrIndexOf(extensions, _telemetryInitializerPlugin) === -1) {\n extensions[_DYN_PUSH /* @min:%2epush */](_telemetryInitializerPlugin);\n }\n _pluginChain = createTelemetryProxyChain(sortPlugins(extensions), _configHandler.cfg, _self);\n }\n return _pluginChain;\n }\n function _removePlugins(thePlugins, unloadState, removeComplete) {\n if (thePlugins && thePlugins[_DYN_LENGTH /* @min:%2elength */] > 0) {\n var unloadChain = createTelemetryProxyChain(thePlugins, _configHandler.cfg, _self);\n var unloadCtx = createProcessTelemetryUnloadContext(unloadChain, _self);\n unloadCtx[_DYN_ON_COMPLETE /* @min:%2eonComplete */](function () {\n var removed = false;\n // Remove the listed config extensions\n var newConfigExtensions = [];\n arrForEach(_configExtensions, function (plugin, idx) {\n if (!_isPluginPresent(plugin, thePlugins)) {\n newConfigExtensions[_DYN_PUSH /* @min:%2epush */](plugin);\n } else {\n removed = true;\n }\n });\n _configExtensions = newConfigExtensions;\n _pluginVersionString = null;\n _pluginVersionStringArr = null;\n // Re-Create the channel config\n var newChannelConfig = [];\n if (_channelConfig) {\n arrForEach(_channelConfig, function (queue, idx) {\n var newQueue = [];\n arrForEach(queue, function (channel) {\n if (!_isPluginPresent(channel, thePlugins)) {\n newQueue[_DYN_PUSH /* @min:%2epush */](channel);\n } else {\n removed = true;\n }\n });\n newChannelConfig[_DYN_PUSH /* @min:%2epush */](newQueue);\n });\n _channelConfig = newChannelConfig;\n }\n removeComplete && removeComplete(removed);\n _startLogPoller();\n });\n unloadCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](unloadState);\n } else {\n removeComplete(false);\n }\n }\n function _flushInternalLogs() {\n if (_logger && _logger.queue) {\n var queue = _logger.queue.slice(0);\n _logger.queue[_DYN_LENGTH /* @min:%2elength */] = 0;\n arrForEach(queue, function (logMessage) {\n var _a;\n var item = (_a = {}, _a[_DYN_NAME /* @min:name */] = _internalLogsEventName ? _internalLogsEventName : \"InternalMessageId: \" + logMessage[_DYN_MESSAGE_ID /* @min:%2emessageId */], _a.iKey = _instrumentationKey, _a[_DYN_TIME /* @min:time */] = toISOString(new Date()), _a.baseType = _InternalLogMessage.dataType, _a.baseData = {\n message: logMessage[_DYN_MESSAGE /* @min:%2emessage */]\n }, _a);\n _self.track(item);\n });\n }\n }\n function _flushChannels(isAsync, callBack, sendReason, cbTimeout) {\n // Setting waiting to one so that we don't call the callBack until we finish iterating\n var waiting = 1;\n var doneIterating = false;\n var cbTimer = null;\n cbTimeout = cbTimeout || 5000;\n function doCallback() {\n waiting--;\n if (doneIterating && waiting === 0) {\n cbTimer && cbTimer[_DYN_CANCEL /* @min:%2ecancel */]();\n cbTimer = null;\n callBack && callBack(doneIterating);\n callBack = null;\n }\n }\n if (_channels && _channels[_DYN_LENGTH /* @min:%2elength */] > 0) {\n var flushCtx = _createTelCtx()[_DYN_CREATE_NEW /* @min:%2ecreateNew */](_channels);\n flushCtx.iterate(function (plugin) {\n if (plugin.flush) {\n waiting++;\n var handled_1 = false;\n // Not all channels will call this callback for every scenario\n if (!plugin.flush(isAsync, function () {\n handled_1 = true;\n doCallback();\n }, sendReason)) {\n if (!handled_1) {\n // If any channel doesn't return true and it didn't call the callback, then we should assume that the callback\n // will never be called, so use a timeout to allow the channel(s) some time to \"finish\" before triggering any\n // followup function (such as unloading)\n if (isAsync && cbTimer == null) {\n cbTimer = scheduleTimeout(function () {\n cbTimer = null;\n doCallback();\n }, cbTimeout);\n } else {\n doCallback();\n }\n }\n }\n }\n });\n }\n doneIterating = true;\n doCallback();\n return true;\n }\n function _initDebugListener() {\n // Lazily ensure that the notification manager is created\n !_notificationManager && _self[_DYN_GET_NOTIFY_MGR /* @min:%2egetNotifyMgr */]();\n // Will get recalled if any referenced config values are changed\n _addUnloadHook(_configHandler[_DYN_WATCH /* @min:%2ewatch */](function (details) {\n var disableDbgExt = details.cfg.disableDbgExt;\n if (disableDbgExt === true && _debugListener) {\n // Remove any previously loaded debug listener\n _notificationManager[_DYN_REMOVE_NOTIFICATION_2 /* @min:%2eremoveNotificationListener */](_debugListener);\n _debugListener = null;\n }\n if (_notificationManager && !_debugListener && disableDbgExt !== true) {\n _debugListener = getDebugListener(details.cfg);\n _notificationManager[_DYN_ADD_NOTIFICATION_LIS1 /* @min:%2eaddNotificationListener */](_debugListener);\n }\n }));\n }\n function _initPerfManager() {\n // Will get recalled if any referenced config values are changed\n _addUnloadHook(_configHandler[_DYN_WATCH /* @min:%2ewatch */](function (details) {\n var enablePerfMgr = details.cfg.enablePerfMgr;\n if (!enablePerfMgr && _cfgPerfManager) {\n // Remove any existing config based performance manager\n _cfgPerfManager = null;\n }\n if (enablePerfMgr) {\n // Set the performance manager creation function if not defined\n getSetValue(details.cfg, STR_CREATE_PERF_MGR, _createPerfManager);\n }\n }));\n }\n function _doUpdate(updateState) {\n var updateCtx = createProcessTelemetryUpdateContext(_getPluginChain(), _self);\n updateCtx[_DYN_ON_COMPLETE /* @min:%2eonComplete */](_startLogPoller);\n if (!_self._updateHook || _self._updateHook(updateCtx, updateState) !== true) {\n updateCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](updateState);\n }\n }\n function _logOrThrowError(message) {\n var logger = _self[_DYN_LOGGER /* @min:%2elogger */];\n if (logger) {\n // there should always be a logger\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 73 /* _eInternalMessageId.PluginException */, message);\n _startLogPoller();\n } else {\n throwError(message);\n }\n }\n function _notifyInvalidEvent(telemetryItem) {\n var manager = _self[_DYN_GET_NOTIFY_MGR /* @min:%2egetNotifyMgr */]();\n if (manager) {\n manager[STR_EVENTS_DISCARDED /* @min:%2eeventsDiscarded */]([telemetryItem], 2 /* eEventsDiscardedReason.InvalidEvent */);\n }\n }\n function _addUnloadHook(hooks) {\n _hookContainer.add(hooks);\n }\n });\n }\n // Removed Stub for AppInsightsCore.prototype.initialize.\n // Removed Stub for AppInsightsCore.prototype.getChannels.\n // Removed Stub for AppInsightsCore.prototype.track.\n // Removed Stub for AppInsightsCore.prototype.getProcessTelContext.\n // Removed Stub for AppInsightsCore.prototype.getNotifyMgr.\n // Removed Stub for AppInsightsCore.prototype.addNotificationListener.\n // Removed Stub for AppInsightsCore.prototype.removeNotificationListener.\n // Removed Stub for AppInsightsCore.prototype.getCookieMgr.\n // Removed Stub for AppInsightsCore.prototype.setCookieMgr.\n // Removed Stub for AppInsightsCore.prototype.getPerfMgr.\n // Removed Stub for AppInsightsCore.prototype.setPerfMgr.\n // Removed Stub for AppInsightsCore.prototype.eventCnt.\n // Removed Stub for AppInsightsCore.prototype.pollInternalLogs.\n // Removed Stub for AppInsightsCore.prototype.stopPollingInternalLogs.\n // Removed Stub for AppInsightsCore.prototype.addTelemetryInitializer.\n // Removed Stub for AppInsightsCore.prototype.unload.\n // Removed Stub for AppInsightsCore.prototype.getPlugin.\n // Removed Stub for AppInsightsCore.prototype.addPlugin.\n // Removed Stub for AppInsightsCore.prototype.updateCfg.\n // Removed Stub for AppInsightsCore.prototype.evtNamespace.\n // Removed Stub for AppInsightsCore.prototype.addUnloadCb.\n // Removed Stub for AppInsightsCore.prototype.flush.\n // Removed Stub for AppInsightsCore.prototype.getTraceCtx.\n // Removed Stub for AppInsightsCore.prototype.setTraceCtx.\n // Removed Stub for AppInsightsCore.prototype.addUnloadHook.\n // Removed Stub for AppInsightsCore.prototype.onCfgChange.\n // Removed Stub for AppInsightsCore.prototype.releaseQueue.\n // Removed Stub for AppInsightsCore.prototype._updateHook.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n AppInsightsCore.__ieDyn = 1;\n return AppInsightsCore;\n}();\nexport { AppInsightsCore };\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrForEach, arrIndexOf, getDocument, getWindow, isArray, objForEachKey, objKeys } from \"@nevware21/ts-utils\";\nimport { _DYN_HANDLER, _DYN_LENGTH, _DYN_NAME, _DYN_PUSH, _DYN_REPLACE, _DYN_SPLICE, _DYN_SPLIT, _DYN_TYPE } from \"../__DynamicConstants\";\nimport { createElmNodeData, createUniqueNamespace } from \"./DataCacheHelper\";\nimport { STR_EMPTY } from \"./InternalConstants\";\n// Added to help with minfication\nvar strOnPrefix = \"on\";\nvar strAttachEvent = \"attachEvent\";\nvar strAddEventHelper = \"addEventListener\";\nvar strDetachEvent = \"detachEvent\";\nvar strRemoveEventListener = \"removeEventListener\";\nvar strEvents = \"events\";\nvar strVisibilityChangeEvt = \"visibilitychange\";\nvar strPageHide = \"pagehide\";\nvar strPageShow = \"pageshow\";\nvar strUnload = \"unload\";\nvar strBeforeUnload = \"beforeunload\";\nvar strPageHideNamespace = createUniqueNamespace(\"aiEvtPageHide\");\nvar strPageShowNamespace = createUniqueNamespace(\"aiEvtPageShow\");\nvar rRemoveEmptyNs = /\\.[\\.]+/g;\nvar rRemoveTrailingEmptyNs = /[\\.]+$/;\nvar _guid = 1;\nvar elmNodeData = createElmNodeData(\"events\");\nvar eventNamespace = /^([^.]*)(?:\\.(.+)|)/;\nfunction _normalizeNamespace(name) {\n if (name && name[_DYN_REPLACE /* @min:%2ereplace */]) {\n return name[_DYN_REPLACE /* @min:%2ereplace */](/^[\\s\\.]+|(?=[\\s\\.])[\\.\\s]+$/g, STR_EMPTY);\n }\n return name;\n}\nfunction _getEvtNamespace(eventName, evtNamespace) {\n var _a;\n if (evtNamespace) {\n var theNamespace_1 = STR_EMPTY;\n if (isArray(evtNamespace)) {\n theNamespace_1 = STR_EMPTY;\n arrForEach(evtNamespace, function (name) {\n name = _normalizeNamespace(name);\n if (name) {\n if (name[0] !== \".\") {\n name = \".\" + name;\n }\n theNamespace_1 += name;\n }\n });\n } else {\n theNamespace_1 = _normalizeNamespace(evtNamespace);\n }\n if (theNamespace_1) {\n if (theNamespace_1[0] !== \".\") {\n theNamespace_1 = \".\" + theNamespace_1;\n }\n // We may only have the namespace and not an eventName\n eventName = (eventName || STR_EMPTY) + theNamespace_1;\n }\n }\n var parsedEvent = eventNamespace.exec(eventName || STR_EMPTY) || [];\n return _a = {}, _a[_DYN_TYPE /* @min:type */] = parsedEvent[1], _a.ns = (parsedEvent[2] || STR_EMPTY).replace(rRemoveEmptyNs, \".\").replace(rRemoveTrailingEmptyNs, STR_EMPTY)[_DYN_SPLIT /* @min:%2esplit */](\".\").sort().join(\".\"), _a;\n}\n/**\r\n * Get all of the registered events on the target object, this is primarily used for testing cleanup but may also be used by\r\n * applications to remove their own events\r\n * @param target - The EventTarget that has registered events\r\n * @param eventName - [Optional] The name of the event to return the registered handlers and full name (with namespaces)\r\n * @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,\r\n * if the eventName also includes a namespace the namespace(s) are merged into a single namespace\r\n */\nexport function __getRegisteredEvents(target, eventName, evtNamespace) {\n var theEvents = [];\n var eventCache = elmNodeData.get(target, strEvents, {}, false);\n var evtName = _getEvtNamespace(eventName, evtNamespace);\n objForEachKey(eventCache, function (evtType, registeredEvents) {\n arrForEach(registeredEvents, function (value) {\n var _a;\n if (!evtName[_DYN_TYPE /* @min:%2etype */] || evtName[_DYN_TYPE /* @min:%2etype */] === value.evtName[_DYN_TYPE /* @min:%2etype */]) {\n if (!evtName.ns || evtName.ns === evtName.ns) {\n theEvents[_DYN_PUSH /* @min:%2epush */]((_a = {}, _a[_DYN_NAME /* @min:name */] = value.evtName[_DYN_TYPE /* @min:%2etype */] + (value.evtName.ns ? \".\" + value.evtName.ns : STR_EMPTY), _a.handler = value[_DYN_HANDLER /* @min:%2ehandler */], _a));\n }\n }\n });\n });\n return theEvents;\n}\n// Exported for internal unit testing only\nfunction _getRegisteredEvents(target, evtName, addDefault) {\n if (addDefault === void 0) {\n addDefault = true;\n }\n var aiEvts = elmNodeData.get(target, strEvents, {}, addDefault);\n var registeredEvents = aiEvts[evtName];\n if (!registeredEvents) {\n registeredEvents = aiEvts[evtName] = [];\n }\n return registeredEvents;\n}\nfunction _doDetach(obj, evtName, handlerRef, useCapture) {\n if (obj && evtName && evtName[_DYN_TYPE /* @min:%2etype */]) {\n if (obj[strRemoveEventListener]) {\n obj[strRemoveEventListener](evtName[_DYN_TYPE /* @min:%2etype */], handlerRef, useCapture);\n } else if (obj[strDetachEvent]) {\n obj[strDetachEvent](strOnPrefix + evtName[_DYN_TYPE /* @min:%2etype */], handlerRef);\n }\n }\n}\nfunction _doAttach(obj, evtName, handlerRef, useCapture) {\n var result = false;\n if (obj && evtName && evtName[_DYN_TYPE /* @min:%2etype */] && handlerRef) {\n if (obj[strAddEventHelper]) {\n // all browsers except IE before version 9\n obj[strAddEventHelper](evtName[_DYN_TYPE /* @min:%2etype */], handlerRef, useCapture);\n result = true;\n } else if (obj[strAttachEvent]) {\n // IE before version 9\n obj[strAttachEvent](strOnPrefix + evtName[_DYN_TYPE /* @min:%2etype */], handlerRef);\n result = true;\n }\n }\n return result;\n}\nfunction _doUnregister(target, events, evtName, unRegFn) {\n var idx = events[_DYN_LENGTH /* @min:%2elength */];\n while (idx--) {\n var theEvent = events[idx];\n if (theEvent) {\n if (!evtName.ns || evtName.ns === theEvent.evtName.ns) {\n if (!unRegFn || unRegFn(theEvent)) {\n _doDetach(target, theEvent.evtName, theEvent[_DYN_HANDLER /* @min:%2ehandler */], theEvent.capture);\n // Remove the registered event\n events[_DYN_SPLICE /* @min:%2esplice */](idx, 1);\n }\n }\n }\n }\n}\nfunction _unregisterEvents(target, evtName, unRegFn) {\n if (evtName[_DYN_TYPE /* @min:%2etype */]) {\n _doUnregister(target, _getRegisteredEvents(target, evtName[_DYN_TYPE /* @min:%2etype */]), evtName, unRegFn);\n } else {\n var eventCache = elmNodeData.get(target, strEvents, {});\n objForEachKey(eventCache, function (evtType, events) {\n _doUnregister(target, events, evtName, unRegFn);\n });\n // Cleanup\n if (objKeys(eventCache)[_DYN_LENGTH /* @min:%2elength */] === 0) {\n elmNodeData.kill(target, strEvents);\n }\n }\n}\nexport function mergeEvtNamespace(theNamespace, namespaces) {\n var newNamespaces;\n if (namespaces) {\n if (isArray(namespaces)) {\n newNamespaces = [theNamespace].concat(namespaces);\n } else {\n newNamespaces = [theNamespace, namespaces];\n }\n // resort the namespaces so they are always in order\n newNamespaces = _getEvtNamespace(\"xx\", newNamespaces).ns[_DYN_SPLIT /* @min:%2esplit */](\".\");\n } else {\n newNamespaces = theNamespace;\n }\n return newNamespaces;\n}\n/**\r\n * Binds the specified function to an event, so that the function gets called whenever the event fires on the object\r\n * @param obj - Object to add the event too.\r\n * @param eventName - String that specifies any of the standard DHTML Events without \"on\" prefix, if may also include an optional (dot \".\" prefixed)\r\n * namespaces \"click\" \"click.mynamespace\" in addition to specific namespaces.\r\n * @param handlerRef - Pointer that specifies the function to call when event fires\r\n * @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,\r\n * if the eventName also includes a namespace the namespace(s) are merged into a single namespace\r\n * @param useCapture - [Optional] Defaults to false\r\n * @returns True if the function was bound successfully to the event, otherwise false\r\n */\nexport function eventOn(target, eventName, handlerRef, evtNamespace, useCapture) {\n var _a;\n if (useCapture === void 0) {\n useCapture = false;\n }\n var result = false;\n if (target) {\n try {\n var evtName = _getEvtNamespace(eventName, evtNamespace);\n result = _doAttach(target, evtName, handlerRef, useCapture);\n if (result && elmNodeData.accept(target)) {\n var registeredEvent = (_a = {\n guid: _guid++,\n evtName: evtName\n }, _a[_DYN_HANDLER /* @min:handler */] = handlerRef, _a.capture = useCapture, _a);\n _getRegisteredEvents(target, evtName.type)[_DYN_PUSH /* @min:%2epush */](registeredEvent);\n }\n } catch (e) {\n // Just Ignore any error so that we don't break any execution path\n }\n }\n return result;\n}\n/**\r\n * Removes an event handler for the specified event\r\n * @param Object - to remove the event from\r\n * @param eventName - {string} - The name of the event, with optional namespaces or just the namespaces,\r\n * such as \"click\", \"click.mynamespace\" or \".mynamespace\"\r\n * @param handlerRef - {any} - The callback function that needs to be removed from the given event, when using a\r\n * namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers\r\n * otherwise this will only remove events with this specific handler.\r\n * @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,\r\n * if the eventName also includes a namespace the namespace(s) are merged into a single namespace\r\n * @param useCapture - [Optional] Defaults to false\r\n */\nexport function eventOff(target, eventName, handlerRef, evtNamespace, useCapture) {\n if (useCapture === void 0) {\n useCapture = false;\n }\n if (target) {\n try {\n var evtName_1 = _getEvtNamespace(eventName, evtNamespace);\n var found_1 = false;\n _unregisterEvents(target, evtName_1, function (regEvent) {\n if (evtName_1.ns && !handlerRef || regEvent[_DYN_HANDLER /* @min:%2ehandler */] === handlerRef) {\n found_1 = true;\n return true;\n }\n return false;\n });\n if (!found_1) {\n // fallback to try and remove as requested\n _doDetach(target, evtName_1, handlerRef, useCapture);\n }\n } catch (e) {\n // Just Ignore any error so that we don't break any execution path\n }\n }\n}\n/**\r\n * Binds the specified function to an event, so that the function gets called whenever the event fires on the object\r\n * @param obj - Object to add the event too.\r\n * @param eventNameWithoutOn - String that specifies any of the standard DHTML Events without \"on\" prefix and optional (dot \".\" prefixed) namespaces \"click\" \"click.mynamespace\".\r\n * @param handlerRef - Pointer that specifies the function to call when event fires\r\n * @param useCapture - [Optional] Defaults to false\r\n * @returns True if the function was bound successfully to the event, otherwise false\r\n */\nexport function attachEvent(obj, eventNameWithoutOn, handlerRef, useCapture) {\n if (useCapture === void 0) {\n useCapture = false;\n }\n return eventOn(obj, eventNameWithoutOn, handlerRef, null, useCapture);\n}\n/**\r\n * Removes an event handler for the specified event\r\n * @param Object - to remove the event from\r\n * @param eventNameWithoutOn - {string} - The name of the event, with optional namespaces or just the namespaces,\r\n * such as \"click\", \"click.mynamespace\" or \".mynamespace\"\r\n * @param handlerRef - {any} - The callback function that needs to be removed from the given event, when using a\r\n * namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers\r\n * otherwise this will only remove events with this specific handler.\r\n * @param useCapture - [Optional] Defaults to false\r\n */\nexport function detachEvent(obj, eventNameWithoutOn, handlerRef, useCapture) {\n if (useCapture === void 0) {\n useCapture = false;\n }\n eventOff(obj, eventNameWithoutOn, handlerRef, null, useCapture);\n}\n/**\r\n * Trys to add an event handler for the specified event to the window, body and document\r\n * @param eventName - {string} - The name of the event\r\n * @param callback - {any} - The callback function that needs to be executed for the given event\r\n * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.\r\n * @return {boolean} - true if the handler was successfully added\r\n */\nexport function addEventHandler(eventName, callback, evtNamespace) {\n var result = false;\n var w = getWindow();\n if (w) {\n result = eventOn(w, eventName, callback, evtNamespace);\n result = eventOn(w[\"body\"], eventName, callback, evtNamespace) || result;\n }\n var doc = getDocument();\n if (doc) {\n result = eventOn(doc, eventName, callback, evtNamespace) || result;\n }\n return result;\n}\n/**\r\n * Trys to remove event handler(s) for the specified event/namespace to the window, body and document\r\n * @param eventName - {string} - The name of the event, with optional namespaces or just the namespaces,\r\n * such as \"click\", \"click.mynamespace\" or \".mynamespace\"\r\n * @param callback - {any} - - The callback function that needs to be removed from the given event, when using a\r\n * namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers\r\n * otherwise this will only remove events with this specific handler.\r\n * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.\r\n */\nexport function removeEventHandler(eventName, callback, evtNamespace) {\n var w = getWindow();\n if (w) {\n eventOff(w, eventName, callback, evtNamespace);\n eventOff(w[\"body\"], eventName, callback, evtNamespace);\n }\n var doc = getDocument();\n if (doc) {\n eventOff(doc, eventName, callback, evtNamespace);\n }\n}\n/**\r\n * Bind the listener to the array of events\r\n * @param events - An string array of event names to bind the listener to\r\n * @param listener - The event callback to call when the event is triggered\r\n * @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.\r\n * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.\r\n * @returns true - when at least one of the events was registered otherwise false\r\n */\nfunction _addEventListeners(events, listener, excludeEvents, evtNamespace) {\n var added = false;\n if (listener && events && events[_DYN_LENGTH /* @min:%2elength */] > 0) {\n arrForEach(events, function (name) {\n if (name) {\n if (!excludeEvents || arrIndexOf(excludeEvents, name) === -1) {\n added = addEventHandler(name, listener, evtNamespace) || added;\n }\n }\n });\n }\n return added;\n}\n/**\r\n * Bind the listener to the array of events\r\n * @param events - An string array of event names to bind the listener to\r\n * @param listener - The event callback to call when the event is triggered\r\n * @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.\r\n * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.\r\n * @returns true - when at least one of the events was registered otherwise false\r\n */\nexport function addEventListeners(events, listener, excludeEvents, evtNamespace) {\n var added = false;\n if (listener && events && isArray(events)) {\n added = _addEventListeners(events, listener, excludeEvents, evtNamespace);\n if (!added && excludeEvents && excludeEvents[_DYN_LENGTH /* @min:%2elength */] > 0) {\n // Failed to add any listeners and we excluded some, so just attempt to add the excluded events\n added = _addEventListeners(events, listener, null, evtNamespace);\n }\n }\n return added;\n}\n/**\r\n * Remove the listener from the array of events\r\n * @param events - An string array of event names to bind the listener to\r\n * @param listener - The event callback to call when the event is triggered\r\n * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.\r\n */\nexport function removeEventListeners(events, listener, evtNamespace) {\n if (events && isArray(events)) {\n arrForEach(events, function (name) {\n if (name) {\n removeEventHandler(name, listener, evtNamespace);\n }\n });\n }\n}\n/**\r\n * Listen to the 'beforeunload', 'unload' and 'pagehide' events which indicates a page unload is occurring,\r\n * this does NOT listen to the 'visibilitychange' event as while it does indicate that the page is being hidden\r\n * it does not *necessarily* mean that the page is being completely unloaded, it can mean that the user is\r\n * just navigating to a different Tab and may come back (without unloading the page). As such you may also\r\n * need to listen to the 'addPageHideEventListener' and 'addPageShowEventListener' events.\r\n * @param listener - The event callback to call when a page unload event is triggered\r\n * @param excludeEvents - [Optional] An array of events that should not be hooked, unless no other events can be.\r\n * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.\r\n * @returns true - when at least one of the events was registered otherwise false\r\n */\nexport function addPageUnloadEventListener(listener, excludeEvents, evtNamespace) {\n // Hook the unload event for the document, window and body to ensure that the client events are flushed to the server\n // As just hooking the window does not always fire (on chrome) for page navigation's.\n return addEventListeners([strBeforeUnload, strUnload, strPageHide], listener, excludeEvents, evtNamespace);\n}\n/**\r\n * Remove any matching 'beforeunload', 'unload' and 'pagehide' events that may have been added via addEventListener,\r\n * addEventListeners, addPageUnloadEventListener or addPageHideEventListener.\r\n * @param listener - The specific event callback to to be removed\r\n * @param evtNamespace - [Optional] Namespace(s) uniquely identified and removed based on this namespace.\r\n * @returns true - when at least one of the events was registered otherwise false\r\n */\nexport function removePageUnloadEventListener(listener, evtNamespace) {\n removeEventListeners([strBeforeUnload, strUnload, strPageHide], listener, evtNamespace);\n}\n/**\r\n * Listen to the pagehide and visibility changing to 'hidden' events, because the 'visibilitychange' uses\r\n * an internal proxy to detect the visibility state you SHOULD use a unique namespace when if you plan to call\r\n * removePageShowEventListener as the remove ignores the listener argument for the 'visibilitychange' event.\r\n * @param listener - The event callback to call when a page hide event is triggered\r\n * @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.\r\n * @param evtNamespace - [Optional] A Namespace to append to the event listeners so they can be uniquely identified and removed\r\n * based on this namespace. This call also adds an additional unique \"pageshow\" namespace to the events\r\n * so that only the matching \"removePageHideEventListener\" can remove these events.\r\n * Suggestion: pass as true if you are also calling addPageUnloadEventListener as that also hooks pagehide\r\n * @returns true - when at least one of the events was registered otherwise false\r\n */\nexport function addPageHideEventListener(listener, excludeEvents, evtNamespace) {\n function _handlePageVisibility(evt) {\n var doc = getDocument();\n if (listener && doc && doc.visibilityState === \"hidden\") {\n listener(evt);\n }\n }\n // add the unique page show namespace to any provided namespace so we can only remove the ones added by \"pagehide\"\n var newNamespaces = mergeEvtNamespace(strPageHideNamespace, evtNamespace);\n var pageUnloadAdded = _addEventListeners([strPageHide], listener, excludeEvents, newNamespaces);\n if (!excludeEvents || arrIndexOf(excludeEvents, strVisibilityChangeEvt) === -1) {\n pageUnloadAdded = _addEventListeners([strVisibilityChangeEvt], _handlePageVisibility, excludeEvents, newNamespaces) || pageUnloadAdded;\n }\n if (!pageUnloadAdded && excludeEvents) {\n // Failed to add any listeners and we where requested to exclude some, so just call again without excluding anything\n pageUnloadAdded = addPageHideEventListener(listener, null, evtNamespace);\n }\n return pageUnloadAdded;\n}\n/**\r\n * Removes the pageHide event listeners added by addPageHideEventListener, because the 'visibilitychange' uses\r\n * an internal proxy to detect the visibility state you SHOULD use a unique namespace when calling addPageHideEventListener\r\n * as the remove ignores the listener argument for the 'visibilitychange' event.\r\n * @param listener - The specific listener to remove for the 'pageshow' event only (ignored for 'visibilitychange')\r\n * @param evtNamespace - The unique namespace used when calling addPageShowEventListener\r\n */\nexport function removePageHideEventListener(listener, evtNamespace) {\n // add the unique page show namespace to any provided namespace so we only remove the ones added by \"pagehide\"\n var newNamespaces = mergeEvtNamespace(strPageHideNamespace, evtNamespace);\n removeEventListeners([strPageHide], listener, newNamespaces);\n removeEventListeners([strVisibilityChangeEvt], null, newNamespaces);\n}\n/**\r\n * Listen to the pageshow and visibility changing to 'visible' events, because the 'visibilitychange' uses\r\n * an internal proxy to detect the visibility state you SHOULD use a unique namespace when if you plan to call\r\n * removePageShowEventListener as the remove ignores the listener argument for the 'visibilitychange' event.\r\n * @param listener - The event callback to call when a page is show event is triggered\r\n * @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.\r\n * @param evtNamespace - [Optional/Recommended] A Namespace to append to the event listeners so they can be uniquely\r\n * identified and removed based on this namespace. This call also adds an additional unique \"pageshow\" namespace to the events\r\n * so that only the matching \"removePageShowEventListener\" can remove these events.\r\n * @returns true - when at least one of the events was registered otherwise false\r\n */\nexport function addPageShowEventListener(listener, excludeEvents, evtNamespace) {\n function _handlePageVisibility(evt) {\n var doc = getDocument();\n if (listener && doc && doc.visibilityState === \"visible\") {\n listener(evt);\n }\n }\n // add the unique page show namespace to any provided namespace so we can only remove the ones added by \"pageshow\"\n var newNamespaces = mergeEvtNamespace(strPageShowNamespace, evtNamespace);\n var pageShowAdded = _addEventListeners([strPageShow], listener, excludeEvents, newNamespaces);\n pageShowAdded = _addEventListeners([strVisibilityChangeEvt], _handlePageVisibility, excludeEvents, newNamespaces) || pageShowAdded;\n if (!pageShowAdded && excludeEvents) {\n // Failed to add any listeners and we where requested to exclude some, so just call again without excluding anything\n pageShowAdded = addPageShowEventListener(listener, null, evtNamespace);\n }\n return pageShowAdded;\n}\n/**\r\n * Removes the pageShow event listeners added by addPageShowEventListener, because the 'visibilitychange' uses\r\n * an internal proxy to detect the visibility state you SHOULD use a unique namespace when calling addPageShowEventListener\r\n * as the remove ignores the listener argument for the 'visibilitychange' event.\r\n * @param listener - The specific listener to remove for the 'pageshow' event only (ignored for 'visibilitychange')\r\n * @param evtNamespace - The unique namespace used when calling addPageShowEventListener\r\n */\nexport function removePageShowEventListener(listener, evtNamespace) {\n // add the unique page show namespace to any provided namespace so we only remove the ones added by \"pageshow\"\n var newNamespaces = mergeEvtNamespace(strPageShowNamespace, evtNamespace);\n removeEventListeners([strPageShow], listener, newNamespaces);\n removeEventListeners([strVisibilityChangeEvt], null, newNamespaces);\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { strShimFunction, strShimPrototype } from \"@microsoft/applicationinsights-shims\";\nimport { getInst, objHasOwnProperty } from \"@nevware21/ts-utils\";\nimport { _DYN_APPLY, _DYN_LENGTH, _DYN_NAME, _DYN_PUSH, _DYN_SPLICE } from \"../__DynamicConstants\";\nimport { _getObjProto } from \"./HelperFuncs\";\nvar aiInstrumentHooks = \"_aiHooks\";\nvar cbNames = [\"req\", \"rsp\", \"hkErr\", \"fnErr\"];\n/** @ignore */\nfunction _arrLoop(arr, fn) {\n if (arr) {\n for (var lp = 0; lp < arr[_DYN_LENGTH /* @min:%2elength */]; lp++) {\n if (fn(arr[lp], lp)) {\n break;\n }\n }\n }\n}\n/** @ignore */\nfunction _doCallbacks(hooks, callDetails, cbArgs, hookCtx, type) {\n if (type >= 0 /* CallbackType.Request */ && type <= 2 /* CallbackType.HookError */) {\n _arrLoop(hooks, function (hook, idx) {\n var cbks = hook.cbks;\n var cb = cbks[cbNames[type]];\n if (cb) {\n // Set the specific hook context implementation using a lazy creation pattern\n callDetails.ctx = function () {\n var ctx = hookCtx[idx] = hookCtx[idx] || {};\n return ctx;\n };\n try {\n cb[_DYN_APPLY /* @min:%2eapply */](callDetails.inst, cbArgs);\n } catch (err) {\n var orgEx = callDetails.err;\n try {\n // Report Hook error via the callback\n var hookErrorCb = cbks[cbNames[2 /* CallbackType.HookError */]];\n if (hookErrorCb) {\n callDetails.err = err;\n hookErrorCb[_DYN_APPLY /* @min:%2eapply */](callDetails.inst, cbArgs);\n }\n } catch (e) {\n // Not much we can do here -- swallowing the exception to avoid crashing the hosting app\n } finally {\n // restore the original exception (if any)\n callDetails.err = orgEx;\n }\n }\n }\n });\n }\n}\n/** @ignore */\nfunction _createFunctionHook(aiHook) {\n // Define a temporary method that queues-up a the real method call\n return function () {\n var _a;\n var funcThis = this;\n // Capture the original arguments passed to the method\n var orgArgs = arguments;\n var hooks = aiHook.h;\n var funcArgs = (_a = {}, _a[_DYN_NAME /* @min:name */] = aiHook.n, _a.inst = funcThis, _a.ctx = null, _a.set = _replaceArg, _a);\n var hookCtx = [];\n var cbArgs = _createArgs([funcArgs], orgArgs);\n funcArgs.evt = getInst(\"event\");\n function _createArgs(target, theArgs) {\n _arrLoop(theArgs, function (arg) {\n target[_DYN_PUSH /* @min:%2epush */](arg);\n });\n return target;\n }\n function _replaceArg(idx, value) {\n orgArgs = _createArgs([], orgArgs);\n orgArgs[idx] = value;\n cbArgs = _createArgs([funcArgs], orgArgs);\n }\n // Call the pre-request hooks\n _doCallbacks(hooks, funcArgs, cbArgs, hookCtx, 0 /* CallbackType.Request */);\n // Call the original function was called\n var theFunc = aiHook.f;\n if (theFunc) {\n try {\n funcArgs.rslt = theFunc[_DYN_APPLY /* @min:%2eapply */](funcThis, orgArgs);\n } catch (err) {\n // Report the request callback\n funcArgs.err = err;\n _doCallbacks(hooks, funcArgs, cbArgs, hookCtx, 3 /* CallbackType.FunctionError */);\n // rethrow the original exception so anyone listening for it can catch the exception\n throw err;\n }\n }\n // Call the post-request hooks\n _doCallbacks(hooks, funcArgs, cbArgs, hookCtx, 1 /* CallbackType.Response */);\n return funcArgs.rslt;\n };\n}\n/** @ignore */\nfunction _getOwner(target, name, checkPrototype, checkParentProto) {\n var owner = null;\n if (target) {\n if (objHasOwnProperty(target, name)) {\n owner = target;\n } else if (checkPrototype) {\n owner = _getOwner(_getObjProto(target), name, checkParentProto, false);\n }\n }\n return owner;\n}\n/**\r\n * Intercept the named prototype functions for the target class / object\r\n * @param target - The target object\r\n * @param funcName - The function name\r\n * @param callbacks - The callbacks to configure and call whenever the function is called\r\n */\nexport function InstrumentProto(target, funcName, callbacks) {\n if (target) {\n return InstrumentFunc(target[strShimPrototype], funcName, callbacks, false);\n }\n return null;\n}\n/**\r\n * Intercept the named prototype functions for the target class / object\r\n * @param target - The target object\r\n * @param funcNames - The function names to intercept and call\r\n * @param callbacks - The callbacks to configure and call whenever the function is called\r\n */\nexport function InstrumentProtos(target, funcNames, callbacks) {\n if (target) {\n return InstrumentFuncs(target[strShimPrototype], funcNames, callbacks, false);\n }\n return null;\n}\nfunction _createInstrumentHook(owner, funcName, fn, callbacks) {\n var aiHook = fn && fn[aiInstrumentHooks];\n if (!aiHook) {\n // Only hook the function once\n aiHook = {\n i: 0,\n n: funcName,\n f: fn,\n h: []\n };\n // Override (hook) the original function\n var newFunc = _createFunctionHook(aiHook);\n newFunc[aiInstrumentHooks] = aiHook; // Tag and store the function hooks\n owner[funcName] = newFunc;\n }\n var theHook = {\n // tslint:disable:object-literal-shorthand\n id: aiHook.i,\n cbks: callbacks,\n rm: function () {\n // DO NOT Use () => { shorthand for the function as the this gets replaced\n // with the outer this and not the this for theHook instance.\n var id = this.id;\n _arrLoop(aiHook.h, function (hook, idx) {\n if (hook.id === id) {\n aiHook.h[_DYN_SPLICE /* @min:%2esplice */](idx, 1);\n return 1;\n }\n });\n }\n // tslint:enable:object-literal-shorthand\n };\n aiHook.i++;\n aiHook.h[_DYN_PUSH /* @min:%2epush */](theHook);\n return theHook;\n}\n/**\r\n * Intercept the named prototype functions for the target class / object\r\n * @param target - The target object\r\n * @param funcName - The function name\r\n * @param callbacks - The callbacks to configure and call whenever the function is called\r\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\r\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\r\n */\nexport function InstrumentFunc(target, funcName, callbacks, checkPrototype, checkParentProto) {\n if (checkPrototype === void 0) {\n checkPrototype = true;\n }\n if (target && funcName && callbacks) {\n var owner = _getOwner(target, funcName, checkPrototype, checkParentProto);\n if (owner) {\n var fn = owner[funcName];\n if (typeof fn === strShimFunction) {\n return _createInstrumentHook(owner, funcName, fn, callbacks);\n }\n }\n }\n return null;\n}\n/**\r\n * Intercept the named functions for the target class / object\r\n * @param target - The target object\r\n * @param funcNames - The function names to intercept and call\r\n * @param callbacks - The callbacks to configure and call whenever the function is called\r\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\r\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\r\n */\nexport function InstrumentFuncs(target, funcNames, callbacks, checkPrototype, checkParentProto) {\n if (checkPrototype === void 0) {\n checkPrototype = true;\n }\n var hooks = null;\n _arrLoop(funcNames, function (funcName) {\n var hook = InstrumentFunc(target, funcName, callbacks, checkPrototype, checkParentProto);\n if (hook) {\n if (!hooks) {\n hooks = [];\n }\n hooks[_DYN_PUSH /* @min:%2epush */](hook);\n }\n });\n return hooks;\n}\n/**\r\n * Add an instrumentation hook to the provided named \"event\" for the target class / object, this doesn't check whether the\r\n * named \"event\" is in fact a function and just assigns the instrumentation hook to the target[evtName]\r\n * @param target - The target object\r\n * @param evtName - The name of the event\r\n * @param callbacks - The callbacks to configure and call whenever the function is called\r\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\r\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\r\n */\nexport function InstrumentEvent(target, evtName, callbacks, checkPrototype, checkParentProto) {\n if (target && evtName && callbacks) {\n var owner = _getOwner(target, evtName, checkPrototype, checkParentProto) || target;\n if (owner) {\n return _createInstrumentHook(owner, evtName, owner[evtName], callbacks);\n }\n }\n return null;\n}\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n/**\r\n * This is an internal property used to cause internal (reporting) requests to be ignored from reporting\r\n * additional telemetry, to handle polyfil implementations ALL urls used with a disabled request will\r\n * also be ignored for future requests even when this property is not provided.\r\n * Tagging as Ignore as this is an internal value and is not expected to be used outside of the SDK\r\n * @ignore\r\n */\nexport var DisabledPropertyName = \"Microsoft_ApplicationInsights_BypassAjaxInstrumentation\";\nexport var SampleRate = \"sampleRate\";\nexport var ProcessLegacy = \"ProcessLegacy\";\nexport var HttpMethod = \"http.method\";\nexport var DEFAULT_BREEZE_ENDPOINT = \"https://dc.services.visualstudio.com\";\nexport var DEFAULT_BREEZE_PATH = \"/v2/track\";\nexport var strNotSpecified = \"not_specified\";\nexport var strIkey = \"iKey\";\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { createValueMap } from \"@microsoft/applicationinsights-core-js\";\nexport var RequestHeaders = createValueMap({\n requestContextHeader: [0 /* eRequestHeaders.requestContextHeader */, \"Request-Context\"],\n requestContextTargetKey: [1 /* eRequestHeaders.requestContextTargetKey */, \"appId\"],\n requestContextAppIdFormat: [2 /* eRequestHeaders.requestContextAppIdFormat */, \"appId=cid-v1:\"],\n requestIdHeader: [3 /* eRequestHeaders.requestIdHeader */, \"Request-Id\"],\n traceParentHeader: [4 /* eRequestHeaders.traceParentHeader */, \"traceparent\"],\n traceStateHeader: [5 /* eRequestHeaders.traceStateHeader */, \"tracestate\"],\n sdkContextHeader: [6 /* eRequestHeaders.sdkContextHeader */, \"Sdk-Context\"],\n sdkContextHeaderAppIdRequest: [7 /* eRequestHeaders.sdkContextHeaderAppIdRequest */, \"appId\"],\n requestContextHeaderLowerCase: [8 /* eRequestHeaders.requestContextHeaderLowerCase */, \"request-context\"]\n});\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// @skip-file-minify\n// ##############################################################\n// AUTO GENERATED FILE: This file is Auto Generated during build.\n// ##############################################################\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nexport var _DYN_SPLIT = \"split\"; // Count: 6\nexport var _DYN_LENGTH = \"length\"; // Count: 41\nexport var _DYN_TO_LOWER_CASE = \"toLowerCase\"; // Count: 6\nexport var _DYN_INGESTIONENDPOINT = \"ingestionendpoint\"; // Count: 4\nexport var _DYN_TO_STRING = \"toString\"; // Count: 9\nexport var _DYN_REMOVE_ITEM = \"removeItem\"; // Count: 3\nexport var _DYN_NAME = \"name\"; // Count: 11\nexport var _DYN_MESSAGE = \"message\"; // Count: 10\nexport var _DYN_COUNT = \"count\"; // Count: 8\nexport var _DYN_PRE_TRIGGER_DATE = \"preTriggerDate\"; // Count: 4\nexport var _DYN_DISABLED = \"disabled\"; // Count: 3\nexport var _DYN_INTERVAL = \"interval\"; // Count: 3\nexport var _DYN_DAYS_OF_MONTH = \"daysOfMonth\"; // Count: 3\nexport var _DYN_DATE = \"date\"; // Count: 5\nexport var _DYN_GET_UTCDATE = \"getUTCDate\"; // Count: 3\nexport var _DYN_STRINGIFY = \"stringify\"; // Count: 4\nexport var _DYN_PATHNAME = \"pathname\"; // Count: 4\nexport var _DYN_CORRELATION_HEADER_E0 = \"correlationHeaderExcludePatterns\"; // Count: 2\nexport var _DYN_EXTENSION_CONFIG = \"extensionConfig\"; // Count: 4\nexport var _DYN_EXCEPTIONS = \"exceptions\"; // Count: 6\nexport var _DYN_PARSED_STACK = \"parsedStack\"; // Count: 13\nexport var _DYN_PROPERTIES = \"properties\"; // Count: 9\nexport var _DYN_MEASUREMENTS = \"measurements\"; // Count: 9\nexport var _DYN_SIZE_IN_BYTES = \"sizeInBytes\"; // Count: 11\nexport var _DYN_TYPE_NAME = \"typeName\"; // Count: 11\nexport var _DYN_SEVERITY_LEVEL = \"severityLevel\"; // Count: 5\nexport var _DYN_PROBLEM_GROUP = \"problemGroup\"; // Count: 3\nexport var _DYN_IS_MANUAL = \"isManual\"; // Count: 3\nexport var _DYN__CREATE_FROM_INTERFA1 = \"CreateFromInterface\"; // Count: 2\nexport var _DYN_ASSEMBLY = \"assembly\"; // Count: 7\nexport var _DYN_FILE_NAME = \"fileName\"; // Count: 8\nexport var _DYN_HAS_FULL_STACK = \"hasFullStack\"; // Count: 6\nexport var _DYN_LEVEL = \"level\"; // Count: 5\nexport var _DYN_METHOD = \"method\"; // Count: 7\nexport var _DYN_LINE = \"line\"; // Count: 6\nexport var _DYN_DURATION = \"duration\"; // Count: 4\nexport var _DYN_RECEIVED_RESPONSE = \"receivedResponse\"; // Count: 2\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { _throwInternal, getJSON, hasJSON, isObject, objForEachKey, strTrim } from \"@microsoft/applicationinsights-core-js\";\nimport { asString, strSubstr, strSubstring } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH, _DYN_STRINGIFY, _DYN_TO_STRING } from \"../../__DynamicConstants\";\nexport function dataSanitizeKeyAndAddUniqueness(logger, key, map) {\n var origLength = key[_DYN_LENGTH /* @min:%2elength */];\n var field = dataSanitizeKey(logger, key);\n // validation truncated the length. We need to add uniqueness\n if (field[_DYN_LENGTH /* @min:%2elength */] !== origLength) {\n var i = 0;\n var uniqueField = field;\n while (map[uniqueField] !== undefined) {\n i++;\n uniqueField = strSubstring(field, 0, 150 /* DataSanitizerValues.MAX_NAME_LENGTH */ - 3) + dsPadNumber(i);\n }\n field = uniqueField;\n }\n return field;\n}\nexport function dataSanitizeKey(logger, name) {\n var nameTrunc;\n if (name) {\n // Remove any leading or trailing whitespace\n name = strTrim(asString(name));\n // truncate the string to 150 chars\n if (name[_DYN_LENGTH /* @min:%2elength */] > 150 /* DataSanitizerValues.MAX_NAME_LENGTH */) {\n nameTrunc = strSubstring(name, 0, 150 /* DataSanitizerValues.MAX_NAME_LENGTH */);\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 57 /* _eInternalMessageId.NameTooLong */, \"name is too long. It has been truncated to \" + 150 /* DataSanitizerValues.MAX_NAME_LENGTH */ + \" characters.\", {\n name: name\n }, true);\n }\n }\n return nameTrunc || name;\n}\nexport function dataSanitizeString(logger, value, maxLength) {\n if (maxLength === void 0) {\n maxLength = 1024 /* DataSanitizerValues.MAX_STRING_LENGTH */;\n }\n var valueTrunc;\n if (value) {\n maxLength = maxLength ? maxLength : 1024 /* DataSanitizerValues.MAX_STRING_LENGTH */; // in case default parameters dont work\n value = strTrim(asString(value));\n if (value[_DYN_LENGTH /* @min:%2elength */] > maxLength) {\n valueTrunc = strSubstring(value, 0, maxLength);\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 61 /* _eInternalMessageId.StringValueTooLong */, \"string value is too long. It has been truncated to \" + maxLength + \" characters.\", {\n value: value\n }, true);\n }\n }\n return valueTrunc || value;\n}\nexport function dataSanitizeUrl(logger, url) {\n return dataSanitizeInput(logger, url, 2048 /* DataSanitizerValues.MAX_URL_LENGTH */, 66 /* _eInternalMessageId.UrlTooLong */);\n}\nexport function dataSanitizeMessage(logger, message) {\n var messageTrunc;\n if (message) {\n if (message[_DYN_LENGTH /* @min:%2elength */] > 32768 /* DataSanitizerValues.MAX_MESSAGE_LENGTH */) {\n messageTrunc = strSubstring(message, 0, 32768 /* DataSanitizerValues.MAX_MESSAGE_LENGTH */);\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 56 /* _eInternalMessageId.MessageTruncated */, \"message is too long, it has been truncated to \" + 32768 /* DataSanitizerValues.MAX_MESSAGE_LENGTH */ + \" characters.\", {\n message: message\n }, true);\n }\n }\n return messageTrunc || message;\n}\nexport function dataSanitizeException(logger, exception) {\n var exceptionTrunc;\n if (exception) {\n // Make surte its a string\n var value = \"\" + exception;\n if (value[_DYN_LENGTH /* @min:%2elength */] > 32768 /* DataSanitizerValues.MAX_EXCEPTION_LENGTH */) {\n exceptionTrunc = strSubstring(value, 0, 32768 /* DataSanitizerValues.MAX_EXCEPTION_LENGTH */);\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 52 /* _eInternalMessageId.ExceptionTruncated */, \"exception is too long, it has been truncated to \" + 32768 /* DataSanitizerValues.MAX_EXCEPTION_LENGTH */ + \" characters.\", {\n exception: exception\n }, true);\n }\n }\n return exceptionTrunc || exception;\n}\nexport function dataSanitizeProperties(logger, properties) {\n if (properties) {\n var tempProps_1 = {};\n objForEachKey(properties, function (prop, value) {\n if (isObject(value) && hasJSON()) {\n // Stringify any part C properties\n try {\n value = getJSON()[_DYN_STRINGIFY /* @min:%2estringify */](value);\n } catch (e) {\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 49 /* _eInternalMessageId.CannotSerializeObjectNonSerializable */, \"custom property is not valid\", {\n exception: e\n }, true);\n }\n }\n value = dataSanitizeString(logger, value, 8192 /* DataSanitizerValues.MAX_PROPERTY_LENGTH */);\n prop = dataSanitizeKeyAndAddUniqueness(logger, prop, tempProps_1);\n tempProps_1[prop] = value;\n });\n properties = tempProps_1;\n }\n return properties;\n}\nexport function dataSanitizeMeasurements(logger, measurements) {\n if (measurements) {\n var tempMeasurements_1 = {};\n objForEachKey(measurements, function (measure, value) {\n measure = dataSanitizeKeyAndAddUniqueness(logger, measure, tempMeasurements_1);\n tempMeasurements_1[measure] = value;\n });\n measurements = tempMeasurements_1;\n }\n return measurements;\n}\nexport function dataSanitizeId(logger, id) {\n return id ? dataSanitizeInput(logger, id, 128 /* DataSanitizerValues.MAX_ID_LENGTH */, 69 /* _eInternalMessageId.IdTooLong */)[_DYN_TO_STRING /* @min:%2etoString */]() : id;\n}\nexport function dataSanitizeInput(logger, input, maxLength, _msgId) {\n var inputTrunc;\n if (input) {\n input = strTrim(asString(input));\n if (input[_DYN_LENGTH /* @min:%2elength */] > maxLength) {\n inputTrunc = strSubstring(input, 0, maxLength);\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, _msgId, \"input is too long, it has been truncated to \" + maxLength + \" characters.\", {\n data: input\n }, true);\n }\n }\n return inputTrunc || input;\n}\nexport function dsPadNumber(num) {\n var s = \"00\" + num;\n return strSubstr(s, s[_DYN_LENGTH /* @min:%2elength */] - 3);\n}\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { getDocument, isString } from \"@microsoft/applicationinsights-core-js\";\nimport { _DYN_LENGTH, _DYN_PATHNAME, _DYN_TO_LOWER_CASE } from \"./__DynamicConstants\";\nvar _document = getDocument() || {};\nvar _htmlAnchorIdx = 0;\n// Use an array of temporary values as it's possible for multiple calls to parseUrl() will be called with different URLs\n// Using a cache size of 5 for now as it current depth usage is at least 2, so adding a minor buffer to handle future updates\nvar _htmlAnchorElement = [null, null, null, null, null];\nexport function urlParseUrl(url) {\n var anchorIdx = _htmlAnchorIdx;\n var anchorCache = _htmlAnchorElement;\n var tempAnchor = anchorCache[anchorIdx];\n if (!_document.createElement) {\n // Always create the temp instance if createElement is not available\n tempAnchor = {\n host: urlParseHost(url, true)\n };\n } else if (!anchorCache[anchorIdx]) {\n // Create and cache the unattached anchor instance\n tempAnchor = anchorCache[anchorIdx] = _document.createElement(\"a\");\n }\n tempAnchor.href = url;\n // Move the cache index forward\n anchorIdx++;\n if (anchorIdx >= anchorCache[_DYN_LENGTH /* @min:%2elength */]) {\n anchorIdx = 0;\n }\n _htmlAnchorIdx = anchorIdx;\n return tempAnchor;\n}\nexport function urlGetAbsoluteUrl(url) {\n var result;\n var a = urlParseUrl(url);\n if (a) {\n result = a.href;\n }\n return result;\n}\nexport function urlGetPathName(url) {\n var result;\n var a = urlParseUrl(url);\n if (a) {\n result = a[_DYN_PATHNAME /* @min:%2epathname */];\n }\n return result;\n}\nexport function urlGetCompleteUrl(method, absoluteUrl) {\n if (method) {\n return method.toUpperCase() + \" \" + absoluteUrl;\n }\n return absoluteUrl;\n}\n// Fallback method to grab host from url if document.createElement method is not available\nexport function urlParseHost(url, inclPort) {\n var fullHost = urlParseFullHost(url, inclPort) || \"\";\n if (fullHost) {\n var match = fullHost.match(/(www\\d{0,5}\\.)?([^\\/:]{1,256})(:\\d{1,20})?/i);\n if (match != null && match[_DYN_LENGTH /* @min:%2elength */] > 3 && isString(match[2]) && match[2][_DYN_LENGTH /* @min:%2elength */] > 0) {\n return match[2] + (match[3] || \"\");\n }\n }\n return fullHost;\n}\nexport function urlParseFullHost(url, inclPort) {\n var result = null;\n if (url) {\n var match = url.match(/(\\w{1,150}):\\/\\/([^\\/:]{1,256})(:\\d{1,20})?/i);\n if (match != null && match[_DYN_LENGTH /* @min:%2elength */] > 2 && isString(match[2]) && match[2][_DYN_LENGTH /* @min:%2elength */] > 0) {\n result = match[2] || \"\";\n if (inclPort && match[_DYN_LENGTH /* @min:%2elength */] > 2) {\n var protocol = (match[1] || \"\")[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n var port = match[3] || \"\";\n // IE includes the standard port so pass it off if it's the same as the protocol\n if (protocol === \"http\" && port === \":80\") {\n port = \"\";\n } else if (protocol === \"https\" && port === \":443\") {\n port = \"\";\n }\n result += port;\n }\n }\n }\n return result;\n}\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrForEach, arrIndexOf, dateNow, getPerformance, isNullOrUndefined, isValidSpanId, isValidTraceId } from \"@microsoft/applicationinsights-core-js\";\nimport { strIndexOf } from \"@nevware21/ts-utils\";\nimport { DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH } from \"./Constants\";\nimport { RequestHeaders } from \"./RequestResponseHeaders\";\nimport { dataSanitizeString } from \"./Telemetry/Common/DataSanitizer\";\nimport { urlParseFullHost, urlParseUrl } from \"./UrlHelperFuncs\";\nimport { _DYN_CORRELATION_HEADER_E0, _DYN_LENGTH, _DYN_NAME, _DYN_PATHNAME, _DYN_SPLIT, _DYN_TO_LOWER_CASE } from \"./__DynamicConstants\";\n// listing only non-geo specific locations\nvar _internalEndpoints = [DEFAULT_BREEZE_ENDPOINT + DEFAULT_BREEZE_PATH, \"https://breeze.aimon.applicationinsights.io\" + DEFAULT_BREEZE_PATH, \"https://dc-int.services.visualstudio.com\" + DEFAULT_BREEZE_PATH];\nvar _correlationIdPrefix = \"cid-v1:\";\nexport function isInternalApplicationInsightsEndpoint(endpointUrl) {\n return arrIndexOf(_internalEndpoints, endpointUrl[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]()) !== -1;\n}\nexport function correlationIdSetPrefix(prefix) {\n _correlationIdPrefix = prefix;\n}\nexport function correlationIdGetPrefix() {\n return _correlationIdPrefix;\n}\n/**\r\n * Checks if a request url is not on a excluded domain list and if it is safe to add correlation headers.\r\n * Headers are always included if the current domain matches the request domain. If they do not match (CORS),\r\n * they are regex-ed across correlationHeaderDomains and correlationHeaderExcludedDomains to determine if headers are included.\r\n * Some environments don't give information on currentHost via window.location.host (e.g. Cordova). In these cases, the user must\r\n * manually supply domains to include correlation headers on. Else, no headers will be included at all.\r\n */\nexport function correlationIdCanIncludeCorrelationHeader(config, requestUrl, currentHost) {\n if (!requestUrl || config && config.disableCorrelationHeaders) {\n return false;\n }\n if (config && config[_DYN_CORRELATION_HEADER_E0 /* @min:%2ecorrelationHeaderExcludePatterns */]) {\n for (var i = 0; i < config.correlationHeaderExcludePatterns[_DYN_LENGTH /* @min:%2elength */]; i++) {\n if (config[_DYN_CORRELATION_HEADER_E0 /* @min:%2ecorrelationHeaderExcludePatterns */][i].test(requestUrl)) {\n return false;\n }\n }\n }\n var requestHost = urlParseUrl(requestUrl).host[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n if (requestHost && (strIndexOf(requestHost, \":443\") !== -1 || strIndexOf(requestHost, \":80\") !== -1)) {\n // [Bug #1260] IE can include the port even for http and https URLs so if present\n // try and parse it to remove if it matches the default protocol port\n requestHost = (urlParseFullHost(requestUrl, true) || \"\")[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n }\n if ((!config || !config.enableCorsCorrelation) && requestHost && requestHost !== currentHost) {\n return false;\n }\n var includedDomains = config && config.correlationHeaderDomains;\n if (includedDomains) {\n var matchExists_1;\n arrForEach(includedDomains, function (domain) {\n var regex = new RegExp(domain.toLowerCase().replace(/\\\\/g, \"\\\\\\\\\").replace(/\\./g, \"\\\\.\").replace(/\\*/g, \".*\"));\n matchExists_1 = matchExists_1 || regex.test(requestHost);\n });\n if (!matchExists_1) {\n return false;\n }\n }\n var excludedDomains = config && config.correlationHeaderExcludedDomains;\n if (!excludedDomains || excludedDomains[_DYN_LENGTH /* @min:%2elength */] === 0) {\n return true;\n }\n for (var i = 0; i < excludedDomains[_DYN_LENGTH /* @min:%2elength */]; i++) {\n var regex = new RegExp(excludedDomains[i].toLowerCase().replace(/\\\\/g, \"\\\\\\\\\").replace(/\\./g, \"\\\\.\").replace(/\\*/g, \".*\"));\n if (regex.test(requestHost)) {\n return false;\n }\n }\n // if we don't know anything about the requestHost, require the user to use included/excludedDomains.\n // Previously we always returned false for a falsy requestHost\n return requestHost && requestHost[_DYN_LENGTH /* @min:%2elength */] > 0;\n}\n/**\r\n * Combines target appId and target role name from response header.\r\n */\nexport function correlationIdGetCorrelationContext(responseHeader) {\n if (responseHeader) {\n var correlationId = correlationIdGetCorrelationContextValue(responseHeader, RequestHeaders[1 /* eRequestHeaders.requestContextTargetKey */]);\n if (correlationId && correlationId !== _correlationIdPrefix) {\n return correlationId;\n }\n }\n}\n/**\r\n * Gets key from correlation response header\r\n */\nexport function correlationIdGetCorrelationContextValue(responseHeader, key) {\n if (responseHeader) {\n var keyValues = responseHeader[_DYN_SPLIT /* @min:%2esplit */](\",\");\n for (var i = 0; i < keyValues[_DYN_LENGTH /* @min:%2elength */]; ++i) {\n var keyValue = keyValues[i][_DYN_SPLIT /* @min:%2esplit */](\"=\");\n if (keyValue[_DYN_LENGTH /* @min:%2elength */] === 2 && keyValue[0] === key) {\n return keyValue[1];\n }\n }\n }\n}\nexport function AjaxHelperParseDependencyPath(logger, absoluteUrl, method, commandName) {\n var target,\n name = commandName,\n data = commandName;\n if (absoluteUrl && absoluteUrl[_DYN_LENGTH /* @min:%2elength */] > 0) {\n var parsedUrl = urlParseUrl(absoluteUrl);\n target = parsedUrl.host;\n if (!name) {\n if (parsedUrl[_DYN_PATHNAME /* @min:%2epathname */] != null) {\n var pathName = parsedUrl.pathname[_DYN_LENGTH /* @min:%2elength */] === 0 ? \"/\" : parsedUrl[_DYN_PATHNAME /* @min:%2epathname */];\n if (pathName.charAt(0) !== \"/\") {\n pathName = \"/\" + pathName;\n }\n data = parsedUrl[_DYN_PATHNAME /* @min:%2epathname */];\n name = dataSanitizeString(logger, method ? method + \" \" + pathName : pathName);\n } else {\n name = dataSanitizeString(logger, absoluteUrl);\n }\n }\n } else {\n target = commandName;\n name = commandName;\n }\n return {\n target: target,\n name: name,\n data: data\n };\n}\nexport function dateTimeUtilsNow() {\n // returns the window or webworker performance object\n var perf = getPerformance();\n if (perf && perf.now && perf.timing) {\n var now = perf.now() + perf.timing.navigationStart;\n // Known issue with IE where this calculation can be negative, so if it is then ignore and fallback\n if (now > 0) {\n return now;\n }\n }\n return dateNow();\n}\nexport function dateTimeUtilsDuration(start, end) {\n var result = null;\n if (start !== 0 && end !== 0 && !isNullOrUndefined(start) && !isNullOrUndefined(end)) {\n result = end - start;\n }\n return result;\n}\n/**\r\n * Creates a IDistributedTraceContext from an optional telemetryTrace\r\n * @param telemetryTrace - The telemetryTrace instance that is being wrapped\r\n * @param parentCtx - An optional parent distributed trace instance, almost always undefined as this scenario is only used in the case of multiple property handlers.\r\n * @returns A new IDistributedTraceContext instance that is backed by the telemetryTrace or temporary object\r\n */\nexport function createDistributedTraceContextFromTrace(telemetryTrace, parentCtx) {\n var trace = telemetryTrace || {};\n return {\n getName: function () {\n return trace[_DYN_NAME /* @min:%2ename */];\n },\n setName: function (newValue) {\n parentCtx && parentCtx.setName(newValue);\n trace[_DYN_NAME /* @min:%2ename */] = newValue;\n },\n getTraceId: function () {\n return trace.traceID;\n },\n setTraceId: function (newValue) {\n parentCtx && parentCtx.setTraceId(newValue);\n if (isValidTraceId(newValue)) {\n trace.traceID = newValue;\n }\n },\n getSpanId: function () {\n return trace.parentID;\n },\n setSpanId: function (newValue) {\n parentCtx && parentCtx.setSpanId(newValue);\n if (isValidSpanId(newValue)) {\n trace.parentID = newValue;\n }\n },\n getTraceFlags: function () {\n return trace.traceFlags;\n },\n setTraceFlags: function (newTraceFlags) {\n parentCtx && parentCtx.setTraceFlags(newTraceFlags);\n trace.traceFlags = newTraceFlags;\n }\n };\n}\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { createEnumStyle } from \"@microsoft/applicationinsights-core-js\";\nexport var StorageType = createEnumStyle({\n LocalStorage: 0 /* eStorageType.LocalStorage */,\n SessionStorage: 1 /* eStorageType.SessionStorage */\n});\nexport var DistributedTracingModes = createEnumStyle({\n AI: 0 /* eDistributedTracingModes.AI */,\n AI_AND_W3C: 1 /* eDistributedTracingModes.AI_AND_W3C */,\n W3C: 2 /* eDistributedTracingModes.W3C */\n});\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { _throwInternal, dumpObj, getExceptionName, getGlobal, getGlobalInst, isNullOrUndefined, objForEachKey } from \"@microsoft/applicationinsights-core-js\";\nimport { StorageType } from \"./Enums\";\nimport { _DYN_REMOVE_ITEM, _DYN_TO_STRING } from \"./__DynamicConstants\";\nvar _canUseLocalStorage = undefined;\nvar _canUseSessionStorage = undefined;\nvar _storagePrefix = \"\";\n/**\r\n * Gets the localStorage object if available\r\n * @return {Storage} - Returns the storage object if available else returns null\r\n */\nfunction _getLocalStorageObject() {\n if (utlCanUseLocalStorage()) {\n return _getVerifiedStorageObject(StorageType.LocalStorage);\n }\n return null;\n}\n/**\r\n * Tests storage object (localStorage or sessionStorage) to verify that it is usable\r\n * More details here: https://mathiasbynens.be/notes/localstorage-pattern\r\n * @param storageType - Type of storage\r\n * @return {Storage} Returns storage object verified that it is usable\r\n */\nfunction _getVerifiedStorageObject(storageType) {\n try {\n if (isNullOrUndefined(getGlobal())) {\n return null;\n }\n var uid = new Date()[_DYN_TO_STRING /* @min:%2etoString */]();\n var storage = getGlobalInst(storageType === StorageType.LocalStorage ? \"localStorage\" : \"sessionStorage\");\n var name_1 = _storagePrefix + uid;\n storage.setItem(name_1, uid);\n var fail = storage.getItem(name_1) !== uid;\n storage[_DYN_REMOVE_ITEM /* @min:%2eremoveItem */](name_1);\n if (!fail) {\n return storage;\n }\n } catch (exception) {\n // eslint-disable-next-line no-empty\n }\n return null;\n}\n/**\r\n * Gets the sessionStorage object if available\r\n * @return {Storage} - Returns the storage object if available else returns null\r\n */\nfunction _getSessionStorageObject() {\n if (utlCanUseSessionStorage()) {\n return _getVerifiedStorageObject(StorageType.SessionStorage);\n }\n return null;\n}\n/**\r\n * Disables the global SDK usage of local or session storage if available\r\n */\nexport function utlDisableStorage() {\n _canUseLocalStorage = false;\n _canUseSessionStorage = false;\n}\nexport function utlSetStoragePrefix(storagePrefix) {\n _storagePrefix = storagePrefix || \"\";\n}\n/**\r\n * Re-enables the global SDK usage of local or session storage if available\r\n */\nexport function utlEnableStorage() {\n _canUseLocalStorage = utlCanUseLocalStorage(true);\n _canUseSessionStorage = utlCanUseSessionStorage(true);\n}\n/**\r\n * Returns whether LocalStorage can be used, if the reset parameter is passed a true this will override\r\n * any previous disable calls.\r\n * @param reset - Should the usage be reset and determined only based on whether LocalStorage is available\r\n */\nexport function utlCanUseLocalStorage(reset) {\n if (reset || _canUseLocalStorage === undefined) {\n _canUseLocalStorage = !!_getVerifiedStorageObject(StorageType.LocalStorage);\n }\n return _canUseLocalStorage;\n}\nexport function utlGetLocalStorage(logger, name) {\n var storage = _getLocalStorageObject();\n if (storage !== null) {\n try {\n return storage.getItem(name);\n } catch (e) {\n _canUseLocalStorage = false;\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 1 /* _eInternalMessageId.BrowserCannotReadLocalStorage */, \"Browser failed read of local storage. \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n }\n return null;\n}\nexport function utlSetLocalStorage(logger, name, data) {\n var storage = _getLocalStorageObject();\n if (storage !== null) {\n try {\n storage.setItem(name, data);\n return true;\n } catch (e) {\n _canUseLocalStorage = false;\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 3 /* _eInternalMessageId.BrowserCannotWriteLocalStorage */, \"Browser failed write to local storage. \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n }\n return false;\n}\nexport function utlRemoveStorage(logger, name) {\n var storage = _getLocalStorageObject();\n if (storage !== null) {\n try {\n storage[_DYN_REMOVE_ITEM /* @min:%2eremoveItem */](name);\n return true;\n } catch (e) {\n _canUseLocalStorage = false;\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 5 /* _eInternalMessageId.BrowserFailedRemovalFromLocalStorage */, \"Browser failed removal of local storage item. \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n }\n return false;\n}\nexport function utlCanUseSessionStorage(reset) {\n if (reset || _canUseSessionStorage === undefined) {\n _canUseSessionStorage = !!_getVerifiedStorageObject(StorageType.SessionStorage);\n }\n return _canUseSessionStorage;\n}\nexport function utlGetSessionStorageKeys() {\n var keys = [];\n if (utlCanUseSessionStorage()) {\n objForEachKey(getGlobalInst(\"sessionStorage\"), function (key) {\n keys.push(key);\n });\n }\n return keys;\n}\nexport function utlGetSessionStorage(logger, name) {\n var storage = _getSessionStorageObject();\n if (storage !== null) {\n try {\n return storage.getItem(name);\n } catch (e) {\n _canUseSessionStorage = false;\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 2 /* _eInternalMessageId.BrowserCannotReadSessionStorage */, \"Browser failed read of session storage. \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n }\n return null;\n}\nexport function utlSetSessionStorage(logger, name, data) {\n var storage = _getSessionStorageObject();\n if (storage !== null) {\n try {\n storage.setItem(name, data);\n return true;\n } catch (e) {\n _canUseSessionStorage = false;\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 4 /* _eInternalMessageId.BrowserCannotWriteSessionStorage */, \"Browser failed write to session storage. \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n }\n return false;\n}\nexport function utlRemoveSessionStorage(logger, name) {\n var storage = _getSessionStorageObject();\n if (storage !== null) {\n try {\n storage[_DYN_REMOVE_ITEM /* @min:%2eremoveItem */](name);\n return true;\n } catch (e) {\n _canUseSessionStorage = false;\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 6 /* _eInternalMessageId.BrowserFailedRemovalFromSessionStorage */, \"Browser failed removal of session storage item. \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n }\n return false;\n}\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { _throwInternal, arrIndexOf, isNotNullOrUndefined, isNullOrUndefined, onConfigChange, randomValue, safeGetLogger, strTrim } from \"@microsoft/applicationinsights-core-js\";\nimport { arrForEach, objForEachKey } from \"@nevware21/ts-utils\";\nimport { utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage } from \"./StorageHelperFuncs\";\nimport { _DYN_COUNT, _DYN_DATE, _DYN_DAYS_OF_MONTH, _DYN_DISABLED, _DYN_GET_UTCDATE, _DYN_INTERVAL, _DYN_LENGTH, _DYN_MESSAGE, _DYN_PRE_TRIGGER_DATE, _DYN_STRINGIFY } from \"./__DynamicConstants\";\nvar THROTTLE_STORAGE_PREFIX = \"appInsightsThrottle\";\nvar ThrottleMgr = /** @class */function () {\n function ThrottleMgr(core, namePrefix) {\n var _self = this;\n var _canUseLocalStorage;\n var _logger;\n var _config;\n var _localStorageObj;\n var _isTriggered; //_isTriggered is to make sure that we only trigger throttle once a day\n var _namePrefix;\n var _queue;\n var _isReady = false;\n var _isSpecificDaysGiven = false;\n _initConfig();\n // Special internal method to allow the unit tests and DebugPlugin to hook embedded objects\n _self[\"_getDbgPlgTargets\"] = function () {\n return [_queue];\n };\n _self.getConfig = function () {\n return _config;\n };\n /**\r\n * Check if it is the correct day to send message.\r\n * If _isTriggered is true, even if canThrottle returns true, message will not be sent,\r\n * because we only allow triggering sendMessage() once a day.\r\n * @returns if the current date is the valid date to send message\r\n */\n _self.canThrottle = function (msgId) {\n var localObj = _getLocalStorageObjByKey(msgId);\n var cfg = _getCfgByKey(msgId);\n return _canThrottle(cfg, _canUseLocalStorage, localObj);\n };\n /**\r\n * Check if throttle is triggered on current day(UTC)\r\n * if canThrottle returns false, isTriggered will return false\r\n * @returns if throttle is triggered on current day(UTC)\r\n */\n _self.isTriggered = function (msgId) {\n return _isTrigger(msgId);\n };\n /**\r\n * Before isReady set to true, all message will be stored in queue.\r\n * Message will only be sent out after isReady set to true.\r\n * Initial and default value: false\r\n * @returns isReady state\r\n */\n _self.isReady = function () {\n return _isReady;\n };\n /**\r\n * Flush all message with given message key in queue with isReady state set to true.\r\n * @returns if message queue is flushed\r\n */\n _self.flush = function (msgId) {\n try {\n var queue = _getQueueByKey(msgId);\n if (queue && queue[_DYN_LENGTH /* @min:%2elength */] > 0) {\n var items = queue.slice(0);\n _queue[msgId] = [];\n arrForEach(items, function (item) {\n _flushMessage(item.msgID, item[_DYN_MESSAGE /* @min:%2emessage */], item.severity, false);\n });\n return true;\n }\n } catch (err) {\n // eslint-disable-next-line no-empty\n }\n return false;\n };\n /**\r\n * Flush all message in queue with isReady state set to true.\r\n * @returns if message queue is flushed\r\n */\n _self.flushAll = function () {\n try {\n if (_queue) {\n var result_1 = true;\n objForEachKey(_queue, function (key) {\n var isFlushed = _self.flush(parseInt(key));\n result_1 = result_1 && isFlushed;\n });\n return result_1;\n }\n } catch (err) {\n // eslint-disable-next-line no-empty\n }\n return false;\n };\n /**\r\n * Set isReady State\r\n * if isReady set to true, message queue will be flushed automatically.\r\n * @param isReady isReady State\r\n * @pa\r\n * @returns if message queue is flushed\r\n */\n _self.onReadyState = function (isReady, flushAll) {\n if (flushAll === void 0) {\n flushAll = true;\n }\n _isReady = isNullOrUndefined(isReady) ? true : isReady;\n if (_isReady && flushAll) {\n return _self.flushAll();\n }\n return null;\n };\n _self.sendMessage = function (msgID, message, severity) {\n return _flushMessage(msgID, message, severity, true);\n };\n function _flushMessage(msgID, message, severity, saveUnsentMsg) {\n if (_isReady) {\n var isSampledIn = _canSampledIn(msgID);\n if (!isSampledIn) {\n return;\n }\n var cfg = _getCfgByKey(msgID);\n var localStorageObj = _getLocalStorageObjByKey(msgID);\n var canThrottle = _canThrottle(cfg, _canUseLocalStorage, localStorageObj);\n var throttled = false;\n var number = 0;\n var isTriggered = _isTrigger(msgID);\n try {\n if (canThrottle && !isTriggered) {\n number = Math.min(cfg.limit.maxSendNumber, localStorageObj[_DYN_COUNT /* @min:%2ecount */] + 1);\n localStorageObj[_DYN_COUNT /* @min:%2ecount */] = 0;\n throttled = true;\n _isTriggered[msgID] = true;\n localStorageObj[_DYN_PRE_TRIGGER_DATE /* @min:%2epreTriggerDate */] = new Date();\n } else {\n _isTriggered[msgID] = canThrottle;\n localStorageObj[_DYN_COUNT /* @min:%2ecount */] += 1;\n }\n var localStorageName = _getLocalStorageName(msgID);\n _resetLocalStorage(_logger, localStorageName, localStorageObj);\n for (var i = 0; i < number; i++) {\n _sendMessage(msgID, _logger, message, severity);\n }\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n return {\n isThrottled: throttled,\n throttleNum: number\n };\n } else {\n if (!!saveUnsentMsg) {\n var queue = _getQueueByKey(msgID);\n queue.push({\n msgID: msgID,\n message: message,\n severity: severity\n });\n }\n }\n return null;\n }\n function _initConfig() {\n _logger = safeGetLogger(core);\n _isTriggered = {};\n _localStorageObj = {};\n _queue = {};\n _config = {};\n _setCfgByKey(109 /* _eInternalMessageId.DefaultThrottleMsgKey */);\n _namePrefix = isNotNullOrUndefined(namePrefix) ? namePrefix : \"\";\n core.addUnloadHook(onConfigChange(core.config, function (details) {\n var coreConfig = details.cfg;\n _canUseLocalStorage = utlCanUseLocalStorage();\n var configMgr = coreConfig.throttleMgrCfg || {};\n objForEachKey(configMgr, function (key, cfg) {\n _setCfgByKey(parseInt(key), cfg);\n });\n }));\n }\n function _getCfgByKey(msgID) {\n return _config[msgID] || _config[109 /* _eInternalMessageId.DefaultThrottleMsgKey */];\n }\n function _setCfgByKey(msgID, config) {\n var _a, _b;\n try {\n var cfg = config || {};\n var curCfg = {};\n curCfg[_DYN_DISABLED /* @min:%2edisabled */] = !!cfg[_DYN_DISABLED /* @min:%2edisabled */];\n var configInterval = cfg[_DYN_INTERVAL /* @min:%2einterval */] || {};\n _isSpecificDaysGiven = (configInterval === null || configInterval === void 0 ? void 0 : configInterval.daysOfMonth) && (configInterval === null || configInterval === void 0 ? void 0 : configInterval.daysOfMonth[_DYN_LENGTH /* @min:%2elength */]) > 0;\n curCfg[_DYN_INTERVAL /* @min:%2einterval */] = _getIntervalConfig(configInterval);\n var limit = {\n samplingRate: ((_a = cfg.limit) === null || _a === void 0 ? void 0 : _a.samplingRate) || 100,\n // dafault: every time sent only 1 event\n maxSendNumber: ((_b = cfg.limit) === null || _b === void 0 ? void 0 : _b.maxSendNumber) || 1\n };\n curCfg.limit = limit;\n _config[msgID] = curCfg;\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n }\n function _getIntervalConfig(interval) {\n interval = interval || {};\n var monthInterval = interval === null || interval === void 0 ? void 0 : interval.monthInterval;\n var dayInterval = interval === null || interval === void 0 ? void 0 : interval.dayInterval;\n // default: send data every 3 month each year\n if (isNullOrUndefined(monthInterval) && isNullOrUndefined(dayInterval)) {\n interval.monthInterval = 3;\n if (!_isSpecificDaysGiven) {\n // default: send data on 28th\n interval[_DYN_DAYS_OF_MONTH /* @min:%2edaysOfMonth */] = [28];\n _isSpecificDaysGiven = true;\n }\n }\n interval = {\n // dafault: sent every three months\n monthInterval: interval === null || interval === void 0 ? void 0 : interval.monthInterval,\n dayInterval: interval === null || interval === void 0 ? void 0 : interval.dayInterval,\n daysOfMonth: interval === null || interval === void 0 ? void 0 : interval.daysOfMonth\n };\n return interval;\n }\n function _canThrottle(config, canUseLocalStorage, localStorageObj) {\n if (config && !config[_DYN_DISABLED /* @min:%2edisabled */] && canUseLocalStorage && isNotNullOrUndefined(localStorageObj)) {\n var curDate = _getThrottleDate();\n var date = localStorageObj[_DYN_DATE /* @min:%2edate */];\n var interval = config[_DYN_INTERVAL /* @min:%2einterval */];\n var monthCheck = 1;\n if (interval === null || interval === void 0 ? void 0 : interval.monthInterval) {\n var monthExpand = (curDate.getUTCFullYear() - date.getUTCFullYear()) * 12 + curDate.getUTCMonth() - date.getUTCMonth();\n monthCheck = _checkInterval(interval.monthInterval, 0, monthExpand);\n }\n var dayCheck = 1;\n if (_isSpecificDaysGiven) {\n dayCheck = arrIndexOf(interval[_DYN_DAYS_OF_MONTH /* @min:%2edaysOfMonth */], curDate[_DYN_GET_UTCDATE /* @min:%2egetUTCDate */]());\n } else if (interval === null || interval === void 0 ? void 0 : interval.dayInterval) {\n var daySpan = Math.floor((curDate.getTime() - date.getTime()) / 86400000);\n dayCheck = _checkInterval(interval.dayInterval, 0, daySpan);\n }\n return monthCheck >= 0 && dayCheck >= 0;\n }\n return false;\n }\n function _getLocalStorageName(msgKey, prefix) {\n var fix = isNotNullOrUndefined(prefix) ? prefix : \"\";\n if (msgKey) {\n return THROTTLE_STORAGE_PREFIX + fix + \"-\" + msgKey;\n }\n return null;\n }\n // returns if throttle is triggered on current Date\n function _isTriggeredOnCurDate(preTriggerDate) {\n try {\n if (preTriggerDate) {\n var curDate = new Date();\n return preTriggerDate.getUTCFullYear() === curDate.getUTCFullYear() && preTriggerDate.getUTCMonth() === curDate.getUTCMonth() && preTriggerDate[_DYN_GET_UTCDATE /* @min:%2egetUTCDate */]() === curDate[_DYN_GET_UTCDATE /* @min:%2egetUTCDate */]();\n }\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n return false;\n }\n // transfer local storage string value to object that identifies start date, current count and preTriggerDate\n function _getLocalStorageObj(value, logger, storageName) {\n try {\n var storageObj = {\n date: _getThrottleDate(),\n count: 0\n };\n if (value) {\n var obj = JSON.parse(value);\n var curObj = {\n date: _getThrottleDate(obj[_DYN_DATE /* @min:%2edate */]) || storageObj[_DYN_DATE /* @min:%2edate */],\n count: obj[_DYN_COUNT /* @min:%2ecount */] || storageObj[_DYN_COUNT /* @min:%2ecount */],\n preTriggerDate: obj.preTriggerDate ? _getThrottleDate(obj[_DYN_PRE_TRIGGER_DATE /* @min:%2epreTriggerDate */]) : undefined\n };\n return curObj;\n } else {\n _resetLocalStorage(logger, storageName, storageObj);\n return storageObj;\n }\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n return null;\n }\n // if datestr is not defined, current date will be returned\n function _getThrottleDate(dateStr) {\n // if new Date() can't be created through the provided dateStr, null will be returned.\n try {\n if (dateStr) {\n var date = new Date(dateStr);\n //make sure it is a valid Date Object\n if (!isNaN(date.getDate())) {\n return date;\n }\n } else {\n return new Date();\n }\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n return null;\n }\n function _resetLocalStorage(logger, storageName, obj) {\n try {\n return utlSetLocalStorage(logger, storageName, strTrim(JSON[_DYN_STRINGIFY /* @min:%2estringify */](obj)));\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n return false;\n }\n function _checkInterval(interval, start, current) {\n if (interval <= 0) {\n return 1;\n }\n // count from start year\n return current >= start && (current - start) % interval == 0 ? Math.floor((current - start) / interval) + 1 : -1;\n }\n function _sendMessage(msgID, logger, message, severity) {\n _throwInternal(logger, severity || 1 /* eLoggingSeverity.CRITICAL */, msgID, message);\n }\n // NOTE: config.limit.samplingRate is set to 4 decimal places,\n // so config.limit.samplingRate = 1 means 0.0001%\n function _canSampledIn(msgID) {\n try {\n var cfg = _getCfgByKey(msgID);\n return randomValue(1000000) <= cfg.limit.samplingRate;\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n return false;\n }\n function _getLocalStorageObjByKey(key) {\n try {\n var curObj = _localStorageObj[key];\n if (!curObj) {\n var localStorageName = _getLocalStorageName(key, _namePrefix);\n curObj = _getLocalStorageObj(utlGetLocalStorage(_logger, localStorageName), _logger, localStorageName);\n _localStorageObj[key] = curObj;\n }\n return _localStorageObj[key];\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n return null;\n }\n function _isTrigger(key) {\n var isTrigger = _isTriggered[key];\n if (isNullOrUndefined(isTrigger)) {\n isTrigger = false;\n var localStorageObj = _getLocalStorageObjByKey(key);\n if (localStorageObj) {\n isTrigger = _isTriggeredOnCurDate(localStorageObj[_DYN_PRE_TRIGGER_DATE /* @min:%2epreTriggerDate */]);\n }\n _isTriggered[key] = isTrigger;\n }\n return _isTriggered[key];\n }\n function _getQueueByKey(key) {\n _queue = _queue || {};\n if (isNullOrUndefined(_queue[key])) {\n _queue[key] = [];\n }\n return _queue[key];\n }\n }\n return ThrottleMgr;\n}();\nexport { ThrottleMgr };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrReduce, objKeys } from \"@microsoft/applicationinsights-core-js\";\nimport { DEFAULT_BREEZE_ENDPOINT } from \"./Constants\";\nimport { _DYN_INGESTIONENDPOINT, _DYN_LENGTH, _DYN_SPLIT, _DYN_TO_LOWER_CASE } from \"./__DynamicConstants\";\nvar _FIELDS_SEPARATOR = \";\";\nvar _FIELD_KEY_VALUE_SEPARATOR = \"=\";\nexport function parseConnectionString(connectionString) {\n if (!connectionString) {\n return {};\n }\n var kvPairs = connectionString[_DYN_SPLIT /* @min:%2esplit */](_FIELDS_SEPARATOR);\n var result = arrReduce(kvPairs, function (fields, kv) {\n var kvParts = kv[_DYN_SPLIT /* @min:%2esplit */](_FIELD_KEY_VALUE_SEPARATOR);\n if (kvParts[_DYN_LENGTH /* @min:%2elength */] === 2) {\n // only save fields with valid formats\n var key = kvParts[0][_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n var value = kvParts[1];\n fields[key] = value;\n }\n return fields;\n }, {});\n if (objKeys(result)[_DYN_LENGTH /* @min:%2elength */] > 0) {\n // this is a valid connection string, so parse the results\n if (result.endpointsuffix) {\n // use endpoint suffix where overrides are not provided\n var locationPrefix = result.location ? result.location + \".\" : \"\";\n result[_DYN_INGESTIONENDPOINT /* @min:%2eingestionendpoint */] = result[_DYN_INGESTIONENDPOINT /* @min:%2eingestionendpoint */] || \"https://\" + locationPrefix + \"dc.\" + result.endpointsuffix;\n }\n // apply the default endpoints\n result[_DYN_INGESTIONENDPOINT /* @min:%2eingestionendpoint */] = result[_DYN_INGESTIONENDPOINT /* @min:%2eingestionendpoint */] || DEFAULT_BREEZE_ENDPOINT;\n }\n return result;\n}\nexport var ConnectionStringParser = {\n parse: parseConnectionString\n};\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { toISOString } from \"@microsoft/applicationinsights-core-js\";\nimport { strNotSpecified } from \"../../Constants\";\nimport { _DYN_NAME } from \"../../__DynamicConstants\";\nimport { dataSanitizeString } from \"./DataSanitizer\";\nvar Envelope = /** @class */function () {\n /**\r\n * Constructs a new instance of telemetry data.\r\n */\n function Envelope(logger, data, name) {\n var _this = this;\n var _self = this;\n _self.ver = 1;\n _self.sampleRate = 100.0;\n _self.tags = {};\n _self[_DYN_NAME /* @min:%2ename */] = dataSanitizeString(logger, name) || strNotSpecified;\n _self.data = data;\n _self.time = toISOString(new Date());\n _self.aiDataContract = {\n time: 1 /* FieldType.Required */,\n iKey: 1 /* FieldType.Required */,\n name: 1 /* FieldType.Required */,\n sampleRate: function () {\n return _this.sampleRate === 100 ? 4 /* FieldType.Hidden */ : 1 /* FieldType.Required */;\n },\n tags: 1 /* FieldType.Required */,\n data: 1 /* FieldType.Required */\n };\n }\n return Envelope;\n}();\nexport { Envelope };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { strNotSpecified } from \"../Constants\";\nimport { _DYN_MEASUREMENTS, _DYN_NAME, _DYN_PROPERTIES } from \"../__DynamicConstants\";\nimport { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString } from \"./Common/DataSanitizer\";\nvar Event = /** @class */function () {\n /**\r\n * Constructs a new instance of the EventTelemetry object\r\n */\n function Event(logger, name, properties, measurements) {\n this.aiDataContract = {\n ver: 1 /* FieldType.Required */,\n name: 1 /* FieldType.Required */,\n properties: 0 /* FieldType.Default */,\n measurements: 0 /* FieldType.Default */\n };\n var _self = this;\n _self.ver = 2;\n _self[_DYN_NAME /* @min:%2ename */] = dataSanitizeString(logger, name) || strNotSpecified;\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\n }\n Event.envelopeType = \"Microsoft.ApplicationInsights.{0}.Event\";\n Event.dataType = \"EventData\";\n return Event;\n}();\nexport { Event };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { __assignFn as __assign } from \"@microsoft/applicationinsights-shims\";\nimport { arrForEach, arrMap, isArray, isError, isFunction, isNullOrUndefined, isObject, isString, strTrim } from \"@microsoft/applicationinsights-core-js\";\nimport { strIndexOf } from \"@nevware21/ts-utils\";\nimport { strNotSpecified } from \"../Constants\";\nimport { _DYN_ASSEMBLY, _DYN_EXCEPTIONS, _DYN_FILE_NAME, _DYN_HAS_FULL_STACK, _DYN_IS_MANUAL, _DYN_LENGTH, _DYN_LEVEL, _DYN_LINE, _DYN_MEASUREMENTS, _DYN_MESSAGE, _DYN_METHOD, _DYN_NAME, _DYN_PARSED_STACK, _DYN_PROBLEM_GROUP, _DYN_PROPERTIES, _DYN_SEVERITY_LEVEL, _DYN_SIZE_IN_BYTES, _DYN_SPLIT, _DYN_STRINGIFY, _DYN_TO_STRING, _DYN_TYPE_NAME, _DYN__CREATE_FROM_INTERFA1 } from \"../__DynamicConstants\";\nimport { dataSanitizeException, dataSanitizeMeasurements, dataSanitizeMessage, dataSanitizeProperties, dataSanitizeString } from \"./Common/DataSanitizer\";\nvar NoMethod = \"\";\nvar strError = \"error\";\nvar strStack = \"stack\";\nvar strStackDetails = \"stackDetails\";\nvar strErrorSrc = \"errorSrc\";\nvar strMessage = \"message\";\nvar strDescription = \"description\";\nfunction _stringify(value, convertToString) {\n var result = value;\n if (result && !isString(result)) {\n if (JSON && JSON[_DYN_STRINGIFY /* @min:%2estringify */]) {\n result = JSON[_DYN_STRINGIFY /* @min:%2estringify */](value);\n if (convertToString && (!result || result === \"{}\")) {\n if (isFunction(value[_DYN_TO_STRING /* @min:%2etoString */])) {\n result = value[_DYN_TO_STRING /* @min:%2etoString */]();\n } else {\n result = \"\" + value;\n }\n }\n } else {\n result = \"\" + value + \" - (Missing JSON.stringify)\";\n }\n }\n return result || \"\";\n}\nfunction _formatMessage(theEvent, errorType) {\n var evtMessage = theEvent;\n if (theEvent) {\n if (evtMessage && !isString(evtMessage)) {\n evtMessage = theEvent[strMessage] || theEvent[strDescription] || evtMessage;\n }\n // Make sure the message is a string\n if (evtMessage && !isString(evtMessage)) {\n // tslint:disable-next-line: prefer-conditional-expression\n evtMessage = _stringify(evtMessage, true);\n }\n if (theEvent[\"filename\"]) {\n // Looks like an event object with filename\n evtMessage = evtMessage + \" @\" + (theEvent[\"filename\"] || \"\") + \":\" + (theEvent[\"lineno\"] || \"?\") + \":\" + (theEvent[\"colno\"] || \"?\");\n }\n }\n // Automatically add the error type to the message if it does already appear to be present\n if (errorType && errorType !== \"String\" && errorType !== \"Object\" && errorType !== \"Error\" && strIndexOf(evtMessage || \"\", errorType) === -1) {\n evtMessage = errorType + \": \" + evtMessage;\n }\n return evtMessage || \"\";\n}\nfunction _isExceptionDetailsInternal(value) {\n try {\n if (isObject(value)) {\n return \"hasFullStack\" in value && \"typeName\" in value;\n }\n } catch (e) {\n // This can happen with some native browser objects, but should not happen for the type we are checking for\n }\n return false;\n}\nfunction _isExceptionInternal(value) {\n try {\n if (isObject(value)) {\n return \"ver\" in value && \"exceptions\" in value && \"properties\" in value;\n }\n } catch (e) {\n // This can happen with some native browser objects, but should not happen for the type we are checking for\n }\n return false;\n}\nfunction _isStackDetails(details) {\n return details && details.src && isString(details.src) && details.obj && isArray(details.obj);\n}\nfunction _convertStackObj(errorStack) {\n var src = errorStack || \"\";\n if (!isString(src)) {\n if (isString(src[strStack])) {\n src = src[strStack];\n } else {\n src = \"\" + src;\n }\n }\n var items = src[_DYN_SPLIT /* @min:%2esplit */](\"\\n\");\n return {\n src: src,\n obj: items\n };\n}\nfunction _getOperaStack(errorMessage) {\n var stack = [];\n var lines = errorMessage[_DYN_SPLIT /* @min:%2esplit */](\"\\n\");\n for (var lp = 0; lp < lines[_DYN_LENGTH /* @min:%2elength */]; lp++) {\n var entry = lines[lp];\n if (lines[lp + 1]) {\n entry += \"@\" + lines[lp + 1];\n lp++;\n }\n stack.push(entry);\n }\n return {\n src: errorMessage,\n obj: stack\n };\n}\nfunction _getStackFromErrorObj(errorObj) {\n var details = null;\n if (errorObj) {\n try {\n /* Using bracket notation is support older browsers (IE 7/8 -- dont remember the version) that throw when using dot\r\n notation for undefined objects and we don't want to loose the error from being reported */\n if (errorObj[strStack]) {\n // Chrome/Firefox\n details = _convertStackObj(errorObj[strStack]);\n } else if (errorObj[strError] && errorObj[strError][strStack]) {\n // Edge error event provides the stack and error object\n details = _convertStackObj(errorObj[strError][strStack]);\n } else if (errorObj[\"exception\"] && errorObj.exception[strStack]) {\n details = _convertStackObj(errorObj.exception[strStack]);\n } else if (_isStackDetails(errorObj)) {\n details = errorObj;\n } else if (_isStackDetails(errorObj[strStackDetails])) {\n details = errorObj[strStackDetails];\n } else if (window && window[\"opera\"] && errorObj[strMessage]) {\n // Opera\n details = _getOperaStack(errorObj[_DYN_MESSAGE /* @min:%2emessage */]);\n } else if (errorObj[\"reason\"] && errorObj.reason[strStack]) {\n // UnhandledPromiseRejection\n details = _convertStackObj(errorObj.reason[strStack]);\n } else if (isString(errorObj)) {\n details = _convertStackObj(errorObj);\n } else {\n var evtMessage = errorObj[strMessage] || errorObj[strDescription] || \"\";\n if (isString(errorObj[strErrorSrc])) {\n if (evtMessage) {\n evtMessage += \"\\n\";\n }\n evtMessage += \" from \" + errorObj[strErrorSrc];\n }\n if (evtMessage) {\n details = _convertStackObj(evtMessage);\n }\n }\n } catch (e) {\n // something unexpected happened so to avoid failing to report any error lets swallow the exception\n // and fallback to the callee/caller method\n details = _convertStackObj(e);\n }\n }\n return details || {\n src: \"\",\n obj: null\n };\n}\nfunction _formatStackTrace(stackDetails) {\n var stack = \"\";\n if (stackDetails) {\n if (stackDetails.obj) {\n arrForEach(stackDetails.obj, function (entry) {\n stack += entry + \"\\n\";\n });\n } else {\n stack = stackDetails.src || \"\";\n }\n }\n return stack;\n}\nfunction _parseStack(stack) {\n var parsedStack;\n var frames = stack.obj;\n if (frames && frames[_DYN_LENGTH /* @min:%2elength */] > 0) {\n parsedStack = [];\n var level_1 = 0;\n var totalSizeInBytes_1 = 0;\n arrForEach(frames, function (frame) {\n var theFrame = frame[_DYN_TO_STRING /* @min:%2etoString */]();\n if (_StackFrame.regex.test(theFrame)) {\n var parsedFrame = new _StackFrame(theFrame, level_1++);\n totalSizeInBytes_1 += parsedFrame[_DYN_SIZE_IN_BYTES /* @min:%2esizeInBytes */];\n parsedStack.push(parsedFrame);\n }\n });\n // DP Constraint - exception parsed stack must be < 32KB\n // remove frames from the middle to meet the threshold\n var exceptionParsedStackThreshold = 32 * 1024;\n if (totalSizeInBytes_1 > exceptionParsedStackThreshold) {\n var left = 0;\n var right = parsedStack[_DYN_LENGTH /* @min:%2elength */] - 1;\n var size = 0;\n var acceptedLeft = left;\n var acceptedRight = right;\n while (left < right) {\n // check size\n var lSize = parsedStack[left][_DYN_SIZE_IN_BYTES /* @min:%2esizeInBytes */];\n var rSize = parsedStack[right][_DYN_SIZE_IN_BYTES /* @min:%2esizeInBytes */];\n size += lSize + rSize;\n if (size > exceptionParsedStackThreshold) {\n // remove extra frames from the middle\n var howMany = acceptedRight - acceptedLeft + 1;\n parsedStack.splice(acceptedLeft, howMany);\n break;\n }\n // update pointers\n acceptedLeft = left;\n acceptedRight = right;\n left++;\n right--;\n }\n }\n }\n return parsedStack;\n}\nfunction _getErrorType(errorType) {\n // Gets the Error Type by passing the constructor (used to get the true type of native error object).\n var typeName = \"\";\n if (errorType) {\n typeName = errorType.typeName || errorType[_DYN_NAME /* @min:%2ename */] || \"\";\n if (!typeName) {\n try {\n var funcNameRegex = /function (.{1,200})\\(/;\n var results = funcNameRegex.exec(errorType.constructor[_DYN_TO_STRING /* @min:%2etoString */]());\n typeName = results && results[_DYN_LENGTH /* @min:%2elength */] > 1 ? results[1] : \"\";\n } catch (e) {\n // eslint-disable-next-line no-empty -- Ignoring any failures as nothing we can do\n }\n }\n }\n return typeName;\n}\n/**\r\n * Formats the provided errorObj for display and reporting, it may be a String, Object, integer or undefined depending on the browser.\r\n * @param errorObj - The supplied errorObj\r\n */\nexport function _formatErrorCode(errorObj) {\n if (errorObj) {\n try {\n if (!isString(errorObj)) {\n var errorType = _getErrorType(errorObj);\n var result = _stringify(errorObj, false);\n if (!result || result === \"{}\") {\n if (errorObj[strError]) {\n // Looks like an MS Error Event\n errorObj = errorObj[strError];\n errorType = _getErrorType(errorObj);\n }\n result = _stringify(errorObj, true);\n }\n if (strIndexOf(result, errorType) !== 0 && errorType !== \"String\") {\n return errorType + \":\" + result;\n }\n return result;\n }\n } catch (e) {\n // eslint-disable-next-line no-empty -- Ignoring any failures as nothing we can do\n }\n }\n // Fallback to just letting the object format itself into a string\n return \"\" + (errorObj || \"\");\n}\nvar Exception = /** @class */function () {\n /**\r\n * Constructs a new instance of the ExceptionTelemetry object\r\n */\n function Exception(logger, exception, properties, measurements, severityLevel, id) {\n this.aiDataContract = {\n ver: 1 /* FieldType.Required */,\n exceptions: 1 /* FieldType.Required */,\n severityLevel: 0 /* FieldType.Default */,\n properties: 0 /* FieldType.Default */,\n measurements: 0 /* FieldType.Default */\n };\n var _self = this;\n _self.ver = 2; // TODO: handle the CS\"4.0\" ==> breeze 2 conversion in a better way\n if (!_isExceptionInternal(exception)) {\n if (!properties) {\n properties = {};\n }\n _self[_DYN_EXCEPTIONS /* @min:%2eexceptions */] = [new _ExceptionDetails(logger, exception, properties)];\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\n if (severityLevel) {\n _self[_DYN_SEVERITY_LEVEL /* @min:%2eseverityLevel */] = severityLevel;\n }\n if (id) {\n _self.id = id;\n }\n } else {\n _self[_DYN_EXCEPTIONS /* @min:%2eexceptions */] = exception[_DYN_EXCEPTIONS /* @min:%2eexceptions */] || [];\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = exception[_DYN_PROPERTIES /* @min:%2eproperties */];\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = exception[_DYN_MEASUREMENTS /* @min:%2emeasurements */];\n if (exception[_DYN_SEVERITY_LEVEL /* @min:%2eseverityLevel */]) {\n _self[_DYN_SEVERITY_LEVEL /* @min:%2eseverityLevel */] = exception[_DYN_SEVERITY_LEVEL /* @min:%2eseverityLevel */];\n }\n if (exception.id) {\n _self.id = exception.id;\n }\n if (exception[_DYN_PROBLEM_GROUP /* @min:%2eproblemGroup */]) {\n _self[_DYN_PROBLEM_GROUP /* @min:%2eproblemGroup */] = exception[_DYN_PROBLEM_GROUP /* @min:%2eproblemGroup */];\n }\n // bool/int types, use isNullOrUndefined\n if (!isNullOrUndefined(exception[_DYN_IS_MANUAL /* @min:%2eisManual */])) {\n _self[_DYN_IS_MANUAL /* @min:%2eisManual */] = exception[_DYN_IS_MANUAL /* @min:%2eisManual */];\n }\n }\n }\n Exception.CreateAutoException = function (message, url, lineNumber, columnNumber, error, evt, stack, errorSrc) {\n var _a;\n var errorType = _getErrorType(error || evt || message);\n return _a = {}, _a[_DYN_MESSAGE /* @min:message */] = _formatMessage(message, errorType), _a.url = url, _a.lineNumber = lineNumber, _a.columnNumber = columnNumber, _a.error = _formatErrorCode(error || evt || message), _a.evt = _formatErrorCode(evt || message), _a[_DYN_TYPE_NAME /* @min:typeName */] = errorType, _a.stackDetails = _getStackFromErrorObj(stack || error || evt), _a.errorSrc = errorSrc, _a;\n };\n Exception.CreateFromInterface = function (logger, exception, properties, measurements) {\n var exceptions = exception[_DYN_EXCEPTIONS /* @min:%2eexceptions */] && arrMap(exception[_DYN_EXCEPTIONS /* @min:%2eexceptions */], function (ex) {\n return _ExceptionDetails[_DYN__CREATE_FROM_INTERFA1 /* @min:%2eCreateFromInterface */](logger, ex);\n });\n var exceptionData = new Exception(logger, __assign(__assign({}, exception), {\n exceptions: exceptions\n }), properties, measurements);\n return exceptionData;\n };\n Exception.prototype.toInterface = function () {\n var _a;\n var _b = this,\n exceptions = _b.exceptions,\n properties = _b.properties,\n measurements = _b.measurements,\n severityLevel = _b.severityLevel,\n problemGroup = _b.problemGroup,\n id = _b.id,\n isManual = _b.isManual;\n var exceptionDetailsInterface = exceptions instanceof Array && arrMap(exceptions, function (exception) {\n return exception.toInterface();\n }) || undefined;\n return _a = {\n ver: \"4.0\"\n }, _a[_DYN_EXCEPTIONS /* @min:exceptions */] = exceptionDetailsInterface, _a.severityLevel = severityLevel, _a.properties = properties, _a.measurements = measurements, _a.problemGroup = problemGroup, _a.id = id, _a.isManual = isManual, _a;\n };\n /**\r\n * Creates a simple exception with 1 stack frame. Useful for manual constracting of exception.\r\n */\n Exception.CreateSimpleException = function (message, typeName, assembly, fileName, details, line) {\n var _a;\n return {\n exceptions: [(_a = {}, _a[_DYN_HAS_FULL_STACK /* @min:hasFullStack */] = true, _a.message = message, _a.stack = details, _a.typeName = typeName, _a)]\n };\n };\n Exception.envelopeType = \"Microsoft.ApplicationInsights.{0}.Exception\";\n Exception.dataType = \"ExceptionData\";\n Exception.formatError = _formatErrorCode;\n return Exception;\n}();\nexport { Exception };\nvar _ExceptionDetails = /** @class */function () {\n function _ExceptionDetails(logger, exception, properties) {\n this.aiDataContract = {\n id: 0 /* FieldType.Default */,\n outerId: 0 /* FieldType.Default */,\n typeName: 1 /* FieldType.Required */,\n message: 1 /* FieldType.Required */,\n hasFullStack: 0 /* FieldType.Default */,\n stack: 0 /* FieldType.Default */,\n parsedStack: 2 /* FieldType.Array */\n };\n var _self = this;\n if (!_isExceptionDetailsInternal(exception)) {\n var error = exception;\n var evt = error && error.evt;\n if (!isError(error)) {\n error = error[strError] || evt || error;\n }\n _self[_DYN_TYPE_NAME /* @min:%2etypeName */] = dataSanitizeString(logger, _getErrorType(error)) || strNotSpecified;\n _self[_DYN_MESSAGE /* @min:%2emessage */] = dataSanitizeMessage(logger, _formatMessage(exception || error, _self[_DYN_TYPE_NAME /* @min:%2etypeName */])) || strNotSpecified;\n var stack = exception[strStackDetails] || _getStackFromErrorObj(exception);\n _self[_DYN_PARSED_STACK /* @min:%2eparsedStack */] = _parseStack(stack);\n // after parsedStack is inited, iterate over each frame object, sanitize its assembly field\n if (isArray(_self[_DYN_PARSED_STACK /* @min:%2eparsedStack */])) {\n arrMap(_self[_DYN_PARSED_STACK /* @min:%2eparsedStack */], function (frame) {\n frame[_DYN_ASSEMBLY /* @min:%2eassembly */] = dataSanitizeString(logger, frame[_DYN_ASSEMBLY /* @min:%2eassembly */]);\n frame[_DYN_FILE_NAME /* @min:%2efileName */] = dataSanitizeString(logger, frame[_DYN_FILE_NAME /* @min:%2efileName */]);\n });\n }\n _self[strStack] = dataSanitizeException(logger, _formatStackTrace(stack));\n _self.hasFullStack = isArray(_self.parsedStack) && _self.parsedStack[_DYN_LENGTH /* @min:%2elength */] > 0;\n if (properties) {\n properties[_DYN_TYPE_NAME /* @min:%2etypeName */] = properties[_DYN_TYPE_NAME /* @min:%2etypeName */] || _self[_DYN_TYPE_NAME /* @min:%2etypeName */];\n }\n } else {\n _self[_DYN_TYPE_NAME /* @min:%2etypeName */] = exception[_DYN_TYPE_NAME /* @min:%2etypeName */];\n _self[_DYN_MESSAGE /* @min:%2emessage */] = exception[_DYN_MESSAGE /* @min:%2emessage */];\n _self[strStack] = exception[strStack];\n _self[_DYN_PARSED_STACK /* @min:%2eparsedStack */] = exception[_DYN_PARSED_STACK /* @min:%2eparsedStack */] || [];\n _self[_DYN_HAS_FULL_STACK /* @min:%2ehasFullStack */] = exception[_DYN_HAS_FULL_STACK /* @min:%2ehasFullStack */];\n }\n }\n _ExceptionDetails.prototype.toInterface = function () {\n var _a;\n var _self = this;\n var parsedStack = _self[_DYN_PARSED_STACK /* @min:%2eparsedStack */] instanceof Array && arrMap(_self[_DYN_PARSED_STACK /* @min:%2eparsedStack */], function (frame) {\n return frame.toInterface();\n });\n var exceptionDetailsInterface = (_a = {\n id: _self.id,\n outerId: _self.outerId,\n typeName: _self[_DYN_TYPE_NAME /* @min:%2etypeName */],\n message: _self[_DYN_MESSAGE /* @min:%2emessage */],\n hasFullStack: _self[_DYN_HAS_FULL_STACK /* @min:%2ehasFullStack */],\n stack: _self[strStack]\n }, _a[_DYN_PARSED_STACK /* @min:parsedStack */] = parsedStack || undefined, _a);\n return exceptionDetailsInterface;\n };\n _ExceptionDetails.CreateFromInterface = function (logger, exception) {\n var parsedStack = exception[_DYN_PARSED_STACK /* @min:%2eparsedStack */] instanceof Array && arrMap(exception[_DYN_PARSED_STACK /* @min:%2eparsedStack */], function (frame) {\n return _StackFrame[_DYN__CREATE_FROM_INTERFA1 /* @min:%2eCreateFromInterface */](frame);\n }) || exception[_DYN_PARSED_STACK /* @min:%2eparsedStack */];\n var exceptionDetails = new _ExceptionDetails(logger, __assign(__assign({}, exception), {\n parsedStack: parsedStack\n }));\n return exceptionDetails;\n };\n return _ExceptionDetails;\n}();\nexport { _ExceptionDetails };\nvar _StackFrame = /** @class */function () {\n function _StackFrame(sourceFrame, level) {\n this.aiDataContract = {\n level: 1 /* FieldType.Required */,\n method: 1 /* FieldType.Required */,\n assembly: 0 /* FieldType.Default */,\n fileName: 0 /* FieldType.Default */,\n line: 0 /* FieldType.Default */\n };\n var _self = this;\n _self[_DYN_SIZE_IN_BYTES /* @min:%2esizeInBytes */] = 0;\n // Not converting this to isString() as typescript uses this logic to \"understand\" the different\n // types for the 2 different code paths\n if (typeof sourceFrame === \"string\") {\n var frame = sourceFrame;\n _self[_DYN_LEVEL /* @min:%2elevel */] = level;\n _self[_DYN_METHOD /* @min:%2emethod */] = NoMethod;\n _self[_DYN_ASSEMBLY /* @min:%2eassembly */] = strTrim(frame);\n _self[_DYN_FILE_NAME /* @min:%2efileName */] = \"\";\n _self[_DYN_LINE /* @min:%2eline */] = 0;\n var matches = frame.match(_StackFrame.regex);\n if (matches && matches[_DYN_LENGTH /* @min:%2elength */] >= 5) {\n _self[_DYN_METHOD /* @min:%2emethod */] = strTrim(matches[2]) || _self[_DYN_METHOD /* @min:%2emethod */];\n _self[_DYN_FILE_NAME /* @min:%2efileName */] = strTrim(matches[4]);\n _self[_DYN_LINE /* @min:%2eline */] = parseInt(matches[5]) || 0;\n }\n } else {\n _self[_DYN_LEVEL /* @min:%2elevel */] = sourceFrame[_DYN_LEVEL /* @min:%2elevel */];\n _self[_DYN_METHOD /* @min:%2emethod */] = sourceFrame[_DYN_METHOD /* @min:%2emethod */];\n _self[_DYN_ASSEMBLY /* @min:%2eassembly */] = sourceFrame[_DYN_ASSEMBLY /* @min:%2eassembly */];\n _self[_DYN_FILE_NAME /* @min:%2efileName */] = sourceFrame[_DYN_FILE_NAME /* @min:%2efileName */];\n _self[_DYN_LINE /* @min:%2eline */] = sourceFrame[_DYN_LINE /* @min:%2eline */];\n _self[_DYN_SIZE_IN_BYTES /* @min:%2esizeInBytes */] = 0;\n }\n _self.sizeInBytes += _self.method[_DYN_LENGTH /* @min:%2elength */];\n _self.sizeInBytes += _self.fileName[_DYN_LENGTH /* @min:%2elength */];\n _self.sizeInBytes += _self.assembly[_DYN_LENGTH /* @min:%2elength */];\n // todo: these might need to be removed depending on how the back-end settles on their size calculation\n _self[_DYN_SIZE_IN_BYTES /* @min:%2esizeInBytes */] += _StackFrame.baseSize;\n _self.sizeInBytes += _self.level.toString()[_DYN_LENGTH /* @min:%2elength */];\n _self.sizeInBytes += _self.line.toString()[_DYN_LENGTH /* @min:%2elength */];\n }\n _StackFrame.CreateFromInterface = function (frame) {\n return new _StackFrame(frame, null /* level is available in frame interface */);\n };\n _StackFrame.prototype.toInterface = function () {\n var _self = this;\n return {\n level: _self[_DYN_LEVEL /* @min:%2elevel */],\n method: _self[_DYN_METHOD /* @min:%2emethod */],\n assembly: _self[_DYN_ASSEMBLY /* @min:%2eassembly */],\n fileName: _self[_DYN_FILE_NAME /* @min:%2efileName */],\n line: _self[_DYN_LINE /* @min:%2eline */]\n };\n };\n // regex to match stack frames from ie/chrome/ff\n // methodName=$2, fileName=$4, lineNo=$5, column=$6\n _StackFrame.regex = /^([\\s]+at)?[\\s]{0,50}([^\\@\\()]+?)[\\s]{0,50}(\\@|\\()([^\\(\\n]+):([0-9]+):([0-9]+)(\\)?)$/;\n _StackFrame.baseSize = 58; // '{\"method\":\"\",\"level\":,\"assembly\":\"\",\"fileName\":\"\",\"line\":}'.length\n return _StackFrame;\n}();\nexport { _StackFrame };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nvar DataPoint = /** @class */function () {\n function DataPoint() {\n /**\r\n * The data contract for serializing this object.\r\n */\n this.aiDataContract = {\n name: 1 /* FieldType.Required */,\n kind: 0 /* FieldType.Default */,\n value: 1 /* FieldType.Required */,\n count: 0 /* FieldType.Default */,\n min: 0 /* FieldType.Default */,\n max: 0 /* FieldType.Default */,\n stdDev: 0 /* FieldType.Default */\n };\n /**\r\n * Metric type. Single measurement or the aggregated value.\r\n */\n this.kind = 0 /* DataPointType.Measurement */;\n }\n return DataPoint;\n}();\nexport { DataPoint };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { strNotSpecified } from \"../Constants\";\nimport { _DYN_COUNT, _DYN_MEASUREMENTS, _DYN_NAME, _DYN_PROPERTIES } from \"../__DynamicConstants\";\nimport { DataPoint } from \"./Common/DataPoint\";\nimport { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString } from \"./Common/DataSanitizer\";\nvar Metric = /** @class */function () {\n /**\r\n * Constructs a new instance of the MetricTelemetry object\r\n */\n function Metric(logger, name, value, count, min, max, stdDev, properties, measurements) {\n this.aiDataContract = {\n ver: 1 /* FieldType.Required */,\n metrics: 1 /* FieldType.Required */,\n properties: 0 /* FieldType.Default */\n };\n var _self = this;\n _self.ver = 2;\n var dataPoint = new DataPoint();\n dataPoint[_DYN_COUNT /* @min:%2ecount */] = count > 0 ? count : undefined;\n dataPoint.max = isNaN(max) || max === null ? undefined : max;\n dataPoint.min = isNaN(min) || min === null ? undefined : min;\n dataPoint[_DYN_NAME /* @min:%2ename */] = dataSanitizeString(logger, name) || strNotSpecified;\n dataPoint.value = value;\n dataPoint.stdDev = isNaN(stdDev) || stdDev === null ? undefined : stdDev;\n _self.metrics = [dataPoint];\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\n }\n Metric.envelopeType = \"Microsoft.ApplicationInsights.{0}.Metric\";\n Metric.dataType = \"MetricData\";\n return Metric;\n}();\nexport { Metric };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrForEach, isString } from \"@microsoft/applicationinsights-core-js\";\nimport { _DYN_LENGTH, _DYN_TO_LOWER_CASE } from \"./__DynamicConstants\";\nvar strEmpty = \"\";\nexport function stringToBoolOrDefault(str, defaultValue) {\n if (defaultValue === void 0) {\n defaultValue = false;\n }\n if (str === undefined || str === null) {\n return defaultValue;\n }\n return str.toString()[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]() === \"true\";\n}\n/**\r\n * Convert ms to c# time span format\r\n */\nexport function msToTimeSpan(totalms) {\n if (isNaN(totalms) || totalms < 0) {\n totalms = 0;\n }\n totalms = Math.round(totalms);\n var ms = strEmpty + totalms % 1000;\n var sec = strEmpty + Math.floor(totalms / 1000) % 60;\n var min = strEmpty + Math.floor(totalms / (1000 * 60)) % 60;\n var hour = strEmpty + Math.floor(totalms / (1000 * 60 * 60)) % 24;\n var days = Math.floor(totalms / (1000 * 60 * 60 * 24));\n ms = ms[_DYN_LENGTH /* @min:%2elength */] === 1 ? \"00\" + ms : ms[_DYN_LENGTH /* @min:%2elength */] === 2 ? \"0\" + ms : ms;\n sec = sec[_DYN_LENGTH /* @min:%2elength */] < 2 ? \"0\" + sec : sec;\n min = min[_DYN_LENGTH /* @min:%2elength */] < 2 ? \"0\" + min : min;\n hour = hour[_DYN_LENGTH /* @min:%2elength */] < 2 ? \"0\" + hour : hour;\n return (days > 0 ? days + \".\" : strEmpty) + hour + \":\" + min + \":\" + sec + \".\" + ms;\n}\nexport function getExtensionByName(extensions, identifier) {\n var extension = null;\n arrForEach(extensions, function (value) {\n if (value.identifier === identifier) {\n extension = value;\n return -1;\n }\n });\n return extension;\n}\nexport function isCrossOriginError(message, url, lineNumber, columnNumber, error) {\n return !error && isString(message) && (message === \"Script error.\" || message === \"Script error\");\n}\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { strNotSpecified } from \"../Constants\";\nimport { msToTimeSpan } from \"../HelperFuncs\";\nimport { _DYN_DURATION, _DYN_MEASUREMENTS, _DYN_NAME, _DYN_PROPERTIES } from \"../__DynamicConstants\";\nimport { dataSanitizeId, dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from \"./Common/DataSanitizer\";\nvar PageView = /** @class */function () {\n /**\r\n * Constructs a new instance of the PageEventTelemetry object\r\n */\n function PageView(logger, name, url, durationMs, properties, measurements, id) {\n this.aiDataContract = {\n ver: 1 /* FieldType.Required */,\n name: 0 /* FieldType.Default */,\n url: 0 /* FieldType.Default */,\n duration: 0 /* FieldType.Default */,\n properties: 0 /* FieldType.Default */,\n measurements: 0 /* FieldType.Default */,\n id: 0 /* FieldType.Default */\n };\n var _self = this;\n _self.ver = 2;\n _self.id = dataSanitizeId(logger, id);\n _self.url = dataSanitizeUrl(logger, url);\n _self[_DYN_NAME /* @min:%2ename */] = dataSanitizeString(logger, name) || strNotSpecified;\n if (!isNaN(durationMs)) {\n _self[_DYN_DURATION /* @min:%2eduration */] = msToTimeSpan(durationMs);\n }\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\n }\n PageView.envelopeType = \"Microsoft.ApplicationInsights.{0}.Pageview\";\n PageView.dataType = \"PageviewData\";\n return PageView;\n}();\nexport { PageView };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { msToTimeSpan } from \"../HelperFuncs\";\nimport { AjaxHelperParseDependencyPath } from \"../Util\";\nimport { _DYN_DURATION, _DYN_MEASUREMENTS, _DYN_NAME, _DYN_PROPERTIES } from \"../__DynamicConstants\";\nimport { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from \"./Common/DataSanitizer\";\nvar RemoteDependencyData = /** @class */function () {\n /**\r\n * Constructs a new instance of the RemoteDependencyData object\r\n */\n function RemoteDependencyData(logger, id, absoluteUrl, commandName, value, success, resultCode, method, requestAPI, correlationContext, properties, measurements) {\n if (requestAPI === void 0) {\n requestAPI = \"Ajax\";\n }\n this.aiDataContract = {\n id: 1 /* FieldType.Required */,\n ver: 1 /* FieldType.Required */,\n name: 0 /* FieldType.Default */,\n resultCode: 0 /* FieldType.Default */,\n duration: 0 /* FieldType.Default */,\n success: 0 /* FieldType.Default */,\n data: 0 /* FieldType.Default */,\n target: 0 /* FieldType.Default */,\n type: 0 /* FieldType.Default */,\n properties: 0 /* FieldType.Default */,\n measurements: 0 /* FieldType.Default */,\n kind: 0 /* FieldType.Default */,\n value: 0 /* FieldType.Default */,\n count: 0 /* FieldType.Default */,\n min: 0 /* FieldType.Default */,\n max: 0 /* FieldType.Default */,\n stdDev: 0 /* FieldType.Default */,\n dependencyKind: 0 /* FieldType.Default */,\n dependencySource: 0 /* FieldType.Default */,\n commandName: 0 /* FieldType.Default */,\n dependencyTypeName: 0 /* FieldType.Default */\n };\n var _self = this;\n _self.ver = 2;\n _self.id = id;\n _self[_DYN_DURATION /* @min:%2eduration */] = msToTimeSpan(value);\n _self.success = success;\n _self.resultCode = resultCode + \"\";\n _self.type = dataSanitizeString(logger, requestAPI);\n var dependencyFields = AjaxHelperParseDependencyPath(logger, absoluteUrl, method, commandName);\n _self.data = dataSanitizeUrl(logger, commandName) || dependencyFields.data; // get a value from hosturl if commandName not available\n _self.target = dataSanitizeString(logger, dependencyFields.target);\n if (correlationContext) {\n _self.target = \"\".concat(_self.target, \" | \").concat(correlationContext);\n }\n _self[_DYN_NAME /* @min:%2ename */] = dataSanitizeString(logger, dependencyFields[_DYN_NAME /* @min:%2ename */]);\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\n }\n RemoteDependencyData.envelopeType = \"Microsoft.ApplicationInsights.{0}.RemoteDependency\";\n RemoteDependencyData.dataType = \"RemoteDependencyData\";\n return RemoteDependencyData;\n}();\nexport { RemoteDependencyData };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { strNotSpecified } from \"../Constants\";\nimport { _DYN_MEASUREMENTS, _DYN_MESSAGE, _DYN_PROPERTIES, _DYN_SEVERITY_LEVEL } from \"../__DynamicConstants\";\nimport { dataSanitizeMeasurements, dataSanitizeMessage, dataSanitizeProperties } from \"./Common/DataSanitizer\";\nvar Trace = /** @class */function () {\n /**\r\n * Constructs a new instance of the TraceTelemetry object\r\n */\n function Trace(logger, message, severityLevel, properties, measurements) {\n this.aiDataContract = {\n ver: 1 /* FieldType.Required */,\n message: 1 /* FieldType.Required */,\n severityLevel: 0 /* FieldType.Default */,\n properties: 0 /* FieldType.Default */\n };\n var _self = this;\n _self.ver = 2;\n message = message || strNotSpecified;\n _self[_DYN_MESSAGE /* @min:%2emessage */] = dataSanitizeMessage(logger, message);\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\n if (severityLevel) {\n _self[_DYN_SEVERITY_LEVEL /* @min:%2eseverityLevel */] = severityLevel;\n }\n }\n Trace.envelopeType = \"Microsoft.ApplicationInsights.{0}.Message\";\n Trace.dataType = \"MessageData\";\n return Trace;\n}();\nexport { Trace };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { strNotSpecified } from \"../Constants\";\nimport { _DYN_DURATION, _DYN_MEASUREMENTS, _DYN_NAME, _DYN_PROPERTIES, _DYN_RECEIVED_RESPONSE } from \"../__DynamicConstants\";\nimport { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from \"./Common/DataSanitizer\";\nvar PageViewPerformance = /** @class */function () {\n /**\r\n * Constructs a new instance of the PageEventTelemetry object\r\n */\n function PageViewPerformance(logger, name, url, unused, properties, measurements, cs4BaseData) {\n this.aiDataContract = {\n ver: 1 /* FieldType.Required */,\n name: 0 /* FieldType.Default */,\n url: 0 /* FieldType.Default */,\n duration: 0 /* FieldType.Default */,\n perfTotal: 0 /* FieldType.Default */,\n networkConnect: 0 /* FieldType.Default */,\n sentRequest: 0 /* FieldType.Default */,\n receivedResponse: 0 /* FieldType.Default */,\n domProcessing: 0 /* FieldType.Default */,\n properties: 0 /* FieldType.Default */,\n measurements: 0 /* FieldType.Default */\n };\n var _self = this;\n _self.ver = 2;\n _self.url = dataSanitizeUrl(logger, url);\n _self[_DYN_NAME /* @min:%2ename */] = dataSanitizeString(logger, name) || strNotSpecified;\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\n if (cs4BaseData) {\n _self.domProcessing = cs4BaseData.domProcessing;\n _self[_DYN_DURATION /* @min:%2eduration */] = cs4BaseData[_DYN_DURATION /* @min:%2eduration */];\n _self.networkConnect = cs4BaseData.networkConnect;\n _self.perfTotal = cs4BaseData.perfTotal;\n _self[_DYN_RECEIVED_RESPONSE /* @min:%2ereceivedResponse */] = cs4BaseData[_DYN_RECEIVED_RESPONSE /* @min:%2ereceivedResponse */];\n _self.sentRequest = cs4BaseData.sentRequest;\n }\n }\n PageViewPerformance.envelopeType = \"Microsoft.ApplicationInsights.{0}.PageviewPerformance\";\n PageViewPerformance.dataType = \"PageviewPerformanceData\";\n return PageViewPerformance;\n}();\nexport { PageViewPerformance };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nvar Data = /** @class */function () {\n /**\r\n * Constructs a new instance of telemetry data.\r\n */\n function Data(baseType, data) {\n /**\r\n * The data contract for serializing this object.\r\n */\n this.aiDataContract = {\n baseType: 1 /* FieldType.Required */,\n baseData: 1 /* FieldType.Required */\n };\n this.baseType = baseType;\n this.baseData = data;\n }\n return Data;\n}();\nexport { Data };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { createEnumStyle } from \"@microsoft/applicationinsights-core-js\";\n/**\r\n * Defines the level of severity for the event.\r\n */\nexport var SeverityLevel = createEnumStyle({\n Verbose: 0 /* eSeverityLevel.Verbose */,\n Information: 1 /* eSeverityLevel.Information */,\n Warning: 2 /* eSeverityLevel.Warning */,\n Error: 3 /* eSeverityLevel.Error */,\n Critical: 4 /* eSeverityLevel.Critical */\n});\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\nimport { createClassFromInterface } from \"@microsoft/applicationinsights-core-js\";\nfunction _aiNameFunc(baseName) {\n var aiName = \"ai.\" + baseName + \".\";\n return function (name) {\n return aiName + name;\n };\n}\nvar _aiApplication = _aiNameFunc(\"application\");\nvar _aiDevice = _aiNameFunc(\"device\");\nvar _aiLocation = _aiNameFunc(\"location\");\nvar _aiOperation = _aiNameFunc(\"operation\");\nvar _aiSession = _aiNameFunc(\"session\");\nvar _aiUser = _aiNameFunc(\"user\");\nvar _aiCloud = _aiNameFunc(\"cloud\");\nvar _aiInternal = _aiNameFunc(\"internal\");\nvar ContextTagKeys = /** @class */function (_super) {\n __extends(ContextTagKeys, _super);\n function ContextTagKeys() {\n return _super.call(this) || this;\n }\n return ContextTagKeys;\n}(createClassFromInterface({\n applicationVersion: _aiApplication(\"ver\"),\n applicationBuild: _aiApplication(\"build\"),\n applicationTypeId: _aiApplication(\"typeId\"),\n applicationId: _aiApplication(\"applicationId\"),\n applicationLayer: _aiApplication(\"layer\"),\n deviceId: _aiDevice(\"id\"),\n deviceIp: _aiDevice(\"ip\"),\n deviceLanguage: _aiDevice(\"language\"),\n deviceLocale: _aiDevice(\"locale\"),\n deviceModel: _aiDevice(\"model\"),\n deviceFriendlyName: _aiDevice(\"friendlyName\"),\n deviceNetwork: _aiDevice(\"network\"),\n deviceNetworkName: _aiDevice(\"networkName\"),\n deviceOEMName: _aiDevice(\"oemName\"),\n deviceOS: _aiDevice(\"os\"),\n deviceOSVersion: _aiDevice(\"osVersion\"),\n deviceRoleInstance: _aiDevice(\"roleInstance\"),\n deviceRoleName: _aiDevice(\"roleName\"),\n deviceScreenResolution: _aiDevice(\"screenResolution\"),\n deviceType: _aiDevice(\"type\"),\n deviceMachineName: _aiDevice(\"machineName\"),\n deviceVMName: _aiDevice(\"vmName\"),\n deviceBrowser: _aiDevice(\"browser\"),\n deviceBrowserVersion: _aiDevice(\"browserVersion\"),\n locationIp: _aiLocation(\"ip\"),\n locationCountry: _aiLocation(\"country\"),\n locationProvince: _aiLocation(\"province\"),\n locationCity: _aiLocation(\"city\"),\n operationId: _aiOperation(\"id\"),\n operationName: _aiOperation(\"name\"),\n operationParentId: _aiOperation(\"parentId\"),\n operationRootId: _aiOperation(\"rootId\"),\n operationSyntheticSource: _aiOperation(\"syntheticSource\"),\n operationCorrelationVector: _aiOperation(\"correlationVector\"),\n sessionId: _aiSession(\"id\"),\n sessionIsFirst: _aiSession(\"isFirst\"),\n sessionIsNew: _aiSession(\"isNew\"),\n userAccountAcquisitionDate: _aiUser(\"accountAcquisitionDate\"),\n userAccountId: _aiUser(\"accountId\"),\n userAgent: _aiUser(\"userAgent\"),\n userId: _aiUser(\"id\"),\n userStoreRegion: _aiUser(\"storeRegion\"),\n userAuthUserId: _aiUser(\"authUserId\"),\n userAnonymousUserAcquisitionDate: _aiUser(\"anonUserAcquisitionDate\"),\n userAuthenticatedUserAcquisitionDate: _aiUser(\"authUserAcquisitionDate\"),\n cloudName: _aiCloud(\"name\"),\n cloudRole: _aiCloud(\"role\"),\n cloudRoleVer: _aiCloud(\"roleVer\"),\n cloudRoleInstance: _aiCloud(\"roleInstance\"),\n cloudEnvironment: _aiCloud(\"environment\"),\n cloudLocation: _aiCloud(\"location\"),\n cloudDeploymentUnit: _aiCloud(\"deploymentUnit\"),\n internalNodeName: _aiInternal(\"nodeName\"),\n internalSdkVersion: _aiInternal(\"sdkVersion\"),\n internalAgentVersion: _aiInternal(\"agentVersion\"),\n internalSnippet: _aiInternal(\"snippet\"),\n internalSdkSrc: _aiInternal(\"sdkSrc\")\n}));\nexport { ContextTagKeys };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { isNullOrUndefined, objForEachKey, throwError, toISOString } from \"@microsoft/applicationinsights-core-js\";\nimport { strIkey, strNotSpecified } from \"./Constants\";\nimport { dataSanitizeString } from \"./Telemetry/Common/DataSanitizer\";\nimport { _DYN_NAME } from \"./__DynamicConstants\";\n/**\r\n * Create a telemetry item that the 1DS channel understands\r\n * @param item - domain specific properties; part B\r\n * @param baseType - telemetry item type. ie PageViewData\r\n * @param envelopeName - name of the envelope. ie Microsoft.ApplicationInsights..PageView\r\n * @param customProperties - user defined custom properties; part C\r\n * @param systemProperties - system properties that are added to the context; part A\r\n * @returns ITelemetryItem that is sent to channel\r\n */\nexport function createTelemetryItem(item, baseType, envelopeName, logger, customProperties, systemProperties) {\n var _a;\n envelopeName = dataSanitizeString(logger, envelopeName) || strNotSpecified;\n if (isNullOrUndefined(item) || isNullOrUndefined(baseType) || isNullOrUndefined(envelopeName)) {\n throwError(\"Input doesn't contain all required fields\");\n }\n var iKey = \"\";\n if (item[strIkey]) {\n iKey = item[strIkey];\n delete item[strIkey];\n }\n var telemetryItem = (_a = {}, _a[_DYN_NAME /* @min:name */] = envelopeName, _a.time = toISOString(new Date()), _a.iKey = iKey, _a.ext = systemProperties ? systemProperties : {}, _a.tags = [], _a.data = {}, _a.baseType = baseType, _a.baseData = item // Part B\n , _a);\n // Part C\n if (!isNullOrUndefined(customProperties)) {\n objForEachKey(customProperties, function (prop, value) {\n telemetryItem.data[prop] = value;\n });\n }\n return telemetryItem;\n}\nvar TelemetryItemCreator = /** @class */function () {\n function TelemetryItemCreator() {}\n /**\r\n * Create a telemetry item that the 1DS channel understands\r\n * @param item - domain specific properties; part B\r\n * @param baseType - telemetry item type. ie PageViewData\r\n * @param envelopeName - name of the envelope. ie Microsoft.ApplicationInsights..PageView\r\n * @param customProperties - user defined custom properties; part C\r\n * @param systemProperties - system properties that are added to the context; part A\r\n * @returns ITelemetryItem that is sent to channel\r\n */\n TelemetryItemCreator.create = createTelemetryItem;\n return TelemetryItemCreator;\n}();\nexport { TelemetryItemCreator };\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { ContextTagKeys } from \"./Contracts/ContextTagKeys\";\nexport var Extensions = {\n UserExt: \"user\",\n DeviceExt: \"device\",\n TraceExt: \"trace\",\n WebExt: \"web\",\n AppExt: \"app\",\n OSExt: \"os\",\n SessionExt: \"ses\",\n SDKExt: \"sdk\"\n};\nexport var CtxTagKeys = new ContextTagKeys();\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { getDocument, isFunction } from \"@microsoft/applicationinsights-core-js\";\nexport function createDomEvent(eventName) {\n var event = null;\n if (isFunction(Event)) {\n // Use Event constructor when available\n event = new Event(eventName);\n } else {\n // Event has no constructor in IE\n var doc = getDocument();\n if (doc && doc.createEvent) {\n event = doc.createEvent(\"Event\");\n event.initEvent(eventName, true, true);\n }\n }\n return event;\n}\n","/*\n * Application Insights JavaScript SDK - Common, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// Licensed under the\nexport { correlationIdSetPrefix, correlationIdGetPrefix, correlationIdCanIncludeCorrelationHeader, correlationIdGetCorrelationContext, correlationIdGetCorrelationContextValue, dateTimeUtilsNow, dateTimeUtilsDuration, isInternalApplicationInsightsEndpoint, createDistributedTraceContextFromTrace } from \"./Util\";\nexport { ThrottleMgr } from \"./ThrottleMgr\";\nexport { parseConnectionString, ConnectionStringParser } from \"./ConnectionStringParser\";\nexport { RequestHeaders } from \"./RequestResponseHeaders\";\nexport { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, strNotSpecified } from \"./Constants\";\nexport { Envelope } from \"./Telemetry/Common/Envelope\";\nexport { Event } from \"./Telemetry/Event\";\nexport { Exception } from \"./Telemetry/Exception\";\nexport { Metric } from \"./Telemetry/Metric\";\nexport { PageView } from \"./Telemetry/PageView\";\nexport { RemoteDependencyData } from \"./Telemetry/RemoteDependencyData\";\nexport { Trace } from \"./Telemetry/Trace\";\nexport { PageViewPerformance } from \"./Telemetry/PageViewPerformance\";\nexport { Data } from \"./Telemetry/Common/Data\";\nexport { SeverityLevel } from \"./Interfaces/Contracts/SeverityLevel\";\nexport { ConfigurationManager } from \"./Interfaces/IConfig\";\nexport { ContextTagKeys } from \"./Interfaces/Contracts/ContextTagKeys\";\nexport { dataSanitizeKeyAndAddUniqueness, dataSanitizeKey, dataSanitizeString, dataSanitizeUrl, dataSanitizeMessage, dataSanitizeException, dataSanitizeProperties, dataSanitizeMeasurements, dataSanitizeId, dataSanitizeInput, dsPadNumber } from \"./Telemetry/Common/DataSanitizer\";\nexport { TelemetryItemCreator, createTelemetryItem } from \"./TelemetryItemCreator\";\nexport { CtxTagKeys, Extensions } from \"./Interfaces/PartAExtensions\";\nexport { DistributedTracingModes } from \"./Enums\";\nexport { stringToBoolOrDefault, msToTimeSpan, getExtensionByName, isCrossOriginError } from \"./HelperFuncs\";\nexport { isBeaconsSupported as isBeaconApiSupported, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from \"@microsoft/applicationinsights-core-js\";\nexport { createDomEvent } from \"./DomHelperFuncs\";\nexport { utlDisableStorage, utlEnableStorage, utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage, utlRemoveStorage, utlCanUseSessionStorage, utlGetSessionStorageKeys, utlGetSessionStorage, utlSetSessionStorage, utlRemoveSessionStorage, utlSetStoragePrefix } from \"./StorageHelperFuncs\";\nexport { urlParseUrl, urlGetAbsoluteUrl, urlGetPathName, urlGetCompleteUrl, urlParseHost, urlParseFullHost } from \"./UrlHelperFuncs\";\nexport var PropertiesPluginIdentifier = \"AppInsightsPropertiesPlugin\";\nexport var BreezeChannelIdentifier = \"AppInsightsChannelPlugin\";\nexport var AnalyticsPluginIdentifier = \"ApplicationInsightsAnalytics\";\n","/*\n * Application Insights JavaScript SDK - Web Analytics, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// @skip-file-minify\n// ##############################################################\n// AUTO GENERATED FILE: This file is Auto Generated during build.\n// ##############################################################\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nexport var _DYN_TO_STRING = \"toString\"; // Count: 4\nexport var _DYN_IS_STORAGE_USE_DISAB0 = \"isStorageUseDisabled\"; // Count: 3\nexport var _DYN__ADD_HOOK = \"_addHook\"; // Count: 6\nexport var _DYN_CORE = \"core\"; // Count: 7\nexport var _DYN_DATA_TYPE = \"dataType\"; // Count: 8\nexport var _DYN_ENVELOPE_TYPE = \"envelopeType\"; // Count: 7\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 13\nexport var _DYN_TRACK = \"track\"; // Count: 7\nexport var _DYN_TRACK_PAGE_VIEW = \"trackPageView\"; // Count: 4\nexport var _DYN_TRACK_PREVIOUS_PAGE_1 = \"trackPreviousPageVisit\"; // Count: 3\nexport var _DYN_SEND_PAGE_VIEW_INTER2 = \"sendPageViewInternal\"; // Count: 7\nexport var _DYN_GET_ENTRIES_BY_TYPE = \"getEntriesByType\"; // Count: 5\nexport var _DYN_START_TIME = \"startTime\"; // Count: 4\nexport var _DYN_DURATION = \"duration\"; // Count: 11\nexport var _DYN_SEND_PAGE_VIEW_PERFO3 = \"sendPageViewPerformanceInternal\"; // Count: 3\nexport var _DYN_POPULATE_PAGE_VIEW_P4 = \"populatePageViewPerformanceEvent\"; // Count: 3\nexport var _DYN_HREF = \"href\"; // Count: 6\nexport var _DYN_SEND_EXCEPTION_INTER5 = \"sendExceptionInternal\"; // Count: 2\nexport var _DYN_EXCEPTION = \"exception\"; // Count: 3\nexport var _DYN_ERROR = \"error\"; // Count: 5\nexport var _DYN__ONERROR = \"_onerror\"; // Count: 3\nexport var _DYN_ERROR_SRC = \"errorSrc\"; // Count: 3\nexport var _DYN_LINE_NUMBER = \"lineNumber\"; // Count: 5\nexport var _DYN_COLUMN_NUMBER = \"columnNumber\"; // Count: 5\nexport var _DYN_MESSAGE = \"message\"; // Count: 4\nexport var _DYN__CREATE_AUTO_EXCEPTI6 = \"CreateAutoException\"; // Count: 3\nexport var _DYN_ADD_TELEMETRY_INITIA7 = \"addTelemetryInitializer\"; // Count: 4\nexport var _DYN_OVERRIDE_PAGE_VIEW_D8 = \"overridePageViewDuration\"; // Count: 2\nexport var _DYN_AUTO_TRACK_PAGE_VISI9 = \"autoTrackPageVisitTime\"; // Count: 2\nexport var _DYN_IS_BROWSER_LINK_TRAC10 = \"isBrowserLinkTrackingEnabled\"; // Count: 2\nexport var _DYN_LENGTH = \"length\"; // Count: 5\nexport var _DYN_ENABLE_AUTO_ROUTE_TR11 = \"enableAutoRouteTracking\"; // Count: 2\nexport var _DYN_ENABLE_UNHANDLED_PRO12 = \"enableUnhandledPromiseRejectionTracking\"; // Count: 2\nexport var _DYN_AUTO_UNHANDLED_PROMI13 = \"autoUnhandledPromiseInstrumented\"; // Count: 3\nexport var _DYN_IS_PERFORMANCE_TIMIN14 = \"isPerformanceTimingSupported\"; // Count: 2\nexport var _DYN_GET_PERFORMANCE_TIMI15 = \"getPerformanceTiming\"; // Count: 2\nexport var _DYN_NAVIGATION_START = \"navigationStart\"; // Count: 4\nexport var _DYN_SHOULD_COLLECT_DURAT16 = \"shouldCollectDuration\"; // Count: 3\nexport var _DYN_IS_PERFORMANCE_TIMIN17 = \"isPerformanceTimingDataReady\"; // Count: 2\nexport var _DYN_RESPONSE_START = \"responseStart\"; // Count: 5\nexport var _DYN_REQUEST_START = \"requestStart\"; // Count: 3\nexport var _DYN_LOAD_EVENT_END = \"loadEventEnd\"; // Count: 4\nexport var _DYN_RESPONSE_END = \"responseEnd\"; // Count: 5\nexport var _DYN_CONNECT_END = \"connectEnd\"; // Count: 4\nexport var _DYN_PAGE_VISIT_START_TIM18 = \"pageVisitStartTime\"; // Count: 2\n","/*\n * Application Insights JavaScript SDK - Web Analytics, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { dateTimeUtilsDuration } from \"@microsoft/applicationinsights-common\";\nimport { _throwInternal, arrForEach, dumpObj, getDocument, getExceptionName, getLocation, isNullOrUndefined } from \"@microsoft/applicationinsights-core-js\";\nimport { isWebWorker, scheduleTimeout } from \"@nevware21/ts-utils\";\nimport { _DYN_DURATION, _DYN_GET_PERFORMANCE_TIMI15, _DYN_HREF, _DYN_IS_PERFORMANCE_TIMIN14, _DYN_IS_PERFORMANCE_TIMIN17, _DYN_LENGTH, _DYN_NAVIGATION_START, _DYN_POPULATE_PAGE_VIEW_P4, _DYN_SEND_PAGE_VIEW_INTER2, _DYN_SEND_PAGE_VIEW_PERFO3, _DYN_SHOULD_COLLECT_DURAT16, _DYN_TRACK_PAGE_VIEW } from \"../../__DynamicConstants\";\n/**\r\n * Class encapsulates sending page views and page view performance telemetry.\r\n */\nvar PageViewManager = /** @class */function () {\n function PageViewManager(appInsights, overridePageViewDuration, core, pageViewPerformanceManager) {\n dynamicProto(PageViewManager, this, function (_self) {\n var queueTimer = null;\n var itemQueue = [];\n var pageViewPerformanceSent = false;\n var _logger;\n if (core) {\n _logger = core.logger;\n }\n function _flushChannels(isAsync) {\n if (core) {\n core.flush(isAsync, function () {\n // Event flushed, callback added to prevent promise creation\n });\n }\n }\n function _startTimer() {\n if (!queueTimer) {\n queueTimer = scheduleTimeout(function () {\n queueTimer = null;\n var allItems = itemQueue.slice(0);\n var doFlush = false;\n itemQueue = [];\n arrForEach(allItems, function (item) {\n if (!item()) {\n // Not processed so rescheduled\n itemQueue.push(item);\n } else {\n doFlush = true;\n }\n });\n if (itemQueue[_DYN_LENGTH /* @min:%2elength */] > 0) {\n _startTimer();\n }\n if (doFlush) {\n // We process at least one item so flush the queue\n _flushChannels(true);\n }\n }, 100);\n }\n }\n function _addQueue(cb) {\n itemQueue.push(cb);\n _startTimer();\n }\n _self[_DYN_TRACK_PAGE_VIEW /* @min:%2etrackPageView */] = function (pageView, customProperties) {\n var name = pageView.name;\n if (isNullOrUndefined(name) || typeof name !== \"string\") {\n var doc = getDocument();\n name = pageView.name = doc && doc.title || \"\";\n }\n var uri = pageView.uri;\n if (isNullOrUndefined(uri) || typeof uri !== \"string\") {\n var location_1 = getLocation();\n uri = pageView.uri = location_1 && location_1[_DYN_HREF /* @min:%2ehref */] || \"\";\n }\n // case 1a. if performance timing is not supported by the browser, send the page view telemetry with the duration provided by the user. If the user\n // do not provide the duration, set duration to undefined\n // Also this is case 4\n if (!pageViewPerformanceManager[_DYN_IS_PERFORMANCE_TIMIN14 /* @min:%2eisPerformanceTimingSupported */]()) {\n appInsights[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */](pageView, customProperties);\n _flushChannels(true);\n if (!isWebWorker()) {\n // no navigation timing (IE 8, iOS Safari 8.4, Opera Mini 8 - see http://caniuse.com/#feat=nav-timing)\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 25 /* _eInternalMessageId.NavigationTimingNotSupported */, \"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.\");\n }\n return;\n }\n var pageViewSent = false;\n var customDuration;\n // if the performance timing is supported by the browser, calculate the custom duration\n var start = pageViewPerformanceManager[_DYN_GET_PERFORMANCE_TIMI15 /* @min:%2egetPerformanceTiming */]()[_DYN_NAVIGATION_START /* @min:%2enavigationStart */];\n if (start > 0) {\n customDuration = dateTimeUtilsDuration(start, +new Date());\n if (!pageViewPerformanceManager[_DYN_SHOULD_COLLECT_DURAT16 /* @min:%2eshouldCollectDuration */](customDuration)) {\n customDuration = undefined;\n }\n }\n // if the user has provided duration, send a page view telemetry with the provided duration. Otherwise, if\n // overridePageViewDuration is set to true, send a page view telemetry with the custom duration calculated earlier\n var duration;\n if (!isNullOrUndefined(customProperties) && !isNullOrUndefined(customProperties[_DYN_DURATION /* @min:%2eduration */])) {\n duration = customProperties[_DYN_DURATION /* @min:%2eduration */];\n }\n if (overridePageViewDuration || !isNaN(duration)) {\n if (isNaN(duration)) {\n // case 3\n if (!customProperties) {\n customProperties = {};\n }\n customProperties[_DYN_DURATION /* @min:%2eduration */] = customDuration;\n }\n // case 2\n appInsights[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */](pageView, customProperties);\n _flushChannels(true);\n pageViewSent = true;\n }\n // now try to send the page view performance telemetry\n var maxDurationLimit = 60000;\n if (!customProperties) {\n customProperties = {};\n }\n // Queue the event for processing\n _addQueue(function () {\n var processed = false;\n try {\n if (pageViewPerformanceManager[_DYN_IS_PERFORMANCE_TIMIN17 /* @min:%2eisPerformanceTimingDataReady */]()) {\n processed = true;\n var pageViewPerformance = {\n name: name,\n uri: uri\n };\n pageViewPerformanceManager[_DYN_POPULATE_PAGE_VIEW_P4 /* @min:%2epopulatePageViewPerformanceEvent */](pageViewPerformance);\n if (!pageViewPerformance.isValid && !pageViewSent) {\n // If navigation timing gives invalid numbers, then go back to \"override page view duration\" mode.\n // That's the best value we can get that makes sense.\n customProperties[_DYN_DURATION /* @min:%2eduration */] = customDuration;\n appInsights[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */](pageView, customProperties);\n } else {\n if (!pageViewSent) {\n customProperties[_DYN_DURATION /* @min:%2eduration */] = pageViewPerformance.durationMs;\n appInsights[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */](pageView, customProperties);\n }\n if (!pageViewPerformanceSent) {\n appInsights[_DYN_SEND_PAGE_VIEW_PERFO3 /* @min:%2esendPageViewPerformanceInternal */](pageViewPerformance, customProperties);\n pageViewPerformanceSent = true;\n }\n }\n } else if (start > 0 && dateTimeUtilsDuration(start, +new Date()) > maxDurationLimit) {\n // if performance timings are not ready but we exceeded the maximum duration limit, just log a page view telemetry\n // with the maximum duration limit. Otherwise, keep waiting until performance timings are ready\n processed = true;\n if (!pageViewSent) {\n customProperties[_DYN_DURATION /* @min:%2eduration */] = maxDurationLimit;\n appInsights[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */](pageView, customProperties);\n }\n }\n } catch (e) {\n _throwInternal(_logger, 1 /* eLoggingSeverity.CRITICAL */, 38 /* _eInternalMessageId.TrackPVFailedCalc */, \"trackPageView failed on page load calculation: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n return processed;\n });\n };\n _self.teardown = function (unloadCtx, unloadState) {\n if (queueTimer) {\n queueTimer.cancel();\n queueTimer = null;\n var allItems = itemQueue.slice(0);\n var doFlush_1 = false;\n itemQueue = [];\n arrForEach(allItems, function (item) {\n if (item()) {\n doFlush_1 = true;\n }\n });\n }\n };\n });\n }\n // Removed Stub for PageViewManager.prototype.trackPageView.\n // Removed Stub for PageViewManager.prototype.teardown.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n PageViewManager.__ieDyn = 1;\n return PageViewManager;\n}();\nexport { PageViewManager };\n","/*\n * Application Insights JavaScript SDK - Web Analytics, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { dateTimeUtilsDuration, msToTimeSpan } from \"@microsoft/applicationinsights-common\";\nimport { _throwInternal, getNavigator, getPerformance, safeGetLogger } from \"@microsoft/applicationinsights-core-js\";\nimport { strIndexOf } from \"@nevware21/ts-utils\";\nimport { _DYN_CONNECT_END, _DYN_DURATION, _DYN_GET_ENTRIES_BY_TYPE, _DYN_GET_PERFORMANCE_TIMI15, _DYN_IS_PERFORMANCE_TIMIN14, _DYN_IS_PERFORMANCE_TIMIN17, _DYN_LENGTH, _DYN_LOAD_EVENT_END, _DYN_NAVIGATION_START, _DYN_POPULATE_PAGE_VIEW_P4, _DYN_REQUEST_START, _DYN_RESPONSE_END, _DYN_RESPONSE_START, _DYN_SHOULD_COLLECT_DURAT16, _DYN_START_TIME } from \"../../__DynamicConstants\";\nvar MAX_DURATION_ALLOWED = 3600000; // 1h\nvar botAgentNames = [\"googlebot\", \"adsbot-google\", \"apis-google\", \"mediapartners-google\"];\nfunction _isPerformanceTimingSupported() {\n var perf = getPerformance();\n return perf && !!perf.timing;\n}\nfunction _isPerformanceNavigationTimingSupported() {\n var perf = getPerformance();\n return perf && perf[_DYN_GET_ENTRIES_BY_TYPE /* @min:%2egetEntriesByType */] && perf[_DYN_GET_ENTRIES_BY_TYPE /* @min:%2egetEntriesByType */](\"navigation\")[_DYN_LENGTH /* @min:%2elength */] > 0;\n}\nfunction _isPerformanceTimingDataReady() {\n var perf = getPerformance();\n var timing = perf ? perf.timing : 0;\n return timing && timing.domainLookupStart > 0 && timing[_DYN_NAVIGATION_START /* @min:%2enavigationStart */] > 0 && timing[_DYN_RESPONSE_START /* @min:%2eresponseStart */] > 0 && timing[_DYN_REQUEST_START /* @min:%2erequestStart */] > 0 && timing[_DYN_LOAD_EVENT_END /* @min:%2eloadEventEnd */] > 0 && timing[_DYN_RESPONSE_END /* @min:%2eresponseEnd */] > 0 && timing[_DYN_CONNECT_END /* @min:%2econnectEnd */] > 0 && timing.domLoading > 0;\n}\nfunction _getPerformanceTiming() {\n if (_isPerformanceTimingSupported()) {\n return getPerformance().timing;\n }\n return null;\n}\nfunction _getPerformanceNavigationTiming() {\n if (_isPerformanceNavigationTimingSupported()) {\n return getPerformance()[_DYN_GET_ENTRIES_BY_TYPE /* @min:%2egetEntriesByType */](\"navigation\")[0];\n }\n return null;\n}\n/**\r\n* This method tells if given durations should be excluded from collection.\r\n*/\nfunction _shouldCollectDuration() {\n var durations = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n durations[_i] = arguments[_i];\n }\n var _navigator = getNavigator() || {};\n // a full list of Google crawlers user agent strings - https://support.google.com/webmasters/answer/1061943?hl=en\n var userAgent = _navigator.userAgent;\n var isGoogleBot = false;\n if (userAgent) {\n for (var i = 0; i < botAgentNames[_DYN_LENGTH /* @min:%2elength */]; i++) {\n isGoogleBot = isGoogleBot || strIndexOf(userAgent.toLowerCase(), botAgentNames[i]) !== -1;\n }\n }\n if (isGoogleBot) {\n // Don't report durations for GoogleBot, it is returning invalid values in performance.timing API.\n return false;\n } else {\n // for other page views, don't report if it's outside of a reasonable range\n for (var i = 0; i < durations[_DYN_LENGTH /* @min:%2elength */]; i++) {\n if (durations[i] < 0 || durations[i] >= MAX_DURATION_ALLOWED) {\n return false;\n }\n }\n }\n return true;\n}\n/**\r\n * Class encapsulates sending page view performance telemetry.\r\n */\nvar PageViewPerformanceManager = /** @class */function () {\n function PageViewPerformanceManager(core) {\n var _logger = safeGetLogger(core);\n dynamicProto(PageViewPerformanceManager, this, function (_self) {\n _self[_DYN_POPULATE_PAGE_VIEW_P4 /* @min:%2epopulatePageViewPerformanceEvent */] = function (pageViewPerformance) {\n pageViewPerformance.isValid = false;\n /*\r\n * http://www.w3.org/TR/navigation-timing/#processing-model\r\n * |-navigationStart\r\n * | |-connectEnd\r\n * | ||-requestStart\r\n * | || |-responseStart\r\n * | || | |-responseEnd\r\n * | || | |\r\n * | || | | |-loadEventEnd\r\n * |---network---||---request---|---response---|---dom---|\r\n * |--------------------------total----------------------|\r\n *\r\n * total = The difference between the load event of the current document is completed and the first recorded timestamp of the performance entry : https://developer.mozilla.org/en-US/docs/Web/Performance/Navigation_and_resource_timings#duration\r\n * network = Redirect time + App Cache + DNS lookup time + TCP connection time\r\n * request = Request time : https://developer.mozilla.org/en-US/docs/Web/Performance/Navigation_and_resource_timings#request_time\r\n * response = Response time\r\n * dom = Document load time : https://html.spec.whatwg.org/multipage/dom.html#document-load-timing-info\r\n * = Document processing time : https://developers.google.com/web/fundamentals/performance/navigation-and-resource-timing/#document_processing\r\n * + Loading time : https://developers.google.com/web/fundamentals/performance/navigation-and-resource-timing/#loading\r\n */\n var navigationTiming = _getPerformanceNavigationTiming();\n var timing = _getPerformanceTiming();\n var total = 0;\n var network = 0;\n var request = 0;\n var response = 0;\n var dom = 0;\n if (navigationTiming || timing) {\n if (navigationTiming) {\n total = navigationTiming[_DYN_DURATION /* @min:%2eduration */];\n /**\r\n * support both cases:\r\n * - startTime is always zero: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming\r\n * - for older browsers where the startTime is not zero\r\n */\n network = navigationTiming[_DYN_START_TIME /* @min:%2estartTime */] === 0 ? navigationTiming[_DYN_CONNECT_END /* @min:%2econnectEnd */] : dateTimeUtilsDuration(navigationTiming[_DYN_START_TIME /* @min:%2estartTime */], navigationTiming[_DYN_CONNECT_END /* @min:%2econnectEnd */]);\n request = dateTimeUtilsDuration(navigationTiming.requestStart, navigationTiming[_DYN_RESPONSE_START /* @min:%2eresponseStart */]);\n response = dateTimeUtilsDuration(navigationTiming[_DYN_RESPONSE_START /* @min:%2eresponseStart */], navigationTiming[_DYN_RESPONSE_END /* @min:%2eresponseEnd */]);\n dom = dateTimeUtilsDuration(navigationTiming.responseEnd, navigationTiming[_DYN_LOAD_EVENT_END /* @min:%2eloadEventEnd */]);\n } else {\n total = dateTimeUtilsDuration(timing[_DYN_NAVIGATION_START /* @min:%2enavigationStart */], timing[_DYN_LOAD_EVENT_END /* @min:%2eloadEventEnd */]);\n network = dateTimeUtilsDuration(timing[_DYN_NAVIGATION_START /* @min:%2enavigationStart */], timing[_DYN_CONNECT_END /* @min:%2econnectEnd */]);\n request = dateTimeUtilsDuration(timing.requestStart, timing[_DYN_RESPONSE_START /* @min:%2eresponseStart */]);\n response = dateTimeUtilsDuration(timing[_DYN_RESPONSE_START /* @min:%2eresponseStart */], timing[_DYN_RESPONSE_END /* @min:%2eresponseEnd */]);\n dom = dateTimeUtilsDuration(timing.responseEnd, timing[_DYN_LOAD_EVENT_END /* @min:%2eloadEventEnd */]);\n }\n if (total === 0) {\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 10 /* _eInternalMessageId.ErrorPVCalc */, \"error calculating page view performance.\", {\n total: total,\n network: network,\n request: request,\n response: response,\n dom: dom\n });\n } else if (!_self[_DYN_SHOULD_COLLECT_DURAT16 /* @min:%2eshouldCollectDuration */](total, network, request, response, dom)) {\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 45 /* _eInternalMessageId.InvalidDurationValue */, \"Invalid page load duration value. Browser perf data won't be sent.\", {\n total: total,\n network: network,\n request: request,\n response: response,\n dom: dom\n });\n } else if (total < Math.floor(network) + Math.floor(request) + Math.floor(response) + Math.floor(dom)) {\n // some browsers may report individual components incorrectly so that the sum of the parts will be bigger than total PLT\n // in this case, don't report client performance from this page\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 8 /* _eInternalMessageId.ClientPerformanceMathError */, \"client performance math error.\", {\n total: total,\n network: network,\n request: request,\n response: response,\n dom: dom\n });\n } else {\n pageViewPerformance.durationMs = total;\n // // convert to timespans\n pageViewPerformance.perfTotal = pageViewPerformance[_DYN_DURATION /* @min:%2eduration */] = msToTimeSpan(total);\n pageViewPerformance.networkConnect = msToTimeSpan(network);\n pageViewPerformance.sentRequest = msToTimeSpan(request);\n pageViewPerformance.receivedResponse = msToTimeSpan(response);\n pageViewPerformance.domProcessing = msToTimeSpan(dom);\n pageViewPerformance.isValid = true;\n }\n }\n };\n _self[_DYN_GET_PERFORMANCE_TIMI15 /* @min:%2egetPerformanceTiming */] = _getPerformanceTiming;\n _self[_DYN_IS_PERFORMANCE_TIMIN14 /* @min:%2eisPerformanceTimingSupported */] = _isPerformanceTimingSupported;\n _self[_DYN_IS_PERFORMANCE_TIMIN17 /* @min:%2eisPerformanceTimingDataReady */] = _isPerformanceTimingDataReady;\n _self[_DYN_SHOULD_COLLECT_DURAT16 /* @min:%2eshouldCollectDuration */] = _shouldCollectDuration;\n });\n }\n // Removed Stub for PageViewPerformanceManager.prototype.populatePageViewPerformanceEvent.\n // Removed Stub for PageViewPerformanceManager.prototype.getPerformanceTiming.\n // Removed Stub for PageViewPerformanceManager.prototype.isPerformanceTimingSupported.\n // Removed Stub for PageViewPerformanceManager.prototype.isPerformanceTimingDataReady.\n // Removed Stub for PageViewPerformanceManager.prototype.shouldCollectDuration.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n PageViewPerformanceManager.__ieDyn = 1;\n return PageViewPerformanceManager;\n}();\nexport { PageViewPerformanceManager };\n","/*\n * Application Insights JavaScript SDK - Web Analytics, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { utlCanUseSessionStorage, utlGetSessionStorage, utlRemoveSessionStorage, utlSetSessionStorage } from \"@microsoft/applicationinsights-common\";\nimport { _warnToConsole, dateNow, dumpObj, getJSON, hasJSON, throwError } from \"@microsoft/applicationinsights-core-js\";\nimport { objDefine } from \"@nevware21/ts-utils\";\nimport { _DYN_PAGE_VISIT_START_TIM18, _DYN_TRACK_PREVIOUS_PAGE_1 } from \"../../__DynamicConstants\";\n/**\r\n * Used to track page visit durations\r\n */\nvar PageVisitTimeManager = /** @class */function () {\n /**\r\n * Creates a new instance of PageVisitTimeManager\r\n * @param pageVisitTimeTrackingHandler - Delegate that will be called to send telemetry data to AI (when trackPreviousPageVisit is called)\r\n * @returns {}\r\n */\n function PageVisitTimeManager(logger, pageVisitTimeTrackingHandler) {\n var prevPageVisitDataKeyName = \"prevPageVisitData\";\n dynamicProto(PageVisitTimeManager, this, function (_self) {\n _self[_DYN_TRACK_PREVIOUS_PAGE_1 /* @min:%2etrackPreviousPageVisit */] = function (currentPageName, currentPageUrl) {\n try {\n // Restart timer for new page view\n var prevPageVisitTimeData = restartPageVisitTimer(currentPageName, currentPageUrl);\n // If there was a page already being timed, track the visit time for it now.\n if (prevPageVisitTimeData) {\n pageVisitTimeTrackingHandler(prevPageVisitTimeData.pageName, prevPageVisitTimeData.pageUrl, prevPageVisitTimeData.pageVisitTime);\n }\n } catch (e) {\n _warnToConsole(logger, \"Auto track page visit time failed, metric will not be collected: \" + dumpObj(e));\n }\n };\n /**\r\n * Stops timing of current page (if exists) and starts timing for duration of visit to pageName\r\n * @param pageName - Name of page to begin timing visit duration\r\n * @returns {PageVisitData} Page visit data (including duration) of pageName from last call to start or restart, if exists. Null if not.\r\n */\n function restartPageVisitTimer(pageName, pageUrl) {\n var prevPageVisitData = null;\n try {\n prevPageVisitData = stopPageVisitTimer();\n if (utlCanUseSessionStorage()) {\n if (utlGetSessionStorage(logger, prevPageVisitDataKeyName) != null) {\n throwError(\"Cannot call startPageVisit consecutively without first calling stopPageVisit\");\n }\n var currPageVisitDataStr = getJSON().stringify(new PageVisitData(pageName, pageUrl));\n utlSetSessionStorage(logger, prevPageVisitDataKeyName, currPageVisitDataStr);\n }\n } catch (e) {\n _warnToConsole(logger, \"Call to restart failed: \" + dumpObj(e));\n prevPageVisitData = null;\n }\n return prevPageVisitData;\n }\n /**\r\n * Stops timing of current page, if exists.\r\n * @returns {PageVisitData} Page visit data (including duration) of pageName from call to start, if exists. Null if not.\r\n */\n function stopPageVisitTimer() {\n var prevPageVisitData = null;\n try {\n if (utlCanUseSessionStorage()) {\n // Define end time of page's visit\n var pageVisitEndTime = dateNow();\n // Try to retrieve page name and start time from session storage\n var pageVisitDataJsonStr = utlGetSessionStorage(logger, prevPageVisitDataKeyName);\n if (pageVisitDataJsonStr && hasJSON()) {\n // if previous page data exists, set end time of visit\n prevPageVisitData = getJSON().parse(pageVisitDataJsonStr);\n prevPageVisitData.pageVisitTime = pageVisitEndTime - prevPageVisitData[_DYN_PAGE_VISIT_START_TIM18 /* @min:%2epageVisitStartTime */];\n // Remove data from storage since we already used it\n utlRemoveSessionStorage(logger, prevPageVisitDataKeyName);\n }\n }\n } catch (e) {\n _warnToConsole(logger, \"Stop page visit timer failed: \" + dumpObj(e));\n prevPageVisitData = null;\n }\n return prevPageVisitData;\n }\n // For backward compatibility\n objDefine(_self, \"_logger\", {\n g: function () {\n return logger;\n }\n });\n objDefine(_self, \"pageVisitTimeTrackingHandler\", {\n g: function () {\n return pageVisitTimeTrackingHandler;\n }\n });\n });\n }\n // Removed Stub for PageVisitTimeManager.prototype.trackPreviousPageVisit.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n PageVisitTimeManager.__ieDyn = 1;\n return PageVisitTimeManager;\n}();\nexport { PageVisitTimeManager };\nvar PageVisitData = /** @class */function () {\n function PageVisitData(pageName, pageUrl) {\n this[_DYN_PAGE_VISIT_START_TIM18 /* @min:%2epageVisitStartTime */] = dateNow();\n this.pageName = pageName;\n this.pageUrl = pageUrl;\n }\n return PageVisitData;\n}();\nexport { PageVisitData };\n","/*\n * Application Insights JavaScript SDK - Web Analytics, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { dateTimeUtilsDuration } from \"@microsoft/applicationinsights-common\";\nimport { _throwInternal } from \"@microsoft/applicationinsights-core-js\";\n/**\r\n * Used to record timed events and page views.\r\n */\nvar Timing = /** @class */function () {\n function Timing(logger, name) {\n var _self = this;\n var _events = {};\n _self.start = function (name) {\n if (typeof _events[name] !== \"undefined\") {\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 62 /* _eInternalMessageId.StartCalledMoreThanOnce */, \"start was called more than once for this event without calling stop.\", {\n name: name,\n key: name\n }, true);\n }\n _events[name] = +new Date();\n };\n _self.stop = function (name, url, properties, measurements) {\n var start = _events[name];\n if (isNaN(start)) {\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 63 /* _eInternalMessageId.StopCalledWithoutStart */, \"stop was called without a corresponding start.\", {\n name: name,\n key: name\n }, true);\n } else {\n var end = +new Date();\n var duration = dateTimeUtilsDuration(start, end);\n _self.action(name, url, duration, properties, measurements);\n }\n delete _events[name];\n _events[name] = undefined;\n };\n }\n return Timing;\n}();\nexport { Timing };\n","/*\n * Application Insights JavaScript SDK - Web Analytics, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n/**\r\n* ApplicationInsights.ts\r\n* @copyright Microsoft 2018\r\n*/\nvar _a;\nimport { __assignFn as __assign, __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { AnalyticsPluginIdentifier, Event as EventTelemetry, Exception, Metric, PageView, PageViewPerformance, PropertiesPluginIdentifier, RemoteDependencyData, Trace, createDistributedTraceContextFromTrace, createDomEvent, createTelemetryItem, dataSanitizeString, isCrossOriginError, strNotSpecified, utlDisableStorage, utlEnableStorage, utlSetStoragePrefix } from \"@microsoft/applicationinsights-common\";\nimport { BaseTelemetryPlugin, InstrumentEvent, arrForEach, cfgDfBoolean, cfgDfSet, cfgDfString, cfgDfValidate, createProcessTelemetryContext, createUniqueNamespace, dumpObj, eventOff, eventOn, generateW3CId, getDocument, getExceptionName, getHistory, getLocation, getWindow, hasHistory, hasWindow, isFunction, isNullOrUndefined, isString, isUndefined, mergeEvtNamespace, onConfigChange, safeGetCookieMgr, strUndefined, throwError } from \"@microsoft/applicationinsights-core-js\";\nimport { getPerformance, isError, objDeepFreeze, objDefine, scheduleTimeout, strIndexOf } from \"@nevware21/ts-utils\";\nimport { _DYN_ADD_TELEMETRY_INITIA7, _DYN_AUTO_TRACK_PAGE_VISI9, _DYN_AUTO_UNHANDLED_PROMI13, _DYN_COLUMN_NUMBER, _DYN_CORE, _DYN_DATA_TYPE, _DYN_DIAG_LOG, _DYN_DURATION, _DYN_ENABLE_AUTO_ROUTE_TR11, _DYN_ENABLE_UNHANDLED_PRO12, _DYN_ENVELOPE_TYPE, _DYN_ERROR, _DYN_ERROR_SRC, _DYN_EXCEPTION, _DYN_GET_ENTRIES_BY_TYPE, _DYN_HREF, _DYN_IS_BROWSER_LINK_TRAC10, _DYN_IS_STORAGE_USE_DISAB0, _DYN_LENGTH, _DYN_LINE_NUMBER, _DYN_MESSAGE, _DYN_OVERRIDE_PAGE_VIEW_D8, _DYN_POPULATE_PAGE_VIEW_P4, _DYN_SEND_EXCEPTION_INTER5, _DYN_SEND_PAGE_VIEW_INTER2, _DYN_SEND_PAGE_VIEW_PERFO3, _DYN_START_TIME, _DYN_TO_STRING, _DYN_TRACK, _DYN_TRACK_PAGE_VIEW, _DYN_TRACK_PREVIOUS_PAGE_1, _DYN__ADD_HOOK, _DYN__CREATE_AUTO_EXCEPTI6, _DYN__ONERROR } from \"../__DynamicConstants\";\nimport { PageViewManager } from \"./Telemetry/PageViewManager\";\nimport { PageViewPerformanceManager } from \"./Telemetry/PageViewPerformanceManager\";\nimport { PageVisitTimeManager } from \"./Telemetry/PageVisitTimeManager\";\nimport { Timing } from \"./Timing\";\nvar strEvent = \"event\";\nfunction _dispatchEvent(target, evnt) {\n if (target && target.dispatchEvent && evnt) {\n target.dispatchEvent(evnt);\n }\n}\nfunction _getReason(error) {\n if (error && error.reason) {\n var reason = error.reason;\n if (!isString(reason) && isFunction(reason[_DYN_TO_STRING /* @min:%2etoString */])) {\n return reason[_DYN_TO_STRING /* @min:%2etoString */]();\n }\n return dumpObj(reason);\n }\n // Pass the original object down which will eventually get evaluated for any message or description\n return error || \"\";\n}\nvar MinMilliSeconds = 60000;\nvar defaultValues = objDeepFreeze((_a = {\n sessionRenewalMs: cfgDfSet(_chkConfigMilliseconds, 30 * 60 * 1000),\n sessionExpirationMs: cfgDfSet(_chkConfigMilliseconds, 24 * 60 * 60 * 1000),\n disableExceptionTracking: cfgDfBoolean()\n}, _a[_DYN_AUTO_TRACK_PAGE_VISI9 /* @min:autoTrackPageVisitTime */] = cfgDfBoolean(), _a[_DYN_OVERRIDE_PAGE_VIEW_D8 /* @min:overridePageViewDuration */] = cfgDfBoolean(), _a[_DYN_ENABLE_UNHANDLED_PRO12 /* @min:enableUnhandledPromiseRejectionTracking */] = cfgDfBoolean(), _a[_DYN_AUTO_UNHANDLED_PROMI13 /* @min:autoUnhandledPromiseInstrumented */] = false, _a.samplingPercentage = cfgDfValidate(_chkSampling, 100), _a[_DYN_IS_STORAGE_USE_DISAB0 /* @min:isStorageUseDisabled */] = cfgDfBoolean(), _a[_DYN_IS_BROWSER_LINK_TRAC10 /* @min:isBrowserLinkTrackingEnabled */] = cfgDfBoolean(), _a[_DYN_ENABLE_AUTO_ROUTE_TR11 /* @min:enableAutoRouteTracking */] = cfgDfBoolean(), _a.namePrefix = cfgDfString(), _a.enableDebug = cfgDfBoolean(), _a.disableFlushOnBeforeUnload = cfgDfBoolean(), _a.disableFlushOnUnload = cfgDfBoolean(false, \"disableFlushOnBeforeUnload\"), _a));\nfunction _chkConfigMilliseconds(value, defValue) {\n value = value || defValue;\n if (value < MinMilliSeconds) {\n value = MinMilliSeconds;\n }\n return +value;\n}\nfunction _chkSampling(value) {\n return !isNaN(value) && value > 0 && value <= 100;\n}\nfunction _updateStorageUsage(extConfig) {\n // Not resetting the storage usage as someone may have manually called utlDisableStorage, so this will only\n // reset based if the configuration option is provided\n if (!isUndefined(extConfig[_DYN_IS_STORAGE_USE_DISAB0 /* @min:%2eisStorageUseDisabled */])) {\n if (extConfig[_DYN_IS_STORAGE_USE_DISAB0 /* @min:%2eisStorageUseDisabled */]) {\n utlDisableStorage();\n } else {\n utlEnableStorage();\n }\n }\n}\nvar AnalyticsPlugin = /** @class */function (_super) {\n __extends(AnalyticsPlugin, _super);\n function AnalyticsPlugin() {\n var _this = _super.call(this) || this;\n _this.identifier = AnalyticsPluginIdentifier; // do not change name or priority\n _this.priority = 180; // take from reserved priority range 100- 200\n _this.autoRoutePVDelay = 500; // ms; Time to wait after a route change before triggering a pageview to allow DOM changes to take place\n var _eventTracking;\n var _pageTracking;\n var _pageViewManager;\n var _pageViewPerformanceManager;\n var _pageVisitTimeManager;\n var _preInitTelemetryInitializers;\n var _isBrowserLinkTrackingEnabled;\n var _browserLinkInitializerAdded;\n var _enableAutoRouteTracking;\n var _historyListenerAdded;\n var _disableExceptionTracking;\n var _autoExceptionInstrumented;\n var _enableUnhandledPromiseRejectionTracking;\n var _autoUnhandledPromiseInstrumented;\n var _extConfig;\n var _autoTrackPageVisitTime;\n // Counts number of trackAjax invocations.\n // By default we only monitor X ajax call per view to avoid too much load.\n // Default value is set in config.\n // This counter keeps increasing even after the limit is reached.\n var _trackAjaxAttempts = 0;\n // array with max length of 2 that store current url and previous url for SPA page route change trackPageview use.\n var _prevUri; // Assigned in the constructor\n var _currUri;\n var _evtNamespace;\n dynamicProto(AnalyticsPlugin, _this, function (_self, _base) {\n var _addHook = _base[_DYN__ADD_HOOK /* @min:%2e_addHook */];\n _initDefaults();\n _self.getCookieMgr = function () {\n return safeGetCookieMgr(_self[_DYN_CORE /* @min:%2ecore */]);\n };\n _self.processTelemetry = function (env, itemCtx) {\n _self.processNext(env, itemCtx);\n };\n _self.trackEvent = function (event, customProperties) {\n try {\n var telemetryItem = createTelemetryItem(event, EventTelemetry[_DYN_DATA_TYPE /* @min:%2edataType */], EventTelemetry[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), customProperties);\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\n } catch (e) {\n _throwInternal(2 /* eLoggingSeverity.WARNING */, 39 /* _eInternalMessageId.TrackTraceFailed */, \"trackTrace failed, trace will not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n };\n /**\r\n * Start timing an extended event. Call `stopTrackEvent` to log the event when it ends.\r\n * @param name A string that identifies this event uniquely within the document.\r\n */\n _self.startTrackEvent = function (name) {\n try {\n _eventTracking.start(name);\n } catch (e) {\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 29 /* _eInternalMessageId.StartTrackEventFailed */, \"startTrackEvent failed, event will not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n };\n /**\r\n * Log an extended event that you started timing with `startTrackEvent`.\r\n * @param name The string you used to identify this event in `startTrackEvent`.\r\n * @param properties map[string, string] - additional data used to filter events and metrics in the portal. Defaults to empty.\r\n * @param measurements map[string, number] - metrics associated with this event, displayed in Metrics Explorer on the portal. Defaults to empty.\r\n */\n _self.stopTrackEvent = function (name, properties, measurements) {\n try {\n _eventTracking.stop(name, undefined, properties, measurements);\n } catch (e) {\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 30 /* _eInternalMessageId.StopTrackEventFailed */, \"stopTrackEvent failed, event will not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n };\n /**\r\n * @description Log a diagnostic message\r\n * @param trace\r\n * @param ICustomProperties.\r\n * @memberof ApplicationInsights\r\n */\n _self.trackTrace = function (trace, customProperties) {\n try {\n var telemetryItem = createTelemetryItem(trace, Trace[_DYN_DATA_TYPE /* @min:%2edataType */], Trace[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), customProperties);\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\n } catch (e) {\n _throwInternal(2 /* eLoggingSeverity.WARNING */, 39 /* _eInternalMessageId.TrackTraceFailed */, \"trackTrace failed, trace will not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n };\n /**\r\n * @description Log a numeric value that is not associated with a specific event. Typically\r\n * used to send regular reports of performance indicators. To send single measurement, just\r\n * use the name and average fields of {@link IMetricTelemetry}. If you take measurements\r\n * frequently, you can reduce the telemetry bandwidth by aggregating multiple measurements\r\n * and sending the resulting average at intervals\r\n * @param metric - input object argument. Only name and average are mandatory.\r\n * @param } customProperties additional data used to filter metrics in the\r\n * portal. Defaults to empty.\r\n * @memberof ApplicationInsights\r\n */\n _self.trackMetric = function (metric, customProperties) {\n try {\n var telemetryItem = createTelemetryItem(metric, Metric[_DYN_DATA_TYPE /* @min:%2edataType */], Metric[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), customProperties);\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\n } catch (e) {\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 36 /* _eInternalMessageId.TrackMetricFailed */, \"trackMetric failed, metric will not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n };\n /**\r\n * Logs that a page or other item was viewed.\r\n * @param IPageViewTelemetry - The string you used as the name in startTrackPage. Defaults to the document title.\r\n * @param customProperties - Additional data used to filter events and metrics. Defaults to empty.\r\n * If a user wants to provide duration for pageLoad, it'll have to be in pageView.properties.duration\r\n */\n _self[_DYN_TRACK_PAGE_VIEW /* @min:%2etrackPageView */] = function (pageView, customProperties) {\n try {\n var inPv = pageView || {};\n _pageViewManager[_DYN_TRACK_PAGE_VIEW /* @min:%2etrackPageView */](inPv, __assign(__assign(__assign({}, inPv.properties), inPv.measurements), customProperties));\n if (_autoTrackPageVisitTime) {\n _pageVisitTimeManager[_DYN_TRACK_PREVIOUS_PAGE_1 /* @min:%2etrackPreviousPageVisit */](inPv.name, inPv.uri);\n }\n } catch (e) {\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 37 /* _eInternalMessageId.TrackPVFailed */, \"trackPageView failed, page view will not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n };\n /**\r\n * Create a page view telemetry item and send it to the SDK pipeline through the core.track API\r\n * @param pageView - Page view item to be sent\r\n * @param properties - Custom properties (Part C) that a user can add to the telemetry item\r\n * @param systemProperties - System level properties (Part A) that a user can add to the telemetry item\r\n */\n _self[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */] = function (pageView, properties, systemProperties) {\n var doc = getDocument();\n if (doc) {\n pageView.refUri = pageView.refUri === undefined ? doc.referrer : pageView.refUri;\n }\n var perf = getPerformance();\n // Access the performance timing object\n var navigationEntries = perf && perf[_DYN_GET_ENTRIES_BY_TYPE /* @min:%2egetEntriesByType */] && perf[_DYN_GET_ENTRIES_BY_TYPE /* @min:%2egetEntriesByType */](\"navigation\");\n // Edge Case the navigation Entries may return an empty array and the timeOrigin is not supported on IE\n if (navigationEntries && navigationEntries[0] && !isUndefined(perf.timeOrigin)) {\n // Get the value of loadEventStart\n var loadEventStart = navigationEntries[0].loadEventStart;\n pageView[_DYN_START_TIME /* @min:%2estartTime */] = new Date(perf.timeOrigin + loadEventStart);\n } else {\n // calculate the start time manually\n var duration = (properties || pageView.properties || {})[_DYN_DURATION /* @min:%2eduration */] || 0;\n pageView[_DYN_START_TIME /* @min:%2estartTime */] = new Date(new Date().getTime() - duration);\n }\n var telemetryItem = createTelemetryItem(pageView, PageView[_DYN_DATA_TYPE /* @min:%2edataType */], PageView[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), properties, systemProperties);\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\n // reset ajaxes counter\n _trackAjaxAttempts = 0;\n };\n /**\r\n * @ignore INTERNAL ONLY\r\n * @param pageViewPerformance\r\n * @param properties\r\n */\n _self[_DYN_SEND_PAGE_VIEW_PERFO3 /* @min:%2esendPageViewPerformanceInternal */] = function (pageViewPerformance, properties, systemProperties) {\n var telemetryItem = createTelemetryItem(pageViewPerformance, PageViewPerformance[_DYN_DATA_TYPE /* @min:%2edataType */], PageViewPerformance[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), properties, systemProperties);\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\n };\n /**\r\n * Send browser performance metrics.\r\n * @param pageViewPerformance\r\n * @param customProperties\r\n */\n _self.trackPageViewPerformance = function (pageViewPerformance, customProperties) {\n var inPvp = pageViewPerformance || {};\n try {\n _pageViewPerformanceManager[_DYN_POPULATE_PAGE_VIEW_P4 /* @min:%2epopulatePageViewPerformanceEvent */](inPvp);\n _self[_DYN_SEND_PAGE_VIEW_PERFO3 /* @min:%2esendPageViewPerformanceInternal */](inPvp, customProperties);\n } catch (e) {\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 37 /* _eInternalMessageId.TrackPVFailed */, \"trackPageViewPerformance failed, page view will not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n };\n /**\r\n * Starts the timer for tracking a page load time. Use this instead of `trackPageView` if you want to control when the page view timer starts and stops,\r\n * but don't want to calculate the duration yourself. This method doesn't send any telemetry. Call `stopTrackPage` to log the end of the page view\r\n * and send the event.\r\n * @param name - A string that idenfities this item, unique within this HTML document. Defaults to the document title.\r\n */\n _self.startTrackPage = function (name) {\n try {\n if (typeof name !== \"string\") {\n var doc = getDocument();\n name = doc && doc.title || \"\";\n }\n _pageTracking.start(name);\n } catch (e) {\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 31 /* _eInternalMessageId.StartTrackFailed */, \"startTrackPage failed, page view may not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n };\n /**\r\n * Stops the timer that was started by calling `startTrackPage` and sends the pageview load time telemetry with the specified properties and measurements.\r\n * The duration of the page view will be the time between calling `startTrackPage` and `stopTrackPage`.\r\n * @param name The string you used as the name in startTrackPage. Defaults to the document title.\r\n * @param url String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.\r\n * @param properties map[string, string] - additional data used to filter pages and metrics in the portal. Defaults to empty.\r\n * @param measurements map[string, number] - metrics associated with this page, displayed in Metrics Explorer on the portal. Defaults to empty.\r\n */\n _self.stopTrackPage = function (name, url, properties, measurement) {\n try {\n if (typeof name !== \"string\") {\n var doc = getDocument();\n name = doc && doc.title || \"\";\n }\n if (typeof url !== \"string\") {\n var loc = getLocation();\n url = loc && loc[_DYN_HREF /* @min:%2ehref */] || \"\";\n }\n _pageTracking.stop(name, url, properties, measurement);\n if (_autoTrackPageVisitTime) {\n _pageVisitTimeManager[_DYN_TRACK_PREVIOUS_PAGE_1 /* @min:%2etrackPreviousPageVisit */](name, url);\n }\n } catch (e) {\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 32 /* _eInternalMessageId.StopTrackFailed */, \"stopTrackPage failed, page view will not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n };\n /**\r\n * @ignore INTERNAL ONLY\r\n * @param exception\r\n * @param properties\r\n * @param systemProperties\r\n */\n _self[_DYN_SEND_EXCEPTION_INTER5 /* @min:%2esendExceptionInternal */] = function (exception, customProperties, systemProperties) {\n // Adding additional edge cases to handle\n // - Not passing anything (null / undefined)\n var theError = exception && (exception[_DYN_EXCEPTION /* @min:%2eexception */] || exception[_DYN_ERROR /* @min:%2eerror */]) ||\n // - Handle someone calling trackException based of v1 API where the exception was the Error\n isError(exception) && exception ||\n // - Handles no error being defined and instead of creating a new Error() instance attempt to map so any stacktrace\n // is preserved and does not list ApplicationInsights code as the source\n {\n name: exception && typeof exception,\n message: exception || strNotSpecified\n };\n // If no exception object was passed assign to an empty object to avoid internal exceptions\n exception = exception || {};\n var exceptionPartB = new Exception(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), theError, exception.properties || customProperties, exception.measurements, exception.severityLevel, exception.id).toInterface();\n var telemetryItem = createTelemetryItem(exceptionPartB, Exception[_DYN_DATA_TYPE /* @min:%2edataType */], Exception[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), customProperties, systemProperties);\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\n };\n /**\r\n * Log an exception you have caught.\r\n *\r\n * @param exception - Object which contains exception to be sent\r\n * @param } customProperties Additional data used to filter pages and metrics in the portal. Defaults to empty.\r\n *\r\n * Any property of type double will be considered a measurement, and will be treated by Application Insights as a metric.\r\n * @memberof ApplicationInsights\r\n */\n _self.trackException = function (exception, customProperties) {\n if (exception && !exception[_DYN_EXCEPTION /* @min:%2eexception */] && exception[_DYN_ERROR /* @min:%2eerror */]) {\n exception[_DYN_EXCEPTION /* @min:%2eexception */] = exception[_DYN_ERROR /* @min:%2eerror */];\n }\n try {\n _self[_DYN_SEND_EXCEPTION_INTER5 /* @min:%2esendExceptionInternal */](exception, customProperties);\n } catch (e) {\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 35 /* _eInternalMessageId.TrackExceptionFailed */, \"trackException failed, exception will not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n };\n /**\r\n * @description Custom error handler for Application Insights Analytics\r\n * @param exception\r\n * @memberof ApplicationInsights\r\n */\n _self[_DYN__ONERROR /* @min:%2e_onerror */] = function (exception) {\n var error = exception && exception[_DYN_ERROR /* @min:%2eerror */];\n var evt = exception && exception.evt;\n try {\n if (!evt) {\n var _window = getWindow();\n if (_window) {\n evt = _window[strEvent];\n }\n }\n var url = exception && exception.url || (getDocument() || {}).URL;\n // If no error source is provided assume the default window.onerror handler\n var errorSrc = exception[_DYN_ERROR_SRC /* @min:%2eerrorSrc */] || \"window.onerror@\" + url + \":\" + (exception[_DYN_LINE_NUMBER /* @min:%2elineNumber */] || 0) + \":\" + (exception[_DYN_COLUMN_NUMBER /* @min:%2ecolumnNumber */] || 0);\n var properties = {\n errorSrc: errorSrc,\n url: url,\n lineNumber: exception[_DYN_LINE_NUMBER /* @min:%2elineNumber */] || 0,\n columnNumber: exception[_DYN_COLUMN_NUMBER /* @min:%2ecolumnNumber */] || 0,\n message: exception[_DYN_MESSAGE /* @min:%2emessage */]\n };\n if (isCrossOriginError(exception.message, exception.url, exception.lineNumber, exception.columnNumber, exception[_DYN_ERROR /* @min:%2eerror */])) {\n _sendCORSException(Exception[_DYN__CREATE_AUTO_EXCEPTI6 /* @min:%2eCreateAutoException */](\"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.\", url, exception[_DYN_LINE_NUMBER /* @min:%2elineNumber */] || 0, exception[_DYN_COLUMN_NUMBER /* @min:%2ecolumnNumber */] || 0, error, evt, null, errorSrc), properties);\n } else {\n if (!exception[_DYN_ERROR_SRC /* @min:%2eerrorSrc */]) {\n exception[_DYN_ERROR_SRC /* @min:%2eerrorSrc */] = errorSrc;\n }\n _self.trackException({\n exception: exception,\n severityLevel: 3 /* eSeverityLevel.Error */\n }, properties);\n }\n } catch (e) {\n var errorString = error ? error.name + \", \" + error[_DYN_MESSAGE /* @min:%2emessage */] : \"null\";\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 11 /* _eInternalMessageId.ExceptionWhileLoggingError */, \"_onError threw exception while logging error, error will not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e),\n errorString: errorString\n });\n }\n };\n _self[_DYN_ADD_TELEMETRY_INITIA7 /* @min:%2eaddTelemetryInitializer */] = function (telemetryInitializer) {\n if (_self[_DYN_CORE /* @min:%2ecore */]) {\n // Just add to the core\n return _self[_DYN_CORE /* @min:%2ecore */][_DYN_ADD_TELEMETRY_INITIA7 /* @min:%2eaddTelemetryInitializer */](telemetryInitializer);\n }\n // Handle \"pre-initialization\" telemetry initializers (for backward compatibility)\n if (!_preInitTelemetryInitializers) {\n _preInitTelemetryInitializers = [];\n }\n _preInitTelemetryInitializers.push(telemetryInitializer);\n };\n _self.initialize = function (config, core, extensions, pluginChain) {\n if (_self.isInitialized()) {\n return;\n }\n if (isNullOrUndefined(core)) {\n throwError(\"Error initializing\");\n }\n _base.initialize(config, core, extensions, pluginChain);\n try {\n _evtNamespace = mergeEvtNamespace(createUniqueNamespace(_self.identifier), core.evtNamespace && core.evtNamespace());\n if (_preInitTelemetryInitializers) {\n arrForEach(_preInitTelemetryInitializers, function (initializer) {\n core[_DYN_ADD_TELEMETRY_INITIA7 /* @min:%2eaddTelemetryInitializer */](initializer);\n });\n _preInitTelemetryInitializers = null;\n }\n _populateDefaults(config);\n _pageViewPerformanceManager = new PageViewPerformanceManager(_self[_DYN_CORE /* @min:%2ecore */]);\n _pageViewManager = new PageViewManager(_self, _extConfig.overridePageViewDuration, _self[_DYN_CORE /* @min:%2ecore */], _pageViewPerformanceManager);\n _pageVisitTimeManager = new PageVisitTimeManager(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), function (pageName, pageUrl, pageVisitTime) {\n return trackPageVisitTime(pageName, pageUrl, pageVisitTime);\n });\n _eventTracking = new Timing(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), \"trackEvent\");\n _eventTracking.action = function (name, url, duration, properties, measurements) {\n if (!properties) {\n properties = {};\n }\n if (!measurements) {\n measurements = {};\n }\n properties.duration = duration[_DYN_TO_STRING /* @min:%2etoString */]();\n _self.trackEvent({\n name: name,\n properties: properties,\n measurements: measurements\n });\n };\n // initialize page view timing\n _pageTracking = new Timing(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), \"trackPageView\");\n _pageTracking.action = function (name, url, duration, properties, measurements) {\n // duration must be a custom property in order for the collector to extract it\n if (isNullOrUndefined(properties)) {\n properties = {};\n }\n properties.duration = duration[_DYN_TO_STRING /* @min:%2etoString */]();\n var pageViewItem = {\n name: name,\n uri: url,\n properties: properties,\n measurements: measurements\n };\n _self[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */](pageViewItem, properties);\n };\n if (hasWindow()) {\n _updateExceptionTracking();\n _updateLocationChange();\n }\n } catch (e) {\n // resetting the initialized state because of failure\n _self.setInitialized(false);\n throw e;\n }\n };\n _self._doTeardown = function (unloadCtx, unloadState) {\n _pageViewManager && _pageViewManager.teardown(unloadCtx, unloadState);\n // Just register to remove all events associated with this namespace\n eventOff(window, null, null, _evtNamespace);\n _initDefaults();\n };\n function _populateDefaults(config) {\n var identifier = _self.identifier;\n var core = _self[_DYN_CORE /* @min:%2ecore */];\n _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](onConfigChange(config, function () {\n var ctx = createProcessTelemetryContext(null, config, core);\n _extConfig = ctx.getExtCfg(identifier, defaultValues);\n _autoTrackPageVisitTime = _extConfig[_DYN_AUTO_TRACK_PAGE_VISI9 /* @min:%2eautoTrackPageVisitTime */];\n if (config.storagePrefix) {\n utlSetStoragePrefix(config.storagePrefix);\n }\n _updateStorageUsage(_extConfig);\n // _updateBrowserLinkTracking\n _isBrowserLinkTrackingEnabled = _extConfig[_DYN_IS_BROWSER_LINK_TRAC10 /* @min:%2eisBrowserLinkTrackingEnabled */];\n _addDefaultTelemetryInitializers();\n }));\n }\n /**\r\n * Log a page visit time\r\n * @param pageName Name of page\r\n * @param pageVisitDuration Duration of visit to the page in milliseconds\r\n */\n function trackPageVisitTime(pageName, pageUrl, pageVisitTime) {\n var properties = {\n PageName: pageName,\n PageUrl: pageUrl\n };\n _self.trackMetric({\n name: \"PageVisitTime\",\n average: pageVisitTime,\n max: pageVisitTime,\n min: pageVisitTime,\n sampleCount: 1\n }, properties);\n }\n function _addDefaultTelemetryInitializers() {\n if (!_browserLinkInitializerAdded && _isBrowserLinkTrackingEnabled) {\n var browserLinkPaths_1 = [\"/browserLinkSignalR/\", \"/__browserLink/\"];\n var dropBrowserLinkRequests = function (envelope) {\n if (_isBrowserLinkTrackingEnabled && envelope.baseType === RemoteDependencyData[_DYN_DATA_TYPE /* @min:%2edataType */]) {\n var remoteData = envelope.baseData;\n if (remoteData) {\n for (var i = 0; i < browserLinkPaths_1[_DYN_LENGTH /* @min:%2elength */]; i++) {\n if (remoteData.target && strIndexOf(remoteData.target, browserLinkPaths_1[i]) >= 0) {\n return false;\n }\n }\n }\n }\n return true;\n };\n _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](_self[_DYN_ADD_TELEMETRY_INITIA7 /* @min:%2eaddTelemetryInitializer */](dropBrowserLinkRequests));\n _browserLinkInitializerAdded = true;\n }\n }\n function _sendCORSException(exception, properties) {\n var telemetryItem = createTelemetryItem(exception, Exception[_DYN_DATA_TYPE /* @min:%2edataType */], Exception[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), properties);\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\n }\n function _updateExceptionTracking() {\n var _window = getWindow();\n var locn = getLocation(true);\n _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](onConfigChange(_extConfig, function () {\n _disableExceptionTracking = _extConfig.disableExceptionTracking;\n if (!_disableExceptionTracking && !_autoExceptionInstrumented && !_extConfig.autoExceptionInstrumented) {\n // We want to enable exception auto collection and it has not been done so yet\n _addHook(InstrumentEvent(_window, \"onerror\", {\n ns: _evtNamespace,\n rsp: function (callDetails, message, url, lineNumber, columnNumber, error) {\n if (!_disableExceptionTracking && callDetails.rslt !== true) {\n _self[_DYN__ONERROR /* @min:%2e_onerror */](Exception[_DYN__CREATE_AUTO_EXCEPTI6 /* @min:%2eCreateAutoException */](message, url, lineNumber, columnNumber, error, callDetails.evt));\n }\n }\n }, false));\n _autoExceptionInstrumented = true;\n }\n }));\n _addUnhandledPromiseRejectionTracking(_window, locn);\n }\n function _updateLocationChange() {\n var win = getWindow();\n var locn = getLocation(true);\n _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](onConfigChange(_extConfig, function () {\n _enableAutoRouteTracking = _extConfig[_DYN_ENABLE_AUTO_ROUTE_TR11 /* @min:%2eenableAutoRouteTracking */] === true;\n /**\r\n * Create a custom \"locationchange\" event which is triggered each time the history object is changed\r\n */\n if (win && _enableAutoRouteTracking && !_historyListenerAdded && hasHistory()) {\n var _history = getHistory();\n if (isFunction(_history.pushState) && isFunction(_history.replaceState) && typeof Event !== strUndefined) {\n _addHistoryListener(win, _history, locn);\n }\n }\n }));\n }\n function _getDistributedTraceCtx() {\n var distributedTraceCtx = null;\n if (_self[_DYN_CORE /* @min:%2ecore */] && _self[_DYN_CORE /* @min:%2ecore */].getTraceCtx) {\n distributedTraceCtx = _self[_DYN_CORE /* @min:%2ecore */].getTraceCtx(false);\n }\n if (!distributedTraceCtx) {\n // Fallback when using an older Core and PropertiesPlugin\n var properties = _self[_DYN_CORE /* @min:%2ecore */].getPlugin(PropertiesPluginIdentifier);\n if (properties) {\n var context = properties.plugin.context;\n if (context) {\n distributedTraceCtx = createDistributedTraceContextFromTrace(context.telemetryTrace);\n }\n }\n }\n return distributedTraceCtx;\n }\n /**\r\n * Create a custom \"locationchange\" event which is triggered each time the history object is changed\r\n */\n function _addHistoryListener(win, history, locn) {\n if (_historyListenerAdded) {\n return;\n }\n // Name Prefix is only referenced during the initial initialization and cannot be changed afterwards\n var namePrefix = _extConfig.namePrefix || \"\";\n function _popstateHandler() {\n if (_enableAutoRouteTracking) {\n _dispatchEvent(win, createDomEvent(namePrefix + \"locationchange\"));\n }\n }\n function _locationChangeHandler() {\n // We always track the changes (if the handler is installed) to handle the feature being disabled between location changes\n if (_currUri) {\n _prevUri = _currUri;\n _currUri = locn && locn[_DYN_HREF /* @min:%2ehref */] || \"\";\n } else {\n _currUri = locn && locn[_DYN_HREF /* @min:%2ehref */] || \"\";\n }\n if (_enableAutoRouteTracking) {\n var distributedTraceCtx = _getDistributedTraceCtx();\n if (distributedTraceCtx) {\n distributedTraceCtx.setTraceId(generateW3CId());\n var traceLocationName = \"_unknown_\";\n if (locn && locn.pathname) {\n traceLocationName = locn.pathname + (locn.hash || \"\");\n }\n // This populates the ai.operation.name which has a maximum size of 1024 so we need to sanitize it\n distributedTraceCtx.setName(dataSanitizeString(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), traceLocationName));\n }\n scheduleTimeout(function (uri) {\n // todo: override start time so that it is not affected by autoRoutePVDelay\n _self[_DYN_TRACK_PAGE_VIEW /* @min:%2etrackPageView */]({\n refUri: uri,\n properties: {\n duration: 0\n }\n }); // SPA route change loading durations are undefined, so send 0\n }.bind(_self, _prevUri), _self.autoRoutePVDelay);\n }\n }\n _addHook(InstrumentEvent(history, \"pushState\", {\n ns: _evtNamespace,\n rsp: function () {\n if (_enableAutoRouteTracking) {\n _dispatchEvent(win, createDomEvent(namePrefix + \"pushState\"));\n _dispatchEvent(win, createDomEvent(namePrefix + \"locationchange\"));\n }\n }\n }, true));\n _addHook(InstrumentEvent(history, \"replaceState\", {\n ns: _evtNamespace,\n rsp: function () {\n if (_enableAutoRouteTracking) {\n _dispatchEvent(win, createDomEvent(namePrefix + \"replaceState\"));\n _dispatchEvent(win, createDomEvent(namePrefix + \"locationchange\"));\n }\n }\n }, true));\n eventOn(win, namePrefix + \"popstate\", _popstateHandler, _evtNamespace);\n eventOn(win, namePrefix + \"locationchange\", _locationChangeHandler, _evtNamespace);\n _historyListenerAdded = true;\n }\n function _addUnhandledPromiseRejectionTracking(_window, _location) {\n _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](onConfigChange(_extConfig, function () {\n _enableUnhandledPromiseRejectionTracking = _extConfig[_DYN_ENABLE_UNHANDLED_PRO12 /* @min:%2eenableUnhandledPromiseRejectionTracking */] === true;\n _autoExceptionInstrumented = _autoExceptionInstrumented || _extConfig[_DYN_AUTO_UNHANDLED_PROMI13 /* @min:%2eautoUnhandledPromiseInstrumented */];\n if (_enableUnhandledPromiseRejectionTracking && !_autoUnhandledPromiseInstrumented) {\n // We want to enable exception auto collection and it has not been done so yet\n _addHook(InstrumentEvent(_window, \"onunhandledrejection\", {\n ns: _evtNamespace,\n rsp: function (callDetails, error) {\n if (_enableUnhandledPromiseRejectionTracking && callDetails.rslt !== true) {\n // handled could be typeof function\n _self[_DYN__ONERROR /* @min:%2e_onerror */](Exception[_DYN__CREATE_AUTO_EXCEPTI6 /* @min:%2eCreateAutoException */](_getReason(error), _location ? _location[_DYN_HREF /* @min:%2ehref */] : \"\", 0, 0, error, callDetails.evt));\n }\n }\n }, false));\n _extConfig[_DYN_AUTO_UNHANDLED_PROMI13 /* @min:%2eautoUnhandledPromiseInstrumented */] = _autoUnhandledPromiseInstrumented = true;\n }\n }));\n }\n /**\r\n * This method will throw exceptions in debug mode or attempt to log the error as a console warning.\r\n * @param severity - {eLoggingSeverity} - The severity of the log message\r\n * @param msgId - {_eInternalLogMessage} - The log message.\r\n */\n function _throwInternal(severity, msgId, msg, properties, isUserAct) {\n _self[_DYN_DIAG_LOG /* @min:%2ediagLog */]().throwInternal(severity, msgId, msg, properties, isUserAct);\n }\n function _initDefaults() {\n _eventTracking = null;\n _pageTracking = null;\n _pageViewManager = null;\n _pageViewPerformanceManager = null;\n _pageVisitTimeManager = null;\n _preInitTelemetryInitializers = null;\n _isBrowserLinkTrackingEnabled = false;\n _browserLinkInitializerAdded = false;\n _enableAutoRouteTracking = false;\n _historyListenerAdded = false;\n _disableExceptionTracking = false;\n _autoExceptionInstrumented = false;\n _enableUnhandledPromiseRejectionTracking = false;\n _autoUnhandledPromiseInstrumented = false;\n _autoTrackPageVisitTime = false;\n // Counts number of trackAjax invocations.\n // By default we only monitor X ajax call per view to avoid too much load.\n // Default value is set in config.\n // This counter keeps increasing even after the limit is reached.\n _trackAjaxAttempts = 0;\n // array with max length of 2 that store current url and previous url for SPA page route change trackPageview use.\n var location = getLocation(true);\n _prevUri = location && location[_DYN_HREF /* @min:%2ehref */] || \"\";\n _currUri = null;\n _evtNamespace = null;\n _extConfig = null;\n // Define _self.config\n objDefine(_self, \"config\", {\n g: function () {\n return _extConfig;\n }\n });\n }\n // For backward compatibility\n objDefine(_self, \"_pageViewManager\", {\n g: function () {\n return _pageViewManager;\n }\n });\n objDefine(_self, \"_pageViewPerformanceManager\", {\n g: function () {\n return _pageViewPerformanceManager;\n }\n });\n objDefine(_self, \"_pageVisitTimeManager\", {\n g: function () {\n return _pageVisitTimeManager;\n }\n });\n objDefine(_self, \"_evtNamespace\", {\n g: function () {\n return \".\" + _evtNamespace;\n }\n });\n });\n return _this;\n }\n // Removed Stub for AnalyticsPlugin.prototype.getCookieMgr.\n // Removed Stub for AnalyticsPlugin.prototype.processTelemetry.\n // Removed Stub for AnalyticsPlugin.prototype.trackEvent.\n // Removed Stub for AnalyticsPlugin.prototype.startTrackEvent.\n // Removed Stub for AnalyticsPlugin.prototype.stopTrackEvent.\n // Removed Stub for AnalyticsPlugin.prototype.trackTrace.\n // Removed Stub for AnalyticsPlugin.prototype.trackMetric.\n // Removed Stub for AnalyticsPlugin.prototype.trackPageView.\n // Removed Stub for AnalyticsPlugin.prototype.sendPageViewInternal.\n // Removed Stub for AnalyticsPlugin.prototype.sendPageViewPerformanceInternal.\n // Removed Stub for AnalyticsPlugin.prototype.trackPageViewPerformance.\n // Removed Stub for AnalyticsPlugin.prototype.startTrackPage.\n // Removed Stub for AnalyticsPlugin.prototype.stopTrackPage.\n // Removed Stub for AnalyticsPlugin.prototype.sendExceptionInternal.\n // Removed Stub for AnalyticsPlugin.prototype.trackException.\n // Removed Stub for AnalyticsPlugin.prototype._onerror.\n // Removed Stub for AnalyticsPlugin.prototype.addTelemetryInitializer.\n // Removed Stub for AnalyticsPlugin.prototype.initialize.\n AnalyticsPlugin.Version = '3.0.3'; // Not currently used anywhere\n return AnalyticsPlugin;\n}(BaseTelemetryPlugin);\nexport { AnalyticsPlugin };\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 0.0.2\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// @skip-file-minify\n// ##############################################################\n// AUTO GENERATED FILE: This file is Auto Generated during build.\n// ##############################################################\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nexport var _DYN_FEATURE_OPT_IN = \"featureOptIn\"; // Count: 4\nexport var _DYN_ON_CFG_CHANGE_RECEIV0 = \"onCfgChangeReceive\"; // Count: 2\nexport var _DYN_NON_OVERRIDE_CONFIGS = \"nonOverrideConfigs\"; // Count: 2\nexport var _DYN_SCHEDULE_FETCH_TIMEO1 = \"scheduleFetchTimeout\"; // Count: 2\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 0.0.2\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { isNullOrUndefined, isObject, objExtend, objForEachKey, setValueByKey } from \"@nevware21/ts-utils\";\nimport { _DYN_FEATURE_OPT_IN } from \"./__DynamicConstants\";\n/**\r\n * Delete a config key in the given cfg, if the config key exists in nonOverrideConfigs and its value is set to true\r\n * @param cfg cfg to modify\r\n * @param nonOverrideConfigs nonOverrideConfigs\r\n * @param curLevel cur config level, starting at 0\r\n * @param maxLevel max config level\r\n * @returns new copy of modified configs\r\n */\nexport function replaceByNonOverrideCfg(cfg, nonOverrideConfigs, curLevel, maxLevel) {\n try {\n var exceedMaxLevel = curLevel > maxLevel;\n if (exceedMaxLevel) {\n cfg = null;\n }\n var curCfg_1 = curLevel == 0 ? objExtend({}, cfg) : cfg; // only copy cfg at the begining level\n if (curCfg_1 && nonOverrideConfigs && !exceedMaxLevel) {\n objForEachKey(curCfg_1, function (key) {\n var nonOverrideVal = nonOverrideConfigs[key];\n if (!!nonOverrideVal) {\n if (isObject(curCfg_1[key]) && isObject(nonOverrideVal)) {\n curCfg_1[key] = replaceByNonOverrideCfg(curCfg_1[key], nonOverrideVal, ++curLevel, maxLevel);\n } else {\n delete curCfg_1[key];\n }\n }\n });\n }\n return curCfg_1;\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n // if errors happen, do nothing\n return cfg;\n}\n// CDN Mode, value = B (CDN value = B)\n// |--------------------------------------------------------------------------|-----------|\n// | | none | disabled | enabled | forceOn | forceOff |\n// | ------------------ | ----------- | ----------- | ----------- | --------- | --------- |\n// | User Mode, value = A | none | none | disabled | enabled | enabled | disabled |\n// (user Value = A) | disabled | disabled | disabled | disabled | enabled | disabled |\n// | enabled | enabled | disabled | enabled | enabled | disabled |\n// | none(blockCdn) | none | none | none | none | none |\n// | disabled(blockCdn) | disabled | disabled | disabled | disabled | disabled |\n// | enabled(blockCdn) | enabled | enabled | enabled | enabled | enabled |\n// This matrix identifies how feature based overrides are selected (if present)\n// cdn Mode (cdn Value = B)\n// |---------------------------------------------------------------------------|\n// | | none | disabled | enabled | forceOn | forceOff |\n// | ------------------ | ---------| ---------| ---------| ---------|----------|\n// | User Mode | none | A | A | A || B | B || A | B || A |\n// (user Value = A) | disabled | A | A | A | B || A | B || A |\n// | enabled | A | A | A || B | B || A | B || A |\n// | none(blockCdn) | A | A | A | A | A |\n// | disabled(blockCdn) | A | A | A | A | A |\n// | enabled(blockCdn) | A | A | A | A | A |\n// Note:\n// Where the \"value\" is an object (map) of encoded key/values which will be used to override the real configuration\n// A = either the user supplied enable/disable value (via the `config.featureOptIn[name]`) or if not defined by the user the SDK defaults of the same.\n// B = The enable/disable value obtained from the CDN for the named feature\n// These are evaluated based on the above matrix to either\n// - A (Always the user/sdk value)\n// - B (Always the value from the CDN)\n// - A || B (If A is null or undefined use the value from the CDN (B) otherwise A)\n// - B || A (If B is null or undefined use the user/SDK value otherwise use the value from the CDN)\n//\n// The result of the value may also be null / undefined, which means there are no overrides to apply when the feature is enabled\nvar F = \"featureOptIn.\";\nvar M = \".mode\";\nvar ON = \".onCfg\";\nvar OFF = \".offCfg\";\nexport function resolveCdnFeatureCfg(field, cdnCfg, userOptInDetails) {\n var _a;\n // cdn conifg value\n if (!cdnCfg || !cdnCfg.enabled) {\n return null;\n }\n var cdnFt = (cdnCfg[_DYN_FEATURE_OPT_IN /* @min:%2efeatureOptIn */] || {})[field] || {\n mode: 1 /* CdnFeatureMode.none */\n };\n var cdnM = cdnFt.mode;\n var cdnOnV = cdnFt.onCfg;\n var cdnOffV = cdnFt.offCfg;\n var userFt = (userOptInDetails || {})[field] || {\n mode: 2 /* FeatureOptInMode.disable */\n }; // default user mode is disable\n var userM = userFt.mode;\n var userOnV = userFt.onCfg;\n var userOffV = userFt.offCfg;\n var blockCdn = !!userFt.blockCdnCfg;\n var mFld = F + field + M;\n var onFld = F + field + ON;\n var offFld = F + field + OFF;\n var mode = userM;\n var onV = userOnV;\n var offV = userOffV;\n if (!blockCdn) {\n if (cdnM === 4 /* CdnFeatureMode.forceOn */ || cdnM === 5 /* CdnFeatureMode.forceOff */) {\n mode = cdnM == 4 /* CdnFeatureMode.forceOn */ ? 3 /* FeatureOptInMode.enable */ : 2 /* FeatureOptInMode.disable */;\n onV = cdnOnV || userOnV;\n offV = cdnOffV || userOffV;\n } else if (cdnM === 2 /* CdnFeatureMode.disable */ || userM === 2 /* FeatureOptInMode.disable */) {\n mode = 2 /* FeatureOptInMode.disable */;\n onV = userOnV || cdnOnV;\n offV = userOffV || cdnOffV;\n } else if (cdnM === 3 /* CdnFeatureMode.enable */) {\n mode = 3 /* FeatureOptInMode.enable */;\n onV = userOnV || cdnOnV;\n offV = userOffV || cdnOffV;\n } else if (cdnM === 1 /* CdnFeatureMode.none */ && userM === 1 /* FeatureOptInMode.none */) {\n mode = 1 /* FeatureOptInMode.none */;\n }\n }\n return _a = {}, _a[mFld] = mode, _a[onFld] = onV, _a[offFld] = offV, _a;\n}\n// helper function to get cdn config with opt-in features\nexport function applyCdnfeatureCfg(cdnCfg, core) {\n try {\n if (!cdnCfg || !cdnCfg.enabled) {\n return null;\n }\n if (!cdnCfg[_DYN_FEATURE_OPT_IN /* @min:%2efeatureOptIn */]) {\n return cdnCfg.config;\n }\n var optInMap = cdnCfg[_DYN_FEATURE_OPT_IN /* @min:%2efeatureOptIn */];\n var cdnConfig_1 = cdnCfg.config || {};\n objForEachKey(optInMap, function (key) {\n var featureVal = resolveCdnFeatureCfg(key, cdnCfg, core.config[_DYN_FEATURE_OPT_IN /* @min:%2efeatureOptIn */]);\n if (!isNullOrUndefined(featureVal)) {\n objForEachKey(featureVal, function (config, val) {\n setValueByKey(cdnConfig_1, config, val);\n });\n _overrideCdnCfgByFeature(key, featureVal, cdnConfig_1);\n }\n });\n return cdnConfig_1;\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n return null;\n}\nfunction _overrideCdnCfgByFeature(field, ftVal, config) {\n var mode = ftVal[F + field + M];\n var val = ftVal[F + field + ON];\n var dVal = ftVal[F + field + OFF];\n var target = null;\n if (mode === 3 /* FeatureOptInMode.enable */) {\n target = val;\n }\n if (mode === 2 /* FeatureOptInMode.disable */) {\n target = dVal;\n }\n if (target) {\n objForEachKey(target, function (key, cfg) {\n setValueByKey(config, key, cfg);\n });\n }\n}\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 0.0.2\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n/**\r\n* CfgSyncPlugin.ts\r\n* @copyright Microsoft 2018\r\n*/\nvar _a;\nimport { __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { BaseTelemetryPlugin, createProcessTelemetryContext, createUniqueNamespace, eventOff, eventOn, getGlobal, getJSON, isFetchSupported, isXhrSupported, mergeEvtNamespace, onConfigChange, sendCustomEvent } from \"@microsoft/applicationinsights-core-js\";\nimport { doAwaitResponse } from \"@nevware21/ts-async\";\nimport { isFunction, isNullOrUndefined, isPlainObject, objDeepFreeze, scheduleTimeout } from \"@nevware21/ts-utils\";\nimport { applyCdnfeatureCfg, replaceByNonOverrideCfg } from \"./CfgSyncHelperFuncs\";\nimport { _DYN_NON_OVERRIDE_CONFIGS, _DYN_ON_CFG_CHANGE_RECEIV0, _DYN_SCHEDULE_FETCH_TIMEO1 } from \"./__DynamicConstants\";\nvar EVENT_NAME = \"ai_cfgsync\";\nvar STR_GET_METHOD = \"GET\";\nvar FETCH_TIMEOUT = 1800000; // 30 minutes\nvar udfVal = undefined;\nvar defaultNonOverrideCfg = {\n instrumentationKey: true,\n connectionString: true,\n endpointUrl: true\n};\nvar _defaultConfig = objDeepFreeze((_a = {\n syncMode: 1 /* ICfgSyncMode.Broadcast */,\n blkCdnCfg: udfVal,\n customEvtName: udfVal,\n cfgUrl: udfVal,\n overrideSyncFn: udfVal,\n overrideFetchFn: udfVal\n}, _a[_DYN_ON_CFG_CHANGE_RECEIV0 /* @min:onCfgChangeReceive */] = udfVal, _a[_DYN_SCHEDULE_FETCH_TIMEO1 /* @min:scheduleFetchTimeout */] = FETCH_TIMEOUT, _a[_DYN_NON_OVERRIDE_CONFIGS /* @min:nonOverrideConfigs */] = defaultNonOverrideCfg, _a));\nvar CfgSyncPlugin = /** @class */function (_super) {\n __extends(CfgSyncPlugin, _super);\n function CfgSyncPlugin() {\n var _this = _super.call(this) || this;\n _this.priority = 198;\n _this.identifier = \"AppInsightsCfgSyncPlugin\";\n var _extensionConfig;\n var _mainConfig; // throttle config should be wrapped in IConfiguration\n var _evtName;\n var _evtNamespace;\n var _cfgUrl;\n var _timeoutHandle;\n var _receiveChanges;\n var _broadcastChanges;\n var _blkCdnCfg;\n var _fetchTimeout;\n var _retryCnt;\n var _onCfgChangeReceive;\n var _nonOverrideConfigs;\n var _fetchFn;\n var _overrideFetchFn;\n var _overrideSyncFn;\n var _paused = false;\n dynamicProto(CfgSyncPlugin, _this, function (_self, _base) {\n _initDefaults();\n _self.initialize = function (config, core, extensions, pluginChain) {\n _base.initialize(config, core, extensions, pluginChain);\n _evtNamespace = mergeEvtNamespace(createUniqueNamespace(_self.identifier), core.evtNamespace && core.evtNamespace());\n _populateDefaults(config);\n };\n _self.getCfg = function () {\n return _mainConfig;\n };\n _self.pause = function () {\n _paused = true;\n _clearScheduledTimer();\n };\n _self.resume = function () {\n _paused = false;\n _setupTimer();\n };\n // used for V2 to manaully trigger config udpate\n _self.setCfg = function (config) {\n return _setCfg(config);\n };\n _self.sync = function (customDetails) {\n return _sendCfgsyncEvents(customDetails);\n };\n _self.updateEventListenerName = function (eventName) {\n return _updateEventListenerName(eventName);\n };\n _self._doTeardown = function (unloadCtx, unloadState) {\n _eventOff();\n _clearScheduledTimer();\n _initDefaults();\n };\n _self[\"_getDbgPlgTargets\"] = function () {\n return [_broadcastChanges, _receiveChanges, _evtName, _blkCdnCfg];\n };\n function _initDefaults() {\n _mainConfig = null;\n _evtName = null;\n _evtNamespace = null;\n _cfgUrl = null;\n _receiveChanges = null;\n _broadcastChanges = null;\n _nonOverrideConfigs = null;\n _timeoutHandle = null;\n _fetchTimeout = null;\n _retryCnt = null;\n _blkCdnCfg = null;\n _overrideFetchFn = null;\n _overrideSyncFn = null;\n _onCfgChangeReceive = null;\n }\n function _populateDefaults(config) {\n var identifier = _self.identifier;\n var core = _self.core;\n _self._addHook(onConfigChange(config, function () {\n var ctx = createProcessTelemetryContext(null, config, core);\n _extensionConfig = ctx.getExtCfg(identifier, _defaultConfig);\n var preBlkCdn = _blkCdnCfg;\n _blkCdnCfg = !!_extensionConfig.blkCdnCfg;\n // avoid initial call\n if (!isNullOrUndefined(preBlkCdn) && preBlkCdn !== _blkCdnCfg) {\n if (!_blkCdnCfg && _cfgUrl) {\n _fetchFn && _fetchFn(_cfgUrl, _onFetchComplete, _broadcastChanges);\n } else {\n _clearScheduledTimer();\n }\n }\n if (isNullOrUndefined(_receiveChanges)) {\n _receiveChanges = _extensionConfig.syncMode === 2 /* ICfgSyncMode.Receive */;\n }\n if (isNullOrUndefined(_broadcastChanges)) {\n _broadcastChanges = _extensionConfig.syncMode === 1 /* ICfgSyncMode.Broadcast */;\n }\n var newEvtName = _extensionConfig.customEvtName || EVENT_NAME;\n if (_evtName !== newEvtName) {\n if (_receiveChanges) {\n _updateEventListenerName(newEvtName);\n } else {\n _eventOff();\n _evtName = newEvtName;\n }\n }\n if (isNullOrUndefined(_cfgUrl)) {\n _cfgUrl = _extensionConfig.cfgUrl;\n }\n // if cfgUrl is set, we will ignore core config change\n if (!_cfgUrl) {\n _mainConfig = config;\n if (_broadcastChanges) {\n _sendCfgsyncEvents();\n }\n }\n }));\n _overrideSyncFn = _extensionConfig.overrideSyncFn;\n _overrideFetchFn = _extensionConfig.overrideFetchFn;\n _onCfgChangeReceive = _extensionConfig[_DYN_ON_CFG_CHANGE_RECEIV0 /* @min:%2eonCfgChangeReceive */];\n _nonOverrideConfigs = _extensionConfig[_DYN_NON_OVERRIDE_CONFIGS /* @min:%2enonOverrideConfigs */];\n _fetchTimeout = _extensionConfig[_DYN_SCHEDULE_FETCH_TIMEO1 /* @min:%2escheduleFetchTimeout */];\n _fetchFn = _getFetchFnInterface();\n _retryCnt = 0;\n // NOT support cfgURL change to avoid mutiple fetch calls\n if (_cfgUrl && !_blkCdnCfg) {\n _fetchFn && _fetchFn(_cfgUrl, _onFetchComplete, _broadcastChanges);\n }\n }\n function _setCfg(config, isAutoSync) {\n if (config) {\n _mainConfig = config;\n if (!!isAutoSync && !_paused) {\n return _sendCfgsyncEvents();\n }\n if (_receiveChanges && !_paused) {\n _self.core.updateCfg(config);\n return true;\n }\n }\n return false;\n }\n function _eventOff() {\n try {\n var global_1 = getGlobal();\n if (global_1) {\n eventOff(global_1, null, null, _evtNamespace);\n }\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n }\n function _sendCfgsyncEvents(customDetails) {\n try {\n if (!!_overrideSyncFn && isFunction(_overrideSyncFn)) {\n return _overrideSyncFn(_mainConfig, customDetails);\n }\n return sendCustomEvent(_evtName, _mainConfig, customDetails);\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n return false;\n }\n function _updateEventListenerName(name) {\n try {\n _eventOff();\n if (name) {\n _evtName = name;\n _addEventListener();\n }\n return true;\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n return false;\n }\n function _getFetchFnInterface() {\n var _fetchFn = _overrideFetchFn;\n if (isNullOrUndefined(_fetchFn)) {\n if (isFetchSupported()) {\n _fetchFn = _fetchSender;\n } else if (isXhrSupported()) {\n _fetchFn = _xhrSender;\n }\n }\n return _fetchFn;\n }\n function _fetchSender(url, oncomplete, isAutoSync) {\n var global = getGlobal();\n var fetchFn = global && global.fetch || null;\n if (url && fetchFn && isFunction(fetchFn)) {\n try {\n var init = {\n method: STR_GET_METHOD\n };\n var request = new Request(url, init);\n doAwaitResponse(fetch(request), function (result) {\n var response = result.value;\n if (!result.rejected) {\n if (response.ok) {\n doAwaitResponse(response.text(), function (res) {\n _doOnComplete(oncomplete, response.status, res.value, isAutoSync);\n });\n } else {\n _doOnComplete(oncomplete, response.status, null, isAutoSync);\n }\n } else {\n _doOnComplete(oncomplete, 400);\n }\n });\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n }\n }\n function _xhrSender(url, oncomplete, isAutoSync) {\n try {\n var xhr_1 = new XMLHttpRequest();\n xhr_1.open(STR_GET_METHOD, url);\n xhr_1.onreadystatechange = function () {\n if (xhr_1.readyState === XMLHttpRequest.DONE) {\n _doOnComplete(oncomplete, xhr_1.status, xhr_1.responseText, isAutoSync);\n }\n };\n xhr_1.onerror = function () {\n _doOnComplete(oncomplete, 400);\n };\n xhr_1.ontimeout = function () {\n _doOnComplete(oncomplete, 400);\n };\n xhr_1.send();\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n }\n function _onFetchComplete(status, response, isAutoSync) {\n try {\n if (status >= 200 && status < 400 && response) {\n _retryCnt = 0; // any successful response will reset retry count to 0\n var JSON_1 = getJSON();\n if (JSON_1) {\n var cdnCfg = JSON_1.parse(response); //comments are not allowed\n var cfg = applyCdnfeatureCfg(cdnCfg, _self.core);\n cfg && _setCfg(cfg, isAutoSync);\n }\n } else {\n _retryCnt++;\n }\n if (_retryCnt < 3) {\n _setupTimer();\n }\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n }\n function _doOnComplete(oncomplete, status, response, isAutoSync) {\n try {\n oncomplete(status, response, isAutoSync);\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n }\n function _addEventListener() {\n if (_receiveChanges) {\n var global_2 = getGlobal();\n if (global_2) {\n try {\n eventOn(global_2, _evtName, function (event) {\n // TODO: add more validation here\n // may include a \"name\" or some other features to check\n var cfgEvent = event && event.detail;\n if (_onCfgChangeReceive && cfgEvent) {\n _onCfgChangeReceive(cfgEvent);\n } else {\n var cfg = cfgEvent && cfgEvent.cfg;\n var newCfg = cfg && isPlainObject(cfg) && _replaceTartgetByKeys(cfg);\n newCfg && _setCfg(newCfg);\n }\n }, _evtNamespace, true);\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n }\n }\n }\n // 4 levels\n function _replaceTartgetByKeys(cfg, level) {\n var _cfg = null;\n try {\n if (cfg) {\n _cfg = replaceByNonOverrideCfg(cfg, _nonOverrideConfigs, 0, 5);\n }\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n return _cfg;\n }\n /**\r\n * Sets up the timer which triggers fetching cdn every 30mins after inital call\r\n */\n function _setupTimer() {\n if (!_timeoutHandle && _fetchTimeout) {\n _timeoutHandle = scheduleTimeout(function () {\n _timeoutHandle = null;\n _fetchFn(_cfgUrl, _onFetchComplete, _broadcastChanges);\n }, _fetchTimeout);\n _timeoutHandle.unref();\n }\n }\n function _clearScheduledTimer() {\n _timeoutHandle && _timeoutHandle.cancel();\n _timeoutHandle = null;\n _retryCnt = 0;\n }\n _self.processTelemetry = function (env, itemCtx) {\n _self.processNext(env, itemCtx);\n };\n });\n return _this;\n }\n // Removed Stub for CfgSyncPlugin.prototype.initialize.\n // Removed Stub for CfgSyncPlugin.prototype.getCfg.\n // Removed Stub for CfgSyncPlugin.prototype.setCfg.\n // Removed Stub for CfgSyncPlugin.prototype.sync.\n // Removed Stub for CfgSyncPlugin.prototype.updateEventListenerName.\n // Removed Stub for CfgSyncPlugin.prototype.pause.\n // Removed Stub for CfgSyncPlugin.prototype.resume.\n //// Removed Stub for CfgSyncPlugin.prototype.processTelemetry.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n CfgSyncPlugin.__ieDyn = 1;\n return CfgSyncPlugin;\n}(BaseTelemetryPlugin);\nexport { CfgSyncPlugin };\n","/*\n * Application Insights JavaScript SDK - Channel, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// ###################################################################################################################################################\n// Note: DON'T Export these const from the package as we are still targeting IE/ES5 this will export a mutable variables that someone could change ###\n// ###################################################################################################################################################\n// Generally you should only put values that are used more than 2 times and then only if not already exposed as a constant (such as SdkCoreNames)\n// as when using \"short\" named values from here they will be will be minified smaller than the SdkCoreNames[eSdkCoreNames.xxxx] value.\nexport var STR_DURATION = \"duration\";\n","/*\n * Application Insights JavaScript SDK - Channel, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// @skip-file-minify\n// ##############################################################\n// AUTO GENERATED FILE: This file is Auto Generated during build.\n// ##############################################################\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nexport var _DYN_TAGS = \"tags\"; // Count: 17\nexport var _DYN_DEVICE_TYPE = \"deviceType\"; // Count: 3\nexport var _DYN_DATA = \"data\"; // Count: 13\nexport var _DYN_NAME = \"name\"; // Count: 8\nexport var _DYN_TRACE_ID = \"traceID\"; // Count: 5\nexport var _DYN_LENGTH = \"length\"; // Count: 36\nexport var _DYN_STRINGIFY = \"stringify\"; // Count: 5\nexport var _DYN_MEASUREMENTS = \"measurements\"; // Count: 7\nexport var _DYN_DATA_TYPE = \"dataType\"; // Count: 10\nexport var _DYN_ENVELOPE_TYPE = \"envelopeType\"; // Count: 7\nexport var _DYN_TO_STRING = \"toString\"; // Count: 7\nexport var _DYN_ON_LINE = \"onLine\"; // Count: 4\nexport var _DYN_IS_ONLINE = \"isOnline\"; // Count: 3\nexport var _DYN__GET = \"_get\"; // Count: 5\nexport var _DYN_ENQUEUE = \"enqueue\"; // Count: 7\nexport var _DYN_COUNT = \"count\"; // Count: 6\nexport var _DYN_EVENTS_LIMIT_IN_MEM = \"eventsLimitInMem\"; // Count: 2\nexport var _DYN_PUSH = \"push\"; // Count: 6\nexport var _DYN_EMIT_LINE_DELIMITED_0 = \"emitLineDelimitedJson\"; // Count: 3\nexport var _DYN_CLEAR = \"clear\"; // Count: 7\nexport var _DYN_BATCH_PAYLOADS = \"batchPayloads\"; // Count: 5\nexport var _DYN_CREATE_NEW = \"createNew\"; // Count: 3\nexport var _DYN_MARK_AS_SENT = \"markAsSent\"; // Count: 7\nexport var _DYN_CLEAR_SENT = \"clearSent\"; // Count: 5\nexport var _DYN_BUFFER_OVERRIDE = \"bufferOverride\"; // Count: 3\nexport var _DYN__BUFFER__KEY = \"BUFFER_KEY\"; // Count: 5\nexport var _DYN__SENT__BUFFER__KEY = \"SENT_BUFFER_KEY\"; // Count: 8\nexport var _DYN__MAX__BUFFER__SIZE = \"MAX_BUFFER_SIZE\"; // Count: 5\nexport var _DYN_TRIGGER_SEND = \"triggerSend\"; // Count: 5\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 16\nexport var _DYN__SENDER = \"_sender\"; // Count: 5\nexport var _DYN_CUSTOM_HEADERS = \"customHeaders\"; // Count: 3\nexport var _DYN_MAX_BATCH_SIZE_IN_BY1 = \"maxBatchSizeInBytes\"; // Count: 2\nexport var _DYN_ONUNLOAD_DISABLE_BEA2 = \"onunloadDisableBeacon\"; // Count: 2\nexport var _DYN_IS_BEACON_API_DISABL3 = \"isBeaconApiDisabled\"; // Count: 3\nexport var _DYN_ENABLE_SESSION_STORA4 = \"enableSessionStorageBuffer\"; // Count: 2\nexport var _DYN__BUFFER = \"_buffer\"; // Count: 11\nexport var _DYN_INSTRUMENTATION_KEY = \"instrumentationKey\"; // Count: 2\nexport var _DYN_DISABLE_XHR = \"disableXhr\"; // Count: 5\nexport var _DYN_ONUNLOAD_DISABLE_FET5 = \"onunloadDisableFetch\"; // Count: 2\nexport var _DYN_CONVERT_UNDEFINED = \"convertUndefined\"; // Count: 2\nexport var _DYN_MAX_BATCH_INTERVAL = \"maxBatchInterval\"; // Count: 2\nexport var _DYN_BASE_TYPE = \"baseType\"; // Count: 4\nexport var _DYN_SAMPLE_RATE = \"sampleRate\"; // Count: 4\nexport var _DYN__XHR_READY_STATE_CHA6 = \"_xhrReadyStateChange\"; // Count: 2\nexport var _DYN__ON_ERROR = \"_onError\"; // Count: 11\nexport var _DYN__ON_PARTIAL_SUCCESS = \"_onPartialSuccess\"; // Count: 3\nexport var _DYN__ON_SUCCESS = \"_onSuccess\"; // Count: 6\nexport var _DYN_ITEMS_ACCEPTED = \"itemsAccepted\"; // Count: 5\nexport var _DYN_ITEMS_RECEIVED = \"itemsReceived\"; // Count: 6\nexport var _DYN_SET_REQUEST_HEADER = \"setRequestHeader\"; // Count: 3\nexport var _DYN_EVENTS_SEND_REQUEST = \"eventsSendRequest\"; // Count: 2\nexport var _DYN_GET_SAMPLING_SCORE = \"getSamplingScore\"; // Count: 2\nexport var _DYN_GET_HASH_CODE_SCORE = \"getHashCodeScore\"; // Count: 4\n","/*\n * Application Insights JavaScript SDK - Channel, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { __assignFn as __assign } from \"@microsoft/applicationinsights-shims\";\nimport { CtxTagKeys, Data, Envelope, Event, Exception, HttpMethod, Metric, PageView, PageViewPerformance, RemoteDependencyData, SampleRate, Trace, dataSanitizeString } from \"@microsoft/applicationinsights-common\";\nimport { _throwInternal, _warnToConsole, getJSON, hasJSON, isNullOrUndefined, isNumber, isString, isTruthy, objForEachKey, optimizeObject, setValue, toISOString } from \"@microsoft/applicationinsights-core-js\";\nimport { STR_DURATION } from \"./InternalConstants\";\nimport { _DYN_DATA, _DYN_DATA_TYPE, _DYN_DEVICE_TYPE, _DYN_ENVELOPE_TYPE, _DYN_LENGTH, _DYN_MEASUREMENTS, _DYN_NAME, _DYN_STRINGIFY, _DYN_TAGS, _DYN_TO_STRING, _DYN_TRACE_ID } from \"./__DynamicConstants\";\n// these two constants are used to filter out properties not needed when trying to extract custom properties and measurements from the incoming payload\nvar strBaseType = \"baseType\";\nvar strBaseData = \"baseData\";\nvar strProperties = \"properties\";\nvar strTrue = \"true\";\nfunction _setValueIf(target, field, value) {\n return setValue(target, field, value, isTruthy);\n}\n/*\r\n * Maps Part A data from CS 4.0\r\n */\nfunction _extractPartAExtensions(logger, item, env) {\n // todo: switch to keys from common in this method\n var envTags = env[_DYN_TAGS /* @min:%2etags */] = env[_DYN_TAGS /* @min:%2etags */] || {};\n var itmExt = item.ext = item.ext || {};\n var itmTags = item[_DYN_TAGS /* @min:%2etags */] = item[_DYN_TAGS /* @min:%2etags */] || [];\n var extUser = itmExt.user;\n if (extUser) {\n _setValueIf(envTags, CtxTagKeys.userAuthUserId, extUser.authId);\n _setValueIf(envTags, CtxTagKeys.userId, extUser.id || extUser.localId);\n }\n var extApp = itmExt.app;\n if (extApp) {\n _setValueIf(envTags, CtxTagKeys.sessionId, extApp.sesId);\n }\n var extDevice = itmExt.device;\n if (extDevice) {\n _setValueIf(envTags, CtxTagKeys.deviceId, extDevice.id || extDevice.localId);\n _setValueIf(envTags, CtxTagKeys[_DYN_DEVICE_TYPE /* @min:%2edeviceType */], extDevice.deviceClass);\n _setValueIf(envTags, CtxTagKeys.deviceIp, extDevice.ip);\n _setValueIf(envTags, CtxTagKeys.deviceModel, extDevice.model);\n _setValueIf(envTags, CtxTagKeys[_DYN_DEVICE_TYPE /* @min:%2edeviceType */], extDevice[_DYN_DEVICE_TYPE /* @min:%2edeviceType */]);\n }\n var web = item.ext.web;\n if (web) {\n _setValueIf(envTags, CtxTagKeys.deviceLanguage, web.browserLang);\n _setValueIf(envTags, CtxTagKeys.deviceBrowserVersion, web.browserVer);\n _setValueIf(envTags, CtxTagKeys.deviceBrowser, web.browser);\n var envData = env[_DYN_DATA /* @min:%2edata */] = env[_DYN_DATA /* @min:%2edata */] || {};\n var envBaseData = envData[strBaseData] = envData[strBaseData] || {};\n var envProps = envBaseData[strProperties] = envBaseData[strProperties] || {};\n _setValueIf(envProps, \"domain\", web.domain);\n _setValueIf(envProps, \"isManual\", web.isManual ? strTrue : null);\n _setValueIf(envProps, \"screenRes\", web.screenRes);\n _setValueIf(envProps, \"userConsent\", web.userConsent ? strTrue : null);\n }\n var extOs = itmExt.os;\n if (extOs) {\n _setValueIf(envTags, CtxTagKeys.deviceOS, extOs[_DYN_NAME /* @min:%2ename */]);\n }\n // No support for mapping Trace.traceState to 2.0 as it is currently empty\n var extTrace = itmExt.trace;\n if (extTrace) {\n _setValueIf(envTags, CtxTagKeys.operationParentId, extTrace.parentID);\n _setValueIf(envTags, CtxTagKeys.operationName, dataSanitizeString(logger, extTrace[_DYN_NAME /* @min:%2ename */]));\n _setValueIf(envTags, CtxTagKeys.operationId, extTrace[_DYN_TRACE_ID /* @min:%2etraceID */]);\n }\n // Sample 4.0 schema\n // {\n // \"time\" : \"2018-09-05T22:51:22.4936Z\",\n // \"name\" : \"MetricWithNamespace\",\n // \"iKey\" : \"ABC-5a4cbd20-e601-4ef5-a3c6-5d6577e4398e\",\n // \"ext\": { \"cloud\": {\n // \"role\": \"WATSON3\",\n // \"roleInstance\": \"CO4AEAP00000260\"\n // },\n // \"device\": {}, \"correlation\": {} },\n // \"tags\": [\n // { \"amazon.region\" : \"east2\" },\n // { \"os.expid\" : \"wp:02df239\" }\n // ]\n // }\n var tgs = {};\n // deals with tags.push({object})\n for (var i = itmTags[_DYN_LENGTH /* @min:%2elength */] - 1; i >= 0; i--) {\n var tg = itmTags[i];\n objForEachKey(tg, function (key, value) {\n tgs[key] = value;\n });\n itmTags.splice(i, 1);\n }\n // deals with tags[key]=value (and handles hasOwnProperty)\n objForEachKey(itmTags, function (tg, value) {\n tgs[tg] = value;\n });\n var theTags = __assign(__assign({}, envTags), tgs);\n if (!theTags[CtxTagKeys.internalSdkVersion]) {\n // Append a version in case it is not already set\n theTags[CtxTagKeys.internalSdkVersion] = dataSanitizeString(logger, \"javascript:\".concat(EnvelopeCreator.Version), 64);\n }\n env[_DYN_TAGS /* @min:%2etags */] = optimizeObject(theTags);\n}\nfunction _extractPropsAndMeasurements(data, properties, measurements) {\n if (!isNullOrUndefined(data)) {\n objForEachKey(data, function (key, value) {\n if (isNumber(value)) {\n measurements[key] = value;\n } else if (isString(value)) {\n properties[key] = value;\n } else if (hasJSON()) {\n properties[key] = getJSON()[_DYN_STRINGIFY /* @min:%2estringify */](value);\n }\n });\n }\n}\nfunction _convertPropsUndefinedToCustomDefinedValue(properties, customUndefinedValue) {\n if (!isNullOrUndefined(properties)) {\n objForEachKey(properties, function (key, value) {\n properties[key] = value || customUndefinedValue;\n });\n }\n}\n// TODO: Do we want this to take logger as arg or use this._logger as nonstatic?\nfunction _createEnvelope(logger, envelopeType, telemetryItem, data) {\n var envelope = new Envelope(logger, data, envelopeType);\n _setValueIf(envelope, \"sampleRate\", telemetryItem[SampleRate]);\n if ((telemetryItem[strBaseData] || {}).startTime) {\n // Starting from Version 3.0.3, the time property will be assigned by the startTime value,\n // which records the loadEvent time for the pageView event.\n envelope.time = toISOString(telemetryItem[strBaseData].startTime);\n }\n envelope.iKey = telemetryItem.iKey;\n var iKeyNoDashes = telemetryItem.iKey.replace(/-/g, \"\");\n envelope[_DYN_NAME /* @min:%2ename */] = envelope[_DYN_NAME /* @min:%2ename */].replace(\"{0}\", iKeyNoDashes);\n // extract all extensions from ctx\n _extractPartAExtensions(logger, telemetryItem, envelope);\n // loop through the envelope tags (extension of Part A) and pick out the ones that should go in outgoing envelope tags\n telemetryItem[_DYN_TAGS /* @min:%2etags */] = telemetryItem[_DYN_TAGS /* @min:%2etags */] || [];\n return optimizeObject(envelope);\n}\nfunction EnvelopeCreatorInit(logger, telemetryItem) {\n if (isNullOrUndefined(telemetryItem[strBaseData])) {\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 46 /* _eInternalMessageId.TelemetryEnvelopeInvalid */, \"telemetryItem.baseData cannot be null.\");\n }\n}\nexport var EnvelopeCreator = {\n Version: '3.0.3'\n};\nexport function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\n EnvelopeCreatorInit(logger, telemetryItem);\n var customMeasurements = telemetryItem[strBaseData][_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\n var customProperties = telemetryItem[strBaseData][strProperties] || {};\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], customProperties, customMeasurements);\n if (!isNullOrUndefined(customUndefinedValue)) {\n _convertPropsUndefinedToCustomDefinedValue(customProperties, customUndefinedValue);\n }\n var bd = telemetryItem[strBaseData];\n if (isNullOrUndefined(bd)) {\n _warnToConsole(logger, \"Invalid input for dependency data\");\n return null;\n }\n var method = bd[strProperties] && bd[strProperties][HttpMethod] ? bd[strProperties][HttpMethod] : \"GET\";\n var remoteDepData = new RemoteDependencyData(logger, bd.id, bd.target, bd[_DYN_NAME /* @min:%2ename */], bd[STR_DURATION /* @min:%2eduration */], bd.success, bd.responseCode, method, bd.type, bd.correlationContext, customProperties, customMeasurements);\n var data = new Data(RemoteDependencyData[_DYN_DATA_TYPE /* @min:%2edataType */], remoteDepData);\n return _createEnvelope(logger, RemoteDependencyData[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\n}\nexport function EventEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\n EnvelopeCreatorInit(logger, telemetryItem);\n var customProperties = {};\n var customMeasurements = {};\n if (telemetryItem[strBaseType] !== Event[_DYN_DATA_TYPE /* @min:%2edataType */]) {\n customProperties[\"baseTypeSource\"] = telemetryItem[strBaseType]; // save the passed in base type as a property\n }\n if (telemetryItem[strBaseType] === Event[_DYN_DATA_TYPE /* @min:%2edataType */]) {\n // take collection\n customProperties = telemetryItem[strBaseData][strProperties] || {};\n customMeasurements = telemetryItem[strBaseData][_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\n } else {\n // if its not a known type, convert to custom event\n if (telemetryItem[strBaseData]) {\n _extractPropsAndMeasurements(telemetryItem[strBaseData], customProperties, customMeasurements);\n }\n }\n // Extract root level properties from part C telemetryItem.data\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], customProperties, customMeasurements);\n if (!isNullOrUndefined(customUndefinedValue)) {\n _convertPropsUndefinedToCustomDefinedValue(customProperties, customUndefinedValue);\n }\n var eventName = telemetryItem[strBaseData][_DYN_NAME /* @min:%2ename */];\n var eventData = new Event(logger, eventName, customProperties, customMeasurements);\n var data = new Data(Event[_DYN_DATA_TYPE /* @min:%2edataType */], eventData);\n return _createEnvelope(logger, Event[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\n}\nexport function ExceptionEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\n EnvelopeCreatorInit(logger, telemetryItem);\n // Extract root level properties from part C telemetryItem.data\n var customMeasurements = telemetryItem[strBaseData][_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\n var customProperties = telemetryItem[strBaseData][strProperties] || {};\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], customProperties, customMeasurements);\n if (!isNullOrUndefined(customUndefinedValue)) {\n _convertPropsUndefinedToCustomDefinedValue(customProperties, customUndefinedValue);\n }\n var bd = telemetryItem[strBaseData];\n var exData = Exception.CreateFromInterface(logger, bd, customProperties, customMeasurements);\n var data = new Data(Exception[_DYN_DATA_TYPE /* @min:%2edataType */], exData);\n return _createEnvelope(logger, Exception[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\n}\nexport function MetricEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\n EnvelopeCreatorInit(logger, telemetryItem);\n var baseData = telemetryItem[strBaseData];\n var props = baseData[strProperties] || {};\n var measurements = baseData[_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], props, measurements);\n if (!isNullOrUndefined(customUndefinedValue)) {\n _convertPropsUndefinedToCustomDefinedValue(props, customUndefinedValue);\n }\n var baseMetricData = new Metric(logger, baseData[_DYN_NAME /* @min:%2ename */], baseData.average, baseData.sampleCount, baseData.min, baseData.max, baseData.stdDev, props, measurements);\n var data = new Data(Metric[_DYN_DATA_TYPE /* @min:%2edataType */], baseMetricData);\n return _createEnvelope(logger, Metric[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\n}\nexport function PageViewEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\n EnvelopeCreatorInit(logger, telemetryItem);\n // Since duration is not part of the domain properties in Common Schema, extract it from part C\n var duration;\n var baseData = telemetryItem[strBaseData];\n if (!isNullOrUndefined(baseData) && !isNullOrUndefined(baseData[strProperties]) && !isNullOrUndefined(baseData[strProperties][STR_DURATION])) {\n // from part B properties\n duration = baseData[strProperties][STR_DURATION];\n delete baseData[strProperties][STR_DURATION];\n } else if (!isNullOrUndefined(telemetryItem[_DYN_DATA /* @min:%2edata */]) && !isNullOrUndefined(telemetryItem[_DYN_DATA /* @min:%2edata */][STR_DURATION])) {\n // from custom properties\n duration = telemetryItem[_DYN_DATA /* @min:%2edata */][STR_DURATION];\n delete telemetryItem[_DYN_DATA /* @min:%2edata */][STR_DURATION];\n }\n var bd = telemetryItem[strBaseData];\n // special case: pageview.id is grabbed from current operation id. Analytics plugin is decoupled from properties plugin, so this is done here instead. This can be made a default telemetry intializer instead if needed to be decoupled from channel\n var currentContextId;\n if (((telemetryItem.ext || {}).trace || {})[_DYN_TRACE_ID /* @min:%2etraceID */]) {\n currentContextId = telemetryItem.ext.trace[_DYN_TRACE_ID /* @min:%2etraceID */];\n }\n var id = bd.id || currentContextId;\n var name = bd[_DYN_NAME /* @min:%2ename */];\n var url = bd.uri;\n var properties = bd[strProperties] || {};\n var measurements = bd[_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\n // refUri is a field that Breeze still does not recognize as part of Part B. For now, put it in Part C until it supports it as a domain property\n if (!isNullOrUndefined(bd.refUri)) {\n properties[\"refUri\"] = bd.refUri;\n }\n // pageType is a field that Breeze still does not recognize as part of Part B. For now, put it in Part C until it supports it as a domain property\n if (!isNullOrUndefined(bd.pageType)) {\n properties[\"pageType\"] = bd.pageType;\n }\n // isLoggedIn is a field that Breeze still does not recognize as part of Part B. For now, put it in Part C until it supports it as a domain property\n if (!isNullOrUndefined(bd.isLoggedIn)) {\n properties[\"isLoggedIn\"] = bd.isLoggedIn[_DYN_TO_STRING /* @min:%2etoString */]();\n }\n // pageTags is a field that Breeze still does not recognize as part of Part B. For now, put it in Part C until it supports it as a domain property\n if (!isNullOrUndefined(bd[strProperties])) {\n var pageTags = bd[strProperties];\n objForEachKey(pageTags, function (key, value) {\n properties[key] = value;\n });\n }\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], properties, measurements);\n if (!isNullOrUndefined(customUndefinedValue)) {\n _convertPropsUndefinedToCustomDefinedValue(properties, customUndefinedValue);\n }\n var pageViewData = new PageView(logger, name, url, duration, properties, measurements, id);\n var data = new Data(PageView[_DYN_DATA_TYPE /* @min:%2edataType */], pageViewData);\n return _createEnvelope(logger, PageView[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\n}\nexport function PageViewPerformanceEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\n EnvelopeCreatorInit(logger, telemetryItem);\n var bd = telemetryItem[strBaseData];\n var name = bd[_DYN_NAME /* @min:%2ename */];\n var url = bd.uri || bd.url;\n var properties = bd[strProperties] || {};\n var measurements = bd[_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], properties, measurements);\n if (!isNullOrUndefined(customUndefinedValue)) {\n _convertPropsUndefinedToCustomDefinedValue(properties, customUndefinedValue);\n }\n var baseData = new PageViewPerformance(logger, name, url, undefined, properties, measurements, bd);\n var data = new Data(PageViewPerformance[_DYN_DATA_TYPE /* @min:%2edataType */], baseData);\n return _createEnvelope(logger, PageViewPerformance[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\n}\nexport function TraceEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\n EnvelopeCreatorInit(logger, telemetryItem);\n var message = telemetryItem[strBaseData].message;\n var severityLevel = telemetryItem[strBaseData].severityLevel;\n var props = telemetryItem[strBaseData][strProperties] || {};\n var measurements = telemetryItem[strBaseData][_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], props, measurements);\n if (!isNullOrUndefined(customUndefinedValue)) {\n _convertPropsUndefinedToCustomDefinedValue(props, customUndefinedValue);\n }\n var baseData = new Trace(logger, message, severityLevel, props, measurements);\n var data = new Data(Trace[_DYN_DATA_TYPE /* @min:%2edataType */], baseData);\n return _createEnvelope(logger, Trace[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\n}\n","/*\n * Application Insights JavaScript SDK - Channel, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { createUniqueNamespace, eventOff, eventOn, getDocument, getNavigator, getWindow, isNullOrUndefined, isUndefined, mergeEvtNamespace } from \"@microsoft/applicationinsights-core-js\";\nimport { _DYN_IS_ONLINE, _DYN_ON_LINE } from \"./__DynamicConstants\";\nfunction _disableEvents(target, evtNamespace) {\n eventOff(target, null, null, evtNamespace);\n}\n/**\r\n * Create a new OfflineListener instance to monitor browser online / offline events\r\n * @param parentEvtNamespace - The parent event namespace to append to any specific events for this instance\r\n */\nexport function createOfflineListener(parentEvtNamespace) {\n var _a;\n var _document = getDocument();\n var _navigator = getNavigator(); // Gets the window.navigator or workerNavigator depending on the global\n var _isListening = false;\n var _onlineStatus = true;\n var _evtNamespace = mergeEvtNamespace(createUniqueNamespace(\"OfflineListener\"), parentEvtNamespace);\n try {\n if (_enableEvents(getWindow())) {\n _isListening = true;\n }\n if (_document) {\n // Also attach to the document.body or document\n var target = _document.body || _document;\n if (target.ononline) {\n if (_enableEvents(target)) {\n _isListening = true;\n }\n }\n }\n if (_isListening) {\n // We are listening to events so lets set the current status rather than assuming we are online #1538\n if (_navigator && !isNullOrUndefined(_navigator[_DYN_ON_LINE /* @min:%2eonLine */])) {\n // navigator.onLine is undefined in react-native\n _onlineStatus = _navigator[_DYN_ON_LINE /* @min:%2eonLine */];\n }\n }\n } catch (e) {\n // this makes react-native less angry\n _isListening = false;\n }\n function _enableEvents(target) {\n var enabled = false;\n if (target) {\n enabled = eventOn(target, \"online\", _setOnline, _evtNamespace);\n if (enabled) {\n eventOn(target, \"offline\", _setOffline, _evtNamespace);\n }\n }\n return enabled;\n }\n function _setOnline() {\n _onlineStatus = true;\n }\n function _setOffline() {\n _onlineStatus = false;\n }\n function _isOnline() {\n var result = true;\n if (_isListening) {\n result = _onlineStatus;\n } else if (_navigator && !isNullOrUndefined(_navigator[_DYN_ON_LINE /* @min:%2eonLine */])) {\n // navigator.onLine is undefined in react-native\n result = _navigator[_DYN_ON_LINE /* @min:%2eonLine */];\n }\n return result;\n }\n function _unload() {\n var win = getWindow();\n if (win && _isListening) {\n _disableEvents(win, _evtNamespace);\n if (_document) {\n // Also attach to the document.body or document\n var target = _document.body || _document;\n if (!isUndefined(target.ononline)) {\n _disableEvents(target, _evtNamespace);\n }\n }\n _isListening = false;\n }\n }\n return _a = {}, _a[_DYN_IS_ONLINE /* @min:isOnline */] = _isOnline, _a.isListening = function () {\n return _isListening;\n }, _a.unload = _unload, _a;\n}\n","/*\n * Application Insights JavaScript SDK - Channel, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { utlGetSessionStorage, utlSetSessionStorage } from \"@microsoft/applicationinsights-common\";\nimport { _throwInternal, arrForEach, arrIndexOf, dumpObj, getExceptionName, getJSON, isArray, isFunction, isString } from \"@microsoft/applicationinsights-core-js\";\nimport { _DYN_BATCH_PAYLOADS, _DYN_BUFFER_OVERRIDE, _DYN_CLEAR, _DYN_CLEAR_SENT, _DYN_COUNT, _DYN_CREATE_NEW, _DYN_EMIT_LINE_DELIMITED_0, _DYN_ENQUEUE, _DYN_EVENTS_LIMIT_IN_MEM, _DYN_LENGTH, _DYN_MARK_AS_SENT, _DYN_PUSH, _DYN_STRINGIFY, _DYN__BUFFER__KEY, _DYN__GET, _DYN__MAX__BUFFER__SIZE, _DYN__SENT__BUFFER__KEY } from \"./__DynamicConstants\";\nvar BaseSendBuffer = /** @class */function () {\n function BaseSendBuffer(logger, config) {\n var _buffer = [];\n var _bufferFullMessageSent = false;\n this[_DYN__GET /* @min:%2e_get */] = function () {\n return _buffer;\n };\n this._set = function (buffer) {\n _buffer = buffer;\n return _buffer;\n };\n dynamicProto(BaseSendBuffer, this, function (_self) {\n _self[_DYN_ENQUEUE /* @min:%2eenqueue */] = function (payload) {\n if (_self[_DYN_COUNT /* @min:%2ecount */]() >= config[_DYN_EVENTS_LIMIT_IN_MEM /* @min:%2eeventsLimitInMem */]) {\n // sent internal log only once per page view\n if (!_bufferFullMessageSent) {\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 105 /* _eInternalMessageId.InMemoryStorageBufferFull */, \"Maximum in-memory buffer size reached: \" + _self[_DYN_COUNT /* @min:%2ecount */](), true);\n _bufferFullMessageSent = true;\n }\n return;\n }\n _buffer[_DYN_PUSH /* @min:%2epush */](payload);\n };\n _self[_DYN_COUNT /* @min:%2ecount */] = function () {\n return _buffer[_DYN_LENGTH /* @min:%2elength */];\n };\n _self.size = function () {\n var size = _buffer[_DYN_LENGTH /* @min:%2elength */];\n for (var lp = 0; lp < _buffer[_DYN_LENGTH /* @min:%2elength */]; lp++) {\n size += _buffer[lp][_DYN_LENGTH /* @min:%2elength */];\n }\n if (!config[_DYN_EMIT_LINE_DELIMITED_0 /* @min:%2eemitLineDelimitedJson */]) {\n size += 2;\n }\n return size;\n };\n _self[_DYN_CLEAR /* @min:%2eclear */] = function () {\n _buffer = [];\n _bufferFullMessageSent = false;\n };\n _self.getItems = function () {\n return _buffer.slice(0);\n };\n _self[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */] = function (payload) {\n if (payload && payload[_DYN_LENGTH /* @min:%2elength */] > 0) {\n var batch = config[_DYN_EMIT_LINE_DELIMITED_0 /* @min:%2eemitLineDelimitedJson */] ? payload.join(\"\\n\") : \"[\" + payload.join(\",\") + \"]\";\n return batch;\n }\n return null;\n };\n _self[_DYN_CREATE_NEW /* @min:%2ecreateNew */] = function (newLogger, newConfig, canUseSessionStorage) {\n var items = _buffer.slice(0);\n newLogger = newLogger || logger;\n newConfig = newConfig || {};\n var newBuffer = !!canUseSessionStorage ? new SessionStorageSendBuffer(newLogger, newConfig) : new ArraySendBuffer(newLogger, newConfig);\n arrForEach(items, function (payload) {\n newBuffer[_DYN_ENQUEUE /* @min:%2eenqueue */](payload);\n });\n return newBuffer;\n };\n });\n }\n // Removed Stub for BaseSendBuffer.prototype.enqueue.\n // Removed Stub for BaseSendBuffer.prototype.count.\n // Removed Stub for BaseSendBuffer.prototype.size.\n // Removed Stub for BaseSendBuffer.prototype.clear.\n // Removed Stub for BaseSendBuffer.prototype.getItems.\n // Removed Stub for BaseSendBuffer.prototype.batchPayloads.\n // Removed Stub for BaseSendBuffer.prototype.createNew.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n BaseSendBuffer.__ieDyn = 1;\n return BaseSendBuffer;\n}();\n/*\r\n * An array based send buffer.\r\n */\nvar ArraySendBuffer = /** @class */function (_super) {\n __extends(ArraySendBuffer, _super);\n function ArraySendBuffer(logger, config) {\n var _this = _super.call(this, logger, config) || this;\n dynamicProto(ArraySendBuffer, _this, function (_self, _base) {\n _self[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */] = function (payload) {\n _base[_DYN_CLEAR /* @min:%2eclear */]();\n };\n _self[_DYN_CLEAR_SENT /* @min:%2eclearSent */] = function (payload) {\n // not supported\n };\n });\n return _this;\n }\n // Removed Stub for ArraySendBuffer.prototype.markAsSent.\n // Removed Stub for ArraySendBuffer.prototype.clearSent.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n ArraySendBuffer.__ieDyn = 1;\n return ArraySendBuffer;\n}(BaseSendBuffer);\nexport { ArraySendBuffer };\n/*\r\n * Session storage buffer holds a copy of all unsent items in the browser session storage.\r\n */\nvar SessionStorageSendBuffer = /** @class */function (_super) {\n __extends(SessionStorageSendBuffer, _super);\n function SessionStorageSendBuffer(logger, config) {\n var _this = _super.call(this, logger, config) || this;\n var _bufferFullMessageSent = false;\n //Note: should not use config.namePrefix directly, because it will always refers to the latest namePrefix\n var _namePrefix = config === null || config === void 0 ? void 0 : config.namePrefix;\n var _a = config[_DYN_BUFFER_OVERRIDE /* @min:%2ebufferOverride */] || {\n getItem: utlGetSessionStorage,\n setItem: utlSetSessionStorage\n },\n getItem = _a.getItem,\n setItem = _a.setItem;\n dynamicProto(SessionStorageSendBuffer, _this, function (_self, _base) {\n var bufferItems = _getBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY /* @min:%2eBUFFER_KEY */]);\n var notDeliveredItems = _getBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */]);\n var buffer = _self._set(bufferItems.concat(notDeliveredItems));\n // If the buffer has too many items, drop items from the end.\n if (buffer[_DYN_LENGTH /* @min:%2elength */] > SessionStorageSendBuffer[_DYN__MAX__BUFFER__SIZE /* @min:%2eMAX_BUFFER_SIZE */]) {\n buffer[_DYN_LENGTH /* @min:%2elength */] = SessionStorageSendBuffer[_DYN__MAX__BUFFER__SIZE /* @min:%2eMAX_BUFFER_SIZE */];\n }\n _setBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */], []);\n _setBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY /* @min:%2eBUFFER_KEY */], buffer);\n _self[_DYN_ENQUEUE /* @min:%2eenqueue */] = function (payload) {\n if (_self[_DYN_COUNT /* @min:%2ecount */]() >= SessionStorageSendBuffer[_DYN__MAX__BUFFER__SIZE /* @min:%2eMAX_BUFFER_SIZE */]) {\n // sent internal log only once per page view\n if (!_bufferFullMessageSent) {\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 67 /* _eInternalMessageId.SessionStorageBufferFull */, \"Maximum buffer size reached: \" + _self[_DYN_COUNT /* @min:%2ecount */](), true);\n _bufferFullMessageSent = true;\n }\n return;\n }\n _base[_DYN_ENQUEUE /* @min:%2eenqueue */](payload);\n _setBuffer(SessionStorageSendBuffer.BUFFER_KEY, _self[_DYN__GET /* @min:%2e_get */]());\n };\n _self[_DYN_CLEAR /* @min:%2eclear */] = function () {\n _base[_DYN_CLEAR /* @min:%2eclear */]();\n _setBuffer(SessionStorageSendBuffer.BUFFER_KEY, _self[_DYN__GET /* @min:%2e_get */]());\n _setBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */], []);\n _bufferFullMessageSent = false;\n };\n _self[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */] = function (payload) {\n _setBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY /* @min:%2eBUFFER_KEY */], _self._set(_removePayloadsFromBuffer(payload, _self[_DYN__GET /* @min:%2e_get */]())));\n var sentElements = _getBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */]);\n if (sentElements instanceof Array && payload instanceof Array) {\n sentElements = sentElements.concat(payload);\n if (sentElements[_DYN_LENGTH /* @min:%2elength */] > SessionStorageSendBuffer[_DYN__MAX__BUFFER__SIZE /* @min:%2eMAX_BUFFER_SIZE */]) {\n // We send telemetry normally. If the SENT_BUFFER is too big we don't add new elements\n // until we receive a response from the backend and the buffer has free space again (see clearSent method)\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 67 /* _eInternalMessageId.SessionStorageBufferFull */, \"Sent buffer reached its maximum size: \" + sentElements[_DYN_LENGTH /* @min:%2elength */], true);\n sentElements[_DYN_LENGTH /* @min:%2elength */] = SessionStorageSendBuffer[_DYN__MAX__BUFFER__SIZE /* @min:%2eMAX_BUFFER_SIZE */];\n }\n _setBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */], sentElements);\n }\n };\n _self[_DYN_CLEAR_SENT /* @min:%2eclearSent */] = function (payload) {\n var sentElements = _getBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */]);\n sentElements = _removePayloadsFromBuffer(payload, sentElements);\n _setBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */], sentElements);\n };\n _self[_DYN_CREATE_NEW /* @min:%2ecreateNew */] = function (newLogger, newConfig, canUseSessionStorage) {\n canUseSessionStorage = !!canUseSessionStorage;\n var unsentItems = _self[_DYN__GET /* @min:%2e_get */]().slice(0);\n var sentItems = _getBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */]).slice(0);\n newLogger = newLogger || logger;\n newConfig = newConfig || {};\n // to make sure that we do not send duplicated payloads when it is switched back to previous one\n _self[_DYN_CLEAR /* @min:%2eclear */]();\n var newBuffer = canUseSessionStorage ? new SessionStorageSendBuffer(newLogger, newConfig) : new ArraySendBuffer(newLogger, newConfig);\n arrForEach(unsentItems, function (payload) {\n newBuffer[_DYN_ENQUEUE /* @min:%2eenqueue */](payload);\n });\n if (canUseSessionStorage) {\n // arr buffer will clear all payloads if markAsSent() is called\n newBuffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](sentItems);\n }\n return newBuffer;\n };\n function _removePayloadsFromBuffer(payloads, buffer) {\n var remaining = [];\n arrForEach(buffer, function (value) {\n if (!isFunction(value) && arrIndexOf(payloads, value) === -1) {\n remaining[_DYN_PUSH /* @min:%2epush */](value);\n }\n });\n return remaining;\n }\n function _getBuffer(key) {\n var prefixedKey = key;\n try {\n prefixedKey = _namePrefix ? _namePrefix + \"_\" + prefixedKey : prefixedKey;\n var bufferJson = getItem(logger, prefixedKey);\n if (bufferJson) {\n var buffer_1 = getJSON().parse(bufferJson);\n if (isString(buffer_1)) {\n // When using some version prototype.js the stringify / parse cycle does not decode array's correctly\n buffer_1 = getJSON().parse(buffer_1);\n }\n if (buffer_1 && isArray(buffer_1)) {\n return buffer_1;\n }\n }\n } catch (e) {\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 42 /* _eInternalMessageId.FailedToRestoreStorageBuffer */, \" storage key: \" + prefixedKey + \", \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n return [];\n }\n function _setBuffer(key, buffer) {\n var prefixedKey = key;\n try {\n prefixedKey = _namePrefix ? _namePrefix + \"_\" + prefixedKey : prefixedKey;\n var bufferJson = JSON[_DYN_STRINGIFY /* @min:%2estringify */](buffer);\n setItem(logger, prefixedKey, bufferJson);\n } catch (e) {\n // if there was an error, clear the buffer\n // telemetry is stored in the _buffer array so we won't loose any items\n setItem(logger, prefixedKey, JSON[_DYN_STRINGIFY /* @min:%2estringify */]([]));\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 41 /* _eInternalMessageId.FailedToSetStorageBuffer */, \" storage key: \" + prefixedKey + \", \" + getExceptionName(e) + \". Buffer cleared\", {\n exception: dumpObj(e)\n });\n }\n }\n });\n return _this;\n }\n // Removed Stub for SessionStorageSendBuffer.prototype.enqueue.\n // Removed Stub for SessionStorageSendBuffer.prototype.clear.\n // Removed Stub for SessionStorageSendBuffer.prototype.markAsSent.\n // Removed Stub for SessionStorageSendBuffer.prototype.clearSent.\n // Removed Stub for SessionStorageSendBuffer.prototype.createNew.\n SessionStorageSendBuffer.BUFFER_KEY = \"AI_buffer\";\n SessionStorageSendBuffer.SENT_BUFFER_KEY = \"AI_sentBuffer\";\n // Maximum number of payloads stored in the buffer. If the buffer is full, new elements will be dropped.\n SessionStorageSendBuffer.MAX_BUFFER_SIZE = 2000;\n return SessionStorageSendBuffer;\n}(BaseSendBuffer);\nexport { SessionStorageSendBuffer };\n","/*\n * Application Insights JavaScript SDK - Channel, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { _throwInternal, getJSON, isArray, isFunction, isObject, objForEachKey } from \"@microsoft/applicationinsights-core-js\";\nimport { _DYN_LENGTH, _DYN_PUSH, _DYN_STRINGIFY, _DYN_TO_STRING } from \"./__DynamicConstants\";\nvar Serializer = /** @class */function () {\n function Serializer(logger) {\n dynamicProto(Serializer, this, function (_self) {\n /**\r\n * Serializes the current object to a JSON string.\r\n */\n _self.serialize = function (input) {\n var output = _serializeObject(input, \"root\");\n try {\n return getJSON()[_DYN_STRINGIFY /* @min:%2estringify */](output);\n } catch (e) {\n // if serialization fails return an empty string\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 48 /* _eInternalMessageId.CannotSerializeObject */, e && isFunction(e[_DYN_TO_STRING /* @min:%2etoString */]) ? e[_DYN_TO_STRING /* @min:%2etoString */]() : \"Error serializing object\", null, true);\n }\n };\n function _serializeObject(source, name) {\n var circularReferenceCheck = \"__aiCircularRefCheck\";\n var output = {};\n if (!source) {\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 48 /* _eInternalMessageId.CannotSerializeObject */, \"cannot serialize object because it is null or undefined\", {\n name: name\n }, true);\n return output;\n }\n if (source[circularReferenceCheck]) {\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 50 /* _eInternalMessageId.CircularReferenceDetected */, \"Circular reference detected while serializing object\", {\n name: name\n }, true);\n return output;\n }\n if (!source.aiDataContract) {\n // special case for measurements/properties/tags\n if (name === \"measurements\") {\n output = _serializeStringMap(source, \"number\", name);\n } else if (name === \"properties\") {\n output = _serializeStringMap(source, \"string\", name);\n } else if (name === \"tags\") {\n output = _serializeStringMap(source, \"string\", name);\n } else if (isArray(source)) {\n output = _serializeArray(source, name);\n } else {\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 49 /* _eInternalMessageId.CannotSerializeObjectNonSerializable */, \"Attempting to serialize an object which does not implement ISerializable\", {\n name: name\n }, true);\n try {\n // verify that the object can be stringified\n getJSON()[_DYN_STRINGIFY /* @min:%2estringify */](source);\n output = source;\n } catch (e) {\n // if serialization fails return an empty string\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 48 /* _eInternalMessageId.CannotSerializeObject */, e && isFunction(e[_DYN_TO_STRING /* @min:%2etoString */]) ? e[_DYN_TO_STRING /* @min:%2etoString */]() : \"Error serializing object\", null, true);\n }\n }\n return output;\n }\n source[circularReferenceCheck] = true;\n objForEachKey(source.aiDataContract, function (field, contract) {\n var isRequired = isFunction(contract) ? contract() & 1 /* FieldType.Required */ : contract & 1 /* FieldType.Required */;\n var isHidden = isFunction(contract) ? contract() & 4 /* FieldType.Hidden */ : contract & 4 /* FieldType.Hidden */;\n var isArray = contract & 2 /* FieldType.Array */;\n var isPresent = source[field] !== undefined;\n var isObj = isObject(source[field]) && source[field] !== null;\n if (isRequired && !isPresent && !isArray) {\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 24 /* _eInternalMessageId.MissingRequiredFieldSpecification */, \"Missing required field specification. The field is required but not present on source\", {\n field: field,\n name: name\n });\n // If not in debug mode, continue and hope the error is permissible\n } else if (!isHidden) {\n // Don't serialize hidden fields\n var value = void 0;\n if (isObj) {\n if (isArray) {\n // special case; recurse on each object in the source array\n value = _serializeArray(source[field], field);\n } else {\n // recurse on the source object in this field\n value = _serializeObject(source[field], field);\n }\n } else {\n // assign the source field to the output even if undefined or required\n value = source[field];\n }\n // only emit this field if the value is defined\n if (value !== undefined) {\n output[field] = value;\n }\n }\n });\n delete source[circularReferenceCheck];\n return output;\n }\n function _serializeArray(sources, name) {\n var output;\n if (!!sources) {\n if (!isArray(sources)) {\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 54 /* _eInternalMessageId.ItemNotInArray */, \"This field was specified as an array in the contract but the item is not an array.\\r\\n\", {\n name: name\n }, true);\n } else {\n output = [];\n for (var i = 0; i < sources[_DYN_LENGTH /* @min:%2elength */]; i++) {\n var source = sources[i];\n var item = _serializeObject(source, name + \"[\" + i + \"]\");\n output[_DYN_PUSH /* @min:%2epush */](item);\n }\n }\n }\n return output;\n }\n function _serializeStringMap(map, expectedType, name) {\n var output;\n if (map) {\n output = {};\n objForEachKey(map, function (field, value) {\n if (expectedType === \"string\") {\n if (value === undefined) {\n output[field] = \"undefined\";\n } else if (value === null) {\n output[field] = \"null\";\n } else if (!value[_DYN_TO_STRING /* @min:%2etoString */]) {\n output[field] = \"invalid field: toString() is not defined.\";\n } else {\n output[field] = value[_DYN_TO_STRING /* @min:%2etoString */]();\n }\n } else if (expectedType === \"number\") {\n if (value === undefined) {\n output[field] = \"undefined\";\n } else if (value === null) {\n output[field] = \"null\";\n } else {\n var num = parseFloat(value);\n if (isNaN(num)) {\n output[field] = \"NaN\";\n } else {\n output[field] = num;\n }\n }\n } else {\n output[field] = \"invalid field: \" + name + \" is of unknown type.\";\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, output[field], null, true);\n }\n });\n }\n return output;\n }\n });\n }\n // Removed Stub for Serializer.prototype.serialize.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n Serializer.__ieDyn = 1;\n return Serializer;\n}();\nexport { Serializer };\n","/*\n * Application Insights JavaScript SDK - Channel, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { _DYN_LENGTH } from \"../../__DynamicConstants\";\n// (Magic number) DJB algorithm can't work on shorter strings (results in poor distribution\nvar MIN_INPUT_LENGTH = 8;\nvar HashCodeScoreGenerator = /** @class */function () {\n function HashCodeScoreGenerator() {}\n HashCodeScoreGenerator.prototype.getHashCodeScore = function (key) {\n var score = this.getHashCode(key) / HashCodeScoreGenerator.INT_MAX_VALUE;\n return score * 100;\n };\n HashCodeScoreGenerator.prototype.getHashCode = function (input) {\n if (input === \"\") {\n return 0;\n }\n while (input[_DYN_LENGTH /* @min:%2elength */] < MIN_INPUT_LENGTH) {\n input = input.concat(input);\n }\n // 5381 is a magic number: http://stackoverflow.com/questions/10696223/reason-for-5381-number-in-djb-hash-function\n var hash = 5381;\n for (var i = 0; i < input[_DYN_LENGTH /* @min:%2elength */]; ++i) {\n hash = (hash << 5) + hash + input.charCodeAt(i);\n // 'hash' is of number type which means 53 bit integer (http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types-number-type)\n // 'hash & hash' will keep it 32 bit integer - just to make it clearer what the result is.\n hash = hash & hash;\n }\n return Math.abs(hash);\n };\n // We're using 32 bit math, hence max value is (2^31 - 1)\n HashCodeScoreGenerator.INT_MAX_VALUE = 2147483647;\n return HashCodeScoreGenerator;\n}();\nexport { HashCodeScoreGenerator };\n","/*\n * Application Insights JavaScript SDK - Channel, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { ContextTagKeys } from \"@microsoft/applicationinsights-common\";\nimport { _DYN_GET_HASH_CODE_SCORE, _DYN_GET_SAMPLING_SCORE, _DYN_TAGS, _DYN_TRACE_ID } from \"../../__DynamicConstants\";\nimport { HashCodeScoreGenerator } from \"./HashCodeScoreGenerator\";\nvar SamplingScoreGenerator = /** @class */function () {\n function SamplingScoreGenerator() {\n var _self = this;\n var hashCodeGenerator = new HashCodeScoreGenerator();\n var keys = new ContextTagKeys();\n _self[_DYN_GET_SAMPLING_SCORE /* @min:%2egetSamplingScore */] = function (item) {\n var score = 0;\n if (item[_DYN_TAGS /* @min:%2etags */] && item[_DYN_TAGS /* @min:%2etags */][keys.userId]) {\n // search in tags first, then ext\n score = hashCodeGenerator.getHashCodeScore(item[_DYN_TAGS /* @min:%2etags */][keys.userId]);\n } else if (item.ext && item.ext.user && item.ext.user.id) {\n score = hashCodeGenerator[_DYN_GET_HASH_CODE_SCORE /* @min:%2egetHashCodeScore */](item.ext.user.id);\n } else if (item[_DYN_TAGS /* @min:%2etags */] && item[_DYN_TAGS /* @min:%2etags */][keys.operationId]) {\n // search in tags first, then ext\n score = hashCodeGenerator.getHashCodeScore(item[_DYN_TAGS /* @min:%2etags */][keys.operationId]);\n } else if (item.ext && item.ext.telemetryTrace && item.ext.telemetryTrace[_DYN_TRACE_ID /* @min:%2etraceID */]) {\n score = hashCodeGenerator.getHashCodeScore(item.ext.telemetryTrace[_DYN_TRACE_ID /* @min:%2etraceID */]);\n } else {\n // tslint:disable-next-line:insecure-random\n score = Math.random() * 100;\n }\n return score;\n };\n }\n return SamplingScoreGenerator;\n}();\nexport { SamplingScoreGenerator };\n","/*\n * Application Insights JavaScript SDK - Channel, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { Metric } from \"@microsoft/applicationinsights-common\";\nimport { safeGetLogger } from \"@microsoft/applicationinsights-core-js\";\nimport { _DYN_DATA_TYPE, _DYN_GET_SAMPLING_SCORE, _DYN_SAMPLE_RATE } from \"../__DynamicConstants\";\nimport { SamplingScoreGenerator } from \"./SamplingScoreGenerators/SamplingScoreGenerator\";\nvar Sample = /** @class */function () {\n function Sample(sampleRate, logger) {\n // We're using 32 bit math, hence max value is (2^31 - 1)\n this.INT_MAX_VALUE = 2147483647;\n var _logger = logger || safeGetLogger(null);\n if (sampleRate > 100 || sampleRate < 0) {\n _logger.throwInternal(2 /* eLoggingSeverity.WARNING */, 58 /* _eInternalMessageId.SampleRateOutOfRange */, \"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.\", {\n samplingRate: sampleRate\n }, true);\n sampleRate = 100;\n }\n this[_DYN_SAMPLE_RATE /* @min:%2esampleRate */] = sampleRate;\n this.samplingScoreGenerator = new SamplingScoreGenerator();\n }\n /**\r\n * Determines if an envelope is sampled in (i.e. will be sent) or not (i.e. will be dropped).\r\n */\n Sample.prototype.isSampledIn = function (envelope) {\n var samplingPercentage = this[_DYN_SAMPLE_RATE /* @min:%2esampleRate */]; // 0 - 100\n var isSampledIn = false;\n if (samplingPercentage === null || samplingPercentage === undefined || samplingPercentage >= 100) {\n return true;\n } else if (envelope.baseType === Metric[_DYN_DATA_TYPE /* @min:%2edataType */]) {\n // exclude MetricData telemetry from sampling\n return true;\n }\n isSampledIn = this.samplingScoreGenerator[_DYN_GET_SAMPLING_SCORE /* @min:%2egetSamplingScore */](envelope) < samplingPercentage;\n return isSampledIn;\n };\n return Sample;\n}();\nexport { Sample };\n","/*\n * Application Insights JavaScript SDK - Channel, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nvar _a, _b;\nimport { __assignFn as __assign, __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { BreezeChannelIdentifier, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, DisabledPropertyName, Event, Exception, Metric, PageView, PageViewPerformance, ProcessLegacy, RemoteDependencyData, RequestHeaders, SampleRate, Trace, isInternalApplicationInsightsEndpoint, utlCanUseSessionStorage, utlSetStoragePrefix } from \"@microsoft/applicationinsights-common\";\nimport { BaseTelemetryPlugin, _throwInternal, _warnToConsole, arrForEach, cfgDfBoolean, cfgDfValidate, createProcessTelemetryContext, createUniqueNamespace, dateNow, dumpObj, getExceptionName, getIEVersion, getJSON, getNavigator, getWindow, isArray, isBeaconsSupported, isFetchSupported, isNullOrUndefined, isXhrSupported, mergeEvtNamespace, objExtend, objKeys, onConfigChange, runTargetUnload, useXDomainRequest } from \"@microsoft/applicationinsights-core-js\";\nimport { createPromise, doAwaitResponse } from \"@nevware21/ts-async\";\nimport { isTruthy, objDeepFreeze, objDefine, scheduleTimeout } from \"@nevware21/ts-utils\";\nimport { DependencyEnvelopeCreator, EventEnvelopeCreator, ExceptionEnvelopeCreator, MetricEnvelopeCreator, PageViewEnvelopeCreator, PageViewPerformanceEnvelopeCreator, TraceEnvelopeCreator } from \"./EnvelopeCreator\";\nimport { createOfflineListener } from \"./Offline\";\nimport { ArraySendBuffer, SessionStorageSendBuffer } from \"./SendBuffer\";\nimport { Serializer } from \"./Serializer\";\nimport { Sample } from \"./TelemetryProcessors/Sample\";\nimport { _DYN_BASE_TYPE, _DYN_BATCH_PAYLOADS, _DYN_BUFFER_OVERRIDE, _DYN_CLEAR, _DYN_CLEAR_SENT, _DYN_CONVERT_UNDEFINED, _DYN_COUNT, _DYN_CREATE_NEW, _DYN_CUSTOM_HEADERS, _DYN_DIAG_LOG, _DYN_DISABLE_XHR, _DYN_EMIT_LINE_DELIMITED_0, _DYN_ENABLE_SESSION_STORA4, _DYN_ENQUEUE, _DYN_EVENTS_LIMIT_IN_MEM, _DYN_EVENTS_SEND_REQUEST, _DYN_INSTRUMENTATION_KEY, _DYN_IS_BEACON_API_DISABL3, _DYN_IS_ONLINE, _DYN_ITEMS_ACCEPTED, _DYN_ITEMS_RECEIVED, _DYN_LENGTH, _DYN_MARK_AS_SENT, _DYN_MAX_BATCH_INTERVAL, _DYN_MAX_BATCH_SIZE_IN_BY1, _DYN_ONUNLOAD_DISABLE_BEA2, _DYN_ONUNLOAD_DISABLE_FET5, _DYN_PUSH, _DYN_SAMPLE_RATE, _DYN_SET_REQUEST_HEADER, _DYN_TAGS, _DYN_TRIGGER_SEND, _DYN__BUFFER, _DYN__ON_ERROR, _DYN__ON_PARTIAL_SUCCESS, _DYN__ON_SUCCESS, _DYN__SENDER, _DYN__XHR_READY_STATE_CHA6 } from \"./__DynamicConstants\";\nvar UNDEFINED_VALUE = undefined;\nvar FetchSyncRequestSizeLimitBytes = 65000; // approx 64kb (the current Edge, Firefox and Chrome max limit)\nfunction _getResponseText(xhr) {\n try {\n return xhr.responseText;\n } catch (e) {\n // Best effort, as XHR may throw while XDR wont so just ignore\n }\n return null;\n}\nvar defaultAppInsightsChannelConfig = objDeepFreeze((_a = {\n // Use the default value (handles empty string in the configuration)\n endpointUrl: cfgDfValidate(isTruthy, DEFAULT_BREEZE_ENDPOINT + DEFAULT_BREEZE_PATH)\n}, _a[_DYN_EMIT_LINE_DELIMITED_0 /* @min:emitLineDelimitedJson */] = cfgDfBoolean(), _a[_DYN_MAX_BATCH_INTERVAL /* @min:maxBatchInterval */] = 15000, _a[_DYN_MAX_BATCH_SIZE_IN_BY1 /* @min:maxBatchSizeInBytes */] = 102400, _a.disableTelemetry = cfgDfBoolean(), _a[_DYN_ENABLE_SESSION_STORA4 /* @min:enableSessionStorageBuffer */] = cfgDfBoolean(true), _a.isRetryDisabled = cfgDfBoolean(), _a[_DYN_IS_BEACON_API_DISABL3 /* @min:isBeaconApiDisabled */] = cfgDfBoolean(true), _a[_DYN_DISABLE_XHR /* @min:disableXhr */] = cfgDfBoolean(), _a[_DYN_ONUNLOAD_DISABLE_FET5 /* @min:onunloadDisableFetch */] = cfgDfBoolean(), _a[_DYN_ONUNLOAD_DISABLE_BEA2 /* @min:onunloadDisableBeacon */] = cfgDfBoolean(), _a[_DYN_INSTRUMENTATION_KEY /* @min:instrumentationKey */] = UNDEFINED_VALUE, _a.namePrefix = UNDEFINED_VALUE, _a.samplingPercentage = cfgDfValidate(_chkSampling, 100), _a[_DYN_CUSTOM_HEADERS /* @min:customHeaders */] = UNDEFINED_VALUE, _a[_DYN_CONVERT_UNDEFINED /* @min:convertUndefined */] = UNDEFINED_VALUE, _a[_DYN_EVENTS_LIMIT_IN_MEM /* @min:eventsLimitInMem */] = 10000, _a[_DYN_BUFFER_OVERRIDE /* @min:bufferOverride */] = false, _a));\nfunction _chkSampling(value) {\n return !isNaN(value) && value > 0 && value <= 100;\n}\nvar EnvelopeTypeCreator = (_b = {}, _b[Event.dataType] = EventEnvelopeCreator, _b[Trace.dataType] = TraceEnvelopeCreator, _b[PageView.dataType] = PageViewEnvelopeCreator, _b[PageViewPerformance.dataType] = PageViewPerformanceEnvelopeCreator, _b[Exception.dataType] = ExceptionEnvelopeCreator, _b[Metric.dataType] = MetricEnvelopeCreator, _b[RemoteDependencyData.dataType] = DependencyEnvelopeCreator, _b);\nvar Sender = /** @class */function (_super) {\n __extends(Sender, _super);\n function Sender() {\n var _this = _super.call(this) || this;\n _this.priority = 1001;\n _this.identifier = BreezeChannelIdentifier;\n // Don't set the defaults here, set them in the _initDefaults() as this is also called during unload\n var _consecutiveErrors; // How many times in a row a retryable error condition has occurred.\n var _retryAt; // The time to retry at in milliseconds from 1970/01/01 (this makes the timer calculation easy).\n var _lastSend; // The time of the last send operation.\n var _paused; // Flag indicating that the sending should be paused\n var _timeoutHandle; // Handle to the timer for delayed sending of batches of data.\n var _serializer;\n var _stamp_specific_redirects;\n var _headers;\n var _syncFetchPayload = 0; // Keep track of the outstanding sync fetch payload total (as sync fetch has limits)\n var _fallbackSender; // The sender to use if the payload size is too large\n var _syncUnloadSender; // The identified sender to use for the synchronous unload stage\n var _offlineListener;\n var _evtNamespace;\n var _endpointUrl;\n var _orgEndpointUrl;\n var _maxBatchSizeInBytes;\n var _beaconSupported;\n var _customHeaders;\n var _disableTelemetry;\n var _instrumentationKey;\n var _convertUndefined;\n var _isRetryDisabled;\n var _maxBatchInterval;\n var _sessionStorageUsed;\n var _bufferOverrideUsed;\n var _namePrefix;\n var _enableSendPromise;\n dynamicProto(Sender, _this, function (_self, _base) {\n _initDefaults();\n _self.pause = function () {\n _clearScheduledTimer();\n _paused = true;\n };\n _self.resume = function () {\n if (_paused) {\n _paused = false;\n _retryAt = null;\n // flush if we have exceeded the max-size already\n _checkMaxSize();\n _setupTimer();\n }\n };\n _self.flush = function (isAsync, callBack, sendReason) {\n if (isAsync === void 0) {\n isAsync = true;\n }\n if (!_paused) {\n // Clear the normal schedule timer as we are going to try and flush ASAP\n _clearScheduledTimer();\n try {\n return _self[_DYN_TRIGGER_SEND /* @min:%2etriggerSend */](isAsync, null, sendReason || 1 /* SendRequestReason.ManualFlush */);\n } catch (e) {\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 22 /* _eInternalMessageId.FlushFailed */, \"flush failed, telemetry will not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n }\n };\n _self.onunloadFlush = function () {\n if (!_paused) {\n if (_beaconSupported) {\n try {\n return _self[_DYN_TRIGGER_SEND /* @min:%2etriggerSend */](true, _doUnloadSend, 2 /* SendRequestReason.Unload */);\n } catch (e) {\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 20 /* _eInternalMessageId.FailedToSendQueuedTelemetry */, \"failed to flush with beacon sender on page unload, telemetry will not be collected: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n } else {\n _self.flush(false);\n }\n }\n };\n _self.addHeader = function (name, value) {\n _headers[name] = value;\n };\n _self.initialize = function (config, core, extensions, pluginChain) {\n if (_self.isInitialized()) {\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 28 /* _eInternalMessageId.SenderNotInitialized */, \"Sender is already initialized\");\n }\n _base.initialize(config, core, extensions, pluginChain);\n var identifier = _self.identifier;\n _serializer = new Serializer(core.logger);\n _consecutiveErrors = 0;\n _retryAt = null;\n _lastSend = 0;\n _self[_DYN__SENDER /* @min:%2e_sender */] = null;\n _stamp_specific_redirects = 0;\n var diagLog = _self[_DYN_DIAG_LOG /* @min:%2ediagLog */]();\n _evtNamespace = mergeEvtNamespace(createUniqueNamespace(\"Sender\"), core.evtNamespace && core.evtNamespace());\n _offlineListener = createOfflineListener(_evtNamespace);\n // This function will be re-called whenever any referenced configuration is changed\n _self._addHook(onConfigChange(config, function (details) {\n var config = details.cfg;\n if (config.storagePrefix) {\n utlSetStoragePrefix(config.storagePrefix);\n }\n var ctx = createProcessTelemetryContext(null, config, core);\n var senderConfig = ctx.getExtCfg(identifier, defaultAppInsightsChannelConfig);\n objDefine(_self, \"_senderConfig\", {\n g: function () {\n return senderConfig;\n }\n });\n // Only update the endpoint if the original config !== the current config\n // This is so any redirect endpointUrl is not overwritten\n if (_orgEndpointUrl !== senderConfig.endpointUrl) {\n if (_orgEndpointUrl) {\n // TODO: add doc to remind users to flush before changing endpoint, otherwise all unsent payload will be sent to new endpoint\n }\n _endpointUrl = _orgEndpointUrl = senderConfig.endpointUrl;\n }\n if (_customHeaders && _customHeaders !== senderConfig[_DYN_CUSTOM_HEADERS /* @min:%2ecustomHeaders */]) {\n // Removing any previously defined custom headers as they have changed\n arrForEach(_customHeaders, function (customHeader) {\n delete _headers[customHeader.header];\n });\n }\n _maxBatchSizeInBytes = senderConfig[_DYN_MAX_BATCH_SIZE_IN_BY1 /* @min:%2emaxBatchSizeInBytes */];\n _beaconSupported = (senderConfig[_DYN_ONUNLOAD_DISABLE_BEA2 /* @min:%2eonunloadDisableBeacon */] === false || senderConfig[_DYN_IS_BEACON_API_DISABL3 /* @min:%2eisBeaconApiDisabled */] === false) && isBeaconsSupported();\n var bufferOverride = senderConfig[_DYN_BUFFER_OVERRIDE /* @min:%2ebufferOverride */];\n var canUseSessionStorage = !!senderConfig[_DYN_ENABLE_SESSION_STORA4 /* @min:%2eenableSessionStorageBuffer */] && (!!bufferOverride || utlCanUseSessionStorage());\n var namePrefix = senderConfig.namePrefix;\n //Note: emitLineDelimitedJson and eventsLimitInMem is directly accessed via config in senderBuffer\n //Therefore, if canUseSessionStorage is not changed, we do not need to re initialize a new one\n var shouldUpdate = canUseSessionStorage !== _sessionStorageUsed || canUseSessionStorage && _namePrefix !== namePrefix // prefixName is only used in session storage\n || canUseSessionStorage && _bufferOverrideUsed !== bufferOverride;\n if (_self[_DYN__BUFFER /* @min:%2e_buffer */]) {\n // case1 (Pre and Now enableSessionStorageBuffer settings are same)\n // if namePrefix changes, transfer current buffer to new buffer\n // else no action needed\n //case2 (Pre and Now enableSessionStorageBuffer settings are changed)\n // transfer current buffer to new buffer\n if (shouldUpdate) {\n try {\n _self._buffer = _self._buffer[_DYN_CREATE_NEW /* @min:%2ecreateNew */](diagLog, senderConfig, canUseSessionStorage);\n } catch (e) {\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 12 /* _eInternalMessageId.FailedAddingTelemetryToBuffer */, \"failed to transfer telemetry to different buffer storage, telemetry will be lost: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n }\n _checkMaxSize();\n } else {\n _self[_DYN__BUFFER /* @min:%2e_buffer */] = canUseSessionStorage ? new SessionStorageSendBuffer(diagLog, senderConfig) : new ArraySendBuffer(diagLog, senderConfig);\n }\n _namePrefix = namePrefix;\n _sessionStorageUsed = canUseSessionStorage;\n _bufferOverrideUsed = bufferOverride;\n _self._sample = new Sample(senderConfig.samplingPercentage, diagLog);\n _instrumentationKey = senderConfig[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */];\n if (!_validateInstrumentationKey(_instrumentationKey, config)) {\n _throwInternal(diagLog, 1 /* eLoggingSeverity.CRITICAL */, 100 /* _eInternalMessageId.InvalidInstrumentationKey */, \"Invalid Instrumentation key \" + _instrumentationKey);\n }\n _customHeaders = senderConfig[_DYN_CUSTOM_HEADERS /* @min:%2ecustomHeaders */];\n if (!isInternalApplicationInsightsEndpoint(_endpointUrl) && _customHeaders && _customHeaders[_DYN_LENGTH /* @min:%2elength */] > 0) {\n arrForEach(_customHeaders, function (customHeader) {\n _this.addHeader(customHeader.header, customHeader.value);\n });\n } else {\n _customHeaders = null;\n }\n _enableSendPromise = senderConfig.enableSendPromise;\n var sendPostFunc = null;\n if (!senderConfig[_DYN_DISABLE_XHR /* @min:%2edisableXhr */] && useXDomainRequest()) {\n sendPostFunc = _xdrSender; // IE 8 and 9\n } else if (!senderConfig[_DYN_DISABLE_XHR /* @min:%2edisableXhr */] && isXhrSupported()) {\n sendPostFunc = _xhrSender;\n }\n if (!sendPostFunc && isFetchSupported()) {\n sendPostFunc = _fetchSender;\n }\n // always fallback to XHR\n _fallbackSender = sendPostFunc || _xhrSender;\n if (!senderConfig[_DYN_IS_BEACON_API_DISABL3 /* @min:%2eisBeaconApiDisabled */] && isBeaconsSupported()) {\n // Config is set to always used beacon sending\n sendPostFunc = _beaconSender;\n }\n _self[_DYN__SENDER /* @min:%2e_sender */] = sendPostFunc || _xhrSender;\n if (!senderConfig[_DYN_ONUNLOAD_DISABLE_FET5 /* @min:%2eonunloadDisableFetch */] && isFetchSupported(true)) {\n // Try and use the fetch with keepalive\n _syncUnloadSender = _fetchKeepAliveSender;\n } else if (isBeaconsSupported()) {\n // Try and use sendBeacon\n _syncUnloadSender = _beaconSender;\n } else if (!senderConfig[_DYN_DISABLE_XHR /* @min:%2edisableXhr */] && useXDomainRequest()) {\n _syncUnloadSender = _xdrSender; // IE 8 and 9\n } else if (!senderConfig[_DYN_DISABLE_XHR /* @min:%2edisableXhr */] && isXhrSupported()) {\n _syncUnloadSender = _xhrSender;\n } else {\n _syncUnloadSender = _fallbackSender;\n }\n _disableTelemetry = senderConfig.disableTelemetry;\n _convertUndefined = senderConfig[_DYN_CONVERT_UNDEFINED /* @min:%2econvertUndefined */] || UNDEFINED_VALUE;\n _isRetryDisabled = senderConfig.isRetryDisabled;\n _maxBatchInterval = senderConfig[_DYN_MAX_BATCH_INTERVAL /* @min:%2emaxBatchInterval */];\n }));\n };\n _self.processTelemetry = function (telemetryItem, itemCtx) {\n itemCtx = _self._getTelCtx(itemCtx);\n var diagLogger = itemCtx[_DYN_DIAG_LOG /* @min:%2ediagLog */]();\n try {\n // if master off switch is set, don't send any data\n if (_disableTelemetry) {\n // Do not send/save data\n return;\n }\n // validate input\n if (!telemetryItem) {\n _throwInternal(diagLogger, 1 /* eLoggingSeverity.CRITICAL */, 7 /* _eInternalMessageId.CannotSendEmptyTelemetry */, \"Cannot send empty telemetry\");\n return;\n }\n // validate event\n if (telemetryItem.baseData && !telemetryItem[_DYN_BASE_TYPE /* @min:%2ebaseType */]) {\n _throwInternal(diagLogger, 1 /* eLoggingSeverity.CRITICAL */, 70 /* _eInternalMessageId.InvalidEvent */, \"Cannot send telemetry without baseData and baseType\");\n return;\n }\n if (!telemetryItem[_DYN_BASE_TYPE /* @min:%2ebaseType */]) {\n // Default\n telemetryItem[_DYN_BASE_TYPE /* @min:%2ebaseType */] = \"EventData\";\n }\n // ensure a sender was constructed\n if (!_self[_DYN__SENDER /* @min:%2e_sender */]) {\n _throwInternal(diagLogger, 1 /* eLoggingSeverity.CRITICAL */, 28 /* _eInternalMessageId.SenderNotInitialized */, \"Sender was not initialized\");\n return;\n }\n // check if this item should be sampled in, else add sampleRate tag\n if (!_isSampledIn(telemetryItem)) {\n // Item is sampled out, do not send it\n _throwInternal(diagLogger, 2 /* eLoggingSeverity.WARNING */, 33 /* _eInternalMessageId.TelemetrySampledAndNotSent */, \"Telemetry item was sampled out and not sent\", {\n SampleRate: _self._sample[_DYN_SAMPLE_RATE /* @min:%2esampleRate */]\n });\n return;\n } else {\n telemetryItem[SampleRate] = _self._sample[_DYN_SAMPLE_RATE /* @min:%2esampleRate */];\n }\n // construct an envelope that Application Insights endpoint can understand\n // if ikey of telemetry is provided and not empty, envelope will use this iKey instead of senderConfig iKey\n var defaultEnvelopeIkey = telemetryItem.iKey || _instrumentationKey;\n var aiEnvelope_1 = Sender.constructEnvelope(telemetryItem, defaultEnvelopeIkey, diagLogger, _convertUndefined);\n if (!aiEnvelope_1) {\n _throwInternal(diagLogger, 1 /* eLoggingSeverity.CRITICAL */, 47 /* _eInternalMessageId.CreateEnvelopeError */, \"Unable to create an AppInsights envelope\");\n return;\n }\n var doNotSendItem_1 = false;\n // this is for running in legacy mode, where customer may already have a custom initializer present\n if (telemetryItem[_DYN_TAGS /* @min:%2etags */] && telemetryItem[_DYN_TAGS /* @min:%2etags */][ProcessLegacy]) {\n arrForEach(telemetryItem[_DYN_TAGS /* @min:%2etags */][ProcessLegacy], function (callBack) {\n try {\n if (callBack && callBack(aiEnvelope_1) === false) {\n doNotSendItem_1 = true;\n _warnToConsole(diagLogger, \"Telemetry processor check returns false\");\n }\n } catch (e) {\n // log error but dont stop executing rest of the telemetry initializers\n // doNotSendItem = true;\n _throwInternal(diagLogger, 1 /* eLoggingSeverity.CRITICAL */, 64 /* _eInternalMessageId.TelemetryInitializerFailed */, \"One of telemetry initializers failed, telemetry item will not be sent: \" + getExceptionName(e), {\n exception: dumpObj(e)\n }, true);\n }\n });\n delete telemetryItem[_DYN_TAGS /* @min:%2etags */][ProcessLegacy];\n }\n if (doNotSendItem_1) {\n return; // do not send, no need to execute next plugin\n }\n // check if the incoming payload is too large, truncate if necessary\n var payload = _serializer.serialize(aiEnvelope_1);\n // flush if we would exceed the max-size limit by adding this item\n var buffer = _self[_DYN__BUFFER /* @min:%2e_buffer */];\n _checkMaxSize(payload);\n // enqueue the payload\n buffer[_DYN_ENQUEUE /* @min:%2eenqueue */](payload);\n // ensure an invocation timeout is set\n _setupTimer();\n } catch (e) {\n _throwInternal(diagLogger, 2 /* eLoggingSeverity.WARNING */, 12 /* _eInternalMessageId.FailedAddingTelemetryToBuffer */, \"Failed adding telemetry to the sender's buffer, some telemetry will be lost: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n // hand off the telemetry item to the next plugin\n _self.processNext(telemetryItem, itemCtx);\n };\n /**\r\n * xhr state changes\r\n */\n _self[_DYN__XHR_READY_STATE_CHA6 /* @min:%2e_xhrReadyStateChange */] = function (xhr, payload, countOfItemsInPayload) {\n if (xhr.readyState === 4) {\n _checkResponsStatus(xhr.status, payload, xhr.responseURL, countOfItemsInPayload, _formatErrorMessageXhr(xhr), _getResponseText(xhr) || xhr.response);\n }\n };\n /**\r\n * Immediately send buffered data\r\n * @param async - {boolean} - Indicates if the events should be sent asynchronously\r\n * @param forcedSender - {SenderFunction} - Indicates the forcedSender, undefined if not passed\r\n */\n _self[_DYN_TRIGGER_SEND /* @min:%2etriggerSend */] = function (async, forcedSender, sendReason) {\n if (async === void 0) {\n async = true;\n }\n var result;\n if (!_paused) {\n try {\n var buffer = _self[_DYN__BUFFER /* @min:%2e_buffer */];\n // Send data only if disableTelemetry is false\n if (!_disableTelemetry) {\n if (buffer[_DYN_COUNT /* @min:%2ecount */]() > 0) {\n var payload = buffer.getItems();\n _notifySendRequest(sendReason || 0 /* SendRequestReason.Undefined */, async);\n // invoke send\n if (forcedSender) {\n result = forcedSender.call(_self, payload, async);\n } else {\n result = _self[_DYN__SENDER /* @min:%2e_sender */](payload, async);\n }\n }\n // update lastSend time to enable throttling\n _lastSend = +new Date();\n } else {\n buffer[_DYN_CLEAR /* @min:%2eclear */]();\n }\n _clearScheduledTimer();\n } catch (e) {\n /* Ignore this error for IE under v10 */\n var ieVer = getIEVersion();\n if (!ieVer || ieVer > 9) {\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 40 /* _eInternalMessageId.TransmissionFailed */, \"Telemetry transmission failed, some telemetry will be lost: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n }\n }\n return result;\n };\n _self._doTeardown = function (unloadCtx, unloadState) {\n _self.onunloadFlush();\n runTargetUnload(_offlineListener, false);\n _initDefaults();\n };\n /**\r\n * error handler\r\n */\n _self[_DYN__ON_ERROR /* @min:%2e_onError */] = function (payload, message, event) {\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 26 /* _eInternalMessageId.OnError */, \"Failed to send telemetry.\", {\n message: message\n });\n _self._buffer && _self._buffer[_DYN_CLEAR_SENT /* @min:%2eclearSent */](payload);\n };\n /**\r\n * partial success handler\r\n */\n _self[_DYN__ON_PARTIAL_SUCCESS /* @min:%2e_onPartialSuccess */] = function (payload, results) {\n var failed = [];\n var retry = [];\n // Iterate through the reversed array of errors so that splicing doesn't have invalid indexes after the first item.\n var errors = results.errors.reverse();\n for (var _i = 0, errors_1 = errors; _i < errors_1.length; _i++) {\n var error = errors_1[_i];\n var extracted = payload.splice(error.index, 1)[0];\n if (_isRetriable(error.statusCode)) {\n retry[_DYN_PUSH /* @min:%2epush */](extracted);\n } else {\n // All other errors, including: 402 (Monthly quota exceeded) and 439 (Too many requests and refresh cache).\n failed[_DYN_PUSH /* @min:%2epush */](extracted);\n }\n }\n if (payload[_DYN_LENGTH /* @min:%2elength */] > 0) {\n _self[_DYN__ON_SUCCESS /* @min:%2e_onSuccess */](payload, results[_DYN_ITEMS_ACCEPTED /* @min:%2eitemsAccepted */]);\n }\n if (failed[_DYN_LENGTH /* @min:%2elength */] > 0) {\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](failed, _formatErrorMessageXhr(null, [\"partial success\", results[_DYN_ITEMS_ACCEPTED /* @min:%2eitemsAccepted */], \"of\", results.itemsReceived].join(\" \")));\n }\n if (retry[_DYN_LENGTH /* @min:%2elength */] > 0) {\n _resendPayload(retry);\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, \"Partial success. \" + \"Delivered: \" + payload[_DYN_LENGTH /* @min:%2elength */] + \", Failed: \" + failed[_DYN_LENGTH /* @min:%2elength */] + \". Will retry to send \" + retry[_DYN_LENGTH /* @min:%2elength */] + \" our of \" + results[_DYN_ITEMS_RECEIVED /* @min:%2eitemsReceived */] + \" items\");\n }\n };\n /**\r\n * success handler\r\n */\n _self[_DYN__ON_SUCCESS /* @min:%2e_onSuccess */] = function (payload, countOfItemsInPayload) {\n _self._buffer && _self._buffer[_DYN_CLEAR_SENT /* @min:%2eclearSent */](payload);\n };\n /**\r\n * xdr state changes\r\n */\n _self._xdrOnLoad = function (xdr, payload) {\n var responseText = _getResponseText(xdr);\n if (xdr && (responseText + \"\" === \"200\" || responseText === \"\")) {\n _consecutiveErrors = 0;\n _self[_DYN__ON_SUCCESS /* @min:%2e_onSuccess */](payload, 0);\n } else {\n var results = _parseResponse(responseText);\n if (results && results.itemsReceived && results.itemsReceived > results[_DYN_ITEMS_ACCEPTED /* @min:%2eitemsAccepted */] && !_isRetryDisabled) {\n _self[_DYN__ON_PARTIAL_SUCCESS /* @min:%2e_onPartialSuccess */](payload, results);\n } else {\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, _formatErrorMessageXdr(xdr));\n }\n }\n };\n function _isSampledIn(envelope) {\n return _self._sample.isSampledIn(envelope);\n }\n function _checkMaxSize(incomingPayload) {\n var incomingSize = incomingPayload ? incomingPayload[_DYN_LENGTH /* @min:%2elength */] : 0;\n if (_self[_DYN__BUFFER /* @min:%2e_buffer */].size() + incomingSize > _maxBatchSizeInBytes) {\n if (!_offlineListener || _offlineListener[_DYN_IS_ONLINE /* @min:%2eisOnline */]()) {\n // only trigger send when currently online\n _self[_DYN_TRIGGER_SEND /* @min:%2etriggerSend */](true, null, 10 /* SendRequestReason.MaxBatchSize */);\n }\n return true;\n }\n return false;\n }\n function _checkResponsStatus(status, payload, responseUrl, countOfItemsInPayload, errorMessage, res) {\n var response = null;\n if (!_self._appId) {\n response = _parseResponse(res);\n if (response && response.appId) {\n _self._appId = response.appId;\n }\n }\n if ((status < 200 || status >= 300) && status !== 0) {\n // Update End Point url if permanent redirect or moved permanently\n // Updates the end point url before retry\n if (status === 301 || status === 307 || status === 308) {\n if (!_checkAndUpdateEndPointUrl(responseUrl)) {\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, errorMessage);\n return;\n }\n }\n if (!_isRetryDisabled && _isRetriable(status)) {\n _resendPayload(payload);\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, \". \" + \"Response code \" + status + \". Will retry to send \" + payload[_DYN_LENGTH /* @min:%2elength */] + \" items.\");\n } else {\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, errorMessage);\n }\n } else if (_offlineListener && !_offlineListener[_DYN_IS_ONLINE /* @min:%2eisOnline */]()) {\n // offline\n // Note: Don't check for status == 0, since adblock gives this code\n if (!_isRetryDisabled) {\n var offlineBackOffMultiplier = 10; // arbritrary number\n _resendPayload(payload, offlineBackOffMultiplier);\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, \". Offline - Response Code: \".concat(status, \". Offline status: \").concat(!_offlineListener.isOnline(), \". Will retry to send \").concat(payload.length, \" items.\"));\n }\n } else {\n // check if the xhr's responseURL or fetch's response.url is same as endpoint url\n // TODO after 10 redirects force send telemetry with 'redirect=false' as query parameter.\n _checkAndUpdateEndPointUrl(responseUrl);\n if (status === 206) {\n if (!response) {\n response = _parseResponse(res);\n }\n if (response && !_isRetryDisabled) {\n _self[_DYN__ON_PARTIAL_SUCCESS /* @min:%2e_onPartialSuccess */](payload, response);\n } else {\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, errorMessage);\n }\n } else {\n _consecutiveErrors = 0;\n _self[_DYN__ON_SUCCESS /* @min:%2e_onSuccess */](payload, countOfItemsInPayload);\n }\n }\n }\n function _checkAndUpdateEndPointUrl(responseUrl) {\n // Maximum stamp specific redirects allowed(uncomment this when breeze is ready with not allowing redirects feature)\n if (_stamp_specific_redirects >= 10) {\n // _self._senderConfig.endpointUrl = () => Sender._getDefaultAppInsightsChannelConfig().endpointUrl()+\"/?redirect=false\";\n // _stamp_specific_redirects = 0;\n return false;\n }\n if (!isNullOrUndefined(responseUrl) && responseUrl !== \"\") {\n if (responseUrl !== _endpointUrl) {\n _endpointUrl = responseUrl;\n ++_stamp_specific_redirects;\n return true;\n }\n }\n return false;\n }\n function _doUnloadSend(payload, isAsync) {\n if (_syncUnloadSender) {\n // We are unloading so always call the sender with sync set to false\n _syncUnloadSender(payload, false);\n } else {\n // Fallback to the previous beacon Sender (which causes a CORB warning on chrome now)\n _beaconSender(payload, isAsync);\n }\n }\n function _doBeaconSend(payload) {\n var nav = getNavigator();\n var buffer = _self[_DYN__BUFFER /* @min:%2e_buffer */];\n var url = _endpointUrl;\n var batch = _self._buffer[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */](payload);\n // Chrome only allows CORS-safelisted values for the sendBeacon data argument\n // see: https://bugs.chromium.org/p/chromium/issues/detail?id=720283\n var plainTextBatch = new Blob([batch], {\n type: \"text/plain;charset=UTF-8\"\n });\n // The sendBeacon method returns true if the user agent is able to successfully queue the data for transfer. Otherwise it returns false.\n var queued = nav.sendBeacon(url, plainTextBatch);\n if (queued) {\n buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);\n // no response from beaconSender, clear buffer\n _self._onSuccess(payload, payload[_DYN_LENGTH /* @min:%2elength */]);\n }\n return queued;\n }\n /**\r\n * Send Beacon API request\r\n * @param payload - {string} - The data payload to be sent.\r\n * @param isAsync - {boolean} - not used\r\n * Note: Beacon API does not support custom headers and we are not able to get\r\n * appId from the backend for the correct correlation.\r\n */\n function _beaconSender(payload, isAsync) {\n if (isArray(payload) && payload[_DYN_LENGTH /* @min:%2elength */] > 0) {\n // The sendBeacon method returns true if the user agent is able to successfully queue the data for transfer. Otherwise it returns false.\n if (!_doBeaconSend(payload)) {\n // Failed to send entire payload so try and split data and try to send as much events as possible\n var droppedPayload = [];\n for (var lp = 0; lp < payload[_DYN_LENGTH /* @min:%2elength */]; lp++) {\n var thePayload = payload[lp];\n if (!_doBeaconSend([thePayload])) {\n // Can't send anymore, so split the batch and drop the rest\n droppedPayload[_DYN_PUSH /* @min:%2epush */](thePayload);\n }\n }\n if (droppedPayload[_DYN_LENGTH /* @min:%2elength */] > 0) {\n _fallbackSender && _fallbackSender(droppedPayload, true);\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, \". \" + \"Failed to send telemetry with Beacon API, retried with normal sender.\");\n }\n }\n }\n }\n /**\r\n * Send XMLHttpRequest\r\n * @param payload - {string} - The data payload to be sent.\r\n * @param isAsync - {boolean} - Indicates if the request should be sent asynchronously\r\n */\n function _xhrSender(payload, isAsync) {\n var thePromise;\n var resolveFunc;\n var rejectFunc;\n var xhr = new XMLHttpRequest();\n var endPointUrl = _endpointUrl;\n try {\n xhr[DisabledPropertyName] = true;\n } catch (e) {\n // If the environment has locked down the XMLHttpRequest (preventExtensions and/or freeze), this would\n // cause the request to fail and we no telemetry would be sent\n }\n xhr.open(\"POST\", endPointUrl, isAsync);\n xhr[_DYN_SET_REQUEST_HEADER /* @min:%2esetRequestHeader */](\"Content-type\", \"application/json\");\n // append Sdk-Context request header only in case of breeze endpoint\n if (isInternalApplicationInsightsEndpoint(endPointUrl)) {\n xhr[_DYN_SET_REQUEST_HEADER /* @min:%2esetRequestHeader */](RequestHeaders[6 /* eRequestHeaders.sdkContextHeader */], RequestHeaders[7 /* eRequestHeaders.sdkContextHeaderAppIdRequest */]);\n }\n arrForEach(objKeys(_headers), function (headerName) {\n xhr[_DYN_SET_REQUEST_HEADER /* @min:%2esetRequestHeader */](headerName, _headers[headerName]);\n });\n xhr.onreadystatechange = function () {\n _self._xhrReadyStateChange(xhr, payload, payload[_DYN_LENGTH /* @min:%2elength */]);\n if (xhr.readyState === 4) {\n resolveFunc && resolveFunc(true);\n }\n };\n xhr.onerror = function (event) {\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, _formatErrorMessageXhr(xhr), event);\n rejectFunc && rejectFunc(event);\n };\n if (isAsync && _enableSendPromise) {\n thePromise = createPromise(function (resolve, reject) {\n resolveFunc = resolve;\n rejectFunc = reject;\n });\n }\n // compose an array of payloads\n var batch = _self._buffer[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */](payload);\n xhr.send(batch);\n _self._buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);\n return thePromise;\n }\n function _fetchKeepAliveSender(payload, isAsync) {\n if (isArray(payload)) {\n var payloadSize = payload[_DYN_LENGTH /* @min:%2elength */];\n for (var lp = 0; lp < payload[_DYN_LENGTH /* @min:%2elength */]; lp++) {\n payloadSize += payload[lp][_DYN_LENGTH /* @min:%2elength */];\n }\n if (_syncFetchPayload + payloadSize <= FetchSyncRequestSizeLimitBytes) {\n _doFetchSender(payload, false);\n } else if (isBeaconsSupported()) {\n // Fallback to beacon sender as we at least get told which events can't be scheduled\n _beaconSender(payload, isAsync);\n } else {\n // Payload is going to be too big so just try and send via XHR\n _fallbackSender && _fallbackSender(payload, true);\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, \". \" + \"Failed to send telemetry with Beacon API, retried with xhrSender.\");\n }\n }\n }\n /**\r\n * Send fetch API request\r\n * @param payload - {string} - The data payload to be sent.\r\n * @param isAsync - {boolean} - not used\r\n */\n function _fetchSender(payload, isAsync) {\n return _doFetchSender(payload, true);\n }\n /**\r\n * Send fetch API request\r\n * @param payload - {string} - The data payload to be sent.\r\n * @param isAsync - {boolean} - For fetch this identifies whether we are \"unloading\" (false) or a normal request\r\n */\n function _doFetchSender(payload, isAsync) {\n var _a;\n var endPointUrl = _endpointUrl;\n var batch = _self._buffer[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */](payload);\n var plainTextBatch = new Blob([batch], {\n type: \"application/json\"\n });\n var thePromise;\n var resolveFunc;\n var rejectFunc;\n var requestHeaders = new Headers();\n var batchLength = batch[_DYN_LENGTH /* @min:%2elength */];\n var ignoreResponse = false;\n var responseHandled = false;\n // append Sdk-Context request header only in case of breeze endpoint\n if (isInternalApplicationInsightsEndpoint(endPointUrl)) {\n requestHeaders.append(RequestHeaders[6 /* eRequestHeaders.sdkContextHeader */], RequestHeaders[7 /* eRequestHeaders.sdkContextHeaderAppIdRequest */]);\n }\n arrForEach(objKeys(_headers), function (headerName) {\n requestHeaders.append(headerName, _headers[headerName]);\n });\n var init = (_a = {\n method: \"POST\",\n headers: requestHeaders,\n body: plainTextBatch\n }, _a[DisabledPropertyName] = true // Mark so we don't attempt to track this request\n , _a);\n if (!isAsync) {\n init.keepalive = true;\n // As a sync request (during unload), it is unlikely that we will get a chance to process the response so\n // just like beacon send assume that the events have been accepted and processed\n ignoreResponse = true;\n _syncFetchPayload += batchLength;\n }\n var request = new Request(endPointUrl, init);\n try {\n // Also try and tag the request (just in case the value in init is not copied over)\n request[DisabledPropertyName] = true;\n } catch (e) {\n // If the environment has locked down the XMLHttpRequest (preventExtensions and/or freeze), this would\n // cause the request to fail and we no telemetry would be sent\n }\n _self._buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);\n if (isAsync && _enableSendPromise) {\n thePromise = createPromise(function (resolve, reject) {\n resolveFunc = resolve;\n rejectFunc = reject;\n });\n }\n try {\n doAwaitResponse(fetch(request), function (result) {\n if (!isAsync) {\n _syncFetchPayload -= batchLength;\n batchLength = 0;\n }\n if (!responseHandled) {\n responseHandled = true;\n if (!result.rejected) {\n var response_1 = result.value;\n /**\r\n * The Promise returned from fetch() won’t reject on HTTP error status even if the response is an HTTP 404 or 500.\r\n * Instead, it will resolve normally (with ok status set to false), and it will only reject on network failure\r\n * or if anything prevented the request from completing.\r\n */\n if (!response_1.ok) {\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, response_1.statusText);\n resolveFunc && resolveFunc(false);\n } else {\n doAwaitResponse(response_1.text(), function (resp) {\n _checkResponsStatus(response_1.status, payload, response_1.url, payload[_DYN_LENGTH /* @min:%2elength */], response_1.statusText, resp.value || \"\");\n resolveFunc && resolveFunc(true);\n });\n }\n } else {\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, result.reason && result.reason.message);\n rejectFunc && rejectFunc(result.reason);\n }\n }\n });\n } catch (e) {\n if (!responseHandled) {\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, dumpObj(e));\n rejectFunc && rejectFunc(e);\n }\n }\n if (ignoreResponse && !responseHandled) {\n // Assume success during unload processing as we most likely won't get the response\n responseHandled = true;\n _self._onSuccess(payload, payload[_DYN_LENGTH /* @min:%2elength */]);\n resolveFunc && resolveFunc(true);\n }\n return thePromise;\n }\n /**\r\n * Parses the response from the backend.\r\n * @param response - XMLHttpRequest or XDomainRequest response\r\n */\n function _parseResponse(response) {\n try {\n if (response && response !== \"\") {\n var result = getJSON().parse(response);\n if (result && result.itemsReceived && result.itemsReceived >= result[_DYN_ITEMS_ACCEPTED /* @min:%2eitemsAccepted */] && result.itemsReceived - result.itemsAccepted === result.errors[_DYN_LENGTH /* @min:%2elength */]) {\n return result;\n }\n }\n } catch (e) {\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 43 /* _eInternalMessageId.InvalidBackendResponse */, \"Cannot parse the response. \" + getExceptionName(e), {\n response: response\n });\n }\n return null;\n }\n /**\r\n * Resend payload. Adds payload back to the send buffer and setup a send timer (with exponential backoff).\r\n * @param payload\r\n */\n function _resendPayload(payload, linearFactor) {\n if (linearFactor === void 0) {\n linearFactor = 1;\n }\n if (!payload || payload[_DYN_LENGTH /* @min:%2elength */] === 0) {\n return;\n }\n var buffer = _self[_DYN__BUFFER /* @min:%2e_buffer */];\n buffer[_DYN_CLEAR_SENT /* @min:%2eclearSent */](payload);\n _consecutiveErrors++;\n for (var _i = 0, payload_1 = payload; _i < payload_1.length; _i++) {\n var item = payload_1[_i];\n buffer[_DYN_ENQUEUE /* @min:%2eenqueue */](item);\n }\n // setup timer\n _setRetryTime(linearFactor);\n _setupTimer();\n }\n /**\r\n * Calculates the time to wait before retrying in case of an error based on\r\n * http://en.wikipedia.org/wiki/Exponential_backoff\r\n */\n function _setRetryTime(linearFactor) {\n var SlotDelayInSeconds = 10;\n var delayInSeconds;\n if (_consecutiveErrors <= 1) {\n delayInSeconds = SlotDelayInSeconds;\n } else {\n var backOffSlot = (Math.pow(2, _consecutiveErrors) - 1) / 2;\n // tslint:disable-next-line:insecure-random\n var backOffDelay = Math.floor(Math.random() * backOffSlot * SlotDelayInSeconds) + 1;\n backOffDelay = linearFactor * backOffDelay;\n delayInSeconds = Math.max(Math.min(backOffDelay, 3600), SlotDelayInSeconds);\n }\n // TODO: Log the backoff time like the C# version does.\n var retryAfterTimeSpan = dateNow() + delayInSeconds * 1000;\n // TODO: Log the retry at time like the C# version does.\n _retryAt = retryAfterTimeSpan;\n }\n /**\r\n * Sets up the timer which triggers actually sending the data.\r\n */\n function _setupTimer() {\n if (!_timeoutHandle && !_paused) {\n var retryInterval = _retryAt ? Math.max(0, _retryAt - dateNow()) : 0;\n var timerValue = Math.max(_maxBatchInterval, retryInterval);\n _timeoutHandle = scheduleTimeout(function () {\n _timeoutHandle = null;\n _self[_DYN_TRIGGER_SEND /* @min:%2etriggerSend */](true, null, 1 /* SendRequestReason.NormalSchedule */);\n }, timerValue);\n }\n }\n function _clearScheduledTimer() {\n _timeoutHandle && _timeoutHandle.cancel();\n _timeoutHandle = null;\n _retryAt = null;\n }\n /**\r\n * Checks if the SDK should resend the payload after receiving this status code from the backend.\r\n * @param statusCode\r\n */\n function _isRetriable(statusCode) {\n return statusCode === 401 // Unauthorized\n || statusCode === 403 // Forbidden\n || statusCode === 408 // Timeout\n || statusCode === 429 // Too many requests.\n || statusCode === 500 // Internal server error.\n || statusCode === 502 // Bad Gateway.\n || statusCode === 503 // Service unavailable.\n || statusCode === 504; // Gateway timeout.\n }\n function _formatErrorMessageXhr(xhr, message) {\n if (xhr) {\n return \"XMLHttpRequest,Status:\" + xhr.status + \",Response:\" + _getResponseText(xhr) || xhr.response || \"\";\n }\n return message;\n }\n /**\r\n * Send XDomainRequest\r\n * @param payload - {string} - The data payload to be sent.\r\n * @param isAsync - {boolean} - Indicates if the request should be sent asynchronously\r\n *\r\n * Note: XDomainRequest does not support sync requests. This 'isAsync' parameter is added\r\n * to maintain consistency with the xhrSender's contract\r\n * Note: XDomainRequest does not support custom headers and we are not able to get\r\n * appId from the backend for the correct correlation.\r\n */\n function _xdrSender(payload, isAsync) {\n var buffer = _self[_DYN__BUFFER /* @min:%2e_buffer */];\n var _window = getWindow();\n var xdr = new XDomainRequest();\n // NOTE: xdr may send previous retry payload to new endpoint since we are not able to check response URL\n xdr.onload = function () {\n return _self._xdrOnLoad(xdr, payload);\n };\n xdr.onerror = function (event) {\n return _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, _formatErrorMessageXdr(xdr), event);\n };\n // XDomainRequest requires the same protocol as the hosting page.\n // If the protocol doesn't match, we can't send the telemetry :(.\n var hostingProtocol = _window && _window.location && _window.location.protocol || \"\";\n if (_endpointUrl.lastIndexOf(hostingProtocol, 0) !== 0) {\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, \". \" + \"Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.\");\n buffer[_DYN_CLEAR /* @min:%2eclear */]();\n return;\n }\n var endpointUrl = _endpointUrl.replace(/^(https?:)/, \"\");\n xdr.open(\"POST\", endpointUrl);\n // compose an array of payloads\n var batch = buffer[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */](payload);\n xdr.send(batch);\n buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);\n }\n function _formatErrorMessageXdr(xdr, message) {\n if (xdr) {\n return \"XDomainRequest,Response:\" + _getResponseText(xdr) || \"\";\n }\n return message;\n }\n // Using function lookups for backward compatibility as the getNotifyMgr() did not exist until after v2.5.6\n function _getNotifyMgr() {\n var func = \"getNotifyMgr\";\n if (_self.core[func]) {\n return _self.core[func]();\n }\n // using _self.core['_notificationManager'] for backward compatibility\n return _self.core[\"_notificationManager\"];\n }\n function _notifySendRequest(sendRequest, isAsync) {\n var manager = _getNotifyMgr();\n if (manager && manager[_DYN_EVENTS_SEND_REQUEST /* @min:%2eeventsSendRequest */]) {\n try {\n manager[_DYN_EVENTS_SEND_REQUEST /* @min:%2eeventsSendRequest */](sendRequest, isAsync);\n } catch (e) {\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 74 /* _eInternalMessageId.NotificationException */, \"send request notification failed: \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n }\n }\n /**\r\n * Validate UUID Format\r\n * Specs taken from https://tools.ietf.org/html/rfc4122 and breeze repo\r\n */\n function _validateInstrumentationKey(instrumentationKey, config) {\n var disableValidation = config.disableInstrumentationKeyValidation;\n var disableIKeyValidationFlag = isNullOrUndefined(disableValidation) ? false : disableValidation;\n if (disableIKeyValidationFlag) {\n return true;\n }\n var UUID_Regex = \"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$\";\n var regexp = new RegExp(UUID_Regex);\n return regexp.test(instrumentationKey);\n }\n function _initDefaults() {\n _self[_DYN__SENDER /* @min:%2e_sender */] = null;\n _self[_DYN__BUFFER /* @min:%2e_buffer */] = null;\n _self._appId = null;\n _self._sample = null;\n _headers = {};\n _offlineListener = null;\n _consecutiveErrors = 0;\n _retryAt = null;\n _lastSend = null;\n _paused = false;\n _timeoutHandle = null;\n _serializer = null;\n _stamp_specific_redirects = 0;\n _syncFetchPayload = 0;\n _fallbackSender = null;\n _syncUnloadSender = null;\n _evtNamespace = null;\n _endpointUrl = null;\n _orgEndpointUrl = null;\n _maxBatchSizeInBytes = 0;\n _beaconSupported = false;\n _customHeaders = null;\n _disableTelemetry = false;\n _instrumentationKey = null;\n _convertUndefined = UNDEFINED_VALUE;\n _isRetryDisabled = false;\n _sessionStorageUsed = null;\n _namePrefix = UNDEFINED_VALUE;\n objDefine(_self, \"_senderConfig\", {\n g: function () {\n return objExtend({}, defaultAppInsightsChannelConfig);\n }\n });\n }\n });\n return _this;\n }\n Sender.constructEnvelope = function (orig, iKey, logger, convertUndefined) {\n var envelope;\n if (iKey !== orig.iKey && !isNullOrUndefined(iKey)) {\n envelope = __assign(__assign({}, orig), {\n iKey: iKey\n });\n } else {\n envelope = orig;\n }\n var creator = EnvelopeTypeCreator[envelope.baseType] || EventEnvelopeCreator;\n return creator(logger, envelope, convertUndefined);\n };\n // Removed Stub for Sender.prototype.pause.\n // Removed Stub for Sender.prototype.resume.\n // Removed Stub for Sender.prototype.flush.\n // Removed Stub for Sender.prototype.onunloadFlush.\n // Removed Stub for Sender.prototype.initialize.\n // Removed Stub for Sender.prototype.processTelemetry.\n // Removed Stub for Sender.prototype._xhrReadyStateChange.\n // Removed Stub for Sender.prototype.triggerSend.\n // Removed Stub for Sender.prototype._onError.\n // Removed Stub for Sender.prototype._onPartialSuccess.\n // Removed Stub for Sender.prototype._onSuccess.\n // Removed Stub for Sender.prototype._xdrOnLoad.\n // Removed Stub for Sender.prototype.addHeader.\n return Sender;\n}(BaseTelemetryPlugin);\nexport { Sender };\n","/*\n * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// ###################################################################################################################################################\n// Note: DON'T Export these const from the package as we are still targeting IE/ES5 this will export a mutable variables that someone could change ###\n// ###################################################################################################################################################\n// Generally you should only put values that are used more than 2 times and then only if not already exposed as a constant (such as SdkCoreNames)\n// as when using \"short\" named values from here they will be will be minified smaller than the SdkCoreNames[eSdkCoreNames.xxxx] value.\nexport var STR_DURATION = \"duration\";\nexport var STR_PROPERTIES = \"properties\";\n","/*\n * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// @skip-file-minify\n// ##############################################################\n// AUTO GENERATED FILE: This file is Auto Generated during build.\n// ##############################################################\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nexport var _DYN_REQUEST_URL = \"requestUrl\"; // Count: 12\nexport var _DYN_INST = \"inst\"; // Count: 5\nexport var _DYN_LENGTH = \"length\"; // Count: 10\nexport var _DYN_TRACE_ID = \"traceID\"; // Count: 9\nexport var _DYN_SPAN_ID = \"spanID\"; // Count: 8\nexport var _DYN_TRACE_FLAGS = \"traceFlags\"; // Count: 13\nexport var _DYN_CONTEXT = \"context\"; // Count: 7\nexport var _DYN_ABORTED = \"aborted\"; // Count: 7\nexport var _DYN_TRACE_ID0 = \"traceId\"; // Count: 5\nexport var _DYN_SPAN_ID1 = \"spanId\"; // Count: 5\nexport var _DYN__ADD_HOOK = \"_addHook\"; // Count: 4\nexport var _DYN_CORE = \"core\"; // Count: 8\nexport var _DYN_INCLUDE_CORRELATION_2 = \"includeCorrelationHeaders\"; // Count: 4\nexport var _DYN_GET_ABSOLUTE_URL = \"getAbsoluteUrl\"; // Count: 3\nexport var _DYN_HEADERS = \"headers\"; // Count: 6\nexport var _DYN_REQUEST_HEADERS = \"requestHeaders\"; // Count: 13\nexport var _DYN_SET_REQUEST_HEADER = \"setRequestHeader\"; // Count: 3\nexport var _DYN_TRACK_DEPENDENCY_DAT3 = \"trackDependencyDataInternal\"; // Count: 2\nexport var _DYN_START_TIME = \"startTime\"; // Count: 6\nexport var _DYN_TO_LOWER_CASE = \"toLowerCase\"; // Count: 6\nexport var _DYN_ENABLE_REQUEST_HEADE4 = \"enableRequestHeaderTracking\"; // Count: 3\nexport var _DYN_ENABLE_AJAX_ERROR_ST5 = \"enableAjaxErrorStatusText\"; // Count: 2\nexport var _DYN_ENABLE_AJAX_PERF_TRA6 = \"enableAjaxPerfTracking\"; // Count: 2\nexport var _DYN_MAX_AJAX_CALLS_PER_V7 = \"maxAjaxCallsPerView\"; // Count: 2\nexport var _DYN_EXCLUDE_REQUEST_FROM8 = \"excludeRequestFromAutoTrackingPatterns\"; // Count: 2\nexport var _DYN_ADD_REQUEST_CONTEXT = \"addRequestContext\"; // Count: 2\nexport var _DYN_DISABLE_AJAX_TRACKIN9 = \"disableAjaxTracking\"; // Count: 3\nexport var _DYN_AJAX_PERF_LOOKUP_DEL10 = \"ajaxPerfLookupDelay\"; // Count: 2\nexport var _DYN_DISABLE_FETCH_TRACKI11 = \"disableFetchTracking\"; // Count: 2\nexport var _DYN_ENABLE_RESPONSE_HEAD12 = \"enableResponseHeaderTracking\"; // Count: 2\nexport var _DYN_STATUS = \"status\"; // Count: 11\nexport var _DYN_STATUS_TEXT = \"statusText\"; // Count: 9\nexport var _DYN_HEADER_MAP = \"headerMap\"; // Count: 8\nexport var _DYN_OPEN_DONE = \"openDone\"; // Count: 3\nexport var _DYN_SEND_DONE = \"sendDone\"; // Count: 3\nexport var _DYN_REQUEST_SENT_TIME = \"requestSentTime\"; // Count: 9\nexport var _DYN_ABORT_DONE = \"abortDone\"; // Count: 3\nexport var _DYN_GET_TRACE_ID = \"getTraceId\"; // Count: 3\nexport var _DYN_GET_TRACE_FLAGS = \"getTraceFlags\"; // Count: 3\nexport var _DYN_METHOD = \"method\"; // Count: 8\nexport var _DYN_ERROR_STATUS_TEXT = \"errorStatusText\"; // Count: 3\nexport var _DYN_STATE_CHANGE_ATTACHE13 = \"stateChangeAttached\"; // Count: 2\nexport var _DYN_RESPONSE_TEXT = \"responseText\"; // Count: 6\nexport var _DYN_RESPONSE_FINISHED_TI14 = \"responseFinishedTime\"; // Count: 7\nexport var _DYN__CREATE_TRACK_ITEM = \"CreateTrackItem\"; // Count: 3\nexport var _DYN_RESPONSE = \"response\"; // Count: 4\nexport var _DYN_GET_ALL_RESPONSE_HEA15 = \"getAllResponseHeaders\"; // Count: 2\nexport var _DYN_GET_PART_APROPS = \"getPartAProps\"; // Count: 3\nexport var _DYN_PERF_MARK = \"perfMark\"; // Count: 4\nexport var _DYN_NAME = \"name\"; // Count: 6\nexport var _DYN_PERF_TIMING = \"perfTiming\"; // Count: 3\nexport var _DYN_EXCEPTION = \"exception\"; // Count: 5\nexport var _DYN_AJAX_DIAGNOSTICS_MES16 = \"ajaxDiagnosticsMessage\"; // Count: 3\nexport var _DYN_CORRELATION_CONTEXT = \"correlationContext\"; // Count: 3\nexport var _DYN_AJAX_TOTAL_DURATION = \"ajaxTotalDuration\"; // Count: 3\nexport var _DYN_EVENT_TRACE_CTX = \"eventTraceCtx\"; // Count: 3\n","/*\n * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { Extensions, dataSanitizeUrl, dateTimeUtilsDuration, msToTimeSpan, urlGetAbsoluteUrl, urlGetCompleteUrl } from \"@microsoft/applicationinsights-common\";\nimport { arrForEach, isNullOrUndefined, isNumber, isString, normalizeJsName, objForEachKey, objKeys } from \"@microsoft/applicationinsights-core-js\";\nimport { STR_DURATION, STR_PROPERTIES } from \"./InternalConstants\";\nimport { _DYN_ABORTED, _DYN_ABORT_DONE, _DYN_AJAX_TOTAL_DURATION, _DYN_CORRELATION_CONTEXT, _DYN_ERROR_STATUS_TEXT, _DYN_EVENT_TRACE_CTX, _DYN_GET_ABSOLUTE_URL, _DYN_GET_PART_APROPS, _DYN_GET_TRACE_FLAGS, _DYN_GET_TRACE_ID, _DYN_HEADER_MAP, _DYN_LENGTH, _DYN_METHOD, _DYN_NAME, _DYN_OPEN_DONE, _DYN_PERF_MARK, _DYN_PERF_TIMING, _DYN_REQUEST_HEADERS, _DYN_REQUEST_SENT_TIME, _DYN_REQUEST_URL, _DYN_RESPONSE, _DYN_RESPONSE_FINISHED_TI14, _DYN_SEND_DONE, _DYN_SPAN_ID, _DYN_SPAN_ID1, _DYN_START_TIME, _DYN_STATE_CHANGE_ATTACHE13, _DYN_STATUS, _DYN_STATUS_TEXT, _DYN_TRACE_FLAGS, _DYN_TRACE_ID, _DYN_TRACE_ID0, _DYN__CREATE_TRACK_ITEM } from \"./__DynamicConstants\";\n/** @ignore */\nfunction _calcPerfDuration(resourceEntry, start, end) {\n var result = 0;\n var from = resourceEntry[start];\n var to = resourceEntry[end];\n if (from && to) {\n result = dateTimeUtilsDuration(from, to);\n }\n return result;\n}\n/** @ignore */\nfunction _setPerfDuration(props, name, resourceEntry, start, end) {\n var result = 0;\n var value = _calcPerfDuration(resourceEntry, start, end);\n if (value) {\n result = _setPerfValue(props, name, msToTimeSpan(value));\n }\n return result;\n}\n/** @ignore */\nfunction _setPerfValue(props, name, value) {\n var strPerf = \"ajaxPerf\";\n var result = 0;\n if (props && name && value) {\n var perfData = props[strPerf] = props[strPerf] || {};\n perfData[name] = value;\n result = 1;\n }\n return result;\n}\n/** @ignore */\nfunction _populatePerfData(ajaxData, dependency) {\n /*\r\n * https://developer.mozilla.org/en-US/docs/Web/API/Resource_Timing_API/Using_the_Resource_Timing_API\r\n * | -startTime\r\n * | -redirectStart\r\n * | | -redirectEnd\r\n * | | | -fetchStart\r\n * | | | | -domainLookupStart\r\n * | | | | |- domainLookupEnd\r\n * | | | | | | -connectStart\r\n * | | | | | | | -secureConnectionStart\r\n * | | | | | | | | -connectEnd\r\n * | | | | | | | | | -requestStart\r\n * | | | | | | | | | | | -responseStart\r\n * | | | | | | | | | | | | | -responseEnd\r\n * +------------+-+---+----------------+-+--+--------+-+-----------+-+------------+-+\r\n * |--redirect--| |---|--domainLookup--| |--connect--| |--request--| |--response--| |\r\n * |-------------------networkConnect----------------|\r\n * | |---------sentRequest--------|\r\n * |------------------------------------perfTotal-----------------------------------|\r\n */\n var resourceEntry = ajaxData[_DYN_PERF_TIMING /* @min:%2eperfTiming */];\n var props = dependency[STR_PROPERTIES /* @min:%2eproperties */] || {};\n var propsSet = 0;\n var strName = \"name\";\n var strStart = \"Start\";\n var strEnd = \"End\";\n var strDomainLookup = \"domainLookup\";\n var strConnect = \"connect\";\n var strRedirect = \"redirect\";\n var strRequest = \"request\";\n var strResponse = \"response\";\n var strStartTime = \"startTime\";\n var strDomainLookupStart = strDomainLookup + strStart;\n var strDomainLookupEnd = strDomainLookup + strEnd;\n var strConnectStart = strConnect + strStart;\n var strConnectEnd = strConnect + strEnd;\n var strRequestStart = strRequest + strStart;\n var strRequestEnd = strRequest + strEnd;\n var strResponseStart = strResponse + strStart;\n var strResponseEnd = strResponse + strEnd;\n var strRedirectStart = strRedirect + strStart;\n var strRedirectEnd = strRedirect = strEnd;\n var strTransferSize = \"transferSize\";\n var strEncodedBodySize = \"encodedBodySize\";\n var strDecodedBodySize = \"decodedBodySize\";\n var strServerTiming = \"serverTiming\";\n if (resourceEntry) {\n // redirect\n propsSet |= _setPerfDuration(props, strRedirect, resourceEntry, strRedirectStart, strRedirectEnd);\n // domainLookup\n propsSet |= _setPerfDuration(props, strDomainLookup, resourceEntry, strDomainLookupStart, strDomainLookupEnd);\n // connect\n propsSet |= _setPerfDuration(props, strConnect, resourceEntry, strConnectStart, strConnectEnd);\n // request\n propsSet |= _setPerfDuration(props, strRequest, resourceEntry, strRequestStart, strRequestEnd);\n // response\n propsSet |= _setPerfDuration(props, strResponse, resourceEntry, strResponseStart, strResponseEnd);\n // Network connection time\n propsSet |= _setPerfDuration(props, \"networkConnect\", resourceEntry, strStartTime, strConnectEnd);\n // Sent Request\n propsSet |= _setPerfDuration(props, \"sentRequest\", resourceEntry, strRequestStart, strResponseEnd);\n // PerfTotal / Duration\n var duration = resourceEntry[STR_DURATION /* @min:%2eduration */];\n if (!duration) {\n duration = _calcPerfDuration(resourceEntry, strStartTime, strResponseEnd) || 0;\n }\n propsSet |= _setPerfValue(props, STR_DURATION, duration);\n propsSet |= _setPerfValue(props, \"perfTotal\", duration);\n var serverTiming = resourceEntry[strServerTiming];\n if (serverTiming) {\n var server_1 = {};\n arrForEach(serverTiming, function (value, idx) {\n var name = normalizeJsName(value[strName] || \"\" + idx);\n var newValue = server_1[name] || {};\n objForEachKey(value, function (key, val) {\n if (key !== strName && isString(val) || isNumber(val)) {\n if (newValue[key]) {\n val = newValue[key] + \";\" + val;\n }\n if (val || !isString(val)) {\n // Only set the value if it has a value and it's not an empty string\n newValue[key] = val;\n }\n }\n });\n server_1[name] = newValue;\n });\n propsSet |= _setPerfValue(props, strServerTiming, server_1);\n }\n propsSet |= _setPerfValue(props, strTransferSize, resourceEntry[strTransferSize]);\n propsSet |= _setPerfValue(props, strEncodedBodySize, resourceEntry[strEncodedBodySize]);\n propsSet |= _setPerfValue(props, strDecodedBodySize, resourceEntry[strDecodedBodySize]);\n } else {\n if (ajaxData[_DYN_PERF_MARK /* @min:%2eperfMark */]) {\n propsSet |= _setPerfValue(props, \"missing\", ajaxData.perfAttempts);\n }\n }\n if (propsSet) {\n dependency[STR_PROPERTIES /* @min:%2eproperties */] = props;\n }\n}\nvar XHRMonitoringState = /** @class */function () {\n function XHRMonitoringState() {\n var self = this;\n self[_DYN_OPEN_DONE /* @min:%2eopenDone */] = false;\n self.setRequestHeaderDone = false;\n self[_DYN_SEND_DONE /* @min:%2esendDone */] = false;\n self[_DYN_ABORT_DONE /* @min:%2eabortDone */] = false;\n // True, if onreadyStateChangeCallback function attached to xhr, otherwise false\n self[_DYN_STATE_CHANGE_ATTACHE13 /* @min:%2estateChangeAttached */] = false;\n }\n return XHRMonitoringState;\n}();\nexport { XHRMonitoringState };\nvar ajaxRecord = /** @class */function () {\n function ajaxRecord(traceId, spanId, logger, traceCtx) {\n var _a;\n var self = this;\n var _logger = logger;\n var strResponseText = \"responseText\";\n // Assigning the initial/default values within the constructor to avoid typescript from creating a bunch of\n // this.XXXX = null\n self[_DYN_PERF_MARK /* @min:%2eperfMark */] = null;\n self.completed = false;\n self.requestHeadersSize = null;\n self[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */] = null;\n self.responseReceivingDuration = null;\n self.callbackDuration = null;\n self[_DYN_AJAX_TOTAL_DURATION /* @min:%2eajaxTotalDuration */] = null;\n self[_DYN_ABORTED /* @min:%2eaborted */] = 0;\n self.pageUrl = null;\n self[_DYN_REQUEST_URL /* @min:%2erequestUrl */] = null;\n self.requestSize = 0;\n self[_DYN_METHOD /* @min:%2emethod */] = null;\n self[_DYN_STATUS /* @min:%2estatus */] = null;\n self[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */] = null;\n self.responseStartedTime = null;\n self[_DYN_RESPONSE_FINISHED_TI14 /* @min:%2eresponseFinishedTime */] = null;\n self.callbackFinishedTime = null;\n self.endTime = null;\n self.xhrMonitoringState = new XHRMonitoringState();\n self.clientFailure = 0;\n self[_DYN_TRACE_ID /* @min:%2etraceID */] = traceId;\n self[_DYN_SPAN_ID /* @min:%2espanID */] = spanId;\n self[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = traceCtx === null || traceCtx === void 0 ? void 0 : traceCtx.getTraceFlags();\n if (traceCtx) {\n self[_DYN_EVENT_TRACE_CTX /* @min:%2eeventTraceCtx */] = (_a = {}, _a[_DYN_TRACE_ID0 /* @min:traceId */] = traceCtx[_DYN_GET_TRACE_ID /* @min:%2egetTraceId */](), _a[_DYN_SPAN_ID1 /* @min:spanId */] = traceCtx.getSpanId(), _a[_DYN_TRACE_FLAGS /* @min:traceFlags */] = traceCtx[_DYN_GET_TRACE_FLAGS /* @min:%2egetTraceFlags */](), _a);\n } else {\n self[_DYN_EVENT_TRACE_CTX /* @min:%2eeventTraceCtx */] = null;\n }\n dynamicProto(ajaxRecord, self, function (self) {\n self.getAbsoluteUrl = function () {\n return self[_DYN_REQUEST_URL /* @min:%2erequestUrl */] ? urlGetAbsoluteUrl(self[_DYN_REQUEST_URL /* @min:%2erequestUrl */]) : null;\n };\n self.getPathName = function () {\n return self[_DYN_REQUEST_URL /* @min:%2erequestUrl */] ? dataSanitizeUrl(_logger, urlGetCompleteUrl(self[_DYN_METHOD /* @min:%2emethod */], self[_DYN_REQUEST_URL /* @min:%2erequestUrl */])) : null;\n };\n self[_DYN__CREATE_TRACK_ITEM /* @min:%2eCreateTrackItem */] = function (ajaxType, enableRequestHeaderTracking, getResponse) {\n var _a;\n // round to 3 decimal points\n self.ajaxTotalDuration = Math.round(dateTimeUtilsDuration(self.requestSentTime, self.responseFinishedTime) * 1000) / 1000;\n if (self[_DYN_AJAX_TOTAL_DURATION /* @min:%2eajaxTotalDuration */] < 0) {\n return null;\n }\n var dependency = (_a = {\n id: \"|\" + self[_DYN_TRACE_ID /* @min:%2etraceID */] + \".\" + self[_DYN_SPAN_ID /* @min:%2espanID */],\n target: self[_DYN_GET_ABSOLUTE_URL /* @min:%2egetAbsoluteUrl */]()\n }, _a[_DYN_NAME /* @min:name */] = self.getPathName(), _a.type = ajaxType, _a[_DYN_START_TIME /* @min:startTime */] = null, _a.duration = self[_DYN_AJAX_TOTAL_DURATION /* @min:%2eajaxTotalDuration */], _a.success = +self[_DYN_STATUS /* @min:%2estatus */] >= 200 && +self[_DYN_STATUS /* @min:%2estatus */] < 400, _a.responseCode = +self[_DYN_STATUS /* @min:%2estatus */], _a[STR_PROPERTIES] = {\n HttpMethod: self[_DYN_METHOD /* @min:%2emethod */]\n }, _a);\n var props = dependency[STR_PROPERTIES];\n if (self[_DYN_ABORTED /* @min:%2eaborted */]) {\n props[_DYN_ABORTED /* @min:%2eaborted */] = true;\n }\n if (self[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */]) {\n // Set the correct dependency start time\n dependency[_DYN_START_TIME /* @min:%2estartTime */] = new Date();\n dependency[_DYN_START_TIME /* @min:%2estartTime */].setTime(self[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */]);\n }\n // Add Ajax perf details if available\n _populatePerfData(self, dependency);\n if (enableRequestHeaderTracking) {\n if (objKeys(self.requestHeaders)[_DYN_LENGTH /* @min:%2elength */] > 0) {\n props[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */] = self[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */];\n }\n }\n if (getResponse) {\n var response = getResponse();\n if (response) {\n // enrich dependency target with correlation context from the server\n var correlationContext = response[_DYN_CORRELATION_CONTEXT /* @min:%2ecorrelationContext */];\n if (correlationContext) {\n dependency.correlationContext = /* dependency.target + \" | \" + */correlationContext;\n }\n if (response[_DYN_HEADER_MAP /* @min:%2eheaderMap */]) {\n if (objKeys(response.headerMap)[_DYN_LENGTH /* @min:%2elength */] > 0) {\n props.responseHeaders = response[_DYN_HEADER_MAP /* @min:%2eheaderMap */];\n }\n }\n if (self[_DYN_ERROR_STATUS_TEXT /* @min:%2eerrorStatusText */]) {\n if (self[_DYN_STATUS /* @min:%2estatus */] >= 400) {\n var responseType = response.type;\n if (responseType === \"\" || responseType === \"text\") {\n props.responseText = response.responseText ? response[_DYN_STATUS_TEXT /* @min:%2estatusText */] + \" - \" + response[strResponseText] : response[_DYN_STATUS_TEXT /* @min:%2estatusText */];\n }\n if (responseType === \"json\") {\n props.responseText = response.response ? response[_DYN_STATUS_TEXT /* @min:%2estatusText */] + \" - \" + JSON.stringify(response[_DYN_RESPONSE /* @min:%2eresponse */]) : response[_DYN_STATUS_TEXT /* @min:%2estatusText */];\n }\n } else if (self[_DYN_STATUS /* @min:%2estatus */] === 0) {\n props.responseText = response[_DYN_STATUS_TEXT /* @min:%2estatusText */] || \"\";\n }\n }\n }\n }\n return dependency;\n };\n self[_DYN_GET_PART_APROPS /* @min:%2egetPartAProps */] = function () {\n var _a;\n var partA = null;\n var traceCtx = self[_DYN_EVENT_TRACE_CTX /* @min:%2eeventTraceCtx */];\n if (traceCtx && (traceCtx[_DYN_TRACE_ID0 /* @min:%2etraceId */] || traceCtx[_DYN_SPAN_ID1 /* @min:%2espanId */])) {\n partA = {};\n var traceExt = partA[Extensions.TraceExt] = (_a = {}, _a[_DYN_TRACE_ID /* @min:traceID */] = traceCtx[_DYN_TRACE_ID0 /* @min:%2etraceId */], _a.parentID = traceCtx[_DYN_SPAN_ID1 /* @min:%2espanId */], _a);\n if (!isNullOrUndefined(traceCtx[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */])) {\n traceExt[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = traceCtx[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */];\n }\n }\n return partA;\n };\n });\n }\n // Removed Stub for ajaxRecord.prototype.getAbsoluteUrl.\n // Removed Stub for ajaxRecord.prototype.getPathName.\n // Removed Stub for ajaxRecord.prototype.CreateTrackItem.\n // Removed Stub for ajaxRecord.prototype.getPartAProps.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n ajaxRecord.__ieDyn = 1;\n return ajaxRecord;\n}();\nexport { ajaxRecord };\n","/*\n * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nvar _a;\nimport { __assignFn as __assign, __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { DisabledPropertyName, PropertiesPluginIdentifier, RemoteDependencyData, RequestHeaders, correlationIdCanIncludeCorrelationHeader, correlationIdGetCorrelationContext, createDistributedTraceContextFromTrace, createTelemetryItem, createTraceParent, dateTimeUtilsNow, formatTraceParent, isInternalApplicationInsightsEndpoint } from \"@microsoft/applicationinsights-common\";\nimport { BaseTelemetryPlugin, InstrumentFunc, InstrumentProto, _throwInternal, arrForEach, createProcessTelemetryContext, createUniqueNamespace, dumpObj, eventOn, generateW3CId, getExceptionName, getGlobal, getIEVersion, getLocation, getPerformance, isFunction, isNullOrUndefined, isString, isXhrSupported, mergeEvtNamespace, onConfigChange, strPrototype, strTrim } from \"@microsoft/applicationinsights-core-js\";\nimport { isWebWorker, objFreeze, scheduleTimeout, strIndexOf, strSubstr, strSubstring } from \"@nevware21/ts-utils\";\nimport { STR_PROPERTIES } from \"./InternalConstants\";\nimport { _DYN_ABORTED, _DYN_ABORT_DONE, _DYN_ADD_REQUEST_CONTEXT, _DYN_AJAX_DIAGNOSTICS_MES16, _DYN_AJAX_PERF_LOOKUP_DEL10, _DYN_CONTEXT, _DYN_CORE, _DYN_CORRELATION_CONTEXT, _DYN_DISABLE_AJAX_TRACKIN9, _DYN_DISABLE_FETCH_TRACKI11, _DYN_ENABLE_AJAX_ERROR_ST5, _DYN_ENABLE_AJAX_PERF_TRA6, _DYN_ENABLE_REQUEST_HEADE4, _DYN_ENABLE_RESPONSE_HEAD12, _DYN_ERROR_STATUS_TEXT, _DYN_EXCEPTION, _DYN_EXCLUDE_REQUEST_FROM8, _DYN_GET_ABSOLUTE_URL, _DYN_GET_ALL_RESPONSE_HEA15, _DYN_GET_PART_APROPS, _DYN_GET_TRACE_FLAGS, _DYN_GET_TRACE_ID, _DYN_HEADERS, _DYN_HEADER_MAP, _DYN_INCLUDE_CORRELATION_2, _DYN_INST, _DYN_LENGTH, _DYN_MAX_AJAX_CALLS_PER_V7, _DYN_METHOD, _DYN_NAME, _DYN_OPEN_DONE, _DYN_PERF_MARK, _DYN_PERF_TIMING, _DYN_REQUEST_HEADERS, _DYN_REQUEST_SENT_TIME, _DYN_REQUEST_URL, _DYN_RESPONSE, _DYN_RESPONSE_FINISHED_TI14, _DYN_RESPONSE_TEXT, _DYN_SEND_DONE, _DYN_SET_REQUEST_HEADER, _DYN_SPAN_ID, _DYN_SPAN_ID1, _DYN_START_TIME, _DYN_STATE_CHANGE_ATTACHE13, _DYN_STATUS, _DYN_STATUS_TEXT, _DYN_TO_LOWER_CASE, _DYN_TRACE_FLAGS, _DYN_TRACE_ID, _DYN_TRACE_ID0, _DYN_TRACK_DEPENDENCY_DAT3, _DYN__ADD_HOOK, _DYN__CREATE_TRACK_ITEM } from \"./__DynamicConstants\";\nimport { ajaxRecord } from \"./ajaxRecord\";\nvar AJAX_MONITOR_PREFIX = \"ai.ajxmn.\";\nvar strDiagLog = \"diagLog\";\nvar AJAX_DATA_CONTAINER = \"_ajaxData\";\nvar STR_FETCH = \"fetch\";\nvar ERROR_HEADER = \"Failed to monitor XMLHttpRequest\";\nvar ERROR_PREFIX = \", monitoring data for this ajax call \";\nvar ERROR_POSTFIX = ERROR_PREFIX + \"may be incorrect.\";\nvar ERROR_NOT_SENT = ERROR_PREFIX + \"won't be sent.\";\nvar CORRELATION_HEADER_ERROR = \"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.\";\nvar CUSTOM_REQUEST_CONTEXT_ERROR = \"Failed to add custom defined request context as configured call back may missing a null check.\";\nvar FAILED_TO_CALCULATE_DURATION_ERROR = \"Failed to calculate the duration of the \";\n// Using a global value so that to handle same iKey with multiple app insights instances (mostly for testing)\nvar _markCount = 0;\n/** @Ignore */\nfunction _supportsFetch() {\n var _global = getGlobal();\n if (!_global || isNullOrUndefined(_global.Request) || isNullOrUndefined(_global.Request[strPrototype]) || isNullOrUndefined(_global[STR_FETCH])) {\n return null;\n }\n return _global[STR_FETCH];\n}\n/**\r\n * Determines whether ajax monitoring can be enabled on this document\r\n * @returns True if Ajax monitoring is supported on this page, otherwise false\r\n * @ignore\r\n */\nfunction _supportsAjaxMonitoring(ajaxMonitorInstance, ajaxDataId) {\n var _a, _b;\n var result = false;\n if (isXhrSupported()) {\n var proto = XMLHttpRequest[strPrototype];\n result = !isNullOrUndefined(proto) && !isNullOrUndefined(proto.open) &&\n // eslint-disable-line security/detect-non-literal-fs-filename -- false positive\n !isNullOrUndefined(proto.send) && !isNullOrUndefined(proto.abort);\n }\n var ieVer = getIEVersion();\n if (ieVer && ieVer < 9) {\n result = false;\n }\n if (result) {\n // Disable if the XmlHttpRequest can't be extended or hooked\n try {\n var xhr = new XMLHttpRequest();\n var xhrData = {\n xh: [],\n i: (_a = {}, _a[ajaxDataId] = {}, _a)\n };\n xhr[AJAX_DATA_CONTAINER] = xhrData;\n // Check that we can update the prototype\n var theOpen = XMLHttpRequest[strPrototype].open;\n XMLHttpRequest[strPrototype].open = theOpen;\n } catch (e) {\n // We can't decorate the xhr object so disable monitoring\n result = false;\n _throwInternalCritical(ajaxMonitorInstance, 15 /* _eInternalMessageId.FailedMonitorAjaxOpen */, \"Failed to enable XMLHttpRequest monitoring, extension is not supported\", (_b = {}, _b[_DYN_EXCEPTION /* @min:exception */] = dumpObj(e), _b));\n }\n }\n return result;\n}\n/**\r\n * Internal helper to fetch the SDK instance tracking data for this XHR request\r\n * @param xhr\r\n * @param ajaxDataId\r\n * @returns\r\n */\nvar _getAjaxData = function (xhr, ajaxDataId) {\n if (xhr && ajaxDataId && xhr[AJAX_DATA_CONTAINER]) {\n return (xhr[AJAX_DATA_CONTAINER].i || {})[ajaxDataId];\n }\n return null;\n};\n/**\r\n * @ignore\r\n * Internal helper to track the singleton shared tracking headers, so we can attempt to not create headers\r\n * that might cause an issue if multiple values are populated.\r\n * @param xhr - The instrumented XHR instance\r\n */\nvar _addSharedXhrHeaders = function (xhr, name, value) {\n if (xhr) {\n var headers = (xhr[AJAX_DATA_CONTAINER] || {}).xh;\n if (headers) {\n headers.push({\n n: name,\n v: value\n });\n }\n }\n};\nvar _isHeaderSet = function (xhr, name) {\n var isPresent = false;\n if (xhr) {\n var headers = (xhr[AJAX_DATA_CONTAINER] || {}).xh;\n if (headers) {\n arrForEach(headers, function (header) {\n if (header.n === name) {\n isPresent = true;\n return -1;\n }\n });\n }\n }\n return isPresent;\n};\n/** @Ignore */\nfunction _getFailedAjaxDiagnosticsMessage(xhr, ajaxDataId) {\n var result = \"\";\n try {\n var ajaxData = _getAjaxData(xhr, ajaxDataId);\n if (ajaxData && ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */]) {\n result += \"(url: '\" + ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */] + \"')\";\n }\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n return result;\n}\n/** @ignore */\nfunction _throwInternalCritical(ajaxMonitorInstance, msgId, message, properties, isUserAct) {\n _throwInternal(ajaxMonitorInstance[strDiagLog](), 1 /* eLoggingSeverity.CRITICAL */, msgId, message, properties, isUserAct);\n}\n/** @ignore */\nfunction _throwInternalWarning(ajaxMonitorInstance, msgId, message, properties, isUserAct) {\n _throwInternal(ajaxMonitorInstance[strDiagLog](), 2 /* eLoggingSeverity.WARNING */, msgId, message, properties, isUserAct);\n}\n/** @Ignore */\nfunction _createErrorCallbackFunc(ajaxMonitorInstance, internalMessage, message) {\n // tslint:disable-next-line\n return function (callDetails) {\n var _a;\n _throwInternalCritical(ajaxMonitorInstance, internalMessage, message, (_a = {\n ajaxDiagnosticsMessage: _getFailedAjaxDiagnosticsMessage(callDetails[_DYN_INST /* @min:%2einst */], ajaxMonitorInstance._ajaxDataId)\n }, _a[_DYN_EXCEPTION /* @min:exception */] = dumpObj(callDetails.err), _a));\n };\n}\nfunction _indexOf(value, match) {\n if (value && match) {\n return strIndexOf(value, match);\n }\n return -1;\n}\nfunction _addHandler(container, id, theFunc) {\n var theHandler = {\n id: id,\n fn: theFunc\n };\n container.push(theHandler);\n return {\n remove: function () {\n arrForEach(container, function (initializer, idx) {\n if (initializer.id === theHandler.id) {\n container.splice(idx, 1);\n return -1;\n }\n });\n }\n };\n}\nfunction _processDependencyContainer(core, container, details, message) {\n var result = true;\n arrForEach(container, function (theFunc, idx) {\n try {\n if (theFunc.fn.call(null, details) === false) {\n result = false;\n }\n } catch (e) {\n _throwInternal(core && core.logger, 1 /* eLoggingSeverity.CRITICAL */, 64 /* _eInternalMessageId.TelemetryInitializerFailed */, \"Dependency \" + message + \" [#\" + idx + \"] failed: \" + getExceptionName(e), {\n exception: dumpObj(e)\n }, true);\n }\n });\n return result;\n}\nfunction _processDependencyListeners(listeners, core, ajaxData, xhr, input, init) {\n var _a;\n var initializersCount = listeners[_DYN_LENGTH /* @min:%2elength */];\n if (initializersCount > 0) {\n var details = (_a = {}, _a[_DYN_CORE /* @min:core */] = core, _a.xhr = xhr, _a.input = input, _a.init = init, _a.traceId = ajaxData[_DYN_TRACE_ID /* @min:%2etraceID */], _a.spanId = ajaxData[_DYN_SPAN_ID /* @min:%2espanID */], _a.traceFlags = ajaxData[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */], _a.context = ajaxData[_DYN_CONTEXT /* @min:%2econtext */] || {}, _a.aborted = !!ajaxData[_DYN_ABORTED /* @min:%2eaborted */], _a);\n _processDependencyContainer(core, listeners, details, \"listener\");\n ajaxData[_DYN_TRACE_ID /* @min:%2etraceID */] = details[_DYN_TRACE_ID0 /* @min:%2etraceId */];\n ajaxData[_DYN_SPAN_ID /* @min:%2espanID */] = details[_DYN_SPAN_ID1 /* @min:%2espanId */];\n ajaxData[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = details[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */];\n ajaxData[_DYN_CONTEXT /* @min:%2econtext */] = details[_DYN_CONTEXT /* @min:%2econtext */];\n }\n}\nvar BLOB_CORE = \"*.blob.core.\";\nexport var DfltAjaxCorrelationHeaderExDomains = objFreeze([BLOB_CORE + \"windows.net\", BLOB_CORE + \"chinacloudapi.cn\", BLOB_CORE + \"cloudapi.de\", BLOB_CORE + \"usgovcloudapi.net\"]);\nvar _internalExcludeEndpoints = [/https:\\/\\/[^\\/]*(\\.pipe\\.aria|aria\\.pipe|events\\.data|collector\\.azure)\\.[^\\/]+\\/(OneCollector\\/1|Collector\\/3)\\.0/i];\nvar _defaultConfig = objFreeze((_a = {}, _a[_DYN_MAX_AJAX_CALLS_PER_V7 /* @min:maxAjaxCallsPerView */] = 500, _a[_DYN_DISABLE_AJAX_TRACKIN9 /* @min:disableAjaxTracking */] = false, _a[_DYN_DISABLE_FETCH_TRACKI11 /* @min:disableFetchTracking */] = false, _a[_DYN_EXCLUDE_REQUEST_FROM8 /* @min:excludeRequestFromAutoTrackingPatterns */] = undefined, _a.disableCorrelationHeaders = false, _a.distributedTracingMode = 1 /* eDistributedTracingModes.AI_AND_W3C */, _a.correlationHeaderExcludedDomains = DfltAjaxCorrelationHeaderExDomains, _a.correlationHeaderDomains = undefined, _a.correlationHeaderExcludePatterns = undefined, _a.appId = undefined, _a.enableCorsCorrelation = false, _a[_DYN_ENABLE_REQUEST_HEADE4 /* @min:enableRequestHeaderTracking */] = false, _a[_DYN_ENABLE_RESPONSE_HEAD12 /* @min:enableResponseHeaderTracking */] = false, _a[_DYN_ENABLE_AJAX_ERROR_ST5 /* @min:enableAjaxErrorStatusText */] = false, _a[_DYN_ENABLE_AJAX_PERF_TRA6 /* @min:enableAjaxPerfTracking */] = false, _a.maxAjaxPerfLookupAttempts = 3, _a[_DYN_AJAX_PERF_LOOKUP_DEL10 /* @min:ajaxPerfLookupDelay */] = 25, _a.ignoreHeaders = [\"Authorization\", \"X-API-Key\", \"WWW-Authenticate\"], _a[_DYN_ADD_REQUEST_CONTEXT /* @min:addRequestContext */] = undefined, _a.addIntEndpoints = true, _a));\nvar AjaxMonitor = /** @class */function (_super) {\n __extends(AjaxMonitor, _super);\n function AjaxMonitor() {\n var _this = _super.call(this) || this;\n _this.identifier = AjaxMonitor.identifier;\n _this.priority = 120;\n var _fetchInitialized; // fetch monitoring initialized\n var _xhrInitialized; // XHR monitoring initialized\n var _currentWindowHost;\n var _extensionConfig;\n var _enableRequestHeaderTracking;\n var _enableAjaxErrorStatusText;\n var _trackAjaxAttempts;\n var _context;\n var _isUsingW3CHeaders;\n var _isUsingAIHeaders;\n var _markPrefix;\n var _enableAjaxPerfTracking;\n var _maxAjaxCallsPerView;\n var _enableResponseHeaderTracking;\n var _disabledUrls;\n var _disableAjaxTracking;\n var _disableFetchTracking;\n var _excludeRequestFromAutoTrackingPatterns;\n var _addRequestContext;\n var _evtNamespace;\n var _ajaxDataId;\n var _dependencyHandlerId;\n var _dependencyListeners;\n var _dependencyInitializers;\n var _ignoreHeaders;\n var _maxAjaxPerfLookupAttempts;\n var _ajaxPerfLookupDelay;\n var _distributedTracingMode;\n var _appId;\n var _polyfillInitialized;\n dynamicProto(AjaxMonitor, _this, function (_self, _base) {\n var _addHook = _base[_DYN__ADD_HOOK /* @min:%2e_addHook */];\n _initDefaults();\n _self.initialize = function (config, core, extensions, pluginChain) {\n if (!_self.isInitialized()) {\n _base.initialize(config, core, extensions, pluginChain);\n _evtNamespace = mergeEvtNamespace(createUniqueNamespace(\"ajax\"), core && core.evtNamespace && core.evtNamespace());\n _populateDefaults(config);\n _instrumentXhr();\n _instrumentFetch();\n _populateContext();\n }\n };\n _self._doTeardown = function () {\n _initDefaults();\n };\n _self.trackDependencyData = function (dependency, properties) {\n _reportDependencyInternal(_dependencyInitializers, _self[_DYN_CORE /* @min:%2ecore */], null, dependency, properties);\n };\n _self[_DYN_INCLUDE_CORRELATION_2 /* @min:%2eincludeCorrelationHeaders */] = function (ajaxData, input, init, xhr) {\n // Test Hook to allow the overriding of the location host\n var currentWindowHost = _self[\"_currentWindowHost\"] || _currentWindowHost;\n _processDependencyListeners(_dependencyListeners, _self[_DYN_CORE /* @min:%2ecore */], ajaxData, xhr, input, init);\n if (input || input === \"\") {\n // Fetch\n if (correlationIdCanIncludeCorrelationHeader(_extensionConfig, ajaxData[_DYN_GET_ABSOLUTE_URL /* @min:%2egetAbsoluteUrl */](), currentWindowHost)) {\n if (!init) {\n init = {};\n }\n // init headers override original request headers\n // so, if they exist use only them, otherwise use request's because they should have been applied in the first place\n // not using original request headers will result in them being lost\n var headers = new Headers(init[_DYN_HEADERS /* @min:%2eheaders */] || (input instanceof Request ? input[_DYN_HEADERS /* @min:%2eheaders */] || {} : {}));\n if (_isUsingAIHeaders) {\n var id = \"|\" + ajaxData[_DYN_TRACE_ID /* @min:%2etraceID */] + \".\" + ajaxData[_DYN_SPAN_ID /* @min:%2espanID */];\n headers.set(RequestHeaders[3 /* eRequestHeaders.requestIdHeader */], id);\n if (_enableRequestHeaderTracking) {\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][RequestHeaders[3 /* eRequestHeaders.requestIdHeader */]] = id;\n }\n }\n var appId = _appId || _context && _context.appId();\n if (appId) {\n headers.set(RequestHeaders[0 /* eRequestHeaders.requestContextHeader */], RequestHeaders[2 /* eRequestHeaders.requestContextAppIdFormat */] + appId);\n if (_enableRequestHeaderTracking) {\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][RequestHeaders[0 /* eRequestHeaders.requestContextHeader */]] = RequestHeaders[2 /* eRequestHeaders.requestContextAppIdFormat */] + appId;\n }\n }\n if (_isUsingW3CHeaders) {\n var traceFlags = ajaxData[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */];\n if (isNullOrUndefined(traceFlags)) {\n traceFlags = 0x01;\n }\n var traceParent = formatTraceParent(createTraceParent(ajaxData[_DYN_TRACE_ID /* @min:%2etraceID */], ajaxData[_DYN_SPAN_ID /* @min:%2espanID */], traceFlags));\n headers.set(RequestHeaders[4 /* eRequestHeaders.traceParentHeader */], traceParent);\n if (_enableRequestHeaderTracking) {\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][RequestHeaders[4 /* eRequestHeaders.traceParentHeader */]] = traceParent;\n }\n }\n init[_DYN_HEADERS /* @min:%2eheaders */] = headers;\n }\n return init;\n } else if (xhr) {\n // XHR\n if (correlationIdCanIncludeCorrelationHeader(_extensionConfig, ajaxData[_DYN_GET_ABSOLUTE_URL /* @min:%2egetAbsoluteUrl */](), currentWindowHost)) {\n if (_isUsingAIHeaders) {\n if (!_isHeaderSet(xhr, RequestHeaders[3 /* eRequestHeaders.requestIdHeader */])) {\n var id = \"|\" + ajaxData[_DYN_TRACE_ID /* @min:%2etraceID */] + \".\" + ajaxData[_DYN_SPAN_ID /* @min:%2espanID */];\n xhr[_DYN_SET_REQUEST_HEADER /* @min:%2esetRequestHeader */](RequestHeaders[3 /* eRequestHeaders.requestIdHeader */], id);\n if (_enableRequestHeaderTracking) {\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][RequestHeaders[3 /* eRequestHeaders.requestIdHeader */]] = id;\n }\n } else {\n _throwInternalWarning(_self, 71 /* _eInternalMessageId.FailedMonitorAjaxSetRequestHeader */, \"Unable to set [\" + RequestHeaders[3 /* eRequestHeaders.requestIdHeader */] + \"] as it has already been set by another instance\");\n }\n }\n var appId = _appId || _context && _context.appId();\n if (appId) {\n if (!_isHeaderSet(xhr, RequestHeaders[0 /* eRequestHeaders.requestContextHeader */])) {\n xhr[_DYN_SET_REQUEST_HEADER /* @min:%2esetRequestHeader */](RequestHeaders[0 /* eRequestHeaders.requestContextHeader */], RequestHeaders[2 /* eRequestHeaders.requestContextAppIdFormat */] + appId);\n if (_enableRequestHeaderTracking) {\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][RequestHeaders[0 /* eRequestHeaders.requestContextHeader */]] = RequestHeaders[2 /* eRequestHeaders.requestContextAppIdFormat */] + appId;\n }\n } else {\n _throwInternalWarning(_self, 71 /* _eInternalMessageId.FailedMonitorAjaxSetRequestHeader */, \"Unable to set [\" + RequestHeaders[0 /* eRequestHeaders.requestContextHeader */] + \"] as it has already been set by another instance\");\n }\n }\n if (_isUsingW3CHeaders) {\n var traceFlags = ajaxData[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */];\n if (isNullOrUndefined(traceFlags)) {\n traceFlags = 0x01;\n }\n if (!_isHeaderSet(xhr, RequestHeaders[4 /* eRequestHeaders.traceParentHeader */])) {\n var traceParent = formatTraceParent(createTraceParent(ajaxData[_DYN_TRACE_ID /* @min:%2etraceID */], ajaxData[_DYN_SPAN_ID /* @min:%2espanID */], traceFlags));\n xhr[_DYN_SET_REQUEST_HEADER /* @min:%2esetRequestHeader */](RequestHeaders[4 /* eRequestHeaders.traceParentHeader */], traceParent);\n if (_enableRequestHeaderTracking) {\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][RequestHeaders[4 /* eRequestHeaders.traceParentHeader */]] = traceParent;\n }\n } else {\n _throwInternalWarning(_self, 71 /* _eInternalMessageId.FailedMonitorAjaxSetRequestHeader */, \"Unable to set [\" + RequestHeaders[4 /* eRequestHeaders.traceParentHeader */] + \"] as it has already been set by another instance\");\n }\n }\n }\n return xhr;\n }\n return undefined;\n };\n _self[_DYN_TRACK_DEPENDENCY_DAT3 /* @min:%2etrackDependencyDataInternal */] = function (dependency, properties, systemProperties) {\n if (_maxAjaxCallsPerView === -1 || _trackAjaxAttempts < _maxAjaxCallsPerView) {\n // Hack since expected format in w3c mode is |abc.def.\n // Non-w3c format is |abc.def\n // @todo Remove if better solution is available, e.g. handle in portal\n if ((_distributedTracingMode === 2 /* eDistributedTracingModes.W3C */ || _distributedTracingMode === 1 /* eDistributedTracingModes.AI_AND_W3C */) && typeof dependency.id === \"string\" && dependency.id[dependency.id[_DYN_LENGTH /* @min:%2elength */] - 1] !== \".\") {\n dependency.id += \".\";\n }\n if (isNullOrUndefined(dependency[_DYN_START_TIME /* @min:%2estartTime */])) {\n dependency[_DYN_START_TIME /* @min:%2estartTime */] = new Date();\n }\n var item = createTelemetryItem(dependency, RemoteDependencyData.dataType, RemoteDependencyData.envelopeType, _self[strDiagLog](), properties, systemProperties);\n _self[_DYN_CORE /* @min:%2ecore */].track(item);\n } else if (_trackAjaxAttempts === _maxAjaxCallsPerView) {\n _throwInternalCritical(_self, 55 /* _eInternalMessageId.MaxAjaxPerPVExceeded */, \"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.\", true);\n }\n ++_trackAjaxAttempts;\n };\n _self.addDependencyListener = function (dependencyListener) {\n return _addHandler(_dependencyListeners, _dependencyHandlerId++, dependencyListener);\n };\n _self.addDependencyInitializer = function (dependencyInitializer) {\n return _addHandler(_dependencyInitializers, _dependencyHandlerId++, dependencyInitializer);\n };\n function _initDefaults() {\n var location = getLocation();\n _fetchInitialized = false; // fetch monitoring initialized\n _xhrInitialized = false; // XHR monitoring initialized\n _polyfillInitialized = false; // polyfill monitoring initialized\n _currentWindowHost = location && location.host && location.host[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n _extensionConfig = null;\n _enableRequestHeaderTracking = false;\n _enableAjaxErrorStatusText = false;\n _trackAjaxAttempts = 0;\n _context = null;\n _isUsingW3CHeaders = false;\n _isUsingAIHeaders = false;\n _markPrefix = null;\n _enableAjaxPerfTracking = false;\n _maxAjaxCallsPerView = 0;\n _enableResponseHeaderTracking = false;\n _disabledUrls = {};\n _disableAjaxTracking = false;\n _disableFetchTracking = false;\n _excludeRequestFromAutoTrackingPatterns = null;\n _addRequestContext = null;\n _evtNamespace = null;\n _dependencyHandlerId = 0;\n _dependencyListeners = [];\n _dependencyInitializers = [];\n _ajaxDataId = createUniqueNamespace(\"ajaxData\");\n _self._ajaxDataId = _ajaxDataId;\n _ignoreHeaders = null;\n _maxAjaxPerfLookupAttempts = 1;\n _ajaxPerfLookupDelay = 1;\n _distributedTracingMode = 1 /* eDistributedTracingModes.AI_AND_W3C */;\n _appId = null;\n }\n function _populateDefaults(config) {\n _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](onConfigChange(config, function (details) {\n var config = details.cfg;\n var ctx = createProcessTelemetryContext(null, config, _self[_DYN_CORE /* @min:%2ecore */]);\n _extensionConfig = ctx.getExtCfg(AjaxMonitor.identifier, _defaultConfig);\n _distributedTracingMode = _extensionConfig.distributedTracingMode;\n _enableRequestHeaderTracking = _extensionConfig[_DYN_ENABLE_REQUEST_HEADE4 /* @min:%2eenableRequestHeaderTracking */];\n _enableAjaxErrorStatusText = _extensionConfig[_DYN_ENABLE_AJAX_ERROR_ST5 /* @min:%2eenableAjaxErrorStatusText */];\n _enableAjaxPerfTracking = _extensionConfig[_DYN_ENABLE_AJAX_PERF_TRA6 /* @min:%2eenableAjaxPerfTracking */];\n _maxAjaxCallsPerView = _extensionConfig[_DYN_MAX_AJAX_CALLS_PER_V7 /* @min:%2emaxAjaxCallsPerView */];\n _excludeRequestFromAutoTrackingPatterns = [].concat(_extensionConfig[_DYN_EXCLUDE_REQUEST_FROM8 /* @min:%2eexcludeRequestFromAutoTrackingPatterns */] || [], _extensionConfig.addIntEndpoints !== false ? _internalExcludeEndpoints : []);\n _addRequestContext = _extensionConfig[_DYN_ADD_REQUEST_CONTEXT /* @min:%2eaddRequestContext */];\n _isUsingAIHeaders = _distributedTracingMode === 0 /* eDistributedTracingModes.AI */ || _distributedTracingMode === 1 /* eDistributedTracingModes.AI_AND_W3C */;\n _isUsingW3CHeaders = _distributedTracingMode === 1 /* eDistributedTracingModes.AI_AND_W3C */ || _distributedTracingMode === 2 /* eDistributedTracingModes.W3C */;\n if (_enableAjaxPerfTracking) {\n var iKey = config.instrumentationKey || \"unkwn\";\n if (iKey[_DYN_LENGTH /* @min:%2elength */] > 5) {\n _markPrefix = AJAX_MONITOR_PREFIX + strSubstring(iKey, iKey[_DYN_LENGTH /* @min:%2elength */] - 5) + \".\";\n } else {\n _markPrefix = AJAX_MONITOR_PREFIX + iKey + \".\";\n }\n }\n _disableAjaxTracking = !!_extensionConfig[_DYN_DISABLE_AJAX_TRACKIN9 /* @min:%2edisableAjaxTracking */];\n _maxAjaxPerfLookupAttempts = _extensionConfig.maxAjaxPerfLookupAttempts;\n _ajaxPerfLookupDelay = _extensionConfig[_DYN_AJAX_PERF_LOOKUP_DEL10 /* @min:%2eajaxPerfLookupDelay */];\n _ignoreHeaders = _extensionConfig.ignoreHeaders;\n _appId = _extensionConfig.appId;\n }));\n }\n function _populateContext() {\n var propExt = _self[_DYN_CORE /* @min:%2ecore */].getPlugin(PropertiesPluginIdentifier);\n if (propExt) {\n _context = propExt.plugin[_DYN_CONTEXT /* @min:%2econtext */]; // we could move IPropertiesPlugin to common as well\n }\n }\n // discard the header if it's defined as ignoreHeaders in ICorrelationConfig\n function _canIncludeHeaders(header) {\n var rlt = true;\n if (header || _ignoreHeaders) {\n arrForEach(_ignoreHeaders, function (key) {\n if (key[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]() === header[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]()) {\n rlt = false;\n return -1;\n }\n });\n }\n return rlt;\n }\n // Fetch Stuff\n function _instrumentFetch() {\n var fetch = _supportsFetch();\n if (!fetch) {\n return;\n }\n var global = getGlobal();\n var isPolyfill = fetch.polyfill;\n _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](onConfigChange(_extensionConfig, function () {\n _disableFetchTracking = !!_extensionConfig[_DYN_DISABLE_FETCH_TRACKI11 /* @min:%2edisableFetchTracking */];\n _enableResponseHeaderTracking = _extensionConfig[_DYN_ENABLE_RESPONSE_HEAD12 /* @min:%2eenableResponseHeaderTracking */];\n if (!_disableFetchTracking && !_fetchInitialized) {\n _addHook(InstrumentFunc(global, STR_FETCH, {\n ns: _evtNamespace,\n // Add request hook\n req: function (callDetails, input, init) {\n var fetchData;\n if (!_disableFetchTracking && _fetchInitialized && !_isDisabledRequest(null, input, init) &&\n // If we have a polyfil and XHR instrumented then let XHR report otherwise we get duplicates\n !(isPolyfill && _xhrInitialized)) {\n var ctx = callDetails.ctx();\n fetchData = _createFetchRecord(input, init);\n var newInit = _self[_DYN_INCLUDE_CORRELATION_2 /* @min:%2eincludeCorrelationHeaders */](fetchData, input, init);\n if (newInit !== init) {\n callDetails.set(1, newInit);\n }\n ctx.data = fetchData;\n }\n },\n rsp: function (callDetails, input) {\n if (!_disableFetchTracking) {\n var fetchData_1 = callDetails.ctx().data;\n if (fetchData_1) {\n // Replace the result with the new promise from this code\n callDetails.rslt = callDetails.rslt.then(function (response) {\n _reportFetchMetrics(callDetails, (response || {})[_DYN_STATUS /* @min:%2estatus */], input, response, fetchData_1, function () {\n var _a;\n var ajaxResponse = (_a = {\n statusText: (response || {})[_DYN_STATUS_TEXT /* @min:%2estatusText */]\n }, _a[_DYN_HEADER_MAP /* @min:headerMap */] = null, _a[_DYN_CORRELATION_CONTEXT /* @min:correlationContext */] = _getFetchCorrelationContext(response), _a);\n if (_enableResponseHeaderTracking && response) {\n var responseHeaderMap_1 = {};\n response.headers.forEach(function (value, name) {\n if (_canIncludeHeaders(name)) {\n responseHeaderMap_1[name] = value;\n }\n });\n ajaxResponse[_DYN_HEADER_MAP /* @min:%2eheaderMap */] = responseHeaderMap_1;\n }\n return ajaxResponse;\n });\n return response;\n }).catch(function (reason) {\n _reportFetchMetrics(callDetails, 0, input, null, fetchData_1, null, {\n error: reason.message || dumpObj(reason)\n });\n throw reason;\n });\n }\n }\n },\n // Create an error callback to report any hook errors\n hkErr: _createErrorCallbackFunc(_self, 15 /* _eInternalMessageId.FailedMonitorAjaxOpen */, \"Failed to monitor Window.fetch\" + ERROR_POSTFIX)\n }, true, isWebWorker()));\n _fetchInitialized = true;\n } else if (isPolyfill && !_polyfillInitialized) {\n // If fetch is a polyfill we need to capture the request to ensure that we correctly track\n // disabled request URLS (i.e. internal urls) to ensure we don't end up in a constant loop\n // of reporting ourselves, for example React Native uses a polyfill for fetch\n // Note: Polyfill implementations that don't support the \"polyfill\" tag are not supported\n // the workaround is to add a polyfill property to your fetch implementation before initializing\n // App Insights\n _addHook(InstrumentFunc(global, STR_FETCH, {\n ns: _evtNamespace,\n req: function (callDetails, input, init) {\n // Just call so that we record any disabled URL\n _isDisabledRequest(null, input, init);\n }\n }));\n _polyfillInitialized = true;\n }\n }));\n if (isPolyfill) {\n // retag the instrumented fetch with the same polyfill settings this is mostly for testing\n // But also supports multiple App Insights usages\n global[STR_FETCH].polyfill = isPolyfill;\n }\n }\n function _hookProto(target, funcName, callbacks) {\n _addHook(InstrumentProto(target, funcName, callbacks));\n }\n function _instrumentXhr() {\n if (!_supportsAjaxMonitoring(_self, _ajaxDataId)) {\n return;\n }\n _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](onConfigChange(_extensionConfig, function () {\n _disableAjaxTracking = !!_extensionConfig[_DYN_DISABLE_AJAX_TRACKIN9 /* @min:%2edisableAjaxTracking */];\n _enableRequestHeaderTracking = _extensionConfig[_DYN_ENABLE_REQUEST_HEADE4 /* @min:%2eenableRequestHeaderTracking */];\n if (!_disableAjaxTracking && !_xhrInitialized) {\n // Instrument open\n _hookProto(XMLHttpRequest, \"open\", {\n ns: _evtNamespace,\n req: function (callDetails, method, url, async) {\n if (!_disableAjaxTracking) {\n var xhr = callDetails[_DYN_INST /* @min:%2einst */];\n var ajaxData = _getAjaxData(xhr, _ajaxDataId);\n if (!_isDisabledRequest(xhr, url) && _isMonitoredXhrInstance(xhr, ajaxData, true)) {\n if (!ajaxData || !ajaxData.xhrMonitoringState[_DYN_OPEN_DONE /* @min:%2eopenDone */]) {\n // Only create a single ajaxData (even when multiple AI instances are running)\n ajaxData = _openHandler(xhr, method, url, async);\n }\n // always attach to the on ready state change (required for handling multiple instances)\n _attachToOnReadyStateChange(xhr, ajaxData);\n }\n }\n },\n hkErr: _createErrorCallbackFunc(_self, 15 /* _eInternalMessageId.FailedMonitorAjaxOpen */, ERROR_HEADER + \".open\" + ERROR_POSTFIX)\n });\n // Instrument send\n _hookProto(XMLHttpRequest, \"send\", {\n ns: _evtNamespace,\n req: function (callDetails, context) {\n if (!_disableAjaxTracking) {\n var xhr = callDetails[_DYN_INST /* @min:%2einst */];\n var ajaxData = _getAjaxData(xhr, _ajaxDataId);\n if (_isMonitoredXhrInstance(xhr, ajaxData) && !ajaxData.xhrMonitoringState[_DYN_SEND_DONE /* @min:%2esendDone */]) {\n _createMarkId(\"xhr\", ajaxData);\n ajaxData[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */] = dateTimeUtilsNow();\n _self[_DYN_INCLUDE_CORRELATION_2 /* @min:%2eincludeCorrelationHeaders */](ajaxData, undefined, undefined, xhr);\n ajaxData.xhrMonitoringState[_DYN_SEND_DONE /* @min:%2esendDone */] = true;\n }\n }\n },\n hkErr: _createErrorCallbackFunc(_self, 17 /* _eInternalMessageId.FailedMonitorAjaxSend */, ERROR_HEADER + ERROR_POSTFIX)\n });\n // Instrument abort\n _hookProto(XMLHttpRequest, \"abort\", {\n ns: _evtNamespace,\n req: function (callDetails) {\n if (!_disableAjaxTracking) {\n var xhr = callDetails[_DYN_INST /* @min:%2einst */];\n var ajaxData = _getAjaxData(xhr, _ajaxDataId);\n if (_isMonitoredXhrInstance(xhr, ajaxData) && !ajaxData.xhrMonitoringState[_DYN_ABORT_DONE /* @min:%2eabortDone */]) {\n ajaxData[_DYN_ABORTED /* @min:%2eaborted */] = 1;\n ajaxData.xhrMonitoringState[_DYN_ABORT_DONE /* @min:%2eabortDone */] = true;\n }\n }\n },\n hkErr: _createErrorCallbackFunc(_self, 13 /* _eInternalMessageId.FailedMonitorAjaxAbort */, ERROR_HEADER + \".abort\" + ERROR_POSTFIX)\n });\n // Instrument setRequestHeader\n _hookProto(XMLHttpRequest, \"setRequestHeader\", {\n ns: _evtNamespace,\n req: function (callDetails, header, value) {\n if (!_disableAjaxTracking) {\n var xhr = callDetails[_DYN_INST /* @min:%2einst */];\n var ajaxData = _getAjaxData(xhr, _ajaxDataId);\n if (ajaxData && _isMonitoredXhrInstance(xhr, ajaxData)) {\n _addSharedXhrHeaders(xhr, header, value);\n if (_enableRequestHeaderTracking && _canIncludeHeaders(header)) {\n if (ajaxData) {\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][header] = value;\n }\n }\n }\n }\n },\n hkErr: _createErrorCallbackFunc(_self, 71 /* _eInternalMessageId.FailedMonitorAjaxSetRequestHeader */, ERROR_HEADER + \".setRequestHeader\" + ERROR_POSTFIX)\n });\n _xhrInitialized = true;\n }\n }));\n }\n function _isDisabledRequest(xhr, request, init) {\n var isDisabled = false;\n var theUrl = ((!isString(request) ? (request || {}).url || \"\" : request) || \"\")[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n // check excludeRequestFromAutoTrackingPatterns before stripping off any query string\n arrForEach(_excludeRequestFromAutoTrackingPatterns, function (regex) {\n var theRegex = regex;\n if (isString(regex)) {\n theRegex = new RegExp(regex);\n }\n if (!isDisabled) {\n isDisabled = theRegex.test(theUrl);\n }\n });\n // if request url matches with exclude regex pattern, return true and no need to check for headers\n if (isDisabled) {\n return isDisabled;\n }\n var idx = _indexOf(theUrl, \"?\");\n var idx2 = _indexOf(theUrl, \"#\");\n if (idx === -1 || idx2 !== -1 && idx2 < idx) {\n idx = idx2;\n }\n if (idx !== -1) {\n // Strip off any Query string\n theUrl = theUrl.substring(0, idx);\n }\n // check that this instance is not not used by ajax call performed inside client side monitoring to send data to collector\n if (!isNullOrUndefined(xhr)) {\n // Look on the XMLHttpRequest of the URL string value\n isDisabled = xhr[DisabledPropertyName] === true || theUrl[DisabledPropertyName] === true;\n } else if (!isNullOrUndefined(request)) {\n // fetch\n // Look for DisabledPropertyName in either Request or RequestInit\n isDisabled = (typeof request === \"object\" ? request[DisabledPropertyName] === true : false) || (init ? init[DisabledPropertyName] === true : false);\n }\n // Also add extra check just in case the XHR or fetch objects where not decorated with the DisableProperty due to sealing or freezing\n if (!isDisabled && theUrl && isInternalApplicationInsightsEndpoint(theUrl)) {\n isDisabled = true;\n }\n if (isDisabled) {\n // Add the disabled url if not present\n if (!_disabledUrls[theUrl]) {\n _disabledUrls[theUrl] = 1;\n }\n } else {\n // Check to see if the url is listed as disabled\n if (_disabledUrls[theUrl]) {\n isDisabled = true;\n }\n }\n return isDisabled;\n }\n /// Verifies that particular instance of XMLHttpRequest needs to be monitored\n /// Optional parameter. True if ajaxData must be excluded from verification\n /// True if instance needs to be monitored, otherwise false\n function _isMonitoredXhrInstance(xhr, ajaxData, excludeAjaxDataValidation) {\n var ajaxValidation = true;\n var initialized = _xhrInitialized;\n if (!isNullOrUndefined(xhr)) {\n ajaxValidation = excludeAjaxDataValidation === true || !isNullOrUndefined(ajaxData);\n }\n // checking to see that all interested functions on xhr were instrumented\n return initialized\n // checking on ajaxData to see that it was not removed in user code\n && ajaxValidation;\n }\n function _getDistributedTraceCtx() {\n var distributedTraceCtx = null;\n if (_self[_DYN_CORE /* @min:%2ecore */] && _self[_DYN_CORE /* @min:%2ecore */].getTraceCtx) {\n distributedTraceCtx = _self[_DYN_CORE /* @min:%2ecore */].getTraceCtx(false);\n }\n // Fall back\n if (!distributedTraceCtx && _context && _context.telemetryTrace) {\n distributedTraceCtx = createDistributedTraceContextFromTrace(_context.telemetryTrace);\n }\n return distributedTraceCtx;\n }\n function _openHandler(xhr, method, url, async) {\n var _a;\n var distributedTraceCtx = _getDistributedTraceCtx();\n var traceID = distributedTraceCtx && distributedTraceCtx[_DYN_GET_TRACE_ID /* @min:%2egetTraceId */]() || generateW3CId();\n var spanID = strSubstr(generateW3CId(), 0, 16);\n var xhrRequestData = xhr[AJAX_DATA_CONTAINER] = xhr[AJAX_DATA_CONTAINER] || {\n xh: [],\n i: {}\n };\n var ajaxDataCntr = xhrRequestData.i = xhrRequestData.i || {};\n var ajaxData = ajaxDataCntr[_ajaxDataId] = ajaxDataCntr[_ajaxDataId] || new ajaxRecord(traceID, spanID, _self[strDiagLog](), (_a = _self.core) === null || _a === void 0 ? void 0 : _a.getTraceCtx());\n ajaxData[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = distributedTraceCtx && distributedTraceCtx[_DYN_GET_TRACE_FLAGS /* @min:%2egetTraceFlags */]();\n ajaxData[_DYN_METHOD /* @min:%2emethod */] = method;\n ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */] = url;\n ajaxData.xhrMonitoringState[_DYN_OPEN_DONE /* @min:%2eopenDone */] = true;\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */] = {};\n ajaxData.async = async;\n ajaxData[_DYN_ERROR_STATUS_TEXT /* @min:%2eerrorStatusText */] = _enableAjaxErrorStatusText;\n return ajaxData;\n }\n function _attachToOnReadyStateChange(xhr, ajaxData) {\n ajaxData.xhrMonitoringState[_DYN_STATE_CHANGE_ATTACHE13 /* @min:%2estateChangeAttached */] = eventOn(xhr, \"readystatechange\", function () {\n var _a;\n try {\n if (xhr && xhr.readyState === 4 && _isMonitoredXhrInstance(xhr, ajaxData)) {\n _onAjaxComplete(xhr);\n }\n } catch (e) {\n var exceptionText = dumpObj(e);\n // ignore messages with c00c023f, as this a known IE9 XHR abort issue\n if (!exceptionText || _indexOf(exceptionText[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */](), \"c00c023f\") === -1) {\n _throwInternalCritical(_self, 16 /* _eInternalMessageId.FailedMonitorAjaxRSC */, ERROR_HEADER + \" 'readystatechange' event handler\" + ERROR_POSTFIX, (_a = {}, _a[_DYN_AJAX_DIAGNOSTICS_MES16 /* @min:ajaxDiagnosticsMessage */] = _getFailedAjaxDiagnosticsMessage(xhr, _ajaxDataId), _a[_DYN_EXCEPTION /* @min:exception */] = exceptionText, _a));\n }\n }\n }, _evtNamespace);\n }\n function _getResponseText(xhr) {\n try {\n var responseType = xhr.responseType;\n if (responseType === \"\" || responseType === \"text\") {\n // As per the specification responseText is only valid if the type is an empty string or \"text\"\n return xhr[_DYN_RESPONSE_TEXT /* @min:%2eresponseText */];\n }\n } catch (e) {\n // This shouldn't happen because of the above check -- but just in case, so just ignore\n }\n return null;\n }\n function _onAjaxComplete(xhr) {\n var ajaxData = _getAjaxData(xhr, _ajaxDataId);\n ajaxData[_DYN_RESPONSE_FINISHED_TI14 /* @min:%2eresponseFinishedTime */] = dateTimeUtilsNow();\n ajaxData[_DYN_STATUS /* @min:%2estatus */] = xhr[_DYN_STATUS /* @min:%2estatus */];\n function _reportXhrError(e, failedProps) {\n var errorProps = failedProps || {};\n errorProps[\"ajaxDiagnosticsMessage\"] = _getFailedAjaxDiagnosticsMessage(xhr, _ajaxDataId);\n if (e) {\n errorProps[\"exception\"] = dumpObj(e);\n }\n _throwInternalWarning(_self, 14 /* _eInternalMessageId.FailedMonitorAjaxDur */, FAILED_TO_CALCULATE_DURATION_ERROR + \"ajax call\" + ERROR_NOT_SENT, errorProps);\n }\n _findPerfResourceEntry(\"xmlhttprequest\", ajaxData, function () {\n try {\n var dependency = ajaxData[_DYN__CREATE_TRACK_ITEM /* @min:%2eCreateTrackItem */](\"Ajax\", _enableRequestHeaderTracking, function () {\n var _a;\n var ajaxResponse = (_a = {\n statusText: xhr[_DYN_STATUS_TEXT /* @min:%2estatusText */]\n }, _a[_DYN_HEADER_MAP /* @min:headerMap */] = null, _a[_DYN_CORRELATION_CONTEXT /* @min:correlationContext */] = _getAjaxCorrelationContext(xhr), _a.type = xhr.responseType, _a[_DYN_RESPONSE_TEXT /* @min:responseText */] = _getResponseText(xhr), _a.response = xhr[_DYN_RESPONSE /* @min:%2eresponse */], _a);\n if (_enableResponseHeaderTracking) {\n var headers = xhr[_DYN_GET_ALL_RESPONSE_HEA15 /* @min:%2egetAllResponseHeaders */]();\n if (headers) {\n // xhr.getAllResponseHeaders() method returns all the response headers, separated by CRLF, as a string or null\n // the regex converts the header string into an array of individual headers\n var arr = strTrim(headers).split(/[\\r\\n]+/);\n var responseHeaderMap_2 = {};\n arrForEach(arr, function (line) {\n var parts = line.split(\": \");\n var header = parts.shift();\n var value = parts.join(\": \");\n if (_canIncludeHeaders(header)) {\n responseHeaderMap_2[header] = value;\n }\n });\n ajaxResponse[_DYN_HEADER_MAP /* @min:%2eheaderMap */] = responseHeaderMap_2;\n }\n }\n return ajaxResponse;\n });\n var properties = void 0;\n try {\n if (!!_addRequestContext) {\n properties = _addRequestContext({\n status: xhr[_DYN_STATUS /* @min:%2estatus */],\n xhr: xhr\n });\n }\n } catch (e) {\n _throwInternalWarning(_self, 104 /* _eInternalMessageId.FailedAddingCustomDefinedRequestContext */, CUSTOM_REQUEST_CONTEXT_ERROR);\n }\n if (dependency) {\n if (properties !== undefined) {\n dependency[STR_PROPERTIES /* @min:%2eproperties */] = __assign(__assign({}, dependency.properties), properties);\n }\n var sysProperties = ajaxData[_DYN_GET_PART_APROPS /* @min:%2egetPartAProps */]();\n _reportDependencyInternal(_dependencyInitializers, _self[_DYN_CORE /* @min:%2ecore */], ajaxData, dependency, null, sysProperties);\n } else {\n _reportXhrError(null, {\n requestSentTime: ajaxData[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */],\n responseFinishedTime: ajaxData[_DYN_RESPONSE_FINISHED_TI14 /* @min:%2eresponseFinishedTime */]\n });\n }\n } finally {\n // cleanup telemetry data\n try {\n var xhrRequestData = xhr[AJAX_DATA_CONTAINER] || {\n i: {}\n };\n var ajaxDataCntr = xhrRequestData.i || {};\n if (ajaxDataCntr[_ajaxDataId]) {\n ajaxDataCntr[_ajaxDataId] = null;\n }\n } catch (e) {\n // May throw in environments that prevent extension or freeze xhr\n }\n }\n }, function (e) {\n _reportXhrError(e, null);\n });\n }\n function _getAjaxCorrelationContext(xhr) {\n var _a;\n try {\n var responseHeadersString = xhr[_DYN_GET_ALL_RESPONSE_HEA15 /* @min:%2egetAllResponseHeaders */]();\n if (responseHeadersString !== null) {\n var index = _indexOf(responseHeadersString[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */](), RequestHeaders[8 /* eRequestHeaders.requestContextHeaderLowerCase */]);\n if (index !== -1) {\n var responseHeader = xhr.getResponseHeader(RequestHeaders[0 /* eRequestHeaders.requestContextHeader */]);\n return correlationIdGetCorrelationContext(responseHeader);\n }\n }\n } catch (e) {\n _throwInternalWarning(_self, 18 /* _eInternalMessageId.FailedMonitorAjaxGetCorrelationHeader */, CORRELATION_HEADER_ERROR, (_a = {}, _a[_DYN_AJAX_DIAGNOSTICS_MES16 /* @min:ajaxDiagnosticsMessage */] = _getFailedAjaxDiagnosticsMessage(xhr, _ajaxDataId), _a[_DYN_EXCEPTION /* @min:exception */] = dumpObj(e), _a));\n }\n }\n function _createMarkId(type, ajaxData) {\n if (ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */] && _markPrefix && _enableAjaxPerfTracking) {\n var performance_1 = getPerformance();\n if (performance_1 && isFunction(performance_1.mark)) {\n _markCount++;\n var markId = _markPrefix + type + \"#\" + _markCount;\n performance_1.mark(markId);\n var entries = performance_1.getEntriesByName(markId);\n if (entries && entries[_DYN_LENGTH /* @min:%2elength */] === 1) {\n ajaxData[_DYN_PERF_MARK /* @min:%2eperfMark */] = entries[0];\n }\n }\n }\n }\n function _findPerfResourceEntry(initiatorType, ajaxData, trackCallback, reportError) {\n var perfMark = ajaxData[_DYN_PERF_MARK /* @min:%2eperfMark */];\n var performance = getPerformance();\n var maxAttempts = _maxAjaxPerfLookupAttempts;\n var retryDelay = _ajaxPerfLookupDelay;\n var requestUrl = ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */];\n var attempt = 0;\n (function locateResourceTiming() {\n try {\n if (performance && perfMark) {\n attempt++;\n var perfTiming = null;\n var entries = performance.getEntries();\n for (var lp = entries[_DYN_LENGTH /* @min:%2elength */] - 1; lp >= 0; lp--) {\n var entry = entries[lp];\n if (entry) {\n if (entry.entryType === \"resource\") {\n if (entry.initiatorType === initiatorType && (_indexOf(entry[_DYN_NAME /* @min:%2ename */], requestUrl) !== -1 || _indexOf(requestUrl, entry[_DYN_NAME /* @min:%2ename */]) !== -1)) {\n perfTiming = entry;\n }\n } else if (entry.entryType === \"mark\" && entry[_DYN_NAME /* @min:%2ename */] === perfMark[_DYN_NAME /* @min:%2ename */]) {\n // We hit the start event\n ajaxData[_DYN_PERF_TIMING /* @min:%2eperfTiming */] = perfTiming;\n break;\n }\n if (entry[_DYN_START_TIME /* @min:%2estartTime */] < perfMark[_DYN_START_TIME /* @min:%2estartTime */] - 1000) {\n // Fallback to try and reduce the time spent looking for the perf entry\n break;\n }\n }\n }\n }\n if (!perfMark ||\n // - we don't have a perfMark or\n ajaxData[_DYN_PERF_TIMING /* @min:%2eperfTiming */] ||\n // - we have not found the perf entry or\n attempt >= maxAttempts ||\n // - we have tried too many attempts or\n ajaxData.async === false) {\n // - this is a sync request\n if (perfMark && isFunction(performance.clearMarks)) {\n // Remove the mark so we don't fill up the performance resources too much\n performance.clearMarks(perfMark[_DYN_NAME /* @min:%2ename */]);\n }\n ajaxData.perfAttempts = attempt;\n // just continue and report the track event\n trackCallback();\n } else {\n // We need to wait for the browser to populate the window.performance entry\n // This needs to be at least 1ms as waiting <= 1 (on firefox) is not enough time for fetch or xhr,\n // this is a scheduling issue for the browser implementation\n scheduleTimeout(locateResourceTiming, retryDelay);\n }\n } catch (e) {\n reportError(e);\n }\n })();\n }\n function _createFetchRecord(input, init) {\n var _a;\n var distributedTraceCtx = _getDistributedTraceCtx();\n var traceID = distributedTraceCtx && distributedTraceCtx[_DYN_GET_TRACE_ID /* @min:%2egetTraceId */]() || generateW3CId();\n var spanID = strSubstr(generateW3CId(), 0, 16);\n var ajaxData = new ajaxRecord(traceID, spanID, _self[strDiagLog](), (_a = _self.core) === null || _a === void 0 ? void 0 : _a.getTraceCtx());\n ajaxData[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = distributedTraceCtx && distributedTraceCtx[_DYN_GET_TRACE_FLAGS /* @min:%2egetTraceFlags */]();\n ajaxData[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */] = dateTimeUtilsNow();\n ajaxData[_DYN_ERROR_STATUS_TEXT /* @min:%2eerrorStatusText */] = _enableAjaxErrorStatusText;\n if (input instanceof Request) {\n ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */] = input ? input.url : \"\";\n } else {\n ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */] = input;\n }\n var method = \"GET\";\n if (init && init[_DYN_METHOD /* @min:%2emethod */]) {\n method = init[_DYN_METHOD /* @min:%2emethod */];\n } else if (input && input instanceof Request) {\n method = input[_DYN_METHOD /* @min:%2emethod */];\n }\n ajaxData[_DYN_METHOD /* @min:%2emethod */] = method;\n var requestHeaders = {};\n if (_enableRequestHeaderTracking) {\n var headers = new Headers((init ? init[_DYN_HEADERS /* @min:%2eheaders */] : 0) || (input instanceof Request ? input[_DYN_HEADERS /* @min:%2eheaders */] || {} : {}));\n headers.forEach(function (value, key) {\n if (_canIncludeHeaders(key)) {\n requestHeaders[key] = value;\n }\n });\n }\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */] = requestHeaders;\n _createMarkId(STR_FETCH, ajaxData);\n return ajaxData;\n }\n function _getFailedFetchDiagnosticsMessage(input) {\n var result = \"\";\n try {\n if (!isNullOrUndefined(input)) {\n if (typeof input === \"string\") {\n result += \"(url: '\".concat(input, \"')\");\n } else {\n result += \"(url: '\".concat(input.url, \"')\");\n }\n }\n } catch (e) {\n _throwInternalCritical(_self, 15 /* _eInternalMessageId.FailedMonitorAjaxOpen */, \"Failed to grab failed fetch diagnostics message\", {\n exception: dumpObj(e)\n });\n }\n return result;\n }\n function _reportFetchMetrics(callDetails, status, input, response, ajaxData, getResponse, properties) {\n if (!ajaxData) {\n return;\n }\n function _reportFetchError(msgId, e, failedProps) {\n var errorProps = failedProps || {};\n errorProps[\"fetchDiagnosticsMessage\"] = _getFailedFetchDiagnosticsMessage(input);\n if (e) {\n errorProps[\"exception\"] = dumpObj(e);\n }\n _throwInternalWarning(_self, msgId, FAILED_TO_CALCULATE_DURATION_ERROR + \"fetch call\" + ERROR_NOT_SENT, errorProps);\n }\n ajaxData[_DYN_RESPONSE_FINISHED_TI14 /* @min:%2eresponseFinishedTime */] = dateTimeUtilsNow();\n ajaxData[_DYN_STATUS /* @min:%2estatus */] = status;\n _findPerfResourceEntry(STR_FETCH, ajaxData, function () {\n var dependency = ajaxData[_DYN__CREATE_TRACK_ITEM /* @min:%2eCreateTrackItem */](\"Fetch\", _enableRequestHeaderTracking, getResponse);\n var properties;\n try {\n if (!!_addRequestContext) {\n properties = _addRequestContext({\n status: status,\n request: input,\n response: response\n });\n }\n } catch (e) {\n _throwInternalWarning(_self, 104 /* _eInternalMessageId.FailedAddingCustomDefinedRequestContext */, CUSTOM_REQUEST_CONTEXT_ERROR);\n }\n if (dependency) {\n if (properties !== undefined) {\n dependency[STR_PROPERTIES /* @min:%2eproperties */] = __assign(__assign({}, dependency.properties), properties);\n }\n var sysProperties = ajaxData[_DYN_GET_PART_APROPS /* @min:%2egetPartAProps */]();\n _reportDependencyInternal(_dependencyInitializers, _self[_DYN_CORE /* @min:%2ecore */], ajaxData, dependency, null, sysProperties);\n } else {\n _reportFetchError(14 /* _eInternalMessageId.FailedMonitorAjaxDur */, null, {\n requestSentTime: ajaxData[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */],\n responseFinishedTime: ajaxData[_DYN_RESPONSE_FINISHED_TI14 /* @min:%2eresponseFinishedTime */]\n });\n }\n }, function (e) {\n _reportFetchError(18 /* _eInternalMessageId.FailedMonitorAjaxGetCorrelationHeader */, e, null);\n });\n }\n function _getFetchCorrelationContext(response) {\n var _a;\n if (response && response[_DYN_HEADERS /* @min:%2eheaders */]) {\n try {\n var responseHeader = response[_DYN_HEADERS /* @min:%2eheaders */].get(RequestHeaders[0 /* eRequestHeaders.requestContextHeader */]);\n return correlationIdGetCorrelationContext(responseHeader);\n } catch (e) {\n _throwInternalWarning(_self, 18 /* _eInternalMessageId.FailedMonitorAjaxGetCorrelationHeader */, CORRELATION_HEADER_ERROR, (_a = {\n fetchDiagnosticsMessage: _getFailedFetchDiagnosticsMessage(response)\n }, _a[_DYN_EXCEPTION /* @min:exception */] = dumpObj(e), _a));\n }\n }\n }\n function _reportDependencyInternal(initializers, core, ajaxData, dependency, properties, systemProperties) {\n var _a;\n var result = true;\n var initializersCount = initializers[_DYN_LENGTH /* @min:%2elength */];\n if (initializersCount > 0) {\n var details = (_a = {\n item: dependency\n }, _a[STR_PROPERTIES /* @min:properties */] = properties, _a.sysProperties = systemProperties, _a.context = ajaxData ? ajaxData[_DYN_CONTEXT /* @min:%2econtext */] : null, _a.aborted = ajaxData ? !!ajaxData[_DYN_ABORTED /* @min:%2eaborted */] : false, _a);\n result = _processDependencyContainer(core, initializers, details, \"initializer\");\n }\n if (result) {\n _self[_DYN_TRACK_DEPENDENCY_DAT3 /* @min:%2etrackDependencyDataInternal */](dependency, properties, systemProperties);\n }\n }\n });\n return _this;\n }\n // Removed Stub for AjaxMonitor.prototype.initialize.\n AjaxMonitor.prototype.processTelemetry = function (item, itemCtx) {\n this.processNext(item, itemCtx);\n };\n // Removed Stub for AjaxMonitor.prototype.trackDependencyData.\n // Removed Stub for AjaxMonitor.prototype.includeCorrelationHeaders.\n // Removed Stub for AjaxMonitor.prototype.addDependencyListener.\n /**\r\n * Add an dependency telemetry initializer callback function to allow populating additional properties or drop the request.\r\n * It is called after the dependency call has completed and any available performance details are available. A dependency\r\n * initializer is similar to the TelemetryInitializer function but it allows you to block the reporting of the dependency\r\n * request so that it doesn't count against the `maxAjaxCallsPerView`.\r\n * @param dependencyInitializer - The Dependency Telemetry Initializer function\r\n * @returns - A IDependencyInitializerHandler to enable the initializer to be removed\r\n */\n AjaxMonitor.prototype.addDependencyInitializer = function (dependencyInitializer) {\n return null;\n };\n // Removed Stub for AjaxMonitor.prototype.trackDependencyDataInternal.\n AjaxMonitor.identifier = \"AjaxDependencyPlugin\";\n return AjaxMonitor;\n}(BaseTelemetryPlugin);\nexport { AjaxMonitor };\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nvar Application = /** @class */function () {\n function Application() {}\n return Application;\n}();\nexport { Application };\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nvar Device = /** @class */function () {\n /**\r\n * Constructs a new instance of the Device class\r\n */\n function Device() {\n // don't attempt to fingerprint browsers\n this.id = \"browser\";\n // Device type is a dimension in our data platform\n // Setting it to 'Browser' allows to separate client and server dependencies/exceptions\n this.deviceClass = \"Browser\";\n }\n return Device;\n}();\nexport { Device };\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { onConfigChange } from \"@microsoft/applicationinsights-core-js\";\nvar Version = '3.0.3';\nvar Internal = /** @class */function () {\n /**\r\n * Constructs a new instance of the internal telemetry data class.\r\n */\n function Internal(config, unloadHookContainer) {\n var _this = this;\n var unloadHook = onConfigChange(config, function () {\n var prefix = config.sdkExtension;\n _this.sdkVersion = (prefix ? prefix + \"_\" : \"\") + \"javascript:\" + Version;\n });\n unloadHookContainer && unloadHookContainer.add(unloadHook);\n }\n return Internal;\n}();\nexport { Internal };\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nvar Location = /** @class */function () {\n function Location() {}\n return Location;\n}();\nexport { Location };\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// @skip-file-minify\n// ##############################################################\n// AUTO GENERATED FILE: This file is Auto Generated during build.\n// ##############################################################\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nexport var _DYN_SESSION_MANAGER = \"sessionManager\"; // Count: 3\nexport var _DYN_UPDATE = \"update\"; // Count: 4\nexport var _DYN_IS_USER_COOKIE_SET = \"isUserCookieSet\"; // Count: 4\nexport var _DYN_IS_NEW_USER = \"isNewUser\"; // Count: 4\nexport var _DYN_GET_TRACE_CTX = \"getTraceCtx\"; // Count: 3\nexport var _DYN_TELEMETRY_TRACE = \"telemetryTrace\"; // Count: 3\nexport var _DYN_APPLY_SESSION_CONTEX0 = \"applySessionContext\"; // Count: 2\nexport var _DYN_APPLY_APPLICATION_CO1 = \"applyApplicationContext\"; // Count: 2\nexport var _DYN_APPLY_DEVICE_CONTEXT = \"applyDeviceContext\"; // Count: 2\nexport var _DYN_APPLY_OPERATION_CONT2 = \"applyOperationContext\"; // Count: 2\nexport var _DYN_APPLY_USER_CONTEXT = \"applyUserContext\"; // Count: 2\nexport var _DYN_APPLY_OPERATING_SYST3 = \"applyOperatingSystemContxt\"; // Count: 2\nexport var _DYN_APPLY_LOCATION_CONTE4 = \"applyLocationContext\"; // Count: 2\nexport var _DYN_APPLY_INTERNAL_CONTE5 = \"applyInternalContext\"; // Count: 2\nexport var _DYN_ACCOUNT_ID = \"accountId\"; // Count: 7\nexport var _DYN_GET_SESSION_ID = \"getSessionId\"; // Count: 4\nexport var _DYN_NAME_PREFIX = \"namePrefix\"; // Count: 3\nexport var _DYN_SESSION_COOKIE_POSTF6 = \"sessionCookiePostfix\"; // Count: 2\nexport var _DYN_USER_COOKIE_POSTFIX = \"userCookiePostfix\"; // Count: 2\nexport var _DYN_ID_LENGTH = \"idLength\"; // Count: 4\nexport var _DYN_GET_NEW_ID = \"getNewId\"; // Count: 3\nexport var _DYN_LENGTH = \"length\"; // Count: 4\nexport var _DYN_AUTOMATIC_SESSION = \"automaticSession\"; // Count: 5\nexport var _DYN_AUTHENTICATED_ID = \"authenticatedId\"; // Count: 6\nexport var _DYN_ACQUISITION_DATE = \"acquisitionDate\"; // Count: 5\nexport var _DYN_RENEWAL_DATE = \"renewalDate\"; // Count: 4\nexport var _DYN_JOIN = \"join\"; // Count: 5\nexport var _DYN_COOKIE_SEPARATOR = \"cookieSeparator\"; // Count: 5\nexport var _DYN_AUTH_USER_COOKIE_NAM7 = \"authUserCookieName\"; // Count: 3\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage } from \"@microsoft/applicationinsights-common\";\nimport { _throwInternal, dateNow, dumpObj, getExceptionName, isFunction, newId, onConfigChange, safeGetCookieMgr, safeGetLogger } from \"@microsoft/applicationinsights-core-js\";\nimport { _DYN_ACQUISITION_DATE, _DYN_AUTOMATIC_SESSION, _DYN_GET_NEW_ID, _DYN_ID_LENGTH, _DYN_JOIN, _DYN_LENGTH, _DYN_NAME_PREFIX, _DYN_RENEWAL_DATE, _DYN_UPDATE } from \"../__DynamicConstants\";\nvar SESSION_COOKIE_NAME = \"ai_session\";\nvar ACQUISITION_SPAN = 86400000; // 24 hours in ms\nvar RENEWAL_SPAN = 1800000; // 30 minutes in ms\nvar COOKIE_UPDATE_INTERVAL = 60000; // 1 minute in ms\nvar Session = /** @class */function () {\n function Session() {}\n return Session;\n}();\nexport { Session };\nvar _SessionManager = /** @class */function () {\n function _SessionManager(config, core, unloadHookContainer) {\n var self = this;\n var _storageNamePrefix;\n var _cookieUpdatedTimestamp;\n var _logger = safeGetLogger(core);\n var _cookieManager = safeGetCookieMgr(core);\n var _sessionExpirationMs;\n var _sessionRenewalMs;\n dynamicProto(_SessionManager, self, function (_self) {\n if (!config) {\n config = {};\n }\n var unloadHook = onConfigChange(config, function (details) {\n _sessionExpirationMs = config.sessionExpirationMs || ACQUISITION_SPAN;\n _sessionRenewalMs = config.sessionRenewalMs || RENEWAL_SPAN;\n // sessionCookiePostfix takes the preference if it is configured, otherwise takes namePrefix if configured.\n var sessionCookiePostfix = config.sessionCookiePostfix || config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */] || \"\";\n _storageNamePrefix = SESSION_COOKIE_NAME + sessionCookiePostfix;\n });\n unloadHookContainer && unloadHookContainer.add(unloadHook);\n _self[_DYN_AUTOMATIC_SESSION /* @min:%2eautomaticSession */] = new Session();\n _self[_DYN_UPDATE /* @min:%2eupdate */] = function () {\n // Always using Date getTime() as there is a bug in older IE instances that causes the performance timings to have the hi-bit set eg 0x800000000 causing\n // the number to be incorrect.\n var nowMs = dateNow();\n var isExpired = false;\n var session = _self[_DYN_AUTOMATIC_SESSION /* @min:%2eautomaticSession */];\n if (!session.id) {\n isExpired = !_initializeAutomaticSession(session, nowMs);\n }\n if (!isExpired && _sessionExpirationMs > 0) {\n var timeSinceAcqMs = nowMs - session[_DYN_ACQUISITION_DATE /* @min:%2eacquisitionDate */];\n var timeSinceRenewalMs = nowMs - session[_DYN_RENEWAL_DATE /* @min:%2erenewalDate */];\n isExpired = timeSinceAcqMs < 0 || timeSinceRenewalMs < 0; // expired if the acquisition or last renewal are in the future\n isExpired = isExpired || timeSinceAcqMs > _sessionExpirationMs; // expired if the time since acquisition is more than session Expiration\n isExpired = isExpired || timeSinceRenewalMs > _sessionRenewalMs; // expired if the time since last renewal is more than renewal period\n }\n // renew if acquisitionSpan or renewalSpan has elapsed\n if (isExpired) {\n // update automaticSession so session state has correct id\n _renew(nowMs);\n } else {\n // do not update the cookie more often than cookieUpdateInterval\n if (!_cookieUpdatedTimestamp || nowMs - _cookieUpdatedTimestamp > COOKIE_UPDATE_INTERVAL) {\n _setCookie(session, nowMs);\n }\n }\n };\n /**\r\n * Record the current state of the automatic session and store it in our cookie string format\r\n * into the browser's local storage. This is used to restore the session data when the cookie\r\n * expires.\r\n */\n _self.backup = function () {\n var session = _self[_DYN_AUTOMATIC_SESSION /* @min:%2eautomaticSession */];\n _setStorage(session.id, session[_DYN_ACQUISITION_DATE /* @min:%2eacquisitionDate */], session[_DYN_RENEWAL_DATE /* @min:%2erenewalDate */]);\n };\n /**\r\n * Use config.namePrefix + ai_session cookie data or local storage data (when the cookie is unavailable) to\r\n * initialize the automatic session.\r\n * @returns true if values set otherwise false\r\n */\n function _initializeAutomaticSession(session, now) {\n var isValid = false;\n var cookieValue = _cookieManager.get(_storageNamePrefix);\n if (cookieValue && isFunction(cookieValue.split)) {\n isValid = _initializeAutomaticSessionWithData(session, cookieValue);\n } else {\n // There's no cookie, but we might have session data in local storage\n // This can happen if the session expired or the user actively deleted the cookie\n // We only want to recover data if the cookie is missing from expiry. We should respect the user's wishes if the cookie was deleted actively.\n // The User class handles this for us and deletes our local storage object if the persistent user cookie was removed.\n var storageValue = utlGetLocalStorage(_logger, _storageNamePrefix);\n if (storageValue) {\n isValid = _initializeAutomaticSessionWithData(session, storageValue);\n }\n }\n return isValid || !!session.id;\n }\n /**\r\n * Extract id, acquisitionDate, and renewalDate from an ai_session payload string and\r\n * use this data to initialize automaticSession.\r\n *\r\n * @param sessionData - The string stored in an ai_session cookie or local storage backup\r\n * @returns true if values set otherwise false\r\n */\n function _initializeAutomaticSessionWithData(session, sessionData) {\n var isValid = false;\n var sessionReset = \", session will be reset\";\n var tokens = sessionData.split(\"|\");\n if (tokens[_DYN_LENGTH /* @min:%2elength */] >= 2) {\n try {\n var acqMs = +tokens[1] || 0;\n var renewalMs = +tokens[2] || 0;\n if (isNaN(acqMs) || acqMs <= 0) {\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 27 /* _eInternalMessageId.SessionRenewalDateIsZero */, \"AI session acquisition date is 0\" + sessionReset);\n } else if (isNaN(renewalMs) || renewalMs <= 0) {\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 27 /* _eInternalMessageId.SessionRenewalDateIsZero */, \"AI session renewal date is 0\" + sessionReset);\n } else if (tokens[0]) {\n // Everything looks valid so set the values\n session.id = tokens[0];\n session[_DYN_ACQUISITION_DATE /* @min:%2eacquisitionDate */] = acqMs;\n session[_DYN_RENEWAL_DATE /* @min:%2erenewalDate */] = renewalMs;\n isValid = true;\n }\n } catch (e) {\n _throwInternal(_logger, 1 /* eLoggingSeverity.CRITICAL */, 9 /* _eInternalMessageId.ErrorParsingAISessionCookie */, \"Error parsing ai_session value [\" + (sessionData || \"\") + \"]\" + sessionReset + \" - \" + getExceptionName(e), {\n exception: dumpObj(e)\n });\n }\n }\n return isValid;\n }\n function _renew(nowMs) {\n var getNewId = config[_DYN_GET_NEW_ID /* @min:%2egetNewId */] || newId;\n _self.automaticSession.id = getNewId(config[_DYN_ID_LENGTH /* @min:%2eidLength */] || 22);\n _self[_DYN_AUTOMATIC_SESSION /* @min:%2eautomaticSession */][_DYN_ACQUISITION_DATE /* @min:%2eacquisitionDate */] = nowMs;\n _setCookie(_self[_DYN_AUTOMATIC_SESSION /* @min:%2eautomaticSession */], nowMs);\n // If this browser does not support local storage, fire an internal log to keep track of it at this point\n if (!utlCanUseLocalStorage()) {\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 0 /* _eInternalMessageId.BrowserDoesNotSupportLocalStorage */, \"Browser does not support local storage. Session durations will be inaccurate.\");\n }\n }\n function _setCookie(session, nowMs) {\n var acq = session[_DYN_ACQUISITION_DATE /* @min:%2eacquisitionDate */];\n session[_DYN_RENEWAL_DATE /* @min:%2erenewalDate */] = nowMs;\n var renewalPeriodMs = _sessionRenewalMs;\n // Set cookie to expire after the session expiry time passes or the session renewal deadline, whichever is sooner\n // Expiring the cookie will cause the session to expire even if the user isn't on the page\n var acqTimeLeftMs = acq + _sessionExpirationMs - nowMs;\n var cookie = [session.id, acq, nowMs];\n var maxAgeSec = 0;\n if (acqTimeLeftMs < renewalPeriodMs) {\n maxAgeSec = acqTimeLeftMs / 1000;\n } else {\n maxAgeSec = renewalPeriodMs / 1000;\n }\n var cookieDomain = config.cookieDomain || null;\n // if sessionExpirationMs is set to 0, it means the expiry is set to 0 for this session cookie\n // A cookie with 0 expiry in the session cookie will never expire for that browser session. If the browser is closed the cookie expires.\n // Depending on the browser, another instance does not inherit this cookie, however, another tab will\n _cookieManager.set(_storageNamePrefix, cookie[_DYN_JOIN /* @min:%2ejoin */](\"|\"), _sessionExpirationMs > 0 ? maxAgeSec : null, cookieDomain);\n _cookieUpdatedTimestamp = nowMs;\n }\n function _setStorage(guid, acq, renewal) {\n // Keep data in local storage to retain the last session id, allowing us to cleanly end the session when it expires\n // Browsers that don't support local storage won't be able to end sessions cleanly from the client\n // The server will notice this and end the sessions itself, with loss of accurate session duration\n utlSetLocalStorage(_logger, _storageNamePrefix, [guid, acq, renewal][_DYN_JOIN /* @min:%2ejoin */](\"|\"));\n }\n });\n }\n // Removed Stub for _SessionManager.prototype.update.\n // Removed Stub for _SessionManager.prototype.backup.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n _SessionManager.__ieDyn = 1;\n return _SessionManager;\n}();\nexport { _SessionManager };\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { dataSanitizeString } from \"@microsoft/applicationinsights-common\";\nimport { generateW3CId, getLocation } from \"@microsoft/applicationinsights-core-js\";\nvar TelemetryTrace = /** @class */function () {\n function TelemetryTrace(id, parentId, name, logger) {\n var _self = this;\n _self.traceID = id || generateW3CId();\n _self.parentID = parentId;\n var location = getLocation();\n if (!name && location && location.pathname) {\n name = location.pathname;\n }\n _self.name = dataSanitizeString(logger, name);\n }\n return TelemetryTrace;\n}();\nexport { TelemetryTrace };\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { utlRemoveStorage } from \"@microsoft/applicationinsights-common\";\nimport { _throwInternal, newId, onConfigChange, safeGetCookieMgr, safeGetLogger, toISOString } from \"@microsoft/applicationinsights-core-js\";\nimport { objDefine } from \"@nevware21/ts-utils\";\nimport { _DYN_ACCOUNT_ID, _DYN_AUTHENTICATED_ID, _DYN_AUTH_USER_COOKIE_NAM7, _DYN_COOKIE_SEPARATOR, _DYN_GET_NEW_ID, _DYN_ID_LENGTH, _DYN_IS_NEW_USER, _DYN_IS_USER_COOKIE_SET, _DYN_JOIN, _DYN_LENGTH, _DYN_NAME_PREFIX, _DYN_UPDATE, _DYN_USER_COOKIE_POSTFIX } from \"../__DynamicConstants\";\nfunction _validateUserInput(id) {\n // Validate:\n // 1. Id is a non-empty string.\n // 2. It does not contain special characters for cookies.\n if (typeof id !== \"string\" || !id || id.match(/,|;|=| |\\|/)) {\n return false;\n }\n return true;\n}\nvar User = /** @class */function () {\n function User(config, core, unloadHookContainer) {\n /**\r\n * A flag indicating whether this represents a new user\r\n */\n this.isNewUser = false;\n /**\r\n * A flag indicating whether the user cookie has been set\r\n */\n this.isUserCookieSet = false;\n var _logger = safeGetLogger(core);\n var _cookieManager = safeGetCookieMgr(core);\n var _storageNamePrefix;\n dynamicProto(User, this, function (_self) {\n // Define _self.config\n objDefine(_self, \"config\", {\n g: function () {\n return config;\n }\n });\n var unloadHook = onConfigChange(config, function () {\n var userCookiePostfix = config[_DYN_USER_COOKIE_POSTFIX /* @min:%2euserCookiePostfix */] || \"\";\n _storageNamePrefix = User.userCookieName + userCookiePostfix;\n // get userId or create new one if none exists\n var cookie = _cookieManager.get(_storageNamePrefix);\n if (cookie) {\n _self[_DYN_IS_NEW_USER /* @min:%2eisNewUser */] = false;\n var params = cookie.split(User[_DYN_COOKIE_SEPARATOR /* @min:%2ecookieSeparator */]);\n if (params[_DYN_LENGTH /* @min:%2elength */] > 0) {\n _self.id = params[0];\n // we already have a cookie\n _self[_DYN_IS_USER_COOKIE_SET /* @min:%2eisUserCookieSet */] = !!_self.id;\n }\n }\n if (!_self.id) {\n _self.id = _generateNewId();\n var newCookie = _generateNewCookie(_self.id);\n _setUserCookie(newCookie[_DYN_JOIN /* @min:%2ejoin */](User[_DYN_COOKIE_SEPARATOR /* @min:%2ecookieSeparator */]));\n // If we have an config.namePrefix() + ai_session in local storage this means the user actively removed our cookies.\n // We should respect their wishes and clear ourselves from local storage\n var name_1 = (config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */] || \"\") + \"ai_session\";\n utlRemoveStorage(_logger, name_1);\n }\n // We still take the account id from the ctor param for backward compatibility.\n // But if the the customer set the accountId through the newer setAuthenticatedUserContext API, we will override it.\n _self[_DYN_ACCOUNT_ID /* @min:%2eaccountId */] = config[_DYN_ACCOUNT_ID /* @min:%2eaccountId */] || undefined;\n // Get the auth user id and account id from the cookie if exists\n // Cookie is in the pattern: |\n var authCookie = _cookieManager.get(User[_DYN_AUTH_USER_COOKIE_NAM7 /* @min:%2eauthUserCookieName */]);\n if (authCookie) {\n authCookie = decodeURI(authCookie);\n var authCookieString = authCookie.split(User[_DYN_COOKIE_SEPARATOR /* @min:%2ecookieSeparator */]);\n if (authCookieString[0]) {\n _self[_DYN_AUTHENTICATED_ID /* @min:%2eauthenticatedId */] = authCookieString[0];\n }\n if (authCookieString[_DYN_LENGTH /* @min:%2elength */] > 1 && authCookieString[1]) {\n _self[_DYN_ACCOUNT_ID /* @min:%2eaccountId */] = authCookieString[1];\n }\n }\n });\n unloadHookContainer && unloadHookContainer.add(unloadHook);\n function _generateNewId() {\n var theConfig = config || {};\n var getNewId = theConfig[_DYN_GET_NEW_ID /* @min:%2egetNewId */] || newId;\n var id = getNewId(theConfig[_DYN_ID_LENGTH /* @min:%2eidLength */] ? config[_DYN_ID_LENGTH /* @min:%2eidLength */] : 22);\n return id;\n }\n function _generateNewCookie(userId) {\n var acqStr = toISOString(new Date());\n _self.accountAcquisitionDate = acqStr;\n _self[_DYN_IS_NEW_USER /* @min:%2eisNewUser */] = true;\n var newCookie = [userId, acqStr];\n return newCookie;\n }\n function _setUserCookie(cookie) {\n // without expiration, cookies expire at the end of the session\n // set it to 365 days from now\n // 365 * 24 * 60 * 60 = 31536000\n var oneYear = 31536000;\n _self[_DYN_IS_USER_COOKIE_SET /* @min:%2eisUserCookieSet */] = _cookieManager.set(_storageNamePrefix, cookie, oneYear);\n }\n _self.setAuthenticatedUserContext = function (authenticatedUserId, accountId, storeInCookie) {\n if (storeInCookie === void 0) {\n storeInCookie = false;\n }\n // Validate inputs to ensure no cookie control characters.\n var isInvalidInput = !_validateUserInput(authenticatedUserId) || accountId && !_validateUserInput(accountId);\n if (isInvalidInput) {\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 60 /* _eInternalMessageId.SetAuthContextFailedAccountName */, \"Setting auth user context failed. \" + \"User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.\", true);\n return;\n }\n // Create cookie string.\n _self[_DYN_AUTHENTICATED_ID /* @min:%2eauthenticatedId */] = authenticatedUserId;\n var authCookie = _self[_DYN_AUTHENTICATED_ID /* @min:%2eauthenticatedId */];\n if (accountId) {\n _self[_DYN_ACCOUNT_ID /* @min:%2eaccountId */] = accountId;\n authCookie = [_self[_DYN_AUTHENTICATED_ID /* @min:%2eauthenticatedId */], _self.accountId][_DYN_JOIN /* @min:%2ejoin */](User[_DYN_COOKIE_SEPARATOR /* @min:%2ecookieSeparator */]);\n }\n if (storeInCookie) {\n // Set the cookie. No expiration date because this is a session cookie (expires when browser closed).\n // Encoding the cookie to handle unexpected unicode characters.\n _cookieManager.set(User[_DYN_AUTH_USER_COOKIE_NAM7 /* @min:%2eauthUserCookieName */], encodeURI(authCookie));\n }\n };\n /**\r\n * Clears the authenticated user id and the account id from the user context.\r\n * @returns {}\r\n */\n _self.clearAuthenticatedUserContext = function () {\n _self[_DYN_AUTHENTICATED_ID /* @min:%2eauthenticatedId */] = null;\n _self[_DYN_ACCOUNT_ID /* @min:%2eaccountId */] = null;\n _cookieManager.del(User[_DYN_AUTH_USER_COOKIE_NAM7 /* @min:%2eauthUserCookieName */]);\n };\n _self[_DYN_UPDATE /* @min:%2eupdate */] = function (userId) {\n // Optimizations to avoid setting and processing the cookie when not needed\n if (_self.id !== userId || !_self[_DYN_IS_USER_COOKIE_SET /* @min:%2eisUserCookieSet */]) {\n var user_id = userId ? userId : _generateNewId();\n var user_cookie = _generateNewCookie(user_id);\n _setUserCookie(user_cookie[_DYN_JOIN /* @min:%2ejoin */](User[_DYN_COOKIE_SEPARATOR /* @min:%2ecookieSeparator */]));\n }\n };\n });\n }\n // Removed Stub for User.prototype.setAuthenticatedUserContext.\n // Removed Stub for User.prototype.clearAuthenticatedUserContext.\n // Removed Stub for User.prototype.update.\n User.cookieSeparator = \"|\";\n User.userCookieName = \"ai_user\";\n User.authUserCookieName = \"ai_authUser\";\n return User;\n}();\nexport { User };\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n/**\r\n* TelemetryContext.ts\r\n* @copyright Microsoft 2018\r\n*/\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { CtxTagKeys, Extensions, PageView, dataSanitizeString } from \"@microsoft/applicationinsights-common\";\nimport { _InternalLogMessage, getSetValue, hasWindow, isNullOrUndefined, isString, objKeys, setValue } from \"@microsoft/applicationinsights-core-js\";\nimport { Application } from \"./Context/Application\";\nimport { Device } from \"./Context/Device\";\nimport { Internal } from \"./Context/Internal\";\nimport { Location } from \"./Context/Location\";\nimport { Session, _SessionManager } from \"./Context/Session\";\nimport { TelemetryTrace } from \"./Context/TelemetryTrace\";\nimport { User } from \"./Context/User\";\nimport { _DYN_ACCOUNT_ID, _DYN_APPLY_APPLICATION_CO1, _DYN_APPLY_DEVICE_CONTEXT, _DYN_APPLY_INTERNAL_CONTE5, _DYN_APPLY_LOCATION_CONTE4, _DYN_APPLY_OPERATING_SYST3, _DYN_APPLY_OPERATION_CONT2, _DYN_APPLY_SESSION_CONTEX0, _DYN_APPLY_USER_CONTEXT, _DYN_AUTHENTICATED_ID, _DYN_AUTOMATIC_SESSION, _DYN_GET_SESSION_ID, _DYN_LENGTH, _DYN_SESSION_MANAGER, _DYN_TELEMETRY_TRACE } from \"./__DynamicConstants\";\nvar strExt = \"ext\";\nvar strTags = \"tags\";\nfunction _removeEmpty(target, name) {\n if (target && target[name] && objKeys(target[name])[_DYN_LENGTH /* @min:%2elength */] === 0) {\n delete target[name];\n }\n}\nfunction _nullResult() {\n return null;\n}\nvar TelemetryContext = /** @class */function () {\n function TelemetryContext(core, defaultConfig, previousTraceCtx, unloadHookContainer) {\n var _this = this;\n var logger = core.logger;\n dynamicProto(TelemetryContext, this, function (_self) {\n _self.appId = _nullResult;\n _self[_DYN_GET_SESSION_ID /* @min:%2egetSessionId */] = _nullResult;\n _self.application = new Application();\n _self.internal = new Internal(defaultConfig, unloadHookContainer);\n if (hasWindow()) {\n _self[_DYN_SESSION_MANAGER /* @min:%2esessionManager */] = new _SessionManager(defaultConfig, core, unloadHookContainer);\n _self.device = new Device();\n _self.location = new Location();\n _self.user = new User(defaultConfig, core, unloadHookContainer);\n var traceId = void 0;\n var parentId = void 0;\n var name_1;\n if (previousTraceCtx) {\n traceId = previousTraceCtx.getTraceId();\n parentId = previousTraceCtx.getSpanId();\n name_1 = previousTraceCtx.getName();\n }\n _self[_DYN_TELEMETRY_TRACE /* @min:%2etelemetryTrace */] = new TelemetryTrace(traceId, parentId, name_1, logger);\n _self.session = new Session();\n }\n _self[_DYN_GET_SESSION_ID /* @min:%2egetSessionId */] = function () {\n var session = _self.session;\n var sesId = null;\n // If customer set session info, apply their context; otherwise apply context automatically generated\n if (session && isString(session.id)) {\n sesId = session.id;\n } else {\n // Gets the automatic session if it exists or an empty object\n var autoSession = (_self[_DYN_SESSION_MANAGER /* @min:%2esessionManager */] || {})[_DYN_AUTOMATIC_SESSION /* @min:%2eautomaticSession */];\n sesId = autoSession && isString(autoSession.id) ? autoSession.id : null;\n }\n return sesId;\n };\n _self[_DYN_APPLY_SESSION_CONTEX0 /* @min:%2eapplySessionContext */] = function (evt, itemCtx) {\n setValue(getSetValue(evt.ext, Extensions.AppExt), \"sesId\", _self[_DYN_GET_SESSION_ID /* @min:%2egetSessionId */](), isString);\n };\n _self[_DYN_APPLY_OPERATING_SYST3 /* @min:%2eapplyOperatingSystemContxt */] = function (evt, itemCtx) {\n setValue(evt.ext, Extensions.OSExt, _self.os);\n };\n _self[_DYN_APPLY_APPLICATION_CO1 /* @min:%2eapplyApplicationContext */] = function (evt, itemCtx) {\n var application = _self.application;\n if (application) {\n // evt.ext.app\n var tags = getSetValue(evt, strTags);\n setValue(tags, CtxTagKeys.applicationVersion, application.ver, isString);\n setValue(tags, CtxTagKeys.applicationBuild, application.build, isString);\n }\n };\n _self[_DYN_APPLY_DEVICE_CONTEXT /* @min:%2eapplyDeviceContext */] = function (evt, itemCtx) {\n var device = _self.device;\n if (device) {\n // evt.ext.device\n var extDevice = getSetValue(getSetValue(evt, strExt), Extensions.DeviceExt);\n setValue(extDevice, \"localId\", device.id, isString);\n setValue(extDevice, \"ip\", device.ip, isString);\n setValue(extDevice, \"model\", device.model, isString);\n setValue(extDevice, \"deviceClass\", device.deviceClass, isString);\n }\n };\n _self[_DYN_APPLY_INTERNAL_CONTE5 /* @min:%2eapplyInternalContext */] = function (evt, itemCtx) {\n var internal = _self.internal;\n if (internal) {\n var tags = getSetValue(evt, strTags);\n setValue(tags, CtxTagKeys.internalAgentVersion, internal.agentVersion, isString); // not mapped in CS 4.0\n setValue(tags, CtxTagKeys.internalSdkVersion, dataSanitizeString(logger, internal.sdkVersion, 64), isString);\n if (evt.baseType === _InternalLogMessage.dataType || evt.baseType === PageView.dataType) {\n setValue(tags, CtxTagKeys.internalSnippet, internal.snippetVer, isString);\n setValue(tags, CtxTagKeys.internalSdkSrc, internal.sdkSrc, isString);\n }\n }\n };\n _self[_DYN_APPLY_LOCATION_CONTE4 /* @min:%2eapplyLocationContext */] = function (evt, itemCtx) {\n var location = _this.location;\n if (location) {\n setValue(getSetValue(evt, strTags, []), CtxTagKeys.locationIp, location.ip, isString);\n }\n };\n _self[_DYN_APPLY_OPERATION_CONT2 /* @min:%2eapplyOperationContext */] = function (evt, itemCtx) {\n var telemetryTrace = _self[_DYN_TELEMETRY_TRACE /* @min:%2etelemetryTrace */];\n if (telemetryTrace) {\n var extTrace = getSetValue(getSetValue(evt, strExt), Extensions.TraceExt, {\n traceID: undefined,\n parentID: undefined\n });\n setValue(extTrace, \"traceID\", telemetryTrace.traceID, isString, isNullOrUndefined);\n setValue(extTrace, \"name\", telemetryTrace.name, isString, isNullOrUndefined);\n setValue(extTrace, \"parentID\", telemetryTrace.parentID, isString, isNullOrUndefined);\n }\n };\n _self.applyWebContext = function (evt, itemCtx) {\n var web = _this.web;\n if (web) {\n setValue(getSetValue(evt, strExt), Extensions.WebExt, web);\n }\n };\n _self[_DYN_APPLY_USER_CONTEXT /* @min:%2eapplyUserContext */] = function (evt, itemCtx) {\n var user = _self.user;\n if (user) {\n var tags = getSetValue(evt, strTags, []);\n // stays in tags\n setValue(tags, CtxTagKeys.userAccountId, user[_DYN_ACCOUNT_ID /* @min:%2eaccountId */], isString);\n // CS 4.0\n var extUser = getSetValue(getSetValue(evt, strExt), Extensions.UserExt);\n setValue(extUser, \"id\", user.id, isString);\n setValue(extUser, \"authId\", user[_DYN_AUTHENTICATED_ID /* @min:%2eauthenticatedId */], isString);\n }\n };\n _self.cleanUp = function (evt, itemCtx) {\n var ext = evt.ext;\n if (ext) {\n _removeEmpty(ext, Extensions.DeviceExt);\n _removeEmpty(ext, Extensions.UserExt);\n _removeEmpty(ext, Extensions.WebExt);\n _removeEmpty(ext, Extensions.OSExt);\n _removeEmpty(ext, Extensions.AppExt);\n _removeEmpty(ext, Extensions.TraceExt);\n }\n };\n });\n }\n // Removed Stub for TelemetryContext.prototype.applySessionContext.\n // Removed Stub for TelemetryContext.prototype.applyOperatingSystemContxt.\n // Removed Stub for TelemetryContext.prototype.applyApplicationContext.\n // Removed Stub for TelemetryContext.prototype.applyDeviceContext.\n // Removed Stub for TelemetryContext.prototype.applyInternalContext.\n // Removed Stub for TelemetryContext.prototype.applyLocationContext.\n // Removed Stub for TelemetryContext.prototype.applyOperationContext.\n // Removed Stub for TelemetryContext.prototype.applyWebContext.\n // Removed Stub for TelemetryContext.prototype.applyUserContext.\n // Removed Stub for TelemetryContext.prototype.cleanUp.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n TelemetryContext.__ieDyn = 1;\n return TelemetryContext;\n}();\nexport { TelemetryContext };\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n/**\r\n* PropertiesPlugin.ts\r\n* @copyright Microsoft 2018\r\n*/\nvar _a;\nimport { __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { BreezeChannelIdentifier, PageView, PropertiesPluginIdentifier, createDistributedTraceContextFromTrace, utlSetStoragePrefix } from \"@microsoft/applicationinsights-common\";\nimport { BaseTelemetryPlugin, _InternalLogMessage, _logInternalMessage, createProcessTelemetryContext, getNavigator, getSetValue, isNullOrUndefined, onConfigChange } from \"@microsoft/applicationinsights-core-js\";\nimport { objDeepFreeze, objDefine } from \"@nevware21/ts-utils\";\nimport { TelemetryContext } from \"./TelemetryContext\";\nimport { _DYN_ACCOUNT_ID, _DYN_APPLY_APPLICATION_CO1, _DYN_APPLY_DEVICE_CONTEXT, _DYN_APPLY_INTERNAL_CONTE5, _DYN_APPLY_LOCATION_CONTE4, _DYN_APPLY_OPERATING_SYST3, _DYN_APPLY_OPERATION_CONT2, _DYN_APPLY_SESSION_CONTEX0, _DYN_APPLY_USER_CONTEXT, _DYN_GET_NEW_ID, _DYN_GET_SESSION_ID, _DYN_GET_TRACE_CTX, _DYN_ID_LENGTH, _DYN_IS_NEW_USER, _DYN_IS_USER_COOKIE_SET, _DYN_NAME_PREFIX, _DYN_SESSION_COOKIE_POSTF6, _DYN_SESSION_MANAGER, _DYN_TELEMETRY_TRACE, _DYN_UPDATE, _DYN_USER_COOKIE_POSTFIX } from \"./__DynamicConstants\";\nvar undefString;\nvar nullValue = null;\nvar _defaultConfig = objDeepFreeze((_a = {}, _a[_DYN_ACCOUNT_ID /* @min:accountId */] = nullValue, _a.sessionRenewalMs = 30 * 60 * 1000, _a.samplingPercentage = 100, _a.sessionExpirationMs = 24 * 60 * 60 * 1000, _a.cookieDomain = nullValue, _a.sdkExtension = nullValue, _a.isBrowserLinkTrackingEnabled = false, _a.appId = nullValue, _a[_DYN_GET_SESSION_ID /* @min:getSessionId */] = nullValue, _a[_DYN_NAME_PREFIX /* @min:namePrefix */] = undefString, _a[_DYN_SESSION_COOKIE_POSTF6 /* @min:sessionCookiePostfix */] = undefString, _a[_DYN_USER_COOKIE_POSTFIX /* @min:userCookiePostfix */] = undefString, _a[_DYN_ID_LENGTH /* @min:idLength */] = 22, _a[_DYN_GET_NEW_ID /* @min:getNewId */] = nullValue, _a));\nvar PropertiesPlugin = /** @class */function (_super) {\n __extends(PropertiesPlugin, _super);\n function PropertiesPlugin() {\n var _this = _super.call(this) || this;\n _this.priority = 110;\n _this.identifier = PropertiesPluginIdentifier;\n var _extensionConfig;\n var _distributedTraceCtx;\n var _previousTraceCtx;\n var _context;\n dynamicProto(PropertiesPlugin, _this, function (_self, _base) {\n _initDefaults();\n objDefine(_self, \"context\", {\n g: function () {\n return _context;\n }\n });\n _self.initialize = function (config, core, extensions, pluginChain) {\n _base.initialize(config, core, extensions, pluginChain);\n _populateDefaults(config);\n };\n /**\r\n * Add Part A fields to the event\r\n * @param event - The event that needs to be processed\r\n */\n _self.processTelemetry = function (event, itemCtx) {\n if (!isNullOrUndefined(event)) {\n itemCtx = _self._getTelCtx(itemCtx);\n // If the envelope is PageView, reset the internal message count so that we can send internal telemetry for the new page.\n if (event.name === PageView.envelopeType) {\n itemCtx.diagLog().resetInternalMessageCount();\n }\n var theContext = _context || {};\n if (theContext.session) {\n // If customer did not provide custom session id update the session manager\n if (typeof _context.session.id !== \"string\" && theContext[_DYN_SESSION_MANAGER /* @min:%2esessionManager */]) {\n theContext[_DYN_SESSION_MANAGER /* @min:%2esessionManager */][_DYN_UPDATE /* @min:%2eupdate */]();\n }\n }\n var userCtx = theContext.user;\n if (userCtx && !userCtx[_DYN_IS_USER_COOKIE_SET /* @min:%2eisUserCookieSet */]) {\n userCtx[_DYN_UPDATE /* @min:%2eupdate */](theContext.user.id);\n }\n _processTelemetryInternal(event, itemCtx);\n if (userCtx && userCtx[_DYN_IS_NEW_USER /* @min:%2eisNewUser */]) {\n userCtx[_DYN_IS_NEW_USER /* @min:%2eisNewUser */] = false;\n var message = new _InternalLogMessage(72 /* _eInternalMessageId.SendBrowserInfoOnUserInit */, (getNavigator() || {}).userAgent || \"\");\n _logInternalMessage(itemCtx.diagLog(), 1 /* eLoggingSeverity.CRITICAL */, message);\n }\n _self.processNext(event, itemCtx);\n }\n };\n _self._doTeardown = function (unloadCtx, unloadState) {\n var core = (unloadCtx || {}).core();\n if (core && core[_DYN_GET_TRACE_CTX /* @min:%2egetTraceCtx */]) {\n var traceCtx = core[_DYN_GET_TRACE_CTX /* @min:%2egetTraceCtx */](false);\n if (traceCtx === _distributedTraceCtx) {\n core.setTraceCtx(_previousTraceCtx);\n }\n }\n _initDefaults();\n };\n function _initDefaults() {\n _extensionConfig = null;\n _distributedTraceCtx = null;\n _previousTraceCtx = null;\n _context = null;\n }\n function _populateDefaults(config) {\n var identifier = _self.identifier;\n var core = _self.core;\n // This function will be re-called whenever any referenced configuration is changed\n _self._addHook(onConfigChange(config, function () {\n var ctx = createProcessTelemetryContext(null, config, core);\n if (config.storagePrefix) {\n utlSetStoragePrefix(config.storagePrefix);\n }\n _extensionConfig = ctx.getExtCfg(identifier, _defaultConfig);\n // Test hook to allow accessing the internal values -- explicitly not defined as an available property on the class\n _self[\"_extConfig\"] = _extensionConfig;\n }));\n // This is outside of the onConfigChange as we don't want to update (replace) these values whenever a referenced config item changes\n _previousTraceCtx = core[_DYN_GET_TRACE_CTX /* @min:%2egetTraceCtx */](false);\n _context = new TelemetryContext(core, _extensionConfig, _previousTraceCtx, _self._unloadHooks);\n _distributedTraceCtx = createDistributedTraceContextFromTrace(_self.context[_DYN_TELEMETRY_TRACE /* @min:%2etelemetryTrace */], _previousTraceCtx);\n core.setTraceCtx(_distributedTraceCtx);\n _self.context.appId = function () {\n var breezeChannel = core.getPlugin(BreezeChannelIdentifier);\n return breezeChannel ? breezeChannel.plugin[\"_appId\"] : null;\n };\n }\n function _processTelemetryInternal(evt, itemCtx) {\n // Set Part A fields\n getSetValue(evt, \"tags\", []);\n getSetValue(evt, \"ext\", {});\n var ctx = _self.context;\n ctx[_DYN_APPLY_SESSION_CONTEX0 /* @min:%2eapplySessionContext */](evt, itemCtx);\n ctx[_DYN_APPLY_APPLICATION_CO1 /* @min:%2eapplyApplicationContext */](evt, itemCtx);\n ctx[_DYN_APPLY_DEVICE_CONTEXT /* @min:%2eapplyDeviceContext */](evt, itemCtx);\n ctx[_DYN_APPLY_OPERATION_CONT2 /* @min:%2eapplyOperationContext */](evt, itemCtx);\n ctx[_DYN_APPLY_USER_CONTEXT /* @min:%2eapplyUserContext */](evt, itemCtx);\n ctx[_DYN_APPLY_OPERATING_SYST3 /* @min:%2eapplyOperatingSystemContxt */](evt, itemCtx);\n ctx.applyWebContext(evt, itemCtx);\n ctx[_DYN_APPLY_LOCATION_CONTE4 /* @min:%2eapplyLocationContext */](evt, itemCtx); // legacy tags\n ctx[_DYN_APPLY_INTERNAL_CONTE5 /* @min:%2eapplyInternalContext */](evt, itemCtx); // legacy tags\n ctx.cleanUp(evt, itemCtx);\n }\n });\n return _this;\n }\n // Removed Stub for PropertiesPlugin.prototype.initialize.\n // Removed Stub for PropertiesPlugin.prototype.processTelemetry.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n PropertiesPlugin.__ieDyn = 1;\n return PropertiesPlugin;\n}(BaseTelemetryPlugin);\nexport default PropertiesPlugin;\n","/*\n * Application Insights JavaScript SDK - Web, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// ###################################################################################################################################################\n// Note: DON'T Export these const from the package as we are still targeting IE/ES5 this will export a mutable variables that someone could change ###\n// ###################################################################################################################################################\n// Generally you should only put values that are used more than 2 times and then only if not already exposed as a constant (such as SdkCoreNames)\n// as when using \"short\" named values from here they will be will be minified smaller than the SdkCoreNames[eSdkCoreNames.xxxx] value.\nvar _AUTHENTICATED_USER_CONTEXT = \"AuthenticatedUserContext\";\nvar _TRACK = \"track\";\nexport var STR_EMPTY = \"\";\nexport var STR_SNIPPET = \"snippet\";\nexport var STR_GET_COOKIE_MGR = \"getCookieMgr\";\nexport var STR_START_TRACK_PAGE = \"startTrackPage\";\nexport var STR_STOP_TRACK_PAGE = \"stopTrackPage\";\nexport var STR_FLUSH = \"flush\";\nexport var STR_START_TRACK_EVENT = \"startTrackEvent\";\nexport var STR_STOP_TRACK_EVENT = \"stopTrackEvent\";\nexport var STR_ADD_TELEMETRY_INITIALIZER = \"addTelemetryInitializer\";\nexport var STR_ADD_TELEMETRY_INITIALIZERS = STR_ADD_TELEMETRY_INITIALIZER + \"s\";\nexport var STR_POLL_INTERNAL_LOGS = \"pollInternalLogs\";\nexport var STR_GET_PLUGIN = \"getPlugin\";\nexport var STR_EVT_NAMESPACE = \"evtNamespace\";\nexport var STR_TRACK_EVENT = _TRACK + \"Event\";\nexport var STR_TRACK_TRACE = _TRACK + \"Trace\";\nexport var STR_TRACK_METRIC = _TRACK + \"Metric\";\nexport var STR_TRACK_PAGE_VIEW = _TRACK + \"PageView\";\nexport var STR_TRACK_EXCEPTION = _TRACK + \"Exception\";\nexport var STR_TRACK_DEPENDENCY_DATA = _TRACK + \"DependencyData\";\nexport var STR_SET_AUTHENTICATED_USER_CONTEXT = \"set\" + _AUTHENTICATED_USER_CONTEXT;\nexport var STR_CLEAR_AUTHENTICATED_USER_CONTEXT = \"clear\" + _AUTHENTICATED_USER_CONTEXT;\n","/*\n * Application Insights JavaScript SDK - Web, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// @skip-file-minify\n// ##############################################################\n// AUTO GENERATED FILE: This file is Auto Generated during build.\n// ##############################################################\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nexport var _DYN_VERSION = \"version\"; // Count: 6\nexport var _DYN_QUEUE = \"queue\"; // Count: 6\nexport var _DYN_CONNECTION_STRING = \"connectionString\"; // Count: 4\nexport var _DYN_ENDPOINT_URL = \"endpointUrl\"; // Count: 3\nexport var _DYN_INSTRUMENTATION_KEY = \"instrumentationKey\"; // Count: 3\nexport var _DYN_ONUNLOAD_FLUSH = \"onunloadFlush\"; // Count: 6\nexport var _DYN_CONTEXT = \"context\"; // Count: 5\nexport var _DYN_ADD_HOUSEKEEPING_BEF0 = \"addHousekeepingBeforeUnload\"; // Count: 2\nexport var _DYN_SEND_MESSAGE = \"sendMessage\"; // Count: 3\nexport var _DYN_IS_THROTTLED = \"isThrottled\"; // Count: 3\nexport var _DYN_UPDATE_SNIPPET_DEFIN1 = \"updateSnippetDefinitions\"; // Count: 2\n","/*\n * Application Insights JavaScript SDK - Web, 3.0.3\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nvar _a, _b, _c;\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { AnalyticsPlugin } from \"@microsoft/applicationinsights-analytics-js\";\nimport { CfgSyncPlugin } from \"@microsoft/applicationinsights-cfgsync-js\";\nimport { Sender } from \"@microsoft/applicationinsights-channel-js\";\nimport { AnalyticsPluginIdentifier, DEFAULT_BREEZE_PATH, PropertiesPluginIdentifier, ThrottleMgr, parseConnectionString } from \"@microsoft/applicationinsights-common\";\nimport { AppInsightsCore, _throwInternal, addPageHideEventListener, addPageUnloadEventListener, cfgDfValidate, createDynamicConfig, createProcessTelemetryContext, createUniqueNamespace, doPerf, hasDocument, hasWindow, isArray, isFeatureEnabled, isFunction, isNullOrUndefined, isReactNative, isString, mergeEvtNamespace, onConfigChange, proxyAssign, proxyFunctions, removePageHideEventListener, removePageUnloadEventListener } from \"@microsoft/applicationinsights-core-js\";\nimport { AjaxPlugin as DependenciesPlugin } from \"@microsoft/applicationinsights-dependencies-js\";\nimport { PropertiesPlugin } from \"@microsoft/applicationinsights-properties-js\";\nimport { createPromise } from \"@nevware21/ts-async\";\nimport { arrForEach, arrIndexOf, objDefine, objForEachKey, strIndexOf, throwUnsupported } from \"@nevware21/ts-utils\";\nimport { STR_ADD_TELEMETRY_INITIALIZER, STR_CLEAR_AUTHENTICATED_USER_CONTEXT, STR_EVT_NAMESPACE, STR_FLUSH, STR_GET_COOKIE_MGR, STR_GET_PLUGIN, STR_POLL_INTERNAL_LOGS, STR_SET_AUTHENTICATED_USER_CONTEXT, STR_SNIPPET, STR_START_TRACK_EVENT, STR_START_TRACK_PAGE, STR_STOP_TRACK_EVENT, STR_STOP_TRACK_PAGE, STR_TRACK_DEPENDENCY_DATA, STR_TRACK_EVENT, STR_TRACK_EXCEPTION, STR_TRACK_METRIC, STR_TRACK_PAGE_VIEW, STR_TRACK_TRACE } from \"./InternalConstants\";\nimport { _DYN_ADD_HOUSEKEEPING_BEF0, _DYN_CONNECTION_STRING, _DYN_CONTEXT, _DYN_ENDPOINT_URL, _DYN_INSTRUMENTATION_KEY, _DYN_IS_THROTTLED, _DYN_ONUNLOAD_FLUSH, _DYN_QUEUE, _DYN_SEND_MESSAGE, _DYN_UPDATE_SNIPPET_DEFIN1, _DYN_VERSION } from \"./__DynamicConstants\";\nvar _internalSdkSrc;\n// This is an exclude list of properties that should not be updated during initialization\n// They include a combination of private and internal property names\nvar _ignoreUpdateSnippetProperties = [STR_SNIPPET, \"dependencies\", \"properties\", \"_snippetVersion\", \"appInsightsNew\", \"getSKUDefaults\"];\nvar IKEY_USAGE = \"iKeyUsage\";\nvar CDN_USAGE = \"CdnUsage\";\nvar SDK_LOADER_VER = \"SdkLoaderVer\";\nvar UNDEFINED_VALUE = undefined;\nvar default_throttle_config = {\n disabled: true,\n limit: {\n samplingRate: 100,\n maxSendNumber: 1\n },\n interval: {\n monthInterval: 3,\n daysOfMonth: [28]\n }\n};\n// We need to include all properties that we only reference that we want to be dynamically updatable here\n// So they are converted even when not specified in the passed configuration\nvar defaultConfigValues = (_a = {}, _a[_DYN_CONNECTION_STRING /* @min:connectionString */] = UNDEFINED_VALUE, _a[_DYN_ENDPOINT_URL /* @min:endpointUrl */] = UNDEFINED_VALUE, _a[_DYN_INSTRUMENTATION_KEY /* @min:instrumentationKey */] = UNDEFINED_VALUE, _a.diagnosticLogInterval = cfgDfValidate(_chkDiagLevel, 10000), _a.featureOptIn = (_b = {}, _b[IKEY_USAGE] = {\n mode: 2 /* FeatureOptInMode.disable */\n}, _b[CDN_USAGE] = {\n mode: 2 /* FeatureOptInMode.disable */\n}, _b[SDK_LOADER_VER] = {\n mode: 2 /* FeatureOptInMode.disable */\n}, _b), _a.throttleMgrCfg = (_c = {}, _c[109 /* _eInternalMessageId.DefaultThrottleMsgKey */] = default_throttle_config, _c[106 /* _eInternalMessageId.InstrumentationKeyDeprecation */] = default_throttle_config, _c[111 /* _eInternalMessageId.SdkLdrUpdate */] = default_throttle_config, _c[110 /* _eInternalMessageId.CdnDeprecation */] = default_throttle_config, _c), _a);\nfunction _chkDiagLevel(value) {\n // Make sure we have a value > 0\n return value && value > 0;\n}\n/**\r\n * Application Insights API\r\n * @group Entrypoint\r\n * @group Classes\r\n * @class Initialization\r\n * @implements {IApplicationInsights}\r\n */\nvar AppInsightsSku = /** @class */function () {\n function AppInsightsSku(snippet) {\n var _this = this;\n // NOTE!: DON'T set default values here, instead set them in the _initDefaults() function as it is also called during teardown()\n var dependencies;\n var properties;\n var _sender;\n var _snippetVersion;\n var _evtNamespace;\n var _houseKeepingNamespace;\n var _core;\n var _config;\n var _analyticsPlugin;\n var _cfgSyncPlugin;\n var _throttleMgr;\n var _iKeySentMessage;\n var _cdnSentMessage;\n var _sdkVerSentMessage;\n dynamicProto(AppInsightsSku, this, function (_self) {\n _initDefaults();\n objDefine(_self, \"config\", {\n g: function () {\n return _config;\n }\n });\n arrForEach([\"pluginVersionStringArr\", \"pluginVersionString\"], function (key) {\n objDefine(_self, key, {\n g: function () {\n if (_core) {\n return _core[key];\n }\n return null;\n }\n });\n });\n // initialize the queue and config in case they are undefined\n _snippetVersion = \"\" + (snippet.sv || snippet[_DYN_VERSION /* @min:%2eversion */] || \"\");\n snippet[_DYN_QUEUE /* @min:%2equeue */] = snippet[_DYN_QUEUE /* @min:%2equeue */] || [];\n snippet[_DYN_VERSION /* @min:%2eversion */] = snippet[_DYN_VERSION /* @min:%2eversion */] || 2.0; // Default to new version\n var cfgHandler = createDynamicConfig(snippet.config || {}, defaultConfigValues);\n _config = cfgHandler.cfg;\n _analyticsPlugin = new AnalyticsPlugin();\n objDefine(_self, \"appInsights\", {\n g: function () {\n return _analyticsPlugin;\n }\n });\n properties = new PropertiesPlugin();\n dependencies = new DependenciesPlugin();\n _sender = new Sender();\n _core = new AppInsightsCore();\n objDefine(_self, \"core\", {\n g: function () {\n return _core;\n }\n });\n // Will get recalled if any referenced values are changed\n _addUnloadHook(onConfigChange(cfgHandler, function () {\n if (_config[_DYN_CONNECTION_STRING /* @min:%2econnectionString */]) {\n var cs = parseConnectionString(_config[_DYN_CONNECTION_STRING /* @min:%2econnectionString */]);\n var ingest = cs.ingestionendpoint;\n _config[_DYN_ENDPOINT_URL /* @min:%2eendpointUrl */] = ingest ? ingest + DEFAULT_BREEZE_PATH : _config[_DYN_ENDPOINT_URL /* @min:%2eendpointUrl */]; // only add /v2/track when from connectionstring\n _config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */] = cs.instrumentationkey || _config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */];\n }\n }));\n _self[STR_SNIPPET /* @min:%2esnippet */] = snippet;\n _self[STR_FLUSH /* @min:%2eflush */] = function (async, callBack) {\n if (async === void 0) {\n async = true;\n }\n var result;\n doPerf(_core, function () {\n return \"AISKU.flush\";\n }, function () {\n if (async && !callBack) {\n result = createPromise(function (resolve) {\n callBack = resolve;\n });\n }\n var waiting = 1;\n var flushDone = function () {\n waiting--;\n if (waiting === 0) {\n callBack();\n }\n };\n arrForEach(_core.getChannels(), function (channel) {\n if (channel) {\n waiting++;\n channel[STR_FLUSH /* @min:%2eflush */](async, flushDone);\n }\n });\n // decrement the initial \"waiting\"\n flushDone();\n }, null, async);\n return result;\n };\n _self[_DYN_ONUNLOAD_FLUSH /* @min:%2eonunloadFlush */] = function (async) {\n if (async === void 0) {\n async = true;\n }\n arrForEach(_core.getChannels(), function (channel) {\n if (channel[_DYN_ONUNLOAD_FLUSH /* @min:%2eonunloadFlush */]) {\n channel[_DYN_ONUNLOAD_FLUSH /* @min:%2eonunloadFlush */]();\n } else {\n channel[STR_FLUSH /* @min:%2eflush */](async);\n }\n });\n };\n _self.loadAppInsights = function (legacyMode, logger, notificationManager) {\n if (legacyMode === void 0) {\n legacyMode = false;\n }\n if (legacyMode) {\n throwUnsupported(\"Legacy Mode is no longer supported\");\n }\n function _updateSnippetProperties(snippet) {\n if (snippet) {\n var snippetVer = \"\";\n if (!isNullOrUndefined(_snippetVersion)) {\n snippetVer += _snippetVersion;\n }\n if (_self[_DYN_CONTEXT /* @min:%2econtext */] && _self[_DYN_CONTEXT /* @min:%2econtext */].internal) {\n _self[_DYN_CONTEXT /* @min:%2econtext */].internal.snippetVer = snippetVer || \"-\";\n }\n // apply updated properties to the global instance (snippet)\n objForEachKey(_self, function (field, value) {\n if (isString(field) && !isFunction(value) && field && field[0] !== \"_\" &&\n // Don't copy \"internal\" values\n arrIndexOf(_ignoreUpdateSnippetProperties, field) === -1) {\n if (snippet[field] !== value) {\n snippet[field] = value;\n }\n }\n });\n }\n }\n doPerf(_self.core, function () {\n return \"AISKU.loadAppInsights\";\n }, function () {\n // initialize core\n _core.initialize(_config, [_sender, properties, dependencies, _analyticsPlugin, _cfgSyncPlugin], logger, notificationManager);\n objDefine(_self, \"context\", {\n g: function () {\n return properties[_DYN_CONTEXT /* @min:%2econtext */];\n }\n });\n if (!_throttleMgr) {\n _throttleMgr = new ThrottleMgr(_core);\n }\n var sdkSrc = _findSdkSourceFile();\n if (sdkSrc && _self[_DYN_CONTEXT /* @min:%2econtext */]) {\n _self[_DYN_CONTEXT /* @min:%2econtext */].internal.sdkSrc = sdkSrc;\n }\n _updateSnippetProperties(_self[STR_SNIPPET /* @min:%2esnippet */]);\n // Empty queue of all api calls logged prior to sdk download\n _self.emptyQueue();\n _self[STR_POLL_INTERNAL_LOGS /* @min:%2epollInternalLogs */]();\n _self[_DYN_ADD_HOUSEKEEPING_BEF0 /* @min:%2eaddHousekeepingBeforeUnload */](_self);\n _addUnloadHook(onConfigChange(cfgHandler, function () {\n var defaultEnable = false;\n if (_config.throttleMgrCfg[109 /* _eInternalMessageId.DefaultThrottleMsgKey */]) {\n defaultEnable = !_config.throttleMgrCfg[109 /* _eInternalMessageId.DefaultThrottleMsgKey */].disabled;\n }\n if (!_throttleMgr.isReady() && _config.extensionConfig && _config.extensionConfig[_cfgSyncPlugin.identifier] && defaultEnable) {\n // set ready state to true will automatically trigger flush()\n _throttleMgr.onReadyState(true);\n }\n var result;\n if (!_iKeySentMessage && !_config[_DYN_CONNECTION_STRING /* @min:%2econnectionString */] && isFeatureEnabled(IKEY_USAGE, _config)) {\n result = _throttleMgr[_DYN_SEND_MESSAGE /* @min:%2esendMessage */](106 /* _eInternalMessageId.InstrumentationKeyDeprecation */, \"See Instrumentation key support at aka.ms/IkeyMigrate\");\n if (result && result[_DYN_IS_THROTTLED /* @min:%2eisThrottled */]) {\n _iKeySentMessage = true;\n }\n }\n if (!_cdnSentMessage && _self[_DYN_CONTEXT /* @min:%2econtext */].internal.sdkSrc && _self[_DYN_CONTEXT /* @min:%2econtext */].internal.sdkSrc.indexOf(\"az416426\") != -1 && isFeatureEnabled(CDN_USAGE, _config)) {\n result = _throttleMgr[_DYN_SEND_MESSAGE /* @min:%2esendMessage */](110 /* _eInternalMessageId.CdnDeprecation */, \"See Cdn support notice at aka.ms/JsActiveCdn\");\n if (result && result[_DYN_IS_THROTTLED /* @min:%2eisThrottled */]) {\n _cdnSentMessage = true;\n }\n }\n if (!_sdkVerSentMessage && parseInt(_snippetVersion) < 6 && isFeatureEnabled(SDK_LOADER_VER, _config)) {\n result = _throttleMgr[_DYN_SEND_MESSAGE /* @min:%2esendMessage */](111 /* _eInternalMessageId.SdkLdrUpdate */, \"An updated Sdk Loader is available, see aka.ms/SnippetVer\");\n if (result && result[_DYN_IS_THROTTLED /* @min:%2eisThrottled */]) {\n _sdkVerSentMessage = true;\n }\n }\n }));\n });\n return _self;\n };\n _self[_DYN_UPDATE_SNIPPET_DEFIN1 /* @min:%2eupdateSnippetDefinitions */] = function (snippet) {\n // apply full appInsights to the global instance\n // Note: This must be called before loadAppInsights is called\n proxyAssign(snippet, _self, function (name) {\n // Not excluding names prefixed with \"_\" as we need to proxy some functions like _onError\n return name && arrIndexOf(_ignoreUpdateSnippetProperties, name) === -1;\n });\n };\n _self.emptyQueue = function () {\n // call functions that were queued before the main script was loaded\n try {\n if (isArray(_self.snippet[_DYN_QUEUE /* @min:%2equeue */])) {\n // note: do not check length in the for-loop conditional in case something goes wrong and the stub methods are not overridden.\n var length_1 = _self.snippet[_DYN_QUEUE /* @min:%2equeue */].length;\n for (var i = 0; i < length_1; i++) {\n var call = _self.snippet[_DYN_QUEUE /* @min:%2equeue */][i];\n call();\n }\n _self.snippet[_DYN_QUEUE /* @min:%2equeue */] = undefined;\n delete _self.snippet[_DYN_QUEUE /* @min:%2equeue */];\n }\n } catch (exception) {\n var properties_1 = {};\n if (exception && isFunction(exception.toString)) {\n properties_1.exception = exception.toString();\n }\n // need from core\n // Microsoft.ApplicationInsights._InternalLogging.throwInternal(\n // eLoggingSeverity.WARNING,\n // _eInternalMessageId.FailedToSendQueuedTelemetry,\n // \"Failed to send queued telemetry\",\n // properties);\n }\n };\n _self[_DYN_ADD_HOUSEKEEPING_BEF0 /* @min:%2eaddHousekeepingBeforeUnload */] = function (appInsightsInstance) {\n // Add callback to push events when the user navigates away\n if (hasWindow() || hasDocument()) {\n var performHousekeeping_1 = function () {\n // Adds the ability to flush all data before the page unloads.\n // Note: This approach tries to push a sync request with all the pending events onbeforeunload.\n // Firefox does not respect this.Other browsers DO push out the call with < 100% hit rate.\n // Telemetry here will help us analyze how effective this approach is.\n // Another approach would be to make this call sync with a acceptable timeout to reduce the\n // impact on user experience.\n // appInsightsInstance.context._sender.triggerSend();\n appInsightsInstance[_DYN_ONUNLOAD_FLUSH /* @min:%2eonunloadFlush */](false);\n // Back up the current session to local storage\n // This lets us close expired sessions after the cookies themselves expire\n if (isFunction(_self.core[STR_GET_PLUGIN /* @min:%2egetPlugin */])) {\n var loadedPlugin = _this.core[STR_GET_PLUGIN /* @min:%2egetPlugin */](PropertiesPluginIdentifier);\n if (loadedPlugin) {\n var propertiesPlugin = loadedPlugin.plugin;\n if (propertiesPlugin && propertiesPlugin[_DYN_CONTEXT /* @min:%2econtext */] && propertiesPlugin[_DYN_CONTEXT /* @min:%2econtext */]._sessionManager) {\n propertiesPlugin[_DYN_CONTEXT /* @min:%2econtext */]._sessionManager.backup();\n }\n }\n }\n };\n var added_1 = false;\n if (!_houseKeepingNamespace) {\n _houseKeepingNamespace = mergeEvtNamespace(_evtNamespace, _core[STR_EVT_NAMESPACE /* @min:%2eevtNamespace */] && _core[STR_EVT_NAMESPACE /* @min:%2eevtNamespace */]());\n }\n // Will be recalled if any referenced config properties change\n _addUnloadHook(onConfigChange(_config, function (details) {\n var coreConfig = details.cfg;\n var analyticsPlugin = appInsightsInstance.appInsights;\n var ctx = createProcessTelemetryContext(null, coreConfig, analyticsPlugin.core);\n var extConfig = ctx.getExtCfg(analyticsPlugin.identifier || AnalyticsPluginIdentifier);\n // As we could get recalled, remove any previously registered event handlers first\n _removePageEventHandlers();\n var excludePageUnloadEvents = coreConfig.disablePageUnloadEvents;\n if (!extConfig.disableFlushOnBeforeUnload) {\n // Hook the unload event for the document, window and body to ensure that the client events are flushed to the server\n // As just hooking the window does not always fire (on chrome) for page navigation's.\n if (addPageUnloadEventListener(performHousekeeping_1, excludePageUnloadEvents, _houseKeepingNamespace)) {\n added_1 = true;\n }\n // We also need to hook the pagehide and visibilitychange events as not all versions of Safari support load/unload events.\n if (addPageHideEventListener(performHousekeeping_1, excludePageUnloadEvents, _houseKeepingNamespace)) {\n added_1 = true;\n }\n // A reactNative app may not have a window and therefore the beforeunload/pagehide events -- so don't\n // log the failure in this case\n if (!added_1 && !isReactNative()) {\n _throwInternal(_core.logger, 1 /* eLoggingSeverity.CRITICAL */, 19 /* _eInternalMessageId.FailedToAddHandlerForOnBeforeUnload */, \"Could not add handler for beforeunload and pagehide\");\n }\n }\n if (!added_1 && !extConfig.disableFlushOnUnload) {\n // If we didn't add the normal set then attempt to add the pagehide and visibilitychange only\n addPageHideEventListener(performHousekeeping_1, excludePageUnloadEvents, _houseKeepingNamespace);\n }\n }));\n }\n };\n _self.getSender = function () {\n return _sender;\n };\n _self.unload = function (isAsync, unloadComplete, cbTimeout) {\n var unloadDone = false;\n var result;\n if (isAsync && !unloadComplete) {\n result = createPromise(function (resolve) {\n // Set the callback to the promise resolve callback\n unloadComplete = resolve;\n });\n }\n function _unloadCallback(unloadState) {\n if (!unloadDone) {\n unloadDone = true;\n _initDefaults();\n unloadComplete && unloadComplete(unloadState);\n }\n }\n _self[_DYN_ONUNLOAD_FLUSH /* @min:%2eonunloadFlush */](isAsync);\n _removePageEventHandlers();\n _core.unload && _core.unload(isAsync, _unloadCallback, cbTimeout);\n return result;\n };\n proxyFunctions(_self, _analyticsPlugin, [STR_GET_COOKIE_MGR, STR_TRACK_EVENT, STR_TRACK_PAGE_VIEW, \"trackPageViewPerformance\", STR_TRACK_EXCEPTION, \"_onerror\", STR_TRACK_TRACE, STR_TRACK_METRIC, STR_START_TRACK_PAGE, STR_STOP_TRACK_PAGE, STR_START_TRACK_EVENT, STR_STOP_TRACK_EVENT]);\n proxyFunctions(_self, _getCurrentDependencies, [STR_TRACK_DEPENDENCY_DATA, \"addDependencyListener\", \"addDependencyInitializer\"]);\n proxyFunctions(_self, _core, [STR_ADD_TELEMETRY_INITIALIZER, STR_POLL_INTERNAL_LOGS, \"stopPollingInternalLogs\", STR_GET_PLUGIN, \"addPlugin\", STR_EVT_NAMESPACE, \"addUnloadCb\", \"getTraceCtx\", \"updateCfg\", \"onCfgChange\"]);\n proxyFunctions(_self, function () {\n var context = properties[_DYN_CONTEXT /* @min:%2econtext */];\n return context ? context.user : null;\n }, [STR_SET_AUTHENTICATED_USER_CONTEXT, STR_CLEAR_AUTHENTICATED_USER_CONTEXT]);\n // Using a function to support the dynamic adding / removal of plugins, so this will always return the current value\n function _getCurrentDependencies() {\n return dependencies;\n }\n function _initDefaults() {\n _evtNamespace = createUniqueNamespace(\"AISKU\");\n _houseKeepingNamespace = null;\n dependencies = null;\n properties = null;\n _sender = null;\n _snippetVersion = null;\n _throttleMgr = null;\n _iKeySentMessage = false;\n _cdnSentMessage = false;\n _sdkVerSentMessage = false;\n _cfgSyncPlugin = new CfgSyncPlugin();\n }\n function _removePageEventHandlers() {\n // Remove any registered event handlers\n if (_houseKeepingNamespace) {\n removePageUnloadEventListener(null, _houseKeepingNamespace);\n removePageHideEventListener(null, _houseKeepingNamespace);\n }\n }\n function _addUnloadHook(hooks) {\n _core.addUnloadHook(hooks);\n }\n });\n }\n // Analytics Plugin\n // Removed Stub for AppInsightsSku.prototype.getCookieMgr.\n // Removed Stub for AppInsightsSku.prototype.trackEvent.\n // Removed Stub for AppInsightsSku.prototype.trackPageView.\n // Removed Stub for AppInsightsSku.prototype.trackPageViewPerformance.\n // Removed Stub for AppInsightsSku.prototype.trackException.\n // Removed Stub for AppInsightsSku.prototype._onerror.\n // Removed Stub for AppInsightsSku.prototype.trackTrace.\n // Removed Stub for AppInsightsSku.prototype.trackMetric.\n // Removed Stub for AppInsightsSku.prototype.startTrackPage.\n // Removed Stub for AppInsightsSku.prototype.stopTrackPage.\n // Removed Stub for AppInsightsSku.prototype.startTrackEvent.\n // Removed Stub for AppInsightsSku.prototype.stopTrackEvent.\n // Removed Stub for AppInsightsSku.prototype.addTelemetryInitializer.\n // Properties Plugin\n // Removed Stub for AppInsightsSku.prototype.setAuthenticatedUserContext.\n // Removed Stub for AppInsightsSku.prototype.clearAuthenticatedUserContext.\n // Dependencies Plugin\n // Removed Stub for AppInsightsSku.prototype.trackDependencyData.\n // Misc\n // Removed Stub for AppInsightsSku.prototype.flush.\n // Removed Stub for AppInsightsSku.prototype.onunloadFlush.\n // Removed Stub for AppInsightsSku.prototype.loadAppInsights.\n // Removed Stub for AppInsightsSku.prototype.updateSnippetDefinitions.\n // Removed Stub for AppInsightsSku.prototype.emptyQueue.\n // Removed Stub for AppInsightsSku.prototype.pollInternalLogs.\n // Removed Stub for AppInsightsSku.prototype.stopPollingInternalLogs.\n // Removed Stub for AppInsightsSku.prototype.addHousekeepingBeforeUnload.\n // Removed Stub for AppInsightsSku.prototype.getSender.\n // Removed Stub for AppInsightsSku.prototype.unload.\n // Removed Stub for AppInsightsSku.prototype.getPlugin.\n // Removed Stub for AppInsightsSku.prototype.addPlugin.\n // Removed Stub for AppInsightsSku.prototype.updateCfg.\n // Removed Stub for AppInsightsSku.prototype.evtNamespace.\n // Removed Stub for AppInsightsSku.prototype.addUnloadCb.\n // Removed Stub for AppInsightsSku.prototype.addDependencyListener.\n /**\r\n * Add an dependency telemetry initializer callback function to allow populating additional properties or drop the request.\r\n * It is called after the dependency call has completed and any available performance details are available. A dependency\r\n * initializer is similar to the TelemetryInitializer function but it allows you to block the reporting of the dependency\r\n * request so that it doesn't count against the `maxAjaxCallsPerView`.\r\n * @param dependencyInitializer - The Dependency Telemetry Initializer function\r\n * @returns - A IDependencyInitializerHandler to enable the initializer to be removed\r\n */\n AppInsightsSku.prototype.addDependencyInitializer = function (dependencyInitializer) {\n return null;\n };\n // Removed Stub for AppInsightsSku.prototype.getTraceCtx.\n // Removed Stub for AppInsightsSku.prototype.onCfgChange.\n return AppInsightsSku;\n}();\nexport { AppInsightsSku };\n// tslint:disable-next-line\nexport function _findSdkSourceFile() {\n if (_internalSdkSrc) {\n // Use the cached value\n return _internalSdkSrc;\n }\n var sdkSrc = null;\n var isModule = false;\n var cdns = [\"://js.monitor.azure.com/\", \"://az416426.vo.msecnd.net/\"];\n try {\n // Try and determine whether the sdk is being loaded from the CDN\n // currentScript is only valid during initial processing\n var scrpt = (document || {}).currentScript;\n if (scrpt) {\n sdkSrc = scrpt.src;\n // } else {\n // // We need to update to at least typescript 2.9 for this to work :-(\n // // Leaving as a stub for now so after we upgrade this breadcrumb is available\n // let meta = import.meta;\n // sdkSrc = (meta || {}).url;\n // isModule = true;\n }\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n if (sdkSrc) {\n try {\n var url_1 = sdkSrc.toLowerCase();\n if (url_1) {\n var src_1 = \"\";\n arrForEach(cdns, function (value, idx) {\n if (strIndexOf(url_1, value) !== -1) {\n src_1 = \"cdn\" + (idx + 1);\n if (strIndexOf(url_1, \"/scripts/\") === -1) {\n if (strIndexOf(url_1, \"/next/\") !== -1) {\n src_1 += \"-next\";\n } else if (strIndexOf(url_1, \"/beta/\") !== -1) {\n src_1 += \"-beta\";\n }\n }\n _internalSdkSrc = src_1 + (isModule ? \".mod\" : \"\");\n return -1;\n }\n });\n }\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n // Cache the found value so we don't have to look it up again\n _internalSdkSrc = sdkSrc;\n }\n return _internalSdkSrc;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// @skip-file-minify\n// ##############################################################\n// AUTO GENERATED FILE: This file is Auto Generated during build.\n// ##############################################################\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nexport var _DYN_TO_LOWER_CASE = \"toLowerCase\"; // Count: 11\nexport var _DYN_BLK_VAL = \"blkVal\"; // Count: 5\nexport var _DYN_LENGTH = \"length\"; // Count: 55\nexport var _DYN_RD_ONLY = \"rdOnly\"; // Count: 4\nexport var _DYN_NOTIFY = \"notify\"; // Count: 4\nexport var _DYN_WARN_TO_CONSOLE = \"warnToConsole\"; // Count: 4\nexport var _DYN_THROW_INTERNAL = \"throwInternal\"; // Count: 5\nexport var _DYN_SET_DF = \"setDf\"; // Count: 6\nexport var _DYN_WATCH = \"watch\"; // Count: 8\nexport var _DYN_LOGGER = \"logger\"; // Count: 21\nexport var _DYN_APPLY = \"apply\"; // Count: 7\nexport var _DYN_PUSH = \"push\"; // Count: 34\nexport var _DYN_SPLICE = \"splice\"; // Count: 8\nexport var _DYN_HDLR = \"hdlr\"; // Count: 6\nexport var _DYN_CANCEL = \"cancel\"; // Count: 6\nexport var _DYN_INITIALIZE = \"initialize\"; // Count: 5\nexport var _DYN_IDENTIFIER = \"identifier\"; // Count: 8\nexport var _DYN_REMOVE_NOTIFICATION_0 = \"removeNotificationListener\"; // Count: 4\nexport var _DYN_ADD_NOTIFICATION_LIS1 = \"addNotificationListener\"; // Count: 4\nexport var _DYN_IS_INITIALIZED = \"isInitialized\"; // Count: 10\nexport var _DYN_INSTRUMENTATION_KEY = \"instrumentationKey\"; // Count: 2\nexport var _DYN__INACTIVE = \"INACTIVE\"; // Count: 3\nexport var _DYN_VALUE = \"value\"; // Count: 5\nexport var _DYN_GET_NOTIFY_MGR = \"getNotifyMgr\"; // Count: 5\nexport var _DYN_GET_PLUGIN = \"getPlugin\"; // Count: 6\nexport var _DYN_NAME = \"name\"; // Count: 12\nexport var _DYN_I_KEY = \"iKey\"; // Count: 5\nexport var _DYN_TIME = \"time\"; // Count: 6\nexport var _DYN_PROCESS_NEXT = \"processNext\"; // Count: 15\nexport var _DYN_GET_PROCESS_TEL_CONT2 = \"getProcessTelContext\"; // Count: 2\nexport var _DYN_POLL_INTERNAL_LOGS = \"pollInternalLogs\"; // Count: 2\nexport var _DYN_ENABLED = \"enabled\"; // Count: 6\nexport var _DYN_STOP_POLLING_INTERNA3 = \"stopPollingInternalLogs\"; // Count: 2\nexport var _DYN_UNLOAD = \"unload\"; // Count: 9\nexport var _DYN_ON_COMPLETE = \"onComplete\"; // Count: 5\nexport var _DYN_VERSION = \"version\"; // Count: 6\nexport var _DYN_LOGGING_LEVEL_CONSOL4 = \"loggingLevelConsole\"; // Count: 2\nexport var _DYN_CREATE_NEW = \"createNew\"; // Count: 7\nexport var _DYN_TEARDOWN = \"teardown\"; // Count: 9\nexport var _DYN_MESSAGE_ID = \"messageId\"; // Count: 4\nexport var _DYN_MESSAGE = \"message\"; // Count: 7\nexport var _DYN_IS_ASYNC = \"isAsync\"; // Count: 6\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 10\nexport var _DYN__DO_TEARDOWN = \"_doTeardown\"; // Count: 5\nexport var _DYN_UPDATE = \"update\"; // Count: 6\nexport var _DYN_GET_NEXT = \"getNext\"; // Count: 12\nexport var _DYN_SET_NEXT_PLUGIN = \"setNextPlugin\"; // Count: 5\nexport var _DYN_PROTOCOL = \"protocol\"; // Count: 3\nexport var _DYN_USER_AGENT = \"userAgent\"; // Count: 5\nexport var _DYN_SPLIT = \"split\"; // Count: 7\nexport var _DYN_NODE_TYPE = \"nodeType\"; // Count: 3\nexport var _DYN_REPLACE = \"replace\"; // Count: 9\nexport var _DYN_LOG_INTERNAL_MESSAGE = \"logInternalMessage\"; // Count: 2\nexport var _DYN_TYPE = \"type\"; // Count: 14\nexport var _DYN_HANDLER = \"handler\"; // Count: 5\nexport var _DYN_STATUS = \"status\"; // Count: 5\nexport var _DYN_GET_RESPONSE_HEADER = \"getResponseHeader\"; // Count: 2\nexport var _DYN_GET_ALL_RESPONSE_HEA5 = \"getAllResponseHeaders\"; // Count: 2\nexport var _DYN_IS_CHILD_EVT = \"isChildEvt\"; // Count: 3\nexport var _DYN_DATA = \"data\"; // Count: 7\nexport var _DYN_GET_CTX = \"getCtx\"; // Count: 6\nexport var _DYN_SET_CTX = \"setCtx\"; // Count: 10\nexport var _DYN_COMPLETE = \"complete\"; // Count: 3\nexport var _DYN_ITEMS_RECEIVED = \"itemsReceived\"; // Count: 3\nexport var _DYN_URL_STRING = \"urlString\"; // Count: 5\nexport var _DYN_SEND_POST = \"sendPOST\"; // Count: 3\nexport var _DYN_HEADERS = \"headers\"; // Count: 5\nexport var _DYN_TIMEOUT = \"timeout\"; // Count: 6\nexport var _DYN_SET_REQUEST_HEADER = \"setRequestHeader\"; // Count: 2\nexport var _DYN_TRACE_ID = \"traceId\"; // Count: 5\nexport var _DYN_SPAN_ID = \"spanId\"; // Count: 5\nexport var _DYN_TRACE_FLAGS = \"traceFlags\"; // Count: 6\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrForEach, createCustomError, dumpObj } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH } from \"../__DynamicConstants\";\nvar aggregationErrorType;\n/**\r\n * Throws an Aggregation Error which includes all of the errors that led to this error occurring\r\n * @param message - The message describing the aggregation error (the sourceError details are added to this)\r\n * @param sourceErrors - An array of the errors that caused this situation\r\n */\nexport function throwAggregationError(message, sourceErrors) {\n if (!aggregationErrorType) {\n aggregationErrorType = createCustomError(\"AggregationError\", function (self, args) {\n if (args[_DYN_LENGTH /* @min:%2elength */] > 1) {\n // Save the provided errors\n self.errors = args[1];\n }\n });\n }\n var theMessage = message || \"One or more errors occurred.\";\n arrForEach(sourceErrors, function (srcError, idx) {\n theMessage += \"\\n\".concat(idx, \" > \").concat(dumpObj(srcError));\n });\n throw new aggregationErrorType(theMessage, sourceErrors || []);\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// ###################################################################################################################################################\n// Note: DON'T Export these const from the package as we are still targeting IE/ES5 this will export a mutable variables that someone could change ###\n// ###################################################################################################################################################\nexport var UNDEFINED_VALUE = undefined;\nexport var STR_EMPTY = \"\";\nexport var STR_CHANNELS = \"channels\";\nexport var STR_CORE = \"core\";\nexport var STR_CREATE_PERF_MGR = \"createPerfMgr\";\nexport var STR_DISABLED = \"disabled\";\nexport var STR_EXTENSION_CONFIG = \"extensionConfig\";\nexport var STR_EXTENSIONS = \"extensions\";\nexport var STR_PROCESS_TELEMETRY = \"processTelemetry\";\nexport var STR_PRIORITY = \"priority\";\nexport var STR_EVENTS_SENT = \"eventsSent\";\nexport var STR_EVENTS_DISCARDED = \"eventsDiscarded\";\nexport var STR_EVENTS_SEND_REQUEST = \"eventsSendRequest\";\nexport var STR_PERF_EVENT = \"perfEvent\";\nexport var STR_OFFLINE_STORE = \"offlineEventsStored\";\nexport var STR_OFFLINE_SENT = \"offlineBatchSent\";\nexport var STR_OFFLINE_DROP = \"offlineBatchDrop\";\nexport var STR_GET_PERF_MGR = \"getPerfMgr\";\nexport var STR_DOMAIN = \"domain\";\nexport var STR_PATH = \"path\";\nexport var STR_NOT_DYNAMIC_ERROR = \"Not dynamic - \";\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { ObjAssign, ObjClass } from \"@microsoft/applicationinsights-shims\";\nimport { arrForEach, asString as asString21, isArray, isBoolean, isError, isFunction, isNullOrUndefined, isNumber, isObject, isPlainObject, isString, isUndefined, objDeepFreeze, objDefine, objForEachKey, objHasOwn, strIndexOf, strTrim } from \"@nevware21/ts-utils\";\nimport { _DYN_APPLY, _DYN_GET_ALL_RESPONSE_HEA5, _DYN_GET_RESPONSE_HEADER, _DYN_LENGTH, _DYN_NAME, _DYN_REPLACE, _DYN_SPLIT, _DYN_STATUS, _DYN_TO_LOWER_CASE } from \"../__DynamicConstants\";\nimport { STR_EMPTY } from \"./InternalConstants\";\n// RESTRICT and AVOID circular dependencies you should not import other contained modules or export the contents of this file directly\n// Added to help with minification\nvar strGetPrototypeOf = \"getPrototypeOf\";\nvar rCamelCase = /-([a-z])/g;\nvar rNormalizeInvalid = /([^\\w\\d_$])/g;\nvar rLeadingNumeric = /^(\\d+[\\w\\d_$])/;\nexport var _getObjProto = Object[strGetPrototypeOf];\nexport function isNotUndefined(value) {\n return !isUndefined(value);\n}\nexport function isNotNullOrUndefined(value) {\n return !isNullOrUndefined(value);\n}\n/**\r\n * Validates that the string name conforms to the JS IdentifierName specification and if not\r\n * normalizes the name so that it would. This method does not identify or change any keywords\r\n * meaning that if you pass in a known keyword the same value will be returned.\r\n * This is a simplified version\r\n * @param name - The name to validate\r\n */\nexport function normalizeJsName(name) {\n var value = name;\n if (value && isString(value)) {\n // CamelCase everything after the \"-\" and remove the dash\n value = value[_DYN_REPLACE /* @min:%2ereplace */](rCamelCase, function (_all, letter) {\n return letter.toUpperCase();\n });\n value = value[_DYN_REPLACE /* @min:%2ereplace */](rNormalizeInvalid, \"_\");\n value = value[_DYN_REPLACE /* @min:%2ereplace */](rLeadingNumeric, function (_all, match) {\n return \"_\" + match;\n });\n }\n return value;\n}\n/**\r\n * A simple wrapper (for minification support) to check if the value contains the search string.\r\n * @param value - The string value to check for the existence of the search value\r\n * @param search - The value search within the value\r\n */\nexport function strContains(value, search) {\n if (value && search) {\n return strIndexOf(value, search) !== -1;\n }\n return false;\n}\n/**\r\n * Convert a date to I.S.O. format in IE8\r\n */\nexport function toISOString(date) {\n return date && date.toISOString() || \"\";\n}\nexport var deepFreeze = objDeepFreeze;\n/**\r\n * Returns the name of object if it's an Error. Otherwise, returns empty string.\r\n */\nexport function getExceptionName(object) {\n if (isError(object)) {\n return object[_DYN_NAME /* @min:%2ename */];\n }\n return STR_EMPTY;\n}\n/**\r\n * Sets the provided value on the target instance using the field name when the provided chk function returns true, the chk\r\n * function will only be called if the new value is no equal to the original value.\r\n * @param target - The target object\r\n * @param field - The key of the target\r\n * @param value - The value to set\r\n * @param valChk - [Optional] Callback to check the value that if supplied will be called check if the new value can be set\r\n * @param srcChk - [Optional] Callback to check to original value that if supplied will be called if the new value should be set (if allowed)\r\n * @returns The existing or new value, depending what was set\r\n */\nexport function setValue(target, field, value, valChk, srcChk) {\n var theValue = value;\n if (target) {\n theValue = target[field];\n if (theValue !== value && (!srcChk || srcChk(theValue)) && (!valChk || valChk(value))) {\n theValue = value;\n target[field] = theValue;\n }\n }\n return theValue;\n}\n/**\r\n * Returns the current value from the target object if not null or undefined otherwise sets the new value and returns it\r\n * @param target - The target object to return or set the default value\r\n * @param field - The key for the field to set on the target\r\n * @param defValue - [Optional] The value to set if not already present, when not provided a empty object will be added\r\n */\nexport function getSetValue(target, field, defValue) {\n var theValue;\n if (target) {\n theValue = target[field];\n if (!theValue && isNullOrUndefined(theValue)) {\n // Supports having the default as null\n theValue = !isUndefined(defValue) ? defValue : {};\n target[field] = theValue;\n }\n } else {\n // Expanded for performance so we only check defValue if required\n theValue = !isUndefined(defValue) ? defValue : {};\n }\n return theValue;\n}\nfunction _createProxyFunction(source, funcName) {\n var srcFunc = null;\n var src = null;\n if (isFunction(source)) {\n srcFunc = source;\n } else {\n src = source;\n }\n return function () {\n // Capture the original arguments passed to the method\n var originalArguments = arguments;\n if (srcFunc) {\n src = srcFunc();\n }\n if (src) {\n return src[funcName][_DYN_APPLY /* @min:%2eapply */](src, originalArguments);\n }\n };\n}\n/**\r\n * Effectively assigns all enumerable properties (not just own properties) and functions (including inherited prototype) from\r\n * the source object to the target, it attempts to use proxy getters / setters (if possible) and proxy functions to avoid potential\r\n * implementation issues by assigning prototype functions as instance ones\r\n *\r\n * This method is the primary method used to \"update\" the snippet proxy with the ultimate implementations.\r\n *\r\n * Special ES3 Notes:\r\n * Updates (setting) of direct property values on the target or indirectly on the source object WILL NOT WORK PROPERLY, updates to the\r\n * properties of \"referenced\" object will work (target.context.newValue = 10 => will be reflected in the source.context as it's the\r\n * same object). ES3 Failures: assigning target.myProp = 3 -> Won't change source.myProp = 3, likewise the reverse would also fail.\r\n * @param target - The target object to be assigned with the source properties and functions\r\n * @param source - The source object which will be assigned / called by setting / calling the targets proxies\r\n * @param chkSet - An optional callback to determine whether a specific property/function should be proxied\r\n */\nexport function proxyAssign(target, source, chkSet) {\n if (target && source && isObject(target) && isObject(source)) {\n var _loop_1 = function (field) {\n if (isString(field)) {\n var value = source[field];\n if (isFunction(value)) {\n if (!chkSet || chkSet(field, true, source, target)) {\n // Create a proxy function rather than just copying the (possible) prototype to the new object as an instance function\n target[field] = _createProxyFunction(source, field);\n }\n } else if (!chkSet || chkSet(field, false, source, target)) {\n if (objHasOwn(target, field)) {\n // Remove any previous instance property\n delete target[field];\n }\n objDefine(target, field, {\n g: function () {\n return source[field];\n },\n s: function (theValue) {\n source[field] = theValue;\n }\n });\n }\n }\n };\n // effectively apply/proxy full source to the target instance\n for (var field in source) {\n _loop_1(field);\n }\n }\n return target;\n}\n/**\r\n * Creates a proxy function on the target which internally will call the source version with all arguments passed to the target method.\r\n *\r\n * @param target - The target object to be assigned with the source properties and functions\r\n * @param name - The function name that will be added on the target\r\n * @param source - The source object which will be assigned / called by setting / calling the targets proxies\r\n * @param theFunc - The function name on the source that will be proxied on the target\r\n * @param overwriteTarget - If `false` this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name\r\n */\nexport function proxyFunctionAs(target, name, source, theFunc, overwriteTarget) {\n if (target && name && source) {\n if (overwriteTarget !== false || isUndefined(target[name])) {\n target[name] = _createProxyFunction(source, theFunc);\n }\n }\n}\n/**\r\n * Creates proxy functions on the target which internally will call the source version with all arguments passed to the target method.\r\n *\r\n * @param target - The target object to be assigned with the source properties and functions\r\n * @param source - The source object which will be assigned / called by setting / calling the targets proxies\r\n * @param functionsToProxy - An array of function names that will be proxied on the target\r\n * @param overwriteTarget - If false this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name\r\n */\nexport function proxyFunctions(target, source, functionsToProxy, overwriteTarget) {\n if (target && source && isObject(target) && isArray(functionsToProxy)) {\n arrForEach(functionsToProxy, function (theFuncName) {\n if (isString(theFuncName)) {\n proxyFunctionAs(target, theFuncName, source, theFuncName, overwriteTarget);\n }\n });\n }\n return target;\n}\n/**\r\n * Simpler helper to create a dynamic class that implements the interface and populates the values with the defaults.\r\n * Only instance properties (hasOwnProperty) values are copied from the defaults to the new instance\r\n * @param defaults - Simple helper\r\n */\nexport function createClassFromInterface(defaults) {\n return /** @class */function () {\n function class_1() {\n var _this = this;\n if (defaults) {\n objForEachKey(defaults, function (field, value) {\n _this[field] = value;\n });\n }\n }\n return class_1;\n }();\n}\n/**\r\n * A helper function to assist with JIT performance for objects that have properties added / removed dynamically\r\n * this is primarily for chromium based browsers and has limited effects on Firefox and none of IE. Only call this\r\n * function after you have finished \"updating\" the object, calling this within loops reduces or defeats the benefits.\r\n * This helps when iterating using for..in, objKeys() and objForEach()\r\n * @param theObject - The object to be optimized if possible\r\n */\nexport function optimizeObject(theObject) {\n // V8 Optimization to cause the JIT compiler to create a new optimized object for looking up the own properties\n // primarily for object with <= 19 properties for >= 20 the effect is reduced or non-existent\n if (theObject && ObjAssign) {\n theObject = ObjClass(ObjAssign({}, theObject));\n }\n return theObject;\n}\nexport function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {\n // Variables\n var theArgs = arguments;\n var extended = theArgs[0] || {};\n var argLen = theArgs[_DYN_LENGTH /* @min:%2elength */];\n var deep = false;\n var idx = 1;\n // Check for \"Deep\" flag\n if (argLen > 0 && isBoolean(extended)) {\n deep = extended;\n extended = theArgs[idx] || {};\n idx++;\n }\n // Handle case when target is a string or something (possible in deep copy)\n if (!isObject(extended)) {\n extended = {};\n }\n // Loop through each remaining object and conduct a merge\n for (; idx < argLen; idx++) {\n var arg = theArgs[idx];\n var isArgArray = isArray(arg);\n var isArgObj = isObject(arg);\n for (var prop in arg) {\n var propOk = isArgArray && prop in arg || isArgObj && objHasOwn(arg, prop);\n if (!propOk) {\n continue;\n }\n var newValue = arg[prop];\n var isNewArray = void 0;\n // If deep merge and property is an object, merge properties\n if (deep && newValue && ((isNewArray = isArray(newValue)) || isPlainObject(newValue))) {\n // Grab the current value of the extended object\n var clone = extended[prop];\n if (isNewArray) {\n if (!isArray(clone)) {\n // We can't \"merge\" an array with a non-array so overwrite the original\n clone = [];\n }\n } else if (!isPlainObject(clone)) {\n // We can't \"merge\" an object with a non-object\n clone = {};\n }\n // Never move the original objects always clone them\n newValue = objExtend(deep, clone, newValue);\n }\n // Assign the new (or previous) value (unless undefined)\n if (newValue !== undefined) {\n extended[prop] = newValue;\n }\n }\n }\n return extended;\n}\nexport var asString = asString21;\nexport function isFeatureEnabled(feature, cfg) {\n var rlt = false;\n var ft = cfg && cfg.featureOptIn && cfg.featureOptIn[feature];\n if (feature && ft) {\n var mode = ft.mode;\n // NOTE: None will be considered as true\n rlt = mode == 3 /* FeatureOptInMode.enable */ || mode == 1 /* FeatureOptInMode.none */;\n }\n return rlt;\n}\nexport function getResponseText(xhr) {\n try {\n return xhr.responseText;\n } catch (e) {\n // Best effort, as XHR may throw while XDR wont so just ignore\n }\n return null;\n}\nexport function formatErrorMessageXdr(xdr, message) {\n if (xdr) {\n return \"XDomainRequest,Response:\" + getResponseText(xdr) || \"\";\n }\n return message;\n}\nexport function formatErrorMessageXhr(xhr, message) {\n if (xhr) {\n return \"XMLHttpRequest,Status:\" + xhr[_DYN_STATUS /* @min:%2estatus */] + \",Response:\" + getResponseText(xhr) || xhr.response || \"\";\n }\n return message;\n}\nexport function prependTransports(theTransports, newTransports) {\n if (newTransports) {\n if (isNumber(newTransports)) {\n theTransports = [newTransports].concat(theTransports);\n } else if (isArray(newTransports)) {\n theTransports = newTransports.concat(theTransports);\n }\n }\n return theTransports;\n}\nvar strDisabledPropertyName = \"Microsoft_ApplicationInsights_BypassAjaxInstrumentation\";\nvar strWithCredentials = \"withCredentials\";\nvar strTimeout = \"timeout\";\n/**\r\n * Create and open an XMLHttpRequest object\r\n * @param method - The request method\r\n * @param urlString - The url\r\n * @param withCredentials - Option flag indicating that credentials should be sent\r\n * @param disabled - Optional flag indicating that the XHR object should be marked as disabled and not tracked (default is false)\r\n * @param isSync - Optional flag indicating if the instance should be a synchronous request (defaults to false)\r\n * @param timeout - Optional value identifying the timeout value that should be assigned to the XHR request\r\n * @returns A new opened XHR request\r\n */\nexport function openXhr(method, urlString, withCredentials, disabled, isSync, timeout) {\n if (disabled === void 0) {\n disabled = false;\n }\n if (isSync === void 0) {\n isSync = false;\n }\n function _wrapSetXhrProp(xhr, prop, value) {\n try {\n xhr[prop] = value;\n } catch (e) {\n // - Wrapping as depending on the environment setting the property may fail (non-terminally)\n }\n }\n var xhr = new XMLHttpRequest();\n if (disabled) {\n // Tag the instance so it's not tracked (trackDependency)\n // If the environment has locked down the XMLHttpRequest (preventExtensions and/or freeze), this would\n // cause the request to fail and we no telemetry would be sent\n _wrapSetXhrProp(xhr, strDisabledPropertyName, disabled);\n }\n if (withCredentials) {\n // Some libraries require that the withCredentials flag is set \"before\" open and\n // - Wrapping as IE 10 has started throwing when setting before open\n _wrapSetXhrProp(xhr, strWithCredentials, withCredentials);\n }\n xhr.open(method, urlString, !isSync);\n if (withCredentials) {\n // withCredentials should be set AFTER open (https://xhr.spec.whatwg.org/#the-withcredentials-attribute)\n // And older firefox instances from 11+ will throw for sync events (current versions don't) which happens during unload processing\n _wrapSetXhrProp(xhr, strWithCredentials, withCredentials);\n }\n // Only set the timeout for asynchronous requests as\n // \"Timeout shouldn't be used for synchronous XMLHttpRequests requests used in a document environment or it will throw an InvalidAccessError exception.\"\"\n // https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout\n if (!isSync && timeout) {\n _wrapSetXhrProp(xhr, strTimeout, timeout);\n }\n return xhr;\n}\n/**\r\n* Converts the XHR getAllResponseHeaders to a map containing the header key and value.\r\n* @internal\r\n*/\n// tslint:disable-next-line: align\nexport function convertAllHeadersToMap(headersString) {\n var headers = {};\n if (isString(headersString)) {\n var headersArray = strTrim(headersString)[_DYN_SPLIT /* @min:%2esplit */](/[\\r\\n]+/);\n arrForEach(headersArray, function (headerEntry) {\n if (headerEntry) {\n var idx = headerEntry.indexOf(\": \");\n if (idx !== -1) {\n // The new spec has the headers returning all as lowercase -- but not all browsers do this yet\n var header = strTrim(headerEntry.substring(0, idx))[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n var value = strTrim(headerEntry.substring(idx + 1));\n headers[header] = value;\n } else {\n headers[strTrim(headerEntry)] = 1;\n }\n }\n });\n }\n return headers;\n}\n/**\r\n* append the XHR headers.\r\n* @internal\r\n*/\nexport function _appendHeader(theHeaders, xhr, name) {\n if (!theHeaders[name] && xhr && xhr[_DYN_GET_RESPONSE_HEADER /* @min:%2egetResponseHeader */]) {\n var value = xhr[_DYN_GET_RESPONSE_HEADER /* @min:%2egetResponseHeader */](name);\n if (value) {\n theHeaders[name] = strTrim(value);\n }\n }\n return theHeaders;\n}\nvar STR_KILL_DURATION_HEADER = \"kill-duration\";\nvar STR_KILL_DURATION_SECONDS_HEADER = \"kill-duration-seconds\";\nvar STR_TIME_DELTA_HEADER = \"time-delta-millis\";\n/**\r\n* get the XHR getAllResponseHeaders.\r\n* @internal\r\n*/\nexport function _getAllResponseHeaders(xhr, isOneDs) {\n var theHeaders = {};\n if (!xhr[_DYN_GET_ALL_RESPONSE_HEA5 /* @min:%2egetAllResponseHeaders */]) {\n // Firefox 2-63 doesn't have getAllResponseHeaders function but it does have getResponseHeader\n // Only call these if getAllResponseHeaders doesn't exist, otherwise we can get invalid response errors\n // as collector is not currently returning the correct header to allow JS to access these headers\n if (!!isOneDs) {\n theHeaders = _appendHeader(theHeaders, xhr, STR_TIME_DELTA_HEADER);\n theHeaders = _appendHeader(theHeaders, xhr, STR_KILL_DURATION_HEADER);\n theHeaders = _appendHeader(theHeaders, xhr, STR_KILL_DURATION_SECONDS_HEADER);\n }\n } else {\n theHeaders = convertAllHeadersToMap(xhr[_DYN_GET_ALL_RESPONSE_HEA5 /* @min:%2egetAllResponseHeaders */]());\n }\n return theHeaders;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nimport { getGlobal, strShimObject, strShimPrototype, strShimUndefined } from \"@microsoft/applicationinsights-shims\";\nimport { getDocument, getInst, getNavigator, getPerformance, hasNavigator, isFunction, isString, isUndefined, strIndexOf } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH, _DYN_NAME, _DYN_SPLIT, _DYN_TO_LOWER_CASE, _DYN_USER_AGENT } from \"../__DynamicConstants\";\nimport { strContains } from \"./HelperFuncs\";\nimport { STR_EMPTY } from \"./InternalConstants\";\n/**\r\n * This file exists to hold environment utilities that are required to check and\r\n * validate the current operating environment. Unless otherwise required, please\r\n * only use defined methods (functions) in this class so that users of these\r\n * functions/properties only need to include those that are used within their own modules.\r\n */\nvar strDocumentMode = \"documentMode\";\nvar strLocation = \"location\";\nvar strConsole = \"console\";\nvar strJSON = \"JSON\";\nvar strCrypto = \"crypto\";\nvar strMsCrypto = \"msCrypto\";\nvar strReactNative = \"ReactNative\";\nvar strMsie = \"msie\";\nvar strTrident = \"trident/\";\nvar strXMLHttpRequest = \"XMLHttpRequest\";\nvar _isTrident = null;\nvar _navUserAgentCheck = null;\nvar _enableMocks = false;\nvar _useXDomainRequest = null;\nvar _beaconsSupported = null;\nfunction _hasProperty(theClass, property) {\n var supported = false;\n if (theClass) {\n try {\n supported = property in theClass;\n if (!supported) {\n var proto = theClass[strShimPrototype];\n if (proto) {\n supported = property in proto;\n }\n }\n } catch (e) {\n // Do Nothing\n }\n if (!supported) {\n try {\n var tmp = new theClass();\n supported = !isUndefined(tmp[property]);\n } catch (e) {\n // Do Nothing\n }\n }\n }\n return supported;\n}\n/**\r\n * Enable the lookup of test mock objects if requested\r\n * @param enabled\r\n */\nexport function setEnableEnvMocks(enabled) {\n _enableMocks = enabled;\n}\n/**\r\n * Returns the global location object if it is present otherwise null.\r\n * This helper is used to access the location object without causing an exception\r\n * \"Uncaught ReferenceError: location is not defined\"\r\n */\nexport function getLocation(checkForMock) {\n if (checkForMock && _enableMocks) {\n var mockLocation = getInst(\"__mockLocation\");\n if (mockLocation) {\n return mockLocation;\n }\n }\n if (typeof location === strShimObject && location) {\n return location;\n }\n return getInst(strLocation);\n}\n/**\r\n * Returns the global console object\r\n */\nexport function getConsole() {\n if (typeof console !== strShimUndefined) {\n return console;\n }\n return getInst(strConsole);\n}\n/**\r\n * Checks if JSON object is available, this is required as we support the API running without a\r\n * window /document (eg. Node server, electron webworkers) and if we attempt to assign a history\r\n * object to a local variable or pass as an argument an \"Uncaught ReferenceError: JSON is not defined\"\r\n * exception will be thrown.\r\n * Defined as a function to support lazy / late binding environments.\r\n */\nexport function hasJSON() {\n return Boolean(typeof JSON === strShimObject && JSON || getInst(strJSON) !== null);\n}\n/**\r\n * Returns the global JSON object if it is present otherwise null.\r\n * This helper is used to access the JSON object without causing an exception\r\n * \"Uncaught ReferenceError: JSON is not defined\"\r\n */\nexport function getJSON() {\n if (hasJSON()) {\n return JSON || getInst(strJSON);\n }\n return null;\n}\n/**\r\n * Returns the crypto object if it is present otherwise null.\r\n * This helper is used to access the crypto object from the current\r\n * global instance which could be window or globalThis for a web worker\r\n */\nexport function getCrypto() {\n return getInst(strCrypto);\n}\n/**\r\n * Returns the crypto object if it is present otherwise null.\r\n * This helper is used to access the crypto object from the current\r\n * global instance which could be window or globalThis for a web worker\r\n */\nexport function getMsCrypto() {\n return getInst(strMsCrypto);\n}\n/**\r\n * Returns whether the environment is reporting that we are running in a React Native Environment\r\n */\nexport function isReactNative() {\n // If running in React Native, navigator.product will be populated\n var nav = getNavigator();\n if (nav && nav.product) {\n return nav.product === strReactNative;\n }\n return false;\n}\n/**\r\n * Identifies whether the current environment appears to be IE\r\n */\nexport function isIE() {\n var nav = getNavigator();\n if (nav && (nav[_DYN_USER_AGENT /* @min:%2euserAgent */] !== _navUserAgentCheck || _isTrident === null)) {\n // Added to support test mocking of the user agent\n _navUserAgentCheck = nav[_DYN_USER_AGENT /* @min:%2euserAgent */];\n var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n _isTrident = strContains(userAgent, strMsie) || strContains(userAgent, strTrident);\n }\n return _isTrident;\n}\n/**\r\n * Gets IE version returning the document emulation mode if we are running on IE, or null otherwise\r\n */\nexport function getIEVersion(userAgentStr) {\n if (userAgentStr === void 0) {\n userAgentStr = null;\n }\n if (!userAgentStr) {\n var navigator_1 = getNavigator() || {};\n userAgentStr = navigator_1 ? (navigator_1.userAgent || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]() : STR_EMPTY;\n }\n var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n // Also check for documentMode in case X-UA-Compatible meta tag was included in HTML.\n if (strContains(ua, strMsie)) {\n var doc = getDocument() || {};\n return Math.max(parseInt(ua[_DYN_SPLIT /* @min:%2esplit */](strMsie)[1]), doc[strDocumentMode] || 0);\n } else if (strContains(ua, strTrident)) {\n var tridentVer = parseInt(ua[_DYN_SPLIT /* @min:%2esplit */](strTrident)[1]);\n if (tridentVer) {\n return tridentVer + 4;\n }\n }\n return null;\n}\nexport function isSafari(userAgentStr) {\n if (!userAgentStr || !isString(userAgentStr)) {\n var navigator_2 = getNavigator() || {};\n userAgentStr = navigator_2 ? (navigator_2.userAgent || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]() : STR_EMPTY;\n }\n var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\n return strIndexOf(ua, \"safari\") >= 0;\n}\n/**\r\n * Checks if HTML5 Beacons are supported in the current environment.\r\n * @param useCached - [Optional] used for testing to bypass the cached lookup, when `true` this will\r\n * cause the cached global to be reset.\r\n * @returns True if supported, false otherwise.\r\n */\nexport function isBeaconsSupported(useCached) {\n if (_beaconsSupported === null || useCached === false) {\n _beaconsSupported = hasNavigator() && Boolean(getNavigator().sendBeacon);\n }\n return _beaconsSupported;\n}\n/**\r\n * Checks if the Fetch API is supported in the current environment.\r\n * @param withKeepAlive - [Optional] If True, check if fetch is available and it supports the keepalive feature, otherwise only check if fetch is supported\r\n * @returns True if supported, otherwise false\r\n */\nexport function isFetchSupported(withKeepAlive) {\n var isSupported = false;\n try {\n isSupported = !!getInst(\"fetch\");\n var request = getInst(\"Request\");\n if (isSupported && withKeepAlive && request) {\n isSupported = _hasProperty(request, \"keepalive\");\n }\n } catch (e) {\n // Just Swallow any failure during availability checks\n }\n return isSupported;\n}\nexport function useXDomainRequest() {\n if (_useXDomainRequest === null) {\n _useXDomainRequest = typeof XDomainRequest !== strShimUndefined;\n if (_useXDomainRequest && isXhrSupported()) {\n _useXDomainRequest = _useXDomainRequest && !_hasProperty(getInst(strXMLHttpRequest), \"withCredentials\");\n }\n }\n return _useXDomainRequest;\n}\n/**\r\n * Checks if XMLHttpRequest is supported\r\n * @returns True if supported, otherwise false\r\n */\nexport function isXhrSupported() {\n var isSupported = false;\n try {\n var xmlHttpRequest = getInst(strXMLHttpRequest);\n isSupported = !!xmlHttpRequest;\n } catch (e) {\n // Just Swallow any failure during availability checks\n }\n return isSupported;\n}\nfunction _getNamedValue(values, name) {\n if (values) {\n for (var i = 0; i < values[_DYN_LENGTH /* @min:%2elength */]; i++) {\n var value = values[i];\n if (value[_DYN_NAME /* @min:%2ename */]) {\n if (value[_DYN_NAME /* @min:%2ename */] === name) {\n return value;\n }\n }\n }\n }\n return {};\n}\n/**\r\n * Helper function to fetch the named meta-tag from the page.\r\n * @param name\r\n */\nexport function findMetaTag(name) {\n var doc = getDocument();\n if (doc && name) {\n // Look for a meta-tag\n return _getNamedValue(doc.querySelectorAll(\"meta\"), name).content;\n }\n return null;\n}\n/**\r\n * Helper function to fetch the named server timing value from the page response (first navigation event).\r\n * @param name\r\n */\nexport function findNamedServerTiming(name) {\n var value;\n var perf = getPerformance();\n if (perf) {\n // Try looking for a server-timing header\n var navPerf = perf.getEntriesByType(\"navigation\") || [];\n value = _getNamedValue((navPerf[_DYN_LENGTH /* @min:%2elength */] > 0 ? navPerf[0] : {}).serverTiming, name).description;\n }\n return value;\n}\n// TODO: should reuse this method for analytics plugin\nexport function dispatchEvent(target, evnt) {\n if (target && target.dispatchEvent && evnt) {\n target.dispatchEvent(evnt);\n return true;\n }\n return false;\n}\nexport function createCustomDomEvent(eventName, details) {\n var event = null;\n var detail = {\n detail: details || null\n };\n if (isFunction(CustomEvent)) {\n // Use CustomEvent constructor when available\n event = new CustomEvent(eventName, detail);\n } else {\n // CustomEvent has no constructor in IE\n var doc = getDocument();\n if (doc && doc.createEvent) {\n event = doc.createEvent(\"CustomEvent\");\n event.initCustomEvent(eventName, true, true, detail);\n }\n }\n return event;\n}\nexport function sendCustomEvent(evtName, cfg, customDetails) {\n var global = getGlobal();\n if (global && global.CustomEvent) {\n try {\n var details = {\n cfg: cfg || null,\n customDetails: customDetails || null\n };\n return dispatchEvent(global, createCustomDomEvent(evtName, details));\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n }\n return false;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { utcNow } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH } from \"../__DynamicConstants\";\nimport { getCrypto, getMsCrypto, isIE } from \"./EnvUtils\";\nimport { STR_EMPTY } from \"./InternalConstants\";\nvar UInt32Mask = 0x100000000;\nvar MaxUInt32 = 0xffffffff;\nvar SEED1 = 123456789;\nvar SEED2 = 987654321;\n// MWC based Random generator (for IE)\nvar _mwcSeeded = false;\nvar _mwcW = SEED1;\nvar _mwcZ = SEED2;\n// Takes any integer\nfunction _mwcSeed(seedValue) {\n if (seedValue < 0) {\n // Make sure we end up with a positive number and not -ve one.\n seedValue >>>= 0;\n }\n _mwcW = SEED1 + seedValue & MaxUInt32;\n _mwcZ = SEED2 - seedValue & MaxUInt32;\n _mwcSeeded = true;\n}\nfunction _autoSeedMwc() {\n // Simple initialization using default Math.random() - So we inherit any entropy from the browser\n // and bitwise XOR with the current milliseconds\n try {\n var now = utcNow() & 0x7fffffff;\n _mwcSeed((Math.random() * UInt32Mask ^ now) + now);\n } catch (e) {\n // Don't crash if something goes wrong\n }\n}\n/**\r\n * Generate a random value between 0 and maxValue, max value should be limited to a 32-bit maximum.\r\n * So maxValue(16) will produce a number from 0..16 (range of 17)\r\n * @param maxValue\r\n */\nexport function randomValue(maxValue) {\n if (maxValue > 0) {\n return Math.floor(random32() / MaxUInt32 * (maxValue + 1)) >>> 0;\n }\n return 0;\n}\n/**\r\n * generate a random 32-bit number (0x000000..0xFFFFFFFF) or (-0x80000000..0x7FFFFFFF), defaults un-unsigned.\r\n * @param signed - True to return a signed 32-bit number (-0x80000000..0x7FFFFFFF) otherwise an unsigned one (0x000000..0xFFFFFFFF)\r\n */\nexport function random32(signed) {\n var value = 0;\n var c = getCrypto() || getMsCrypto();\n if (c && c.getRandomValues) {\n // Make sure the number is converted into the specified range (-0x80000000..0x7FFFFFFF)\n value = c.getRandomValues(new Uint32Array(1))[0] & MaxUInt32;\n }\n if (value === 0 && isIE()) {\n // For IE 6, 7, 8 (especially on XP) Math.random is not very random\n if (!_mwcSeeded) {\n // Set the seed for the Mwc algorithm\n _autoSeedMwc();\n }\n // Don't use Math.random for IE\n // Make sure the number is converted into the specified range (-0x80000000..0x7FFFFFFF)\n value = mwcRandom32() & MaxUInt32;\n }\n if (value === 0) {\n // Make sure the number is converted into the specified range (-0x80000000..0x7FFFFFFF)\n value = Math.floor(UInt32Mask * Math.random() | 0);\n }\n if (!signed) {\n // Make sure we end up with a positive number and not -ve one.\n value >>>= 0;\n }\n return value;\n}\n/**\r\n * Seed the MWC random number generator with the specified seed or a random value\r\n * @param value - optional the number to used as the seed, if undefined, null or zero a random value will be chosen\r\n */\nexport function mwcRandomSeed(value) {\n if (!value) {\n _autoSeedMwc();\n } else {\n _mwcSeed(value);\n }\n}\n/**\r\n * Generate a random 32-bit number between (0x000000..0xFFFFFFFF) or (-0x80000000..0x7FFFFFFF), using MWC (Multiply with carry)\r\n * instead of Math.random() defaults to un-signed.\r\n * Used as a replacement random generator for IE to avoid issues with older IE instances.\r\n * @param signed - True to return a signed 32-bit number (-0x80000000..0x7FFFFFFF) otherwise an unsigned one (0x000000..0xFFFFFFFF)\r\n */\nexport function mwcRandom32(signed) {\n _mwcZ = 36969 * (_mwcZ & 0xFFFF) + (_mwcZ >> 16) & MaxUInt32;\n _mwcW = 18000 * (_mwcW & 0xFFFF) + (_mwcW >> 16) & MaxUInt32;\n var value = (_mwcZ << 16) + (_mwcW & 0xFFFF) >>> 0 & MaxUInt32 | 0;\n if (!signed) {\n // Make sure we end up with a positive number and not -ve one.\n value >>>= 0;\n }\n return value;\n}\n/**\r\n * Generate random base64 id string.\r\n * The default length is 22 which is 132-bits so almost the same as a GUID but as base64 (the previous default was 5)\r\n * @param maxLength - Optional value to specify the length of the id to be generated, defaults to 22\r\n */\nexport function newId(maxLength) {\n if (maxLength === void 0) {\n maxLength = 22;\n }\n var base64chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n // Start with an initial random number, consuming the value in reverse byte order\n var number = random32() >>> 0; // Make sure it's a +ve number\n var chars = 0;\n var result = STR_EMPTY;\n while (result[_DYN_LENGTH /* @min:%2elength */] < maxLength) {\n chars++;\n result += base64chars.charAt(number & 0x3F);\n number >>>= 6; // Zero fill with right shift\n if (chars === 5) {\n // 5 base64 characters === 30 bits so we don't have enough bits for another base64 char\n // So add on another 30 bits and make sure it's +ve\n number = (random32() << 2 & 0xFFFFFFFF | number & 0x03) >>> 0;\n chars = 0; // We need to reset the number every 5 chars (30 bits)\n }\n }\n return result;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { objDefine } from \"@nevware21/ts-utils\";\nimport { _DYN_NODE_TYPE } from \"../__DynamicConstants\";\nimport { normalizeJsName } from \"./HelperFuncs\";\nimport { STR_EMPTY } from \"./InternalConstants\";\nimport { newId } from \"./RandomHelper\";\nvar version = '3.3.0';\nvar instanceName = \".\" + newId(6);\nvar _dataUid = 0;\n// Accepts only:\n// - Node\n// - Node.ELEMENT_NODE\n// - Node.DOCUMENT_NODE\n// - Object\n// - Any\nfunction _canAcceptData(target) {\n return target[_DYN_NODE_TYPE /* @min:%2enodeType */] === 1 || target[_DYN_NODE_TYPE /* @min:%2enodeType */] === 9 || !+target[_DYN_NODE_TYPE /* @min:%2enodeType */];\n}\nfunction _getCache(data, target) {\n var theCache = target[data.id];\n if (!theCache) {\n theCache = {};\n try {\n if (_canAcceptData(target)) {\n objDefine(target, data.id, {\n e: false,\n v: theCache\n });\n }\n } catch (e) {\n // Not all environments allow extending all objects, so just ignore the cache in those cases\n }\n }\n return theCache;\n}\nexport function createUniqueNamespace(name, includeVersion) {\n if (includeVersion === void 0) {\n includeVersion = false;\n }\n return normalizeJsName(name + _dataUid++ + (includeVersion ? \".\" + version : STR_EMPTY) + instanceName);\n}\nexport function createElmNodeData(name) {\n var data = {\n id: createUniqueNamespace(\"_aiData-\" + (name || STR_EMPTY) + \".\" + version),\n accept: function (target) {\n return _canAcceptData(target);\n },\n get: function (target, name, defValue, addDefault) {\n var theCache = target[data.id];\n if (!theCache) {\n if (addDefault) {\n // Side effect is adds the cache\n theCache = _getCache(data, target);\n theCache[normalizeJsName(name)] = defValue;\n }\n return defValue;\n }\n return theCache[normalizeJsName(name)];\n },\n kill: function (target, name) {\n if (target && target[name]) {\n try {\n delete target[name];\n } catch (e) {\n // Just cleaning up, so if this fails -- ignore\n }\n }\n }\n };\n return data;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { asString, isArray, isDefined, isNullOrUndefined, isObject, isPlainObject, isUndefined, objForEachKey, objHasOwn } from \"@nevware21/ts-utils\";\nimport { _DYN_BLK_VAL, _DYN_LENGTH, _DYN_RD_ONLY } from \"../__DynamicConstants\";\nfunction _isConfigDefaults(value) {\n return value && isObject(value) && (value.isVal || value.fb || objHasOwn(value, \"v\") || objHasOwn(value, \"mrg\") || objHasOwn(value, \"ref\") || value.set);\n}\nfunction _getDefault(dynamicHandler, theConfig, cfgDefaults) {\n var defValue;\n var isDefaultValid = cfgDefaults.dfVal || isDefined;\n // There is a fallback config key so try and grab that first\n if (theConfig && cfgDefaults.fb) {\n var fallbacks = cfgDefaults.fb;\n if (!isArray(fallbacks)) {\n fallbacks = [fallbacks];\n }\n for (var lp = 0; lp < fallbacks[_DYN_LENGTH /* @min:%2elength */]; lp++) {\n var fallback = fallbacks[lp];\n var fbValue = theConfig[fallback];\n if (isDefaultValid(fbValue)) {\n defValue = fbValue;\n } else if (dynamicHandler) {\n // Needed to ensure that the fallback value (and potentially) new field is also dynamic even if null/undefined\n fbValue = dynamicHandler.cfg[fallback];\n if (isDefaultValid(fbValue)) {\n defValue = fbValue;\n }\n // Needed to ensure that the fallback value (and potentially) new field is also dynamic even if null/undefined\n dynamicHandler.set(dynamicHandler.cfg, asString(fallback), fbValue);\n }\n if (isDefaultValid(defValue)) {\n // We have a valid default so break out of the look\n break;\n }\n }\n }\n // If the value is still not defined and we have a default value then use that\n if (!isDefaultValid(defValue) && isDefaultValid(cfgDefaults.v)) {\n defValue = cfgDefaults.v;\n }\n return defValue;\n}\n/**\r\n * Recursively resolve the default value\r\n * @param dynamicHandler\r\n * @param theConfig\r\n * @param cfgDefaults\r\n * @returns\r\n */\nfunction _resolveDefaultValue(dynamicHandler, theConfig, cfgDefaults) {\n var theValue = cfgDefaults;\n if (cfgDefaults && _isConfigDefaults(cfgDefaults)) {\n theValue = _getDefault(dynamicHandler, theConfig, cfgDefaults);\n }\n if (theValue) {\n if (_isConfigDefaults(theValue)) {\n theValue = _resolveDefaultValue(dynamicHandler, theConfig, theValue);\n }\n var newValue_1;\n if (isArray(theValue)) {\n newValue_1 = [];\n newValue_1[_DYN_LENGTH /* @min:%2elength */] = theValue[_DYN_LENGTH /* @min:%2elength */];\n } else if (isPlainObject(theValue)) {\n newValue_1 = {};\n }\n if (newValue_1) {\n objForEachKey(theValue, function (key, value) {\n if (value && _isConfigDefaults(value)) {\n value = _resolveDefaultValue(dynamicHandler, theConfig, value);\n }\n newValue_1[key] = value;\n });\n theValue = newValue_1;\n }\n }\n return theValue;\n}\n/**\r\n * Applies the default value on the config property and makes sure that it's dynamic\r\n * @param theConfig\r\n * @param name\r\n * @param defaultValue\r\n */\nexport function _applyDefaultValue(dynamicHandler, theConfig, name, defaultValue) {\n // Resolve the initial config value from the provided value or use the defined default\n var isValid;\n var setFn;\n var defValue;\n var cfgDefaults = defaultValue;\n var mergeDf;\n var reference;\n var readOnly;\n var blkDynamicValue;\n if (_isConfigDefaults(cfgDefaults)) {\n // looks like a IConfigDefault\n isValid = cfgDefaults.isVal;\n setFn = cfgDefaults.set;\n readOnly = cfgDefaults[_DYN_RD_ONLY /* @min:%2erdOnly */];\n blkDynamicValue = cfgDefaults[_DYN_BLK_VAL /* @min:%2eblkVal */];\n mergeDf = cfgDefaults.mrg;\n reference = cfgDefaults.ref;\n if (!reference && isUndefined(reference)) {\n reference = !!mergeDf;\n }\n defValue = _getDefault(dynamicHandler, theConfig, cfgDefaults);\n } else {\n defValue = defaultValue;\n }\n if (blkDynamicValue) {\n // Mark the property so that any value assigned will be blocked from conversion, we need to do this\n // before assigning or fetching the value to ensure it's not converted\n dynamicHandler[_DYN_BLK_VAL /* @min:%2eblkVal */](theConfig, name);\n }\n // Set the value to the default value;\n var theValue;\n var usingDefault = true;\n var cfgValue = theConfig[name];\n // try and get and user provided values\n if (cfgValue || !isNullOrUndefined(cfgValue)) {\n // Use the defined theConfig[name] value\n theValue = cfgValue;\n usingDefault = false;\n // The values are different and we have a special default value check, which is used to\n // override config values like empty strings to continue using the default\n if (isValid && theValue !== defValue && !isValid(theValue)) {\n theValue = defValue;\n usingDefault = true;\n }\n if (setFn) {\n theValue = setFn(theValue, defValue, theConfig);\n usingDefault = theValue === defValue;\n }\n }\n if (!usingDefault) {\n if (isPlainObject(theValue) || isArray(defValue)) {\n // we are using the user supplied value and it's an object\n if (mergeDf && defValue && (isPlainObject(defValue) || isArray(defValue))) {\n // Resolve/apply the defaults\n objForEachKey(defValue, function (dfName, dfValue) {\n // Sets the value and makes it dynamic (if it doesn't already exist)\n _applyDefaultValue(dynamicHandler, theValue, dfName, dfValue);\n });\n }\n }\n } else if (defValue) {\n // Just resolve the default\n theValue = _resolveDefaultValue(dynamicHandler, theConfig, defValue);\n } else {\n theValue = defValue;\n }\n // if (theValue && usingDefault && (isPlainObject(theValue) || isArray(theValue))) {\n // theValue = _cfgDeepCopy(theValue);\n // }\n // Needed to ensure that the (potentially) new field is dynamic even if null/undefined\n dynamicHandler.set(theConfig, name, theValue);\n if (reference) {\n dynamicHandler.ref(theConfig, name);\n }\n if (readOnly) {\n dynamicHandler[_DYN_RD_ONLY /* @min:%2erdOnly */](theConfig, name);\n }\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { isArray, isPlainObject, objForEachKey, symbolFor, throwTypeError } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH } from \"../__DynamicConstants\";\n// Using Symbol.for so that if the same symbol was already created it would be returned\n// To handle multiple instances using potentially different versions we are not using\n// createUniqueNamespace()\nexport var CFG_HANDLER_LINK = symbolFor(\"[[ai_dynCfg_1]]\");\n/**\r\n * @internal\r\n * @ignore\r\n * The symbol to tag objects / arrays with if they should not be converted\r\n */\nvar BLOCK_DYNAMIC = symbolFor(\"[[ai_blkDynCfg_1]]\");\n/**\r\n * @internal\r\n * @ignore\r\n * The symbol to tag objects to indicate that when included into the configuration that\r\n * they should be converted into a trackable dynamic object.\r\n */\nvar FORCE_DYNAMIC = symbolFor(\"[[ai_frcDynCfg_1]]\");\nexport function _cfgDeepCopy(source) {\n if (source) {\n var target_1;\n if (isArray(source)) {\n target_1 = [];\n target_1[_DYN_LENGTH /* @min:%2elength */] = source[_DYN_LENGTH /* @min:%2elength */];\n } else if (isPlainObject(source)) {\n target_1 = {};\n }\n if (target_1) {\n // Copying index values by property name as the extensionConfig can be an array or object\n objForEachKey(source, function (key, value) {\n // Perform a deep copy of the object\n target_1[key] = _cfgDeepCopy(value);\n });\n return target_1;\n }\n }\n return source;\n}\n/**\r\n * @internal\r\n * Get the dynamic config handler if the value is already dynamic\r\n * @param value\r\n * @returns\r\n */\nexport function getDynamicConfigHandler(value) {\n if (value) {\n var handler = value[CFG_HANDLER_LINK] || value;\n if (handler.cfg && (handler.cfg === value || handler.cfg[CFG_HANDLER_LINK] === handler)) {\n return handler;\n }\n }\n return null;\n}\n/**\r\n * Mark the provided value so that if it's included into the configuration it will NOT have\r\n * its properties converted into a dynamic (reactive) object. If the object is not a plain object\r\n * or an array (ie. a class) this function has not affect as only Objects and Arrays are converted\r\n * into dynamic objects in the dynamic configuration.\r\n *\r\n * When you have tagged a value as both {@link forceDynamicConversion} and blocked force will take precedence.\r\n *\r\n * You should only need to use this function, if you are creating dynamic \"classes\" from objects\r\n * which confirm to the require interface. A common case for this is during unit testing where it's\r\n * easier to create mock extensions.\r\n *\r\n * If `value` is falsy (null / undefined / 0 / empty string etc) it will not be tagged and\r\n * if there is an exception adding the property to the value (because its frozen etc) the\r\n * exception will be swallowed\r\n *\r\n * @example\r\n * ```ts\r\n * // This is a valid \"extension\", but it is technically an object\r\n * // So when included in the config.extensions it WILL be cloned and then\r\n * // converted into a dynamic object, where all of its properties will become\r\n * // get/set object properties and will be tracked. While this WILL still\r\n * // function, when attempt to use a mocking framework on top of this the\r\n * // functions are now technically get accessors which return a function\r\n * // and this can cause some mocking frameworks to fail.\r\n * let mockChannel = {\r\n * pause: () => { },\r\n* resume: () => { },\r\n* teardown: () => { },\r\n* flush: (async: any, callBack: any) => { },\r\n* processTelemetry: (env: any) => { },\r\n* setNextPlugin: (next: any) => { },\r\n* initialize: (config: any, core: any, extensions: any) => { },\r\n* identifier: \"testChannel\",\r\n* priority: 1003\r\n* };\r\n * ```\r\n * @param value - The object that you want to block from being converted into a\r\n * trackable dynamic object\r\n * @returns The original value\r\n */\nexport function blockDynamicConversion(value) {\n if (value && (isPlainObject(value) || isArray(value))) {\n try {\n value[BLOCK_DYNAMIC] = true;\n } catch (e) {\n // Don't throw for this case as it's an ask only\n }\n }\n return value;\n}\n/**\r\n * This is the reverse case of {@link blockDynamicConversion} in that this will tag an\r\n * object to indicate that it should always be converted into a dynamic trackable object\r\n * even when not an object or array. So all properties of this object will become\r\n * get / set accessor functions.\r\n *\r\n * When you have tagged a value as both {@link forceDynamicConversion} and blocked force will take precedence.\r\n *\r\n * If `value` is falsy (null / undefined / 0 / empty string etc) it will not be tagged and\r\n * if there is an exception adding the property to the value (because its frozen etc) the\r\n * exception will be swallowed.\r\n * @param value - The object that should be tagged and converted if included into a dynamic\r\n * configuration.\r\n * @returns The original value\r\n */\nexport function forceDynamicConversion(value) {\n if (value) {\n try {\n value[FORCE_DYNAMIC] = true;\n } catch (e) {\n // Don't throw for this case as it's an ask only\n }\n }\n return value;\n}\n/**\r\n * @internal\r\n * @ignore\r\n * Helper function to check whether an object can or should be converted into a dynamic\r\n * object.\r\n * @param value - The object to check whether it should be converted\r\n * @returns `true` if the value should be converted otherwise `false`.\r\n */\nexport function _canMakeDynamic(getFunc, state, value) {\n var result = false;\n // Object must exist and be truthy\n if (value && !getFunc[state.blkVal]) {\n // Tagged as always convert\n result = value[FORCE_DYNAMIC];\n // Check that it's not explicitly tagged as blocked\n if (!result && !value[BLOCK_DYNAMIC]) {\n // Only convert plain objects or arrays by default\n result = isPlainObject(value) || isArray(value);\n }\n }\n return result;\n}\n/**\r\n * Throws an invalid access exception\r\n * @param message - The message to include in the exception\r\n */\nexport function throwInvalidAccess(message) {\n throwTypeError(\"InvalidAccess:\" + message);\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrForEach, arrIndexOf, dumpObj, isArray, objDefine, objDefineProp, objForEachKey, objGetOwnPropertyDescriptor } from \"@nevware21/ts-utils\";\nimport { UNDEFINED_VALUE } from \"../JavaScriptSDK/InternalConstants\";\nimport { _DYN_APPLY, _DYN_HDLR, _DYN_LOGGER, _DYN_PUSH, _DYN_SPLICE, _DYN_THROW_INTERNAL } from \"../__DynamicConstants\";\nimport { CFG_HANDLER_LINK, _canMakeDynamic, blockDynamicConversion, throwInvalidAccess } from \"./DynamicSupport\";\nvar arrayMethodsToPatch = [\"push\", \"pop\", \"shift\", \"unshift\", \"splice\"];\nexport var _throwDynamicError = function (logger, name, desc, e) {\n logger && logger[_DYN_THROW_INTERNAL /* @min:%2ethrowInternal */](3 /* eLoggingSeverity.DEBUG */, 108 /* _eInternalMessageId.DynamicConfigException */, \"\".concat(desc, \" [\").concat(name, \"] failed - \") + dumpObj(e));\n};\nfunction _patchArray(state, target, name) {\n if (isArray(target)) {\n // Monkey Patch the methods that might change the array\n arrForEach(arrayMethodsToPatch, function (method) {\n var orgMethod = target[method];\n target[method] = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var result = orgMethod[_DYN_APPLY /* @min:%2eapply */](this, args);\n // items may be added, removed or moved so need to make some new dynamic properties\n _makeDynamicObject(state, target, name, \"Patching\");\n return result;\n };\n });\n }\n}\nfunction _getOwnPropGetter(target, name) {\n var propDesc = objGetOwnPropertyDescriptor(target, name);\n return propDesc && propDesc.get;\n}\nfunction _createDynamicProperty(state, theConfig, name, value) {\n // Does not appear to be dynamic so lets make it so\n var detail = {\n n: name,\n h: [],\n trk: function (handler) {\n if (handler && handler.fn) {\n if (arrIndexOf(detail.h, handler) === -1) {\n // Add this handler to the collection that should be notified when the value changes\n detail.h[_DYN_PUSH /* @min:%2epush */](handler);\n }\n state.trk(handler, detail);\n }\n },\n clr: function (handler) {\n var idx = arrIndexOf(detail.h, handler);\n if (idx !== -1) {\n detail.h[_DYN_SPLICE /* @min:%2esplice */](idx, 1);\n }\n }\n };\n // Flag to optimize lookup response time by avoiding additional function calls\n var checkDynamic = true;\n var isObjectOrArray = false;\n function _getProperty() {\n if (checkDynamic) {\n isObjectOrArray = isObjectOrArray || _canMakeDynamic(_getProperty, state, value);\n // Make sure that if it's an object that we make it dynamic\n if (value && !value[CFG_HANDLER_LINK] && isObjectOrArray) {\n // It doesn't look like it's already dynamic so lets make sure it's converted the object into a dynamic Config as well\n value = _makeDynamicObject(state, value, name, \"Converting\");\n }\n // If it needed to be converted it now has been\n checkDynamic = false;\n }\n // If there is an active handler then add it to the tracking set of handlers\n var activeHandler = state.act;\n if (activeHandler) {\n detail.trk(activeHandler);\n }\n return value;\n }\n // Tag this getter as our dynamic property and provide shortcut for notifying a change\n _getProperty[state.prop] = {\n chng: function () {\n state.add(detail);\n }\n };\n function _setProperty(newValue) {\n if (value !== newValue) {\n if (!!_getProperty[state.ro] && !state.upd) {\n // field is marked as readonly so return false\n throwInvalidAccess(\"[\" + name + \"] is read-only:\" + dumpObj(theConfig));\n }\n if (checkDynamic) {\n isObjectOrArray = isObjectOrArray || _canMakeDynamic(_getProperty, state, value);\n checkDynamic = false;\n }\n // The value must be a plain object or an array to enforce the reference (in-place updates)\n var isReferenced = isObjectOrArray && _getProperty[state.rf];\n if (isObjectOrArray) {\n // We are about to replace a plain object or an array\n if (isReferenced) {\n // Reassign the properties from the current value to the same properties from the newValue\n // This will set properties not in the newValue to undefined\n objForEachKey(value, function (key) {\n value[key] = newValue ? newValue[key] : UNDEFINED_VALUE;\n });\n // Now assign / re-assign value with all of the keys from newValue\n try {\n objForEachKey(newValue, function (key, theValue) {\n _setDynamicProperty(state, value, key, theValue);\n });\n // Now drop newValue so when we assign value later it keeps the existing reference\n newValue = value;\n } catch (e) {\n // Unable to convert to dynamic property so just leave as non-dynamic\n _throwDynamicError((state.hdlr || {})[_DYN_LOGGER /* @min:%2elogger */], name, \"Assigning\", e);\n // Mark as not an object or array so we don't try and do this again\n isObjectOrArray = false;\n }\n } else if (value && value[CFG_HANDLER_LINK]) {\n // As we are replacing the value, if it's already dynamic then we need to notify the listeners\n // for every property it has already\n objForEachKey(value, function (key) {\n // Check if the value is dynamic\n var getter = _getOwnPropGetter(value, key);\n if (getter) {\n // And if it is tell it's listeners that the value has changed\n var valueState = getter[state.prop];\n valueState && valueState.chng();\n }\n });\n }\n }\n if (newValue !== value) {\n var newIsObjectOrArray = newValue && _canMakeDynamic(_getProperty, state, newValue);\n if (!isReferenced && newIsObjectOrArray) {\n // As the newValue is an object/array lets preemptively make it dynamic\n newValue = _makeDynamicObject(state, newValue, name, \"Converting\");\n }\n // Now assign the internal \"value\" to the newValue\n value = newValue;\n isObjectOrArray = newIsObjectOrArray;\n }\n // Cause any listeners to be scheduled for notification\n state.add(detail);\n }\n }\n objDefine(theConfig, detail.n, {\n g: _getProperty,\n s: _setProperty\n });\n}\nexport function _setDynamicProperty(state, target, name, value) {\n if (target) {\n // To be a dynamic property it needs to have a get function\n var getter = _getOwnPropGetter(target, name);\n var isDynamic = getter && !!getter[state.prop];\n if (!isDynamic) {\n _createDynamicProperty(state, target, name, value);\n } else {\n // Looks like it's already dynamic just assign the new value\n target[name] = value;\n }\n }\n return target;\n}\nexport function _setDynamicPropertyState(state, target, name, flags) {\n if (target) {\n // To be a dynamic property it needs to have a get function\n var getter = _getOwnPropGetter(target, name);\n var isDynamic = getter && !!getter[state.prop];\n var inPlace = flags && flags[0 /* _eSetDynamicPropertyFlags.inPlace */];\n var rdOnly = flags && flags[1 /* _eSetDynamicPropertyFlags.readOnly */];\n var blkProp = flags && flags[2 /* _eSetDynamicPropertyFlags.blockDynamicProperty */];\n if (!isDynamic) {\n if (blkProp) {\n try {\n // Attempt to mark the target as blocked from conversion\n blockDynamicConversion(target);\n } catch (e) {\n _throwDynamicError((state.hdlr || {})[_DYN_LOGGER /* @min:%2elogger */], name, \"Blocking\", e);\n }\n }\n try {\n // Make sure it's dynamic so that we can tag the property as per the state\n _setDynamicProperty(state, target, name, target[name]);\n getter = _getOwnPropGetter(target, name);\n } catch (e) {\n // Unable to convert to dynamic property so just leave as non-dynamic\n _throwDynamicError((state.hdlr || {})[_DYN_LOGGER /* @min:%2elogger */], name, \"State\", e);\n }\n }\n // Assign the optional flags if true\n if (inPlace) {\n getter[state.rf] = inPlace;\n }\n if (rdOnly) {\n getter[state.ro] = rdOnly;\n }\n if (blkProp) {\n getter[state.blkVal] = true;\n }\n }\n return target;\n}\nexport function _makeDynamicObject(state, target, name, desc) {\n try {\n // Assign target with new value properties (converting into dynamic properties in the process)\n objForEachKey(target, function (key, value) {\n // Assign and/or make the property dynamic\n _setDynamicProperty(state, target, key, value);\n });\n if (!target[CFG_HANDLER_LINK]) {\n // Link the config back to the dynamic config details\n objDefineProp(target, CFG_HANDLER_LINK, {\n get: function () {\n return state[_DYN_HDLR /* @min:%2ehdlr */];\n }\n });\n _patchArray(state, target, name);\n }\n } catch (e) {\n // Unable to convert to dynamic property so just leave as non-dynamic\n _throwDynamicError((state.hdlr || {})[_DYN_LOGGER /* @min:%2elogger */], name, desc, e);\n }\n return target;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrForEach, arrIndexOf, dumpObj, newSymbol, scheduleTimeout } from \"@nevware21/ts-utils\";\nimport { throwAggregationError } from \"../JavaScriptSDK/AggregationError\";\nimport { _DYN_BLK_VAL, _DYN_CANCEL, _DYN_HDLR, _DYN_LENGTH, _DYN_LOGGER, _DYN_NOTIFY, _DYN_PUSH, _DYN_RD_ONLY, _DYN_SET_DF, _DYN_THROW_INTERNAL } from \"../__DynamicConstants\";\nvar symPrefix = \"[[ai_\";\nvar symPostfix = \"]]\";\nexport function _createState(cfgHandler) {\n var _a;\n var dynamicPropertySymbol = newSymbol(symPrefix + \"get\" + cfgHandler.uid + symPostfix);\n var dynamicPropertyReadOnly = newSymbol(symPrefix + \"ro\" + cfgHandler.uid + symPostfix);\n var dynamicPropertyReferenced = newSymbol(symPrefix + \"rf\" + cfgHandler.uid + symPostfix);\n var dynamicPropertyBlockValue = newSymbol(symPrefix + \"blkVal\" + cfgHandler.uid + symPostfix);\n var dynamicPropertyDetail = newSymbol(symPrefix + \"dtl\" + cfgHandler.uid + symPostfix);\n var _waitingHandlers = null;\n var _watcherTimer = null;\n var theState;\n function _useHandler(activeHandler, callback) {\n var prevWatcher = theState.act;\n try {\n theState.act = activeHandler;\n if (activeHandler && activeHandler[dynamicPropertyDetail]) {\n // Clear out the previously tracked details for this handler, so that access are re-evaluated\n arrForEach(activeHandler[dynamicPropertyDetail], function (detail) {\n detail.clr(activeHandler);\n });\n activeHandler[dynamicPropertyDetail] = [];\n }\n callback({\n cfg: cfgHandler.cfg,\n set: cfgHandler.set.bind(cfgHandler),\n setDf: cfgHandler[_DYN_SET_DF /* @min:%2esetDf */].bind(cfgHandler),\n ref: cfgHandler.ref.bind(cfgHandler),\n rdOnly: cfgHandler[_DYN_RD_ONLY /* @min:%2erdOnly */].bind(cfgHandler)\n });\n } catch (e) {\n var logger = cfgHandler[_DYN_LOGGER /* @min:%2elogger */];\n if (logger) {\n // Don't let one individual failure break everyone\n logger[_DYN_THROW_INTERNAL /* @min:%2ethrowInternal */](1 /* eLoggingSeverity.CRITICAL */, 107 /* _eInternalMessageId.ConfigWatcherException */, dumpObj(e));\n }\n // Re-throw the exception so that any true \"error\" is reported back to the called\n throw e;\n } finally {\n theState.act = prevWatcher || null;\n }\n }\n function _notifyWatchers() {\n if (_waitingHandlers) {\n var notifyHandlers = _waitingHandlers;\n _waitingHandlers = null;\n // Stop any timer as we are running them now anyway\n _watcherTimer && _watcherTimer[_DYN_CANCEL /* @min:%2ecancel */]();\n _watcherTimer = null;\n var watcherFailures_1 = [];\n // Now run the handlers\n arrForEach(notifyHandlers, function (handler) {\n if (handler) {\n if (handler[dynamicPropertyDetail]) {\n arrForEach(handler[dynamicPropertyDetail], function (detail) {\n // Clear out this handler from previously tracked details, so that access are re-evaluated\n detail.clr(handler);\n });\n handler[dynamicPropertyDetail] = null;\n }\n // The handler may have self removed as part of another handler so re-check\n if (handler.fn) {\n try {\n _useHandler(handler, handler.fn);\n } catch (e) {\n // Don't let a single failing watcher cause other watches to fail\n watcherFailures_1[_DYN_PUSH /* @min:%2epush */](e);\n }\n }\n }\n });\n // During notification we may have had additional updates -- so notify those updates as well\n if (_waitingHandlers) {\n try {\n _notifyWatchers();\n } catch (e) {\n watcherFailures_1[_DYN_PUSH /* @min:%2epush */](e);\n }\n }\n if (watcherFailures_1[_DYN_LENGTH /* @min:%2elength */] > 0) {\n throwAggregationError(\"Watcher error(s): \", watcherFailures_1);\n }\n }\n }\n function _addWatcher(detail) {\n if (detail && detail.h[_DYN_LENGTH /* @min:%2elength */] > 0) {\n if (!_waitingHandlers) {\n _waitingHandlers = [];\n }\n if (!_watcherTimer) {\n _watcherTimer = scheduleTimeout(function () {\n _watcherTimer = null;\n _notifyWatchers();\n }, 0);\n }\n // Add all of the handlers for this detail (if not already present) - using normal for-loop for performance\n for (var idx = 0; idx < detail.h[_DYN_LENGTH /* @min:%2elength */]; idx++) {\n var handler = detail.h[idx];\n // Add this handler to the collection of handlers to re-execute\n if (handler && arrIndexOf(_waitingHandlers, handler) === -1) {\n _waitingHandlers[_DYN_PUSH /* @min:%2epush */](handler);\n }\n }\n }\n }\n function _trackHandler(handler, detail) {\n if (handler) {\n var details = handler[dynamicPropertyDetail] = handler[dynamicPropertyDetail] || [];\n if (arrIndexOf(details, detail) === -1) {\n // If this detail is not already listed as tracked then add it so that we re-evaluate it's usage\n details[_DYN_PUSH /* @min:%2epush */](detail);\n }\n }\n }\n theState = (_a = {\n prop: dynamicPropertySymbol,\n ro: dynamicPropertyReadOnly,\n rf: dynamicPropertyReferenced\n }, _a[_DYN_BLK_VAL /* @min:blkVal */] = dynamicPropertyBlockValue, _a[_DYN_HDLR /* @min:hdlr */] = cfgHandler, _a.add = _addWatcher, _a[_DYN_NOTIFY /* @min:notify */] = _notifyWatchers, _a.use = _useHandler, _a.trk = _trackHandler, _a);\n return theState;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { dumpObj, isUndefined, objDefine, objForEachKey } from \"@nevware21/ts-utils\";\nimport { createUniqueNamespace } from \"../JavaScriptSDK/DataCacheHelper\";\nimport { STR_NOT_DYNAMIC_ERROR } from \"../JavaScriptSDK/InternalConstants\";\nimport { _DYN_BLK_VAL, _DYN_LOGGER, _DYN_NOTIFY, _DYN_RD_ONLY, _DYN_SET_DF, _DYN_THROW_INTERNAL, _DYN_WARN_TO_CONSOLE, _DYN_WATCH } from \"../__DynamicConstants\";\nimport { _applyDefaultValue } from \"./ConfigDefaults\";\nimport { _makeDynamicObject, _setDynamicProperty, _setDynamicPropertyState, _throwDynamicError } from \"./DynamicProperty\";\nimport { _createState } from \"./DynamicState\";\nimport { CFG_HANDLER_LINK, _cfgDeepCopy, getDynamicConfigHandler, throwInvalidAccess } from \"./DynamicSupport\";\n/**\r\n * Identifies a function which will be re-called whenever any of it's accessed configuration values\r\n * change.\r\n * @param configHandler - The callback that will be called for the initial request and then whenever any\r\n * accessed configuration changes are identified.\r\n */\nfunction _createAndUseHandler(state, configHandler) {\n var handler = {\n fn: configHandler,\n rm: function () {\n // Clear all references to the handler so it can be garbage collected\n // This will also cause this handler to never get called and eventually removed\n handler.fn = null;\n state = null;\n configHandler = null;\n }\n };\n objDefine(handler, \"toJSON\", {\n v: function () {\n return \"WatcherHandler\" + (handler.fn ? \"\" : \"[X]\");\n }\n });\n state.use(handler, configHandler);\n return handler;\n}\n/**\r\n * Creates the dynamic config handler and associates with the target config as the root object\r\n * @param target - The config that you want to be root of the dynamic config\r\n * @param inPlace - Should the passed config be converted in-place or a new proxy returned\r\n * @returns The existing dynamic handler or a new instance with the provided config values\r\n */\nfunction _createDynamicHandler(logger, target, inPlace) {\n var _a;\n var dynamicHandler = getDynamicConfigHandler(target);\n if (dynamicHandler) {\n // The passed config is already dynamic so return it's tracker\n return dynamicHandler;\n }\n var uid = createUniqueNamespace(\"dyncfg\", true);\n var newTarget = target && inPlace !== false ? target : _cfgDeepCopy(target);\n var theState;\n function _notifyWatchers() {\n theState[_DYN_NOTIFY /* @min:%2enotify */]();\n }\n function _setValue(target, name, value) {\n try {\n target = _setDynamicProperty(theState, target, name, value);\n } catch (e) {\n // Unable to convert to dynamic property so just leave as non-dynamic\n _throwDynamicError(logger, name, \"Setting value\", e);\n }\n return target[name];\n }\n function _watch(configHandler) {\n return _createAndUseHandler(theState, configHandler);\n }\n function _block(configHandler, allowUpdate) {\n theState.use(null, function (details) {\n var prevUpd = theState.upd;\n try {\n if (!isUndefined(allowUpdate)) {\n theState.upd = allowUpdate;\n }\n configHandler(details);\n } finally {\n theState.upd = prevUpd;\n }\n });\n }\n function _ref(target, name) {\n var _a;\n // Make sure it's dynamic and mark as referenced with it's current value\n return _setDynamicPropertyState(theState, target, name, (_a = {}, _a[0 /* _eSetDynamicPropertyFlags.inPlace */] = true, _a))[name];\n }\n function _rdOnly(target, name) {\n var _a;\n // Make sure it's dynamic and mark as readonly with it's current value\n return _setDynamicPropertyState(theState, target, name, (_a = {}, _a[1 /* _eSetDynamicPropertyFlags.readOnly */] = true, _a))[name];\n }\n function _blkPropValue(target, name) {\n var _a;\n // Make sure it's dynamic and mark as readonly with it's current value\n return _setDynamicPropertyState(theState, target, name, (_a = {}, _a[2 /* _eSetDynamicPropertyFlags.blockDynamicProperty */] = true, _a))[name];\n }\n function _applyDefaults(theConfig, defaultValues) {\n if (defaultValues) {\n // Resolve/apply the defaults\n objForEachKey(defaultValues, function (name, value) {\n // Sets the value and makes it dynamic (if it doesn't already exist)\n _applyDefaultValue(cfgHandler, theConfig, name, value);\n });\n }\n return theConfig;\n }\n var cfgHandler = (_a = {\n uid: null,\n cfg: newTarget\n }, _a[_DYN_LOGGER /* @min:logger */] = logger, _a[_DYN_NOTIFY /* @min:notify */] = _notifyWatchers, _a.set = _setValue, _a[_DYN_SET_DF /* @min:setDf */] = _applyDefaults, _a[_DYN_WATCH /* @min:watch */] = _watch, _a.ref = _ref, _a[_DYN_RD_ONLY /* @min:rdOnly */] = _rdOnly, _a[_DYN_BLK_VAL /* @min:blkVal */] = _blkPropValue, _a._block = _block, _a);\n objDefine(cfgHandler, \"uid\", {\n c: false,\n e: false,\n w: false,\n v: uid\n });\n theState = _createState(cfgHandler);\n // Setup tracking for all defined default keys\n _makeDynamicObject(theState, newTarget, \"config\", \"Creating\");\n return cfgHandler;\n}\n/**\r\n * Log an invalid access message to the console\r\n * @param message\r\n */\nfunction _logInvalidAccess(logger, message) {\n if (logger) {\n logger[_DYN_WARN_TO_CONSOLE /* @min:%2ewarnToConsole */](message);\n logger[_DYN_THROW_INTERNAL /* @min:%2ethrowInternal */](2 /* eLoggingSeverity.WARNING */, 108 /* _eInternalMessageId.DynamicConfigException */, message);\n } else {\n // We don't have a logger so just throw an exception\n throwInvalidAccess(message);\n }\n}\n/**\r\n * Create or return a dynamic version of the passed config, if it is not already dynamic\r\n * @param config - The config to be converted into a dynamic config\r\n * @param defaultConfig - The default values to apply on the config if the properties don't already exist\r\n * @param inPlace - Should the config be converted in-place into a dynamic config or a new instance returned, defaults to true\r\n * @returns The dynamic config handler for the config (whether new or existing)\r\n */\nexport function createDynamicConfig(config, defaultConfig, logger, inPlace) {\n var dynamicHandler = _createDynamicHandler(logger, config || {}, inPlace);\n if (defaultConfig) {\n dynamicHandler[_DYN_SET_DF /* @min:%2esetDf */](dynamicHandler.cfg, defaultConfig);\n }\n return dynamicHandler;\n}\n/**\r\n * Watch and track changes for accesses to the current config, the provided config MUST already be\r\n * a dynamic config or a child accessed via the dynamic config\r\n * @param config\r\n * @param configHandler\r\n * @param logger - The logger instance to use if there is no existing handler\r\n * @returns A watcher handler instance that can be used to remove itself when being unloaded\r\n * @throws TypeError if the provided config is not a dynamic config instance\r\n */\nexport function onConfigChange(config, configHandler, logger) {\n var handler = config[CFG_HANDLER_LINK] || config;\n if (handler.cfg && (handler.cfg === config || handler.cfg[CFG_HANDLER_LINK] === handler)) {\n return handler[_DYN_WATCH /* @min:%2ewatch */](configHandler);\n }\n _logInvalidAccess(logger, STR_NOT_DYNAMIC_ERROR + dumpObj(config));\n return createDynamicConfig(config, null, logger)[_DYN_WATCH /* @min:%2ewatch */](configHandler);\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { getInst } from \"@nevware21/ts-utils\";\nimport { _DYN_APPLY, _DYN_LENGTH } from \"../__DynamicConstants\";\nimport { STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_EVENTS_SENT, STR_PERF_EVENT } from \"./InternalConstants\";\nvar listenerFuncs = [STR_EVENTS_SENT, STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_PERF_EVENT];\nvar _aiNamespace = null;\nvar _debugListener;\nfunction _listenerProxyFunc(name, config) {\n return function () {\n var args = arguments;\n var dbgExt = getDebugExt(config);\n if (dbgExt) {\n var listener = dbgExt.listener;\n if (listener && listener[name]) {\n listener[name][_DYN_APPLY /* @min:%2eapply */](listener, args);\n }\n }\n };\n}\nfunction _getExtensionNamespace() {\n // Cache the lookup of the global namespace object\n var target = getInst(\"Microsoft\");\n if (target) {\n _aiNamespace = target[\"ApplicationInsights\"];\n }\n return _aiNamespace;\n}\nexport function getDebugExt(config) {\n var ns = _aiNamespace;\n if (!ns && config.disableDbgExt !== true) {\n ns = _aiNamespace || _getExtensionNamespace();\n }\n return ns ? ns[\"ChromeDbgExt\"] : null;\n}\nexport function getDebugListener(config) {\n if (!_debugListener) {\n _debugListener = {};\n for (var lp = 0; lp < listenerFuncs[_DYN_LENGTH /* @min:%2elength */]; lp++) {\n _debugListener[listenerFuncs[lp]] = _listenerProxyFunc(listenerFuncs[lp], config);\n }\n }\n return _debugListener;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nvar _a;\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { dumpObj, isFunction, isUndefined } from \"@nevware21/ts-utils\";\nimport { createDynamicConfig, onConfigChange } from \"../Config/DynamicConfig\";\nimport { _DYN_DIAG_LOG, _DYN_LOGGER, _DYN_LOGGING_LEVEL_CONSOL4, _DYN_LOG_INTERNAL_MESSAGE, _DYN_MESSAGE, _DYN_MESSAGE_ID, _DYN_PUSH, _DYN_REPLACE, _DYN_THROW_INTERNAL, _DYN_UNLOAD, _DYN_WARN_TO_CONSOLE } from \"../__DynamicConstants\";\nimport { getDebugExt } from \"./DbgExtensionUtils\";\nimport { getConsole, getJSON, hasJSON } from \"./EnvUtils\";\nimport { STR_EMPTY } from \"./InternalConstants\";\nvar STR_WARN_TO_CONSOLE = \"warnToConsole\";\n/**\r\n * For user non actionable traces use AI Internal prefix.\r\n */\nvar AiNonUserActionablePrefix = \"AI (Internal): \";\n/**\r\n * Prefix of the traces in portal.\r\n */\nvar AiUserActionablePrefix = \"AI: \";\n/**\r\n * Session storage key for the prefix for the key indicating message type already logged\r\n */\nvar AIInternalMessagePrefix = \"AITR_\";\nvar defaultValues = {\n loggingLevelConsole: 0,\n loggingLevelTelemetry: 1,\n maxMessageLimit: 25,\n enableDebug: false\n};\nvar _logFuncs = (_a = {}, _a[0 /* eLoggingSeverity.DISABLED */] = null, _a[1 /* eLoggingSeverity.CRITICAL */] = \"errorToConsole\", _a[2 /* eLoggingSeverity.WARNING */] = STR_WARN_TO_CONSOLE, _a[3 /* eLoggingSeverity.DEBUG */] = \"debugToConsole\", _a);\nfunction _sanitizeDiagnosticText(text) {\n if (text) {\n return \"\\\"\" + text[_DYN_REPLACE /* @min:%2ereplace */](/\\\"/g, STR_EMPTY) + \"\\\"\";\n }\n return STR_EMPTY;\n}\nfunction _logToConsole(func, message) {\n var theConsole = getConsole();\n if (!!theConsole) {\n var logFunc = \"log\";\n if (theConsole[func]) {\n logFunc = func;\n }\n if (isFunction(theConsole[logFunc])) {\n theConsole[logFunc](message);\n }\n }\n}\nvar _InternalLogMessage = /** @class */function () {\n function _InternalLogMessage(msgId, msg, isUserAct, properties) {\n if (isUserAct === void 0) {\n isUserAct = false;\n }\n var _self = this;\n _self[_DYN_MESSAGE_ID /* @min:%2emessageId */] = msgId;\n _self[_DYN_MESSAGE /* @min:%2emessage */] = (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) + msgId;\n var strProps = STR_EMPTY;\n if (hasJSON()) {\n strProps = getJSON().stringify(properties);\n }\n var diagnosticText = (msg ? \" message:\" + _sanitizeDiagnosticText(msg) : STR_EMPTY) + (properties ? \" props:\" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);\n _self[_DYN_MESSAGE /* @min:%2emessage */] += diagnosticText;\n }\n _InternalLogMessage.dataType = \"MessageData\";\n return _InternalLogMessage;\n}();\nexport { _InternalLogMessage };\nexport function safeGetLogger(core, config) {\n return (core || {})[_DYN_LOGGER /* @min:%2elogger */] || new DiagnosticLogger(config);\n}\nvar DiagnosticLogger = /** @class */function () {\n function DiagnosticLogger(config) {\n this.identifier = \"DiagnosticLogger\";\n /**\r\n * The internal logging queue\r\n */\n this.queue = [];\n /**\r\n * Count of internal messages sent\r\n */\n var _messageCount = 0;\n /**\r\n * Holds information about what message types were already logged to console or sent to server.\r\n */\n var _messageLogged = {};\n var _loggingLevelConsole;\n var _loggingLevelTelemetry;\n var _maxInternalMessageLimit;\n var _enableDebug;\n var _unloadHandler;\n dynamicProto(DiagnosticLogger, this, function (_self) {\n _unloadHandler = _setDefaultsFromConfig(config || {});\n _self.consoleLoggingLevel = function () {\n return _loggingLevelConsole;\n };\n /**\r\n * This method will throw exceptions in debug mode or attempt to log the error as a console warning.\r\n * @param severity - {LoggingSeverity} - The severity of the log message\r\n * @param message - {_InternalLogMessage} - The log message.\r\n */\n _self[_DYN_THROW_INTERNAL /* @min:%2ethrowInternal */] = function (severity, msgId, msg, properties, isUserAct) {\n if (isUserAct === void 0) {\n isUserAct = false;\n }\n var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);\n if (_enableDebug) {\n throw dumpObj(message);\n } else {\n // Get the logging function and fallback to warnToConsole of for some reason errorToConsole doesn't exist\n var logFunc = _logFuncs[severity] || STR_WARN_TO_CONSOLE;\n if (!isUndefined(message[_DYN_MESSAGE /* @min:%2emessage */])) {\n if (isUserAct) {\n // check if this message type was already logged to console for this page view and if so, don't log it again\n var messageKey = +message[_DYN_MESSAGE_ID /* @min:%2emessageId */];\n if (!_messageLogged[messageKey] && _loggingLevelConsole >= severity) {\n _self[logFunc](message[_DYN_MESSAGE /* @min:%2emessage */]);\n _messageLogged[messageKey] = true;\n }\n } else {\n // Only log traces if the console Logging Level is >= the throwInternal severity level\n if (_loggingLevelConsole >= severity) {\n _self[logFunc](message[_DYN_MESSAGE /* @min:%2emessage */]);\n }\n }\n _logInternalMessage(severity, message);\n } else {\n _debugExtMsg(\"throw\" + (severity === 1 /* eLoggingSeverity.CRITICAL */ ? \"Critical\" : \"Warning\"), message);\n }\n }\n };\n _self.debugToConsole = function (message) {\n _logToConsole(\"debug\", message);\n _debugExtMsg(\"warning\", message);\n };\n _self[_DYN_WARN_TO_CONSOLE /* @min:%2ewarnToConsole */] = function (message) {\n _logToConsole(\"warn\", message);\n _debugExtMsg(\"warning\", message);\n };\n _self.errorToConsole = function (message) {\n _logToConsole(\"error\", message);\n _debugExtMsg(\"error\", message);\n };\n _self.resetInternalMessageCount = function () {\n _messageCount = 0;\n _messageLogged = {};\n };\n _self[_DYN_LOG_INTERNAL_MESSAGE /* @min:%2elogInternalMessage */] = _logInternalMessage;\n _self[_DYN_UNLOAD /* @min:%2eunload */] = function (isAsync) {\n _unloadHandler && _unloadHandler.rm();\n _unloadHandler = null;\n };\n function _logInternalMessage(severity, message) {\n if (_areInternalMessagesThrottled()) {\n return;\n }\n // check if this message type was already logged for this session and if so, don't log it again\n var logMessage = true;\n var messageKey = AIInternalMessagePrefix + message[_DYN_MESSAGE_ID /* @min:%2emessageId */];\n // if the session storage is not available, limit to only one message type per page view\n if (_messageLogged[messageKey]) {\n logMessage = false;\n } else {\n _messageLogged[messageKey] = true;\n }\n if (logMessage) {\n // Push the event in the internal queue\n if (severity <= _loggingLevelTelemetry) {\n _self.queue[_DYN_PUSH /* @min:%2epush */](message);\n _messageCount++;\n _debugExtMsg(severity === 1 /* eLoggingSeverity.CRITICAL */ ? \"error\" : \"warn\", message);\n }\n // When throttle limit reached, send a special event\n if (_messageCount === _maxInternalMessageLimit) {\n var throttleLimitMessage = \"Internal events throttle limit per PageView reached for this app.\";\n var throttleMessage = new _InternalLogMessage(23 /* _eInternalMessageId.MessageLimitPerPVExceeded */, throttleLimitMessage, false);\n _self.queue[_DYN_PUSH /* @min:%2epush */](throttleMessage);\n if (severity === 1 /* eLoggingSeverity.CRITICAL */) {\n _self.errorToConsole(throttleLimitMessage);\n } else {\n _self[_DYN_WARN_TO_CONSOLE /* @min:%2ewarnToConsole */](throttleLimitMessage);\n }\n }\n }\n }\n function _setDefaultsFromConfig(config) {\n // make sure the config is dynamic\n return onConfigChange(createDynamicConfig(config, defaultValues, _self).cfg, function (details) {\n var config = details.cfg;\n _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 /* @min:%2eloggingLevelConsole */];\n _loggingLevelTelemetry = config.loggingLevelTelemetry;\n _maxInternalMessageLimit = config.maxMessageLimit;\n _enableDebug = config.enableDebug;\n });\n }\n function _areInternalMessagesThrottled() {\n return _messageCount >= _maxInternalMessageLimit;\n }\n function _debugExtMsg(name, data) {\n var dbgExt = getDebugExt(config || {});\n if (dbgExt && dbgExt[_DYN_DIAG_LOG /* @min:%2ediagLog */]) {\n dbgExt[_DYN_DIAG_LOG /* @min:%2ediagLog */](name, data);\n }\n }\n });\n }\n // Removed Stub for DiagnosticLogger.prototype.consoleLoggingLevel.\n // Removed Stub for DiagnosticLogger.prototype.throwInternal.\n // Removed Stub for DiagnosticLogger.prototype.debugToConsole.\n // Removed Stub for DiagnosticLogger.prototype.warnToConsole.\n // Removed Stub for DiagnosticLogger.prototype.errorToConsole.\n // Removed Stub for DiagnosticLogger.prototype.resetInternalMessageCount.\n // Removed Stub for DiagnosticLogger.prototype.logInternalMessage.\n // Removed Stub for DiagnosticLogger.prototype.unload.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n DiagnosticLogger.__ieDyn = 1;\n return DiagnosticLogger;\n}();\nexport { DiagnosticLogger };\nfunction _getLogger(logger) {\n return logger || new DiagnosticLogger();\n}\n/**\r\n * This is a helper method which will call throwInternal on the passed logger, will throw exceptions in\r\n * debug mode or attempt to log the error as a console warning. This helper is provided mostly to better\r\n * support minification as logger.throwInternal() will not compress the publish \"throwInternal\" used throughout\r\n * the code.\r\n * @param logger - The Diagnostic Logger instance to use.\r\n * @param severity - {LoggingSeverity} - The severity of the log message\r\n * @param message - {_InternalLogMessage} - The log message.\r\n */\nexport function _throwInternal(logger, severity, msgId, msg, properties, isUserAct) {\n if (isUserAct === void 0) {\n isUserAct = false;\n }\n _getLogger(logger)[_DYN_THROW_INTERNAL /* @min:%2ethrowInternal */](severity, msgId, msg, properties, isUserAct);\n}\n/**\r\n * This is a helper method which will call warnToConsole on the passed logger with the provided message.\r\n * @param logger - The Diagnostic Logger instance to use.\r\n * @param message - {_InternalLogMessage} - The log message.\r\n */\nexport function _warnToConsole(logger, message) {\n _getLogger(logger)[_DYN_WARN_TO_CONSOLE /* @min:%2ewarnToConsole */](message);\n}\n/**\r\n * Logs a message to the internal queue.\r\n * @param logger - The Diagnostic Logger instance to use.\r\n * @param severity - {LoggingSeverity} - The severity of the log message\r\n * @param message - {_InternalLogMessage} - The message to log.\r\n */\nexport function _logInternalMessage(logger, severity, message) {\n _getLogger(logger)[_DYN_LOG_INTERNAL_MESSAGE /* @min:%2elogInternalMessage */](severity, message);\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { isArray, isFunction, objDefine, utcNow } from \"@nevware21/ts-utils\";\nimport { _DYN_COMPLETE, _DYN_GET_CTX, _DYN_IS_ASYNC, _DYN_IS_CHILD_EVT, _DYN_LENGTH, _DYN_NAME, _DYN_PUSH, _DYN_SET_CTX, _DYN_TIME } from \"../__DynamicConstants\";\nimport { STR_GET_PERF_MGR, STR_PERF_EVENT } from \"./InternalConstants\";\nvar strExecutionContextKey = \"ctx\";\nvar strParentContextKey = \"ParentContextKey\";\nvar strChildrenContextKey = \"ChildrenContextKey\";\nvar _defaultPerfManager = null;\nvar PerfEvent = /** @class */function () {\n function PerfEvent(name, payloadDetails, isAsync) {\n var _self = this;\n _self.start = utcNow();\n _self[_DYN_NAME /* @min:%2ename */] = name;\n _self[_DYN_IS_ASYNC /* @min:%2eisAsync */] = isAsync;\n _self[_DYN_IS_CHILD_EVT /* @min:%2eisChildEvt */] = function () {\n return false;\n };\n if (isFunction(payloadDetails)) {\n // Create an accessor to minimize the potential performance impact of executing the payloadDetails callback\n var theDetails_1;\n objDefine(_self, \"payload\", {\n g: function () {\n // Delay the execution of the payloadDetails until needed\n if (!theDetails_1 && isFunction(payloadDetails)) {\n theDetails_1 = payloadDetails();\n // clear it out now so the referenced objects can be garbage collected\n payloadDetails = null;\n }\n return theDetails_1;\n }\n });\n }\n _self[_DYN_GET_CTX /* @min:%2egetCtx */] = function (key) {\n if (key) {\n // The parent and child links are located directly on the object (for better viewing in the DebugPlugin)\n if (key === PerfEvent[strParentContextKey] || key === PerfEvent[strChildrenContextKey]) {\n return _self[key];\n }\n return (_self[strExecutionContextKey] || {})[key];\n }\n return null;\n };\n _self[_DYN_SET_CTX /* @min:%2esetCtx */] = function (key, value) {\n if (key) {\n // Put the parent and child links directly on the object (for better viewing in the DebugPlugin)\n if (key === PerfEvent[strParentContextKey]) {\n // Simple assumption, if we are setting a parent then we must be a child\n if (!_self[key]) {\n _self[_DYN_IS_CHILD_EVT /* @min:%2eisChildEvt */] = function () {\n return true;\n };\n }\n _self[key] = value;\n } else if (key === PerfEvent[strChildrenContextKey]) {\n _self[key] = value;\n } else {\n var ctx = _self[strExecutionContextKey] = _self[strExecutionContextKey] || {};\n ctx[key] = value;\n }\n }\n };\n _self[_DYN_COMPLETE /* @min:%2ecomplete */] = function () {\n var childTime = 0;\n var childEvts = _self[_DYN_GET_CTX /* @min:%2egetCtx */](PerfEvent[strChildrenContextKey]);\n if (isArray(childEvts)) {\n for (var lp = 0; lp < childEvts[_DYN_LENGTH /* @min:%2elength */]; lp++) {\n var childEvt = childEvts[lp];\n if (childEvt) {\n childTime += childEvt[_DYN_TIME /* @min:%2etime */];\n }\n }\n }\n _self[_DYN_TIME /* @min:%2etime */] = utcNow() - _self.start;\n _self.exTime = _self[_DYN_TIME /* @min:%2etime */] - childTime;\n _self[_DYN_COMPLETE /* @min:%2ecomplete */] = function () {};\n };\n }\n PerfEvent.ParentContextKey = \"parent\";\n PerfEvent.ChildrenContextKey = \"childEvts\";\n return PerfEvent;\n}();\nexport { PerfEvent };\nvar PerfManager = /** @class */function () {\n function PerfManager(manager) {\n /**\r\n * General bucket used for execution context set and retrieved via setCtx() and getCtx.\r\n * Defined as private so it can be visualized via the DebugPlugin\r\n */\n this.ctx = {};\n dynamicProto(PerfManager, this, function (_self) {\n _self.create = function (src, payloadDetails, isAsync) {\n // TODO (@MSNev): at some point we will want to add additional configuration to \"select\" which events to instrument\n // for now this is just a simple do everything.\n return new PerfEvent(src, payloadDetails, isAsync);\n };\n _self.fire = function (perfEvent) {\n if (perfEvent) {\n perfEvent[_DYN_COMPLETE /* @min:%2ecomplete */]();\n if (manager && isFunction(manager[STR_PERF_EVENT /* @min:%2eperfEvent */])) {\n manager[STR_PERF_EVENT /* @min:%2eperfEvent */](perfEvent);\n }\n }\n };\n _self[_DYN_SET_CTX /* @min:%2esetCtx */] = function (key, value) {\n if (key) {\n var ctx = _self[strExecutionContextKey] = _self[strExecutionContextKey] || {};\n ctx[key] = value;\n }\n };\n _self[_DYN_GET_CTX /* @min:%2egetCtx */] = function (key) {\n return (_self[strExecutionContextKey] || {})[key];\n };\n });\n }\n // Removed Stub for PerfManager.prototype.create.\n // Removed Stub for PerfManager.prototype.fire.\n // Removed Stub for PerfManager.prototype.setCtx.\n // Removed Stub for PerfManager.prototype.getCtx.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n PerfManager.__ieDyn = 1;\n return PerfManager;\n}();\nexport { PerfManager };\nvar doPerfActiveKey = \"CoreUtils.doPerf\";\n/**\r\n * Helper function to wrap a function with a perf event\r\n * @param mgrSource - The Performance Manager or a Performance provider source (may be null)\r\n * @param getSource - The callback to create the source name for the event (if perf monitoring is enabled)\r\n * @param func - The function to call and measure\r\n * @param details - A function to return the payload details\r\n * @param isAsync - Is the event / function being call asynchronously or synchronously\r\n */\nexport function doPerf(mgrSource, getSource, func, details, isAsync) {\n if (mgrSource) {\n var perfMgr = mgrSource;\n if (perfMgr[STR_GET_PERF_MGR]) {\n // Looks like a perf manager provider object\n perfMgr = perfMgr[STR_GET_PERF_MGR]();\n }\n if (perfMgr) {\n var perfEvt = void 0;\n var currentActive = perfMgr[_DYN_GET_CTX /* @min:%2egetCtx */](doPerfActiveKey);\n try {\n perfEvt = perfMgr.create(getSource(), details, isAsync);\n if (perfEvt) {\n if (currentActive && perfEvt[_DYN_SET_CTX /* @min:%2esetCtx */]) {\n perfEvt[_DYN_SET_CTX /* @min:%2esetCtx */](PerfEvent[strParentContextKey], currentActive);\n if (currentActive[_DYN_GET_CTX /* @min:%2egetCtx */] && currentActive[_DYN_SET_CTX /* @min:%2esetCtx */]) {\n var children = currentActive[_DYN_GET_CTX /* @min:%2egetCtx */](PerfEvent[strChildrenContextKey]);\n if (!children) {\n children = [];\n currentActive[_DYN_SET_CTX /* @min:%2esetCtx */](PerfEvent[strChildrenContextKey], children);\n }\n children[_DYN_PUSH /* @min:%2epush */](perfEvt);\n }\n }\n // Set this event as the active event now\n perfMgr[_DYN_SET_CTX /* @min:%2esetCtx */](doPerfActiveKey, perfEvt);\n return func(perfEvt);\n }\n } catch (ex) {\n if (perfEvt && perfEvt[_DYN_SET_CTX /* @min:%2esetCtx */]) {\n perfEvt[_DYN_SET_CTX /* @min:%2esetCtx */](\"exception\", ex);\n }\n } finally {\n // fire the perf event\n if (perfEvt) {\n perfMgr.fire(perfEvt);\n }\n // Reset the active event to the previous value\n perfMgr[_DYN_SET_CTX /* @min:%2esetCtx */](doPerfActiveKey, currentActive);\n }\n }\n }\n return func();\n}\n/**\r\n * Set the global performance manager to use when there is no core instance or it has not been initialized yet.\r\n * @param perfManager - The IPerfManager instance to use when no performance manager is supplied.\r\n */\nexport function setGblPerfMgr(perfManager) {\n _defaultPerfManager = perfManager;\n}\n/**\r\n * Get the current global performance manager that will be used with no performance manager is supplied.\r\n * @returns - The current default manager\r\n */\nexport function getGblPerfMgr() {\n return _defaultPerfManager;\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nimport { strShimUndefined } from \"@microsoft/applicationinsights-shims\";\nimport { strSubstr, strSubstring } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH } from \"../__DynamicConstants\";\nimport { STR_EMPTY } from \"./InternalConstants\";\nimport { random32 } from \"./RandomHelper\";\n// Added to help with minfication\nexport var Undefined = strShimUndefined;\nexport function newGuid() {\n var uuid = generateW3CId();\n return strSubstring(uuid, 0, 8) + \"-\" + strSubstring(uuid, 8, 12) + \"-\" + strSubstring(uuid, 12, 16) + \"-\" + strSubstring(uuid, 16, 20) + \"-\" + strSubstring(uuid, 20);\n}\n/**\r\n * The strEndsWith() method determines whether a string ends with the characters of a specified string, returning true or false as appropriate.\r\n * @param value - The value to check whether it ends with the search value.\r\n * @param search - The characters to be searched for at the end of the value.\r\n * @returns true if the given search value is found at the end of the string, otherwise false.\r\n */\nexport function strEndsWith(value, search) {\n if (value && search) {\n var len = value[_DYN_LENGTH /* @min:%2elength */];\n var start = len - search[_DYN_LENGTH /* @min:%2elength */];\n return strSubstring(value, start >= 0 ? start : 0, len) === search;\n }\n return false;\n}\n/**\r\n * generate W3C trace id\r\n */\nexport function generateW3CId() {\n var hexValues = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\"];\n // rfc4122 version 4 UUID without dashes and with lowercase letters\n var oct = STR_EMPTY,\n tmp;\n for (var a = 0; a < 4; a++) {\n tmp = random32();\n oct += hexValues[tmp & 0xF] + hexValues[tmp >> 4 & 0xF] + hexValues[tmp >> 8 & 0xF] + hexValues[tmp >> 12 & 0xF] + hexValues[tmp >> 16 & 0xF] + hexValues[tmp >> 20 & 0xF] + hexValues[tmp >> 24 & 0xF] + hexValues[tmp >> 28 & 0xF];\n }\n // \"Set the two most significant bits (bits 6 and 7) of the clock_seq_hi_and_reserved to zero and one, respectively\"\n var clockSequenceHi = hexValues[8 + (random32() & 0x03) | 0];\n return strSubstr(oct, 0, 8) + strSubstr(oct, 9, 4) + \"4\" + strSubstr(oct, 13, 3) + clockSequenceHi + strSubstr(oct, 16, 3) + strSubstr(oct, 19, 12);\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nimport { arrForEach, isFunction } from \"@nevware21/ts-utils\";\nimport { _DYN_GET_NEXT, _DYN_GET_PLUGIN, _DYN_INITIALIZE, _DYN_IS_INITIALIZED, _DYN_LENGTH, _DYN_NAME, _DYN_PUSH, _DYN_SET_NEXT_PLUGIN, _DYN_SPAN_ID, _DYN_TEARDOWN, _DYN_TRACE_FLAGS, _DYN_TRACE_ID, _DYN__DO_TEARDOWN } from \"../__DynamicConstants\";\nimport { createElmNodeData } from \"./DataCacheHelper\";\nimport { STR_CORE, STR_PRIORITY, STR_PROCESS_TELEMETRY } from \"./InternalConstants\";\nimport { isValidSpanId, isValidTraceId } from \"./W3cTraceParent\";\nvar pluginStateData = createElmNodeData(\"plugin\");\nexport function _getPluginState(plugin) {\n return pluginStateData.get(plugin, \"state\", {}, true);\n}\n/**\r\n * Initialize the queue of plugins\r\n * @param plugins - The array of plugins to initialize and setting of the next plugin\r\n * @param config - The current config for the instance\r\n * @param core - THe current core instance\r\n * @param extensions - The extensions\r\n */\nexport function initializePlugins(processContext, extensions) {\n // Set the next plugin and identified the uninitialized plugins\n var initPlugins = [];\n var lastPlugin = null;\n var proxy = processContext[_DYN_GET_NEXT /* @min:%2egetNext */]();\n var pluginState;\n while (proxy) {\n var thePlugin = proxy[_DYN_GET_PLUGIN /* @min:%2egetPlugin */]();\n if (thePlugin) {\n if (lastPlugin && lastPlugin[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */] && thePlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */]) {\n // Set this plugin as the next for the previous one\n lastPlugin[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */](thePlugin);\n }\n pluginState = _getPluginState(thePlugin);\n var isInitialized = !!pluginState[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */];\n if (thePlugin[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */]) {\n isInitialized = thePlugin[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */]();\n }\n if (!isInitialized) {\n initPlugins[_DYN_PUSH /* @min:%2epush */](thePlugin);\n }\n lastPlugin = thePlugin;\n proxy = proxy[_DYN_GET_NEXT /* @min:%2egetNext */]();\n }\n }\n // Now initialize the plugins\n arrForEach(initPlugins, function (thePlugin) {\n var core = processContext[STR_CORE /* @min:%2ecore */]();\n thePlugin[_DYN_INITIALIZE /* @min:%2einitialize */](processContext.getCfg(), core, extensions, processContext[_DYN_GET_NEXT /* @min:%2egetNext */]());\n pluginState = _getPluginState(thePlugin);\n // Only add the core to the state if the plugin didn't set it (doesn't extend from BaseTelemetryPlugin)\n if (!thePlugin[STR_CORE] && !pluginState[STR_CORE]) {\n pluginState[STR_CORE] = core;\n }\n pluginState[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */] = true;\n delete pluginState[_DYN_TEARDOWN /* @min:%2eteardown */];\n });\n}\nexport function sortPlugins(plugins) {\n // Sort by priority\n return plugins.sort(function (extA, extB) {\n var result = 0;\n if (extB) {\n var bHasProcess = extB[STR_PROCESS_TELEMETRY];\n if (extA[STR_PROCESS_TELEMETRY]) {\n result = bHasProcess ? extA[STR_PRIORITY] - extB[STR_PRIORITY] : 1;\n } else if (bHasProcess) {\n result = -1;\n }\n } else {\n result = extA ? 1 : -1;\n }\n return result;\n });\n // sort complete\n}\n/**\r\n * Teardown / Unload helper to perform teardown/unloading operations for the provided components synchronously or asynchronously, this will call any\r\n * _doTeardown() or _doUnload() functions on the provided components to allow them to finish removal.\r\n * @param components - The components you want to unload\r\n * @param unloadCtx - This is the context that should be used during unloading.\r\n * @param unloadState - The details / state of the unload process, it holds details like whether it should be unloaded synchronously or asynchronously and the reason for the unload.\r\n * @param asyncCallback - An optional callback that the plugin must call if it returns true to inform the caller that it has completed any async unload/teardown operations.\r\n * @returns boolean - true if the plugin has or will call asyncCallback, this allows the plugin to perform any asynchronous operations.\r\n */\nexport function unloadComponents(components, unloadCtx, unloadState, asyncCallback) {\n var idx = 0;\n function _doUnload() {\n while (idx < components[_DYN_LENGTH /* @min:%2elength */]) {\n var component = components[idx++];\n if (component) {\n var func = component._doUnload || component[_DYN__DO_TEARDOWN /* @min:%2e_doTeardown */];\n if (isFunction(func)) {\n if (func.call(component, unloadCtx, unloadState, _doUnload) === true) {\n return true;\n }\n }\n }\n }\n }\n return _doUnload();\n}\n/**\r\n * Creates a IDistributedTraceContext which optionally also \"sets\" the value on a parent\r\n * @param parentCtx - An optional parent distributed trace instance\r\n * @returns A new IDistributedTraceContext instance that uses an internal temporary object\r\n */\nexport function createDistributedTraceContext(parentCtx) {\n var trace = {};\n return {\n getName: function () {\n return trace[_DYN_NAME /* @min:%2ename */];\n },\n setName: function (newValue) {\n parentCtx && parentCtx.setName(newValue);\n trace[_DYN_NAME /* @min:%2ename */] = newValue;\n },\n getTraceId: function () {\n return trace[_DYN_TRACE_ID /* @min:%2etraceId */];\n },\n setTraceId: function (newValue) {\n parentCtx && parentCtx.setTraceId(newValue);\n if (isValidTraceId(newValue)) {\n trace[_DYN_TRACE_ID /* @min:%2etraceId */] = newValue;\n }\n },\n getSpanId: function () {\n return trace[_DYN_SPAN_ID /* @min:%2espanId */];\n },\n setSpanId: function (newValue) {\n parentCtx && parentCtx.setSpanId(newValue);\n if (isValidSpanId(newValue)) {\n trace[_DYN_SPAN_ID /* @min:%2espanId */] = newValue;\n }\n },\n getTraceFlags: function () {\n return trace[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */];\n },\n setTraceFlags: function (newTraceFlags) {\n parentCtx && parentCtx.setTraceFlags(newTraceFlags);\n trace[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = newTraceFlags;\n }\n };\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nimport { arrForEach, dumpObj, isArray, isFunction, isNullOrUndefined, isUndefined, objForEachKey, objFreeze, objKeys } from \"@nevware21/ts-utils\";\nimport { _applyDefaultValue } from \"../Config/ConfigDefaults\";\nimport { createDynamicConfig } from \"../Config/DynamicConfig\";\nimport { _DYN_CREATE_NEW, _DYN_DIAG_LOG, _DYN_GET_NEXT, _DYN_GET_PLUGIN, _DYN_IDENTIFIER, _DYN_IS_ASYNC, _DYN_IS_INITIALIZED, _DYN_LENGTH, _DYN_LOGGER, _DYN_PROCESS_NEXT, _DYN_PUSH, _DYN_SET_DF, _DYN_SET_NEXT_PLUGIN, _DYN_TEARDOWN, _DYN_UNLOAD, _DYN_UPDATE } from \"../__DynamicConstants\";\nimport { _throwInternal, safeGetLogger } from \"./DiagnosticLogger\";\nimport { proxyFunctions } from \"./HelperFuncs\";\nimport { STR_CORE, STR_DISABLED, STR_EMPTY, STR_EXTENSION_CONFIG, STR_PRIORITY, STR_PROCESS_TELEMETRY } from \"./InternalConstants\";\nimport { doPerf } from \"./PerfManager\";\nimport { _getPluginState } from \"./TelemetryHelpers\";\nvar strTelemetryPluginChain = \"TelemetryPluginChain\";\nvar strHasRunFlags = \"_hasRun\";\nvar strGetTelCtx = \"_getTelCtx\";\nvar _chainId = 0;\nfunction _getNextProxyStart(proxy, core, startAt) {\n while (proxy) {\n if (proxy[_DYN_GET_PLUGIN /* @min:%2egetPlugin */]() === startAt) {\n return proxy;\n }\n proxy = proxy[_DYN_GET_NEXT /* @min:%2egetNext */]();\n }\n // This wasn't found in the existing chain so create an isolated one with just this plugin\n return createTelemetryProxyChain([startAt], core.config || {}, core);\n}\n/**\r\n * @ignore\r\n * @param telemetryChain\r\n * @param dynamicHandler\r\n * @param core\r\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\r\n * @returns\r\n */\nfunction _createInternalContext(telemetryChain, dynamicHandler, core, startAt) {\n // We have a special case where we want to start execution from this specific plugin\n // or we simply reuse the existing telemetry plugin chain (normal execution case)\n var _nextProxy = null; // By Default set as no next plugin\n var _onComplete = [];\n if (!dynamicHandler) {\n dynamicHandler = createDynamicConfig({}, null, core[_DYN_LOGGER /* @min:%2elogger */]);\n }\n if (startAt !== null) {\n // There is no next element (null) vs not defined (undefined) so use the full chain\n _nextProxy = startAt ? _getNextProxyStart(telemetryChain, core, startAt) : telemetryChain;\n }\n var context = {\n _next: _moveNext,\n ctx: {\n core: function () {\n return core;\n },\n diagLog: function () {\n return safeGetLogger(core, dynamicHandler.cfg);\n },\n getCfg: function () {\n return dynamicHandler.cfg;\n },\n getExtCfg: _resolveExtCfg,\n getConfig: _getConfig,\n hasNext: function () {\n return !!_nextProxy;\n },\n getNext: function () {\n return _nextProxy;\n },\n setNext: function (nextPlugin) {\n _nextProxy = nextPlugin;\n },\n iterate: _iterateChain,\n onComplete: _addOnComplete\n }\n };\n function _addOnComplete(onComplete, that) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n if (onComplete) {\n _onComplete[_DYN_PUSH /* @min:%2epush */]({\n func: onComplete,\n self: !isUndefined(that) ? that : context.ctx,\n args: args\n });\n }\n }\n function _moveNext() {\n var nextProxy = _nextProxy;\n // Automatically move to the next plugin\n _nextProxy = nextProxy ? nextProxy[_DYN_GET_NEXT /* @min:%2egetNext */]() : null;\n if (!nextProxy) {\n var onComplete = _onComplete;\n if (onComplete && onComplete[_DYN_LENGTH /* @min:%2elength */] > 0) {\n arrForEach(onComplete, function (completeDetails) {\n try {\n completeDetails.func.call(completeDetails.self, completeDetails.args);\n } catch (e) {\n _throwInternal(core[_DYN_LOGGER /* @min:%2elogger */], 2 /* eLoggingSeverity.WARNING */, 73 /* _eInternalMessageId.PluginException */, \"Unexpected Exception during onComplete - \" + dumpObj(e));\n }\n });\n _onComplete = [];\n }\n }\n return nextProxy;\n }\n function _getExtCfg(identifier, createIfMissing) {\n var idCfg = null;\n var cfg = dynamicHandler.cfg;\n if (cfg && identifier) {\n var extCfg = cfg[STR_EXTENSION_CONFIG /* @min:%2eextensionConfig */];\n if (!extCfg && createIfMissing) {\n extCfg = {};\n }\n // Always set the value so that the property always exists\n cfg[STR_EXTENSION_CONFIG] = extCfg; // Note: it is valid for the \"value\" to be undefined\n // Calling `ref()` has a side effect of causing the referenced property to become dynamic (if not already)\n extCfg = dynamicHandler.ref(cfg, STR_EXTENSION_CONFIG);\n if (extCfg) {\n idCfg = extCfg[identifier];\n if (!idCfg && createIfMissing) {\n idCfg = {};\n }\n // Always set the value so that the property always exists\n extCfg[identifier] = idCfg; // Note: it is valid for the \"value\" to be undefined\n // Calling `ref()` has a side effect of causing the referenced property to become dynamic (if not already)\n idCfg = dynamicHandler.ref(extCfg, identifier);\n }\n }\n return idCfg;\n }\n function _resolveExtCfg(identifier, defaultValues) {\n var newConfig = _getExtCfg(identifier, true);\n if (defaultValues) {\n // Enumerate over the defaultValues and if not already populated attempt to\n // find a value from the root config or use the default value\n objForEachKey(defaultValues, function (field, defaultValue) {\n // for each unspecified field, set the default value\n if (isNullOrUndefined(newConfig[field])) {\n var cfgValue = dynamicHandler.cfg[field];\n if (cfgValue || !isNullOrUndefined(cfgValue)) {\n newConfig[field] = cfgValue;\n }\n }\n _applyDefaultValue(dynamicHandler, newConfig, field, defaultValue);\n });\n }\n return dynamicHandler[_DYN_SET_DF /* @min:%2esetDf */](newConfig, defaultValues);\n }\n function _getConfig(identifier, field, defaultValue) {\n if (defaultValue === void 0) {\n defaultValue = false;\n }\n var theValue;\n var extConfig = _getExtCfg(identifier, false);\n var rootConfig = dynamicHandler.cfg;\n if (extConfig && (extConfig[field] || !isNullOrUndefined(extConfig[field]))) {\n theValue = extConfig[field];\n } else if (rootConfig[field] || !isNullOrUndefined(rootConfig[field])) {\n theValue = rootConfig[field];\n }\n return theValue || !isNullOrUndefined(theValue) ? theValue : defaultValue;\n }\n function _iterateChain(cb) {\n // Keep processing until we reach the end of the chain\n var nextPlugin;\n while (!!(nextPlugin = context._next())) {\n var plugin = nextPlugin[_DYN_GET_PLUGIN /* @min:%2egetPlugin */]();\n if (plugin) {\n // callback with the current on\n cb(plugin);\n }\n }\n }\n return context;\n}\n/**\r\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain\r\n * @param plugins - The plugin instances that will be executed\r\n * @param config - The current config\r\n * @param core - The current core instance\r\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\r\n */\nexport function createProcessTelemetryContext(telemetryChain, cfg, core, startAt) {\n var config = createDynamicConfig(cfg);\n var internalContext = _createInternalContext(telemetryChain, config, core, startAt);\n var context = internalContext.ctx;\n function _processNext(env) {\n var nextPlugin = internalContext._next();\n if (nextPlugin) {\n // Run the next plugin which will call \"processNext()\"\n nextPlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */](env, context);\n }\n return !nextPlugin;\n }\n function _createNew(plugins, startAt) {\n if (plugins === void 0) {\n plugins = null;\n }\n if (isArray(plugins)) {\n plugins = createTelemetryProxyChain(plugins, config.cfg, core, startAt);\n }\n return createProcessTelemetryContext(plugins || context[_DYN_GET_NEXT /* @min:%2egetNext */](), config.cfg, core, startAt);\n }\n context[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */] = _processNext;\n context[_DYN_CREATE_NEW /* @min:%2ecreateNew */] = _createNew;\n return context;\n}\n/**\r\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain for handling the unloading of the chain\r\n * @param plugins - The plugin instances that will be executed\r\n * @param config - The current config\r\n * @param core - The current core instance\r\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\r\n */\nexport function createProcessTelemetryUnloadContext(telemetryChain, core, startAt) {\n var config = createDynamicConfig(core.config);\n var internalContext = _createInternalContext(telemetryChain, config, core, startAt);\n var context = internalContext.ctx;\n function _processNext(unloadState) {\n var nextPlugin = internalContext._next();\n nextPlugin && nextPlugin[_DYN_UNLOAD /* @min:%2eunload */](context, unloadState);\n return !nextPlugin;\n }\n function _createNew(plugins, startAt) {\n if (plugins === void 0) {\n plugins = null;\n }\n if (isArray(plugins)) {\n plugins = createTelemetryProxyChain(plugins, config.cfg, core, startAt);\n }\n return createProcessTelemetryUnloadContext(plugins || context[_DYN_GET_NEXT /* @min:%2egetNext */](), core, startAt);\n }\n context[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */] = _processNext;\n context[_DYN_CREATE_NEW /* @min:%2ecreateNew */] = _createNew;\n return context;\n}\n/**\r\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain for updating the configuration\r\n * @param plugins - The plugin instances that will be executed\r\n * @param config - The current config\r\n * @param core - The current core instance\r\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\r\n */\nexport function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {\n var config = createDynamicConfig(core.config);\n var internalContext = _createInternalContext(telemetryChain, config, core, startAt);\n var context = internalContext.ctx;\n function _processNext(updateState) {\n return context.iterate(function (plugin) {\n if (isFunction(plugin[_DYN_UPDATE /* @min:%2eupdate */])) {\n plugin[_DYN_UPDATE /* @min:%2eupdate */](context, updateState);\n }\n });\n }\n function _createNew(plugins, startAt) {\n if (plugins === void 0) {\n plugins = null;\n }\n if (isArray(plugins)) {\n plugins = createTelemetryProxyChain(plugins, config.cfg, core, startAt);\n }\n return createProcessTelemetryUpdateContext(plugins || context[_DYN_GET_NEXT /* @min:%2egetNext */](), core, startAt);\n }\n context[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */] = _processNext;\n context[_DYN_CREATE_NEW /* @min:%2ecreateNew */] = _createNew;\n return context;\n}\n/**\r\n * Creates an execution chain from the array of plugins\r\n * @param plugins - The array of plugins that will be executed in this order\r\n * @param defItemCtx - The default execution context to use when no telemetry context is passed to processTelemetry(), this\r\n * should be for legacy plugins only. Currently, only used for passing the current core instance and to provide better error\r\n * reporting (hasRun) when errors occur.\r\n */\nexport function createTelemetryProxyChain(plugins, config, core, startAt) {\n var firstProxy = null;\n var add = startAt ? false : true;\n if (isArray(plugins) && plugins[_DYN_LENGTH /* @min:%2elength */] > 0) {\n // Create the proxies and wire up the next plugin chain\n var lastProxy_1 = null;\n arrForEach(plugins, function (thePlugin) {\n if (!add && startAt === thePlugin) {\n add = true;\n }\n if (add && thePlugin && isFunction(thePlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */])) {\n // Only add plugins that are processors\n var newProxy = createTelemetryPluginProxy(thePlugin, config, core);\n if (!firstProxy) {\n firstProxy = newProxy;\n }\n if (lastProxy_1) {\n // Set this new proxy as the next for the previous one\n lastProxy_1._setNext(newProxy);\n }\n lastProxy_1 = newProxy;\n }\n });\n }\n if (startAt && !firstProxy) {\n // Special case where the \"startAt\" was not in the original list of plugins\n return createTelemetryProxyChain([startAt], config, core);\n }\n return firstProxy;\n}\n/**\r\n * Create the processing telemetry proxy instance, the proxy is used to abstract the current plugin to allow monitoring and\r\n * execution plugins while passing around the dynamic execution state (IProcessTelemetryContext), the proxy instance no longer\r\n * contains any execution state and can be reused between requests (this was not the case for 2.7.2 and earlier with the\r\n * TelemetryPluginChain class).\r\n * @param plugin - The plugin instance to proxy\r\n * @param config - The default execution context to use when no telemetry context is passed to processTelemetry(), this\r\n * should be for legacy plugins only. Currently, only used for passing the current core instance and to provide better error\r\n * reporting (hasRun) when errors occur.\r\n * @returns\r\n */\nexport function createTelemetryPluginProxy(plugin, config, core) {\n var nextProxy = null;\n var hasProcessTelemetry = isFunction(plugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */]);\n var hasSetNext = isFunction(plugin[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */]);\n var chainId;\n if (plugin) {\n chainId = plugin[_DYN_IDENTIFIER /* @min:%2eidentifier */] + \"-\" + plugin[STR_PRIORITY /* @min:%2epriority */] + \"-\" + _chainId++;\n } else {\n chainId = \"Unknown-0-\" + _chainId++;\n }\n var proxyChain = {\n getPlugin: function () {\n return plugin;\n },\n getNext: function () {\n return nextProxy;\n },\n processTelemetry: _processTelemetry,\n unload: _unloadPlugin,\n update: _updatePlugin,\n _id: chainId,\n _setNext: function (nextPlugin) {\n nextProxy = nextPlugin;\n }\n };\n function _getTelCtx() {\n var itemCtx;\n // Looks like a plugin didn't pass the (optional) context, so create a new one\n if (plugin && isFunction(plugin[strGetTelCtx])) {\n // This plugin extends from the BaseTelemetryPlugin so lets use it\n itemCtx = plugin[strGetTelCtx]();\n }\n if (!itemCtx) {\n // Create a temporary one\n itemCtx = createProcessTelemetryContext(proxyChain, config, core);\n }\n return itemCtx;\n }\n function _processChain(itemCtx, processPluginFn, name, details, isAsync) {\n var hasRun = false;\n var identifier = plugin ? plugin[_DYN_IDENTIFIER /* @min:%2eidentifier */] : strTelemetryPluginChain;\n var hasRunContext = itemCtx[strHasRunFlags];\n if (!hasRunContext) {\n // Assign and populate\n hasRunContext = itemCtx[strHasRunFlags] = {};\n }\n // Ensure that we keep the context in sync\n itemCtx.setNext(nextProxy);\n if (plugin) {\n doPerf(itemCtx[STR_CORE /* @min:%2ecore */](), function () {\n return identifier + \":\" + name;\n }, function () {\n // Mark this component as having run\n hasRunContext[chainId] = true;\n try {\n // Set a flag on the next plugin so we know if it was attempted to be executed\n var nextId = nextProxy ? nextProxy._id : STR_EMPTY;\n if (nextId) {\n hasRunContext[nextId] = false;\n }\n hasRun = processPluginFn(itemCtx);\n } catch (error) {\n var hasNextRun = nextProxy ? hasRunContext[nextProxy._id] : true;\n if (hasNextRun) {\n // The next plugin after us has already run so set this one as complete\n hasRun = true;\n }\n if (!nextProxy || !hasNextRun) {\n // Either we have no next plugin or the current one did not attempt to call the next plugin\n // Which means the current one is the root of the failure so log/report this failure\n _throwInternal(itemCtx[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 73 /* _eInternalMessageId.PluginException */, \"Plugin [\" + identifier + \"] failed during \" + name + \" - \" + dumpObj(error) + \", run flags: \" + dumpObj(hasRunContext));\n }\n }\n }, details, isAsync);\n }\n return hasRun;\n }\n function _processTelemetry(env, itemCtx) {\n itemCtx = itemCtx || _getTelCtx();\n function _callProcessTelemetry(itemCtx) {\n if (!plugin || !hasProcessTelemetry) {\n return false;\n }\n var pluginState = _getPluginState(plugin);\n if (pluginState[_DYN_TEARDOWN /* @min:%2eteardown */] || pluginState[STR_DISABLED]) {\n return false;\n }\n // Ensure that we keep the context in sync (for processNext()), just in case a plugin\n // doesn't calls processTelemetry() instead of itemContext.processNext() or some\n // other form of error occurred\n if (hasSetNext) {\n // Backward compatibility setting the next plugin on the instance\n plugin[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */](nextProxy);\n }\n plugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */](env, itemCtx);\n // Process Telemetry is expected to call itemCtx.processNext() or nextPlugin.processTelemetry()\n return true;\n }\n if (!_processChain(itemCtx, _callProcessTelemetry, \"processTelemetry\", function () {\n return {\n item: env\n };\n }, !env.sync)) {\n // The underlying plugin is either not defined, not enabled or does not have a processTelemetry implementation\n // so we still want the next plugin to be executed.\n itemCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](env);\n }\n }\n function _unloadPlugin(unloadCtx, unloadState) {\n function _callTeardown() {\n // Setting default of hasRun as false so the proxyProcessFn() is called as teardown() doesn't have to exist or call unloadNext().\n var hasRun = false;\n if (plugin) {\n var pluginState = _getPluginState(plugin);\n var pluginCore = plugin[STR_CORE] || pluginState[STR_CORE /* @min:%2ecore */];\n // Only teardown the plugin if it was initialized by the current core (i.e. It's not a shared plugin)\n if (plugin && (!pluginCore || pluginCore === unloadCtx.core()) && !pluginState[_DYN_TEARDOWN /* @min:%2eteardown */]) {\n // Handle plugins that don't extend from the BaseTelemetryPlugin\n pluginState[STR_CORE /* @min:%2ecore */] = null;\n pluginState[_DYN_TEARDOWN /* @min:%2eteardown */] = true;\n pluginState[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */] = false;\n if (plugin[_DYN_TEARDOWN /* @min:%2eteardown */] && plugin[_DYN_TEARDOWN /* @min:%2eteardown */](unloadCtx, unloadState) === true) {\n // plugin told us that it was going to (or has) call unloadCtx.processNext()\n hasRun = true;\n }\n }\n }\n return hasRun;\n }\n if (!_processChain(unloadCtx, _callTeardown, \"unload\", function () {}, unloadState[_DYN_IS_ASYNC /* @min:%2eisAsync */])) {\n // Only called if we hasRun was not true\n unloadCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](unloadState);\n }\n }\n function _updatePlugin(updateCtx, updateState) {\n function _callUpdate() {\n // Setting default of hasRun as false so the proxyProcessFn() is called as teardown() doesn't have to exist or call unloadNext().\n var hasRun = false;\n if (plugin) {\n var pluginState = _getPluginState(plugin);\n var pluginCore = plugin[STR_CORE] || pluginState[STR_CORE /* @min:%2ecore */];\n // Only update the plugin if it was initialized by the current core (i.e. It's not a shared plugin)\n if (plugin && (!pluginCore || pluginCore === updateCtx.core()) && !pluginState[_DYN_TEARDOWN /* @min:%2eteardown */]) {\n if (plugin[_DYN_UPDATE /* @min:%2eupdate */] && plugin[_DYN_UPDATE /* @min:%2eupdate */](updateCtx, updateState) === true) {\n // plugin told us that it was going to (or has) call unloadCtx.processNext()\n hasRun = true;\n }\n }\n }\n return hasRun;\n }\n if (!_processChain(updateCtx, _callUpdate, \"update\", function () {}, false)) {\n // Only called if we hasRun was not true\n updateCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](updateState);\n }\n }\n return objFreeze(proxyChain);\n}\n/**\r\n * This class will be removed!\r\n * @deprecated use createProcessTelemetryContext() instead\r\n */\nvar ProcessTelemetryContext = /** @class */function () {\n /**\r\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain\r\n * @param plugins - The plugin instances that will be executed\r\n * @param config - The current config\r\n * @param core - The current core instance\r\n */\n function ProcessTelemetryContext(pluginChain, config, core, startAt) {\n var _self = this;\n var context = createProcessTelemetryContext(pluginChain, config, core, startAt);\n // Proxy all functions of the context to this object\n proxyFunctions(_self, context, objKeys(context));\n }\n return ProcessTelemetryContext;\n}();\nexport { ProcessTelemetryContext };\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrForEach, dumpObj } from \"@nevware21/ts-utils\";\nimport { _DYN_DIAG_LOG, _DYN_PUSH } from \"../__DynamicConstants\";\nimport { _throwInternal } from \"./DiagnosticLogger\";\nexport function createUnloadHandlerContainer() {\n var handlers = [];\n function _addHandler(handler) {\n if (handler) {\n handlers[_DYN_PUSH /* @min:%2epush */](handler);\n }\n }\n function _runHandlers(unloadCtx, unloadState) {\n arrForEach(handlers, function (handler) {\n try {\n handler(unloadCtx, unloadState);\n } catch (e) {\n _throwInternal(unloadCtx[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 73 /* _eInternalMessageId.PluginException */, \"Unexpected error calling unload handler - \" + dumpObj(e));\n }\n });\n handlers = [];\n }\n return {\n add: _addHandler,\n run: _runHandlers\n };\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\nimport { arrAppend, arrForEach, dumpObj } from \"@nevware21/ts-utils\";\nimport { _DYN_LENGTH } from \"../__DynamicConstants\";\nimport { _throwInternal } from \"./DiagnosticLogger\";\nvar _maxHooks;\nvar _hookAddMonitor;\n/**\r\n * Test hook for setting the maximum number of unload hooks and calling a monitor function when the hooks are added or removed\r\n * This allows for automatic test failure when the maximum number of unload hooks is exceeded\r\n * @param maxHooks - The maximum number of unload hooks\r\n * @param addMonitor - The monitor function to call when hooks are added or removed\r\n */\nexport function _testHookMaxUnloadHooksCb(maxHooks, addMonitor) {\n _maxHooks = maxHooks;\n _hookAddMonitor = addMonitor;\n}\n/**\r\n * Create a IUnloadHookContainer which can be used to remember unload hook functions to be executed during the component unloading\r\n * process.\r\n * @returns A new IUnloadHookContainer instance\r\n */\nexport function createUnloadHookContainer() {\n var _hooks = [];\n function _doUnload(logger) {\n var oldHooks = _hooks;\n _hooks = [];\n // Remove all registered unload hooks\n arrForEach(oldHooks, function (fn) {\n // allow either rm or remove callback function\n try {\n (fn.rm || fn.remove).call(fn);\n } catch (e) {\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 73 /* _eInternalMessageId.PluginException */, \"Unloading:\" + dumpObj(e));\n }\n });\n if (_maxHooks && oldHooks[_DYN_LENGTH /* @min:%2elength */] > _maxHooks) {\n _hookAddMonitor ? _hookAddMonitor(\"doUnload\", oldHooks) : _throwInternal(null, 1 /* eLoggingSeverity.CRITICAL */, 48 /* _eInternalMessageId.MaxUnloadHookExceeded */, \"Max unload hooks exceeded. An excessive number of unload hooks has been detected.\");\n }\n }\n function _addHook(hooks) {\n if (hooks) {\n arrAppend(_hooks, hooks);\n if (_maxHooks && _hooks[_DYN_LENGTH /* @min:%2elength */] > _maxHooks) {\n _hookAddMonitor ? _hookAddMonitor(\"Add\", _hooks) : _throwInternal(null, 1 /* eLoggingSeverity.CRITICAL */, 48 /* _eInternalMessageId.MaxUnloadHookExceeded */, \"Max unload hooks exceeded. An excessive number of unload hooks has been detected.\");\n }\n }\n }\n return {\n run: _doUnload,\n add: _addHook\n };\n}\n","/*\n * Application Insights JavaScript SDK - Core, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n\"use strict\";\n\nvar _a;\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\nimport { isFunction, objDefine } from \"@nevware21/ts-utils\";\nimport { createDynamicConfig } from \"../Config/DynamicConfig\";\nimport { _DYN_CREATE_NEW, _DYN_DIAG_LOG, _DYN_GET_NEXT, _DYN_GET_PROCESS_TEL_CONT2, _DYN_INITIALIZE, _DYN_IS_ASYNC, _DYN_IS_INITIALIZED, _DYN_PROCESS_NEXT, _DYN_SET_NEXT_PLUGIN, _DYN_TEARDOWN, _DYN_UPDATE, _DYN__DO_TEARDOWN } from \"../__DynamicConstants\";\nimport { safeGetLogger } from \"./DiagnosticLogger\";\nimport { isNotNullOrUndefined, proxyFunctionAs } from \"./HelperFuncs\";\nimport { STR_CORE, STR_EXTENSION_CONFIG, STR_PROCESS_TELEMETRY } from \"./InternalConstants\";\nimport { createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext } from \"./ProcessTelemetryContext\";\nimport { createUnloadHandlerContainer } from \"./UnloadHandlerContainer\";\nimport { createUnloadHookContainer } from \"./UnloadHookContainer\";\nvar strGetPlugin = \"getPlugin\";\nvar defaultValues = (_a = {}, _a[STR_EXTENSION_CONFIG] = {\n isVal: isNotNullOrUndefined,\n v: {}\n}, _a);\n/**\r\n * BaseTelemetryPlugin provides a basic implementation of the ITelemetryPlugin interface so that plugins\r\n * can avoid implementation the same set of boiler plate code as well as provide a base\r\n * implementation so that new default implementations can be added without breaking all plugins.\r\n */\nvar BaseTelemetryPlugin = /** @class */function () {\n function BaseTelemetryPlugin() {\n var _self = this; // Setting _self here as it's used outside of the dynamicProto as well\n // NOTE!: DON'T set default values here, instead set them in the _initDefaults() function as it is also called during teardown()\n var _isinitialized;\n var _rootCtx; // Used as the root context, holding the current config and initialized core\n var _nextPlugin; // Used for backward compatibility where plugins don't call the main pipeline\n var _unloadHandlerContainer;\n var _hookContainer;\n _initDefaults();\n dynamicProto(BaseTelemetryPlugin, _self, function (_self) {\n _self[_DYN_INITIALIZE /* @min:%2einitialize */] = function (config, core, extensions, pluginChain) {\n _setDefaults(config, core, pluginChain);\n _isinitialized = true;\n };\n _self[_DYN_TEARDOWN /* @min:%2eteardown */] = function (unloadCtx, unloadState) {\n var _a;\n // If this plugin has already been torn down (not operational) or is not initialized (core is not set)\n // or the core being used for unload was not the same core used for initialization.\n var core = _self[STR_CORE /* @min:%2ecore */];\n if (!core || unloadCtx && core !== unloadCtx[STR_CORE /* @min:%2ecore */]()) {\n // Do Nothing as either the plugin is not initialized or was not initialized by the current core\n return;\n }\n var result;\n var unloadDone = false;\n var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);\n var theUnloadState = unloadState || (_a = {\n reason: 0 /* TelemetryUnloadReason.ManualTeardown */\n }, _a[_DYN_IS_ASYNC /* @min:isAsync */] = false, _a);\n function _unloadCallback() {\n if (!unloadDone) {\n unloadDone = true;\n _unloadHandlerContainer.run(theUnloadCtx, unloadState);\n _hookContainer.run(theUnloadCtx[_DYN_DIAG_LOG /* @min:%2ediagLog */]());\n if (result === true) {\n theUnloadCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](theUnloadState);\n }\n _initDefaults();\n }\n }\n if (!_self[_DYN__DO_TEARDOWN /* @min:%2e_doTeardown */] || _self[_DYN__DO_TEARDOWN /* @min:%2e_doTeardown */](theUnloadCtx, theUnloadState, _unloadCallback) !== true) {\n _unloadCallback();\n } else {\n // Tell the caller that we will be calling processNext()\n result = true;\n }\n return result;\n };\n _self[_DYN_UPDATE /* @min:%2eupdate */] = function (updateCtx, updateState) {\n // If this plugin has already been torn down (not operational) or is not initialized (core is not set)\n // or the core being used for unload was not the same core used for initialization.\n var core = _self[STR_CORE /* @min:%2ecore */];\n if (!core || updateCtx && core !== updateCtx[STR_CORE /* @min:%2ecore */]()) {\n // Do Nothing\n return;\n }\n var result;\n var updateDone = false;\n var theUpdateCtx = updateCtx || createProcessTelemetryUpdateContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);\n var theUpdateState = updateState || {\n reason: 0 /* TelemetryUpdateReason.Unknown */\n };\n function _updateCallback() {\n if (!updateDone) {\n updateDone = true;\n _setDefaults(theUpdateCtx.getCfg(), theUpdateCtx.core(), theUpdateCtx[_DYN_GET_NEXT /* @min:%2egetNext */]());\n }\n }\n if (!_self._doUpdate || _self._doUpdate(theUpdateCtx, theUpdateState, _updateCallback) !== true) {\n _updateCallback();\n } else {\n result = true;\n }\n return result;\n };\n proxyFunctionAs(_self, \"_addUnloadCb\", function () {\n return _unloadHandlerContainer;\n }, \"add\");\n proxyFunctionAs(_self, \"_addHook\", function () {\n return _hookContainer;\n }, \"add\");\n objDefine(_self, \"_unloadHooks\", {\n g: function () {\n return _hookContainer;\n }\n });\n });\n // These are added after the dynamicProto so that are not moved to the prototype\n _self[_DYN_DIAG_LOG /* @min:%2ediagLog */] = function (itemCtx) {\n return _getTelCtx(itemCtx)[_DYN_DIAG_LOG /* @min:%2ediagLog */]();\n };\n _self[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */] = function () {\n return _isinitialized;\n };\n _self.setInitialized = function (isInitialized) {\n _isinitialized = isInitialized;\n };\n // _self.getNextPlugin = () => DO NOT IMPLEMENT\n // Sub-classes of this base class *should* not be relying on this value and instead\n // should use processNext() function. If you require access to the plugin use the\n // IProcessTelemetryContext.getNext().getPlugin() while in the pipeline, Note getNext() may return null.\n _self[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */] = function (next) {\n _nextPlugin = next;\n };\n _self[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */] = function (env, itemCtx) {\n if (itemCtx) {\n // Normal core execution sequence\n itemCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](env);\n } else if (_nextPlugin && isFunction(_nextPlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */])) {\n // Looks like backward compatibility or out of band processing. And as it looks\n // like a ITelemetryPlugin or ITelemetryPluginChain, just call processTelemetry\n _nextPlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */](env, null);\n }\n };\n _self._getTelCtx = _getTelCtx;\n function _getTelCtx(currentCtx) {\n if (currentCtx === void 0) {\n currentCtx = null;\n }\n var itemCtx = currentCtx;\n if (!itemCtx) {\n var rootCtx = _rootCtx || createProcessTelemetryContext(null, {}, _self[STR_CORE /* @min:%2ecore */]);\n // tslint:disable-next-line: prefer-conditional-expression\n if (_nextPlugin && _nextPlugin[strGetPlugin]) {\n // Looks like a chain object\n itemCtx = rootCtx[_DYN_CREATE_NEW /* @min:%2ecreateNew */](null, _nextPlugin[strGetPlugin]);\n } else {\n itemCtx = rootCtx[_DYN_CREATE_NEW /* @min:%2ecreateNew */](null, _nextPlugin);\n }\n }\n return itemCtx;\n }\n function _setDefaults(config, core, pluginChain) {\n // Make sure the extensionConfig exists and the config is dynamic\n createDynamicConfig(config, defaultValues, safeGetLogger(core));\n if (!pluginChain && core) {\n // Get the first plugin from the core\n pluginChain = core[_DYN_GET_PROCESS_TEL_CONT2 /* @min:%2egetProcessTelContext */]()[_DYN_GET_NEXT /* @min:%2egetNext */]();\n }\n var nextPlugin = _nextPlugin;\n if (_nextPlugin && _nextPlugin[strGetPlugin]) {\n // If it looks like a proxy/chain then get the plugin\n nextPlugin = _nextPlugin[strGetPlugin]();\n }\n // Support legacy plugins where core was defined as a property\n _self[STR_CORE /* @min:%2ecore */] = core;\n _rootCtx = createProcessTelemetryContext(pluginChain, config, core, nextPlugin);\n }\n function _initDefaults() {\n _isinitialized = false;\n _self[STR_CORE /* @min:%2ecore */] = null;\n _rootCtx = null;\n _nextPlugin = null;\n _hookContainer = createUnloadHookContainer();\n _unloadHandlerContainer = createUnloadHandlerContainer();\n }\n }\n // Removed Stub for BaseTelemetryPlugin.prototype.initialize.\n // Removed Stub for BaseTelemetryPlugin.prototype.teardown.\n // Removed Stub for BaseTelemetryPlugin.prototype.update.\n // Removed Stub for BaseTelemetryPlugin.prototype._addUnloadCb.\n // Removed Stub for BaseTelemetryPlugin.prototype._addHook.\n // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n BaseTelemetryPlugin.__ieDyn = 1;\n return BaseTelemetryPlugin;\n}();\nexport { BaseTelemetryPlugin };\n","/*\n * Application Insights JavaScript SDK - Common, 3.3.0\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\n// Licensed under the\nexport { correlationIdSetPrefix, correlationIdGetPrefix, correlationIdCanIncludeCorrelationHeader, correlationIdGetCorrelationContext, correlationIdGetCorrelationContextValue, dateTimeUtilsNow, dateTimeUtilsDuration, isInternalApplicationInsightsEndpoint, createDistributedTraceContextFromTrace } from \"./Util\";\nexport { ThrottleMgr } from \"./ThrottleMgr\";\nexport { parseConnectionString, ConnectionStringParser } from \"./ConnectionStringParser\";\nexport { RequestHeaders } from \"./RequestResponseHeaders\";\nexport { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, strNotSpecified } from \"./Constants\";\nexport { Envelope } from \"./Telemetry/Common/Envelope\";\nexport { Event } from \"./Telemetry/Event\";\nexport { Exception } from \"./Telemetry/Exception\";\nexport { Metric } from \"./Telemetry/Metric\";\nexport { PageView } from \"./Telemetry/PageView\";\nexport { RemoteDependencyData } from \"./Telemetry/RemoteDependencyData\";\nexport { Trace } from \"./Telemetry/Trace\";\nexport { PageViewPerformance } from \"./Telemetry/PageViewPerformance\";\nexport { Data } from \"./Telemetry/Common/Data\";\nexport { SeverityLevel } from \"./Interfaces/Contracts/SeverityLevel\";\nexport { ConfigurationManager } from \"./Interfaces/IConfig\";\nexport { ContextTagKeys } from \"./Interfaces/Contracts/ContextTagKeys\";\nexport { dataSanitizeKeyAndAddUniqueness, dataSanitizeKey, dataSanitizeString, dataSanitizeUrl, dataSanitizeMessage, dataSanitizeException, dataSanitizeProperties, dataSanitizeMeasurements, dataSanitizeId, dataSanitizeInput, dsPadNumber } from \"./Telemetry/Common/DataSanitizer\";\nexport { TelemetryItemCreator, createTelemetryItem } from \"./TelemetryItemCreator\";\nexport { CtxTagKeys, Extensions } from \"./Interfaces/PartAExtensions\";\nexport { DistributedTracingModes, EventPersistence } from \"./Enums\";\nexport { stringToBoolOrDefault, msToTimeSpan, getExtensionByName, isCrossOriginError } from \"./HelperFuncs\";\nexport { isBeaconsSupported as isBeaconApiSupported, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from \"@microsoft/applicationinsights-core-js\";\nexport { createDomEvent } from \"./DomHelperFuncs\";\nexport { utlDisableStorage, utlEnableStorage, utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage, utlRemoveStorage, utlCanUseSessionStorage, utlGetSessionStorageKeys, utlGetSessionStorage, utlSetSessionStorage, utlRemoveSessionStorage, utlSetStoragePrefix } from \"./StorageHelperFuncs\";\nexport { urlParseUrl, urlGetAbsoluteUrl, urlGetPathName, urlGetCompleteUrl, urlParseHost, urlParseFullHost } from \"./UrlHelperFuncs\";\nexport { createOfflineListener } from \"./Offline\";\nexport var PropertiesPluginIdentifier = \"AppInsightsPropertiesPlugin\";\nexport var BreezeChannelIdentifier = \"AppInsightsChannelPlugin\";\nexport var AnalyticsPluginIdentifier = \"ApplicationInsightsAnalytics\";\n","import * as i0 from '@angular/core';\nimport { Injectable, Component, NgModule } from '@angular/core';\nimport { PropertiesPluginIdentifier, AnalyticsPluginIdentifier } from '@microsoft/applicationinsights-common';\nimport { isFunction, arrForEach, BaseTelemetryPlugin, onConfigChange, isArray, getLocation, generateW3CId, _throwInternal } from '@microsoft/applicationinsights-core-js';\nimport dynamicProto from '@microsoft/dynamicproto-js';\nimport { NavigationEnd } from '@angular/router';\nimport { objDeepFreeze } from '@nevware21/ts-utils';\nlet ApplicationinsightsAngularpluginErrorService = /*#__PURE__*/(() => {\n class ApplicationinsightsAngularpluginErrorService {\n constructor() {\n this.errorServices = [];\n if (ApplicationinsightsAngularpluginErrorService.instance === null) {\n ApplicationinsightsAngularpluginErrorService.instance = this;\n }\n }\n set plugin(analyticsPlugin) {\n this.analyticsPlugin = analyticsPlugin;\n }\n clearErrorHandlers() {\n this.errorServices = [];\n }\n addErrorHandler(errorService) {\n if (errorService && isFunction(errorService.handleError)) {\n this.errorServices.push(errorService);\n }\n }\n removeErrorHandler(errorService) {\n if (errorService && isFunction(errorService.handleError)) {\n const idx = this.errorServices.indexOf(errorService);\n if (idx !== -1) {\n this.errorServices.splice(idx, 1);\n }\n }\n }\n handleError(error) {\n if (this.analyticsPlugin) {\n this.analyticsPlugin.trackException({\n exception: error\n });\n }\n if (this.errorServices && this.errorServices.length > 0) {\n arrForEach(this.errorServices, errorService => {\n if (isFunction(errorService.handleError)) {\n errorService.handleError(error);\n }\n });\n }\n }\n }\n ApplicationinsightsAngularpluginErrorService.instance = null;\n ApplicationinsightsAngularpluginErrorService.ɵfac = function ApplicationinsightsAngularpluginErrorService_Factory(t) {\n return new (t || ApplicationinsightsAngularpluginErrorService)();\n };\n ApplicationinsightsAngularpluginErrorService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ApplicationinsightsAngularpluginErrorService,\n factory: ApplicationinsightsAngularpluginErrorService.ɵfac,\n providedIn: \"root\"\n });\n return ApplicationinsightsAngularpluginErrorService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet undefValue;\nconst defaultAngularExtensionConfig = objDeepFreeze({\n router: {\n blkVal: true,\n v: undefValue\n },\n errorServices: {\n blkVal: true,\n v: undefValue\n }\n});\n// eslint-disable-next-line @angular-eslint/component-class-suffix\nlet AngularPlugin = /*#__PURE__*/(() => {\n class AngularPlugin extends BaseTelemetryPlugin {\n constructor(_injector) {\n super();\n this._injector = _injector;\n this.priority = 186;\n this.identifier = \"AngularPlugin\";\n let _analyticsPlugin;\n let _propertiesPlugin;\n let _angularCfg;\n let _eventSubscription;\n let _isPageInitialLoad;\n let _prevRouter;\n let _errorServiceInstance;\n dynamicProto(AngularPlugin, this, (_self, _base) => {\n const _initDefaults = () => {\n _analyticsPlugin = null;\n _propertiesPlugin = null;\n _angularCfg = null;\n _eventSubscription = null;\n _isPageInitialLoad = true;\n _prevRouter = undefValue;\n };\n _initDefaults();\n _self.initialize = (config, core, extensions, pluginChain) => {\n super.initialize(config, core, extensions, pluginChain);\n _self._addHook(onConfigChange(config, details => {\n let ctx = _self._getTelCtx();\n _angularCfg = ctx.getExtCfg(_self.identifier, defaultAngularExtensionConfig);\n _propertiesPlugin = core.getPlugin(PropertiesPluginIdentifier)?.plugin;\n _analyticsPlugin = core.getPlugin(AnalyticsPluginIdentifier)?.plugin;\n if (_angularCfg.useInjector && _injector) {\n _errorServiceInstance = this._injector.get(ApplicationinsightsAngularpluginErrorService);\n }\n _errorServiceInstance = _errorServiceInstance ? _errorServiceInstance : ApplicationinsightsAngularpluginErrorService.instance;\n // two instance of errorService\n if (_analyticsPlugin) {\n if (_errorServiceInstance !== null) {\n _errorServiceInstance.plugin = _analyticsPlugin;\n if (_angularCfg.errorServices && isArray(_angularCfg.errorServices)) {\n _errorServiceInstance.clearErrorHandlers();\n arrForEach(_angularCfg.errorServices, errorService => {\n _errorServiceInstance.addErrorHandler(errorService);\n });\n }\n }\n }\n if (_angularCfg.router !== _prevRouter) {\n // router is changed, or has not been initialized yet\n // unsubscribe previous router events\n if (_eventSubscription) {\n _eventSubscription.unsubscribe();\n }\n if (_angularCfg.router) {\n // only track page view if it is the initial page load for this plugin\n if (_isPageInitialLoad) {\n const pageViewTelemetry = {\n uri: _angularCfg.router.url\n };\n _self.trackPageView(pageViewTelemetry);\n }\n // subscribe to new router events\n _eventSubscription = _angularCfg.router.events.subscribe(event => {\n if (_self.isInitialized()) {\n if (event instanceof NavigationEnd) {\n // for page initial load, do not call trackPageView twice\n if (_isPageInitialLoad) {\n _isPageInitialLoad = false;\n return;\n }\n const pvt = {\n uri: _angularCfg.router.url,\n properties: {\n duration: 0\n } // SPA route change loading durations are undefined, so send 0\n };\n _self.trackPageView(pvt);\n }\n }\n });\n }\n _prevRouter = _angularCfg.router;\n }\n }));\n // for test purpose only\n _self[\"_getDbgPlgTargets\"] = () => _angularCfg;\n _self[\"_getErrorService\"] = () => _errorServiceInstance;\n };\n _self.trackPageView = pageView => {\n if (_analyticsPlugin) {\n const location = getLocation();\n if (_propertiesPlugin && _propertiesPlugin.context && _propertiesPlugin.context.telemetryTrace) {\n _propertiesPlugin.context.telemetryTrace.traceID = generateW3CId();\n _propertiesPlugin.context.telemetryTrace.name = location && location.pathname || \"_unknown_\";\n }\n _analyticsPlugin.trackPageView(pageView);\n } else {\n _throwInternal(_self.diagLog(), 1 /* eLoggingSeverity.CRITICAL */, 64 /* _eInternalMessageId.TelemetryInitializerFailed */, \"Analytics plugin is not available, Angular plugin telemetry will not be sent: \");\n }\n };\n _self._doTeardown = (unloadCtx, unloadState, asyncCallback) => {\n if (_analyticsPlugin && _errorServiceInstance !== null) {\n _errorServiceInstance.plugin = null;\n if (_angularCfg) {\n if (_angularCfg.errorServices && Array.isArray(_angularCfg.errorServices)) {\n _errorServiceInstance.clearErrorHandlers();\n }\n }\n }\n if (_eventSubscription) {\n _eventSubscription.unsubscribe();\n _eventSubscription = null;\n }\n _initDefaults();\n };\n });\n }\n /**\r\n * Add Part A fields to the event\r\n *\r\n * @param event The event that needs to be processed\r\n */\n processTelemetry(event, itemCtx) {\n this.processNext(event, itemCtx);\n }\n initialize(config, core, extensions, pluginChain) {\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\n }\n trackPageView(pageView) {\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\n }\n }\n AngularPlugin.ɵfac = function AngularPlugin_Factory(t) {\n return new (t || AngularPlugin)(i0.ɵɵdirectiveInject(i0.Injector));\n };\n AngularPlugin.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: AngularPlugin,\n selectors: [[\"lib-applicationinsights-angularplugin-js\"]],\n features: [i0.ɵɵInheritDefinitionFeature],\n decls: 0,\n vars: 0,\n template: function AngularPlugin_Template(rf, ctx) {},\n encapsulation: 2\n });\n return AngularPlugin;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ApplicationinsightsAngularpluginJsModule = /*#__PURE__*/(() => {\n class ApplicationinsightsAngularpluginJsModule {}\n ApplicationinsightsAngularpluginJsModule.ɵfac = function ApplicationinsightsAngularpluginJsModule_Factory(t) {\n return new (t || ApplicationinsightsAngularpluginJsModule)();\n };\n ApplicationinsightsAngularpluginJsModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: ApplicationinsightsAngularpluginJsModule\n });\n ApplicationinsightsAngularpluginJsModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [ApplicationinsightsAngularpluginErrorService]\n });\n return ApplicationinsightsAngularpluginJsModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/*\r\n * Public API Surface of applicationinsights-angularplugin-js\r\n */\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { AngularPlugin, ApplicationinsightsAngularpluginErrorService, ApplicationinsightsAngularpluginJsModule };\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n return getRandomValues(rnds8);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js';\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return stringify(rnds);\n}\nexport default v4;","import { v4 } from 'uuid';\r\n\r\nexport function uuid(): string {\r\n return v4();\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ApplicationInsights, IConfig, IConfiguration } from '@microsoft/applicationinsights-web';\r\nimport { AngularPlugin } from '@microsoft/applicationinsights-angularplugin-js';\r\nimport { TcsConfiguration } from 'src/app/app.config';\r\nimport { TcsConfigurationService } from 'src/app/core/configuration.service';\r\nimport { environment } from 'src/environments/environment';\r\nimport { patchTelemetryProps } from 'src/lib/tcs-app-insights/app-insights-util';\r\nimport { uuid } from 'src/util/uuid';\r\nimport { BehaviorSubject, filter, Observable } from 'rxjs';\r\n\r\nconst tabId = uuid();\r\nexport interface ApplicationInsightsConfiguration {\r\n enabled: boolean;\r\n instrumentationKey: string | null;\r\n}\r\n\r\nfunction bootstrapApplicationInsights({\r\n applicationInsights: { enabled, instrumentationKey },\r\n tcs: { graphqlUri },\r\n}: TcsConfiguration) {\r\n if (enabled) {\r\n const appInsightsPlugin = new AngularPlugin();\r\n\r\n if (instrumentationKey == null) {\r\n // eslint-disable-next-line no-console\r\n console.warn('Application Insights is enabled but instrumentation key was not provided.');\r\n } else if (appInsightsPlugin == null) {\r\n // eslint-disable-next-line no-console\r\n console.warn('Application insights was enabled but SDK was not loaded properly.');\r\n } else {\r\n const config: IConfiguration & IConfig = {\r\n instrumentationKey,\r\n // We set correlation headers manually - App Insights assumes non-spa environment\r\n disableCorrelationHeaders: true,\r\n disableExceptionTracking: true,\r\n autoTrackPageVisitTime: false,\r\n enableDebug: !environment.production,\r\n maxAjaxCallsPerView: -1,\r\n // disabling cookie use locally to avoid this exception: https://github.com/Microsoft/ApplicationInsights-JS/issues/482\r\n disableCookiesUsage: !environment.production,\r\n loggingLevelConsole: !environment.production ? 1 : 2,\r\n };\r\n\r\n const applicationInsights = new ApplicationInsights({ config, queue: [] });\r\n applicationInsights.loadAppInsights();\r\n return applicationInsights;\r\n }\r\n }\r\n}\r\n\r\nfunction initializeTelemetry(applicationInsights: ApplicationInsights, graphqlUri: string) {\r\n applicationInsights.appInsights.queue = [];\r\n\r\n // Add tab ID\r\n applicationInsights.addTelemetryInitializer((env) => {\r\n if (env?.baseData?.properties != null) {\r\n env.baseData.properties.tabId = tabId;\r\n }\r\n });\r\n applicationInsights.addTelemetryInitializer((env) => {\r\n if (env?.baseData?.properties != null) {\r\n env.baseData.properties.tabId = tabId;\r\n }\r\n });\r\n\r\n // Don't track network exceptions\r\n applicationInsights.addTelemetryInitializer((env) => {\r\n if (env?.baseType === 'ExceptionData') {\r\n const isNetworkException =\r\n env?.baseData?.exceptions.find(\r\n (e: { typeName?: string; message?: string }) =>\r\n e.typeName === 'Error' && e.message != null && e.message.includes('Network error'),\r\n ) != null;\r\n if (isNetworkException) {\r\n /*\r\n We can't add very much helpful information to network exceptions, so we don't send\r\n exception telemetry to application insights to reduce noise. Failed network requests\r\n are observed in application insights via dependency tracking, where we have the ability\r\n to add more helpful information about the request and errors.\r\n */\r\n return false;\r\n }\r\n }\r\n });\r\n\r\n // Don't automatically track GraphQL dependencies (we do that manually)\r\n applicationInsights.addTelemetryInitializer((env) => {\r\n if (env?.baseType === 'RemoteDependencyData' && env?.baseData?.target != null) {\r\n const target = env.baseData.target;\r\n const graphQLUri = graphqlUri;\r\n const isGraphQLRequest = graphQLUri.includes(target);\r\n const properties: { [name: string]: string | undefined } | undefined =\r\n env.baseData.properties;\r\n if (isGraphQLRequest) {\r\n const trackGraphQLRequest = properties != null && properties.__trackMe === 'true';\r\n if (!trackGraphQLRequest) {\r\n // We ignore the default dependency tracking, instead only honoring calls to\r\n // track dependencies that we've explicitly tracked via\r\n // app-insights-dependeny-tracking.apollo-link.ts\r\n return false;\r\n }\r\n\r\n delete env.baseData.properties.__trackMe;\r\n env.baseData.type = 'graphql';\r\n let operationNameSet = false;\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n const { gqlOperationType, gqlOperationName, variables } = properties!;\r\n env.baseData.data = variables;\r\n if (gqlOperationType != null && gqlOperationName != null) {\r\n const operationName = gqlOperationType + ' ' + gqlOperationName;\r\n if (env.tags != null) {\r\n env.tags['ai.operation.name'] = operationName;\r\n }\r\n env.baseData.name = operationName;\r\n operationNameSet = true;\r\n }\r\n const operationId = env.baseData.id;\r\n if (env.tags != null) {\r\n env.tags['ai.operation.id'] = operationId;\r\n }\r\n if (!operationNameSet) {\r\n let operationName: string | undefined = env.baseData.data;\r\n if (typeof operationId === 'string') {\r\n operationName = operationId.split('-')[0];\r\n }\r\n if (env.tags != null) {\r\n env.tags['ai.operation.name'] = operationName;\r\n }\r\n env.baseData.name = operationName;\r\n }\r\n } else {\r\n let operationName = 'website-unknown';\r\n if (target.includes('pndsn.com') === true) {\r\n env.baseData.type = 'PubNub';\r\n // pubnub\r\n if (target.includes('heartbeat') === true) {\r\n operationName = 'pubnub-heartbeat';\r\n } else {\r\n operationName = 'pubnub';\r\n }\r\n const resultCode = Number(env.baseData.responseCode);\r\n if (resultCode === 0) {\r\n // Don't log PubNub dependencies with a result code of 0.\r\n // PubNub cancels requests as part of the unsubscribe process, resulting in 0 resultCode\r\n // Logging these events as failed depenencies just adds noise to the logs\r\n return false;\r\n }\r\n }\r\n\r\n const opId = operationName + '-' + uuid();\r\n if (env.tags != null) {\r\n env.tags['ai.operation.id'] = opId;\r\n env.tags['ai.operation.name'] = operationName;\r\n }\r\n }\r\n }\r\n });\r\n\r\n applicationInsights.addTelemetryInitializer((env) => {\r\n if (\r\n env?.baseType === 'ExceptionData' &&\r\n env.baseData?.exceptions[0]?.message.includes('command failed:') === true\r\n ) {\r\n // This will be tracked via dependencies. Suppressing exceptions to reduce noise.\r\n return false;\r\n }\r\n });\r\n\r\n // Set cloud_roleName\r\n applicationInsights.addTelemetryInitializer((env) => {\r\n if (env.tags != null) {\r\n env.tags['ai.device.roleName'] = 'website';\r\n }\r\n });\r\n\r\n // Always include current href\r\n applicationInsights.addTelemetryInitializer((env) => {\r\n patchTelemetryProps(env, { href: window.location.href });\r\n });\r\n\r\n applicationInsights.addTelemetryInitializer((env) => {\r\n const operationId = env?.baseData?.operationId;\r\n if (operationId != null && env.tags != null) {\r\n env.tags['ai.operation.id'] = operationId;\r\n }\r\n });\r\n\r\n applicationInsights.addTelemetryInitializer((env) => {\r\n const operationId: string | null = env?.baseData?.properties?.operationId;\r\n if (operationId != null) {\r\n delete env?.baseData?.properties.operationId;\r\n if (env.tags != null) {\r\n env.tags['ai.operation.id'] = operationId;\r\n }\r\n }\r\n });\r\n}\r\n@Injectable({ providedIn: 'root' })\r\nexport class AppInsightsService {\r\n public appInsights: ApplicationInsights | undefined;\r\n private _initialized$ = new BehaviorSubject(false);\r\n constructor(private _config: TcsConfigurationService) {}\r\n\r\n get intialized$(): Observable {\r\n return this._initialized$.asObservable().pipe(filter((init) => init));\r\n }\r\n\r\n public init() {\r\n if (this._initialized$.getValue()) {\r\n return;\r\n }\r\n this.appInsights = bootstrapApplicationInsights(this._config.value);\r\n if (this.appInsights != null) {\r\n initializeTelemetry(this.appInsights, this._config.value.tcs.graphqlUri);\r\n }\r\n this._initialized$.next(true);\r\n }\r\n}\r\n","/* eslint-disable n/handle-callback-err */\n\nimport { warn } from '../common/util/console';\nimport { SR_EVENT_EMITTER_TYPES } from '../features/session_replay/constants';\nimport { generateRandomHexString } from '../common/ids/unique-id';\nimport { ee } from '../common/event-emitter/contextual-ee';\n\n/**\n * @typedef {import('./api/interaction-types').InteractionInstance} InteractionInstance\n */\n\nexport class AgentBase {\n agentIdentifier;\n constructor() {\n let agentIdentifier = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : generateRandomHexString(16);\n this.agentIdentifier = agentIdentifier;\n\n // Assign the observation context to the event emitter, so it knows how to create observation contexts\n this.ee = ee.get(agentIdentifier);\n }\n\n /**\n * Tries to execute the api and generates a generic warning message with the api name injected if unsuccessful\n * @param {string} methodName\n * @param {...any} args\n */\n #callMethod(methodName) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n if (typeof this.api?.[methodName] !== 'function') warn(\"Call to agent api \".concat(methodName, \" failed. The API is not currently initialized.\"));else return this.api[methodName](...args);\n }\n\n /**\n * Reports a browser PageAction event along with a name and optional attributes.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/addpageaction/}\n * @param {string} name Name or category of the action. Reported as the actionName attribute.\n * @param {object} [attributes] JSON object with one or more key/value pairs. For example: {key:\"value\"}. The key is reported as its own PageAction attribute with the specified values.\n */\n addPageAction(name, attributes) {\n return this.#callMethod('addPageAction', name, attributes);\n }\n\n /**\n * Groups page views to help URL structure or to capture the URL's routing information.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setpageviewname/}\n * @param {string} name The page name you want to use. Use alphanumeric characters.\n * @param {string} [host] Default is http://custom.transaction. Typically set host to your site's domain URI.\n */\n setPageViewName(name, host) {\n return this.#callMethod('setPageViewName', name, host);\n }\n\n /**\n * Adds a user-defined attribute name and value to subsequent events on the page.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setcustomattribute/}\n * @param {string} name Name of the attribute. Appears as column in the PageView event. It will also appear as a column in the PageAction event if you are using it.\n * @param {string|number|boolean|null} value Value of the attribute. Appears as the value in the named attribute column in the PageView event. It will appear as a column in the PageAction event if you are using it. Custom attribute values cannot be complex objects, only simple types such as Strings, Integers and Booleans. Passing a null value unsets any existing attribute of the same name.\n * @param {boolean} [persist] Default false. If set to true, the name-value pair will also be set into the browser's storage API. Then on the following instrumented pages that load within the same session, the pair will be re-applied as a custom attribute.\n */\n setCustomAttribute(name, value, persist) {\n return this.#callMethod('setCustomAttribute', name, value, persist);\n }\n\n /**\n * Identifies a browser error without disrupting your app's operations.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/noticeerror/}\n * @param {Error|string} error Provide a meaningful error message that you can use when analyzing data on browser's JavaScript errors page.\n * @param {object} [customAttributes] An object containing name/value pairs representing custom attributes.\n */\n noticeError(error, customAttributes) {\n return this.#callMethod('noticeError', error, customAttributes);\n }\n\n /**\n * Adds a user-defined identifier string to subsequent events on the page.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setuserid/}\n * @param {string|null} value A string identifier for the end-user, useful for tying all browser events to specific users. The value parameter does not have to be unique. If IDs should be unique, the caller is responsible for that validation. Passing a null value unsets any existing user ID.\n */\n setUserId(value) {\n return this.#callMethod('setUserId', value);\n }\n\n /**\n * Adds a user-defined application version string to subsequent events on the page.\n * This decorates all payloads with an attribute of `application.version` which is queryable in NR1.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setapplicationversion/}\n * @param {string|null} value A string identifier for the application version, useful for\n * tying all browser events to a specific release tag. The value parameter does not\n * have to be unique. Passing a null value unsets any existing value.\n */\n setApplicationVersion(value) {\n return this.#callMethod('setApplicationVersion', value);\n }\n\n /**\n * Allows selective ignoring and grouping of known errors that the browser agent captures.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/seterrorhandler/}\n * @param {(error: Error|string) => boolean | { group: string }} callback When an error occurs, the callback is called with the error object as a parameter. The callback will be called with each error, so it is not specific to one error.\n */\n setErrorHandler(callback) {\n return this.#callMethod('setErrorHandler', callback);\n }\n\n /**\n * Records an additional time point as \"finished\" in a session trace and adds a page action.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/finished/}\n * @param {number} [timeStamp] Defaults to the current time of the call. If used, this marks the time that the page is \"finished\" according to your own criteria.\n */\n finished(timeStamp) {\n return this.#callMethod('finished', timeStamp);\n }\n\n /**\n * Adds a unique name and ID to identify releases with multiple JavaScript bundles on the same page.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/addrelease/}\n * @param {string} name A short description of the component; for example, the name of a project, application, file, or library.\n * @param {string} id The ID or version of this release; for example, a version number, build number from your CI environment, GitHub SHA, GUID, or a hash of the contents.\n */\n addRelease(name, id) {\n return this.#callMethod('addRelease', name, id);\n }\n\n /**\n * Starts a set of agent features if not running in \"autoStart\" mode\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/start/}\n * @param {string|string[]} [featureNames] The name(s) of the features to start. If no name(s) are passed, all features will be started\n */\n start(featureNames) {\n return this.#callMethod('start', featureNames);\n }\n\n /**\n * Forces a replay to record. If a replay is already actively recording, this call will be ignored.\n * If a recording has not been started, a new one will be created. If a recording has been started, but is currently not recording, it will resume recording.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/recordReplay/}\n */\n recordReplay() {\n return this.#callMethod(SR_EVENT_EMITTER_TYPES.RECORD);\n }\n\n /**\n * Forces an active replay to pause recording. If a replay is already actively recording, this call will cause the recording to pause.\n * If a recording is not currently recording, this call will be ignored. This API will pause both manual and automatic replays that are in progress.\n * The only way to resume recording after manually pausing a replay is to manually record again using the recordReplay() API.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/pauseReplay/}\n */\n pauseReplay() {\n return this.#callMethod(SR_EVENT_EMITTER_TYPES.PAUSE);\n }\n\n /**\n * Adds a JavaScript object with a custom name, start time, etc. to an in-progress session trace.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/addtotrace/}\n * @param {{name: string, start: number, end?: number, origin?: string, type?: string}} customAttributes Supply a JavaScript object with these required and optional name/value pairs:\n *\n * - Required name/value pairs: name, start\n * - Optional name/value pairs: end, origin, type\n * - Note: Does not apply to MicroAgent\n *\n * If you are sending the same event object to New Relic as a PageAction, omit the TYPE attribute. (type is a string to describe what type of event you are marking inside of a session trace.) If included, it will override the event type and cause the PageAction event to be sent incorrectly. Instead, use the name attribute for event information.\n */\n addToTrace(customAttributes) {\n return this.#callMethod('addToTrace', customAttributes);\n }\n\n /**\n * Gives SPA routes more accurate names than default names. Monitors specific routes rather than by default grouping.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setcurrentroutename/}\n * @param {string} name Current route name for the page.\n * - Note: Does not apply to MicroAgent\n */\n setCurrentRouteName(name) {\n return this.#callMethod('setCurrentRouteName', name);\n }\n\n /**\n * Returns a new API object that is bound to the current SPA interaction.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/interaction/}\n * @returns {InteractionInstance} An API object that is bound to a specific BrowserInteraction event. Each time this method is called for the same BrowserInteraction, a new object is created, but it still references the same interaction.\n * - Note: Does not apply to MicroAgent\n */\n interaction() {\n return this.#callMethod('interaction');\n }\n\n /**\n * Capture a single log.\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/loginfo/}\n * @param {string} message String to be captured as log message\n * @param {{customAttributes?: object, level?: 'ERROR'|'TRACE'|'DEBUG'|'INFO'|'WARN'}} [options] customAttributes defaults to `{}` if not assigned, level defaults to `info` if not assigned.\n */\n log(message, options) {\n return this.#callMethod('logInfo', message, options);\n }\n\n /**\n * Wrap a logger function to capture a log each time the function is invoked with the message and arguments passed\n * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/wraplogger/}\n * @param {object} parent The parent object containing the logger method\n * @param {string} functionName The property name of the function in the parent object to be wrapped\n * @param {{customAttributes?: object, level?: 'ERROR'|'TRACE'|'DEBUG'|'INFO'|'WARN'}} [options] customAttributes defaults to `{}` if not assigned, level defaults to `info` if not assigned.\n */\n wrapLogger(parent, functionName, options) {\n return this.#callMethod('wrapLogger', parent, functionName, options);\n }\n}","import { FEATURE_NAMES } from './features';\nimport { getConfigurationValue } from '../../common/config/config';\nconst featureNames = Object.values(FEATURE_NAMES);\nfunction isEnabled(name, agentIdentifier) {\n return getConfigurationValue(agentIdentifier, \"\".concat(name, \".enabled\")) === true;\n}\nexport function getEnabledFeatures(agentIdentifier) {\n const enabledFeatures = {};\n featureNames.forEach(featureName => {\n enabledFeatures[featureName] = isEnabled(featureName, agentIdentifier);\n });\n return enabledFeatures;\n}","import { FEATURE_NAMES } from './features';\nexport function getFeatureDependencyNames(feature) {\n switch (feature) {\n case FEATURE_NAMES.ajax:\n return [FEATURE_NAMES.jserrors];\n case FEATURE_NAMES.sessionTrace:\n return [FEATURE_NAMES.ajax, FEATURE_NAMES.pageViewEvent];\n case FEATURE_NAMES.sessionReplay:\n return [FEATURE_NAMES.sessionTrace];\n case FEATURE_NAMES.pageViewTiming:\n return [FEATURE_NAMES.pageViewEvent];\n // this could change if we disconnect window load timings\n default:\n return [];\n }\n}","/**\n * @file Defines `InstrumentBase` to be used as the super of the Instrument classes implemented by each feature.\n * Inherits and executes the `checkConfiguration` method from [FeatureBase]{@link ./feature-base}, which also\n * exposes the `blocked` property.\n */\n\nimport { drain, registerDrain } from '../../common/drain/drain';\nimport { FeatureBase } from './feature-base';\nimport { onWindowLoad } from '../../common/window/load';\nimport { isBrowserScope } from '../../common/constants/runtime';\nimport { warn } from '../../common/util/console';\nimport { FEATURE_NAMES } from '../../loaders/features/features';\nimport { getConfigurationValue } from '../../common/config/config';\nimport { hasReplayPrerequisite } from '../session_replay/shared/utils';\nimport { canEnableSessionTracking } from './feature-gates';\nimport { single } from '../../common/util/invoke';\n\n/**\n * Base class for instrumenting a feature.\n * @extends FeatureBase\n */\nexport class InstrumentBase extends FeatureBase {\n /**\n * Instantiate InstrumentBase.\n * @param {string} agentIdentifier - The unique ID of the instantiated agent (relative to global scope).\n * @param {import('../../common/aggregate/aggregator').Aggregator} aggregator - The shared Aggregator that will handle batching and reporting of data.\n * @param {string} featureName - The name of the feature module (used to construct file path).\n * @param {boolean} [auto=true] - Determines whether the feature should automatically register to have the draining\n * of its pooled instrumentation data handled by the agent's centralized drain functionality, rather than draining\n * immediately. Primarily useful for fine-grained control in tests.\n */\n constructor(agentIdentifier, aggregator, featureName) {\n let auto = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n super(agentIdentifier, aggregator, featureName);\n this.auto = auto;\n\n /** @type {Function | undefined} This should be set by any derived Instrument class if it has things to do when feature fails or is killed. */\n this.abortHandler = undefined;\n\n /**\n * @type {import('./aggregate-base').AggregateBase} Holds the reference to the feature's aggregate module counterpart, if and after it has been initialized. This may not be assigned until after page loads!\n * The only purpose of this for now is to expose it to the NREUM interface, as the feature's instrument instance is already exposed.\n */\n this.featAggregate = undefined;\n\n /**\n * @type {Promise} Assigned immediately after @see importAggregator runs. Serves as a signal for when the inner async fn finishes execution. Useful for features to await\n * one another if there are inter-features dependencies.\n */\n this.onAggregateImported = undefined;\n\n /** used in conjunction with newrelic.start() to defer harvesting in features */\n if (getConfigurationValue(this.agentIdentifier, \"\".concat(this.featureName, \".autoStart\")) === false) this.auto = false;\n /** if the feature requires opt-in (!auto-start), it will get registered once the api has been called */\n if (this.auto) registerDrain(agentIdentifier, featureName);else {\n this.ee.on('manual-start-all', single(() => {\n // register the feature to drain only once the API has been called, it will drain when importAggregator finishes for all the features\n // called by the api in that cycle\n registerDrain(this.agentIdentifier, this.featureName);\n this.auto = true;\n this.importAggregator();\n }));\n }\n }\n\n /**\n * Lazy-load the latter part of the feature: its aggregator. This method is called by the first part of the feature\n * (the instrumentation) when instrumentation is complete.\n * @param {Object} [argsObjFromInstrument] - any values or references to pass down to aggregate\n * @returns void\n */\n importAggregator() {\n let argsObjFromInstrument = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (this.featAggregate || !this.auto) return;\n let loadedSuccessfully;\n this.onAggregateImported = new Promise(resolve => {\n loadedSuccessfully = resolve;\n });\n const importLater = async () => {\n let session;\n try {\n if (canEnableSessionTracking(this.agentIdentifier)) {\n // would require some setup before certain features start\n const {\n setupAgentSession\n } = await import(/* webpackChunkName: \"session-manager\" */'./agent-session');\n session = setupAgentSession(this.agentIdentifier);\n }\n } catch (e) {\n warn('A problem occurred when starting up session manager. This page will not start or extend any session.', e);\n this.ee.emit('internal-error', [e]);\n if (this.featureName === FEATURE_NAMES.sessionReplay) this.abortHandler?.(); // SR should stop recording if session DNE\n }\n\n /**\n * Note this try-catch differs from the one in Agent.run() in that it's placed later in a page's lifecycle and\n * it's only responsible for aborting its one specific feature, rather than all.\n */\n try {\n if (!this.#shouldImportAgg(this.featureName, session)) {\n drain(this.agentIdentifier, this.featureName);\n loadedSuccessfully(false); // aggregate module isn't loaded at all\n return;\n }\n const {\n lazyFeatureLoader\n } = await import(/* webpackChunkName: \"lazy-feature-loader\" */'./lazy-feature-loader');\n const {\n Aggregate\n } = await lazyFeatureLoader(this.featureName, 'aggregate');\n this.featAggregate = new Aggregate(this.agentIdentifier, this.aggregator, argsObjFromInstrument);\n loadedSuccessfully(true);\n } catch (e) {\n warn(\"Downloading and initializing \".concat(this.featureName, \" failed...\"), e);\n this.abortHandler?.(); // undo any important alterations made to the page\n // not supported yet but nice to do: \"abort\" this agent's EE for this feature specifically\n drain(this.agentIdentifier, this.featureName, true);\n loadedSuccessfully(false);\n if (this.ee) this.ee.abort();\n }\n };\n\n // For regular web pages, we want to wait and lazy-load the aggregator only after all page resources are loaded.\n // Non-browser scopes (i.e. workers) have no `window.load` event, so the aggregator can be lazy-loaded immediately.\n if (!isBrowserScope) importLater();else onWindowLoad(() => importLater(), true);\n }\n\n /**\n * Make a determination if an aggregate class should even be imported\n * @param {string} featureName\n * @param {import('../../common/session/session-entity').SessionEntity} session\n * @returns\n */\n #shouldImportAgg(featureName, session) {\n switch (featureName) {\n case FEATURE_NAMES.sessionReplay:\n // the session manager must be initialized successfully for Replay & Trace features\n return hasReplayPrerequisite(this.agentIdentifier) && !!session;\n case FEATURE_NAMES.sessionTrace:\n return !!session;\n default:\n return true;\n }\n }\n}","import { InstrumentBase } from '../../utils/instrument-base';\nimport * as CONSTANTS from '../constants';\nexport class Instrument extends InstrumentBase {\n static featureName = CONSTANTS.FEATURE_NAME;\n constructor(agentIdentifier, aggregator) {\n let auto = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n super(agentIdentifier, aggregator, CONSTANTS.FEATURE_NAME, auto);\n this.importAggregator();\n }\n}","/*\n * Copyright 2020 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { SharedContext } from '../context/shared-context';\nimport { mapOwn } from '../util/map-own';\nexport class Aggregator extends SharedContext {\n constructor(parent) {\n super(parent);\n this.aggregatedData = {};\n }\n\n // Items with the same type and name get aggregated together\n // params are example data from the aggregated items\n // metrics are the numeric values to be aggregated\n\n store(type, name, params, newMetrics, customParams) {\n var bucket = this.getBucket(type, name, params, customParams);\n bucket.metrics = aggregateMetrics(newMetrics, bucket.metrics);\n return bucket;\n }\n merge(type, name, metrics, params, customParams) {\n var bucket = this.getBucket(type, name, params, customParams);\n if (!bucket.metrics) {\n bucket.metrics = metrics;\n return;\n }\n var oldMetrics = bucket.metrics;\n oldMetrics.count += metrics.count;\n\n // iterate through each new metric and merge\n mapOwn(metrics, function (key, value) {\n // count is a special case handled above\n if (key === 'count') return;\n var oldMetric = oldMetrics[key];\n var newMetric = metrics[key];\n\n // handling the case where newMetric is a single-value first\n if (newMetric && !newMetric.c) {\n oldMetrics[key] = updateMetric(newMetric.t, oldMetric);\n } else {\n // newMetric is a metric object\n oldMetrics[key] = mergeMetric(newMetric, oldMetrics[key]);\n }\n });\n }\n storeMetric(type, name, params, value) {\n var bucket = this.getBucket(type, name, params);\n bucket.stats = updateMetric(value, bucket.stats);\n return bucket;\n }\n getBucket(type, name, params, customParams) {\n if (!this.aggregatedData[type]) this.aggregatedData[type] = {};\n var bucket = this.aggregatedData[type][name];\n if (!bucket) {\n bucket = this.aggregatedData[type][name] = {\n params: params || {}\n };\n if (customParams) {\n bucket.custom = customParams;\n }\n }\n return bucket;\n }\n get(type, name) {\n // if name is passed, get a single bucket\n if (name) return this.aggregatedData[type] && this.aggregatedData[type][name];\n // else, get all buckets of that type\n return this.aggregatedData[type];\n }\n\n // Like get, but for many types and it deletes the retrieved content from the aggregatedData\n take(types) {\n var results = {};\n var type = '';\n var hasData = false;\n for (var i = 0; i < types.length; i++) {\n type = types[i];\n results[type] = Object.values(this.aggregatedData[type] || {});\n if (results[type].length) hasData = true;\n delete this.aggregatedData[type];\n }\n return hasData ? results : null;\n }\n}\nfunction aggregateMetrics(newMetrics, oldMetrics) {\n if (!oldMetrics) oldMetrics = {\n count: 0\n };\n oldMetrics.count += 1;\n mapOwn(newMetrics, function (key, value) {\n oldMetrics[key] = updateMetric(value, oldMetrics[key]);\n });\n return oldMetrics;\n}\nfunction updateMetric(value, metric) {\n // when there is no value, then send only count\n if (value == null) {\n return updateCounterMetric(metric);\n }\n\n // When there is only one data point, the c (count), min, max, and sos (sum of squares) params are superfluous.\n if (!metric) return {\n t: value\n };\n\n // but on the second data point, we need to calculate the other values before aggregating in new values\n if (!metric.c) {\n metric = createMetricObject(metric.t);\n }\n\n // at this point, metric is always uncondensed\n metric.c += 1;\n metric.t += value;\n metric.sos += value * value;\n if (value > metric.max) metric.max = value;\n if (value < metric.min) metric.min = value;\n return metric;\n}\nfunction updateCounterMetric(metric) {\n if (!metric) {\n metric = {\n c: 1\n };\n } else {\n metric.c++;\n }\n return metric;\n}\nfunction mergeMetric(newMetric, oldMetric) {\n if (!oldMetric) return newMetric;\n if (!oldMetric.c) {\n // oldMetric is a single-value\n oldMetric = createMetricObject(oldMetric.t);\n }\n oldMetric.min = Math.min(newMetric.min, oldMetric.min);\n oldMetric.max = Math.max(newMetric.max, oldMetric.max);\n oldMetric.t += newMetric.t;\n oldMetric.sos += newMetric.sos;\n oldMetric.c += newMetric.c;\n return oldMetric;\n}\n\n// take a value and create a metric object\nfunction createMetricObject(value) {\n return {\n t: value,\n min: value,\n max: value,\n sos: value * value,\n c: 1\n };\n}","// important side effects\nimport './configure/public-path';\nimport './configure/nonce';\n// loader files\nimport { AgentBase } from './agent-base';\nimport { getEnabledFeatures } from './features/enabled-features';\nimport { configure } from './configure/configure';\nimport { getFeatureDependencyNames } from './features/featureDependencies';\nimport { featurePriority, FEATURE_NAMES } from './features/features';\n// required features\nimport { Instrument as PageViewEvent } from '../features/page_view_event/instrument';\n// common files\nimport { Aggregator } from '../common/aggregate/aggregator';\nimport { gosNREUM, setNREUMInitializedAgent } from '../common/window/nreum';\nimport { warn } from '../common/util/console';\nimport { stringify } from '../common/util/stringify';\nimport { globalScope } from '../common/constants/runtime';\n\n/**\n * A flexible class that may be used to compose an agent from a select subset of feature modules. In applications\n * sensitive to network load, this may result in smaller builds with slightly lower performance impact.\n */\nexport class Agent extends AgentBase {\n /**\n * @param {Object} options Options to initialize agent with\n * @param {string} [agentIdentifier] Optional identifier of agent\n */\n constructor(options, agentIdentifier) {\n super(agentIdentifier);\n if (!globalScope) {\n // We could not determine the runtime environment. Short-circuite the agent here\n // to avoid possible exceptions later that may cause issues with customer's application.\n warn('Failed to initialize the agent. Could not determine the runtime environment.');\n return;\n }\n this.sharedAggregator = new Aggregator({\n agentIdentifier: this.agentIdentifier\n });\n this.features = {};\n setNREUMInitializedAgent(this.agentIdentifier, this); // append this agent onto the global NREUM.initializedAgents\n\n this.desiredFeatures = new Set(options.features || []); // expected to be a list of static Instrument/InstrumentBase classes, see \"spa.js\" for example\n // For Now... ALL agents must make the rum call whether the page_view_event feature was enabled or not.\n // NR1 creates an index on the rum call, and if not seen for a few days, will remove the browser app!\n // Future work is being planned to evaluate removing this behavior from the backend, but for now we must ensure this call is made\n this.desiredFeatures.add(PageViewEvent);\n this.runSoftNavOverSpa = [...this.desiredFeatures].some(instr => instr.featureName === FEATURE_NAMES.softNav);\n configure(this, options, options.loaderType || 'agent'); // add api, exposed, and other config properties\n\n this.run();\n }\n get config() {\n return {\n info: this.info,\n init: this.init,\n loader_config: this.loader_config,\n runtime: this.runtime\n };\n }\n run() {\n // Attempt to initialize all the requested features (sequentially in prio order & synchronously), with any failure aborting the whole process.\n try {\n const enabledFeatures = getEnabledFeatures(this.agentIdentifier);\n const featuresToStart = [...this.desiredFeatures];\n featuresToStart.sort((a, b) => featurePriority[a.featureName] - featurePriority[b.featureName]);\n featuresToStart.forEach(InstrumentCtor => {\n if (!enabledFeatures[InstrumentCtor.featureName] && InstrumentCtor.featureName !== FEATURE_NAMES.pageViewEvent) return; // PVE is required to run even if it's marked disabled\n if (this.runSoftNavOverSpa && InstrumentCtor.featureName === FEATURE_NAMES.spa) return;\n if (!this.runSoftNavOverSpa && InstrumentCtor.featureName === FEATURE_NAMES.softNav) return;\n const dependencies = getFeatureDependencyNames(InstrumentCtor.featureName);\n const hasAllDeps = dependencies.every(featName => featName in this.features); // any other feature(s) this depends on should've been initialized on prior iterations by priority order\n if (!hasAllDeps) warn(\"\".concat(InstrumentCtor.featureName, \" is enabled but one or more dependent features has not been initialized (\").concat(stringify(dependencies), \"). This may cause unintended consequences or missing data...\"));\n this.features[InstrumentCtor.featureName] = new InstrumentCtor(this.agentIdentifier, this.sharedAggregator);\n });\n } catch (err) {\n warn('Failed to initialize all enabled instrument classes (agent aborted) -', err);\n for (const featName in this.features) {\n // this.features hold only features that have been instantiated\n this.features[featName].abortHandler?.();\n }\n const newrelic = gosNREUM();\n delete newrelic.initializedAgents[this.agentIdentifier]?.api; // prevent further calls to agent-specific APIs (see \"configure.js\")\n delete newrelic.initializedAgents[this.agentIdentifier]?.features; // GC mem used internally by features\n delete this.sharedAggregator;\n // Keep the initialized agent object with its configs for troubleshooting purposes.\n const thisEE = newrelic.ee.get(this.agentIdentifier);\n thisEE.abort(); // set flag and clear backlog\n return false;\n }\n }\n}","/*\n * Copyright 2020 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { handle } from '../../../common/event-emitter/handle';\nimport { subscribeToVisibilityChange } from '../../../common/window/page-visibility';\nimport { windowAddEventListener } from '../../../common/event-listener/event-listener-opts';\nimport { InstrumentBase } from '../../utils/instrument-base';\nimport { FEATURE_NAME } from '../constants';\nimport { isBrowserScope } from '../../../common/constants/runtime';\nimport { now } from '../../../common/timing/now';\nexport let Instrument = /*#__PURE__*/(() => {\n class Instrument extends InstrumentBase {\n static featureName = FEATURE_NAME;\n constructor(agentIdentifier, aggregator) {\n let auto = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n super(agentIdentifier, aggregator, FEATURE_NAME, auto);\n if (!isBrowserScope) return; // CWV is irrelevant outside web context\n\n // While we try to replicate web-vital's visibilitywatcher logic in an effort to defer that library to post-pageload, this isn't perfect and doesn't consider prerendering.\n subscribeToVisibilityChange(() => handle('docHidden', [now()], undefined, FEATURE_NAME, this.ee), true);\n\n // Window fires its pagehide event (typically on navigation--this occurrence is a *subset* of vis change); don't defer this unless it's guarantee it cannot happen before load(?)\n windowAddEventListener('pagehide', () => handle('winPagehide', [now()], undefined, FEATURE_NAME, this.ee));\n this.importAggregator();\n }\n }\n return Instrument;\n})();","import { InstrumentBase } from '../../utils/instrument-base';\nimport { FEATURE_NAME } from '../constants';\nexport let Instrument = /*#__PURE__*/(() => {\n class Instrument extends InstrumentBase {\n static featureName = FEATURE_NAME;\n constructor(agentIdentifier, aggregator) {\n let auto = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n super(agentIdentifier, aggregator, FEATURE_NAME, auto);\n this.importAggregator();\n }\n }\n return Instrument;\n})();","import { stringify } from '../../../common/util/stringify';\n\n/**\n * Represents an uncaught non Error type error. This class does\n * not extend the Error class to prevent an invalid stack trace\n * from being created. Use this class to cast thrown errors that\n * do not use the Error class (strings, etc) to an object.\n */\nexport class UncaughtError {\n constructor(message, filename, lineno, colno, newrelic) {\n this.name = 'UncaughtError';\n this.message = typeof message === 'string' ? message : stringify(message);\n this.sourceURL = filename;\n this.line = lineno;\n this.column = colno;\n this.__newrelic = newrelic;\n }\n}","import { UncaughtError } from './uncaught-error';\n\n/**\n * Any value can be used with the `throw` keyword. This function ensures that the value is\n * either a proper Error instance or attempts to convert it to an UncaughtError instance.\n * @param {any} error The value thrown\n * @returns {Error|UncaughtError} The converted error instance\n */\nexport function castError(error) {\n /** Sometimes a browser can emit an error object with no stack */\n if (canTrustError(error)) {\n return error;\n }\n\n /**\n * The thrown value may contain a message property. If it does, try to treat the thrown\n * value as an Error-like object.\n */\n return new UncaughtError(error?.message !== undefined ? error.message : error, error?.filename || error?.sourceURL, error?.lineno || error?.line, error?.colno || error?.col, error?.__newrelic);\n}\n\n/**\n * Attempts to convert a PromiseRejectionEvent object to an Error object\n * @param {PromiseRejectionEvent} unhandledRejectionEvent The unhandled promise rejection event\n * @returns {Error} An Error object with the message as the casted reason\n */\nexport function castPromiseRejectionEvent(promiseRejectionEvent) {\n let prefix = 'Unhandled Promise Rejection';\n if (canTrustError(promiseRejectionEvent?.reason)) {\n try {\n promiseRejectionEvent.reason.message = prefix + ': ' + promiseRejectionEvent.reason.message;\n return castError(promiseRejectionEvent.reason);\n } catch (e) {\n return castError(promiseRejectionEvent.reason);\n }\n }\n if (typeof promiseRejectionEvent.reason === 'undefined') return castError(prefix);\n const error = castError(promiseRejectionEvent.reason);\n error.message = prefix + ': ' + error?.message;\n return error;\n}\n\n/**\n * Attempts to convert an ErrorEvent object to an Error object\n * @param {ErrorEvent} errorEvent The error event\n * @returns {Error|UncaughtError} The error event converted to an Error object\n */\nexport function castErrorEvent(errorEvent) {\n if (errorEvent.error instanceof SyntaxError && !/:\\d+$/.test(errorEvent.error.stack?.trim())) {\n const error = new UncaughtError(errorEvent.message, errorEvent.filename, errorEvent.lineno, errorEvent.colno, errorEvent.error.__newrelic);\n error.name = SyntaxError.name;\n return error;\n }\n if (canTrustError(errorEvent.error)) return errorEvent.error;\n return castError(errorEvent);\n}\nfunction canTrustError(error) {\n return error instanceof Error && !!error.stack;\n}","/*\n * Copyright 2020 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { handle } from '../../../common/event-emitter/handle';\nimport { InstrumentBase } from '../../utils/instrument-base';\nimport { FEATURE_NAME } from '../constants';\nimport { globalScope } from '../../../common/constants/runtime';\nimport { eventListenerOpts } from '../../../common/event-listener/event-listener-opts';\nimport { now } from '../../../common/timing/now';\nimport { SR_EVENT_EMITTER_TYPES } from '../../session_replay/constants';\nimport { castError, castErrorEvent, castPromiseRejectionEvent } from '../shared/cast-error';\nexport let Instrument = /*#__PURE__*/(() => {\n class Instrument extends InstrumentBase {\n static featureName = FEATURE_NAME;\n #replayRunning = false;\n constructor(agentIdentifier, aggregator) {\n let auto = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n super(agentIdentifier, aggregator, FEATURE_NAME, auto);\n try {\n // this try-catch can be removed when IE11 is completely unsupported & gone\n this.removeOnAbort = new AbortController();\n } catch (e) {}\n this.ee.on('internal-error', error => {\n if (!this.abortHandler) return;\n handle('ierr', [castError(error), now(), true, {}, this.#replayRunning], undefined, this.featureName, this.ee);\n });\n this.ee.on(SR_EVENT_EMITTER_TYPES.REPLAY_RUNNING, isRunning => {\n this.#replayRunning = isRunning;\n });\n globalScope.addEventListener('unhandledrejection', promiseRejectionEvent => {\n if (!this.abortHandler) return;\n handle('err', [castPromiseRejectionEvent(promiseRejectionEvent), now(), false, {\n unhandledPromiseRejection: 1\n }, this.#replayRunning], undefined, this.featureName, this.ee);\n }, eventListenerOpts(false, this.removeOnAbort?.signal));\n globalScope.addEventListener('error', errorEvent => {\n if (!this.abortHandler) return;\n handle('err', [castErrorEvent(errorEvent), now(), false, {}, this.#replayRunning], undefined, this.featureName, this.ee);\n }, eventListenerOpts(false, this.removeOnAbort?.signal));\n this.abortHandler = this.#abort; // we also use this as a flag to denote that the feature is active or on and handling errors\n this.importAggregator();\n }\n\n /** Restoration and resource release tasks to be done if JS error loader is being aborted. Unwind changes to globals. */\n #abort() {\n this.removeOnAbort?.abort();\n this.abortHandler = undefined; // weakly allow this abort op to run only once\n }\n }\n return Instrument;\n})();","/*\n * Copyright 2020 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getOrSet } from '../util/get-or-set';\nimport { globalScope } from '../constants/runtime';\n\n// Start assigning ids at 1 so 0 can always be used for Window or WorkerGlobalScope, without\n// actually setting it (which would create a global variable).\nlet index = 1;\nconst prop = 'nr@id';\n\n/**\n * Tags a specified object with an identifier if it does not already\n * have one. If the object is the global scope, zero will be returned\n * and the object will not be modified. If the object already contains\n * an identifier, it will be returned without modification. If the passed\n * value is not an object, function, or array, -1 will be returned without\n * modifying the passed value.\n * @param {object|function|array} obj Object to be tagged with an identifier\n * @returns {number} Identifier of the given object\n */\nexport function id(obj) {\n const type = typeof obj;\n // We can only tag objects, functions, and arrays with ids.\n // For all primitive values we instead return -1.\n if (!obj || !(type === 'object' || type === 'function')) return -1;\n if (obj === globalScope) return 0;\n return getOrSet(obj, prop, function () {\n return index++;\n });\n}","/*\n * Copyright 2020 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { stringify } from './stringify';\n\n/**\n * Returns the size of the provided data. Designed for measuring XHR responses.\n *\n * @param {*} data - The data to be measured.\n * @returns {(number|undefined)} - The size of the data or undefined if size cannot be determined.\n */\nexport function dataSize(data) {\n if (typeof data === 'string' && data.length) return data.length;\n if (typeof data !== 'object') return undefined;\n // eslint-disable-next-line\n if (typeof ArrayBuffer !== 'undefined' && data instanceof ArrayBuffer && data.byteLength) return data.byteLength;\n if (typeof Blob !== 'undefined' && data instanceof Blob && data.size) return data.size;\n if (typeof FormData !== 'undefined' && data instanceof FormData) return undefined;\n try {\n return stringify(data).length;\n } catch (e) {\n return undefined;\n }\n}","/*\n * Copyright 2020 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { getConfiguration, getConfigurationValue, getLoaderConfig } from '../../../common/config/config';\nimport { generateSpanId, generateTraceId } from '../../../common/ids/unique-id';\nimport { parseUrl } from '../../../common/url/parse-url';\nimport { globalScope } from '../../../common/constants/runtime';\nimport { stringify } from '../../../common/util/stringify';\nexport class DT {\n constructor(agentIdentifier) {\n this.agentIdentifier = agentIdentifier;\n }\n generateTracePayload(parsedOrigin) {\n if (!this.shouldGenerateTrace(parsedOrigin)) {\n return null;\n }\n var loaderConfig = getLoaderConfig(this.agentIdentifier);\n if (!loaderConfig) {\n return null;\n }\n var accountId = (loaderConfig.accountID || '').toString() || null;\n var agentId = (loaderConfig.agentID || '').toString() || null;\n var trustKey = (loaderConfig.trustKey || '').toString() || null;\n if (!accountId || !agentId) {\n return null;\n }\n var spanId = generateSpanId();\n var traceId = generateTraceId();\n var timestamp = Date.now();\n var payload = {\n spanId,\n traceId,\n timestamp\n };\n if (parsedOrigin.sameOrigin || this.isAllowedOrigin(parsedOrigin) && this.useTraceContextHeadersForCors()) {\n payload.traceContextParentHeader = this.generateTraceContextParentHeader(spanId, traceId);\n payload.traceContextStateHeader = this.generateTraceContextStateHeader(spanId, timestamp, accountId, agentId, trustKey);\n }\n if (parsedOrigin.sameOrigin && !this.excludeNewrelicHeader() || !parsedOrigin.sameOrigin && this.isAllowedOrigin(parsedOrigin) && this.useNewrelicHeaderForCors()) {\n payload.newrelicHeader = this.generateTraceHeader(spanId, traceId, timestamp, accountId, agentId, trustKey);\n }\n return payload;\n }\n generateTraceContextParentHeader(spanId, traceId) {\n return '00-' + traceId + '-' + spanId + '-01';\n }\n generateTraceContextStateHeader(spanId, timestamp, accountId, appId, trustKey) {\n var version = 0;\n var transactionId = '';\n var parentType = 1;\n var sampled = '';\n var priority = '';\n return trustKey + '@nr=' + version + '-' + parentType + '-' + accountId + '-' + appId + '-' + spanId + '-' + transactionId + '-' + sampled + '-' + priority + '-' + timestamp;\n }\n generateTraceHeader(spanId, traceId, timestamp, accountId, appId, trustKey) {\n var hasBtoa = typeof globalScope?.btoa === 'function';\n if (!hasBtoa) {\n return null;\n }\n var payload = {\n v: [0, 1],\n d: {\n ty: 'Browser',\n ac: accountId,\n ap: appId,\n id: spanId,\n tr: traceId,\n ti: timestamp\n }\n };\n if (trustKey && accountId !== trustKey) {\n payload.d.tk = trustKey;\n }\n return btoa(stringify(payload));\n }\n\n // return true if DT is enabled and the origin is allowed, either by being\n // same-origin, or included in the allowed list\n shouldGenerateTrace(parsedOrigin) {\n return this.isDtEnabled() && this.isAllowedOrigin(parsedOrigin);\n }\n isAllowedOrigin(parsedOrigin) {\n var allowed = false;\n var dtConfig = {};\n var dt = getConfigurationValue(this.agentIdentifier, 'distributed_tracing');\n if (dt) {\n dtConfig = getConfiguration(this.agentIdentifier).distributed_tracing;\n }\n if (parsedOrigin.sameOrigin) {\n allowed = true;\n } else if (dtConfig.allowed_origins instanceof Array) {\n for (var i = 0; i < dtConfig.allowed_origins.length; i++) {\n var allowedOrigin = parseUrl(dtConfig.allowed_origins[i]);\n if (parsedOrigin.hostname === allowedOrigin.hostname && parsedOrigin.protocol === allowedOrigin.protocol && parsedOrigin.port === allowedOrigin.port) {\n allowed = true;\n break;\n }\n }\n }\n return allowed;\n }\n isDtEnabled() {\n var dt = getConfigurationValue(this.agentIdentifier, 'distributed_tracing');\n if (dt) {\n return !!dt.enabled;\n }\n return false;\n }\n\n // exclude the newrelic header for same-origin calls\n excludeNewrelicHeader() {\n var dt = getConfigurationValue(this.agentIdentifier, 'distributed_tracing');\n if (dt) {\n return !!dt.exclude_newrelic_header;\n }\n return false;\n }\n useNewrelicHeaderForCors() {\n var dt = getConfigurationValue(this.agentIdentifier, 'distributed_tracing');\n if (dt) {\n return dt.cors_use_newrelic_header !== false;\n }\n return false;\n }\n useTraceContextHeadersForCors() {\n var dt = getConfigurationValue(this.agentIdentifier, 'distributed_tracing');\n if (dt) {\n return !!dt.cors_use_tracecontext_headers;\n }\n return false;\n }\n}","/*\n * Copyright 2020 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { dataSize } from '../../../common/util/data-size';\nexport function responseSizeFromXhr(xhr, lastSize) {\n var type = xhr.responseType;\n if (type === 'json' && lastSize !== null) return lastSize;\n // Caution! Chrome throws an error if you try to access xhr.responseText for binary data\n if (type === 'arraybuffer' || type === 'blob' || type === 'json') {\n return dataSize(xhr.response);\n } else if (type === 'text' || type === '' || type === undefined) {\n // empty string type defaults to 'text'\n return dataSize(xhr.responseText);\n } else {\n // e.g. ms-stream and document (we do not currently determine the size of Document objects)\n return undefined;\n }\n}","/*\n * Copyright 2020 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { originals, getLoaderConfig } from '../../../common/config/config';\nimport { handle } from '../../../common/event-emitter/handle';\nimport { id } from '../../../common/ids/id';\nimport { ffVersion, globalScope, isBrowserScope } from '../../../common/constants/runtime';\nimport { dataSize } from '../../../common/util/data-size';\nimport { eventListenerOpts } from '../../../common/event-listener/event-listener-opts';\nimport { wrapFetch, wrapXhr } from '../../../common/wrap';\nimport { parseUrl } from '../../../common/url/parse-url';\nimport { DT } from './distributed-tracing';\nimport { responseSizeFromXhr } from './response-size';\nimport { InstrumentBase } from '../../utils/instrument-base';\nimport { FEATURE_NAME } from '../constants';\nimport { FEATURE_NAMES } from '../../../loaders/features/features';\nimport { SUPPORTABILITY_METRIC } from '../../metrics/constants';\nimport { now } from '../../../common/timing/now';\nimport { hasUndefinedHostname } from '../../../common/deny-list/deny-list';\nvar handlers = ['load', 'error', 'abort', 'timeout'];\nvar handlersLen = handlers.length;\nvar origRequest = originals.REQ;\nvar origXHR = originals.XHR;\nexport let Instrument = /*#__PURE__*/(() => {\n class Instrument extends InstrumentBase {\n static featureName = FEATURE_NAME;\n constructor(agentIdentifier, aggregator) {\n let auto = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n super(agentIdentifier, aggregator, FEATURE_NAME, auto);\n this.dt = new DT(agentIdentifier);\n this.handler = (type, args, ctx, group) => handle(type, args, ctx, group, this.ee);\n\n // this is a best (but imperfect) effort at capturing AJAX calls that may have fired before the agent was instantiated\n // this could happen because the agent was \"improperly\" set up (ie, not at the top of the head) or\n // because it was deferred from loading in some way -- e.g. 'deferred' script loading tags or other lazy-loading techniques\n //\n // it is \"imperfect\" because we cannot capture the following with the API vs wrapping the events directly:\n // * requestBodySize - (txSize -- request body size)\n // * method - request type (GET, POST, etc)\n // * callbackDuration - (cbTime -- sum of resulting callback time)\n try {\n const initiators = {\n xmlhttprequest: 'xhr',\n fetch: 'fetch',\n beacon: 'beacon'\n };\n globalScope?.performance?.getEntriesByType('resource').forEach(resource => {\n if (resource.initiatorType in initiators && resource.responseStatus !== 0) {\n const params = {\n status: resource.responseStatus\n };\n const metrics = {\n rxSize: resource.transferSize,\n duration: Math.floor(resource.duration),\n cbTime: 0\n };\n addUrl(params, resource.name);\n this.handler('xhr', [params, metrics, resource.startTime, resource.responseEnd, initiators[resource.initiatorType]], undefined, FEATURE_NAMES.ajax);\n }\n });\n } catch (err) {\n // do nothing\n }\n wrapFetch(this.ee);\n wrapXhr(this.ee);\n subscribeToEvents(agentIdentifier, this.ee, this.handler, this.dt);\n this.importAggregator();\n }\n }\n return Instrument;\n})();\nfunction subscribeToEvents(agentIdentifier, ee, handler, dt) {\n ee.on('new-xhr', onNewXhr);\n ee.on('open-xhr-start', onOpenXhrStart);\n ee.on('open-xhr-end', onOpenXhrEnd);\n ee.on('send-xhr-start', onSendXhrStart);\n ee.on('xhr-cb-time', onXhrCbTime);\n ee.on('xhr-load-added', onXhrLoadAdded);\n ee.on('xhr-load-removed', onXhrLoadRemoved);\n ee.on('xhr-resolved', onXhrResolved);\n ee.on('addEventListener-end', onAddEventListenerEnd);\n ee.on('removeEventListener-end', onRemoveEventListenerEnd);\n ee.on('fn-end', onFnEnd);\n ee.on('fetch-before-start', onFetchBeforeStart);\n ee.on('fetch-start', onFetchStart);\n ee.on('fn-start', onFnStart);\n ee.on('fetch-done', onFetchDone);\n\n // Setup the context for each new xhr object\n function onNewXhr(xhr) {\n var ctx = this;\n ctx.totalCbs = 0;\n ctx.called = 0;\n ctx.cbTime = 0;\n ctx.end = end;\n ctx.ended = false;\n ctx.xhrGuids = {};\n ctx.lastSize = null;\n ctx.loadCaptureCalled = false;\n ctx.params = this.params || {};\n ctx.metrics = this.metrics || {};\n xhr.addEventListener('load', function (event) {\n captureXhrData(ctx, xhr);\n }, eventListenerOpts(false));\n\n // In Firefox (v34+), XHR ProgressEvents report pre-content-decoding sizes via\n // their 'loaded' property, rather than post-decoding sizes. We want\n // post-decoding sizes for consistency with browsers where that's all we have.\n // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1227674\n //\n // So we don't use ProgressEvents to measure XHR sizes for FF.\n if (ffVersion) return;\n xhr.addEventListener('progress', function (event) {\n ctx.lastSize = event.loaded;\n }, eventListenerOpts(false));\n }\n function onOpenXhrStart(args) {\n this.params = {\n method: args[0]\n };\n addUrl(this, args[1]);\n this.metrics = {};\n }\n function onOpenXhrEnd(args, xhr) {\n var loaderConfig = getLoaderConfig(agentIdentifier);\n if (loaderConfig.xpid && this.sameOrigin) {\n xhr.setRequestHeader('X-NewRelic-ID', loaderConfig.xpid);\n }\n var payload = dt.generateTracePayload(this.parsedOrigin);\n if (payload) {\n var added = false;\n if (payload.newrelicHeader) {\n xhr.setRequestHeader('newrelic', payload.newrelicHeader);\n added = true;\n }\n if (payload.traceContextParentHeader) {\n xhr.setRequestHeader('traceparent', payload.traceContextParentHeader);\n if (payload.traceContextStateHeader) {\n xhr.setRequestHeader('tracestate', payload.traceContextStateHeader);\n }\n added = true;\n }\n if (added) {\n this.dt = payload;\n }\n }\n }\n function onSendXhrStart(args, xhr) {\n var metrics = this.metrics;\n var data = args[0];\n var context = this;\n if (metrics && data) {\n var size = dataSize(data);\n if (size) metrics.txSize = size;\n }\n this.startTime = now();\n this.body = data;\n this.listener = function (evt) {\n try {\n if (evt.type === 'abort' && !context.loadCaptureCalled) {\n context.params.aborted = true;\n }\n if (evt.type !== 'load' || context.called === context.totalCbs && (context.onloadCalled || typeof xhr.onload !== 'function') && typeof context.end === 'function') context.end(xhr);\n } catch (e) {\n try {\n ee.emit('internal-error', [e]);\n } catch (err) {\n // do nothing\n }\n }\n };\n for (var i = 0; i < handlersLen; i++) {\n xhr.addEventListener(handlers[i], this.listener, eventListenerOpts(false));\n }\n }\n function onXhrCbTime(time, onload, xhr) {\n this.cbTime += time;\n if (onload) this.onloadCalled = true;else this.called += 1;\n if (this.called === this.totalCbs && (this.onloadCalled || typeof xhr.onload !== 'function') && typeof this.end === 'function') this.end(xhr);\n }\n function onXhrLoadAdded(cb, useCapture) {\n // Ignore if the same arguments are passed to addEventListener twice\n var idString = '' + id(cb) + !!useCapture;\n if (!this.xhrGuids || this.xhrGuids[idString]) return;\n this.xhrGuids[idString] = true;\n this.totalCbs += 1;\n }\n function onXhrLoadRemoved(cb, useCapture) {\n // Ignore if event listener didn't exist for this xhr object\n var idString = '' + id(cb) + !!useCapture;\n if (!this.xhrGuids || !this.xhrGuids[idString]) return;\n delete this.xhrGuids[idString];\n this.totalCbs -= 1;\n }\n function onXhrResolved() {\n this.endTime = now();\n }\n\n // Listen for load listeners to be added to xhr objects\n function onAddEventListenerEnd(args, xhr) {\n if (xhr instanceof origXHR && args[0] === 'load') ee.emit('xhr-load-added', [args[1], args[2]], xhr);\n }\n function onRemoveEventListenerEnd(args, xhr) {\n if (xhr instanceof origXHR && args[0] === 'load') ee.emit('xhr-load-removed', [args[1], args[2]], xhr);\n }\n\n // Listen for those load listeners to be called.\n function onFnStart(args, xhr, methodName) {\n if (xhr instanceof origXHR) {\n if (methodName === 'onload') this.onload = true;\n if ((args[0] && args[0].type) === 'load' || this.onload) this.xhrCbStart = now();\n }\n }\n function onFnEnd(args, xhr) {\n if (this.xhrCbStart) ee.emit('xhr-cb-time', [now() - this.xhrCbStart, this.onload, xhr], xhr);\n }\n\n // this event only handles DT\n function onFetchBeforeStart(args) {\n var opts = args[1] || {};\n var url;\n if (typeof args[0] === 'string') {\n // argument is USVString\n url = args[0];\n if (url.length === 0 && isBrowserScope) {\n url = '' + globalScope.location.href;\n }\n } else if (args[0] && args[0].url) {\n // argument is Request object\n url = args[0].url;\n } else if (globalScope?.URL && args[0] && args[0] instanceof URL) {\n // argument is URL object\n url = args[0].href;\n } else if (typeof args[0].toString === 'function') {\n url = args[0].toString();\n }\n if (typeof url !== 'string' || url.length === 0) {\n // Short-circuit DT since we could not determine the URL of the fetch call\n // this is very unlikely to happen\n return;\n }\n if (url) {\n this.parsedOrigin = parseUrl(url);\n this.sameOrigin = this.parsedOrigin.sameOrigin;\n }\n var payload = dt.generateTracePayload(this.parsedOrigin);\n if (!payload || !payload.newrelicHeader && !payload.traceContextParentHeader) {\n return;\n }\n if (args[0] && args[0].headers) {\n if (addHeaders(args[0].headers, payload)) {\n this.dt = payload;\n }\n } else {\n var clone = {};\n for (var key in opts) {\n clone[key] = opts[key];\n }\n clone.headers = new Headers(opts.headers || {});\n if (addHeaders(clone.headers, payload)) {\n this.dt = payload;\n }\n if (args.length > 1) {\n args[1] = clone;\n } else {\n args.push(clone);\n }\n }\n function addHeaders(headersObj, payload) {\n var added = false;\n if (payload.newrelicHeader) {\n headersObj.set('newrelic', payload.newrelicHeader);\n added = true;\n }\n if (payload.traceContextParentHeader) {\n headersObj.set('traceparent', payload.traceContextParentHeader);\n if (payload.traceContextStateHeader) {\n headersObj.set('tracestate', payload.traceContextStateHeader);\n }\n added = true;\n }\n return added;\n }\n }\n function onFetchStart(fetchArguments, dtPayload) {\n this.params = {};\n this.metrics = {};\n this.startTime = now();\n this.dt = dtPayload;\n if (fetchArguments.length >= 1) this.target = fetchArguments[0];\n if (fetchArguments.length >= 2) this.opts = fetchArguments[1];\n var opts = this.opts || {};\n var target = this.target;\n var url;\n if (typeof target === 'string') {\n url = target;\n } else if (typeof target === 'object' && target instanceof origRequest) {\n url = target.url;\n } else if (globalScope?.URL && typeof target === 'object' && target instanceof URL) {\n url = target.href;\n }\n addUrl(this, url);\n var method = ('' + (target && target instanceof origRequest && target.method || opts.method || 'GET')).toUpperCase();\n this.params.method = method;\n this.body = opts.body;\n this.txSize = dataSize(opts.body) || 0;\n }\n\n // we capture failed call as status 0, the actual error is ignored\n // eslint-disable-next-line handle-callback-err\n function onFetchDone(_, res) {\n this.endTime = now();\n if (!this.params) this.params = {};\n if (hasUndefinedHostname(this.params)) return; // don't bother with fetch to url with no hostname\n\n this.params.status = res ? res.status : 0;\n\n // convert rxSize to a number\n let responseSize;\n if (typeof this.rxSize === 'string' && this.rxSize.length > 0) {\n responseSize = +this.rxSize;\n }\n const metrics = {\n txSize: this.txSize,\n rxSize: responseSize,\n duration: now() - this.startTime\n };\n handler('xhr', [this.params, metrics, this.startTime, this.endTime, 'fetch'], this, FEATURE_NAMES.ajax);\n }\n\n // Create report for XHR request that has finished\n function end(xhr) {\n const params = this.params;\n const metrics = this.metrics;\n if (this.ended) return;\n this.ended = true;\n for (let i = 0; i < handlersLen; i++) {\n xhr.removeEventListener(handlers[i], this.listener, false);\n }\n if (params.aborted) return;\n if (hasUndefinedHostname(params)) return; // don't bother with XHR of url with no hostname\n\n metrics.duration = now() - this.startTime;\n if (!this.loadCaptureCalled && xhr.readyState === 4) {\n captureXhrData(this, xhr);\n } else if (params.status == null) {\n params.status = 0;\n }\n\n // Always send cbTime, even if no noticeable time was taken.\n metrics.cbTime = this.cbTime;\n handler('xhr', [params, metrics, this.startTime, this.endTime, 'xhr'], this, FEATURE_NAMES.ajax);\n }\n function captureXhrData(ctx, xhr) {\n ctx.params.status = xhr.status;\n var size = responseSizeFromXhr(xhr, ctx.lastSize);\n if (size) ctx.metrics.rxSize = size;\n if (ctx.sameOrigin) {\n var header = xhr.getResponseHeader('X-NewRelic-App-Data');\n if (header) {\n handle(SUPPORTABILITY_METRIC, ['Ajax/CrossApplicationTracing/Header/Seen'], undefined, FEATURE_NAMES.metrics, ee);\n ctx.params.cat = header.split(', ').pop();\n }\n }\n ctx.loadCaptureCalled = true;\n }\n}\nfunction addUrl(ctx, url) {\n var parsed = parseUrl(url);\n var params = ctx.params || ctx;\n params.hostname = parsed.hostname;\n params.port = parsed.port;\n params.protocol = parsed.protocol;\n params.host = parsed.hostname + ':' + parsed.port;\n params.pathname = parsed.pathname;\n ctx.parsedOrigin = parsed;\n ctx.sameOrigin = parsed.sameOrigin;\n}","/*\n * Copyright 2020 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { handle } from '../../../common/event-emitter/handle';\nimport { wrapHistory, wrapEvents } from '../../../common/wrap';\nimport { InstrumentBase } from '../../utils/instrument-base';\nimport * as CONSTANTS from '../constants';\nimport { FEATURE_NAMES } from '../../../loaders/features/features';\nimport { deregisterDrain } from '../../../common/drain/drain';\nimport { canEnableSessionTracking } from '../../utils/feature-gates';\nimport { now } from '../../../common/timing/now';\nconst {\n BST_RESOURCE,\n RESOURCE,\n START,\n END,\n FEATURE_NAME,\n FN_END,\n FN_START,\n PUSH_STATE\n} = CONSTANTS;\nexport let Instrument = /*#__PURE__*/(() => {\n class Instrument extends InstrumentBase {\n static featureName = FEATURE_NAME;\n constructor(agentIdentifier, aggregator) {\n let auto = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n super(agentIdentifier, aggregator, FEATURE_NAME, auto);\n const canTrackSession = canEnableSessionTracking(this.agentIdentifier);\n if (!canTrackSession) {\n deregisterDrain(this.agentIdentifier, this.featureName);\n return;\n }\n const thisInstrumentEE = this.ee;\n wrapHistory(thisInstrumentEE);\n this.eventsEE = wrapEvents(thisInstrumentEE);\n this.eventsEE.on(FN_START, function (args, target) {\n this.bstStart = now();\n });\n this.eventsEE.on(FN_END, function (args, target) {\n // ISSUE: when target is XMLHttpRequest, nr@context should have params so we can calculate event origin\n // When ajax is disabled, this may fail without making ajax a dependency of session_trace\n handle('bst', [args[0], target, this.bstStart, now()], undefined, FEATURE_NAMES.sessionTrace, thisInstrumentEE);\n });\n thisInstrumentEE.on(PUSH_STATE + START, function (args) {\n this.time = now();\n this.startPath = location.pathname + location.hash;\n });\n thisInstrumentEE.on(PUSH_STATE + END, function (args) {\n handle('bstHist', [location.pathname + location.hash, this.startPath, this.time], undefined, FEATURE_NAMES.sessionTrace, thisInstrumentEE);\n });\n let observer;\n try {\n // Capture initial resources and watch for future ones. Don't defer this given there's a default cap on the number of buffered entries.\n observer = new PerformanceObserver(list => {\n // eslint-disable-line no-undef\n const entries = list.getEntries();\n handle(BST_RESOURCE, [entries], undefined, FEATURE_NAMES.sessionTrace, thisInstrumentEE);\n });\n observer.observe({\n type: RESOURCE,\n buffered: true\n });\n } catch (e) {\n // Per NEWRELIC-8525, we don't have a fallback for capturing resources for older versions that don't support PO at this time.\n }\n this.importAggregator({\n resourceObserver: observer\n });\n }\n }\n return Instrument;\n})();","/*\n * Copyright 2020 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n*/\nimport { wrapMutation, wrapPromise, wrapHistory, wrapTimer, wrapFetch, wrapXhr, wrapJsonP } from '../../../common/wrap';\nimport { eventListenerOpts } from '../../../common/event-listener/event-listener-opts';\nimport { InstrumentBase } from '../../utils/instrument-base';\nimport * as CONSTANTS from '../constants';\nimport { isBrowserScope } from '../../../common/constants/runtime';\nimport { now } from '../../../common/timing/now';\nimport { handle } from '../../../common/event-emitter/handle';\nconst {\n FEATURE_NAME,\n START,\n END,\n BODY,\n CB_END,\n JS_TIME,\n FETCH,\n FN_START,\n CB_START,\n FN_END\n} = CONSTANTS;\nexport let Instrument = /*#__PURE__*/(() => {\n class Instrument extends InstrumentBase {\n static featureName = FEATURE_NAME;\n constructor(agentIdentifier, aggregator) {\n var _this;\n let auto = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n super(agentIdentifier, aggregator, FEATURE_NAME, auto);\n _this = this;\n if (!isBrowserScope) return; // SPA not supported outside web env\n\n try {\n this.removeOnAbort = new AbortController();\n } catch (e) {}\n let depth = 0;\n let startHash;\n const tracerEE = this.ee.get('tracer');\n const jsonpEE = wrapJsonP(this.ee);\n const promiseEE = wrapPromise(this.ee);\n const timerEE = wrapTimer(this.ee);\n const xhrEE = wrapXhr(this.ee);\n const eventsEE = this.ee.get('events'); // wrapXhr will call wrapEvents\n const fetchEE = wrapFetch(this.ee);\n const historyEE = wrapHistory(this.ee);\n const mutationEE = wrapMutation(this.ee);\n this.ee.on(FN_START, startTimestamp);\n promiseEE.on(CB_START, startTimestamp);\n jsonpEE.on(CB_START, startTimestamp);\n this.ee.on(FN_END, endTimestamp);\n promiseEE.on(CB_END, endTimestamp);\n jsonpEE.on(CB_END, endTimestamp);\n this.ee.on('fn-err', function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n if (!args[2]?.__newrelic?.[agentIdentifier]) handle('function-err', [...args], undefined, _this.featureName, _this.ee);\n });\n this.ee.buffer([FN_START, FN_END, 'xhr-resolved'], this.featureName);\n eventsEE.buffer([FN_START], this.featureName);\n timerEE.buffer(['setTimeout' + END, 'clearTimeout' + START, FN_START], this.featureName);\n xhrEE.buffer([FN_START, 'new-xhr', 'send-xhr' + START], this.featureName);\n fetchEE.buffer([FETCH + START, FETCH + '-done', FETCH + BODY + START, FETCH + BODY + END], this.featureName);\n historyEE.buffer(['newURL'], this.featureName);\n mutationEE.buffer([FN_START], this.featureName);\n promiseEE.buffer(['propagate', CB_START, CB_END, 'executor-err', 'resolve' + START], this.featureName);\n tracerEE.buffer([FN_START, 'no-' + FN_START], this.featureName);\n jsonpEE.buffer(['new-jsonp', 'cb-start', 'jsonp-error', 'jsonp-end'], this.featureName);\n timestamp(fetchEE, FETCH + START);\n timestamp(fetchEE, FETCH + '-done');\n timestamp(jsonpEE, 'new-jsonp');\n timestamp(jsonpEE, 'jsonp-end');\n timestamp(jsonpEE, 'cb-start');\n historyEE.on('pushState-end', trackURLChange);\n historyEE.on('replaceState-end', trackURLChange);\n window.addEventListener('hashchange', trackURLChange, eventListenerOpts(true, this.removeOnAbort?.signal));\n window.addEventListener('load', trackURLChange, eventListenerOpts(true, this.removeOnAbort?.signal));\n window.addEventListener('popstate', function () {\n trackURLChange(0, depth > 1);\n }, eventListenerOpts(true, this.removeOnAbort?.signal));\n function trackURLChange(unusedArgs, hashChangedDuringCb) {\n historyEE.emit('newURL', ['' + window.location, hashChangedDuringCb]);\n }\n function startTimestamp() {\n depth++;\n startHash = window.location.hash;\n this[FN_START] = now();\n }\n function endTimestamp() {\n depth--;\n if (window.location.hash !== startHash) {\n trackURLChange(0, true);\n }\n var time = now();\n this[JS_TIME] = ~~this[JS_TIME] + time - this[FN_START];\n this[FN_END] = time;\n }\n function timestamp(ee, type) {\n ee.on(type, function () {\n this[type] = now();\n });\n }\n this.abortHandler = this.#abort;\n this.importAggregator();\n }\n\n /** Restoration and resource release tasks to be done if SPA loader is being aborted. Unwind changes to globals and subscription to DOM events. */\n #abort() {\n this.removeOnAbort?.abort();\n this.abortHandler = undefined; // weakly allow this abort op to run only once\n }\n }\n return Instrument;\n})();","/*\n * Copyright 2020 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InstrumentBase } from '../../utils/instrument-base';\nimport { FEATURE_NAME } from '../constants';\nexport let Instrument = /*#__PURE__*/(() => {\n class Instrument extends InstrumentBase {\n static featureName = FEATURE_NAME;\n constructor(agentIdentifier, aggregator) {\n let auto = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n super(agentIdentifier, aggregator, FEATURE_NAME, auto);\n this.importAggregator();\n }\n }\n return Instrument;\n})();","/*\n * Copyright 2023 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @file Primes the Session Replay feature for lazy loading.\n *\n * NOTE: This code is under development and dormant. It will not download to instrumented pages or record any data.\n * It is not production ready, and is not intended to be imported or implemented in any build of the browser agent until\n * functionality is validated and a full user experience is curated.\n */\nimport { handle } from '../../../common/event-emitter/handle';\nimport { DEFAULT_KEY, MODE, PREFIX } from '../../../common/session/constants';\nimport { InstrumentBase } from '../../utils/instrument-base';\nimport { hasReplayPrerequisite, isPreloadAllowed } from '../shared/utils';\nimport { FEATURE_NAME, SR_EVENT_EMITTER_TYPES, TRIGGERS } from '../constants';\nexport let Instrument = /*#__PURE__*/(() => {\n class Instrument extends InstrumentBase {\n static featureName = FEATURE_NAME;\n #mode;\n constructor(agentIdentifier, aggregator) {\n let auto = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n super(agentIdentifier, aggregator, FEATURE_NAME, auto);\n let session;\n this.replayRunning = false;\n try {\n session = JSON.parse(localStorage.getItem(\"\".concat(PREFIX, \"_\").concat(DEFAULT_KEY)));\n } catch (err) {}\n if (hasReplayPrerequisite(agentIdentifier)) {\n this.ee.on(SR_EVENT_EMITTER_TYPES.RECORD, () => this.#apiStartOrRestartReplay());\n }\n if (this.#canPreloadRecorder(session)) {\n this.#mode = session?.sessionReplayMode;\n this.#preloadStartRecording();\n } else {\n this.importAggregator();\n }\n\n /** If the recorder is running, we can pass error events on to the agg to help it switch to full mode later */\n this.ee.on('err', e => {\n if (this.replayRunning) {\n this.errorNoticed = true;\n handle(SR_EVENT_EMITTER_TYPES.ERROR_DURING_REPLAY, [e], undefined, this.featureName, this.ee);\n }\n });\n\n /** Emitted by the recorder when it starts capturing data, used to determine if we should pass errors on to the agg */\n this.ee.on(SR_EVENT_EMITTER_TYPES.REPLAY_RUNNING, isRunning => {\n this.replayRunning = isRunning;\n });\n }\n\n // At this point wherein session state exists already but we haven't init SessionEntity aka verify timers.\n #canPreloadRecorder(session) {\n if (!session) {\n // this might be a new session if entity initializes: conservatively start recording if first-time config allows\n // Note: users with SR enabled, as well as these other configs enabled by-default, will be penalized by the recorder overhead EVEN IF they don't actually have or get\n // entitlement or sampling decision, or otherwise intentionally opted-in for the feature.\n return isPreloadAllowed(this.agentIdentifier);\n } else if (session.sessionReplayMode === MODE.FULL || session.sessionReplayMode === MODE.ERROR) {\n return true; // existing sessions get to continue recording, regardless of this page's configs or if it has expired (conservatively)\n } else {\n // SR mode was OFF but may potentially be turned on if session resets and configs allows the new session to have replay...\n return isPreloadAllowed(this.agentIdentifier);\n }\n }\n #alreadyStarted = false;\n /**\n * This func is use for early pre-load recording prior to replay feature (agg) being loaded onto the page. It should only setup once, including if already called and in-progress.\n */\n async #preloadStartRecording(trigger) {\n if (this.#alreadyStarted) return;\n this.#alreadyStarted = true;\n try {\n const {\n Recorder\n } = await import(/* webpackChunkName: \"recorder\" */'../shared/recorder');\n\n // If startReplay() has been used by this point, we must record in full mode regardless of session preload:\n // Note: recorder starts here with w/e the mode is at this time, but this may be changed later (see #apiStartOrRestartReplay else-case)\n this.recorder ??= new Recorder({\n mode: this.#mode,\n agentIdentifier: this.agentIdentifier,\n trigger,\n ee: this.ee\n });\n this.recorder.startRecording();\n this.abortHandler = this.recorder.stopRecording;\n } catch (e) {}\n this.importAggregator({\n recorder: this.recorder,\n errorNoticed: this.errorNoticed\n });\n }\n\n /**\n * Called whenever startReplay API is used. That could occur any time, pre or post load.\n */\n #apiStartOrRestartReplay() {\n if (this.featAggregate) {\n // post-load; there's possibly already an ongoing recording\n if (this.featAggregate.mode !== MODE.FULL) this.featAggregate.initializeRecording(MODE.FULL, true);\n } else {\n // pre-load\n this.#mode = MODE.FULL;\n this.#preloadStartRecording(TRIGGERS.API);\n // There's a race here wherein either:\n // a. Recorder has not been initialized, and we've set the enforced mode, so we're good, or;\n // b. Record has been initialized, possibly with the \"wrong\" mode, so we have to correct that + restart.\n if (this.recorder && this.recorder.parent.mode !== MODE.FULL) {\n this.recorder.parent.mode = MODE.FULL;\n this.recorder.stopRecording();\n this.recorder.startRecording();\n this.abortHandler = this.recorder.stopRecording;\n }\n }\n }\n }\n return Instrument;\n})();","import { Agent } from './agent';\nimport { Instrument as InstrumentPageViewEvent } from '../features/page_view_event/instrument';\nimport { Instrument as InstrumentPageViewTiming } from '../features/page_view_timing/instrument';\nimport { Instrument as InstrumentMetrics } from '../features/metrics/instrument';\nimport { Instrument as InstrumentErrors } from '../features/jserrors/instrument';\nimport { Instrument as InstrumentXhr } from '../features/ajax/instrument';\nimport { Instrument as InstrumentSessionTrace } from '../features/session_trace/instrument';\nimport { Instrument as InstrumentSpa } from '../features/spa/instrument';\nimport { Instrument as InstrumentPageAction } from '../features/page_action/instrument';\nimport { Instrument as InstrumentSessionReplay } from '../features/session_replay/instrument';\n\n/**\n * An agent class with all feature modules available. Features may be disabled and enabled via runtime configuration.\n * The BrowserAgent class is the most convenient and reliable option for most use cases.\n */\nexport class BrowserAgent extends Agent {\n constructor(args) {\n super({\n ...args,\n features: [InstrumentXhr, InstrumentPageViewEvent, InstrumentPageViewTiming, InstrumentSessionTrace, InstrumentMetrics, InstrumentPageAction, InstrumentErrors, InstrumentSpa, InstrumentSessionReplay],\n loaderType: 'browser-agent'\n });\n }\n}","import { Injectable } from '@angular/core';\r\nimport { BrowserAgent } from '@newrelic/browser-agent/loaders/browser-agent';\r\nimport { BehaviorSubject, filter, Observable } from 'rxjs';\r\nimport { TcsConfigurationService } from 'src/app/core/configuration.service';\r\nimport { uuid } from 'src/util/uuid';\r\n\r\nconst tabId = uuid();\r\n\r\nexport interface NewRelicConfiguration {\r\n enabled: boolean;\r\n loaderConfig: NewRelicLoaderConfig;\r\n}\r\n\r\nexport interface NewRelicLoaderConfig {\r\n accountID: string;\r\n trustKey: string;\r\n agentID: string;\r\n licenseKey: string;\r\n applicationID: string;\r\n}\r\n\r\nfunction initializeTelemetry(newRelic: BrowserAgent) {\r\n // Set Custon Attributes\r\n\r\n // Add tab ID\r\n newRelic.setCustomAttribute('tabId', tabId);\r\n\r\n // Set cloud_roleName\r\n newRelic.setCustomAttribute('roleName', 'website');\r\n\r\n // Always include current href\r\n newRelic.setCustomAttribute('href', window.location.href);\r\n\r\n // TO DO:\r\n\r\n // Do we need to use setCurrentRouteName?\r\n // https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setcurrentroutename/\r\n // newRelic.setCurrentRouteName()\r\n\r\n // Do we need these additional attributes utilized in Application Insights?\r\n // ? Set operation ID\r\n // ? Don't track network exceptions\r\n // ? Don't automatically track GraphQL dependencies (we do that manually)\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NewRelicService {\r\n public newRelic: BrowserAgent | undefined;\r\n private _initialized$ = new BehaviorSubject(false);\r\n constructor(private _config: TcsConfigurationService) {}\r\n\r\n get intialized$(): Observable {\r\n return this._initialized$.asObservable().pipe(filter((init) => init));\r\n }\r\n\r\n public init() {\r\n if (this._initialized$.getValue()) {\r\n return;\r\n }\r\n\r\n if (this._config.value.newRelic.enabled === true) {\r\n const options = {\r\n init: {\r\n distributed_tracing: {\r\n enabled: true,\r\n cors_use_newrelic_header: true,\r\n cors_use_tracecontext_headers: true,\r\n allowed_origins: [this._config.value.tcs.graphqlUri],\r\n },\r\n privacy: { cookies_enabled: true },\r\n ajax: { deny_list: ['bam.nr-data.net'] },\r\n },\r\n info: {\r\n beacon: 'bam.nr-data.net',\r\n errorBeacon: 'bam.nr-data.net',\r\n licenseKey: this._config.value.newRelic.loaderConfig.licenseKey,\r\n applicationID: this._config.value.newRelic.loaderConfig.applicationID,\r\n sa: 1,\r\n },\r\n loader_config: this._config.value.newRelic.loaderConfig,\r\n };\r\n this.newRelic = new BrowserAgent(options);\r\n\r\n initializeTelemetry(this.newRelic);\r\n\r\n this._initialized$.next(true);\r\n }\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { GlobalDataContextService_FetchGQL } from 'src/graphql/generated/graphql.generated';\r\nimport { StoreService } from 'src/store/store.service';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class GlobalDataContextService {\r\n constructor(private _store: StoreService, private _gql: GlobalDataContextService_FetchGQL) {}\r\n public fetch(): Observable {\r\n return this._store.upsertEntitiesFromGraphQL(this._gql, undefined, {\r\n fetchPolicy: 'cache-first',\r\n });\r\n }\r\n\r\n public resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n return this.fetch();\r\n }\r\n}\r\n","import { Injectable, OnDestroy } from '@angular/core';\r\nimport { take } from 'rxjs/operators';\r\nimport { GlobalDataContextService } from 'src/app/global-data-context.service';\r\nimport { UserDataContextService_FetchGQL } from 'src/graphql/generated/graphql.generated';\r\nimport { StoreService } from 'src/store/store.service';\r\nimport { Subject } from 'rxjs';\r\nimport { firstValueOrUndefined } from 'src/util/rxjs';\r\nimport { filterNull } from 'src/util/rxjs/operators/filter-null';\r\nimport { AuthenticationService } from './authentication.service';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UserDataContextService implements OnDestroy {\r\n private _initialized = false;\r\n private _onDestroy$ = new Subject();\r\n\r\n constructor(\r\n private _store: StoreService,\r\n private _gql: UserDataContextService_FetchGQL,\r\n private _auth: AuthenticationService,\r\n private _global: GlobalDataContextService,\r\n ) {}\r\n\r\n public async syncUserData() {\r\n return firstValueOrUndefined(this._fetch().pipe(take(1)));\r\n }\r\n\r\n public init() {\r\n if (this._initialized) {\r\n return;\r\n }\r\n\r\n this._auth.accessClaims$.pipe(filterNull(), take(1)).subscribe(async () => {\r\n // This GQL fetches both the user context and other data needed for\r\n // authorization/navigation (e.g. company data) on initial site load\r\n await firstValueOrUndefined(this._global.fetch().pipe(take(1)));\r\n });\r\n\r\n this._initialized = true;\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this._onDestroy$.next(null);\r\n this._onDestroy$.complete();\r\n }\r\n\r\n private _fetch() {\r\n return this._store.upsertEntitiesFromGraphQL(this._gql);\r\n }\r\n}\r\n","import { Injectable, OnDestroy } from '@angular/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { combineLatest, Observable, of, ReplaySubject, Subject } from 'rxjs';\r\nimport {\r\n debounceTime,\r\n distinctUntilChanged,\r\n filter,\r\n map,\r\n share,\r\n switchMap,\r\n takeUntil,\r\n withLatestFrom,\r\n} from 'rxjs/operators';\r\nimport { UserRole } from 'src/graphql/generated/graphql.generated';\r\nimport { PermissionsService } from 'src/lib/amg-authorization/permissions.service';\r\nimport { patchTelemetryProps } from 'src/lib/tcs-app-insights/app-insights-util';\r\nimport { UserViewModel } from 'src/models/person-view-model';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { selectCompanyById } from 'src/store/entityStores/company-selectors';\r\nimport {\r\n selectPersonByEmail,\r\n selectPersonByEmployeeId,\r\n} from 'src/store/entityStores/person-selectors';\r\nimport { selectAccessibleItemEntitiesByPersonId } from 'src/store/generated/accessible-item-record.generated';\r\nimport { PersonEntityFetchService } from 'src/store/generated/client-sync.generated';\r\nimport { PersonProps } from 'src/store/generated/person-record.generated';\r\nimport { StoreService } from 'src/store/store.service';\r\nimport { undefinedOrSwitchMap } from 'src/util/rxjs/operators';\r\nimport { filterNull } from 'src/util/rxjs/operators/filter-null';\r\nimport { getTrailingDigits } from 'src/util/string';\r\nimport { isEqual } from 'lodash-es';\r\nimport { TcsPermission } from '../../app/shared/authorization/permissions';\r\nimport { AppInsightsService } from '../tcs-app-insights/app-insights-initializer.service';\r\nimport { NewRelicService } from '../tcs-new-relic/new-relic-initializer.service';\r\nimport { AuthenticationService } from './authentication.service';\r\nimport { ImpersonationService } from './impersonation.service';\r\nimport { UserEmailService } from './user-email.service';\r\nimport { UserDataContextService } from './user-data-context.service';\r\n\r\ninterface IUserService {\r\n /**\r\n * The authenticated identity\r\n */\r\n readonly loggedInUser$: Observable;\r\n\r\n /**\r\n * The identity of the user being impersonated\r\n */\r\n readonly impersonatedUser$: Observable;\r\n\r\n /**\r\n * The identity of the current user - either the impersonated identity if a user is being impersonated or the current authenticated identity\r\n */\r\n readonly user$: Observable;\r\n\r\n /**\r\n * The current value of user$\r\n */\r\n readonly user: UserViewModel | undefined;\r\n\r\n hasPermissionAnyScope(permission: TcsPermission): Observable;\r\n hasGlobalRole(role: UserRole): Observable;\r\n}\r\n\r\nfunction getUserViewModel(person$: Observable, store: Store) {\r\n const company$ = person$.pipe(\r\n undefinedOrSwitchMap((p) => store.select(selectCompanyById(p.companyId))),\r\n filterNull(),\r\n );\r\n const authUser$ = person$.pipe(\r\n withLatestFrom(company$),\r\n switchMap(([p, c]) => {\r\n if (p == null) {\r\n return of(undefined);\r\n }\r\n return store\r\n .select(selectAccessibleItemEntitiesByPersonId(p.id))\r\n .pipe(map((ai) => new UserViewModel(p, c.companyCode, ai.toArray())));\r\n }),\r\n );\r\n return authUser$;\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class UserService implements IUserService, OnDestroy {\r\n private _loggedInUser$ = new ReplaySubject(1);\r\n private _impersonatedUser$ = new ReplaySubject(1);\r\n private _user$ = new ReplaySubject(1);\r\n private _user: UserViewModel | undefined;\r\n private _onDestroy$ = new Subject();\r\n\r\n /** Only updates when the user id changes */\r\n get distinctUser$() {\r\n return this._user$.pipe(distinctUntilChanged((a, b) => a?.id === b?.id));\r\n }\r\n\r\n get user(): UserViewModel | undefined {\r\n return this._user;\r\n }\r\n\r\n get loggedInUser$(): Observable {\r\n return this._loggedInUser$.asObservable();\r\n }\r\n\r\n get impersonatedUser$(): Observable {\r\n return this._impersonatedUser$.asObservable();\r\n }\r\n\r\n get user$(): Observable {\r\n return this._user$.asObservable();\r\n }\r\n\r\n get userId$(): Observable {\r\n return this.distinctUser$.pipe(\r\n map((u) => u?.id),\r\n distinctUntilChanged(),\r\n );\r\n }\r\n\r\n get userDetails$() {\r\n return this.user$.pipe(\r\n map((user) => {\r\n if (user != null) {\r\n return {\r\n name: `${user.firstName} ${user.lastName}`,\r\n emailaddress: user.email == null ? 'Unknown' : user.email,\r\n companyCode: user.companyCode,\r\n };\r\n }\r\n }),\r\n );\r\n }\r\n\r\n public loggedInUserHasPermissionAnyScope(permission: TcsPermission): Observable {\r\n return this.loggedInUser$.pipe(\r\n map((u) => u != null && u.hasPermissionAnyScope(this._permissionsService, permission)),\r\n );\r\n }\r\n\r\n public hasAccessibleCompany(companyId: string) {\r\n return this.user$.pipe(map((u) => u != null && u.hasAccessibleCompany(companyId)));\r\n }\r\n\r\n public hasPermissionAnyGlobalRole(permission: TcsPermission) {\r\n return this.user$.pipe(\r\n map((u) => u != null && u.hasPermissionAnyGlobalRole(this._permissionsService, permission)),\r\n );\r\n }\r\n\r\n public hasPermissionAnyScope(permission: TcsPermission) {\r\n return this.user$.pipe(\r\n map((u) => u != null && u.hasPermissionAnyScope(this._permissionsService, permission)),\r\n );\r\n }\r\n\r\n public hasRoleAnyScope(role: UserRole) {\r\n return this.user$.pipe(map((u) => u != null && u.hasRoleAnyScope(role)));\r\n }\r\n\r\n public hasAnyRoleAnyScope(roles: UserRole[]) {\r\n return this.user$.pipe(map((u) => u != null && u.hasAnyRoleAnyScope(roles)));\r\n }\r\n\r\n public hasGlobalRole(role: UserRole) {\r\n return this.user$.pipe(map((u) => u != null && u.hasGlobalRole(role)));\r\n }\r\n\r\n public hasAnyGlobalRole(roles: UserRole[]) {\r\n return this.user$.pipe(map((u) => u != null && u.hasAnyGlobalRole(roles)));\r\n }\r\n\r\n public isImpersonating() {\r\n return combineLatest([this.loggedInUser$, this.user$]).pipe(\r\n map(([loggedInUser, user]) => {\r\n if (user == null || loggedInUser == null) {\r\n return false;\r\n }\r\n\r\n return user.id !== loggedInUser.id;\r\n }),\r\n );\r\n }\r\n\r\n constructor(\r\n private _permissionsService: PermissionsService,\r\n private _impersonation: ImpersonationService,\r\n private _store: StoreService,\r\n private _auth: AuthenticationService,\r\n private _personFetch: PersonEntityFetchService,\r\n private _userEmailService: UserEmailService,\r\n private _appInsightsService: AppInsightsService,\r\n private _newRelicService: NewRelicService,\r\n private _userDataContext: UserDataContextService,\r\n ) {\r\n const authenticated$ = combineLatest([this._auth.idClaims$, this._auth.accessClaims$]).pipe(\r\n debounceTime(10),\r\n map(([, accessToken]) => (accessToken == null ? undefined : accessToken)),\r\n distinctUntilChanged((a1, a2) => a1?.sub === a2?.sub),\r\n undefinedOrSwitchMap((accessClaims) => {\r\n const email = accessClaims?.email;\r\n if (email != null) {\r\n // email should be set ASAP.\r\n this._userEmailService.setLoginEmail(email);\r\n }\r\n const employeeNumber = accessClaims?.EmployeeNumber;\r\n const employeeId = employeeNumber != null ? getTrailingDigits(employeeNumber) : undefined;\r\n const byEmployeeId$ =\r\n employeeId != null\r\n ? this._store.store.select(selectPersonByEmployeeId(employeeId))\r\n : of(undefined);\r\n const byEmail$ =\r\n email != null ? this._store.store.select(selectPersonByEmail(email)) : of(undefined);\r\n\r\n const person$ = byEmployeeId$.pipe(\r\n switchMap((person) => (person != null ? of(person) : byEmail$)),\r\n map((person) => person?.id),\r\n distinctUntilChanged(),\r\n undefinedOrSwitchMap((personId) => this._personFetch.getById(personId)),\r\n switchMap(async (person) => {\r\n if (person != null) {\r\n // sync user data prior to creating the user view model\r\n await this._userDataContext.syncUserData();\r\n }\r\n return person;\r\n }),\r\n share(),\r\n );\r\n return getUserViewModel(person$, this._store.store);\r\n }),\r\n distinctUntilChanged((a, b) => isEqual(a?.toJS(), b?.toJS())),\r\n share(),\r\n );\r\n authenticated$.pipe(takeUntil(this._onDestroy$)).subscribe(this._loggedInUser$);\r\n\r\n const impersonated$ = combineLatest([\r\n this._impersonation.impersonatedUserId$.pipe(distinctUntilChanged()),\r\n authenticated$.pipe(distinctUntilChanged((a, b) => a?.id === b?.id)),\r\n ]).pipe(\r\n debounceTime(10),\r\n map(([impId, authn]) => (impId != null && impId !== authn?.id ? impId : undefined)),\r\n undefinedOrSwitchMap((impId) => {\r\n const person$ = this._personFetch.getById(impId).pipe(\r\n switchMap(async (person) => {\r\n if (person != null) {\r\n // sync user data prior to creating the user view model\r\n await this._userDataContext.syncUserData();\r\n }\r\n return person;\r\n }),\r\n share(),\r\n );\r\n return getUserViewModel(person$, _store.store);\r\n }),\r\n distinctUntilChanged((a, b) => isEqual(a?.toJS(), b?.toJS())),\r\n share(),\r\n );\r\n\r\n impersonated$.pipe(takeUntil(this._onDestroy$)).subscribe((imp) => {\r\n this._impersonatedUser$.next(imp);\r\n });\r\n\r\n const user$ = combineLatest([impersonated$, authenticated$]).pipe(\r\n filter(([imp, auth]) => (imp == null && auth != null) || (imp != null && auth != null)),\r\n debounceTime(10),\r\n map(([imp, auth]) => imp ?? auth),\r\n distinctUntilChanged((a, b) => isEqual(a?.toJS(), b?.toJS())),\r\n share(),\r\n );\r\n\r\n // emit each time data for the authenticated or impersonated user changes\r\n user$.pipe(takeUntil(this._onDestroy$)).subscribe((u) => {\r\n this._user = u;\r\n this._user$.next(u);\r\n });\r\n\r\n // emit once per user id change\r\n user$\r\n .pipe(\r\n distinctUntilChanged((a, b) => a?.id === b?.id),\r\n filterNull(),\r\n takeUntil(this._onDestroy$),\r\n )\r\n .subscribe((u) => {\r\n this._userEmailService.setLatestEmail(u.email);\r\n });\r\n\r\n this._appInsightsService.intialized$\r\n .pipe(\r\n switchMap(() => this.user$),\r\n map((u) => u?.email),\r\n distinctUntilChanged(),\r\n takeUntil(this._onDestroy$),\r\n )\r\n .subscribe((userEmail) => {\r\n if (userEmail != null) {\r\n this._appInsightsService.appInsights?.setAuthenticatedUserContext(userEmail);\r\n } else {\r\n this._appInsightsService.appInsights?.clearAuthenticatedUserContext();\r\n }\r\n });\r\n\r\n // New Relic - Set User Info\r\n this._newRelicService.intialized$\r\n .pipe(\r\n switchMap(() => this.user$),\r\n distinctUntilChanged(),\r\n takeUntil(this._onDestroy$),\r\n )\r\n .subscribe((user) => {\r\n if (user != null) {\r\n this._newRelicService.newRelic?.setUserId(user.email);\r\n this._newRelicService.newRelic?.setCustomAttribute('userCompanyCode', user.companyCode);\r\n } else {\r\n this._newRelicService.newRelic?.setUserId(null);\r\n this._newRelicService.newRelic?.setCustomAttribute('userCompanyCode', null);\r\n }\r\n });\r\n\r\n this._appInsightsService.intialized$.pipe(takeUntil(this._onDestroy$)).subscribe(() => {\r\n this._appInsightsService.appInsights?.addTelemetryInitializer((item) => {\r\n try {\r\n if (this.user != null) {\r\n patchTelemetryProps(item, {\r\n userId: this.user.email,\r\n user: this.user,\r\n userCompanyCode: this.user.companyCode,\r\n userEmail: this.user.email,\r\n });\r\n }\r\n } catch (err) {\r\n // eslint-disable-next-line no-console\r\n console.error('Failed to initialize telemetry with user data', err);\r\n }\r\n });\r\n\r\n this._appInsightsService.appInsights?.addTelemetryInitializer((item) => {\r\n try {\r\n if (this.user != null) {\r\n patchTelemetryProps(item, {\r\n userId: this.user.email,\r\n user: this.user,\r\n userCompanyCode: this.user.companyCode,\r\n userEmail: this.user.email,\r\n });\r\n }\r\n } catch (err) {\r\n // eslint-disable-next-line no-console\r\n console.error('Failed to initialize telemetry with user data', err);\r\n }\r\n });\r\n });\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this._onDestroy$.next(null);\r\n this._onDestroy$.complete();\r\n }\r\n}\r\n","/* eslint-disable @typescript-eslint/no-non-null-assertion */\r\n/* eslint-disable import/order */\r\n\r\nimport gql from 'graphql-tag';\r\nimport { Observable } from 'rxjs';\r\nimport { CommandResult } from 'src/util/graphql/command-result';\r\nimport {\r\n AddActivationRule,\r\n AddActivationRuleMutation,\r\n AddActivationRuleMutationVariables,\r\n DeleteActivationRule,\r\n DeleteActivationRuleMutation,\r\n DeleteActivationRuleMutationVariables,\r\n UpdateActivationRule,\r\n UpdateActivationRuleMutation,\r\n UpdateActivationRuleMutationVariables,\r\n AcknowledgeAlert,\r\n AcknowledgeAlertMutation,\r\n AcknowledgeAlertMutationVariables,\r\n AddActiveAlert,\r\n AddActiveAlertMutation,\r\n AddActiveAlertMutationVariables,\r\n CleanupActiveAlerts,\r\n CleanupActiveAlertsMutation,\r\n CleanupActiveAlertsMutationVariables,\r\n CleanupCardActiveAlerts,\r\n CleanupCardActiveAlertsMutation,\r\n CleanupCardActiveAlertsMutationVariables,\r\n DeleteActiveAlert,\r\n DeleteActiveAlertMutation,\r\n DeleteActiveAlertMutationVariables,\r\n SnoozeAlert,\r\n SnoozeAlertMutation,\r\n SnoozeAlertMutationVariables,\r\n UpdateActiveAlert,\r\n UpdateActiveAlertMutation,\r\n UpdateActiveAlertMutationVariables,\r\n DeleteActiveTimeline,\r\n DeleteActiveTimelineMutation,\r\n DeleteActiveTimelineMutationVariables,\r\n UpdateActiveTimeline,\r\n UpdateActiveTimelineMutation,\r\n UpdateActiveTimelineMutationVariables,\r\n AddAlert,\r\n AddAlertMutation,\r\n AddAlertMutationVariables,\r\n CopyAlert,\r\n CopyAlertMutation,\r\n CopyAlertMutationVariables,\r\n DeleteAlert,\r\n DeleteAlertMutation,\r\n DeleteAlertMutationVariables,\r\n UpdateAlert,\r\n UpdateAlertMutation,\r\n UpdateAlertMutationVariables,\r\n AddApplicationNotification,\r\n AddApplicationNotificationMutation,\r\n AddApplicationNotificationMutationVariables,\r\n DeleteApplicationNotification,\r\n DeleteApplicationNotificationMutation,\r\n DeleteApplicationNotificationMutationVariables,\r\n DismissApplicationNotification,\r\n DismissApplicationNotificationMutation,\r\n DismissApplicationNotificationMutationVariables,\r\n UpdateApplicationNotification,\r\n UpdateApplicationNotificationMutation,\r\n UpdateApplicationNotificationMutationVariables,\r\n AddAssignmentDelayedReason,\r\n AddAssignmentDelayedReasonMutation,\r\n AddAssignmentDelayedReasonMutationVariables,\r\n DeleteAssignmentDelayedReason,\r\n DeleteAssignmentDelayedReasonMutation,\r\n DeleteAssignmentDelayedReasonMutationVariables,\r\n UpdateAssignmentDelayedReason,\r\n UpdateAssignmentDelayedReasonMutation,\r\n UpdateAssignmentDelayedReasonMutationVariables,\r\n AddCancellationCategory,\r\n AddCancellationCategoryMutation,\r\n AddCancellationCategoryMutationVariables,\r\n DeleteCancellationCategory,\r\n DeleteCancellationCategoryMutation,\r\n DeleteCancellationCategoryMutationVariables,\r\n UpdateCancellationCategory,\r\n UpdateCancellationCategoryMutation,\r\n UpdateCancellationCategoryMutationVariables,\r\n AddCancellationReason,\r\n AddCancellationReasonMutation,\r\n AddCancellationReasonMutationVariables,\r\n DeleteCancellationReason,\r\n DeleteCancellationReasonMutation,\r\n DeleteCancellationReasonMutationVariables,\r\n UpdateCancellationReason,\r\n UpdateCancellationReasonMutation,\r\n UpdateCancellationReasonMutationVariables,\r\n AddCancellationSecondaryReason,\r\n AddCancellationSecondaryReasonMutation,\r\n AddCancellationSecondaryReasonMutationVariables,\r\n DeleteCancellationSecondaryReason,\r\n DeleteCancellationSecondaryReasonMutation,\r\n DeleteCancellationSecondaryReasonMutationVariables,\r\n UpdateCancellationSecondaryReason,\r\n UpdateCancellationSecondaryReasonMutation,\r\n UpdateCancellationSecondaryReasonMutationVariables,\r\n AddCardLink,\r\n AddCardLinkMutation,\r\n AddCardLinkMutationVariables,\r\n DeleteCardLink,\r\n DeleteCardLinkMutation,\r\n DeleteCardLinkMutationVariables,\r\n UpdateCardLink,\r\n UpdateCardLinkMutation,\r\n UpdateCardLinkMutationVariables,\r\n AddCardNoteArchive,\r\n AddCardNoteArchiveMutation,\r\n AddCardNoteArchiveMutationVariables,\r\n DeleteCardNoteArchive,\r\n DeleteCardNoteArchiveMutation,\r\n DeleteCardNoteArchiveMutationVariables,\r\n UpdateCardNoteArchive,\r\n UpdateCardNoteArchiveMutation,\r\n UpdateCardNoteArchiveMutationVariables,\r\n AddCardNote,\r\n AddCardNoteMutation,\r\n AddCardNoteMutationVariables,\r\n DeleteCardNote,\r\n DeleteCardNoteMutation,\r\n DeleteCardNoteMutationVariables,\r\n UpdateCardNote,\r\n UpdateCardNoteMutation,\r\n UpdateCardNoteMutationVariables,\r\n AddCardReOpenReason,\r\n AddCardReOpenReasonMutation,\r\n AddCardReOpenReasonMutationVariables,\r\n DeleteCardReOpenReason,\r\n DeleteCardReOpenReasonMutation,\r\n DeleteCardReOpenReasonMutationVariables,\r\n UpdateCardReOpenReason,\r\n UpdateCardReOpenReasonMutation,\r\n UpdateCardReOpenReasonMutationVariables,\r\n AddCard,\r\n AddCardMutation,\r\n AddCardMutationVariables,\r\n ChangeCardCallStatus,\r\n ChangeCardCallStatusMutation,\r\n ChangeCardCallStatusMutationVariables,\r\n ChangeUnit,\r\n ChangeUnitMutation,\r\n ChangeUnitMutationVariables,\r\n CleanupCards,\r\n CleanupCardsMutation,\r\n CleanupCardsMutationVariables,\r\n CloseCard,\r\n CloseCardMutation,\r\n CloseCardMutationVariables,\r\n CreateSystemCrewNotification,\r\n CreateSystemCrewNotificationMutation,\r\n CreateSystemCrewNotificationMutationVariables,\r\n DeleteCard,\r\n DeleteCardMutation,\r\n DeleteCardMutationVariables,\r\n GenerateCardReport,\r\n GenerateCardReportMutation,\r\n GenerateCardReportMutationVariables,\r\n GenerateCardSummaryChange,\r\n GenerateCardSummaryChangeMutation,\r\n GenerateCardSummaryChangeMutationVariables,\r\n GenerateCardSummaryChangeV2,\r\n GenerateCardSummaryChangeV2Mutation,\r\n GenerateCardSummaryChangeV2MutationVariables,\r\n LinkCards,\r\n LinkCardsMutation,\r\n LinkCardsMutationVariables,\r\n ReOpenCard,\r\n ReOpenCardMutation,\r\n ReOpenCardMutationVariables,\r\n RequestAdditionalUnits,\r\n RequestAdditionalUnitsMutation,\r\n RequestAdditionalUnitsMutationVariables,\r\n SendPatientInfo,\r\n SendPatientInfoMutation,\r\n SendPatientInfoMutationVariables,\r\n SetCardLockStatus,\r\n SetCardLockStatusMutation,\r\n SetCardLockStatusMutationVariables,\r\n UnDeleteCard,\r\n UnDeleteCardMutation,\r\n UnDeleteCardMutationVariables,\r\n UpdateCard,\r\n UpdateCardMutation,\r\n UpdateCardMutationVariables,\r\n UpdateCardBillable,\r\n UpdateCardBillableMutation,\r\n UpdateCardBillableMutationVariables,\r\n UpdateCardDiversionType,\r\n UpdateCardDiversionTypeMutation,\r\n UpdateCardDiversionTypeMutationVariables,\r\n UpdateCardSearchIndex,\r\n UpdateCardSearchIndexMutation,\r\n UpdateCardSearchIndexMutationVariables,\r\n UpdateGmrCadNumber,\r\n UpdateGmrCadNumberMutation,\r\n UpdateGmrCadNumberMutationVariables,\r\n UpdatePlannedCardCompletionTime,\r\n UpdatePlannedCardCompletionTimeMutation,\r\n UpdatePlannedCardCompletionTimeMutationVariables,\r\n AddConfigurationSetting,\r\n AddConfigurationSettingMutation,\r\n AddConfigurationSettingMutationVariables,\r\n UpdateConfigurationSetting,\r\n UpdateConfigurationSettingMutation,\r\n UpdateConfigurationSettingMutationVariables,\r\n AddDeclineCategory,\r\n AddDeclineCategoryMutation,\r\n AddDeclineCategoryMutationVariables,\r\n DeleteDeclineCategory,\r\n DeleteDeclineCategoryMutation,\r\n DeleteDeclineCategoryMutationVariables,\r\n UpdateDeclineCategory,\r\n UpdateDeclineCategoryMutation,\r\n UpdateDeclineCategoryMutationVariables,\r\n AddDeclineReason,\r\n AddDeclineReasonMutation,\r\n AddDeclineReasonMutationVariables,\r\n DeleteDeclineReason,\r\n DeleteDeclineReasonMutation,\r\n DeleteDeclineReasonMutationVariables,\r\n UpdateDeclineReason,\r\n UpdateDeclineReasonMutation,\r\n UpdateDeclineReasonMutationVariables,\r\n AddDeclineSecondaryReason,\r\n AddDeclineSecondaryReasonMutation,\r\n AddDeclineSecondaryReasonMutationVariables,\r\n DeleteDeclineSecondaryReason,\r\n DeleteDeclineSecondaryReasonMutation,\r\n DeleteDeclineSecondaryReasonMutationVariables,\r\n UpdateDeclineSecondaryReason,\r\n UpdateDeclineSecondaryReasonMutation,\r\n UpdateDeclineSecondaryReasonMutationVariables,\r\n AddDiversionReason,\r\n AddDiversionReasonMutation,\r\n AddDiversionReasonMutationVariables,\r\n DeleteDiversionReason,\r\n DeleteDiversionReasonMutation,\r\n DeleteDiversionReasonMutationVariables,\r\n UpdateDiversionReason,\r\n UpdateDiversionReasonMutation,\r\n UpdateDiversionReasonMutationVariables,\r\n AddEscortRequest,\r\n AddEscortRequestMutation,\r\n AddEscortRequestMutationVariables,\r\n DeleteEscortRequest,\r\n DeleteEscortRequestMutation,\r\n DeleteEscortRequestMutationVariables,\r\n UpdateEscortRequest,\r\n UpdateEscortRequestMutation,\r\n UpdateEscortRequestMutationVariables,\r\n MakeEstimatedDurationOfficial,\r\n MakeEstimatedDurationOfficialMutation,\r\n MakeEstimatedDurationOfficialMutationVariables,\r\n UpdateEstimatedDurations,\r\n UpdateEstimatedDurationsMutation,\r\n UpdateEstimatedDurationsMutationVariables,\r\n UpdateTripLegDuration,\r\n UpdateTripLegDurationMutation,\r\n UpdateTripLegDurationMutationVariables,\r\n UpdateWaypointDuration,\r\n UpdateWaypointDurationMutation,\r\n UpdateWaypointDurationMutationVariables,\r\n AddExternalAction,\r\n AddExternalActionMutation,\r\n AddExternalActionMutationVariables,\r\n CleanupPendingExternalActions,\r\n CleanupPendingExternalActionsMutation,\r\n CleanupPendingExternalActionsMutationVariables,\r\n DeleteExternalAction,\r\n DeleteExternalActionMutation,\r\n DeleteExternalActionMutationVariables,\r\n DisregardExternalAction,\r\n DisregardExternalActionMutation,\r\n DisregardExternalActionMutationVariables,\r\n UpdateExternalAction,\r\n UpdateExternalActionMutation,\r\n UpdateExternalActionMutationVariables,\r\n AddExternalActionType,\r\n AddExternalActionTypeMutation,\r\n AddExternalActionTypeMutationVariables,\r\n DeleteExternalActionType,\r\n DeleteExternalActionTypeMutation,\r\n DeleteExternalActionTypeMutationVariables,\r\n UpdateExternalActionType,\r\n UpdateExternalActionTypeMutation,\r\n UpdateExternalActionTypeMutationVariables,\r\n AddFacilityNonAcceptanceReason,\r\n AddFacilityNonAcceptanceReasonMutation,\r\n AddFacilityNonAcceptanceReasonMutationVariables,\r\n DeleteFacilityNonAcceptanceReason,\r\n DeleteFacilityNonAcceptanceReasonMutation,\r\n DeleteFacilityNonAcceptanceReasonMutationVariables,\r\n UpdateFacilityNonAcceptanceReason,\r\n UpdateFacilityNonAcceptanceReasonMutation,\r\n UpdateFacilityNonAcceptanceReasonMutationVariables,\r\n AddFirewallRule,\r\n AddFirewallRuleMutation,\r\n AddFirewallRuleMutationVariables,\r\n DeleteFirewallRule,\r\n DeleteFirewallRuleMutation,\r\n DeleteFirewallRuleMutationVariables,\r\n UpdateFirewallRule,\r\n UpdateFirewallRuleMutation,\r\n UpdateFirewallRuleMutationVariables,\r\n AddFlightFollowingReport,\r\n AddFlightFollowingReportMutation,\r\n AddFlightFollowingReportMutationVariables,\r\n DeleteFlightFollowingReport,\r\n DeleteFlightFollowingReportMutation,\r\n DeleteFlightFollowingReportMutationVariables,\r\n UpdateFlightFollowingReport,\r\n UpdateFlightFollowingReportMutation,\r\n UpdateFlightFollowingReportMutationVariables,\r\n DeleteLocationHazardAttachment,\r\n DeleteLocationHazardAttachmentMutation,\r\n DeleteLocationHazardAttachmentMutationVariables,\r\n GenerateLocationHazardAttachmentUrl,\r\n GenerateLocationHazardAttachmentUrlMutation,\r\n GenerateLocationHazardAttachmentUrlMutationVariables,\r\n AddLocationHazard,\r\n AddLocationHazardMutation,\r\n AddLocationHazardMutationVariables,\r\n DeleteLocationHazard,\r\n DeleteLocationHazardMutation,\r\n DeleteLocationHazardMutationVariables,\r\n UpdateLocationHazard,\r\n UpdateLocationHazardMutation,\r\n UpdateLocationHazardMutationVariables,\r\n AddMedicalControlContactLogEntry,\r\n AddMedicalControlContactLogEntryMutation,\r\n AddMedicalControlContactLogEntryMutationVariables,\r\n DeleteMedicalControlContactLogEntry,\r\n DeleteMedicalControlContactLogEntryMutation,\r\n DeleteMedicalControlContactLogEntryMutationVariables,\r\n UpdateMedicalControlContactLogEntry,\r\n UpdateMedicalControlContactLogEntryMutation,\r\n UpdateMedicalControlContactLogEntryMutationVariables,\r\n AddMessageStatusUpdate,\r\n AddMessageStatusUpdateMutation,\r\n AddMessageStatusUpdateMutationVariables,\r\n AddNextDueType,\r\n AddNextDueTypeMutation,\r\n AddNextDueTypeMutationVariables,\r\n DeleteNextDueType,\r\n DeleteNextDueTypeMutation,\r\n DeleteNextDueTypeMutationVariables,\r\n UpdateNextDueType,\r\n UpdateNextDueTypeMutation,\r\n UpdateNextDueTypeMutationVariables,\r\n AddNonReferralReason,\r\n AddNonReferralReasonMutation,\r\n AddNonReferralReasonMutationVariables,\r\n DeleteNonReferralReason,\r\n DeleteNonReferralReasonMutation,\r\n DeleteNonReferralReasonMutationVariables,\r\n UpdateNonReferralReason,\r\n UpdateNonReferralReasonMutation,\r\n UpdateNonReferralReasonMutationVariables,\r\n AddNotificationGroupMember,\r\n AddNotificationGroupMemberMutation,\r\n AddNotificationGroupMemberMutationVariables,\r\n DeleteNotificationGroupMember,\r\n DeleteNotificationGroupMemberMutation,\r\n DeleteNotificationGroupMemberMutationVariables,\r\n UpdateNotificationGroupMember,\r\n UpdateNotificationGroupMemberMutation,\r\n UpdateNotificationGroupMemberMutationVariables,\r\n AddNotificationGroup,\r\n AddNotificationGroupMutation,\r\n AddNotificationGroupMutationVariables,\r\n DeleteNotificationGroup,\r\n DeleteNotificationGroupMutation,\r\n DeleteNotificationGroupMutationVariables,\r\n UpdateNotificationGroup,\r\n UpdateNotificationGroupMutation,\r\n UpdateNotificationGroupMutationVariables,\r\n UpsertPersonNotificationGroups,\r\n UpsertPersonNotificationGroupsMutation,\r\n UpsertPersonNotificationGroupsMutationVariables,\r\n AddNotificationRecipient,\r\n AddNotificationRecipientMutation,\r\n AddNotificationRecipientMutationVariables,\r\n AddNotificationRecipients,\r\n AddNotificationRecipientsMutation,\r\n AddNotificationRecipientsMutationVariables,\r\n DeleteNotificationRecipient,\r\n DeleteNotificationRecipientMutation,\r\n DeleteNotificationRecipientMutationVariables,\r\n DeleteNotificationRecipients,\r\n DeleteNotificationRecipientsMutation,\r\n DeleteNotificationRecipientsMutationVariables,\r\n UpdateNotificationRecipient,\r\n UpdateNotificationRecipientMutation,\r\n UpdateNotificationRecipientMutationVariables,\r\n UpdateRecipientMessageStatus,\r\n UpdateRecipientMessageStatusMutation,\r\n UpdateRecipientMessageStatusMutationVariables,\r\n AddNotification,\r\n AddNotificationMutation,\r\n AddNotificationMutationVariables,\r\n DeleteNotification,\r\n DeleteNotificationMutation,\r\n DeleteNotificationMutationVariables,\r\n SendNotification,\r\n SendNotificationMutation,\r\n SendNotificationMutationVariables,\r\n UpdateNotification,\r\n UpdateNotificationMutation,\r\n UpdateNotificationMutationVariables,\r\n AddNotificationSubscription,\r\n AddNotificationSubscriptionMutation,\r\n AddNotificationSubscriptionMutationVariables,\r\n DeleteNotificationSubscription,\r\n DeleteNotificationSubscriptionMutation,\r\n DeleteNotificationSubscriptionMutationVariables,\r\n UpdateNotificationSubscription,\r\n UpdateNotificationSubscriptionMutation,\r\n UpdateNotificationSubscriptionMutationVariables,\r\n AddNotificationTemplate,\r\n AddNotificationTemplateMutation,\r\n AddNotificationTemplateMutationVariables,\r\n CopyNotificationTemplate,\r\n CopyNotificationTemplateMutation,\r\n CopyNotificationTemplateMutationVariables,\r\n DeleteNotificationTemplate,\r\n DeleteNotificationTemplateMutation,\r\n DeleteNotificationTemplateMutationVariables,\r\n UpdateNotificationTemplate,\r\n UpdateNotificationTemplateMutation,\r\n UpdateNotificationTemplateMutationVariables,\r\n AddOemActivity,\r\n AddOemActivityMutation,\r\n AddOemActivityMutationVariables,\r\n DeleteOemActivity,\r\n DeleteOemActivityMutation,\r\n DeleteOemActivityMutationVariables,\r\n UpdateOemActivity,\r\n UpdateOemActivityMutation,\r\n UpdateOemActivityMutationVariables,\r\n AddOemAsset,\r\n AddOemAssetMutation,\r\n AddOemAssetMutationVariables,\r\n DeleteOemAsset,\r\n DeleteOemAssetMutation,\r\n DeleteOemAssetMutationVariables,\r\n UpdateOemAsset,\r\n UpdateOemAssetMutation,\r\n UpdateOemAssetMutationVariables,\r\n AddOemPlanChangeRequest,\r\n AddOemPlanChangeRequestMutation,\r\n AddOemPlanChangeRequestMutationVariables,\r\n DeleteOemPlanChangeRequest,\r\n DeleteOemPlanChangeRequestMutation,\r\n DeleteOemPlanChangeRequestMutationVariables,\r\n UpdateOemPlanChangeRequest,\r\n UpdateOemPlanChangeRequestMutation,\r\n UpdateOemPlanChangeRequestMutationVariables,\r\n AddOemPlan,\r\n AddOemPlanMutation,\r\n AddOemPlanMutationVariables,\r\n DeleteOemPlan,\r\n DeleteOemPlanMutation,\r\n DeleteOemPlanMutationVariables,\r\n UpdateOemPlan,\r\n UpdateOemPlanMutation,\r\n UpdateOemPlanMutationVariables,\r\n AddOfferAlgorithm,\r\n AddOfferAlgorithmMutation,\r\n AddOfferAlgorithmMutationVariables,\r\n CopyOfferAlgorithm,\r\n CopyOfferAlgorithmMutation,\r\n CopyOfferAlgorithmMutationVariables,\r\n DeleteOfferAlgorithm,\r\n DeleteOfferAlgorithmMutation,\r\n DeleteOfferAlgorithmMutationVariables,\r\n UpdateOfferAlgorithm,\r\n UpdateOfferAlgorithmMutation,\r\n UpdateOfferAlgorithmMutationVariables,\r\n ActivateUnit,\r\n ActivateUnitMutation,\r\n ActivateUnitMutationVariables,\r\n AddOperation,\r\n AddOperationMutation,\r\n AddOperationMutationVariables,\r\n ArriveVehicle,\r\n ArriveVehicleMutation,\r\n ArriveVehicleMutationVariables,\r\n CancelOperation,\r\n CancelOperationMutation,\r\n CancelOperationMutationVariables,\r\n ChangeVehicle,\r\n ChangeVehicleMutation,\r\n ChangeVehicleMutationVariables,\r\n CreateGroundRun,\r\n CreateGroundRunMutation,\r\n CreateGroundRunMutationVariables,\r\n CreateMaintenanceOperation,\r\n CreateMaintenanceOperationMutation,\r\n CreateMaintenanceOperationMutationVariables,\r\n CreateTrainingOperation,\r\n CreateTrainingOperationMutation,\r\n CreateTrainingOperationMutationVariables,\r\n DeclineOrAbortOperation,\r\n DeclineOrAbortOperationMutation,\r\n DeclineOrAbortOperationMutationVariables,\r\n DeleteOperation,\r\n DeleteOperationMutation,\r\n DeleteOperationMutationVariables,\r\n DepartVehicle,\r\n DepartVehicleMutation,\r\n DepartVehicleMutationVariables,\r\n PlaceUnitOnStandby,\r\n PlaceUnitOnStandbyMutation,\r\n PlaceUnitOnStandbyMutationVariables,\r\n RepositionUnit,\r\n RepositionUnitMutation,\r\n RepositionUnitMutationVariables,\r\n UndoArriveVehicle,\r\n UndoArriveVehicleMutation,\r\n UndoArriveVehicleMutationVariables,\r\n UndoDepartVehicle,\r\n UndoDepartVehicleMutation,\r\n UndoDepartVehicleMutationVariables,\r\n UpdateOperation,\r\n UpdateOperationMutation,\r\n UpdateOperationMutationVariables,\r\n UpdateOperationContactInfo,\r\n UpdateOperationContactInfoMutation,\r\n UpdateOperationContactInfoMutationVariables,\r\n UpdateRiskAnalysis,\r\n UpdateRiskAnalysisMutation,\r\n UpdateRiskAnalysisMutationVariables,\r\n AddOutOfServiceEventNote,\r\n AddOutOfServiceEventNoteMutation,\r\n AddOutOfServiceEventNoteMutationVariables,\r\n DeleteOutOfServiceEventNote,\r\n DeleteOutOfServiceEventNoteMutation,\r\n DeleteOutOfServiceEventNoteMutationVariables,\r\n UpdateOutOfServiceEventNote,\r\n UpdateOutOfServiceEventNoteMutation,\r\n UpdateOutOfServiceEventNoteMutationVariables,\r\n AddOutOfServiceEvent,\r\n AddOutOfServiceEventMutation,\r\n AddOutOfServiceEventMutationVariables,\r\n AddUnitOutOfServiceEvent,\r\n AddUnitOutOfServiceEventMutation,\r\n AddUnitOutOfServiceEventMutationVariables,\r\n AddVehicleOutOfServiceEvent,\r\n AddVehicleOutOfServiceEventMutation,\r\n AddVehicleOutOfServiceEventMutationVariables,\r\n BeginOutOfServiceEvent,\r\n BeginOutOfServiceEventMutation,\r\n BeginOutOfServiceEventMutationVariables,\r\n DeleteOutOfServiceEvent,\r\n DeleteOutOfServiceEventMutation,\r\n DeleteOutOfServiceEventMutationVariables,\r\n EndOutOfServiceEvent,\r\n EndOutOfServiceEventMutation,\r\n EndOutOfServiceEventMutationVariables,\r\n UpdateOutOfServiceEvent,\r\n UpdateOutOfServiceEventMutation,\r\n UpdateOutOfServiceEventMutationVariables,\r\n AddOutOfServiceReason,\r\n AddOutOfServiceReasonMutation,\r\n AddOutOfServiceReasonMutationVariables,\r\n DeleteOutOfServiceReason,\r\n DeleteOutOfServiceReasonMutation,\r\n DeleteOutOfServiceReasonMutationVariables,\r\n UpdateOutOfServiceReason,\r\n UpdateOutOfServiceReasonMutation,\r\n UpdateOutOfServiceReasonMutationVariables,\r\n AddOutOfServiceSecondaryReason,\r\n AddOutOfServiceSecondaryReasonMutation,\r\n AddOutOfServiceSecondaryReasonMutationVariables,\r\n DeleteOutOfServiceSecondaryReason,\r\n DeleteOutOfServiceSecondaryReasonMutation,\r\n DeleteOutOfServiceSecondaryReasonMutationVariables,\r\n UpdateOutOfServiceSecondaryReason,\r\n UpdateOutOfServiceSecondaryReasonMutation,\r\n UpdateOutOfServiceSecondaryReasonMutationVariables,\r\n AcknowledgePassdownLog,\r\n AcknowledgePassdownLogMutation,\r\n AcknowledgePassdownLogMutationVariables,\r\n AddPassdownLog,\r\n AddPassdownLogMutation,\r\n AddPassdownLogMutationVariables,\r\n DeletePassdownLog,\r\n DeletePassdownLogMutation,\r\n DeletePassdownLogMutationVariables,\r\n UpdatePassdownLog,\r\n UpdatePassdownLogMutation,\r\n UpdatePassdownLogMutationVariables,\r\n AddPositionReportAlert,\r\n AddPositionReportAlertMutation,\r\n AddPositionReportAlertMutationVariables,\r\n DeletePositionReportAlert,\r\n DeletePositionReportAlertMutation,\r\n DeletePositionReportAlertMutationVariables,\r\n UpdatePositionReportAlert,\r\n UpdatePositionReportAlertMutation,\r\n UpdatePositionReportAlertMutationVariables,\r\n AddPositionReport,\r\n AddPositionReportMutation,\r\n AddPositionReportMutationVariables,\r\n ConfirmPositionReport,\r\n ConfirmPositionReportMutation,\r\n ConfirmPositionReportMutationVariables,\r\n DeletePositionReport,\r\n DeletePositionReportMutation,\r\n DeletePositionReportMutationVariables,\r\n UpdatePositionReport,\r\n UpdatePositionReportMutation,\r\n UpdatePositionReportMutationVariables,\r\n UpsertQuestionChoice,\r\n UpsertQuestionChoiceMutation,\r\n UpsertQuestionChoiceMutationVariables,\r\n AddQuestionnaireQuestionResponseNote,\r\n AddQuestionnaireQuestionResponseNoteMutation,\r\n AddQuestionnaireQuestionResponseNoteMutationVariables,\r\n DeleteQuestionnaireQuestionResponseNote,\r\n DeleteQuestionnaireQuestionResponseNoteMutation,\r\n DeleteQuestionnaireQuestionResponseNoteMutationVariables,\r\n UpdateQuestionnaireQuestionResponseNote,\r\n UpdateQuestionnaireQuestionResponseNoteMutation,\r\n UpdateQuestionnaireQuestionResponseNoteMutationVariables,\r\n UpsertQuestionnaireQuestionResponseNote,\r\n UpsertQuestionnaireQuestionResponseNoteMutation,\r\n UpsertQuestionnaireQuestionResponseNoteMutationVariables,\r\n AddQuestionnaireQuestionResponse,\r\n AddQuestionnaireQuestionResponseMutation,\r\n AddQuestionnaireQuestionResponseMutationVariables,\r\n DeleteQuestionnaireQuestionResponse,\r\n DeleteQuestionnaireQuestionResponseMutation,\r\n DeleteQuestionnaireQuestionResponseMutationVariables,\r\n UpdateQuestionnaireQuestionResponse,\r\n UpdateQuestionnaireQuestionResponseMutation,\r\n UpdateQuestionnaireQuestionResponseMutationVariables,\r\n UpdateQuestionnaireQuestionResponseDeep,\r\n UpdateQuestionnaireQuestionResponseDeepMutation,\r\n UpdateQuestionnaireQuestionResponseDeepMutationVariables,\r\n AddQuestionnaireResponse,\r\n AddQuestionnaireResponseMutation,\r\n AddQuestionnaireResponseMutationVariables,\r\n DeleteQuestionnaireResponse,\r\n DeleteQuestionnaireResponseMutation,\r\n DeleteQuestionnaireResponseMutationVariables,\r\n SubmitQuestionnaireResponse,\r\n SubmitQuestionnaireResponseMutation,\r\n SubmitQuestionnaireResponseMutationVariables,\r\n UpdateQuestionnaireResponse,\r\n UpdateQuestionnaireResponseMutation,\r\n UpdateQuestionnaireResponseMutationVariables,\r\n UpdateQuestionnaireResponseDeep,\r\n UpdateQuestionnaireResponseDeepMutation,\r\n UpdateQuestionnaireResponseDeepMutationVariables,\r\n AddQuestionnaire,\r\n AddQuestionnaireMutation,\r\n AddQuestionnaireMutationVariables,\r\n DeleteQuestionnaire,\r\n DeleteQuestionnaireMutation,\r\n DeleteQuestionnaireMutationVariables,\r\n UpdateQuestionnaire,\r\n UpdateQuestionnaireMutation,\r\n UpdateQuestionnaireMutationVariables,\r\n DeleteQuestionnaireSectionQuestion,\r\n DeleteQuestionnaireSectionQuestionMutation,\r\n DeleteQuestionnaireSectionQuestionMutationVariables,\r\n UpsertQuestionnaireSectionQuestion,\r\n UpsertQuestionnaireSectionQuestionMutation,\r\n UpsertQuestionnaireSectionQuestionMutationVariables,\r\n DeleteQuestionnaireSection,\r\n DeleteQuestionnaireSectionMutation,\r\n DeleteQuestionnaireSectionMutationVariables,\r\n UpsertQuestionnaireSection,\r\n UpsertQuestionnaireSectionMutation,\r\n UpsertQuestionnaireSectionMutationVariables,\r\n AddQuestion,\r\n AddQuestionMutation,\r\n AddQuestionMutationVariables,\r\n DeleteQuestion,\r\n DeleteQuestionMutation,\r\n DeleteQuestionMutationVariables,\r\n UpdateQuestion,\r\n UpdateQuestionMutation,\r\n UpdateQuestionMutationVariables,\r\n AcceptReceivingFacilityRequest,\r\n AcceptReceivingFacilityRequestMutation,\r\n AcceptReceivingFacilityRequestMutationVariables,\r\n AddReceivingFacilityRequestDeclineHistory,\r\n AddReceivingFacilityRequestDeclineHistoryMutation,\r\n AddReceivingFacilityRequestDeclineHistoryMutationVariables,\r\n CancelReceivingFacilityRequest,\r\n CancelReceivingFacilityRequestMutation,\r\n CancelReceivingFacilityRequestMutationVariables,\r\n DeleteReceivingFacilityRequest,\r\n DeleteReceivingFacilityRequestMutation,\r\n DeleteReceivingFacilityRequestMutationVariables,\r\n DenyReceivingFacilityRequest,\r\n DenyReceivingFacilityRequestMutation,\r\n DenyReceivingFacilityRequestMutationVariables,\r\n DivertReceivingFacilityRequest,\r\n DivertReceivingFacilityRequestMutation,\r\n DivertReceivingFacilityRequestMutationVariables,\r\n ReferReceivingFacilityRequest,\r\n ReferReceivingFacilityRequestMutation,\r\n ReferReceivingFacilityRequestMutationVariables,\r\n AddRendezvousRequest,\r\n AddRendezvousRequestMutation,\r\n AddRendezvousRequestMutationVariables,\r\n DeleteRendezvousRequest,\r\n DeleteRendezvousRequestMutation,\r\n DeleteRendezvousRequestMutationVariables,\r\n UpdateRendezvousRequest,\r\n UpdateRendezvousRequestMutation,\r\n UpdateRendezvousRequestMutationVariables,\r\n AddRequesterRole,\r\n AddRequesterRoleMutation,\r\n AddRequesterRoleMutationVariables,\r\n DeleteRequesterRole,\r\n DeleteRequesterRoleMutation,\r\n DeleteRequesterRoleMutationVariables,\r\n UpdateRequesterRole,\r\n UpdateRequesterRoleMutation,\r\n UpdateRequesterRoleMutationVariables,\r\n UpdateRequester,\r\n UpdateRequesterMutation,\r\n UpdateRequesterMutationVariables,\r\n UpdateRequesterSpecialtyTeam,\r\n UpdateRequesterSpecialtyTeamMutation,\r\n UpdateRequesterSpecialtyTeamMutationVariables,\r\n UpdateTransferCenterCallInfo,\r\n UpdateTransferCenterCallInfoMutation,\r\n UpdateTransferCenterCallInfoMutationVariables,\r\n UpdateReceivingFacilityAutoAcceptance,\r\n UpdateReceivingFacilityAutoAcceptanceMutation,\r\n UpdateReceivingFacilityAutoAcceptanceMutationVariables,\r\n UpdateRequestLocation,\r\n UpdateRequestLocationMutation,\r\n UpdateRequestLocationMutationVariables,\r\n AddRequestPatient,\r\n AddRequestPatientMutation,\r\n AddRequestPatientMutationVariables,\r\n DeleteRequestPatient,\r\n DeleteRequestPatientMutation,\r\n DeleteRequestPatientMutationVariables,\r\n UpdateChiefComplaint,\r\n UpdateChiefComplaintMutation,\r\n UpdateChiefComplaintMutationVariables,\r\n UpdatePatientClinicalInfo,\r\n UpdatePatientClinicalInfoMutation,\r\n UpdatePatientClinicalInfoMutationVariables,\r\n UpdatePatientInfo,\r\n UpdatePatientInfoMutation,\r\n UpdatePatientInfoMutationVariables,\r\n UpdateRequestPatient,\r\n UpdateRequestPatientMutation,\r\n UpdateRequestPatientMutationVariables,\r\n AcknowledgeExternalRequest,\r\n AcknowledgeExternalRequestMutation,\r\n AcknowledgeExternalRequestMutationVariables,\r\n BeginAssignment,\r\n BeginAssignmentMutation,\r\n BeginAssignmentMutationVariables,\r\n CancelRequest,\r\n CancelRequestMutation,\r\n CancelRequestMutationVariables,\r\n CancelRequestFromTransferCenter,\r\n CancelRequestFromTransferCenterMutation,\r\n CancelRequestFromTransferCenterMutationVariables,\r\n ChangeCallType,\r\n ChangeCallTypeMutation,\r\n ChangeCallTypeMutationVariables,\r\n ChangeRequestCancellationReason,\r\n ChangeRequestCancellationReasonMutation,\r\n ChangeRequestCancellationReasonMutationVariables,\r\n ChangeRequestType,\r\n ChangeRequestTypeMutation,\r\n ChangeRequestTypeMutationVariables,\r\n CreateRequest,\r\n CreateRequestMutation,\r\n CreateRequestMutationVariables,\r\n DelayAssignment,\r\n DelayAssignmentMutation,\r\n DelayAssignmentMutationVariables,\r\n DuplicateRequest,\r\n DuplicateRequestMutation,\r\n DuplicateRequestMutationVariables,\r\n ReactivateRequest,\r\n ReactivateRequestMutation,\r\n ReactivateRequestMutationVariables,\r\n ReactivateRequestFromTransferCenter,\r\n ReactivateRequestFromTransferCenterMutation,\r\n ReactivateRequestFromTransferCenterMutationVariables,\r\n RecalculateCandidates,\r\n RecalculateCandidatesMutation,\r\n RecalculateCandidatesMutationVariables,\r\n UpdateRequest,\r\n UpdateRequestMutation,\r\n UpdateRequestMutationVariables,\r\n UpdateRequestAtlo,\r\n UpdateRequestAtloMutation,\r\n UpdateRequestAtloMutationVariables,\r\n UpdateRequestPublicUtilityInfo,\r\n UpdateRequestPublicUtilityInfoMutation,\r\n UpdateRequestPublicUtilityInfoMutationVariables,\r\n UpdateRequestRegion,\r\n UpdateRequestRegionMutation,\r\n UpdateRequestRegionMutationVariables,\r\n UpdateRequestSafetyQuestions,\r\n UpdateRequestSafetyQuestionsMutation,\r\n UpdateRequestSafetyQuestionsMutationVariables,\r\n UpdateRequestStandbyStatus,\r\n UpdateRequestStandbyStatusMutation,\r\n UpdateRequestStandbyStatusMutationVariables,\r\n AddTimelineItem,\r\n AddTimelineItemMutation,\r\n AddTimelineItemMutationVariables,\r\n DeleteTimelineItem,\r\n DeleteTimelineItemMutation,\r\n DeleteTimelineItemMutationVariables,\r\n UpdateTimelineItem,\r\n UpdateTimelineItemMutation,\r\n UpdateTimelineItemMutationVariables,\r\n UpsertTimelineItem,\r\n UpsertTimelineItemMutation,\r\n UpsertTimelineItemMutationVariables,\r\n AddTimeline,\r\n AddTimelineMutation,\r\n AddTimelineMutationVariables,\r\n DeleteTimeline,\r\n DeleteTimelineMutation,\r\n DeleteTimelineMutationVariables,\r\n UpdateTimeline,\r\n UpdateTimelineMutation,\r\n UpdateTimelineMutationVariables,\r\n AddEmsReport,\r\n AddEmsReportMutation,\r\n AddEmsReportMutationVariables,\r\n AddTimestamp,\r\n AddTimestampMutation,\r\n AddTimestampMutationVariables,\r\n DeleteTimestamp,\r\n DeleteTimestampMutation,\r\n DeleteTimestampMutationVariables,\r\n ReSendToDataWarehouse,\r\n ReSendToDataWarehouseMutation,\r\n ReSendToDataWarehouseMutationVariables,\r\n SendToImageTrend,\r\n SendToImageTrendMutation,\r\n SendToImageTrendMutationVariables,\r\n UpdateEmsReport,\r\n UpdateEmsReportMutation,\r\n UpdateEmsReportMutationVariables,\r\n UpdateTimestamp,\r\n UpdateTimestampMutation,\r\n UpdateTimestampMutationVariables,\r\n AddTimestampType,\r\n AddTimestampTypeMutation,\r\n AddTimestampTypeMutationVariables,\r\n DeleteTimestampType,\r\n DeleteTimestampTypeMutation,\r\n DeleteTimestampTypeMutationVariables,\r\n UpdateTimestampType,\r\n UpdateTimestampTypeMutation,\r\n UpdateTimestampTypeMutationVariables,\r\n DeliverTrackedMessage,\r\n DeliverTrackedMessageMutation,\r\n DeliverTrackedMessageMutationVariables,\r\n SendMessage,\r\n SendMessageMutation,\r\n SendMessageMutationVariables,\r\n UpdateTrackedMessage,\r\n UpdateTrackedMessageMutation,\r\n UpdateTrackedMessageMutationVariables,\r\n AddTransferReason,\r\n AddTransferReasonMutation,\r\n AddTransferReasonMutationVariables,\r\n DeleteTransferReason,\r\n DeleteTransferReasonMutation,\r\n DeleteTransferReasonMutationVariables,\r\n UpdateTransferReason,\r\n UpdateTransferReasonMutation,\r\n UpdateTransferReasonMutationVariables,\r\n UpdateTransportOfferOption,\r\n UpdateTransportOfferOptionMutation,\r\n UpdateTransportOfferOptionMutationVariables,\r\n AcceptTransportOffer,\r\n AcceptTransportOfferMutation,\r\n AcceptTransportOfferMutationVariables,\r\n AddCancellation,\r\n AddCancellationMutation,\r\n AddCancellationMutationVariables,\r\n AddDecline,\r\n AddDeclineMutation,\r\n AddDeclineMutationVariables,\r\n AddTransportOffer,\r\n AddTransportOfferMutation,\r\n AddTransportOfferMutationVariables,\r\n BeginTransportOffer,\r\n BeginTransportOfferMutation,\r\n BeginTransportOfferMutationVariables,\r\n CancelTransportOffer,\r\n CancelTransportOfferMutation,\r\n CancelTransportOfferMutationVariables,\r\n DeclineAndAssignNewTransportOffer,\r\n DeclineAndAssignNewTransportOfferMutation,\r\n DeclineAndAssignNewTransportOfferMutationVariables,\r\n DeclineTransportOffer,\r\n DeclineTransportOfferMutation,\r\n DeclineTransportOfferMutationVariables,\r\n DeclineTransportOfferAndDelayAssignment,\r\n DeclineTransportOfferAndDelayAssignmentMutation,\r\n DeclineTransportOfferAndDelayAssignmentMutationVariables,\r\n DeleteTransportOffer,\r\n DeleteTransportOfferMutation,\r\n DeleteTransportOfferMutationVariables,\r\n InitiateTransportCheck,\r\n InitiateTransportCheckMutation,\r\n InitiateTransportCheckMutationVariables,\r\n OfferWithBulkSkip,\r\n OfferWithBulkSkipMutation,\r\n OfferWithBulkSkipMutationVariables,\r\n ReferTransportOffer,\r\n ReferTransportOfferMutation,\r\n ReferTransportOfferMutationVariables,\r\n SkipTransportOffer,\r\n SkipTransportOfferMutation,\r\n SkipTransportOfferMutationVariables,\r\n UpdateCancellation,\r\n UpdateCancellationMutation,\r\n UpdateCancellationMutationVariables,\r\n UpdateDecline,\r\n UpdateDeclineMutation,\r\n UpdateDeclineMutationVariables,\r\n UpdateOfferRank,\r\n UpdateOfferRankMutation,\r\n UpdateOfferRankMutationVariables,\r\n UpdateSkip,\r\n UpdateSkipMutation,\r\n UpdateSkipMutationVariables,\r\n UpdateTransportOffer,\r\n UpdateTransportOfferMutation,\r\n UpdateTransportOfferMutationVariables,\r\n UpdateTransportOfferEta,\r\n UpdateTransportOfferEtaMutation,\r\n UpdateTransportOfferEtaMutationVariables,\r\n AddTransportReason,\r\n AddTransportReasonMutation,\r\n AddTransportReasonMutationVariables,\r\n DeleteTransportReason,\r\n DeleteTransportReasonMutation,\r\n DeleteTransportReasonMutationVariables,\r\n UpdateTransportReason,\r\n UpdateTransportReasonMutation,\r\n UpdateTransportReasonMutationVariables,\r\n AddManifestEntry,\r\n AddManifestEntryMutation,\r\n AddManifestEntryMutationVariables,\r\n DeleteManifestEntry,\r\n DeleteManifestEntryMutation,\r\n DeleteManifestEntryMutationVariables,\r\n UpdateManifestEntry,\r\n UpdateManifestEntryMutation,\r\n UpdateManifestEntryMutationVariables,\r\n UpdateOdometerReadings,\r\n UpdateOdometerReadingsMutation,\r\n UpdateOdometerReadingsMutationVariables,\r\n AddTripPassenger,\r\n AddTripPassengerMutation,\r\n AddTripPassengerMutationVariables,\r\n DeleteTripPassenger,\r\n DeleteTripPassengerMutation,\r\n DeleteTripPassengerMutationVariables,\r\n UpdateTripPassenger,\r\n UpdateTripPassengerMutation,\r\n UpdateTripPassengerMutationVariables,\r\n AddTrip,\r\n AddTripMutation,\r\n AddTripMutationVariables,\r\n AddTripLegManifestEntry,\r\n AddTripLegManifestEntryMutation,\r\n AddTripLegManifestEntryMutationVariables,\r\n CalculateEtas,\r\n CalculateEtasMutation,\r\n CalculateEtasMutationVariables,\r\n ConfirmManifest,\r\n ConfirmManifestMutation,\r\n ConfirmManifestMutationVariables,\r\n CreatePrecautionaryLanding,\r\n CreatePrecautionaryLandingMutation,\r\n CreatePrecautionaryLandingMutationVariables,\r\n CreatePrecautionaryLandingV2,\r\n CreatePrecautionaryLandingV2Mutation,\r\n CreatePrecautionaryLandingV2MutationVariables,\r\n DeleteTrip,\r\n DeleteTripMutation,\r\n DeleteTripMutationVariables,\r\n DeleteTripLegManifestEntry,\r\n DeleteTripLegManifestEntryMutation,\r\n DeleteTripLegManifestEntryMutationVariables,\r\n InsertWaypoint,\r\n InsertWaypointMutation,\r\n InsertWaypointMutationVariables,\r\n MergePostAndDropoffWaypoints,\r\n MergePostAndDropoffWaypointsMutation,\r\n MergePostAndDropoffWaypointsMutationVariables,\r\n MergeUnitOriginAndPickupWaypoints,\r\n MergeUnitOriginAndPickupWaypointsMutation,\r\n MergeUnitOriginAndPickupWaypointsMutationVariables,\r\n ModifyWaypoint,\r\n ModifyWaypointMutation,\r\n ModifyWaypointMutationVariables,\r\n RecalculateTripMileage,\r\n RecalculateTripMileageMutation,\r\n RecalculateTripMileageMutationVariables,\r\n RemoveWaypoint,\r\n RemoveWaypointMutation,\r\n RemoveWaypointMutationVariables,\r\n SplitUnitOriginAndPickupWaypoints,\r\n SplitUnitOriginAndPickupWaypointsMutation,\r\n SplitUnitOriginAndPickupWaypointsMutationVariables,\r\n SplitUnitPostAndDropoffWaypoints,\r\n SplitUnitPostAndDropoffWaypointsMutation,\r\n SplitUnitPostAndDropoffWaypointsMutationVariables,\r\n SwapWaypoint,\r\n SwapWaypointMutation,\r\n SwapWaypointMutationVariables,\r\n UpdateTrip,\r\n UpdateTripMutation,\r\n UpdateTripMutationVariables,\r\n AddUnitActivationRule,\r\n AddUnitActivationRuleMutation,\r\n AddUnitActivationRuleMutationVariables,\r\n DeleteUnitActivationRule,\r\n DeleteUnitActivationRuleMutation,\r\n DeleteUnitActivationRuleMutationVariables,\r\n UpdateUnitActivationRule,\r\n UpdateUnitActivationRuleMutation,\r\n UpdateUnitActivationRuleMutationVariables,\r\n AddUnitEMSystemMapping,\r\n AddUnitEMSystemMappingMutation,\r\n AddUnitEMSystemMappingMutationVariables,\r\n DeleteUnitEMSystemMapping,\r\n DeleteUnitEMSystemMappingMutation,\r\n DeleteUnitEMSystemMappingMutationVariables,\r\n UpdateUnitEMSystemMapping,\r\n UpdateUnitEMSystemMappingMutation,\r\n UpdateUnitEMSystemMappingMutationVariables,\r\n AddUnitNote,\r\n AddUnitNoteMutation,\r\n AddUnitNoteMutationVariables,\r\n DeleteUnitNote,\r\n DeleteUnitNoteMutation,\r\n DeleteUnitNoteMutationVariables,\r\n UpdateUnitNote,\r\n UpdateUnitNoteMutation,\r\n UpdateUnitNoteMutationVariables,\r\n AddUnitPosition,\r\n AddUnitPositionMutation,\r\n AddUnitPositionMutationVariables,\r\n DeleteUnitPosition,\r\n DeleteUnitPositionMutation,\r\n DeleteUnitPositionMutationVariables,\r\n RemoveTeamMemberFromUnitPosition,\r\n RemoveTeamMemberFromUnitPositionMutation,\r\n RemoveTeamMemberFromUnitPositionMutationVariables,\r\n UpdateUnitPosition,\r\n UpdateUnitPositionMutation,\r\n UpdateUnitPositionMutationVariables,\r\n UpsertUnitPosition,\r\n UpsertUnitPositionMutation,\r\n UpsertUnitPositionMutationVariables,\r\n AddUnit,\r\n AddUnitMutation,\r\n AddUnitMutationVariables,\r\n AssignVehicle,\r\n AssignVehicleMutation,\r\n AssignVehicleMutationVariables,\r\n DelayUnit,\r\n DelayUnitMutation,\r\n DelayUnitMutationVariables,\r\n DeleteUnit,\r\n DeleteUnitMutation,\r\n DeleteUnitMutationVariables,\r\n DisableUnit,\r\n DisableUnitMutation,\r\n DisableUnitMutationVariables,\r\n EnableUnit,\r\n EnableUnitMutation,\r\n EnableUnitMutationVariables,\r\n EnsureThirdPartyUnit,\r\n EnsureThirdPartyUnitMutation,\r\n EnsureThirdPartyUnitMutationVariables,\r\n EnsureThirdPartyUnits,\r\n EnsureThirdPartyUnitsMutation,\r\n EnsureThirdPartyUnitsMutationVariables,\r\n HideUnit,\r\n HideUnitMutation,\r\n HideUnitMutationVariables,\r\n MarkAsPilotUpdated,\r\n MarkAsPilotUpdatedMutation,\r\n MarkAsPilotUpdatedMutationVariables,\r\n ReassignVehicle,\r\n ReassignVehicleMutation,\r\n ReassignVehicleMutationVariables,\r\n RemoveDelayFromUnit,\r\n RemoveDelayFromUnitMutation,\r\n RemoveDelayFromUnitMutationVariables,\r\n RemoveVehicleFromUnit,\r\n RemoveVehicleFromUnitMutation,\r\n RemoveVehicleFromUnitMutationVariables,\r\n ReturnUnitToService,\r\n ReturnUnitToServiceMutation,\r\n ReturnUnitToServiceMutationVariables,\r\n SwapUnitVehicles,\r\n SwapUnitVehiclesMutation,\r\n SwapUnitVehiclesMutationVariables,\r\n TakeUnitOutOfService,\r\n TakeUnitOutOfServiceMutation,\r\n TakeUnitOutOfServiceMutationVariables,\r\n TeleportUnit,\r\n TeleportUnitMutation,\r\n TeleportUnitMutationVariables,\r\n UnhideUnit,\r\n UnhideUnitMutation,\r\n UnhideUnitMutationVariables,\r\n UpdatePilotUnitConfiguration,\r\n UpdatePilotUnitConfigurationMutation,\r\n UpdatePilotUnitConfigurationMutationVariables,\r\n UpdateUnit,\r\n UpdateUnitMutation,\r\n UpdateUnitMutationVariables,\r\n UpdateUnitConfiguration,\r\n UpdateUnitConfigurationMutation,\r\n UpdateUnitConfigurationMutationVariables,\r\n AddUnitShift,\r\n AddUnitShiftMutation,\r\n AddUnitShiftMutationVariables,\r\n DeleteUnitShift,\r\n DeleteUnitShiftMutation,\r\n DeleteUnitShiftMutationVariables,\r\n UpdateUnitShift,\r\n UpdateUnitShiftMutation,\r\n UpdateUnitShiftMutationVariables,\r\n AddVehicleDisposition,\r\n AddVehicleDispositionMutation,\r\n AddVehicleDispositionMutationVariables,\r\n DeleteVehicleDisposition,\r\n DeleteVehicleDispositionMutation,\r\n DeleteVehicleDispositionMutationVariables,\r\n UpdateVehicleDisposition,\r\n UpdateVehicleDispositionMutation,\r\n UpdateVehicleDispositionMutationVariables,\r\n AddWaypoint,\r\n AddWaypointMutation,\r\n AddWaypointMutationVariables,\r\n DeleteWaypoint,\r\n DeleteWaypointMutation,\r\n DeleteWaypointMutationVariables,\r\n UpdateWaypoint,\r\n UpdateWaypointMutation,\r\n UpdateWaypointMutationVariables,\r\n AcknowledgeWebOrderLog,\r\n AcknowledgeWebOrderLogMutation,\r\n AcknowledgeWebOrderLogMutationVariables,\r\n AddWebOrderLog,\r\n AddWebOrderLogMutation,\r\n AddWebOrderLogMutationVariables,\r\n} from '../graphql-operation-types.generated';\r\nimport {\r\n GraphqlMutationExecutorService,\r\n GraphQLMutationExecutionOptions,\r\n} from '../graphql-mutation-executor.service';\r\n\r\nexport enum OpsCommand {\r\n AddActivationRule = 'AddActivationRule',\r\n DeleteActivationRule = 'DeleteActivationRule',\r\n UpdateActivationRule = 'UpdateActivationRule',\r\n AcknowledgeAlert = 'AcknowledgeAlert',\r\n AddActiveAlert = 'AddActiveAlert',\r\n CleanupActiveAlerts = 'CleanupActiveAlerts',\r\n CleanupCardActiveAlerts = 'CleanupCardActiveAlerts',\r\n DeleteActiveAlert = 'DeleteActiveAlert',\r\n SnoozeAlert = 'SnoozeAlert',\r\n UpdateActiveAlert = 'UpdateActiveAlert',\r\n DeleteActiveTimeline = 'DeleteActiveTimeline',\r\n UpdateActiveTimeline = 'UpdateActiveTimeline',\r\n AddAlert = 'AddAlert',\r\n CopyAlert = 'CopyAlert',\r\n DeleteAlert = 'DeleteAlert',\r\n UpdateAlert = 'UpdateAlert',\r\n AddApplicationNotification = 'AddApplicationNotification',\r\n DeleteApplicationNotification = 'DeleteApplicationNotification',\r\n DismissApplicationNotification = 'DismissApplicationNotification',\r\n UpdateApplicationNotification = 'UpdateApplicationNotification',\r\n AddAssignmentDelayedReason = 'AddAssignmentDelayedReason',\r\n DeleteAssignmentDelayedReason = 'DeleteAssignmentDelayedReason',\r\n UpdateAssignmentDelayedReason = 'UpdateAssignmentDelayedReason',\r\n AddCancellationCategory = 'AddCancellationCategory',\r\n DeleteCancellationCategory = 'DeleteCancellationCategory',\r\n UpdateCancellationCategory = 'UpdateCancellationCategory',\r\n AddCancellationReason = 'AddCancellationReason',\r\n DeleteCancellationReason = 'DeleteCancellationReason',\r\n UpdateCancellationReason = 'UpdateCancellationReason',\r\n AddCancellationSecondaryReason = 'AddCancellationSecondaryReason',\r\n DeleteCancellationSecondaryReason = 'DeleteCancellationSecondaryReason',\r\n UpdateCancellationSecondaryReason = 'UpdateCancellationSecondaryReason',\r\n AddCardLink = 'AddCardLink',\r\n DeleteCardLink = 'DeleteCardLink',\r\n UpdateCardLink = 'UpdateCardLink',\r\n AddCardNoteArchive = 'AddCardNoteArchive',\r\n DeleteCardNoteArchive = 'DeleteCardNoteArchive',\r\n UpdateCardNoteArchive = 'UpdateCardNoteArchive',\r\n AddCardNote = 'AddCardNote',\r\n DeleteCardNote = 'DeleteCardNote',\r\n UpdateCardNote = 'UpdateCardNote',\r\n AddCardReOpenReason = 'AddCardReOpenReason',\r\n DeleteCardReOpenReason = 'DeleteCardReOpenReason',\r\n UpdateCardReOpenReason = 'UpdateCardReOpenReason',\r\n AddCard = 'AddCard',\r\n ChangeCardCallStatus = 'ChangeCardCallStatus',\r\n ChangeUnit = 'ChangeUnit',\r\n CleanupCards = 'CleanupCards',\r\n CloseCard = 'CloseCard',\r\n CreateSystemCrewNotification = 'CreateSystemCrewNotification',\r\n DeleteCard = 'DeleteCard',\r\n GenerateCardReport = 'GenerateCardReport',\r\n GenerateCardSummaryChange = 'GenerateCardSummaryChange',\r\n GenerateCardSummaryChangeV2 = 'GenerateCardSummaryChangeV2',\r\n LinkCards = 'LinkCards',\r\n ReOpenCard = 'ReOpenCard',\r\n RequestAdditionalUnits = 'RequestAdditionalUnits',\r\n SendPatientInfo = 'SendPatientInfo',\r\n SetCardLockStatus = 'SetCardLockStatus',\r\n UnDeleteCard = 'UnDeleteCard',\r\n UpdateCard = 'UpdateCard',\r\n UpdateCardBillable = 'UpdateCardBillable',\r\n UpdateCardDiversionType = 'UpdateCardDiversionType',\r\n UpdateCardSearchIndex = 'UpdateCardSearchIndex',\r\n UpdateGmrCadNumber = 'UpdateGmrCadNumber',\r\n UpdatePlannedCardCompletionTime = 'UpdatePlannedCardCompletionTime',\r\n AddConfigurationSetting = 'AddConfigurationSetting',\r\n UpdateConfigurationSetting = 'UpdateConfigurationSetting',\r\n AddDeclineCategory = 'AddDeclineCategory',\r\n DeleteDeclineCategory = 'DeleteDeclineCategory',\r\n UpdateDeclineCategory = 'UpdateDeclineCategory',\r\n AddDeclineReason = 'AddDeclineReason',\r\n DeleteDeclineReason = 'DeleteDeclineReason',\r\n UpdateDeclineReason = 'UpdateDeclineReason',\r\n AddDeclineSecondaryReason = 'AddDeclineSecondaryReason',\r\n DeleteDeclineSecondaryReason = 'DeleteDeclineSecondaryReason',\r\n UpdateDeclineSecondaryReason = 'UpdateDeclineSecondaryReason',\r\n AddDiversionReason = 'AddDiversionReason',\r\n DeleteDiversionReason = 'DeleteDiversionReason',\r\n UpdateDiversionReason = 'UpdateDiversionReason',\r\n AddEscortRequest = 'AddEscortRequest',\r\n DeleteEscortRequest = 'DeleteEscortRequest',\r\n UpdateEscortRequest = 'UpdateEscortRequest',\r\n MakeEstimatedDurationOfficial = 'MakeEstimatedDurationOfficial',\r\n UpdateEstimatedDurations = 'UpdateEstimatedDurations',\r\n UpdateTripLegDuration = 'UpdateTripLegDuration',\r\n UpdateWaypointDuration = 'UpdateWaypointDuration',\r\n AddExternalAction = 'AddExternalAction',\r\n CleanupPendingExternalActions = 'CleanupPendingExternalActions',\r\n DeleteExternalAction = 'DeleteExternalAction',\r\n DisregardExternalAction = 'DisregardExternalAction',\r\n UpdateExternalAction = 'UpdateExternalAction',\r\n AddExternalActionType = 'AddExternalActionType',\r\n DeleteExternalActionType = 'DeleteExternalActionType',\r\n UpdateExternalActionType = 'UpdateExternalActionType',\r\n AddFacilityNonAcceptanceReason = 'AddFacilityNonAcceptanceReason',\r\n DeleteFacilityNonAcceptanceReason = 'DeleteFacilityNonAcceptanceReason',\r\n UpdateFacilityNonAcceptanceReason = 'UpdateFacilityNonAcceptanceReason',\r\n AddFirewallRule = 'AddFirewallRule',\r\n DeleteFirewallRule = 'DeleteFirewallRule',\r\n UpdateFirewallRule = 'UpdateFirewallRule',\r\n AddFlightFollowingReport = 'AddFlightFollowingReport',\r\n DeleteFlightFollowingReport = 'DeleteFlightFollowingReport',\r\n UpdateFlightFollowingReport = 'UpdateFlightFollowingReport',\r\n DeleteLocationHazardAttachment = 'DeleteLocationHazardAttachment',\r\n GenerateLocationHazardAttachmentUrl = 'GenerateLocationHazardAttachmentUrl',\r\n AddLocationHazard = 'AddLocationHazard',\r\n DeleteLocationHazard = 'DeleteLocationHazard',\r\n UpdateLocationHazard = 'UpdateLocationHazard',\r\n AddMedicalControlContactLogEntry = 'AddMedicalControlContactLogEntry',\r\n DeleteMedicalControlContactLogEntry = 'DeleteMedicalControlContactLogEntry',\r\n UpdateMedicalControlContactLogEntry = 'UpdateMedicalControlContactLogEntry',\r\n AddMessageStatusUpdate = 'AddMessageStatusUpdate',\r\n AddNextDueType = 'AddNextDueType',\r\n DeleteNextDueType = 'DeleteNextDueType',\r\n UpdateNextDueType = 'UpdateNextDueType',\r\n AddNonReferralReason = 'AddNonReferralReason',\r\n DeleteNonReferralReason = 'DeleteNonReferralReason',\r\n UpdateNonReferralReason = 'UpdateNonReferralReason',\r\n AddNotificationGroupMember = 'AddNotificationGroupMember',\r\n DeleteNotificationGroupMember = 'DeleteNotificationGroupMember',\r\n UpdateNotificationGroupMember = 'UpdateNotificationGroupMember',\r\n AddNotificationGroup = 'AddNotificationGroup',\r\n DeleteNotificationGroup = 'DeleteNotificationGroup',\r\n UpdateNotificationGroup = 'UpdateNotificationGroup',\r\n UpsertPersonNotificationGroups = 'UpsertPersonNotificationGroups',\r\n AddNotificationRecipient = 'AddNotificationRecipient',\r\n AddNotificationRecipients = 'AddNotificationRecipients',\r\n DeleteNotificationRecipient = 'DeleteNotificationRecipient',\r\n DeleteNotificationRecipients = 'DeleteNotificationRecipients',\r\n UpdateNotificationRecipient = 'UpdateNotificationRecipient',\r\n UpdateRecipientMessageStatus = 'UpdateRecipientMessageStatus',\r\n AddNotification = 'AddNotification',\r\n DeleteNotification = 'DeleteNotification',\r\n SendNotification = 'SendNotification',\r\n UpdateNotification = 'UpdateNotification',\r\n AddNotificationSubscription = 'AddNotificationSubscription',\r\n DeleteNotificationSubscription = 'DeleteNotificationSubscription',\r\n UpdateNotificationSubscription = 'UpdateNotificationSubscription',\r\n AddNotificationTemplate = 'AddNotificationTemplate',\r\n CopyNotificationTemplate = 'CopyNotificationTemplate',\r\n DeleteNotificationTemplate = 'DeleteNotificationTemplate',\r\n UpdateNotificationTemplate = 'UpdateNotificationTemplate',\r\n AddOemActivity = 'AddOemActivity',\r\n DeleteOemActivity = 'DeleteOemActivity',\r\n UpdateOemActivity = 'UpdateOemActivity',\r\n AddOemAsset = 'AddOemAsset',\r\n DeleteOemAsset = 'DeleteOemAsset',\r\n UpdateOemAsset = 'UpdateOemAsset',\r\n AddOemPlanChangeRequest = 'AddOemPlanChangeRequest',\r\n DeleteOemPlanChangeRequest = 'DeleteOemPlanChangeRequest',\r\n UpdateOemPlanChangeRequest = 'UpdateOemPlanChangeRequest',\r\n AddOemPlan = 'AddOemPlan',\r\n DeleteOemPlan = 'DeleteOemPlan',\r\n UpdateOemPlan = 'UpdateOemPlan',\r\n AddOfferAlgorithm = 'AddOfferAlgorithm',\r\n CopyOfferAlgorithm = 'CopyOfferAlgorithm',\r\n DeleteOfferAlgorithm = 'DeleteOfferAlgorithm',\r\n UpdateOfferAlgorithm = 'UpdateOfferAlgorithm',\r\n ActivateUnit = 'ActivateUnit',\r\n AddOperation = 'AddOperation',\r\n ArriveVehicle = 'ArriveVehicle',\r\n CancelOperation = 'CancelOperation',\r\n ChangeVehicle = 'ChangeVehicle',\r\n CreateGroundRun = 'CreateGroundRun',\r\n CreateMaintenanceOperation = 'CreateMaintenanceOperation',\r\n CreateTrainingOperation = 'CreateTrainingOperation',\r\n DeclineOrAbortOperation = 'DeclineOrAbortOperation',\r\n DeleteOperation = 'DeleteOperation',\r\n DepartVehicle = 'DepartVehicle',\r\n PlaceUnitOnStandby = 'PlaceUnitOnStandby',\r\n RepositionUnit = 'RepositionUnit',\r\n UndoArriveVehicle = 'UndoArriveVehicle',\r\n UndoDepartVehicle = 'UndoDepartVehicle',\r\n UpdateOperation = 'UpdateOperation',\r\n UpdateOperationContactInfo = 'UpdateOperationContactInfo',\r\n UpdateRiskAnalysis = 'UpdateRiskAnalysis',\r\n AddOutOfServiceEventNote = 'AddOutOfServiceEventNote',\r\n DeleteOutOfServiceEventNote = 'DeleteOutOfServiceEventNote',\r\n UpdateOutOfServiceEventNote = 'UpdateOutOfServiceEventNote',\r\n AddOutOfServiceEvent = 'AddOutOfServiceEvent',\r\n AddUnitOutOfServiceEvent = 'AddUnitOutOfServiceEvent',\r\n AddVehicleOutOfServiceEvent = 'AddVehicleOutOfServiceEvent',\r\n BeginOutOfServiceEvent = 'BeginOutOfServiceEvent',\r\n DeleteOutOfServiceEvent = 'DeleteOutOfServiceEvent',\r\n EndOutOfServiceEvent = 'EndOutOfServiceEvent',\r\n UpdateOutOfServiceEvent = 'UpdateOutOfServiceEvent',\r\n AddOutOfServiceReason = 'AddOutOfServiceReason',\r\n DeleteOutOfServiceReason = 'DeleteOutOfServiceReason',\r\n UpdateOutOfServiceReason = 'UpdateOutOfServiceReason',\r\n AddOutOfServiceSecondaryReason = 'AddOutOfServiceSecondaryReason',\r\n DeleteOutOfServiceSecondaryReason = 'DeleteOutOfServiceSecondaryReason',\r\n UpdateOutOfServiceSecondaryReason = 'UpdateOutOfServiceSecondaryReason',\r\n AcknowledgePassdownLog = 'AcknowledgePassdownLog',\r\n AddPassdownLog = 'AddPassdownLog',\r\n DeletePassdownLog = 'DeletePassdownLog',\r\n UpdatePassdownLog = 'UpdatePassdownLog',\r\n AddPositionReportAlert = 'AddPositionReportAlert',\r\n DeletePositionReportAlert = 'DeletePositionReportAlert',\r\n UpdatePositionReportAlert = 'UpdatePositionReportAlert',\r\n AddPositionReport = 'AddPositionReport',\r\n ConfirmPositionReport = 'ConfirmPositionReport',\r\n DeletePositionReport = 'DeletePositionReport',\r\n UpdatePositionReport = 'UpdatePositionReport',\r\n UpsertQuestionChoice = 'UpsertQuestionChoice',\r\n AddQuestionnaireQuestionResponseNote = 'AddQuestionnaireQuestionResponseNote',\r\n DeleteQuestionnaireQuestionResponseNote = 'DeleteQuestionnaireQuestionResponseNote',\r\n UpdateQuestionnaireQuestionResponseNote = 'UpdateQuestionnaireQuestionResponseNote',\r\n UpsertQuestionnaireQuestionResponseNote = 'UpsertQuestionnaireQuestionResponseNote',\r\n AddQuestionnaireQuestionResponse = 'AddQuestionnaireQuestionResponse',\r\n DeleteQuestionnaireQuestionResponse = 'DeleteQuestionnaireQuestionResponse',\r\n UpdateQuestionnaireQuestionResponse = 'UpdateQuestionnaireQuestionResponse',\r\n UpdateQuestionnaireQuestionResponseDeep = 'UpdateQuestionnaireQuestionResponseDeep',\r\n AddQuestionnaireResponse = 'AddQuestionnaireResponse',\r\n DeleteQuestionnaireResponse = 'DeleteQuestionnaireResponse',\r\n SubmitQuestionnaireResponse = 'SubmitQuestionnaireResponse',\r\n UpdateQuestionnaireResponse = 'UpdateQuestionnaireResponse',\r\n UpdateQuestionnaireResponseDeep = 'UpdateQuestionnaireResponseDeep',\r\n AddQuestionnaire = 'AddQuestionnaire',\r\n DeleteQuestionnaire = 'DeleteQuestionnaire',\r\n UpdateQuestionnaire = 'UpdateQuestionnaire',\r\n DeleteQuestionnaireSectionQuestion = 'DeleteQuestionnaireSectionQuestion',\r\n UpsertQuestionnaireSectionQuestion = 'UpsertQuestionnaireSectionQuestion',\r\n DeleteQuestionnaireSection = 'DeleteQuestionnaireSection',\r\n UpsertQuestionnaireSection = 'UpsertQuestionnaireSection',\r\n AddQuestion = 'AddQuestion',\r\n DeleteQuestion = 'DeleteQuestion',\r\n UpdateQuestion = 'UpdateQuestion',\r\n AcceptReceivingFacilityRequest = 'AcceptReceivingFacilityRequest',\r\n AddReceivingFacilityRequestDeclineHistory = 'AddReceivingFacilityRequestDeclineHistory',\r\n CancelReceivingFacilityRequest = 'CancelReceivingFacilityRequest',\r\n DeleteReceivingFacilityRequest = 'DeleteReceivingFacilityRequest',\r\n DenyReceivingFacilityRequest = 'DenyReceivingFacilityRequest',\r\n DivertReceivingFacilityRequest = 'DivertReceivingFacilityRequest',\r\n ReferReceivingFacilityRequest = 'ReferReceivingFacilityRequest',\r\n AddRendezvousRequest = 'AddRendezvousRequest',\r\n DeleteRendezvousRequest = 'DeleteRendezvousRequest',\r\n UpdateRendezvousRequest = 'UpdateRendezvousRequest',\r\n AddRequesterRole = 'AddRequesterRole',\r\n DeleteRequesterRole = 'DeleteRequesterRole',\r\n UpdateRequesterRole = 'UpdateRequesterRole',\r\n UpdateRequester = 'UpdateRequester',\r\n UpdateRequesterSpecialtyTeam = 'UpdateRequesterSpecialtyTeam',\r\n UpdateTransferCenterCallInfo = 'UpdateTransferCenterCallInfo',\r\n UpdateReceivingFacilityAutoAcceptance = 'UpdateReceivingFacilityAutoAcceptance',\r\n UpdateRequestLocation = 'UpdateRequestLocation',\r\n AddRequestPatient = 'AddRequestPatient',\r\n DeleteRequestPatient = 'DeleteRequestPatient',\r\n UpdateChiefComplaint = 'UpdateChiefComplaint',\r\n UpdatePatientClinicalInfo = 'UpdatePatientClinicalInfo',\r\n UpdatePatientInfo = 'UpdatePatientInfo',\r\n UpdateRequestPatient = 'UpdateRequestPatient',\r\n AcknowledgeExternalRequest = 'AcknowledgeExternalRequest',\r\n BeginAssignment = 'BeginAssignment',\r\n CancelRequest = 'CancelRequest',\r\n CancelRequestFromTransferCenter = 'CancelRequestFromTransferCenter',\r\n ChangeCallType = 'ChangeCallType',\r\n ChangeRequestCancellationReason = 'ChangeRequestCancellationReason',\r\n ChangeRequestType = 'ChangeRequestType',\r\n CreateRequest = 'CreateRequest',\r\n DelayAssignment = 'DelayAssignment',\r\n DuplicateRequest = 'DuplicateRequest',\r\n ReactivateRequest = 'ReactivateRequest',\r\n ReactivateRequestFromTransferCenter = 'ReactivateRequestFromTransferCenter',\r\n RecalculateCandidates = 'RecalculateCandidates',\r\n UpdateRequest = 'UpdateRequest',\r\n UpdateRequestAtlo = 'UpdateRequestAtlo',\r\n UpdateRequestPublicUtilityInfo = 'UpdateRequestPublicUtilityInfo',\r\n UpdateRequestRegion = 'UpdateRequestRegion',\r\n UpdateRequestSafetyQuestions = 'UpdateRequestSafetyQuestions',\r\n UpdateRequestStandbyStatus = 'UpdateRequestStandbyStatus',\r\n AddTimelineItem = 'AddTimelineItem',\r\n DeleteTimelineItem = 'DeleteTimelineItem',\r\n UpdateTimelineItem = 'UpdateTimelineItem',\r\n UpsertTimelineItem = 'UpsertTimelineItem',\r\n AddTimeline = 'AddTimeline',\r\n DeleteTimeline = 'DeleteTimeline',\r\n UpdateTimeline = 'UpdateTimeline',\r\n AddEmsReport = 'AddEmsReport',\r\n AddTimestamp = 'AddTimestamp',\r\n DeleteTimestamp = 'DeleteTimestamp',\r\n ReSendToDataWarehouse = 'ReSendToDataWarehouse',\r\n SendToImageTrend = 'SendToImageTrend',\r\n UpdateEmsReport = 'UpdateEmsReport',\r\n UpdateTimestamp = 'UpdateTimestamp',\r\n AddTimestampType = 'AddTimestampType',\r\n DeleteTimestampType = 'DeleteTimestampType',\r\n UpdateTimestampType = 'UpdateTimestampType',\r\n DeliverTrackedMessage = 'DeliverTrackedMessage',\r\n SendMessage = 'SendMessage',\r\n UpdateTrackedMessage = 'UpdateTrackedMessage',\r\n AddTransferReason = 'AddTransferReason',\r\n DeleteTransferReason = 'DeleteTransferReason',\r\n UpdateTransferReason = 'UpdateTransferReason',\r\n UpdateTransportOfferOption = 'UpdateTransportOfferOption',\r\n AcceptTransportOffer = 'AcceptTransportOffer',\r\n AddCancellation = 'AddCancellation',\r\n AddDecline = 'AddDecline',\r\n AddTransportOffer = 'AddTransportOffer',\r\n BeginTransportOffer = 'BeginTransportOffer',\r\n CancelTransportOffer = 'CancelTransportOffer',\r\n DeclineAndAssignNewTransportOffer = 'DeclineAndAssignNewTransportOffer',\r\n DeclineTransportOffer = 'DeclineTransportOffer',\r\n DeclineTransportOfferAndDelayAssignment = 'DeclineTransportOfferAndDelayAssignment',\r\n DeleteTransportOffer = 'DeleteTransportOffer',\r\n InitiateTransportCheck = 'InitiateTransportCheck',\r\n OfferWithBulkSkip = 'OfferWithBulkSkip',\r\n ReferTransportOffer = 'ReferTransportOffer',\r\n SkipTransportOffer = 'SkipTransportOffer',\r\n UpdateCancellation = 'UpdateCancellation',\r\n UpdateDecline = 'UpdateDecline',\r\n UpdateOfferRank = 'UpdateOfferRank',\r\n UpdateSkip = 'UpdateSkip',\r\n UpdateTransportOffer = 'UpdateTransportOffer',\r\n UpdateTransportOfferEta = 'UpdateTransportOfferEta',\r\n AddTransportReason = 'AddTransportReason',\r\n DeleteTransportReason = 'DeleteTransportReason',\r\n UpdateTransportReason = 'UpdateTransportReason',\r\n AddManifestEntry = 'AddManifestEntry',\r\n DeleteManifestEntry = 'DeleteManifestEntry',\r\n UpdateManifestEntry = 'UpdateManifestEntry',\r\n UpdateOdometerReadings = 'UpdateOdometerReadings',\r\n AddTripPassenger = 'AddTripPassenger',\r\n DeleteTripPassenger = 'DeleteTripPassenger',\r\n UpdateTripPassenger = 'UpdateTripPassenger',\r\n AddTrip = 'AddTrip',\r\n AddTripLegManifestEntry = 'AddTripLegManifestEntry',\r\n CalculateEtas = 'CalculateEtas',\r\n ConfirmManifest = 'ConfirmManifest',\r\n CreatePrecautionaryLanding = 'CreatePrecautionaryLanding',\r\n CreatePrecautionaryLandingV2 = 'CreatePrecautionaryLandingV2',\r\n DeleteTrip = 'DeleteTrip',\r\n DeleteTripLegManifestEntry = 'DeleteTripLegManifestEntry',\r\n InsertWaypoint = 'InsertWaypoint',\r\n MergePostAndDropoffWaypoints = 'MergePostAndDropoffWaypoints',\r\n MergeUnitOriginAndPickupWaypoints = 'MergeUnitOriginAndPickupWaypoints',\r\n ModifyWaypoint = 'ModifyWaypoint',\r\n RecalculateTripMileage = 'RecalculateTripMileage',\r\n RemoveWaypoint = 'RemoveWaypoint',\r\n SplitUnitOriginAndPickupWaypoints = 'SplitUnitOriginAndPickupWaypoints',\r\n SplitUnitPostAndDropoffWaypoints = 'SplitUnitPostAndDropoffWaypoints',\r\n SwapWaypoint = 'SwapWaypoint',\r\n UpdateTrip = 'UpdateTrip',\r\n AddUnitActivationRule = 'AddUnitActivationRule',\r\n DeleteUnitActivationRule = 'DeleteUnitActivationRule',\r\n UpdateUnitActivationRule = 'UpdateUnitActivationRule',\r\n AddUnitEMSystemMapping = 'AddUnitEMSystemMapping',\r\n DeleteUnitEMSystemMapping = 'DeleteUnitEMSystemMapping',\r\n UpdateUnitEMSystemMapping = 'UpdateUnitEMSystemMapping',\r\n AddUnitNote = 'AddUnitNote',\r\n DeleteUnitNote = 'DeleteUnitNote',\r\n UpdateUnitNote = 'UpdateUnitNote',\r\n AddUnitPosition = 'AddUnitPosition',\r\n DeleteUnitPosition = 'DeleteUnitPosition',\r\n RemoveTeamMemberFromUnitPosition = 'RemoveTeamMemberFromUnitPosition',\r\n UpdateUnitPosition = 'UpdateUnitPosition',\r\n UpsertUnitPosition = 'UpsertUnitPosition',\r\n AddUnit = 'AddUnit',\r\n AssignVehicle = 'AssignVehicle',\r\n DelayUnit = 'DelayUnit',\r\n DeleteUnit = 'DeleteUnit',\r\n DisableUnit = 'DisableUnit',\r\n EnableUnit = 'EnableUnit',\r\n EnsureThirdPartyUnit = 'EnsureThirdPartyUnit',\r\n EnsureThirdPartyUnits = 'EnsureThirdPartyUnits',\r\n HideUnit = 'HideUnit',\r\n MarkAsPilotUpdated = 'MarkAsPilotUpdated',\r\n ReassignVehicle = 'ReassignVehicle',\r\n RemoveDelayFromUnit = 'RemoveDelayFromUnit',\r\n RemoveVehicleFromUnit = 'RemoveVehicleFromUnit',\r\n ReturnUnitToService = 'ReturnUnitToService',\r\n SwapUnitVehicles = 'SwapUnitVehicles',\r\n TakeUnitOutOfService = 'TakeUnitOutOfService',\r\n TeleportUnit = 'TeleportUnit',\r\n UnhideUnit = 'UnhideUnit',\r\n UpdatePilotUnitConfiguration = 'UpdatePilotUnitConfiguration',\r\n UpdateUnit = 'UpdateUnit',\r\n UpdateUnitConfiguration = 'UpdateUnitConfiguration',\r\n AddUnitShift = 'AddUnitShift',\r\n DeleteUnitShift = 'DeleteUnitShift',\r\n UpdateUnitShift = 'UpdateUnitShift',\r\n AddVehicleDisposition = 'AddVehicleDisposition',\r\n DeleteVehicleDisposition = 'DeleteVehicleDisposition',\r\n UpdateVehicleDisposition = 'UpdateVehicleDisposition',\r\n AddWaypoint = 'AddWaypoint',\r\n DeleteWaypoint = 'DeleteWaypoint',\r\n UpdateWaypoint = 'UpdateWaypoint',\r\n AcknowledgeWebOrderLog = 'AcknowledgeWebOrderLog',\r\n AddWebOrderLog = 'AddWebOrderLog',\r\n}\r\n\r\nexport enum OpsFeature {\r\n ActivationRules = 'ActivationRules',\r\n ActiveAlerts = 'ActiveAlerts',\r\n ActiveTimelines = 'ActiveTimelines',\r\n Alerts = 'Alerts',\r\n ApplicationNotifications = 'ApplicationNotifications',\r\n AssignmentDelayedReasons = 'AssignmentDelayedReasons',\r\n CancellationCategories = 'CancellationCategories',\r\n CancellationReasons = 'CancellationReasons',\r\n CancellationSecondaryReasons = 'CancellationSecondaryReasons',\r\n CardLinks = 'CardLinks',\r\n CardNoteArchives = 'CardNoteArchives',\r\n CardNotes = 'CardNotes',\r\n CardReOpenReasons = 'CardReOpenReasons',\r\n Cards = 'Cards',\r\n ConfigurationSettings = 'ConfigurationSettings',\r\n DeclineCategories = 'DeclineCategories',\r\n DeclineReasons = 'DeclineReasons',\r\n DeclineSecondaryReasons = 'DeclineSecondaryReasons',\r\n DiversionReasons = 'DiversionReasons',\r\n EscortRequests = 'EscortRequests',\r\n EstimatedDurations = 'EstimatedDurations',\r\n ExternalActions = 'ExternalActions',\r\n ExternalActionTypes = 'ExternalActionTypes',\r\n FacilityNonAcceptanceReasons = 'FacilityNonAcceptanceReasons',\r\n FirewallRules = 'FirewallRules',\r\n FlightFollowingReports = 'FlightFollowingReports',\r\n LocationHazardAttachments = 'LocationHazardAttachments',\r\n LocationHazards = 'LocationHazards',\r\n MedicalControlContactLogEntries = 'MedicalControlContactLogEntries',\r\n MessageStatusUpdates = 'MessageStatusUpdates',\r\n NextDueTypes = 'NextDueTypes',\r\n NonReferralReasons = 'NonReferralReasons',\r\n NotificationGroupMembers = 'NotificationGroupMembers',\r\n NotificationGroups = 'NotificationGroups',\r\n NotificationRecipients = 'NotificationRecipients',\r\n Notifications = 'Notifications',\r\n NotificationSubscriptions = 'NotificationSubscriptions',\r\n NotificationTemplates = 'NotificationTemplates',\r\n OemActivities = 'OemActivities',\r\n OemAssets = 'OemAssets',\r\n OemPlanChangeRequests = 'OemPlanChangeRequests',\r\n OemPlans = 'OemPlans',\r\n OfferAlgorithms = 'OfferAlgorithms',\r\n Operations = 'Operations',\r\n OutOfServiceEventNotes = 'OutOfServiceEventNotes',\r\n OutOfServiceEvents = 'OutOfServiceEvents',\r\n OutOfServiceReasons = 'OutOfServiceReasons',\r\n OutOfServiceSecondaryReasons = 'OutOfServiceSecondaryReasons',\r\n PassdownLogs = 'PassdownLogs',\r\n PositionReportAlerts = 'PositionReportAlerts',\r\n PositionReports = 'PositionReports',\r\n QuestionChoices = 'QuestionChoices',\r\n QuestionnaireQuestionResponseNotes = 'QuestionnaireQuestionResponseNotes',\r\n QuestionnaireQuestionResponses = 'QuestionnaireQuestionResponses',\r\n QuestionnaireResponses = 'QuestionnaireResponses',\r\n Questionnaires = 'Questionnaires',\r\n QuestionnaireSectionQuestions = 'QuestionnaireSectionQuestions',\r\n QuestionnaireSections = 'QuestionnaireSections',\r\n Questions = 'Questions',\r\n ReceivingFacilityRequests = 'ReceivingFacilityRequests',\r\n RendezvousRequests = 'RendezvousRequests',\r\n RequesterRoles = 'RequesterRoles',\r\n Requesters = 'Requesters',\r\n RequestLocations = 'RequestLocations',\r\n RequestPatients = 'RequestPatients',\r\n Requests = 'Requests',\r\n TimelineItems = 'TimelineItems',\r\n Timelines = 'Timelines',\r\n Timestamps = 'Timestamps',\r\n TimestampTypes = 'TimestampTypes',\r\n TrackedMessages = 'TrackedMessages',\r\n TransferReasons = 'TransferReasons',\r\n TransportOfferOptions = 'TransportOfferOptions',\r\n TransportOffers = 'TransportOffers',\r\n TransportReasons = 'TransportReasons',\r\n TripLegManifestEntries = 'TripLegManifestEntries',\r\n TripLegs = 'TripLegs',\r\n TripPassengers = 'TripPassengers',\r\n Trips = 'Trips',\r\n UnitActivationRules = 'UnitActivationRules',\r\n UnitEMSystemMappings = 'UnitEMSystemMappings',\r\n UnitNotes = 'UnitNotes',\r\n UnitPositions = 'UnitPositions',\r\n Units = 'Units',\r\n UnitShifts = 'UnitShifts',\r\n VehicleDispositions = 'VehicleDispositions',\r\n Waypoints = 'Waypoints',\r\n WebOrderLogs = 'WebOrderLogs',\r\n}\r\n\r\nexport type ActivationRulesFeatureCommand =\r\n | OpsCommand.AddActivationRule\r\n | OpsCommand.DeleteActivationRule\r\n | OpsCommand.UpdateActivationRule;\r\nexport type ActiveAlertsFeatureCommand =\r\n | OpsCommand.AcknowledgeAlert\r\n | OpsCommand.AddActiveAlert\r\n | OpsCommand.CleanupActiveAlerts\r\n | OpsCommand.CleanupCardActiveAlerts\r\n | OpsCommand.DeleteActiveAlert\r\n | OpsCommand.SnoozeAlert\r\n | OpsCommand.UpdateActiveAlert;\r\nexport type ActiveTimelinesFeatureCommand =\r\n | OpsCommand.DeleteActiveTimeline\r\n | OpsCommand.UpdateActiveTimeline;\r\nexport type AlertsFeatureCommand =\r\n | OpsCommand.AddAlert\r\n | OpsCommand.CopyAlert\r\n | OpsCommand.DeleteAlert\r\n | OpsCommand.UpdateAlert;\r\nexport type ApplicationNotificationsFeatureCommand =\r\n | OpsCommand.AddApplicationNotification\r\n | OpsCommand.DeleteApplicationNotification\r\n | OpsCommand.DismissApplicationNotification\r\n | OpsCommand.UpdateApplicationNotification;\r\nexport type AssignmentDelayedReasonsFeatureCommand =\r\n | OpsCommand.AddAssignmentDelayedReason\r\n | OpsCommand.DeleteAssignmentDelayedReason\r\n | OpsCommand.UpdateAssignmentDelayedReason;\r\nexport type CancellationCategoriesFeatureCommand =\r\n | OpsCommand.AddCancellationCategory\r\n | OpsCommand.DeleteCancellationCategory\r\n | OpsCommand.UpdateCancellationCategory;\r\nexport type CancellationReasonsFeatureCommand =\r\n | OpsCommand.AddCancellationReason\r\n | OpsCommand.DeleteCancellationReason\r\n | OpsCommand.UpdateCancellationReason;\r\nexport type CancellationSecondaryReasonsFeatureCommand =\r\n | OpsCommand.AddCancellationSecondaryReason\r\n | OpsCommand.DeleteCancellationSecondaryReason\r\n | OpsCommand.UpdateCancellationSecondaryReason;\r\nexport type CardLinksFeatureCommand =\r\n | OpsCommand.AddCardLink\r\n | OpsCommand.DeleteCardLink\r\n | OpsCommand.UpdateCardLink;\r\nexport type CardNoteArchivesFeatureCommand =\r\n | OpsCommand.AddCardNoteArchive\r\n | OpsCommand.DeleteCardNoteArchive\r\n | OpsCommand.UpdateCardNoteArchive;\r\nexport type CardNotesFeatureCommand =\r\n | OpsCommand.AddCardNote\r\n | OpsCommand.DeleteCardNote\r\n | OpsCommand.UpdateCardNote;\r\nexport type CardReOpenReasonsFeatureCommand =\r\n | OpsCommand.AddCardReOpenReason\r\n | OpsCommand.DeleteCardReOpenReason\r\n | OpsCommand.UpdateCardReOpenReason;\r\nexport type CardsFeatureCommand =\r\n | OpsCommand.AddCard\r\n | OpsCommand.ChangeCardCallStatus\r\n | OpsCommand.ChangeUnit\r\n | OpsCommand.CleanupCards\r\n | OpsCommand.CloseCard\r\n | OpsCommand.CreateSystemCrewNotification\r\n | OpsCommand.DeleteCard\r\n | OpsCommand.GenerateCardReport\r\n | OpsCommand.GenerateCardSummaryChange\r\n | OpsCommand.GenerateCardSummaryChangeV2\r\n | OpsCommand.LinkCards\r\n | OpsCommand.ReOpenCard\r\n | OpsCommand.RequestAdditionalUnits\r\n | OpsCommand.SendPatientInfo\r\n | OpsCommand.SetCardLockStatus\r\n | OpsCommand.UnDeleteCard\r\n | OpsCommand.UpdateCard\r\n | OpsCommand.UpdateCardBillable\r\n | OpsCommand.UpdateCardDiversionType\r\n | OpsCommand.UpdateCardSearchIndex\r\n | OpsCommand.UpdateGmrCadNumber\r\n | OpsCommand.UpdatePlannedCardCompletionTime;\r\nexport type ConfigurationSettingsFeatureCommand =\r\n | OpsCommand.AddConfigurationSetting\r\n | OpsCommand.UpdateConfigurationSetting;\r\nexport type DeclineCategoriesFeatureCommand =\r\n | OpsCommand.AddDeclineCategory\r\n | OpsCommand.DeleteDeclineCategory\r\n | OpsCommand.UpdateDeclineCategory;\r\nexport type DeclineReasonsFeatureCommand =\r\n | OpsCommand.AddDeclineReason\r\n | OpsCommand.DeleteDeclineReason\r\n | OpsCommand.UpdateDeclineReason;\r\nexport type DeclineSecondaryReasonsFeatureCommand =\r\n | OpsCommand.AddDeclineSecondaryReason\r\n | OpsCommand.DeleteDeclineSecondaryReason\r\n | OpsCommand.UpdateDeclineSecondaryReason;\r\nexport type DiversionReasonsFeatureCommand =\r\n | OpsCommand.AddDiversionReason\r\n | OpsCommand.DeleteDiversionReason\r\n | OpsCommand.UpdateDiversionReason;\r\nexport type EscortRequestsFeatureCommand =\r\n | OpsCommand.AddEscortRequest\r\n | OpsCommand.DeleteEscortRequest\r\n | OpsCommand.UpdateEscortRequest;\r\nexport type EstimatedDurationsFeatureCommand =\r\n | OpsCommand.MakeEstimatedDurationOfficial\r\n | OpsCommand.UpdateEstimatedDurations\r\n | OpsCommand.UpdateTripLegDuration\r\n | OpsCommand.UpdateWaypointDuration;\r\nexport type ExternalActionsFeatureCommand =\r\n | OpsCommand.AddExternalAction\r\n | OpsCommand.CleanupPendingExternalActions\r\n | OpsCommand.DeleteExternalAction\r\n | OpsCommand.DisregardExternalAction\r\n | OpsCommand.UpdateExternalAction;\r\nexport type ExternalActionTypesFeatureCommand =\r\n | OpsCommand.AddExternalActionType\r\n | OpsCommand.DeleteExternalActionType\r\n | OpsCommand.UpdateExternalActionType;\r\nexport type FacilityNonAcceptanceReasonsFeatureCommand =\r\n | OpsCommand.AddFacilityNonAcceptanceReason\r\n | OpsCommand.DeleteFacilityNonAcceptanceReason\r\n | OpsCommand.UpdateFacilityNonAcceptanceReason;\r\nexport type FirewallRulesFeatureCommand =\r\n | OpsCommand.AddFirewallRule\r\n | OpsCommand.DeleteFirewallRule\r\n | OpsCommand.UpdateFirewallRule;\r\nexport type FlightFollowingReportsFeatureCommand =\r\n | OpsCommand.AddFlightFollowingReport\r\n | OpsCommand.DeleteFlightFollowingReport\r\n | OpsCommand.UpdateFlightFollowingReport;\r\nexport type LocationHazardAttachmentsFeatureCommand =\r\n | OpsCommand.DeleteLocationHazardAttachment\r\n | OpsCommand.GenerateLocationHazardAttachmentUrl;\r\nexport type LocationHazardsFeatureCommand =\r\n | OpsCommand.AddLocationHazard\r\n | OpsCommand.DeleteLocationHazard\r\n | OpsCommand.UpdateLocationHazard;\r\nexport type MedicalControlContactLogEntriesFeatureCommand =\r\n | OpsCommand.AddMedicalControlContactLogEntry\r\n | OpsCommand.DeleteMedicalControlContactLogEntry\r\n | OpsCommand.UpdateMedicalControlContactLogEntry;\r\nexport type MessageStatusUpdatesFeatureCommand = OpsCommand.AddMessageStatusUpdate;\r\nexport type NextDueTypesFeatureCommand =\r\n | OpsCommand.AddNextDueType\r\n | OpsCommand.DeleteNextDueType\r\n | OpsCommand.UpdateNextDueType;\r\nexport type NonReferralReasonsFeatureCommand =\r\n | OpsCommand.AddNonReferralReason\r\n | OpsCommand.DeleteNonReferralReason\r\n | OpsCommand.UpdateNonReferralReason;\r\nexport type NotificationGroupMembersFeatureCommand =\r\n | OpsCommand.AddNotificationGroupMember\r\n | OpsCommand.DeleteNotificationGroupMember\r\n | OpsCommand.UpdateNotificationGroupMember;\r\nexport type NotificationGroupsFeatureCommand =\r\n | OpsCommand.AddNotificationGroup\r\n | OpsCommand.DeleteNotificationGroup\r\n | OpsCommand.UpdateNotificationGroup\r\n | OpsCommand.UpsertPersonNotificationGroups;\r\nexport type NotificationRecipientsFeatureCommand =\r\n | OpsCommand.AddNotificationRecipient\r\n | OpsCommand.AddNotificationRecipients\r\n | OpsCommand.DeleteNotificationRecipient\r\n | OpsCommand.DeleteNotificationRecipients\r\n | OpsCommand.UpdateNotificationRecipient\r\n | OpsCommand.UpdateRecipientMessageStatus;\r\nexport type NotificationsFeatureCommand =\r\n | OpsCommand.AddNotification\r\n | OpsCommand.DeleteNotification\r\n | OpsCommand.SendNotification\r\n | OpsCommand.UpdateNotification;\r\nexport type NotificationSubscriptionsFeatureCommand =\r\n | OpsCommand.AddNotificationSubscription\r\n | OpsCommand.DeleteNotificationSubscription\r\n | OpsCommand.UpdateNotificationSubscription;\r\nexport type NotificationTemplatesFeatureCommand =\r\n | OpsCommand.AddNotificationTemplate\r\n | OpsCommand.CopyNotificationTemplate\r\n | OpsCommand.DeleteNotificationTemplate\r\n | OpsCommand.UpdateNotificationTemplate;\r\nexport type OemActivitiesFeatureCommand =\r\n | OpsCommand.AddOemActivity\r\n | OpsCommand.DeleteOemActivity\r\n | OpsCommand.UpdateOemActivity;\r\nexport type OemAssetsFeatureCommand =\r\n | OpsCommand.AddOemAsset\r\n | OpsCommand.DeleteOemAsset\r\n | OpsCommand.UpdateOemAsset;\r\nexport type OemPlanChangeRequestsFeatureCommand =\r\n | OpsCommand.AddOemPlanChangeRequest\r\n | OpsCommand.DeleteOemPlanChangeRequest\r\n | OpsCommand.UpdateOemPlanChangeRequest;\r\nexport type OemPlansFeatureCommand =\r\n | OpsCommand.AddOemPlan\r\n | OpsCommand.DeleteOemPlan\r\n | OpsCommand.UpdateOemPlan;\r\nexport type OfferAlgorithmsFeatureCommand =\r\n | OpsCommand.AddOfferAlgorithm\r\n | OpsCommand.CopyOfferAlgorithm\r\n | OpsCommand.DeleteOfferAlgorithm\r\n | OpsCommand.UpdateOfferAlgorithm;\r\nexport type OperationsFeatureCommand =\r\n | OpsCommand.ActivateUnit\r\n | OpsCommand.AddOperation\r\n | OpsCommand.ArriveVehicle\r\n | OpsCommand.CancelOperation\r\n | OpsCommand.ChangeVehicle\r\n | OpsCommand.CreateGroundRun\r\n | OpsCommand.CreateMaintenanceOperation\r\n | OpsCommand.CreateTrainingOperation\r\n | OpsCommand.DeclineOrAbortOperation\r\n | OpsCommand.DeleteOperation\r\n | OpsCommand.DepartVehicle\r\n | OpsCommand.PlaceUnitOnStandby\r\n | OpsCommand.RepositionUnit\r\n | OpsCommand.UndoArriveVehicle\r\n | OpsCommand.UndoDepartVehicle\r\n | OpsCommand.UpdateOperation\r\n | OpsCommand.UpdateOperationContactInfo\r\n | OpsCommand.UpdateRiskAnalysis;\r\nexport type OutOfServiceEventNotesFeatureCommand =\r\n | OpsCommand.AddOutOfServiceEventNote\r\n | OpsCommand.DeleteOutOfServiceEventNote\r\n | OpsCommand.UpdateOutOfServiceEventNote;\r\nexport type OutOfServiceEventsFeatureCommand =\r\n | OpsCommand.AddOutOfServiceEvent\r\n | OpsCommand.AddUnitOutOfServiceEvent\r\n | OpsCommand.AddVehicleOutOfServiceEvent\r\n | OpsCommand.BeginOutOfServiceEvent\r\n | OpsCommand.DeleteOutOfServiceEvent\r\n | OpsCommand.EndOutOfServiceEvent\r\n | OpsCommand.UpdateOutOfServiceEvent;\r\nexport type OutOfServiceReasonsFeatureCommand =\r\n | OpsCommand.AddOutOfServiceReason\r\n | OpsCommand.DeleteOutOfServiceReason\r\n | OpsCommand.UpdateOutOfServiceReason;\r\nexport type OutOfServiceSecondaryReasonsFeatureCommand =\r\n | OpsCommand.AddOutOfServiceSecondaryReason\r\n | OpsCommand.DeleteOutOfServiceSecondaryReason\r\n | OpsCommand.UpdateOutOfServiceSecondaryReason;\r\nexport type PassdownLogsFeatureCommand =\r\n | OpsCommand.AcknowledgePassdownLog\r\n | OpsCommand.AddPassdownLog\r\n | OpsCommand.DeletePassdownLog\r\n | OpsCommand.UpdatePassdownLog;\r\nexport type PositionReportAlertsFeatureCommand =\r\n | OpsCommand.AddPositionReportAlert\r\n | OpsCommand.DeletePositionReportAlert\r\n | OpsCommand.UpdatePositionReportAlert;\r\nexport type PositionReportsFeatureCommand =\r\n | OpsCommand.AddPositionReport\r\n | OpsCommand.ConfirmPositionReport\r\n | OpsCommand.DeletePositionReport\r\n | OpsCommand.UpdatePositionReport;\r\nexport type QuestionChoicesFeatureCommand = OpsCommand.UpsertQuestionChoice;\r\nexport type QuestionnaireQuestionResponseNotesFeatureCommand =\r\n | OpsCommand.AddQuestionnaireQuestionResponseNote\r\n | OpsCommand.DeleteQuestionnaireQuestionResponseNote\r\n | OpsCommand.UpdateQuestionnaireQuestionResponseNote\r\n | OpsCommand.UpsertQuestionnaireQuestionResponseNote;\r\nexport type QuestionnaireQuestionResponsesFeatureCommand =\r\n | OpsCommand.AddQuestionnaireQuestionResponse\r\n | OpsCommand.DeleteQuestionnaireQuestionResponse\r\n | OpsCommand.UpdateQuestionnaireQuestionResponse\r\n | OpsCommand.UpdateQuestionnaireQuestionResponseDeep;\r\nexport type QuestionnaireResponsesFeatureCommand =\r\n | OpsCommand.AddQuestionnaireResponse\r\n | OpsCommand.DeleteQuestionnaireResponse\r\n | OpsCommand.SubmitQuestionnaireResponse\r\n | OpsCommand.UpdateQuestionnaireResponse\r\n | OpsCommand.UpdateQuestionnaireResponseDeep;\r\nexport type QuestionnairesFeatureCommand =\r\n | OpsCommand.AddQuestionnaire\r\n | OpsCommand.DeleteQuestionnaire\r\n | OpsCommand.UpdateQuestionnaire;\r\nexport type QuestionnaireSectionQuestionsFeatureCommand =\r\n | OpsCommand.DeleteQuestionnaireSectionQuestion\r\n | OpsCommand.UpsertQuestionnaireSectionQuestion;\r\nexport type QuestionnaireSectionsFeatureCommand =\r\n | OpsCommand.DeleteQuestionnaireSection\r\n | OpsCommand.UpsertQuestionnaireSection;\r\nexport type QuestionsFeatureCommand =\r\n | OpsCommand.AddQuestion\r\n | OpsCommand.DeleteQuestion\r\n | OpsCommand.UpdateQuestion;\r\nexport type ReceivingFacilityRequestsFeatureCommand =\r\n | OpsCommand.AcceptReceivingFacilityRequest\r\n | OpsCommand.AddReceivingFacilityRequestDeclineHistory\r\n | OpsCommand.CancelReceivingFacilityRequest\r\n | OpsCommand.DeleteReceivingFacilityRequest\r\n | OpsCommand.DenyReceivingFacilityRequest\r\n | OpsCommand.DivertReceivingFacilityRequest\r\n | OpsCommand.ReferReceivingFacilityRequest;\r\nexport type RendezvousRequestsFeatureCommand =\r\n | OpsCommand.AddRendezvousRequest\r\n | OpsCommand.DeleteRendezvousRequest\r\n | OpsCommand.UpdateRendezvousRequest;\r\nexport type RequesterRolesFeatureCommand =\r\n | OpsCommand.AddRequesterRole\r\n | OpsCommand.DeleteRequesterRole\r\n | OpsCommand.UpdateRequesterRole;\r\nexport type RequestersFeatureCommand =\r\n | OpsCommand.UpdateRequester\r\n | OpsCommand.UpdateRequesterSpecialtyTeam\r\n | OpsCommand.UpdateTransferCenterCallInfo;\r\nexport type RequestLocationsFeatureCommand =\r\n | OpsCommand.UpdateReceivingFacilityAutoAcceptance\r\n | OpsCommand.UpdateRequestLocation;\r\nexport type RequestPatientsFeatureCommand =\r\n | OpsCommand.AddRequestPatient\r\n | OpsCommand.DeleteRequestPatient\r\n | OpsCommand.UpdateChiefComplaint\r\n | OpsCommand.UpdatePatientClinicalInfo\r\n | OpsCommand.UpdatePatientInfo\r\n | OpsCommand.UpdateRequestPatient;\r\nexport type RequestsFeatureCommand =\r\n | OpsCommand.AcknowledgeExternalRequest\r\n | OpsCommand.BeginAssignment\r\n | OpsCommand.CancelRequest\r\n | OpsCommand.CancelRequestFromTransferCenter\r\n | OpsCommand.ChangeCallType\r\n | OpsCommand.ChangeRequestCancellationReason\r\n | OpsCommand.ChangeRequestType\r\n | OpsCommand.CreateRequest\r\n | OpsCommand.DelayAssignment\r\n | OpsCommand.DuplicateRequest\r\n | OpsCommand.ReactivateRequest\r\n | OpsCommand.ReactivateRequestFromTransferCenter\r\n | OpsCommand.RecalculateCandidates\r\n | OpsCommand.UpdateRequest\r\n | OpsCommand.UpdateRequestAtlo\r\n | OpsCommand.UpdateRequestPublicUtilityInfo\r\n | OpsCommand.UpdateRequestRegion\r\n | OpsCommand.UpdateRequestSafetyQuestions\r\n | OpsCommand.UpdateRequestStandbyStatus;\r\nexport type TimelineItemsFeatureCommand =\r\n | OpsCommand.AddTimelineItem\r\n | OpsCommand.DeleteTimelineItem\r\n | OpsCommand.UpdateTimelineItem\r\n | OpsCommand.UpsertTimelineItem;\r\nexport type TimelinesFeatureCommand =\r\n | OpsCommand.AddTimeline\r\n | OpsCommand.DeleteTimeline\r\n | OpsCommand.UpdateTimeline;\r\nexport type TimestampsFeatureCommand =\r\n | OpsCommand.AddEmsReport\r\n | OpsCommand.AddTimestamp\r\n | OpsCommand.DeleteTimestamp\r\n | OpsCommand.ReSendToDataWarehouse\r\n | OpsCommand.SendToImageTrend\r\n | OpsCommand.UpdateEmsReport\r\n | OpsCommand.UpdateTimestamp;\r\nexport type TimestampTypesFeatureCommand =\r\n | OpsCommand.AddTimestampType\r\n | OpsCommand.DeleteTimestampType\r\n | OpsCommand.UpdateTimestampType;\r\nexport type TrackedMessagesFeatureCommand =\r\n | OpsCommand.DeliverTrackedMessage\r\n | OpsCommand.SendMessage\r\n | OpsCommand.UpdateTrackedMessage;\r\nexport type TransferReasonsFeatureCommand =\r\n | OpsCommand.AddTransferReason\r\n | OpsCommand.DeleteTransferReason\r\n | OpsCommand.UpdateTransferReason;\r\nexport type TransportOfferOptionsFeatureCommand = OpsCommand.UpdateTransportOfferOption;\r\nexport type TransportOffersFeatureCommand =\r\n | OpsCommand.AcceptTransportOffer\r\n | OpsCommand.AddCancellation\r\n | OpsCommand.AddDecline\r\n | OpsCommand.AddTransportOffer\r\n | OpsCommand.BeginTransportOffer\r\n | OpsCommand.CancelTransportOffer\r\n | OpsCommand.DeclineAndAssignNewTransportOffer\r\n | OpsCommand.DeclineTransportOffer\r\n | OpsCommand.DeclineTransportOfferAndDelayAssignment\r\n | OpsCommand.DeleteTransportOffer\r\n | OpsCommand.InitiateTransportCheck\r\n | OpsCommand.OfferWithBulkSkip\r\n | OpsCommand.ReferTransportOffer\r\n | OpsCommand.SkipTransportOffer\r\n | OpsCommand.UpdateCancellation\r\n | OpsCommand.UpdateDecline\r\n | OpsCommand.UpdateOfferRank\r\n | OpsCommand.UpdateSkip\r\n | OpsCommand.UpdateTransportOffer\r\n | OpsCommand.UpdateTransportOfferEta;\r\nexport type TransportReasonsFeatureCommand =\r\n | OpsCommand.AddTransportReason\r\n | OpsCommand.DeleteTransportReason\r\n | OpsCommand.UpdateTransportReason;\r\nexport type TripLegManifestEntriesFeatureCommand =\r\n | OpsCommand.AddManifestEntry\r\n | OpsCommand.DeleteManifestEntry\r\n | OpsCommand.UpdateManifestEntry;\r\nexport type TripLegsFeatureCommand = OpsCommand.UpdateOdometerReadings;\r\nexport type TripPassengersFeatureCommand =\r\n | OpsCommand.AddTripPassenger\r\n | OpsCommand.DeleteTripPassenger\r\n | OpsCommand.UpdateTripPassenger;\r\nexport type TripsFeatureCommand =\r\n | OpsCommand.AddTrip\r\n | OpsCommand.AddTripLegManifestEntry\r\n | OpsCommand.CalculateEtas\r\n | OpsCommand.ConfirmManifest\r\n | OpsCommand.CreatePrecautionaryLanding\r\n | OpsCommand.CreatePrecautionaryLandingV2\r\n | OpsCommand.DeleteTrip\r\n | OpsCommand.DeleteTripLegManifestEntry\r\n | OpsCommand.InsertWaypoint\r\n | OpsCommand.MergePostAndDropoffWaypoints\r\n | OpsCommand.MergeUnitOriginAndPickupWaypoints\r\n | OpsCommand.ModifyWaypoint\r\n | OpsCommand.RecalculateTripMileage\r\n | OpsCommand.RemoveWaypoint\r\n | OpsCommand.SplitUnitOriginAndPickupWaypoints\r\n | OpsCommand.SplitUnitPostAndDropoffWaypoints\r\n | OpsCommand.SwapWaypoint\r\n | OpsCommand.UpdateTrip;\r\nexport type UnitActivationRulesFeatureCommand =\r\n | OpsCommand.AddUnitActivationRule\r\n | OpsCommand.DeleteUnitActivationRule\r\n | OpsCommand.UpdateUnitActivationRule;\r\nexport type UnitEMSystemMappingsFeatureCommand =\r\n | OpsCommand.AddUnitEMSystemMapping\r\n | OpsCommand.DeleteUnitEMSystemMapping\r\n | OpsCommand.UpdateUnitEMSystemMapping;\r\nexport type UnitNotesFeatureCommand =\r\n | OpsCommand.AddUnitNote\r\n | OpsCommand.DeleteUnitNote\r\n | OpsCommand.UpdateUnitNote;\r\nexport type UnitPositionsFeatureCommand =\r\n | OpsCommand.AddUnitPosition\r\n | OpsCommand.DeleteUnitPosition\r\n | OpsCommand.RemoveTeamMemberFromUnitPosition\r\n | OpsCommand.UpdateUnitPosition\r\n | OpsCommand.UpsertUnitPosition;\r\nexport type UnitsFeatureCommand =\r\n | OpsCommand.AddUnit\r\n | OpsCommand.AssignVehicle\r\n | OpsCommand.DelayUnit\r\n | OpsCommand.DeleteUnit\r\n | OpsCommand.DisableUnit\r\n | OpsCommand.EnableUnit\r\n | OpsCommand.EnsureThirdPartyUnit\r\n | OpsCommand.EnsureThirdPartyUnits\r\n | OpsCommand.HideUnit\r\n | OpsCommand.MarkAsPilotUpdated\r\n | OpsCommand.ReassignVehicle\r\n | OpsCommand.RemoveDelayFromUnit\r\n | OpsCommand.RemoveVehicleFromUnit\r\n | OpsCommand.ReturnUnitToService\r\n | OpsCommand.SwapUnitVehicles\r\n | OpsCommand.TakeUnitOutOfService\r\n | OpsCommand.TeleportUnit\r\n | OpsCommand.UnhideUnit\r\n | OpsCommand.UpdatePilotUnitConfiguration\r\n | OpsCommand.UpdateUnit\r\n | OpsCommand.UpdateUnitConfiguration;\r\nexport type UnitShiftsFeatureCommand =\r\n | OpsCommand.AddUnitShift\r\n | OpsCommand.DeleteUnitShift\r\n | OpsCommand.UpdateUnitShift;\r\nexport type VehicleDispositionsFeatureCommand =\r\n | OpsCommand.AddVehicleDisposition\r\n | OpsCommand.DeleteVehicleDisposition\r\n | OpsCommand.UpdateVehicleDisposition;\r\nexport type WaypointsFeatureCommand =\r\n | OpsCommand.AddWaypoint\r\n | OpsCommand.DeleteWaypoint\r\n | OpsCommand.UpdateWaypoint;\r\nexport type WebOrderLogsFeatureCommand =\r\n | OpsCommand.AcknowledgeWebOrderLog\r\n | OpsCommand.AddWebOrderLog;\r\n\r\nexport const OpsFeatures: { [key in OpsFeature]: OpsCommand[] } = {\r\n ActivationRules: [\r\n OpsCommand.AddActivationRule,\r\n OpsCommand.DeleteActivationRule,\r\n OpsCommand.UpdateActivationRule,\r\n ],\r\n ActiveAlerts: [\r\n OpsCommand.AcknowledgeAlert,\r\n OpsCommand.AddActiveAlert,\r\n OpsCommand.CleanupActiveAlerts,\r\n OpsCommand.CleanupCardActiveAlerts,\r\n OpsCommand.DeleteActiveAlert,\r\n OpsCommand.SnoozeAlert,\r\n OpsCommand.UpdateActiveAlert,\r\n ],\r\n ActiveTimelines: [OpsCommand.DeleteActiveTimeline, OpsCommand.UpdateActiveTimeline],\r\n Alerts: [\r\n OpsCommand.AddAlert,\r\n OpsCommand.CopyAlert,\r\n OpsCommand.DeleteAlert,\r\n OpsCommand.UpdateAlert,\r\n ],\r\n ApplicationNotifications: [\r\n OpsCommand.AddApplicationNotification,\r\n OpsCommand.DeleteApplicationNotification,\r\n OpsCommand.DismissApplicationNotification,\r\n OpsCommand.UpdateApplicationNotification,\r\n ],\r\n AssignmentDelayedReasons: [\r\n OpsCommand.AddAssignmentDelayedReason,\r\n OpsCommand.DeleteAssignmentDelayedReason,\r\n OpsCommand.UpdateAssignmentDelayedReason,\r\n ],\r\n CancellationCategories: [\r\n OpsCommand.AddCancellationCategory,\r\n OpsCommand.DeleteCancellationCategory,\r\n OpsCommand.UpdateCancellationCategory,\r\n ],\r\n CancellationReasons: [\r\n OpsCommand.AddCancellationReason,\r\n OpsCommand.DeleteCancellationReason,\r\n OpsCommand.UpdateCancellationReason,\r\n ],\r\n CancellationSecondaryReasons: [\r\n OpsCommand.AddCancellationSecondaryReason,\r\n OpsCommand.DeleteCancellationSecondaryReason,\r\n OpsCommand.UpdateCancellationSecondaryReason,\r\n ],\r\n CardLinks: [OpsCommand.AddCardLink, OpsCommand.DeleteCardLink, OpsCommand.UpdateCardLink],\r\n CardNoteArchives: [\r\n OpsCommand.AddCardNoteArchive,\r\n OpsCommand.DeleteCardNoteArchive,\r\n OpsCommand.UpdateCardNoteArchive,\r\n ],\r\n CardNotes: [OpsCommand.AddCardNote, OpsCommand.DeleteCardNote, OpsCommand.UpdateCardNote],\r\n CardReOpenReasons: [\r\n OpsCommand.AddCardReOpenReason,\r\n OpsCommand.DeleteCardReOpenReason,\r\n OpsCommand.UpdateCardReOpenReason,\r\n ],\r\n Cards: [\r\n OpsCommand.AddCard,\r\n OpsCommand.ChangeCardCallStatus,\r\n OpsCommand.ChangeUnit,\r\n OpsCommand.CleanupCards,\r\n OpsCommand.CloseCard,\r\n OpsCommand.CreateSystemCrewNotification,\r\n OpsCommand.DeleteCard,\r\n OpsCommand.GenerateCardReport,\r\n OpsCommand.GenerateCardSummaryChange,\r\n OpsCommand.GenerateCardSummaryChangeV2,\r\n OpsCommand.LinkCards,\r\n OpsCommand.ReOpenCard,\r\n OpsCommand.RequestAdditionalUnits,\r\n OpsCommand.SendPatientInfo,\r\n OpsCommand.SetCardLockStatus,\r\n OpsCommand.UnDeleteCard,\r\n OpsCommand.UpdateCard,\r\n OpsCommand.UpdateCardBillable,\r\n OpsCommand.UpdateCardDiversionType,\r\n OpsCommand.UpdateCardSearchIndex,\r\n OpsCommand.UpdateGmrCadNumber,\r\n OpsCommand.UpdatePlannedCardCompletionTime,\r\n ],\r\n ConfigurationSettings: [\r\n OpsCommand.AddConfigurationSetting,\r\n OpsCommand.UpdateConfigurationSetting,\r\n ],\r\n DeclineCategories: [\r\n OpsCommand.AddDeclineCategory,\r\n OpsCommand.DeleteDeclineCategory,\r\n OpsCommand.UpdateDeclineCategory,\r\n ],\r\n DeclineReasons: [\r\n OpsCommand.AddDeclineReason,\r\n OpsCommand.DeleteDeclineReason,\r\n OpsCommand.UpdateDeclineReason,\r\n ],\r\n DeclineSecondaryReasons: [\r\n OpsCommand.AddDeclineSecondaryReason,\r\n OpsCommand.DeleteDeclineSecondaryReason,\r\n OpsCommand.UpdateDeclineSecondaryReason,\r\n ],\r\n DiversionReasons: [\r\n OpsCommand.AddDiversionReason,\r\n OpsCommand.DeleteDiversionReason,\r\n OpsCommand.UpdateDiversionReason,\r\n ],\r\n EscortRequests: [\r\n OpsCommand.AddEscortRequest,\r\n OpsCommand.DeleteEscortRequest,\r\n OpsCommand.UpdateEscortRequest,\r\n ],\r\n EstimatedDurations: [\r\n OpsCommand.MakeEstimatedDurationOfficial,\r\n OpsCommand.UpdateEstimatedDurations,\r\n OpsCommand.UpdateTripLegDuration,\r\n OpsCommand.UpdateWaypointDuration,\r\n ],\r\n ExternalActions: [\r\n OpsCommand.AddExternalAction,\r\n OpsCommand.CleanupPendingExternalActions,\r\n OpsCommand.DeleteExternalAction,\r\n OpsCommand.DisregardExternalAction,\r\n OpsCommand.UpdateExternalAction,\r\n ],\r\n ExternalActionTypes: [\r\n OpsCommand.AddExternalActionType,\r\n OpsCommand.DeleteExternalActionType,\r\n OpsCommand.UpdateExternalActionType,\r\n ],\r\n FacilityNonAcceptanceReasons: [\r\n OpsCommand.AddFacilityNonAcceptanceReason,\r\n OpsCommand.DeleteFacilityNonAcceptanceReason,\r\n OpsCommand.UpdateFacilityNonAcceptanceReason,\r\n ],\r\n FirewallRules: [\r\n OpsCommand.AddFirewallRule,\r\n OpsCommand.DeleteFirewallRule,\r\n OpsCommand.UpdateFirewallRule,\r\n ],\r\n FlightFollowingReports: [\r\n OpsCommand.AddFlightFollowingReport,\r\n OpsCommand.DeleteFlightFollowingReport,\r\n OpsCommand.UpdateFlightFollowingReport,\r\n ],\r\n LocationHazardAttachments: [\r\n OpsCommand.DeleteLocationHazardAttachment,\r\n OpsCommand.GenerateLocationHazardAttachmentUrl,\r\n ],\r\n LocationHazards: [\r\n OpsCommand.AddLocationHazard,\r\n OpsCommand.DeleteLocationHazard,\r\n OpsCommand.UpdateLocationHazard,\r\n ],\r\n MedicalControlContactLogEntries: [\r\n OpsCommand.AddMedicalControlContactLogEntry,\r\n OpsCommand.DeleteMedicalControlContactLogEntry,\r\n OpsCommand.UpdateMedicalControlContactLogEntry,\r\n ],\r\n MessageStatusUpdates: [OpsCommand.AddMessageStatusUpdate],\r\n NextDueTypes: [\r\n OpsCommand.AddNextDueType,\r\n OpsCommand.DeleteNextDueType,\r\n OpsCommand.UpdateNextDueType,\r\n ],\r\n NonReferralReasons: [\r\n OpsCommand.AddNonReferralReason,\r\n OpsCommand.DeleteNonReferralReason,\r\n OpsCommand.UpdateNonReferralReason,\r\n ],\r\n NotificationGroupMembers: [\r\n OpsCommand.AddNotificationGroupMember,\r\n OpsCommand.DeleteNotificationGroupMember,\r\n OpsCommand.UpdateNotificationGroupMember,\r\n ],\r\n NotificationGroups: [\r\n OpsCommand.AddNotificationGroup,\r\n OpsCommand.DeleteNotificationGroup,\r\n OpsCommand.UpdateNotificationGroup,\r\n OpsCommand.UpsertPersonNotificationGroups,\r\n ],\r\n NotificationRecipients: [\r\n OpsCommand.AddNotificationRecipient,\r\n OpsCommand.AddNotificationRecipients,\r\n OpsCommand.DeleteNotificationRecipient,\r\n OpsCommand.DeleteNotificationRecipients,\r\n OpsCommand.UpdateNotificationRecipient,\r\n OpsCommand.UpdateRecipientMessageStatus,\r\n ],\r\n Notifications: [\r\n OpsCommand.AddNotification,\r\n OpsCommand.DeleteNotification,\r\n OpsCommand.SendNotification,\r\n OpsCommand.UpdateNotification,\r\n ],\r\n NotificationSubscriptions: [\r\n OpsCommand.AddNotificationSubscription,\r\n OpsCommand.DeleteNotificationSubscription,\r\n OpsCommand.UpdateNotificationSubscription,\r\n ],\r\n NotificationTemplates: [\r\n OpsCommand.AddNotificationTemplate,\r\n OpsCommand.CopyNotificationTemplate,\r\n OpsCommand.DeleteNotificationTemplate,\r\n OpsCommand.UpdateNotificationTemplate,\r\n ],\r\n OemActivities: [\r\n OpsCommand.AddOemActivity,\r\n OpsCommand.DeleteOemActivity,\r\n OpsCommand.UpdateOemActivity,\r\n ],\r\n OemAssets: [OpsCommand.AddOemAsset, OpsCommand.DeleteOemAsset, OpsCommand.UpdateOemAsset],\r\n OemPlanChangeRequests: [\r\n OpsCommand.AddOemPlanChangeRequest,\r\n OpsCommand.DeleteOemPlanChangeRequest,\r\n OpsCommand.UpdateOemPlanChangeRequest,\r\n ],\r\n OemPlans: [OpsCommand.AddOemPlan, OpsCommand.DeleteOemPlan, OpsCommand.UpdateOemPlan],\r\n OfferAlgorithms: [\r\n OpsCommand.AddOfferAlgorithm,\r\n OpsCommand.CopyOfferAlgorithm,\r\n OpsCommand.DeleteOfferAlgorithm,\r\n OpsCommand.UpdateOfferAlgorithm,\r\n ],\r\n Operations: [\r\n OpsCommand.ActivateUnit,\r\n OpsCommand.AddOperation,\r\n OpsCommand.ArriveVehicle,\r\n OpsCommand.CancelOperation,\r\n OpsCommand.ChangeVehicle,\r\n OpsCommand.CreateGroundRun,\r\n OpsCommand.CreateMaintenanceOperation,\r\n OpsCommand.CreateTrainingOperation,\r\n OpsCommand.DeclineOrAbortOperation,\r\n OpsCommand.DeleteOperation,\r\n OpsCommand.DepartVehicle,\r\n OpsCommand.PlaceUnitOnStandby,\r\n OpsCommand.RepositionUnit,\r\n OpsCommand.UndoArriveVehicle,\r\n OpsCommand.UndoDepartVehicle,\r\n OpsCommand.UpdateOperation,\r\n OpsCommand.UpdateOperationContactInfo,\r\n OpsCommand.UpdateRiskAnalysis,\r\n ],\r\n OutOfServiceEventNotes: [\r\n OpsCommand.AddOutOfServiceEventNote,\r\n OpsCommand.DeleteOutOfServiceEventNote,\r\n OpsCommand.UpdateOutOfServiceEventNote,\r\n ],\r\n OutOfServiceEvents: [\r\n OpsCommand.AddOutOfServiceEvent,\r\n OpsCommand.AddUnitOutOfServiceEvent,\r\n OpsCommand.AddVehicleOutOfServiceEvent,\r\n OpsCommand.BeginOutOfServiceEvent,\r\n OpsCommand.DeleteOutOfServiceEvent,\r\n OpsCommand.EndOutOfServiceEvent,\r\n OpsCommand.UpdateOutOfServiceEvent,\r\n ],\r\n OutOfServiceReasons: [\r\n OpsCommand.AddOutOfServiceReason,\r\n OpsCommand.DeleteOutOfServiceReason,\r\n OpsCommand.UpdateOutOfServiceReason,\r\n ],\r\n OutOfServiceSecondaryReasons: [\r\n OpsCommand.AddOutOfServiceSecondaryReason,\r\n OpsCommand.DeleteOutOfServiceSecondaryReason,\r\n OpsCommand.UpdateOutOfServiceSecondaryReason,\r\n ],\r\n PassdownLogs: [\r\n OpsCommand.AcknowledgePassdownLog,\r\n OpsCommand.AddPassdownLog,\r\n OpsCommand.DeletePassdownLog,\r\n OpsCommand.UpdatePassdownLog,\r\n ],\r\n PositionReportAlerts: [\r\n OpsCommand.AddPositionReportAlert,\r\n OpsCommand.DeletePositionReportAlert,\r\n OpsCommand.UpdatePositionReportAlert,\r\n ],\r\n PositionReports: [\r\n OpsCommand.AddPositionReport,\r\n OpsCommand.ConfirmPositionReport,\r\n OpsCommand.DeletePositionReport,\r\n OpsCommand.UpdatePositionReport,\r\n ],\r\n QuestionChoices: [OpsCommand.UpsertQuestionChoice],\r\n QuestionnaireQuestionResponseNotes: [\r\n OpsCommand.AddQuestionnaireQuestionResponseNote,\r\n OpsCommand.DeleteQuestionnaireQuestionResponseNote,\r\n OpsCommand.UpdateQuestionnaireQuestionResponseNote,\r\n OpsCommand.UpsertQuestionnaireQuestionResponseNote,\r\n ],\r\n QuestionnaireQuestionResponses: [\r\n OpsCommand.AddQuestionnaireQuestionResponse,\r\n OpsCommand.DeleteQuestionnaireQuestionResponse,\r\n OpsCommand.UpdateQuestionnaireQuestionResponse,\r\n OpsCommand.UpdateQuestionnaireQuestionResponseDeep,\r\n ],\r\n QuestionnaireResponses: [\r\n OpsCommand.AddQuestionnaireResponse,\r\n OpsCommand.DeleteQuestionnaireResponse,\r\n OpsCommand.SubmitQuestionnaireResponse,\r\n OpsCommand.UpdateQuestionnaireResponse,\r\n OpsCommand.UpdateQuestionnaireResponseDeep,\r\n ],\r\n Questionnaires: [\r\n OpsCommand.AddQuestionnaire,\r\n OpsCommand.DeleteQuestionnaire,\r\n OpsCommand.UpdateQuestionnaire,\r\n ],\r\n QuestionnaireSectionQuestions: [\r\n OpsCommand.DeleteQuestionnaireSectionQuestion,\r\n OpsCommand.UpsertQuestionnaireSectionQuestion,\r\n ],\r\n QuestionnaireSections: [\r\n OpsCommand.DeleteQuestionnaireSection,\r\n OpsCommand.UpsertQuestionnaireSection,\r\n ],\r\n Questions: [OpsCommand.AddQuestion, OpsCommand.DeleteQuestion, OpsCommand.UpdateQuestion],\r\n ReceivingFacilityRequests: [\r\n OpsCommand.AcceptReceivingFacilityRequest,\r\n OpsCommand.AddReceivingFacilityRequestDeclineHistory,\r\n OpsCommand.CancelReceivingFacilityRequest,\r\n OpsCommand.DeleteReceivingFacilityRequest,\r\n OpsCommand.DenyReceivingFacilityRequest,\r\n OpsCommand.DivertReceivingFacilityRequest,\r\n OpsCommand.ReferReceivingFacilityRequest,\r\n ],\r\n RendezvousRequests: [\r\n OpsCommand.AddRendezvousRequest,\r\n OpsCommand.DeleteRendezvousRequest,\r\n OpsCommand.UpdateRendezvousRequest,\r\n ],\r\n RequesterRoles: [\r\n OpsCommand.AddRequesterRole,\r\n OpsCommand.DeleteRequesterRole,\r\n OpsCommand.UpdateRequesterRole,\r\n ],\r\n Requesters: [\r\n OpsCommand.UpdateRequester,\r\n OpsCommand.UpdateRequesterSpecialtyTeam,\r\n OpsCommand.UpdateTransferCenterCallInfo,\r\n ],\r\n RequestLocations: [\r\n OpsCommand.UpdateReceivingFacilityAutoAcceptance,\r\n OpsCommand.UpdateRequestLocation,\r\n ],\r\n RequestPatients: [\r\n OpsCommand.AddRequestPatient,\r\n OpsCommand.DeleteRequestPatient,\r\n OpsCommand.UpdateChiefComplaint,\r\n OpsCommand.UpdatePatientClinicalInfo,\r\n OpsCommand.UpdatePatientInfo,\r\n OpsCommand.UpdateRequestPatient,\r\n ],\r\n Requests: [\r\n OpsCommand.AcknowledgeExternalRequest,\r\n OpsCommand.BeginAssignment,\r\n OpsCommand.CancelRequest,\r\n OpsCommand.CancelRequestFromTransferCenter,\r\n OpsCommand.ChangeCallType,\r\n OpsCommand.ChangeRequestCancellationReason,\r\n OpsCommand.ChangeRequestType,\r\n OpsCommand.CreateRequest,\r\n OpsCommand.DelayAssignment,\r\n OpsCommand.DuplicateRequest,\r\n OpsCommand.ReactivateRequest,\r\n OpsCommand.ReactivateRequestFromTransferCenter,\r\n OpsCommand.RecalculateCandidates,\r\n OpsCommand.UpdateRequest,\r\n OpsCommand.UpdateRequestAtlo,\r\n OpsCommand.UpdateRequestPublicUtilityInfo,\r\n OpsCommand.UpdateRequestRegion,\r\n OpsCommand.UpdateRequestSafetyQuestions,\r\n OpsCommand.UpdateRequestStandbyStatus,\r\n ],\r\n TimelineItems: [\r\n OpsCommand.AddTimelineItem,\r\n OpsCommand.DeleteTimelineItem,\r\n OpsCommand.UpdateTimelineItem,\r\n OpsCommand.UpsertTimelineItem,\r\n ],\r\n Timelines: [OpsCommand.AddTimeline, OpsCommand.DeleteTimeline, OpsCommand.UpdateTimeline],\r\n Timestamps: [\r\n OpsCommand.AddEmsReport,\r\n OpsCommand.AddTimestamp,\r\n OpsCommand.DeleteTimestamp,\r\n OpsCommand.ReSendToDataWarehouse,\r\n OpsCommand.SendToImageTrend,\r\n OpsCommand.UpdateEmsReport,\r\n OpsCommand.UpdateTimestamp,\r\n ],\r\n TimestampTypes: [\r\n OpsCommand.AddTimestampType,\r\n OpsCommand.DeleteTimestampType,\r\n OpsCommand.UpdateTimestampType,\r\n ],\r\n TrackedMessages: [\r\n OpsCommand.DeliverTrackedMessage,\r\n OpsCommand.SendMessage,\r\n OpsCommand.UpdateTrackedMessage,\r\n ],\r\n TransferReasons: [\r\n OpsCommand.AddTransferReason,\r\n OpsCommand.DeleteTransferReason,\r\n OpsCommand.UpdateTransferReason,\r\n ],\r\n TransportOfferOptions: [OpsCommand.UpdateTransportOfferOption],\r\n TransportOffers: [\r\n OpsCommand.AcceptTransportOffer,\r\n OpsCommand.AddCancellation,\r\n OpsCommand.AddDecline,\r\n OpsCommand.AddTransportOffer,\r\n OpsCommand.BeginTransportOffer,\r\n OpsCommand.CancelTransportOffer,\r\n OpsCommand.DeclineAndAssignNewTransportOffer,\r\n OpsCommand.DeclineTransportOffer,\r\n OpsCommand.DeclineTransportOfferAndDelayAssignment,\r\n OpsCommand.DeleteTransportOffer,\r\n OpsCommand.InitiateTransportCheck,\r\n OpsCommand.OfferWithBulkSkip,\r\n OpsCommand.ReferTransportOffer,\r\n OpsCommand.SkipTransportOffer,\r\n OpsCommand.UpdateCancellation,\r\n OpsCommand.UpdateDecline,\r\n OpsCommand.UpdateOfferRank,\r\n OpsCommand.UpdateSkip,\r\n OpsCommand.UpdateTransportOffer,\r\n OpsCommand.UpdateTransportOfferEta,\r\n ],\r\n TransportReasons: [\r\n OpsCommand.AddTransportReason,\r\n OpsCommand.DeleteTransportReason,\r\n OpsCommand.UpdateTransportReason,\r\n ],\r\n TripLegManifestEntries: [\r\n OpsCommand.AddManifestEntry,\r\n OpsCommand.DeleteManifestEntry,\r\n OpsCommand.UpdateManifestEntry,\r\n ],\r\n TripLegs: [OpsCommand.UpdateOdometerReadings],\r\n TripPassengers: [\r\n OpsCommand.AddTripPassenger,\r\n OpsCommand.DeleteTripPassenger,\r\n OpsCommand.UpdateTripPassenger,\r\n ],\r\n Trips: [\r\n OpsCommand.AddTrip,\r\n OpsCommand.AddTripLegManifestEntry,\r\n OpsCommand.CalculateEtas,\r\n OpsCommand.ConfirmManifest,\r\n OpsCommand.CreatePrecautionaryLanding,\r\n OpsCommand.CreatePrecautionaryLandingV2,\r\n OpsCommand.DeleteTrip,\r\n OpsCommand.DeleteTripLegManifestEntry,\r\n OpsCommand.InsertWaypoint,\r\n OpsCommand.MergePostAndDropoffWaypoints,\r\n OpsCommand.MergeUnitOriginAndPickupWaypoints,\r\n OpsCommand.ModifyWaypoint,\r\n OpsCommand.RecalculateTripMileage,\r\n OpsCommand.RemoveWaypoint,\r\n OpsCommand.SplitUnitOriginAndPickupWaypoints,\r\n OpsCommand.SplitUnitPostAndDropoffWaypoints,\r\n OpsCommand.SwapWaypoint,\r\n OpsCommand.UpdateTrip,\r\n ],\r\n UnitActivationRules: [\r\n OpsCommand.AddUnitActivationRule,\r\n OpsCommand.DeleteUnitActivationRule,\r\n OpsCommand.UpdateUnitActivationRule,\r\n ],\r\n UnitEMSystemMappings: [\r\n OpsCommand.AddUnitEMSystemMapping,\r\n OpsCommand.DeleteUnitEMSystemMapping,\r\n OpsCommand.UpdateUnitEMSystemMapping,\r\n ],\r\n UnitNotes: [OpsCommand.AddUnitNote, OpsCommand.DeleteUnitNote, OpsCommand.UpdateUnitNote],\r\n UnitPositions: [\r\n OpsCommand.AddUnitPosition,\r\n OpsCommand.DeleteUnitPosition,\r\n OpsCommand.RemoveTeamMemberFromUnitPosition,\r\n OpsCommand.UpdateUnitPosition,\r\n OpsCommand.UpsertUnitPosition,\r\n ],\r\n Units: [\r\n OpsCommand.AddUnit,\r\n OpsCommand.AssignVehicle,\r\n OpsCommand.DelayUnit,\r\n OpsCommand.DeleteUnit,\r\n OpsCommand.DisableUnit,\r\n OpsCommand.EnableUnit,\r\n OpsCommand.EnsureThirdPartyUnit,\r\n OpsCommand.EnsureThirdPartyUnits,\r\n OpsCommand.HideUnit,\r\n OpsCommand.MarkAsPilotUpdated,\r\n OpsCommand.ReassignVehicle,\r\n OpsCommand.RemoveDelayFromUnit,\r\n OpsCommand.RemoveVehicleFromUnit,\r\n OpsCommand.ReturnUnitToService,\r\n OpsCommand.SwapUnitVehicles,\r\n OpsCommand.TakeUnitOutOfService,\r\n OpsCommand.TeleportUnit,\r\n OpsCommand.UnhideUnit,\r\n OpsCommand.UpdatePilotUnitConfiguration,\r\n OpsCommand.UpdateUnit,\r\n OpsCommand.UpdateUnitConfiguration,\r\n ],\r\n UnitShifts: [OpsCommand.AddUnitShift, OpsCommand.DeleteUnitShift, OpsCommand.UpdateUnitShift],\r\n VehicleDispositions: [\r\n OpsCommand.AddVehicleDisposition,\r\n OpsCommand.DeleteVehicleDisposition,\r\n OpsCommand.UpdateVehicleDisposition,\r\n ],\r\n Waypoints: [OpsCommand.AddWaypoint, OpsCommand.DeleteWaypoint, OpsCommand.UpdateWaypoint],\r\n WebOrderLogs: [OpsCommand.AcknowledgeWebOrderLog, OpsCommand.AddWebOrderLog],\r\n};\r\n\r\nexport class OperationsMutations {\r\n constructor(private _executor: GraphqlMutationExecutorService) {}\r\n\r\n // ActivationRules\r\n public addActivationRule(\r\n command: AddActivationRule,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddActivationRule',\r\n AddActivationRuleMutation,\r\n AddActivationRuleMutationVariables,\r\n T\r\n >({\r\n name: 'AddActivationRule',\r\n mutation: gql`\r\n mutation AddActivationRuleMutation($command: AddActivationRule!) {\r\n addActivationRule(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteActivationRule(\r\n command: DeleteActivationRule,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteActivationRule',\r\n DeleteActivationRuleMutation,\r\n DeleteActivationRuleMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteActivationRule',\r\n mutation: gql`\r\n mutation DeleteActivationRuleMutation($command: DeleteActivationRule!) {\r\n deleteActivationRule(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateActivationRule(\r\n command: UpdateActivationRule,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateActivationRule',\r\n UpdateActivationRuleMutation,\r\n UpdateActivationRuleMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateActivationRule',\r\n mutation: gql`\r\n mutation UpdateActivationRuleMutation($command: UpdateActivationRule!) {\r\n updateActivationRule(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // ActiveAlerts\r\n public acknowledgeAlert(\r\n command: AcknowledgeAlert,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AcknowledgeAlert',\r\n AcknowledgeAlertMutation,\r\n AcknowledgeAlertMutationVariables,\r\n T\r\n >({\r\n name: 'AcknowledgeAlert',\r\n mutation: gql`\r\n mutation AcknowledgeAlertMutation($command: AcknowledgeAlert!) {\r\n acknowledgeAlert(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addActiveAlert(\r\n command: AddActiveAlert,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddActiveAlert',\r\n AddActiveAlertMutation,\r\n AddActiveAlertMutationVariables,\r\n T\r\n >({\r\n name: 'AddActiveAlert',\r\n mutation: gql`\r\n mutation AddActiveAlertMutation($command: AddActiveAlert!) {\r\n addActiveAlert(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public cleanupActiveAlerts(\r\n command: CleanupActiveAlerts,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CleanupActiveAlerts',\r\n CleanupActiveAlertsMutation,\r\n CleanupActiveAlertsMutationVariables,\r\n T\r\n >({\r\n name: 'CleanupActiveAlerts',\r\n mutation: gql`\r\n mutation CleanupActiveAlertsMutation($command: CleanupActiveAlerts!) {\r\n cleanupActiveAlerts(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public cleanupCardActiveAlerts(\r\n command: CleanupCardActiveAlerts,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CleanupCardActiveAlerts',\r\n CleanupCardActiveAlertsMutation,\r\n CleanupCardActiveAlertsMutationVariables,\r\n T\r\n >({\r\n name: 'CleanupCardActiveAlerts',\r\n mutation: gql`\r\n mutation CleanupCardActiveAlertsMutation($command: CleanupCardActiveAlerts!) {\r\n cleanupCardActiveAlerts(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteActiveAlert(\r\n command: DeleteActiveAlert,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteActiveAlert',\r\n DeleteActiveAlertMutation,\r\n DeleteActiveAlertMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteActiveAlert',\r\n mutation: gql`\r\n mutation DeleteActiveAlertMutation($command: DeleteActiveAlert!) {\r\n deleteActiveAlert(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public snoozeAlert(\r\n command: SnoozeAlert,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SnoozeAlert',\r\n SnoozeAlertMutation,\r\n SnoozeAlertMutationVariables,\r\n T\r\n >({\r\n name: 'SnoozeAlert',\r\n mutation: gql`\r\n mutation SnoozeAlertMutation($command: SnoozeAlert!) {\r\n snoozeAlert(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateActiveAlert(\r\n command: UpdateActiveAlert,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateActiveAlert',\r\n UpdateActiveAlertMutation,\r\n UpdateActiveAlertMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateActiveAlert',\r\n mutation: gql`\r\n mutation UpdateActiveAlertMutation($command: UpdateActiveAlert!) {\r\n updateActiveAlert(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // ActiveCardUnitOfferings\r\n // ActiveTimelines\r\n public deleteActiveTimeline(\r\n command: DeleteActiveTimeline,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteActiveTimeline',\r\n DeleteActiveTimelineMutation,\r\n DeleteActiveTimelineMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteActiveTimeline',\r\n mutation: gql`\r\n mutation DeleteActiveTimelineMutation($command: DeleteActiveTimeline!) {\r\n deleteActiveTimeline(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateActiveTimeline(\r\n command: UpdateActiveTimeline,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateActiveTimeline',\r\n UpdateActiveTimelineMutation,\r\n UpdateActiveTimelineMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateActiveTimeline',\r\n mutation: gql`\r\n mutation UpdateActiveTimelineMutation($command: UpdateActiveTimeline!) {\r\n updateActiveTimeline(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Alerts\r\n public addAlert(\r\n command: AddAlert,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddAlert', AddAlertMutation, AddAlertMutationVariables, T>({\r\n name: 'AddAlert',\r\n mutation: gql`\r\n mutation AddAlertMutation($command: AddAlert!) {\r\n addAlert(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public copyAlert(\r\n command: CopyAlert,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'CopyAlert', CopyAlertMutation, CopyAlertMutationVariables, T>({\r\n name: 'CopyAlert',\r\n mutation: gql`\r\n mutation CopyAlertMutation($command: CopyAlert!) {\r\n copyAlert(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteAlert(\r\n command: DeleteAlert,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteAlert',\r\n DeleteAlertMutation,\r\n DeleteAlertMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteAlert',\r\n mutation: gql`\r\n mutation DeleteAlertMutation($command: DeleteAlert!) {\r\n deleteAlert(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateAlert(\r\n command: UpdateAlert,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateAlert',\r\n UpdateAlertMutation,\r\n UpdateAlertMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateAlert',\r\n mutation: gql`\r\n mutation UpdateAlertMutation($command: UpdateAlert!) {\r\n updateAlert(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // ApplicationNotifications\r\n public addApplicationNotification(\r\n command: AddApplicationNotification,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddApplicationNotification',\r\n AddApplicationNotificationMutation,\r\n AddApplicationNotificationMutationVariables,\r\n T\r\n >({\r\n name: 'AddApplicationNotification',\r\n mutation: gql`\r\n mutation AddApplicationNotificationMutation($command: AddApplicationNotification!) {\r\n addApplicationNotification(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteApplicationNotification(\r\n command: DeleteApplicationNotification,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteApplicationNotification',\r\n DeleteApplicationNotificationMutation,\r\n DeleteApplicationNotificationMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteApplicationNotification',\r\n mutation: gql`\r\n mutation DeleteApplicationNotificationMutation($command: DeleteApplicationNotification!) {\r\n deleteApplicationNotification(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public dismissApplicationNotification(\r\n command: DismissApplicationNotification,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DismissApplicationNotification',\r\n DismissApplicationNotificationMutation,\r\n DismissApplicationNotificationMutationVariables,\r\n T\r\n >({\r\n name: 'DismissApplicationNotification',\r\n mutation: gql`\r\n mutation DismissApplicationNotificationMutation($command: DismissApplicationNotification!) {\r\n dismissApplicationNotification(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateApplicationNotification(\r\n command: UpdateApplicationNotification,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateApplicationNotification',\r\n UpdateApplicationNotificationMutation,\r\n UpdateApplicationNotificationMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateApplicationNotification',\r\n mutation: gql`\r\n mutation UpdateApplicationNotificationMutation($command: UpdateApplicationNotification!) {\r\n updateApplicationNotification(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // AssignmentDelayedReasons\r\n public addAssignmentDelayedReason(\r\n command: AddAssignmentDelayedReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddAssignmentDelayedReason',\r\n AddAssignmentDelayedReasonMutation,\r\n AddAssignmentDelayedReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddAssignmentDelayedReason',\r\n mutation: gql`\r\n mutation AddAssignmentDelayedReasonMutation($command: AddAssignmentDelayedReason!) {\r\n addAssignmentDelayedReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteAssignmentDelayedReason(\r\n command: DeleteAssignmentDelayedReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteAssignmentDelayedReason',\r\n DeleteAssignmentDelayedReasonMutation,\r\n DeleteAssignmentDelayedReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteAssignmentDelayedReason',\r\n mutation: gql`\r\n mutation DeleteAssignmentDelayedReasonMutation($command: DeleteAssignmentDelayedReason!) {\r\n deleteAssignmentDelayedReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateAssignmentDelayedReason(\r\n command: UpdateAssignmentDelayedReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateAssignmentDelayedReason',\r\n UpdateAssignmentDelayedReasonMutation,\r\n UpdateAssignmentDelayedReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateAssignmentDelayedReason',\r\n mutation: gql`\r\n mutation UpdateAssignmentDelayedReasonMutation($command: UpdateAssignmentDelayedReason!) {\r\n updateAssignmentDelayedReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // CancellationCategories\r\n public addCancellationCategory(\r\n command: AddCancellationCategory,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddCancellationCategory',\r\n AddCancellationCategoryMutation,\r\n AddCancellationCategoryMutationVariables,\r\n T\r\n >({\r\n name: 'AddCancellationCategory',\r\n mutation: gql`\r\n mutation AddCancellationCategoryMutation($command: AddCancellationCategory!) {\r\n addCancellationCategory(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteCancellationCategory(\r\n command: DeleteCancellationCategory,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteCancellationCategory',\r\n DeleteCancellationCategoryMutation,\r\n DeleteCancellationCategoryMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteCancellationCategory',\r\n mutation: gql`\r\n mutation DeleteCancellationCategoryMutation($command: DeleteCancellationCategory!) {\r\n deleteCancellationCategory(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCancellationCategory(\r\n command: UpdateCancellationCategory,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCancellationCategory',\r\n UpdateCancellationCategoryMutation,\r\n UpdateCancellationCategoryMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCancellationCategory',\r\n mutation: gql`\r\n mutation UpdateCancellationCategoryMutation($command: UpdateCancellationCategory!) {\r\n updateCancellationCategory(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // CancellationReasons\r\n public addCancellationReason(\r\n command: AddCancellationReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddCancellationReason',\r\n AddCancellationReasonMutation,\r\n AddCancellationReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddCancellationReason',\r\n mutation: gql`\r\n mutation AddCancellationReasonMutation($command: AddCancellationReason!) {\r\n addCancellationReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteCancellationReason(\r\n command: DeleteCancellationReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteCancellationReason',\r\n DeleteCancellationReasonMutation,\r\n DeleteCancellationReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteCancellationReason',\r\n mutation: gql`\r\n mutation DeleteCancellationReasonMutation($command: DeleteCancellationReason!) {\r\n deleteCancellationReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCancellationReason(\r\n command: UpdateCancellationReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCancellationReason',\r\n UpdateCancellationReasonMutation,\r\n UpdateCancellationReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCancellationReason',\r\n mutation: gql`\r\n mutation UpdateCancellationReasonMutation($command: UpdateCancellationReason!) {\r\n updateCancellationReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // CancellationSecondaryReasons\r\n public addCancellationSecondaryReason(\r\n command: AddCancellationSecondaryReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddCancellationSecondaryReason',\r\n AddCancellationSecondaryReasonMutation,\r\n AddCancellationSecondaryReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddCancellationSecondaryReason',\r\n mutation: gql`\r\n mutation AddCancellationSecondaryReasonMutation($command: AddCancellationSecondaryReason!) {\r\n addCancellationSecondaryReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteCancellationSecondaryReason(\r\n command: DeleteCancellationSecondaryReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteCancellationSecondaryReason',\r\n DeleteCancellationSecondaryReasonMutation,\r\n DeleteCancellationSecondaryReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteCancellationSecondaryReason',\r\n mutation: gql`\r\n mutation DeleteCancellationSecondaryReasonMutation(\r\n $command: DeleteCancellationSecondaryReason!\r\n ) {\r\n deleteCancellationSecondaryReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCancellationSecondaryReason(\r\n command: UpdateCancellationSecondaryReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCancellationSecondaryReason',\r\n UpdateCancellationSecondaryReasonMutation,\r\n UpdateCancellationSecondaryReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCancellationSecondaryReason',\r\n mutation: gql`\r\n mutation UpdateCancellationSecondaryReasonMutation(\r\n $command: UpdateCancellationSecondaryReason!\r\n ) {\r\n updateCancellationSecondaryReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // CardLinks\r\n public addCardLink(\r\n command: AddCardLink,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddCardLink',\r\n AddCardLinkMutation,\r\n AddCardLinkMutationVariables,\r\n T\r\n >({\r\n name: 'AddCardLink',\r\n mutation: gql`\r\n mutation AddCardLinkMutation($command: AddCardLink!) {\r\n addCardLink(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteCardLink(\r\n command: DeleteCardLink,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteCardLink',\r\n DeleteCardLinkMutation,\r\n DeleteCardLinkMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteCardLink',\r\n mutation: gql`\r\n mutation DeleteCardLinkMutation($command: DeleteCardLink!) {\r\n deleteCardLink(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCardLink(\r\n command: UpdateCardLink,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCardLink',\r\n UpdateCardLinkMutation,\r\n UpdateCardLinkMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCardLink',\r\n mutation: gql`\r\n mutation UpdateCardLinkMutation($command: UpdateCardLink!) {\r\n updateCardLink(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // CardNoteArchives\r\n public addCardNoteArchive(\r\n command: AddCardNoteArchive,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddCardNoteArchive',\r\n AddCardNoteArchiveMutation,\r\n AddCardNoteArchiveMutationVariables,\r\n T\r\n >({\r\n name: 'AddCardNoteArchive',\r\n mutation: gql`\r\n mutation AddCardNoteArchiveMutation($command: AddCardNoteArchive!) {\r\n addCardNoteArchive(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteCardNoteArchive(\r\n command: DeleteCardNoteArchive,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteCardNoteArchive',\r\n DeleteCardNoteArchiveMutation,\r\n DeleteCardNoteArchiveMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteCardNoteArchive',\r\n mutation: gql`\r\n mutation DeleteCardNoteArchiveMutation($command: DeleteCardNoteArchive!) {\r\n deleteCardNoteArchive(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCardNoteArchive(\r\n command: UpdateCardNoteArchive,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCardNoteArchive',\r\n UpdateCardNoteArchiveMutation,\r\n UpdateCardNoteArchiveMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCardNoteArchive',\r\n mutation: gql`\r\n mutation UpdateCardNoteArchiveMutation($command: UpdateCardNoteArchive!) {\r\n updateCardNoteArchive(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // CardNotes\r\n public addCardNote(\r\n command: AddCardNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddCardNote',\r\n AddCardNoteMutation,\r\n AddCardNoteMutationVariables,\r\n T\r\n >({\r\n name: 'AddCardNote',\r\n mutation: gql`\r\n mutation AddCardNoteMutation($command: AddCardNote!) {\r\n addCardNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteCardNote(\r\n command: DeleteCardNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteCardNote',\r\n DeleteCardNoteMutation,\r\n DeleteCardNoteMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteCardNote',\r\n mutation: gql`\r\n mutation DeleteCardNoteMutation($command: DeleteCardNote!) {\r\n deleteCardNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCardNote(\r\n command: UpdateCardNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCardNote',\r\n UpdateCardNoteMutation,\r\n UpdateCardNoteMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCardNote',\r\n mutation: gql`\r\n mutation UpdateCardNoteMutation($command: UpdateCardNote!) {\r\n updateCardNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // CardReOpenReasons\r\n public addCardReOpenReason(\r\n command: AddCardReOpenReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddCardReOpenReason',\r\n AddCardReOpenReasonMutation,\r\n AddCardReOpenReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddCardReOpenReason',\r\n mutation: gql`\r\n mutation AddCardReOpenReasonMutation($command: AddCardReOpenReason!) {\r\n addCardReOpenReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteCardReOpenReason(\r\n command: DeleteCardReOpenReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteCardReOpenReason',\r\n DeleteCardReOpenReasonMutation,\r\n DeleteCardReOpenReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteCardReOpenReason',\r\n mutation: gql`\r\n mutation DeleteCardReOpenReasonMutation($command: DeleteCardReOpenReason!) {\r\n deleteCardReOpenReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCardReOpenReason(\r\n command: UpdateCardReOpenReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCardReOpenReason',\r\n UpdateCardReOpenReasonMutation,\r\n UpdateCardReOpenReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCardReOpenReason',\r\n mutation: gql`\r\n mutation UpdateCardReOpenReasonMutation($command: UpdateCardReOpenReason!) {\r\n updateCardReOpenReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Cards\r\n public addCard(\r\n command: AddCard,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddCard', AddCardMutation, AddCardMutationVariables, T>({\r\n name: 'AddCard',\r\n mutation: gql`\r\n mutation AddCardMutation($command: AddCard!) {\r\n addCard(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public changeCardCallStatus(\r\n command: ChangeCardCallStatus,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ChangeCardCallStatus',\r\n ChangeCardCallStatusMutation,\r\n ChangeCardCallStatusMutationVariables,\r\n T\r\n >({\r\n name: 'ChangeCardCallStatus',\r\n mutation: gql`\r\n mutation ChangeCardCallStatusMutation($command: ChangeCardCallStatus!) {\r\n changeCardCallStatus(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public changeUnit(\r\n command: ChangeUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'ChangeUnit', ChangeUnitMutation, ChangeUnitMutationVariables, T>(\r\n {\r\n name: 'ChangeUnit',\r\n mutation: gql`\r\n mutation ChangeUnitMutation($command: ChangeUnit!) {\r\n changeUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public cleanupCards(\r\n command: CleanupCards,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CleanupCards',\r\n CleanupCardsMutation,\r\n CleanupCardsMutationVariables,\r\n T\r\n >({\r\n name: 'CleanupCards',\r\n mutation: gql`\r\n mutation CleanupCardsMutation($command: CleanupCards!) {\r\n cleanupCards(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public closeCard(\r\n command: CloseCard,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'CloseCard', CloseCardMutation, CloseCardMutationVariables, T>({\r\n name: 'CloseCard',\r\n mutation: gql`\r\n mutation CloseCardMutation($command: CloseCard!) {\r\n closeCard(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public createSystemCrewNotification(\r\n command: CreateSystemCrewNotification,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CreateSystemCrewNotification',\r\n CreateSystemCrewNotificationMutation,\r\n CreateSystemCrewNotificationMutationVariables,\r\n T\r\n >({\r\n name: 'CreateSystemCrewNotification',\r\n mutation: gql`\r\n mutation CreateSystemCrewNotificationMutation($command: CreateSystemCrewNotification!) {\r\n createSystemCrewNotification(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteCard(\r\n command: DeleteCard,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'DeleteCard', DeleteCardMutation, DeleteCardMutationVariables, T>(\r\n {\r\n name: 'DeleteCard',\r\n mutation: gql`\r\n mutation DeleteCardMutation($command: DeleteCard!) {\r\n deleteCard(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public generateCardReport(\r\n command: GenerateCardReport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'GenerateCardReport',\r\n GenerateCardReportMutation,\r\n GenerateCardReportMutationVariables,\r\n T\r\n >({\r\n name: 'GenerateCardReport',\r\n mutation: gql`\r\n mutation GenerateCardReportMutation($command: GenerateCardReport!) {\r\n generateCardReport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public generateCardSummaryChange(\r\n command: GenerateCardSummaryChange,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'GenerateCardSummaryChange',\r\n GenerateCardSummaryChangeMutation,\r\n GenerateCardSummaryChangeMutationVariables,\r\n T\r\n >({\r\n name: 'GenerateCardSummaryChange',\r\n mutation: gql`\r\n mutation GenerateCardSummaryChangeMutation($command: GenerateCardSummaryChange!) {\r\n generateCardSummaryChange(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public generateCardSummaryChangeV2(\r\n command: GenerateCardSummaryChangeV2,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'GenerateCardSummaryChangeV2',\r\n GenerateCardSummaryChangeV2Mutation,\r\n GenerateCardSummaryChangeV2MutationVariables,\r\n T\r\n >({\r\n name: 'GenerateCardSummaryChangeV2',\r\n mutation: gql`\r\n mutation GenerateCardSummaryChangeV2Mutation($command: GenerateCardSummaryChangeV2!) {\r\n generateCardSummaryChangeV2(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public linkCards(\r\n command: LinkCards,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'LinkCards', LinkCardsMutation, LinkCardsMutationVariables, T>({\r\n name: 'LinkCards',\r\n mutation: gql`\r\n mutation LinkCardsMutation($command: LinkCards!) {\r\n linkCards(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public reOpenCard(\r\n command: ReOpenCard,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'ReOpenCard', ReOpenCardMutation, ReOpenCardMutationVariables, T>(\r\n {\r\n name: 'ReOpenCard',\r\n mutation: gql`\r\n mutation ReOpenCardMutation($command: ReOpenCard!) {\r\n reOpenCard(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public requestAdditionalUnits(\r\n command: RequestAdditionalUnits,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'RequestAdditionalUnits',\r\n RequestAdditionalUnitsMutation,\r\n RequestAdditionalUnitsMutationVariables,\r\n T\r\n >({\r\n name: 'RequestAdditionalUnits',\r\n mutation: gql`\r\n mutation RequestAdditionalUnitsMutation($command: RequestAdditionalUnits!) {\r\n requestAdditionalUnits(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public sendPatientInfo(\r\n command: SendPatientInfo,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SendPatientInfo',\r\n SendPatientInfoMutation,\r\n SendPatientInfoMutationVariables,\r\n T\r\n >({\r\n name: 'SendPatientInfo',\r\n mutation: gql`\r\n mutation SendPatientInfoMutation($command: SendPatientInfo!) {\r\n sendPatientInfo(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public setCardLockStatus(\r\n command: SetCardLockStatus,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SetCardLockStatus',\r\n SetCardLockStatusMutation,\r\n SetCardLockStatusMutationVariables,\r\n T\r\n >({\r\n name: 'SetCardLockStatus',\r\n mutation: gql`\r\n mutation SetCardLockStatusMutation($command: SetCardLockStatus!) {\r\n setCardLockStatus(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public unDeleteCard(\r\n command: UnDeleteCard,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UnDeleteCard',\r\n UnDeleteCardMutation,\r\n UnDeleteCardMutationVariables,\r\n T\r\n >({\r\n name: 'UnDeleteCard',\r\n mutation: gql`\r\n mutation UnDeleteCardMutation($command: UnDeleteCard!) {\r\n unDeleteCard(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCard(\r\n command: UpdateCard,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'UpdateCard', UpdateCardMutation, UpdateCardMutationVariables, T>(\r\n {\r\n name: 'UpdateCard',\r\n mutation: gql`\r\n mutation UpdateCardMutation($command: UpdateCard!) {\r\n updateCard(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public updateCardBillable(\r\n command: UpdateCardBillable,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCardBillable',\r\n UpdateCardBillableMutation,\r\n UpdateCardBillableMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCardBillable',\r\n mutation: gql`\r\n mutation UpdateCardBillableMutation($command: UpdateCardBillable!) {\r\n updateCardBillable(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCardDiversionType(\r\n command: UpdateCardDiversionType,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCardDiversionType',\r\n UpdateCardDiversionTypeMutation,\r\n UpdateCardDiversionTypeMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCardDiversionType',\r\n mutation: gql`\r\n mutation UpdateCardDiversionTypeMutation($command: UpdateCardDiversionType!) {\r\n updateCardDiversionType(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCardSearchIndex(\r\n command: UpdateCardSearchIndex,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCardSearchIndex',\r\n UpdateCardSearchIndexMutation,\r\n UpdateCardSearchIndexMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCardSearchIndex',\r\n mutation: gql`\r\n mutation UpdateCardSearchIndexMutation($command: UpdateCardSearchIndex!) {\r\n updateCardSearchIndex(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateGmrCadNumber(\r\n command: UpdateGmrCadNumber,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateGmrCadNumber',\r\n UpdateGmrCadNumberMutation,\r\n UpdateGmrCadNumberMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateGmrCadNumber',\r\n mutation: gql`\r\n mutation UpdateGmrCadNumberMutation($command: UpdateGmrCadNumber!) {\r\n updateGmrCadNumber(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updatePlannedCardCompletionTime(\r\n command: UpdatePlannedCardCompletionTime,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdatePlannedCardCompletionTime',\r\n UpdatePlannedCardCompletionTimeMutation,\r\n UpdatePlannedCardCompletionTimeMutationVariables,\r\n T\r\n >({\r\n name: 'UpdatePlannedCardCompletionTime',\r\n mutation: gql`\r\n mutation UpdatePlannedCardCompletionTimeMutation(\r\n $command: UpdatePlannedCardCompletionTime!\r\n ) {\r\n updatePlannedCardCompletionTime(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // ConfigurationSettings\r\n public addConfigurationSetting(\r\n command: AddConfigurationSetting,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddConfigurationSetting',\r\n AddConfigurationSettingMutation,\r\n AddConfigurationSettingMutationVariables,\r\n T\r\n >({\r\n name: 'AddConfigurationSetting',\r\n mutation: gql`\r\n mutation AddConfigurationSettingMutation($command: AddConfigurationSetting!) {\r\n addConfigurationSetting(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateConfigurationSetting(\r\n command: UpdateConfigurationSetting,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateConfigurationSetting',\r\n UpdateConfigurationSettingMutation,\r\n UpdateConfigurationSettingMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateConfigurationSetting',\r\n mutation: gql`\r\n mutation UpdateConfigurationSettingMutation($command: UpdateConfigurationSetting!) {\r\n updateConfigurationSetting(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // DeclineCategories\r\n public addDeclineCategory(\r\n command: AddDeclineCategory,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddDeclineCategory',\r\n AddDeclineCategoryMutation,\r\n AddDeclineCategoryMutationVariables,\r\n T\r\n >({\r\n name: 'AddDeclineCategory',\r\n mutation: gql`\r\n mutation AddDeclineCategoryMutation($command: AddDeclineCategory!) {\r\n addDeclineCategory(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteDeclineCategory(\r\n command: DeleteDeclineCategory,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteDeclineCategory',\r\n DeleteDeclineCategoryMutation,\r\n DeleteDeclineCategoryMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteDeclineCategory',\r\n mutation: gql`\r\n mutation DeleteDeclineCategoryMutation($command: DeleteDeclineCategory!) {\r\n deleteDeclineCategory(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateDeclineCategory(\r\n command: UpdateDeclineCategory,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateDeclineCategory',\r\n UpdateDeclineCategoryMutation,\r\n UpdateDeclineCategoryMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateDeclineCategory',\r\n mutation: gql`\r\n mutation UpdateDeclineCategoryMutation($command: UpdateDeclineCategory!) {\r\n updateDeclineCategory(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // DeclineReasons\r\n public addDeclineReason(\r\n command: AddDeclineReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddDeclineReason',\r\n AddDeclineReasonMutation,\r\n AddDeclineReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddDeclineReason',\r\n mutation: gql`\r\n mutation AddDeclineReasonMutation($command: AddDeclineReason!) {\r\n addDeclineReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteDeclineReason(\r\n command: DeleteDeclineReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteDeclineReason',\r\n DeleteDeclineReasonMutation,\r\n DeleteDeclineReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteDeclineReason',\r\n mutation: gql`\r\n mutation DeleteDeclineReasonMutation($command: DeleteDeclineReason!) {\r\n deleteDeclineReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateDeclineReason(\r\n command: UpdateDeclineReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateDeclineReason',\r\n UpdateDeclineReasonMutation,\r\n UpdateDeclineReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateDeclineReason',\r\n mutation: gql`\r\n mutation UpdateDeclineReasonMutation($command: UpdateDeclineReason!) {\r\n updateDeclineReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // DeclineSecondaryReasons\r\n public addDeclineSecondaryReason(\r\n command: AddDeclineSecondaryReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddDeclineSecondaryReason',\r\n AddDeclineSecondaryReasonMutation,\r\n AddDeclineSecondaryReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddDeclineSecondaryReason',\r\n mutation: gql`\r\n mutation AddDeclineSecondaryReasonMutation($command: AddDeclineSecondaryReason!) {\r\n addDeclineSecondaryReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteDeclineSecondaryReason(\r\n command: DeleteDeclineSecondaryReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteDeclineSecondaryReason',\r\n DeleteDeclineSecondaryReasonMutation,\r\n DeleteDeclineSecondaryReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteDeclineSecondaryReason',\r\n mutation: gql`\r\n mutation DeleteDeclineSecondaryReasonMutation($command: DeleteDeclineSecondaryReason!) {\r\n deleteDeclineSecondaryReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateDeclineSecondaryReason(\r\n command: UpdateDeclineSecondaryReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateDeclineSecondaryReason',\r\n UpdateDeclineSecondaryReasonMutation,\r\n UpdateDeclineSecondaryReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateDeclineSecondaryReason',\r\n mutation: gql`\r\n mutation UpdateDeclineSecondaryReasonMutation($command: UpdateDeclineSecondaryReason!) {\r\n updateDeclineSecondaryReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // DiversionReasons\r\n public addDiversionReason(\r\n command: AddDiversionReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddDiversionReason',\r\n AddDiversionReasonMutation,\r\n AddDiversionReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddDiversionReason',\r\n mutation: gql`\r\n mutation AddDiversionReasonMutation($command: AddDiversionReason!) {\r\n addDiversionReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteDiversionReason(\r\n command: DeleteDiversionReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteDiversionReason',\r\n DeleteDiversionReasonMutation,\r\n DeleteDiversionReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteDiversionReason',\r\n mutation: gql`\r\n mutation DeleteDiversionReasonMutation($command: DeleteDiversionReason!) {\r\n deleteDiversionReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateDiversionReason(\r\n command: UpdateDiversionReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateDiversionReason',\r\n UpdateDiversionReasonMutation,\r\n UpdateDiversionReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateDiversionReason',\r\n mutation: gql`\r\n mutation UpdateDiversionReasonMutation($command: UpdateDiversionReason!) {\r\n updateDiversionReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // EscortRequests\r\n public addEscortRequest(\r\n command: AddEscortRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddEscortRequest',\r\n AddEscortRequestMutation,\r\n AddEscortRequestMutationVariables,\r\n T\r\n >({\r\n name: 'AddEscortRequest',\r\n mutation: gql`\r\n mutation AddEscortRequestMutation($command: AddEscortRequest!) {\r\n addEscortRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteEscortRequest(\r\n command: DeleteEscortRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteEscortRequest',\r\n DeleteEscortRequestMutation,\r\n DeleteEscortRequestMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteEscortRequest',\r\n mutation: gql`\r\n mutation DeleteEscortRequestMutation($command: DeleteEscortRequest!) {\r\n deleteEscortRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateEscortRequest(\r\n command: UpdateEscortRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateEscortRequest',\r\n UpdateEscortRequestMutation,\r\n UpdateEscortRequestMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateEscortRequest',\r\n mutation: gql`\r\n mutation UpdateEscortRequestMutation($command: UpdateEscortRequest!) {\r\n updateEscortRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // EstimatedDurations\r\n public makeEstimatedDurationOfficial(\r\n command: MakeEstimatedDurationOfficial,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'MakeEstimatedDurationOfficial',\r\n MakeEstimatedDurationOfficialMutation,\r\n MakeEstimatedDurationOfficialMutationVariables,\r\n T\r\n >({\r\n name: 'MakeEstimatedDurationOfficial',\r\n mutation: gql`\r\n mutation MakeEstimatedDurationOfficialMutation($command: MakeEstimatedDurationOfficial!) {\r\n makeEstimatedDurationOfficial(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateEstimatedDurations(\r\n command: UpdateEstimatedDurations,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateEstimatedDurations',\r\n UpdateEstimatedDurationsMutation,\r\n UpdateEstimatedDurationsMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateEstimatedDurations',\r\n mutation: gql`\r\n mutation UpdateEstimatedDurationsMutation($command: UpdateEstimatedDurations!) {\r\n updateEstimatedDurations(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTripLegDuration(\r\n command: UpdateTripLegDuration,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTripLegDuration',\r\n UpdateTripLegDurationMutation,\r\n UpdateTripLegDurationMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTripLegDuration',\r\n mutation: gql`\r\n mutation UpdateTripLegDurationMutation($command: UpdateTripLegDuration!) {\r\n updateTripLegDuration(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateWaypointDuration(\r\n command: UpdateWaypointDuration,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateWaypointDuration',\r\n UpdateWaypointDurationMutation,\r\n UpdateWaypointDurationMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateWaypointDuration',\r\n mutation: gql`\r\n mutation UpdateWaypointDurationMutation($command: UpdateWaypointDuration!) {\r\n updateWaypointDuration(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Etas\r\n // ExternalActions\r\n public addExternalAction(\r\n command: AddExternalAction,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddExternalAction',\r\n AddExternalActionMutation,\r\n AddExternalActionMutationVariables,\r\n T\r\n >({\r\n name: 'AddExternalAction',\r\n mutation: gql`\r\n mutation AddExternalActionMutation($command: AddExternalAction!) {\r\n addExternalAction(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public cleanupPendingExternalActions(\r\n command: CleanupPendingExternalActions,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CleanupPendingExternalActions',\r\n CleanupPendingExternalActionsMutation,\r\n CleanupPendingExternalActionsMutationVariables,\r\n T\r\n >({\r\n name: 'CleanupPendingExternalActions',\r\n mutation: gql`\r\n mutation CleanupPendingExternalActionsMutation($command: CleanupPendingExternalActions!) {\r\n cleanupPendingExternalActions(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteExternalAction(\r\n command: DeleteExternalAction,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteExternalAction',\r\n DeleteExternalActionMutation,\r\n DeleteExternalActionMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteExternalAction',\r\n mutation: gql`\r\n mutation DeleteExternalActionMutation($command: DeleteExternalAction!) {\r\n deleteExternalAction(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public disregardExternalAction(\r\n command: DisregardExternalAction,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DisregardExternalAction',\r\n DisregardExternalActionMutation,\r\n DisregardExternalActionMutationVariables,\r\n T\r\n >({\r\n name: 'DisregardExternalAction',\r\n mutation: gql`\r\n mutation DisregardExternalActionMutation($command: DisregardExternalAction!) {\r\n disregardExternalAction(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateExternalAction(\r\n command: UpdateExternalAction,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateExternalAction',\r\n UpdateExternalActionMutation,\r\n UpdateExternalActionMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateExternalAction',\r\n mutation: gql`\r\n mutation UpdateExternalActionMutation($command: UpdateExternalAction!) {\r\n updateExternalAction(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // ExternalActionTypes\r\n public addExternalActionType(\r\n command: AddExternalActionType,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddExternalActionType',\r\n AddExternalActionTypeMutation,\r\n AddExternalActionTypeMutationVariables,\r\n T\r\n >({\r\n name: 'AddExternalActionType',\r\n mutation: gql`\r\n mutation AddExternalActionTypeMutation($command: AddExternalActionType!) {\r\n addExternalActionType(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteExternalActionType(\r\n command: DeleteExternalActionType,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteExternalActionType',\r\n DeleteExternalActionTypeMutation,\r\n DeleteExternalActionTypeMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteExternalActionType',\r\n mutation: gql`\r\n mutation DeleteExternalActionTypeMutation($command: DeleteExternalActionType!) {\r\n deleteExternalActionType(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateExternalActionType(\r\n command: UpdateExternalActionType,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateExternalActionType',\r\n UpdateExternalActionTypeMutation,\r\n UpdateExternalActionTypeMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateExternalActionType',\r\n mutation: gql`\r\n mutation UpdateExternalActionTypeMutation($command: UpdateExternalActionType!) {\r\n updateExternalActionType(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // ExternalApiUserAllowedReferences\r\n // ExternalApiUsers\r\n // ExternalApiUsersApiKeys\r\n // ExternalSystemUnits\r\n // FacilityNonAcceptanceReasons\r\n public addFacilityNonAcceptanceReason(\r\n command: AddFacilityNonAcceptanceReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddFacilityNonAcceptanceReason',\r\n AddFacilityNonAcceptanceReasonMutation,\r\n AddFacilityNonAcceptanceReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddFacilityNonAcceptanceReason',\r\n mutation: gql`\r\n mutation AddFacilityNonAcceptanceReasonMutation($command: AddFacilityNonAcceptanceReason!) {\r\n addFacilityNonAcceptanceReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteFacilityNonAcceptanceReason(\r\n command: DeleteFacilityNonAcceptanceReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteFacilityNonAcceptanceReason',\r\n DeleteFacilityNonAcceptanceReasonMutation,\r\n DeleteFacilityNonAcceptanceReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteFacilityNonAcceptanceReason',\r\n mutation: gql`\r\n mutation DeleteFacilityNonAcceptanceReasonMutation(\r\n $command: DeleteFacilityNonAcceptanceReason!\r\n ) {\r\n deleteFacilityNonAcceptanceReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateFacilityNonAcceptanceReason(\r\n command: UpdateFacilityNonAcceptanceReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateFacilityNonAcceptanceReason',\r\n UpdateFacilityNonAcceptanceReasonMutation,\r\n UpdateFacilityNonAcceptanceReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateFacilityNonAcceptanceReason',\r\n mutation: gql`\r\n mutation UpdateFacilityNonAcceptanceReasonMutation(\r\n $command: UpdateFacilityNonAcceptanceReason!\r\n ) {\r\n updateFacilityNonAcceptanceReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // FirewallRules\r\n public addFirewallRule(\r\n command: AddFirewallRule,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddFirewallRule',\r\n AddFirewallRuleMutation,\r\n AddFirewallRuleMutationVariables,\r\n T\r\n >({\r\n name: 'AddFirewallRule',\r\n mutation: gql`\r\n mutation AddFirewallRuleMutation($command: AddFirewallRule!) {\r\n addFirewallRule(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteFirewallRule(\r\n command: DeleteFirewallRule,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteFirewallRule',\r\n DeleteFirewallRuleMutation,\r\n DeleteFirewallRuleMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteFirewallRule',\r\n mutation: gql`\r\n mutation DeleteFirewallRuleMutation($command: DeleteFirewallRule!) {\r\n deleteFirewallRule(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateFirewallRule(\r\n command: UpdateFirewallRule,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateFirewallRule',\r\n UpdateFirewallRuleMutation,\r\n UpdateFirewallRuleMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateFirewallRule',\r\n mutation: gql`\r\n mutation UpdateFirewallRuleMutation($command: UpdateFirewallRule!) {\r\n updateFirewallRule(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // FlightFollowingReports\r\n public addFlightFollowingReport(\r\n command: AddFlightFollowingReport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddFlightFollowingReport',\r\n AddFlightFollowingReportMutation,\r\n AddFlightFollowingReportMutationVariables,\r\n T\r\n >({\r\n name: 'AddFlightFollowingReport',\r\n mutation: gql`\r\n mutation AddFlightFollowingReportMutation($command: AddFlightFollowingReport!) {\r\n addFlightFollowingReport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteFlightFollowingReport(\r\n command: DeleteFlightFollowingReport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteFlightFollowingReport',\r\n DeleteFlightFollowingReportMutation,\r\n DeleteFlightFollowingReportMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteFlightFollowingReport',\r\n mutation: gql`\r\n mutation DeleteFlightFollowingReportMutation($command: DeleteFlightFollowingReport!) {\r\n deleteFlightFollowingReport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateFlightFollowingReport(\r\n command: UpdateFlightFollowingReport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateFlightFollowingReport',\r\n UpdateFlightFollowingReportMutation,\r\n UpdateFlightFollowingReportMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateFlightFollowingReport',\r\n mutation: gql`\r\n mutation UpdateFlightFollowingReportMutation($command: UpdateFlightFollowingReport!) {\r\n updateFlightFollowingReport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // LocationHazardAttachments\r\n public deleteLocationHazardAttachment(\r\n command: DeleteLocationHazardAttachment,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteLocationHazardAttachment',\r\n DeleteLocationHazardAttachmentMutation,\r\n DeleteLocationHazardAttachmentMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteLocationHazardAttachment',\r\n mutation: gql`\r\n mutation DeleteLocationHazardAttachmentMutation($command: DeleteLocationHazardAttachment!) {\r\n deleteLocationHazardAttachment(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public generateLocationHazardAttachmentUrl(\r\n command: GenerateLocationHazardAttachmentUrl,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'GenerateLocationHazardAttachmentUrl',\r\n GenerateLocationHazardAttachmentUrlMutation,\r\n GenerateLocationHazardAttachmentUrlMutationVariables,\r\n T\r\n >({\r\n name: 'GenerateLocationHazardAttachmentUrl',\r\n mutation: gql`\r\n mutation GenerateLocationHazardAttachmentUrlMutation(\r\n $command: GenerateLocationHazardAttachmentUrl!\r\n ) {\r\n generateLocationHazardAttachmentUrl(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // LocationHazards\r\n public addLocationHazard(\r\n command: AddLocationHazard,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddLocationHazard',\r\n AddLocationHazardMutation,\r\n AddLocationHazardMutationVariables,\r\n T\r\n >({\r\n name: 'AddLocationHazard',\r\n mutation: gql`\r\n mutation AddLocationHazardMutation($command: AddLocationHazard!) {\r\n addLocationHazard(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteLocationHazard(\r\n command: DeleteLocationHazard,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteLocationHazard',\r\n DeleteLocationHazardMutation,\r\n DeleteLocationHazardMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteLocationHazard',\r\n mutation: gql`\r\n mutation DeleteLocationHazardMutation($command: DeleteLocationHazard!) {\r\n deleteLocationHazard(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateLocationHazard(\r\n command: UpdateLocationHazard,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateLocationHazard',\r\n UpdateLocationHazardMutation,\r\n UpdateLocationHazardMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateLocationHazard',\r\n mutation: gql`\r\n mutation UpdateLocationHazardMutation($command: UpdateLocationHazard!) {\r\n updateLocationHazard(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // MedicalControlContactLogEntries\r\n public addMedicalControlContactLogEntry(\r\n command: AddMedicalControlContactLogEntry,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddMedicalControlContactLogEntry',\r\n AddMedicalControlContactLogEntryMutation,\r\n AddMedicalControlContactLogEntryMutationVariables,\r\n T\r\n >({\r\n name: 'AddMedicalControlContactLogEntry',\r\n mutation: gql`\r\n mutation AddMedicalControlContactLogEntryMutation(\r\n $command: AddMedicalControlContactLogEntry!\r\n ) {\r\n addMedicalControlContactLogEntry(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteMedicalControlContactLogEntry(\r\n command: DeleteMedicalControlContactLogEntry,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteMedicalControlContactLogEntry',\r\n DeleteMedicalControlContactLogEntryMutation,\r\n DeleteMedicalControlContactLogEntryMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteMedicalControlContactLogEntry',\r\n mutation: gql`\r\n mutation DeleteMedicalControlContactLogEntryMutation(\r\n $command: DeleteMedicalControlContactLogEntry!\r\n ) {\r\n deleteMedicalControlContactLogEntry(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateMedicalControlContactLogEntry(\r\n command: UpdateMedicalControlContactLogEntry,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateMedicalControlContactLogEntry',\r\n UpdateMedicalControlContactLogEntryMutation,\r\n UpdateMedicalControlContactLogEntryMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateMedicalControlContactLogEntry',\r\n mutation: gql`\r\n mutation UpdateMedicalControlContactLogEntryMutation(\r\n $command: UpdateMedicalControlContactLogEntry!\r\n ) {\r\n updateMedicalControlContactLogEntry(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // MessageStatusUpdates\r\n public addMessageStatusUpdate(\r\n command: AddMessageStatusUpdate,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddMessageStatusUpdate',\r\n AddMessageStatusUpdateMutation,\r\n AddMessageStatusUpdateMutationVariables,\r\n T\r\n >({\r\n name: 'AddMessageStatusUpdate',\r\n mutation: gql`\r\n mutation AddMessageStatusUpdateMutation($command: AddMessageStatusUpdate!) {\r\n addMessageStatusUpdate(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // NextDueTypes\r\n public addNextDueType(\r\n command: AddNextDueType,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddNextDueType',\r\n AddNextDueTypeMutation,\r\n AddNextDueTypeMutationVariables,\r\n T\r\n >({\r\n name: 'AddNextDueType',\r\n mutation: gql`\r\n mutation AddNextDueTypeMutation($command: AddNextDueType!) {\r\n addNextDueType(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteNextDueType(\r\n command: DeleteNextDueType,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteNextDueType',\r\n DeleteNextDueTypeMutation,\r\n DeleteNextDueTypeMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteNextDueType',\r\n mutation: gql`\r\n mutation DeleteNextDueTypeMutation($command: DeleteNextDueType!) {\r\n deleteNextDueType(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateNextDueType(\r\n command: UpdateNextDueType,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateNextDueType',\r\n UpdateNextDueTypeMutation,\r\n UpdateNextDueTypeMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateNextDueType',\r\n mutation: gql`\r\n mutation UpdateNextDueTypeMutation($command: UpdateNextDueType!) {\r\n updateNextDueType(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // NonReferralReasons\r\n public addNonReferralReason(\r\n command: AddNonReferralReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddNonReferralReason',\r\n AddNonReferralReasonMutation,\r\n AddNonReferralReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddNonReferralReason',\r\n mutation: gql`\r\n mutation AddNonReferralReasonMutation($command: AddNonReferralReason!) {\r\n addNonReferralReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteNonReferralReason(\r\n command: DeleteNonReferralReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteNonReferralReason',\r\n DeleteNonReferralReasonMutation,\r\n DeleteNonReferralReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteNonReferralReason',\r\n mutation: gql`\r\n mutation DeleteNonReferralReasonMutation($command: DeleteNonReferralReason!) {\r\n deleteNonReferralReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateNonReferralReason(\r\n command: UpdateNonReferralReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateNonReferralReason',\r\n UpdateNonReferralReasonMutation,\r\n UpdateNonReferralReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateNonReferralReason',\r\n mutation: gql`\r\n mutation UpdateNonReferralReasonMutation($command: UpdateNonReferralReason!) {\r\n updateNonReferralReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // NotificationGroupMembers\r\n public addNotificationGroupMember(\r\n command: AddNotificationGroupMember,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddNotificationGroupMember',\r\n AddNotificationGroupMemberMutation,\r\n AddNotificationGroupMemberMutationVariables,\r\n T\r\n >({\r\n name: 'AddNotificationGroupMember',\r\n mutation: gql`\r\n mutation AddNotificationGroupMemberMutation($command: AddNotificationGroupMember!) {\r\n addNotificationGroupMember(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteNotificationGroupMember(\r\n command: DeleteNotificationGroupMember,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteNotificationGroupMember',\r\n DeleteNotificationGroupMemberMutation,\r\n DeleteNotificationGroupMemberMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteNotificationGroupMember',\r\n mutation: gql`\r\n mutation DeleteNotificationGroupMemberMutation($command: DeleteNotificationGroupMember!) {\r\n deleteNotificationGroupMember(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateNotificationGroupMember(\r\n command: UpdateNotificationGroupMember,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateNotificationGroupMember',\r\n UpdateNotificationGroupMemberMutation,\r\n UpdateNotificationGroupMemberMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateNotificationGroupMember',\r\n mutation: gql`\r\n mutation UpdateNotificationGroupMemberMutation($command: UpdateNotificationGroupMember!) {\r\n updateNotificationGroupMember(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // NotificationGroups\r\n public addNotificationGroup(\r\n command: AddNotificationGroup,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddNotificationGroup',\r\n AddNotificationGroupMutation,\r\n AddNotificationGroupMutationVariables,\r\n T\r\n >({\r\n name: 'AddNotificationGroup',\r\n mutation: gql`\r\n mutation AddNotificationGroupMutation($command: AddNotificationGroup!) {\r\n addNotificationGroup(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteNotificationGroup(\r\n command: DeleteNotificationGroup,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteNotificationGroup',\r\n DeleteNotificationGroupMutation,\r\n DeleteNotificationGroupMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteNotificationGroup',\r\n mutation: gql`\r\n mutation DeleteNotificationGroupMutation($command: DeleteNotificationGroup!) {\r\n deleteNotificationGroup(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateNotificationGroup(\r\n command: UpdateNotificationGroup,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateNotificationGroup',\r\n UpdateNotificationGroupMutation,\r\n UpdateNotificationGroupMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateNotificationGroup',\r\n mutation: gql`\r\n mutation UpdateNotificationGroupMutation($command: UpdateNotificationGroup!) {\r\n updateNotificationGroup(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public upsertPersonNotificationGroups(\r\n command: UpsertPersonNotificationGroups,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpsertPersonNotificationGroups',\r\n UpsertPersonNotificationGroupsMutation,\r\n UpsertPersonNotificationGroupsMutationVariables,\r\n T\r\n >({\r\n name: 'UpsertPersonNotificationGroups',\r\n mutation: gql`\r\n mutation UpsertPersonNotificationGroupsMutation($command: UpsertPersonNotificationGroups!) {\r\n upsertPersonNotificationGroups(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // NotificationRecipients\r\n public addNotificationRecipient(\r\n command: AddNotificationRecipient,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddNotificationRecipient',\r\n AddNotificationRecipientMutation,\r\n AddNotificationRecipientMutationVariables,\r\n T\r\n >({\r\n name: 'AddNotificationRecipient',\r\n mutation: gql`\r\n mutation AddNotificationRecipientMutation($command: AddNotificationRecipient!) {\r\n addNotificationRecipient(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addNotificationRecipients(\r\n command: AddNotificationRecipients,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddNotificationRecipients',\r\n AddNotificationRecipientsMutation,\r\n AddNotificationRecipientsMutationVariables,\r\n T\r\n >({\r\n name: 'AddNotificationRecipients',\r\n mutation: gql`\r\n mutation AddNotificationRecipientsMutation($command: AddNotificationRecipients!) {\r\n addNotificationRecipients(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteNotificationRecipient(\r\n command: DeleteNotificationRecipient,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteNotificationRecipient',\r\n DeleteNotificationRecipientMutation,\r\n DeleteNotificationRecipientMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteNotificationRecipient',\r\n mutation: gql`\r\n mutation DeleteNotificationRecipientMutation($command: DeleteNotificationRecipient!) {\r\n deleteNotificationRecipient(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteNotificationRecipients(\r\n command: DeleteNotificationRecipients,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteNotificationRecipients',\r\n DeleteNotificationRecipientsMutation,\r\n DeleteNotificationRecipientsMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteNotificationRecipients',\r\n mutation: gql`\r\n mutation DeleteNotificationRecipientsMutation($command: DeleteNotificationRecipients!) {\r\n deleteNotificationRecipients(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateNotificationRecipient(\r\n command: UpdateNotificationRecipient,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateNotificationRecipient',\r\n UpdateNotificationRecipientMutation,\r\n UpdateNotificationRecipientMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateNotificationRecipient',\r\n mutation: gql`\r\n mutation UpdateNotificationRecipientMutation($command: UpdateNotificationRecipient!) {\r\n updateNotificationRecipient(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRecipientMessageStatus(\r\n command: UpdateRecipientMessageStatus,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRecipientMessageStatus',\r\n UpdateRecipientMessageStatusMutation,\r\n UpdateRecipientMessageStatusMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRecipientMessageStatus',\r\n mutation: gql`\r\n mutation UpdateRecipientMessageStatusMutation($command: UpdateRecipientMessageStatus!) {\r\n updateRecipientMessageStatus(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Notifications\r\n public addNotification(\r\n command: AddNotification,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddNotification',\r\n AddNotificationMutation,\r\n AddNotificationMutationVariables,\r\n T\r\n >({\r\n name: 'AddNotification',\r\n mutation: gql`\r\n mutation AddNotificationMutation($command: AddNotification!) {\r\n addNotification(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteNotification(\r\n command: DeleteNotification,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteNotification',\r\n DeleteNotificationMutation,\r\n DeleteNotificationMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteNotification',\r\n mutation: gql`\r\n mutation DeleteNotificationMutation($command: DeleteNotification!) {\r\n deleteNotification(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public sendNotification(\r\n command: SendNotification,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SendNotification',\r\n SendNotificationMutation,\r\n SendNotificationMutationVariables,\r\n T\r\n >({\r\n name: 'SendNotification',\r\n mutation: gql`\r\n mutation SendNotificationMutation($command: SendNotification!) {\r\n sendNotification(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateNotification(\r\n command: UpdateNotification,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateNotification',\r\n UpdateNotificationMutation,\r\n UpdateNotificationMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateNotification',\r\n mutation: gql`\r\n mutation UpdateNotificationMutation($command: UpdateNotification!) {\r\n updateNotification(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // NotificationSubscriptions\r\n public addNotificationSubscription(\r\n command: AddNotificationSubscription,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddNotificationSubscription',\r\n AddNotificationSubscriptionMutation,\r\n AddNotificationSubscriptionMutationVariables,\r\n T\r\n >({\r\n name: 'AddNotificationSubscription',\r\n mutation: gql`\r\n mutation AddNotificationSubscriptionMutation($command: AddNotificationSubscription!) {\r\n addNotificationSubscription(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteNotificationSubscription(\r\n command: DeleteNotificationSubscription,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteNotificationSubscription',\r\n DeleteNotificationSubscriptionMutation,\r\n DeleteNotificationSubscriptionMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteNotificationSubscription',\r\n mutation: gql`\r\n mutation DeleteNotificationSubscriptionMutation($command: DeleteNotificationSubscription!) {\r\n deleteNotificationSubscription(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateNotificationSubscription(\r\n command: UpdateNotificationSubscription,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateNotificationSubscription',\r\n UpdateNotificationSubscriptionMutation,\r\n UpdateNotificationSubscriptionMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateNotificationSubscription',\r\n mutation: gql`\r\n mutation UpdateNotificationSubscriptionMutation($command: UpdateNotificationSubscription!) {\r\n updateNotificationSubscription(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // NotificationTemplates\r\n public addNotificationTemplate(\r\n command: AddNotificationTemplate,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddNotificationTemplate',\r\n AddNotificationTemplateMutation,\r\n AddNotificationTemplateMutationVariables,\r\n T\r\n >({\r\n name: 'AddNotificationTemplate',\r\n mutation: gql`\r\n mutation AddNotificationTemplateMutation($command: AddNotificationTemplate!) {\r\n addNotificationTemplate(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public copyNotificationTemplate(\r\n command: CopyNotificationTemplate,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CopyNotificationTemplate',\r\n CopyNotificationTemplateMutation,\r\n CopyNotificationTemplateMutationVariables,\r\n T\r\n >({\r\n name: 'CopyNotificationTemplate',\r\n mutation: gql`\r\n mutation CopyNotificationTemplateMutation($command: CopyNotificationTemplate!) {\r\n copyNotificationTemplate(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteNotificationTemplate(\r\n command: DeleteNotificationTemplate,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteNotificationTemplate',\r\n DeleteNotificationTemplateMutation,\r\n DeleteNotificationTemplateMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteNotificationTemplate',\r\n mutation: gql`\r\n mutation DeleteNotificationTemplateMutation($command: DeleteNotificationTemplate!) {\r\n deleteNotificationTemplate(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateNotificationTemplate(\r\n command: UpdateNotificationTemplate,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateNotificationTemplate',\r\n UpdateNotificationTemplateMutation,\r\n UpdateNotificationTemplateMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateNotificationTemplate',\r\n mutation: gql`\r\n mutation UpdateNotificationTemplateMutation($command: UpdateNotificationTemplate!) {\r\n updateNotificationTemplate(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // OemActivities\r\n public addOemActivity(\r\n command: AddOemActivity,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddOemActivity',\r\n AddOemActivityMutation,\r\n AddOemActivityMutationVariables,\r\n T\r\n >({\r\n name: 'AddOemActivity',\r\n mutation: gql`\r\n mutation AddOemActivityMutation($command: AddOemActivity!) {\r\n addOemActivity(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteOemActivity(\r\n command: DeleteOemActivity,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteOemActivity',\r\n DeleteOemActivityMutation,\r\n DeleteOemActivityMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteOemActivity',\r\n mutation: gql`\r\n mutation DeleteOemActivityMutation($command: DeleteOemActivity!) {\r\n deleteOemActivity(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOemActivity(\r\n command: UpdateOemActivity,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOemActivity',\r\n UpdateOemActivityMutation,\r\n UpdateOemActivityMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOemActivity',\r\n mutation: gql`\r\n mutation UpdateOemActivityMutation($command: UpdateOemActivity!) {\r\n updateOemActivity(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // OemAssets\r\n public addOemAsset(\r\n command: AddOemAsset,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddOemAsset',\r\n AddOemAssetMutation,\r\n AddOemAssetMutationVariables,\r\n T\r\n >({\r\n name: 'AddOemAsset',\r\n mutation: gql`\r\n mutation AddOemAssetMutation($command: AddOemAsset!) {\r\n addOemAsset(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteOemAsset(\r\n command: DeleteOemAsset,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteOemAsset',\r\n DeleteOemAssetMutation,\r\n DeleteOemAssetMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteOemAsset',\r\n mutation: gql`\r\n mutation DeleteOemAssetMutation($command: DeleteOemAsset!) {\r\n deleteOemAsset(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOemAsset(\r\n command: UpdateOemAsset,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOemAsset',\r\n UpdateOemAssetMutation,\r\n UpdateOemAssetMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOemAsset',\r\n mutation: gql`\r\n mutation UpdateOemAssetMutation($command: UpdateOemAsset!) {\r\n updateOemAsset(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // OemPlanChangeRequests\r\n public addOemPlanChangeRequest(\r\n command: AddOemPlanChangeRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddOemPlanChangeRequest',\r\n AddOemPlanChangeRequestMutation,\r\n AddOemPlanChangeRequestMutationVariables,\r\n T\r\n >({\r\n name: 'AddOemPlanChangeRequest',\r\n mutation: gql`\r\n mutation AddOemPlanChangeRequestMutation($command: AddOemPlanChangeRequest!) {\r\n addOemPlanChangeRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteOemPlanChangeRequest(\r\n command: DeleteOemPlanChangeRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteOemPlanChangeRequest',\r\n DeleteOemPlanChangeRequestMutation,\r\n DeleteOemPlanChangeRequestMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteOemPlanChangeRequest',\r\n mutation: gql`\r\n mutation DeleteOemPlanChangeRequestMutation($command: DeleteOemPlanChangeRequest!) {\r\n deleteOemPlanChangeRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOemPlanChangeRequest(\r\n command: UpdateOemPlanChangeRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOemPlanChangeRequest',\r\n UpdateOemPlanChangeRequestMutation,\r\n UpdateOemPlanChangeRequestMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOemPlanChangeRequest',\r\n mutation: gql`\r\n mutation UpdateOemPlanChangeRequestMutation($command: UpdateOemPlanChangeRequest!) {\r\n updateOemPlanChangeRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // OemPlans\r\n public addOemPlan(\r\n command: AddOemPlan,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddOemPlan', AddOemPlanMutation, AddOemPlanMutationVariables, T>(\r\n {\r\n name: 'AddOemPlan',\r\n mutation: gql`\r\n mutation AddOemPlanMutation($command: AddOemPlan!) {\r\n addOemPlan(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public deleteOemPlan(\r\n command: DeleteOemPlan,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteOemPlan',\r\n DeleteOemPlanMutation,\r\n DeleteOemPlanMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteOemPlan',\r\n mutation: gql`\r\n mutation DeleteOemPlanMutation($command: DeleteOemPlan!) {\r\n deleteOemPlan(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOemPlan(\r\n command: UpdateOemPlan,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOemPlan',\r\n UpdateOemPlanMutation,\r\n UpdateOemPlanMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOemPlan',\r\n mutation: gql`\r\n mutation UpdateOemPlanMutation($command: UpdateOemPlan!) {\r\n updateOemPlan(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // OfferAlgorithms\r\n public addOfferAlgorithm(\r\n command: AddOfferAlgorithm,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddOfferAlgorithm',\r\n AddOfferAlgorithmMutation,\r\n AddOfferAlgorithmMutationVariables,\r\n T\r\n >({\r\n name: 'AddOfferAlgorithm',\r\n mutation: gql`\r\n mutation AddOfferAlgorithmMutation($command: AddOfferAlgorithm!) {\r\n addOfferAlgorithm(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public copyOfferAlgorithm(\r\n command: CopyOfferAlgorithm,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CopyOfferAlgorithm',\r\n CopyOfferAlgorithmMutation,\r\n CopyOfferAlgorithmMutationVariables,\r\n T\r\n >({\r\n name: 'CopyOfferAlgorithm',\r\n mutation: gql`\r\n mutation CopyOfferAlgorithmMutation($command: CopyOfferAlgorithm!) {\r\n copyOfferAlgorithm(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteOfferAlgorithm(\r\n command: DeleteOfferAlgorithm,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteOfferAlgorithm',\r\n DeleteOfferAlgorithmMutation,\r\n DeleteOfferAlgorithmMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteOfferAlgorithm',\r\n mutation: gql`\r\n mutation DeleteOfferAlgorithmMutation($command: DeleteOfferAlgorithm!) {\r\n deleteOfferAlgorithm(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOfferAlgorithm(\r\n command: UpdateOfferAlgorithm,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOfferAlgorithm',\r\n UpdateOfferAlgorithmMutation,\r\n UpdateOfferAlgorithmMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOfferAlgorithm',\r\n mutation: gql`\r\n mutation UpdateOfferAlgorithmMutation($command: UpdateOfferAlgorithm!) {\r\n updateOfferAlgorithm(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Operations\r\n public activateUnit(\r\n command: ActivateUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ActivateUnit',\r\n ActivateUnitMutation,\r\n ActivateUnitMutationVariables,\r\n T\r\n >({\r\n name: 'ActivateUnit',\r\n mutation: gql`\r\n mutation ActivateUnitMutation($command: ActivateUnit!) {\r\n activateUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addOperation(\r\n command: AddOperation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddOperation',\r\n AddOperationMutation,\r\n AddOperationMutationVariables,\r\n T\r\n >({\r\n name: 'AddOperation',\r\n mutation: gql`\r\n mutation AddOperationMutation($command: AddOperation!) {\r\n addOperation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public arriveVehicle(\r\n command: ArriveVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ArriveVehicle',\r\n ArriveVehicleMutation,\r\n ArriveVehicleMutationVariables,\r\n T\r\n >({\r\n name: 'ArriveVehicle',\r\n mutation: gql`\r\n mutation ArriveVehicleMutation($command: ArriveVehicle!) {\r\n arriveVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public cancelOperation(\r\n command: CancelOperation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CancelOperation',\r\n CancelOperationMutation,\r\n CancelOperationMutationVariables,\r\n T\r\n >({\r\n name: 'CancelOperation',\r\n mutation: gql`\r\n mutation CancelOperationMutation($command: CancelOperation!) {\r\n cancelOperation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public changeVehicle(\r\n command: ChangeVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ChangeVehicle',\r\n ChangeVehicleMutation,\r\n ChangeVehicleMutationVariables,\r\n T\r\n >({\r\n name: 'ChangeVehicle',\r\n mutation: gql`\r\n mutation ChangeVehicleMutation($command: ChangeVehicle!) {\r\n changeVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public createGroundRun(\r\n command: CreateGroundRun,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CreateGroundRun',\r\n CreateGroundRunMutation,\r\n CreateGroundRunMutationVariables,\r\n T\r\n >({\r\n name: 'CreateGroundRun',\r\n mutation: gql`\r\n mutation CreateGroundRunMutation($command: CreateGroundRun!) {\r\n createGroundRun(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public createMaintenanceOperation(\r\n command: CreateMaintenanceOperation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CreateMaintenanceOperation',\r\n CreateMaintenanceOperationMutation,\r\n CreateMaintenanceOperationMutationVariables,\r\n T\r\n >({\r\n name: 'CreateMaintenanceOperation',\r\n mutation: gql`\r\n mutation CreateMaintenanceOperationMutation($command: CreateMaintenanceOperation!) {\r\n createMaintenanceOperation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public createTrainingOperation(\r\n command: CreateTrainingOperation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CreateTrainingOperation',\r\n CreateTrainingOperationMutation,\r\n CreateTrainingOperationMutationVariables,\r\n T\r\n >({\r\n name: 'CreateTrainingOperation',\r\n mutation: gql`\r\n mutation CreateTrainingOperationMutation($command: CreateTrainingOperation!) {\r\n createTrainingOperation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public declineOrAbortOperation(\r\n command: DeclineOrAbortOperation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeclineOrAbortOperation',\r\n DeclineOrAbortOperationMutation,\r\n DeclineOrAbortOperationMutationVariables,\r\n T\r\n >({\r\n name: 'DeclineOrAbortOperation',\r\n mutation: gql`\r\n mutation DeclineOrAbortOperationMutation($command: DeclineOrAbortOperation!) {\r\n declineOrAbortOperation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteOperation(\r\n command: DeleteOperation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteOperation',\r\n DeleteOperationMutation,\r\n DeleteOperationMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteOperation',\r\n mutation: gql`\r\n mutation DeleteOperationMutation($command: DeleteOperation!) {\r\n deleteOperation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public departVehicle(\r\n command: DepartVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DepartVehicle',\r\n DepartVehicleMutation,\r\n DepartVehicleMutationVariables,\r\n T\r\n >({\r\n name: 'DepartVehicle',\r\n mutation: gql`\r\n mutation DepartVehicleMutation($command: DepartVehicle!) {\r\n departVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public placeUnitOnStandby(\r\n command: PlaceUnitOnStandby,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'PlaceUnitOnStandby',\r\n PlaceUnitOnStandbyMutation,\r\n PlaceUnitOnStandbyMutationVariables,\r\n T\r\n >({\r\n name: 'PlaceUnitOnStandby',\r\n mutation: gql`\r\n mutation PlaceUnitOnStandbyMutation($command: PlaceUnitOnStandby!) {\r\n placeUnitOnStandby(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public repositionUnit(\r\n command: RepositionUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'RepositionUnit',\r\n RepositionUnitMutation,\r\n RepositionUnitMutationVariables,\r\n T\r\n >({\r\n name: 'RepositionUnit',\r\n mutation: gql`\r\n mutation RepositionUnitMutation($command: RepositionUnit!) {\r\n repositionUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public undoArriveVehicle(\r\n command: UndoArriveVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UndoArriveVehicle',\r\n UndoArriveVehicleMutation,\r\n UndoArriveVehicleMutationVariables,\r\n T\r\n >({\r\n name: 'UndoArriveVehicle',\r\n mutation: gql`\r\n mutation UndoArriveVehicleMutation($command: UndoArriveVehicle!) {\r\n undoArriveVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public undoDepartVehicle(\r\n command: UndoDepartVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UndoDepartVehicle',\r\n UndoDepartVehicleMutation,\r\n UndoDepartVehicleMutationVariables,\r\n T\r\n >({\r\n name: 'UndoDepartVehicle',\r\n mutation: gql`\r\n mutation UndoDepartVehicleMutation($command: UndoDepartVehicle!) {\r\n undoDepartVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOperation(\r\n command: UpdateOperation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOperation',\r\n UpdateOperationMutation,\r\n UpdateOperationMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOperation',\r\n mutation: gql`\r\n mutation UpdateOperationMutation($command: UpdateOperation!) {\r\n updateOperation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOperationContactInfo(\r\n command: UpdateOperationContactInfo,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOperationContactInfo',\r\n UpdateOperationContactInfoMutation,\r\n UpdateOperationContactInfoMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOperationContactInfo',\r\n mutation: gql`\r\n mutation UpdateOperationContactInfoMutation($command: UpdateOperationContactInfo!) {\r\n updateOperationContactInfo(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRiskAnalysis(\r\n command: UpdateRiskAnalysis,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRiskAnalysis',\r\n UpdateRiskAnalysisMutation,\r\n UpdateRiskAnalysisMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRiskAnalysis',\r\n mutation: gql`\r\n mutation UpdateRiskAnalysisMutation($command: UpdateRiskAnalysis!) {\r\n updateRiskAnalysis(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // OpsApplicationStarts\r\n // OutOfServiceEventNotes\r\n public addOutOfServiceEventNote(\r\n command: AddOutOfServiceEventNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddOutOfServiceEventNote',\r\n AddOutOfServiceEventNoteMutation,\r\n AddOutOfServiceEventNoteMutationVariables,\r\n T\r\n >({\r\n name: 'AddOutOfServiceEventNote',\r\n mutation: gql`\r\n mutation AddOutOfServiceEventNoteMutation($command: AddOutOfServiceEventNote!) {\r\n addOutOfServiceEventNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteOutOfServiceEventNote(\r\n command: DeleteOutOfServiceEventNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteOutOfServiceEventNote',\r\n DeleteOutOfServiceEventNoteMutation,\r\n DeleteOutOfServiceEventNoteMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteOutOfServiceEventNote',\r\n mutation: gql`\r\n mutation DeleteOutOfServiceEventNoteMutation($command: DeleteOutOfServiceEventNote!) {\r\n deleteOutOfServiceEventNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOutOfServiceEventNote(\r\n command: UpdateOutOfServiceEventNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOutOfServiceEventNote',\r\n UpdateOutOfServiceEventNoteMutation,\r\n UpdateOutOfServiceEventNoteMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOutOfServiceEventNote',\r\n mutation: gql`\r\n mutation UpdateOutOfServiceEventNoteMutation($command: UpdateOutOfServiceEventNote!) {\r\n updateOutOfServiceEventNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // OutOfServiceEvents\r\n public addOutOfServiceEvent(\r\n command: AddOutOfServiceEvent,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddOutOfServiceEvent',\r\n AddOutOfServiceEventMutation,\r\n AddOutOfServiceEventMutationVariables,\r\n T\r\n >({\r\n name: 'AddOutOfServiceEvent',\r\n mutation: gql`\r\n mutation AddOutOfServiceEventMutation($command: AddOutOfServiceEvent!) {\r\n addOutOfServiceEvent(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addUnitOutOfServiceEvent(\r\n command: AddUnitOutOfServiceEvent,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddUnitOutOfServiceEvent',\r\n AddUnitOutOfServiceEventMutation,\r\n AddUnitOutOfServiceEventMutationVariables,\r\n T\r\n >({\r\n name: 'AddUnitOutOfServiceEvent',\r\n mutation: gql`\r\n mutation AddUnitOutOfServiceEventMutation($command: AddUnitOutOfServiceEvent!) {\r\n addUnitOutOfServiceEvent(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addVehicleOutOfServiceEvent(\r\n command: AddVehicleOutOfServiceEvent,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddVehicleOutOfServiceEvent',\r\n AddVehicleOutOfServiceEventMutation,\r\n AddVehicleOutOfServiceEventMutationVariables,\r\n T\r\n >({\r\n name: 'AddVehicleOutOfServiceEvent',\r\n mutation: gql`\r\n mutation AddVehicleOutOfServiceEventMutation($command: AddVehicleOutOfServiceEvent!) {\r\n addVehicleOutOfServiceEvent(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public beginOutOfServiceEvent(\r\n command: BeginOutOfServiceEvent,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'BeginOutOfServiceEvent',\r\n BeginOutOfServiceEventMutation,\r\n BeginOutOfServiceEventMutationVariables,\r\n T\r\n >({\r\n name: 'BeginOutOfServiceEvent',\r\n mutation: gql`\r\n mutation BeginOutOfServiceEventMutation($command: BeginOutOfServiceEvent!) {\r\n beginOutOfServiceEvent(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteOutOfServiceEvent(\r\n command: DeleteOutOfServiceEvent,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteOutOfServiceEvent',\r\n DeleteOutOfServiceEventMutation,\r\n DeleteOutOfServiceEventMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteOutOfServiceEvent',\r\n mutation: gql`\r\n mutation DeleteOutOfServiceEventMutation($command: DeleteOutOfServiceEvent!) {\r\n deleteOutOfServiceEvent(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public endOutOfServiceEvent(\r\n command: EndOutOfServiceEvent,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'EndOutOfServiceEvent',\r\n EndOutOfServiceEventMutation,\r\n EndOutOfServiceEventMutationVariables,\r\n T\r\n >({\r\n name: 'EndOutOfServiceEvent',\r\n mutation: gql`\r\n mutation EndOutOfServiceEventMutation($command: EndOutOfServiceEvent!) {\r\n endOutOfServiceEvent(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOutOfServiceEvent(\r\n command: UpdateOutOfServiceEvent,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOutOfServiceEvent',\r\n UpdateOutOfServiceEventMutation,\r\n UpdateOutOfServiceEventMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOutOfServiceEvent',\r\n mutation: gql`\r\n mutation UpdateOutOfServiceEventMutation($command: UpdateOutOfServiceEvent!) {\r\n updateOutOfServiceEvent(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // OutOfServiceReasons\r\n public addOutOfServiceReason(\r\n command: AddOutOfServiceReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddOutOfServiceReason',\r\n AddOutOfServiceReasonMutation,\r\n AddOutOfServiceReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddOutOfServiceReason',\r\n mutation: gql`\r\n mutation AddOutOfServiceReasonMutation($command: AddOutOfServiceReason!) {\r\n addOutOfServiceReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteOutOfServiceReason(\r\n command: DeleteOutOfServiceReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteOutOfServiceReason',\r\n DeleteOutOfServiceReasonMutation,\r\n DeleteOutOfServiceReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteOutOfServiceReason',\r\n mutation: gql`\r\n mutation DeleteOutOfServiceReasonMutation($command: DeleteOutOfServiceReason!) {\r\n deleteOutOfServiceReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOutOfServiceReason(\r\n command: UpdateOutOfServiceReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOutOfServiceReason',\r\n UpdateOutOfServiceReasonMutation,\r\n UpdateOutOfServiceReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOutOfServiceReason',\r\n mutation: gql`\r\n mutation UpdateOutOfServiceReasonMutation($command: UpdateOutOfServiceReason!) {\r\n updateOutOfServiceReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // OutOfServiceSecondaryReasons\r\n public addOutOfServiceSecondaryReason(\r\n command: AddOutOfServiceSecondaryReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddOutOfServiceSecondaryReason',\r\n AddOutOfServiceSecondaryReasonMutation,\r\n AddOutOfServiceSecondaryReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddOutOfServiceSecondaryReason',\r\n mutation: gql`\r\n mutation AddOutOfServiceSecondaryReasonMutation($command: AddOutOfServiceSecondaryReason!) {\r\n addOutOfServiceSecondaryReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteOutOfServiceSecondaryReason(\r\n command: DeleteOutOfServiceSecondaryReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteOutOfServiceSecondaryReason',\r\n DeleteOutOfServiceSecondaryReasonMutation,\r\n DeleteOutOfServiceSecondaryReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteOutOfServiceSecondaryReason',\r\n mutation: gql`\r\n mutation DeleteOutOfServiceSecondaryReasonMutation(\r\n $command: DeleteOutOfServiceSecondaryReason!\r\n ) {\r\n deleteOutOfServiceSecondaryReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOutOfServiceSecondaryReason(\r\n command: UpdateOutOfServiceSecondaryReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOutOfServiceSecondaryReason',\r\n UpdateOutOfServiceSecondaryReasonMutation,\r\n UpdateOutOfServiceSecondaryReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOutOfServiceSecondaryReason',\r\n mutation: gql`\r\n mutation UpdateOutOfServiceSecondaryReasonMutation(\r\n $command: UpdateOutOfServiceSecondaryReason!\r\n ) {\r\n updateOutOfServiceSecondaryReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // PassdownLogAcknowledgements\r\n // PassdownLogs\r\n public acknowledgePassdownLog(\r\n command: AcknowledgePassdownLog,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AcknowledgePassdownLog',\r\n AcknowledgePassdownLogMutation,\r\n AcknowledgePassdownLogMutationVariables,\r\n T\r\n >({\r\n name: 'AcknowledgePassdownLog',\r\n mutation: gql`\r\n mutation AcknowledgePassdownLogMutation($command: AcknowledgePassdownLog!) {\r\n acknowledgePassdownLog(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addPassdownLog(\r\n command: AddPassdownLog,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddPassdownLog',\r\n AddPassdownLogMutation,\r\n AddPassdownLogMutationVariables,\r\n T\r\n >({\r\n name: 'AddPassdownLog',\r\n mutation: gql`\r\n mutation AddPassdownLogMutation($command: AddPassdownLog!) {\r\n addPassdownLog(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deletePassdownLog(\r\n command: DeletePassdownLog,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeletePassdownLog',\r\n DeletePassdownLogMutation,\r\n DeletePassdownLogMutationVariables,\r\n T\r\n >({\r\n name: 'DeletePassdownLog',\r\n mutation: gql`\r\n mutation DeletePassdownLogMutation($command: DeletePassdownLog!) {\r\n deletePassdownLog(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updatePassdownLog(\r\n command: UpdatePassdownLog,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdatePassdownLog',\r\n UpdatePassdownLogMutation,\r\n UpdatePassdownLogMutationVariables,\r\n T\r\n >({\r\n name: 'UpdatePassdownLog',\r\n mutation: gql`\r\n mutation UpdatePassdownLogMutation($command: UpdatePassdownLog!) {\r\n updatePassdownLog(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Patients\r\n // PositionReportAlerts\r\n public addPositionReportAlert(\r\n command: AddPositionReportAlert,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddPositionReportAlert',\r\n AddPositionReportAlertMutation,\r\n AddPositionReportAlertMutationVariables,\r\n T\r\n >({\r\n name: 'AddPositionReportAlert',\r\n mutation: gql`\r\n mutation AddPositionReportAlertMutation($command: AddPositionReportAlert!) {\r\n addPositionReportAlert(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deletePositionReportAlert(\r\n command: DeletePositionReportAlert,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeletePositionReportAlert',\r\n DeletePositionReportAlertMutation,\r\n DeletePositionReportAlertMutationVariables,\r\n T\r\n >({\r\n name: 'DeletePositionReportAlert',\r\n mutation: gql`\r\n mutation DeletePositionReportAlertMutation($command: DeletePositionReportAlert!) {\r\n deletePositionReportAlert(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updatePositionReportAlert(\r\n command: UpdatePositionReportAlert,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdatePositionReportAlert',\r\n UpdatePositionReportAlertMutation,\r\n UpdatePositionReportAlertMutationVariables,\r\n T\r\n >({\r\n name: 'UpdatePositionReportAlert',\r\n mutation: gql`\r\n mutation UpdatePositionReportAlertMutation($command: UpdatePositionReportAlert!) {\r\n updatePositionReportAlert(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // PositionReports\r\n public addPositionReport(\r\n command: AddPositionReport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddPositionReport',\r\n AddPositionReportMutation,\r\n AddPositionReportMutationVariables,\r\n T\r\n >({\r\n name: 'AddPositionReport',\r\n mutation: gql`\r\n mutation AddPositionReportMutation($command: AddPositionReport!) {\r\n addPositionReport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public confirmPositionReport(\r\n command: ConfirmPositionReport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ConfirmPositionReport',\r\n ConfirmPositionReportMutation,\r\n ConfirmPositionReportMutationVariables,\r\n T\r\n >({\r\n name: 'ConfirmPositionReport',\r\n mutation: gql`\r\n mutation ConfirmPositionReportMutation($command: ConfirmPositionReport!) {\r\n confirmPositionReport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deletePositionReport(\r\n command: DeletePositionReport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeletePositionReport',\r\n DeletePositionReportMutation,\r\n DeletePositionReportMutationVariables,\r\n T\r\n >({\r\n name: 'DeletePositionReport',\r\n mutation: gql`\r\n mutation DeletePositionReportMutation($command: DeletePositionReport!) {\r\n deletePositionReport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updatePositionReport(\r\n command: UpdatePositionReport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdatePositionReport',\r\n UpdatePositionReportMutation,\r\n UpdatePositionReportMutationVariables,\r\n T\r\n >({\r\n name: 'UpdatePositionReport',\r\n mutation: gql`\r\n mutation UpdatePositionReportMutation($command: UpdatePositionReport!) {\r\n updatePositionReport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // QuestionChoices\r\n public upsertQuestionChoice(\r\n command: UpsertQuestionChoice,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpsertQuestionChoice',\r\n UpsertQuestionChoiceMutation,\r\n UpsertQuestionChoiceMutationVariables,\r\n T\r\n >({\r\n name: 'UpsertQuestionChoice',\r\n mutation: gql`\r\n mutation UpsertQuestionChoiceMutation($command: UpsertQuestionChoice!) {\r\n upsertQuestionChoice(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // QuestionnaireQuestionResponseNotes\r\n public addQuestionnaireQuestionResponseNote(\r\n command: AddQuestionnaireQuestionResponseNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddQuestionnaireQuestionResponseNote',\r\n AddQuestionnaireQuestionResponseNoteMutation,\r\n AddQuestionnaireQuestionResponseNoteMutationVariables,\r\n T\r\n >({\r\n name: 'AddQuestionnaireQuestionResponseNote',\r\n mutation: gql`\r\n mutation AddQuestionnaireQuestionResponseNoteMutation(\r\n $command: AddQuestionnaireQuestionResponseNote!\r\n ) {\r\n addQuestionnaireQuestionResponseNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteQuestionnaireQuestionResponseNote(\r\n command: DeleteQuestionnaireQuestionResponseNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteQuestionnaireQuestionResponseNote',\r\n DeleteQuestionnaireQuestionResponseNoteMutation,\r\n DeleteQuestionnaireQuestionResponseNoteMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteQuestionnaireQuestionResponseNote',\r\n mutation: gql`\r\n mutation DeleteQuestionnaireQuestionResponseNoteMutation(\r\n $command: DeleteQuestionnaireQuestionResponseNote!\r\n ) {\r\n deleteQuestionnaireQuestionResponseNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateQuestionnaireQuestionResponseNote(\r\n command: UpdateQuestionnaireQuestionResponseNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateQuestionnaireQuestionResponseNote',\r\n UpdateQuestionnaireQuestionResponseNoteMutation,\r\n UpdateQuestionnaireQuestionResponseNoteMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateQuestionnaireQuestionResponseNote',\r\n mutation: gql`\r\n mutation UpdateQuestionnaireQuestionResponseNoteMutation(\r\n $command: UpdateQuestionnaireQuestionResponseNote!\r\n ) {\r\n updateQuestionnaireQuestionResponseNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public upsertQuestionnaireQuestionResponseNote(\r\n command: UpsertQuestionnaireQuestionResponseNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpsertQuestionnaireQuestionResponseNote',\r\n UpsertQuestionnaireQuestionResponseNoteMutation,\r\n UpsertQuestionnaireQuestionResponseNoteMutationVariables,\r\n T\r\n >({\r\n name: 'UpsertQuestionnaireQuestionResponseNote',\r\n mutation: gql`\r\n mutation UpsertQuestionnaireQuestionResponseNoteMutation(\r\n $command: UpsertQuestionnaireQuestionResponseNote!\r\n ) {\r\n upsertQuestionnaireQuestionResponseNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // QuestionnaireQuestionResponses\r\n public addQuestionnaireQuestionResponse(\r\n command: AddQuestionnaireQuestionResponse,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddQuestionnaireQuestionResponse',\r\n AddQuestionnaireQuestionResponseMutation,\r\n AddQuestionnaireQuestionResponseMutationVariables,\r\n T\r\n >({\r\n name: 'AddQuestionnaireQuestionResponse',\r\n mutation: gql`\r\n mutation AddQuestionnaireQuestionResponseMutation(\r\n $command: AddQuestionnaireQuestionResponse!\r\n ) {\r\n addQuestionnaireQuestionResponse(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteQuestionnaireQuestionResponse(\r\n command: DeleteQuestionnaireQuestionResponse,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteQuestionnaireQuestionResponse',\r\n DeleteQuestionnaireQuestionResponseMutation,\r\n DeleteQuestionnaireQuestionResponseMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteQuestionnaireQuestionResponse',\r\n mutation: gql`\r\n mutation DeleteQuestionnaireQuestionResponseMutation(\r\n $command: DeleteQuestionnaireQuestionResponse!\r\n ) {\r\n deleteQuestionnaireQuestionResponse(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateQuestionnaireQuestionResponse(\r\n command: UpdateQuestionnaireQuestionResponse,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateQuestionnaireQuestionResponse',\r\n UpdateQuestionnaireQuestionResponseMutation,\r\n UpdateQuestionnaireQuestionResponseMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateQuestionnaireQuestionResponse',\r\n mutation: gql`\r\n mutation UpdateQuestionnaireQuestionResponseMutation(\r\n $command: UpdateQuestionnaireQuestionResponse!\r\n ) {\r\n updateQuestionnaireQuestionResponse(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateQuestionnaireQuestionResponseDeep(\r\n command: UpdateQuestionnaireQuestionResponseDeep,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateQuestionnaireQuestionResponseDeep',\r\n UpdateQuestionnaireQuestionResponseDeepMutation,\r\n UpdateQuestionnaireQuestionResponseDeepMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateQuestionnaireQuestionResponseDeep',\r\n mutation: gql`\r\n mutation UpdateQuestionnaireQuestionResponseDeepMutation(\r\n $command: UpdateQuestionnaireQuestionResponseDeep!\r\n ) {\r\n updateQuestionnaireQuestionResponseDeep(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // QuestionnaireResponses\r\n public addQuestionnaireResponse(\r\n command: AddQuestionnaireResponse,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddQuestionnaireResponse',\r\n AddQuestionnaireResponseMutation,\r\n AddQuestionnaireResponseMutationVariables,\r\n T\r\n >({\r\n name: 'AddQuestionnaireResponse',\r\n mutation: gql`\r\n mutation AddQuestionnaireResponseMutation($command: AddQuestionnaireResponse!) {\r\n addQuestionnaireResponse(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteQuestionnaireResponse(\r\n command: DeleteQuestionnaireResponse,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteQuestionnaireResponse',\r\n DeleteQuestionnaireResponseMutation,\r\n DeleteQuestionnaireResponseMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteQuestionnaireResponse',\r\n mutation: gql`\r\n mutation DeleteQuestionnaireResponseMutation($command: DeleteQuestionnaireResponse!) {\r\n deleteQuestionnaireResponse(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public submitQuestionnaireResponse(\r\n command: SubmitQuestionnaireResponse,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SubmitQuestionnaireResponse',\r\n SubmitQuestionnaireResponseMutation,\r\n SubmitQuestionnaireResponseMutationVariables,\r\n T\r\n >({\r\n name: 'SubmitQuestionnaireResponse',\r\n mutation: gql`\r\n mutation SubmitQuestionnaireResponseMutation($command: SubmitQuestionnaireResponse!) {\r\n submitQuestionnaireResponse(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateQuestionnaireResponse(\r\n command: UpdateQuestionnaireResponse,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateQuestionnaireResponse',\r\n UpdateQuestionnaireResponseMutation,\r\n UpdateQuestionnaireResponseMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateQuestionnaireResponse',\r\n mutation: gql`\r\n mutation UpdateQuestionnaireResponseMutation($command: UpdateQuestionnaireResponse!) {\r\n updateQuestionnaireResponse(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateQuestionnaireResponseDeep(\r\n command: UpdateQuestionnaireResponseDeep,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateQuestionnaireResponseDeep',\r\n UpdateQuestionnaireResponseDeepMutation,\r\n UpdateQuestionnaireResponseDeepMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateQuestionnaireResponseDeep',\r\n mutation: gql`\r\n mutation UpdateQuestionnaireResponseDeepMutation(\r\n $command: UpdateQuestionnaireResponseDeep!\r\n ) {\r\n updateQuestionnaireResponseDeep(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Questionnaires\r\n public addQuestionnaire(\r\n command: AddQuestionnaire,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddQuestionnaire',\r\n AddQuestionnaireMutation,\r\n AddQuestionnaireMutationVariables,\r\n T\r\n >({\r\n name: 'AddQuestionnaire',\r\n mutation: gql`\r\n mutation AddQuestionnaireMutation($command: AddQuestionnaire!) {\r\n addQuestionnaire(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteQuestionnaire(\r\n command: DeleteQuestionnaire,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteQuestionnaire',\r\n DeleteQuestionnaireMutation,\r\n DeleteQuestionnaireMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteQuestionnaire',\r\n mutation: gql`\r\n mutation DeleteQuestionnaireMutation($command: DeleteQuestionnaire!) {\r\n deleteQuestionnaire(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateQuestionnaire(\r\n command: UpdateQuestionnaire,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateQuestionnaire',\r\n UpdateQuestionnaireMutation,\r\n UpdateQuestionnaireMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateQuestionnaire',\r\n mutation: gql`\r\n mutation UpdateQuestionnaireMutation($command: UpdateQuestionnaire!) {\r\n updateQuestionnaire(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // QuestionnaireSectionQuestions\r\n public deleteQuestionnaireSectionQuestion(\r\n command: DeleteQuestionnaireSectionQuestion,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteQuestionnaireSectionQuestion',\r\n DeleteQuestionnaireSectionQuestionMutation,\r\n DeleteQuestionnaireSectionQuestionMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteQuestionnaireSectionQuestion',\r\n mutation: gql`\r\n mutation DeleteQuestionnaireSectionQuestionMutation(\r\n $command: DeleteQuestionnaireSectionQuestion!\r\n ) {\r\n deleteQuestionnaireSectionQuestion(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public upsertQuestionnaireSectionQuestion(\r\n command: UpsertQuestionnaireSectionQuestion,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpsertQuestionnaireSectionQuestion',\r\n UpsertQuestionnaireSectionQuestionMutation,\r\n UpsertQuestionnaireSectionQuestionMutationVariables,\r\n T\r\n >({\r\n name: 'UpsertQuestionnaireSectionQuestion',\r\n mutation: gql`\r\n mutation UpsertQuestionnaireSectionQuestionMutation(\r\n $command: UpsertQuestionnaireSectionQuestion!\r\n ) {\r\n upsertQuestionnaireSectionQuestion(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // QuestionnaireSections\r\n public deleteQuestionnaireSection(\r\n command: DeleteQuestionnaireSection,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteQuestionnaireSection',\r\n DeleteQuestionnaireSectionMutation,\r\n DeleteQuestionnaireSectionMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteQuestionnaireSection',\r\n mutation: gql`\r\n mutation DeleteQuestionnaireSectionMutation($command: DeleteQuestionnaireSection!) {\r\n deleteQuestionnaireSection(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public upsertQuestionnaireSection(\r\n command: UpsertQuestionnaireSection,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpsertQuestionnaireSection',\r\n UpsertQuestionnaireSectionMutation,\r\n UpsertQuestionnaireSectionMutationVariables,\r\n T\r\n >({\r\n name: 'UpsertQuestionnaireSection',\r\n mutation: gql`\r\n mutation UpsertQuestionnaireSectionMutation($command: UpsertQuestionnaireSection!) {\r\n upsertQuestionnaireSection(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Questions\r\n public addQuestion(\r\n command: AddQuestion,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddQuestion',\r\n AddQuestionMutation,\r\n AddQuestionMutationVariables,\r\n T\r\n >({\r\n name: 'AddQuestion',\r\n mutation: gql`\r\n mutation AddQuestionMutation($command: AddQuestion!) {\r\n addQuestion(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteQuestion(\r\n command: DeleteQuestion,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteQuestion',\r\n DeleteQuestionMutation,\r\n DeleteQuestionMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteQuestion',\r\n mutation: gql`\r\n mutation DeleteQuestionMutation($command: DeleteQuestion!) {\r\n deleteQuestion(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateQuestion(\r\n command: UpdateQuestion,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateQuestion',\r\n UpdateQuestionMutation,\r\n UpdateQuestionMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateQuestion',\r\n mutation: gql`\r\n mutation UpdateQuestionMutation($command: UpdateQuestion!) {\r\n updateQuestion(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // ReceivingFacilityRequests\r\n public acceptReceivingFacilityRequest(\r\n command: AcceptReceivingFacilityRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AcceptReceivingFacilityRequest',\r\n AcceptReceivingFacilityRequestMutation,\r\n AcceptReceivingFacilityRequestMutationVariables,\r\n T\r\n >({\r\n name: 'AcceptReceivingFacilityRequest',\r\n mutation: gql`\r\n mutation AcceptReceivingFacilityRequestMutation($command: AcceptReceivingFacilityRequest!) {\r\n acceptReceivingFacilityRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addReceivingFacilityRequestDeclineHistory(\r\n command: AddReceivingFacilityRequestDeclineHistory,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddReceivingFacilityRequestDeclineHistory',\r\n AddReceivingFacilityRequestDeclineHistoryMutation,\r\n AddReceivingFacilityRequestDeclineHistoryMutationVariables,\r\n T\r\n >({\r\n name: 'AddReceivingFacilityRequestDeclineHistory',\r\n mutation: gql`\r\n mutation AddReceivingFacilityRequestDeclineHistoryMutation(\r\n $command: AddReceivingFacilityRequestDeclineHistory!\r\n ) {\r\n addReceivingFacilityRequestDeclineHistory(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public cancelReceivingFacilityRequest(\r\n command: CancelReceivingFacilityRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CancelReceivingFacilityRequest',\r\n CancelReceivingFacilityRequestMutation,\r\n CancelReceivingFacilityRequestMutationVariables,\r\n T\r\n >({\r\n name: 'CancelReceivingFacilityRequest',\r\n mutation: gql`\r\n mutation CancelReceivingFacilityRequestMutation($command: CancelReceivingFacilityRequest!) {\r\n cancelReceivingFacilityRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteReceivingFacilityRequest(\r\n command: DeleteReceivingFacilityRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteReceivingFacilityRequest',\r\n DeleteReceivingFacilityRequestMutation,\r\n DeleteReceivingFacilityRequestMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteReceivingFacilityRequest',\r\n mutation: gql`\r\n mutation DeleteReceivingFacilityRequestMutation($command: DeleteReceivingFacilityRequest!) {\r\n deleteReceivingFacilityRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public denyReceivingFacilityRequest(\r\n command: DenyReceivingFacilityRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DenyReceivingFacilityRequest',\r\n DenyReceivingFacilityRequestMutation,\r\n DenyReceivingFacilityRequestMutationVariables,\r\n T\r\n >({\r\n name: 'DenyReceivingFacilityRequest',\r\n mutation: gql`\r\n mutation DenyReceivingFacilityRequestMutation($command: DenyReceivingFacilityRequest!) {\r\n denyReceivingFacilityRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public divertReceivingFacilityRequest(\r\n command: DivertReceivingFacilityRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DivertReceivingFacilityRequest',\r\n DivertReceivingFacilityRequestMutation,\r\n DivertReceivingFacilityRequestMutationVariables,\r\n T\r\n >({\r\n name: 'DivertReceivingFacilityRequest',\r\n mutation: gql`\r\n mutation DivertReceivingFacilityRequestMutation($command: DivertReceivingFacilityRequest!) {\r\n divertReceivingFacilityRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public referReceivingFacilityRequest(\r\n command: ReferReceivingFacilityRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ReferReceivingFacilityRequest',\r\n ReferReceivingFacilityRequestMutation,\r\n ReferReceivingFacilityRequestMutationVariables,\r\n T\r\n >({\r\n name: 'ReferReceivingFacilityRequest',\r\n mutation: gql`\r\n mutation ReferReceivingFacilityRequestMutation($command: ReferReceivingFacilityRequest!) {\r\n referReceivingFacilityRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // RendezvousRequests\r\n public addRendezvousRequest(\r\n command: AddRendezvousRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddRendezvousRequest',\r\n AddRendezvousRequestMutation,\r\n AddRendezvousRequestMutationVariables,\r\n T\r\n >({\r\n name: 'AddRendezvousRequest',\r\n mutation: gql`\r\n mutation AddRendezvousRequestMutation($command: AddRendezvousRequest!) {\r\n addRendezvousRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteRendezvousRequest(\r\n command: DeleteRendezvousRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteRendezvousRequest',\r\n DeleteRendezvousRequestMutation,\r\n DeleteRendezvousRequestMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteRendezvousRequest',\r\n mutation: gql`\r\n mutation DeleteRendezvousRequestMutation($command: DeleteRendezvousRequest!) {\r\n deleteRendezvousRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRendezvousRequest(\r\n command: UpdateRendezvousRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRendezvousRequest',\r\n UpdateRendezvousRequestMutation,\r\n UpdateRendezvousRequestMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRendezvousRequest',\r\n mutation: gql`\r\n mutation UpdateRendezvousRequestMutation($command: UpdateRendezvousRequest!) {\r\n updateRendezvousRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // RequesterRoles\r\n public addRequesterRole(\r\n command: AddRequesterRole,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddRequesterRole',\r\n AddRequesterRoleMutation,\r\n AddRequesterRoleMutationVariables,\r\n T\r\n >({\r\n name: 'AddRequesterRole',\r\n mutation: gql`\r\n mutation AddRequesterRoleMutation($command: AddRequesterRole!) {\r\n addRequesterRole(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteRequesterRole(\r\n command: DeleteRequesterRole,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteRequesterRole',\r\n DeleteRequesterRoleMutation,\r\n DeleteRequesterRoleMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteRequesterRole',\r\n mutation: gql`\r\n mutation DeleteRequesterRoleMutation($command: DeleteRequesterRole!) {\r\n deleteRequesterRole(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRequesterRole(\r\n command: UpdateRequesterRole,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRequesterRole',\r\n UpdateRequesterRoleMutation,\r\n UpdateRequesterRoleMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRequesterRole',\r\n mutation: gql`\r\n mutation UpdateRequesterRoleMutation($command: UpdateRequesterRole!) {\r\n updateRequesterRole(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Requesters\r\n public updateRequester(\r\n command: UpdateRequester,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRequester',\r\n UpdateRequesterMutation,\r\n UpdateRequesterMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRequester',\r\n mutation: gql`\r\n mutation UpdateRequesterMutation($command: UpdateRequester!) {\r\n updateRequester(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRequesterSpecialtyTeam(\r\n command: UpdateRequesterSpecialtyTeam,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRequesterSpecialtyTeam',\r\n UpdateRequesterSpecialtyTeamMutation,\r\n UpdateRequesterSpecialtyTeamMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRequesterSpecialtyTeam',\r\n mutation: gql`\r\n mutation UpdateRequesterSpecialtyTeamMutation($command: UpdateRequesterSpecialtyTeam!) {\r\n updateRequesterSpecialtyTeam(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTransferCenterCallInfo(\r\n command: UpdateTransferCenterCallInfo,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTransferCenterCallInfo',\r\n UpdateTransferCenterCallInfoMutation,\r\n UpdateTransferCenterCallInfoMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTransferCenterCallInfo',\r\n mutation: gql`\r\n mutation UpdateTransferCenterCallInfoMutation($command: UpdateTransferCenterCallInfo!) {\r\n updateTransferCenterCallInfo(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // RequestLocations\r\n public updateReceivingFacilityAutoAcceptance(\r\n command: UpdateReceivingFacilityAutoAcceptance,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateReceivingFacilityAutoAcceptance',\r\n UpdateReceivingFacilityAutoAcceptanceMutation,\r\n UpdateReceivingFacilityAutoAcceptanceMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateReceivingFacilityAutoAcceptance',\r\n mutation: gql`\r\n mutation UpdateReceivingFacilityAutoAcceptanceMutation(\r\n $command: UpdateReceivingFacilityAutoAcceptance!\r\n ) {\r\n updateReceivingFacilityAutoAcceptance(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRequestLocation(\r\n command: UpdateRequestLocation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRequestLocation',\r\n UpdateRequestLocationMutation,\r\n UpdateRequestLocationMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRequestLocation',\r\n mutation: gql`\r\n mutation UpdateRequestLocationMutation($command: UpdateRequestLocation!) {\r\n updateRequestLocation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // RequestPatients\r\n public addRequestPatient(\r\n command: AddRequestPatient,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddRequestPatient',\r\n AddRequestPatientMutation,\r\n AddRequestPatientMutationVariables,\r\n T\r\n >({\r\n name: 'AddRequestPatient',\r\n mutation: gql`\r\n mutation AddRequestPatientMutation($command: AddRequestPatient!) {\r\n addRequestPatient(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteRequestPatient(\r\n command: DeleteRequestPatient,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteRequestPatient',\r\n DeleteRequestPatientMutation,\r\n DeleteRequestPatientMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteRequestPatient',\r\n mutation: gql`\r\n mutation DeleteRequestPatientMutation($command: DeleteRequestPatient!) {\r\n deleteRequestPatient(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateChiefComplaint(\r\n command: UpdateChiefComplaint,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateChiefComplaint',\r\n UpdateChiefComplaintMutation,\r\n UpdateChiefComplaintMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateChiefComplaint',\r\n mutation: gql`\r\n mutation UpdateChiefComplaintMutation($command: UpdateChiefComplaint!) {\r\n updateChiefComplaint(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updatePatientClinicalInfo(\r\n command: UpdatePatientClinicalInfo,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdatePatientClinicalInfo',\r\n UpdatePatientClinicalInfoMutation,\r\n UpdatePatientClinicalInfoMutationVariables,\r\n T\r\n >({\r\n name: 'UpdatePatientClinicalInfo',\r\n mutation: gql`\r\n mutation UpdatePatientClinicalInfoMutation($command: UpdatePatientClinicalInfo!) {\r\n updatePatientClinicalInfo(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updatePatientInfo(\r\n command: UpdatePatientInfo,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdatePatientInfo',\r\n UpdatePatientInfoMutation,\r\n UpdatePatientInfoMutationVariables,\r\n T\r\n >({\r\n name: 'UpdatePatientInfo',\r\n mutation: gql`\r\n mutation UpdatePatientInfoMutation($command: UpdatePatientInfo!) {\r\n updatePatientInfo(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRequestPatient(\r\n command: UpdateRequestPatient,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRequestPatient',\r\n UpdateRequestPatientMutation,\r\n UpdateRequestPatientMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRequestPatient',\r\n mutation: gql`\r\n mutation UpdateRequestPatientMutation($command: UpdateRequestPatient!) {\r\n updateRequestPatient(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Requests\r\n public acknowledgeExternalRequest(\r\n command: AcknowledgeExternalRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AcknowledgeExternalRequest',\r\n AcknowledgeExternalRequestMutation,\r\n AcknowledgeExternalRequestMutationVariables,\r\n T\r\n >({\r\n name: 'AcknowledgeExternalRequest',\r\n mutation: gql`\r\n mutation AcknowledgeExternalRequestMutation($command: AcknowledgeExternalRequest!) {\r\n acknowledgeExternalRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public beginAssignment(\r\n command: BeginAssignment,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'BeginAssignment',\r\n BeginAssignmentMutation,\r\n BeginAssignmentMutationVariables,\r\n T\r\n >({\r\n name: 'BeginAssignment',\r\n mutation: gql`\r\n mutation BeginAssignmentMutation($command: BeginAssignment!) {\r\n beginAssignment(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public cancelRequest(\r\n command: CancelRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CancelRequest',\r\n CancelRequestMutation,\r\n CancelRequestMutationVariables,\r\n T\r\n >({\r\n name: 'CancelRequest',\r\n mutation: gql`\r\n mutation CancelRequestMutation($command: CancelRequest!) {\r\n cancelRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public cancelRequestFromTransferCenter(\r\n command: CancelRequestFromTransferCenter,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CancelRequestFromTransferCenter',\r\n CancelRequestFromTransferCenterMutation,\r\n CancelRequestFromTransferCenterMutationVariables,\r\n T\r\n >({\r\n name: 'CancelRequestFromTransferCenter',\r\n mutation: gql`\r\n mutation CancelRequestFromTransferCenterMutation(\r\n $command: CancelRequestFromTransferCenter!\r\n ) {\r\n cancelRequestFromTransferCenter(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public changeCallType(\r\n command: ChangeCallType,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ChangeCallType',\r\n ChangeCallTypeMutation,\r\n ChangeCallTypeMutationVariables,\r\n T\r\n >({\r\n name: 'ChangeCallType',\r\n mutation: gql`\r\n mutation ChangeCallTypeMutation($command: ChangeCallType!) {\r\n changeCallType(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public changeRequestCancellationReason(\r\n command: ChangeRequestCancellationReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ChangeRequestCancellationReason',\r\n ChangeRequestCancellationReasonMutation,\r\n ChangeRequestCancellationReasonMutationVariables,\r\n T\r\n >({\r\n name: 'ChangeRequestCancellationReason',\r\n mutation: gql`\r\n mutation ChangeRequestCancellationReasonMutation(\r\n $command: ChangeRequestCancellationReason!\r\n ) {\r\n changeRequestCancellationReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public changeRequestType(\r\n command: ChangeRequestType,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ChangeRequestType',\r\n ChangeRequestTypeMutation,\r\n ChangeRequestTypeMutationVariables,\r\n T\r\n >({\r\n name: 'ChangeRequestType',\r\n mutation: gql`\r\n mutation ChangeRequestTypeMutation($command: ChangeRequestType!) {\r\n changeRequestType(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public createRequest(\r\n command: CreateRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CreateRequest',\r\n CreateRequestMutation,\r\n CreateRequestMutationVariables,\r\n T\r\n >({\r\n name: 'CreateRequest',\r\n mutation: gql`\r\n mutation CreateRequestMutation($command: CreateRequest!) {\r\n createRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public delayAssignment(\r\n command: DelayAssignment,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DelayAssignment',\r\n DelayAssignmentMutation,\r\n DelayAssignmentMutationVariables,\r\n T\r\n >({\r\n name: 'DelayAssignment',\r\n mutation: gql`\r\n mutation DelayAssignmentMutation($command: DelayAssignment!) {\r\n delayAssignment(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public duplicateRequest(\r\n command: DuplicateRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DuplicateRequest',\r\n DuplicateRequestMutation,\r\n DuplicateRequestMutationVariables,\r\n T\r\n >({\r\n name: 'DuplicateRequest',\r\n mutation: gql`\r\n mutation DuplicateRequestMutation($command: DuplicateRequest!) {\r\n duplicateRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public reactivateRequest(\r\n command: ReactivateRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ReactivateRequest',\r\n ReactivateRequestMutation,\r\n ReactivateRequestMutationVariables,\r\n T\r\n >({\r\n name: 'ReactivateRequest',\r\n mutation: gql`\r\n mutation ReactivateRequestMutation($command: ReactivateRequest!) {\r\n reactivateRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public reactivateRequestFromTransferCenter(\r\n command: ReactivateRequestFromTransferCenter,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ReactivateRequestFromTransferCenter',\r\n ReactivateRequestFromTransferCenterMutation,\r\n ReactivateRequestFromTransferCenterMutationVariables,\r\n T\r\n >({\r\n name: 'ReactivateRequestFromTransferCenter',\r\n mutation: gql`\r\n mutation ReactivateRequestFromTransferCenterMutation(\r\n $command: ReactivateRequestFromTransferCenter!\r\n ) {\r\n reactivateRequestFromTransferCenter(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public recalculateCandidates(\r\n command: RecalculateCandidates,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'RecalculateCandidates',\r\n RecalculateCandidatesMutation,\r\n RecalculateCandidatesMutationVariables,\r\n T\r\n >({\r\n name: 'RecalculateCandidates',\r\n mutation: gql`\r\n mutation RecalculateCandidatesMutation($command: RecalculateCandidates!) {\r\n recalculateCandidates(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRequest(\r\n command: UpdateRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRequest',\r\n UpdateRequestMutation,\r\n UpdateRequestMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRequest',\r\n mutation: gql`\r\n mutation UpdateRequestMutation($command: UpdateRequest!) {\r\n updateRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRequestAtlo(\r\n command: UpdateRequestAtlo,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRequestAtlo',\r\n UpdateRequestAtloMutation,\r\n UpdateRequestAtloMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRequestAtlo',\r\n mutation: gql`\r\n mutation UpdateRequestAtloMutation($command: UpdateRequestAtlo!) {\r\n updateRequestAtlo(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRequestPublicUtilityInfo(\r\n command: UpdateRequestPublicUtilityInfo,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRequestPublicUtilityInfo',\r\n UpdateRequestPublicUtilityInfoMutation,\r\n UpdateRequestPublicUtilityInfoMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRequestPublicUtilityInfo',\r\n mutation: gql`\r\n mutation UpdateRequestPublicUtilityInfoMutation($command: UpdateRequestPublicUtilityInfo!) {\r\n updateRequestPublicUtilityInfo(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRequestRegion(\r\n command: UpdateRequestRegion,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRequestRegion',\r\n UpdateRequestRegionMutation,\r\n UpdateRequestRegionMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRequestRegion',\r\n mutation: gql`\r\n mutation UpdateRequestRegionMutation($command: UpdateRequestRegion!) {\r\n updateRequestRegion(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRequestSafetyQuestions(\r\n command: UpdateRequestSafetyQuestions,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRequestSafetyQuestions',\r\n UpdateRequestSafetyQuestionsMutation,\r\n UpdateRequestSafetyQuestionsMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRequestSafetyQuestions',\r\n mutation: gql`\r\n mutation UpdateRequestSafetyQuestionsMutation($command: UpdateRequestSafetyQuestions!) {\r\n updateRequestSafetyQuestions(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRequestStandbyStatus(\r\n command: UpdateRequestStandbyStatus,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRequestStandbyStatus',\r\n UpdateRequestStandbyStatusMutation,\r\n UpdateRequestStandbyStatusMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRequestStandbyStatus',\r\n mutation: gql`\r\n mutation UpdateRequestStandbyStatusMutation($command: UpdateRequestStandbyStatus!) {\r\n updateRequestStandbyStatus(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // SystemTimers\r\n // TimelineItems\r\n public addTimelineItem(\r\n command: AddTimelineItem,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddTimelineItem',\r\n AddTimelineItemMutation,\r\n AddTimelineItemMutationVariables,\r\n T\r\n >({\r\n name: 'AddTimelineItem',\r\n mutation: gql`\r\n mutation AddTimelineItemMutation($command: AddTimelineItem!) {\r\n addTimelineItem(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteTimelineItem(\r\n command: DeleteTimelineItem,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteTimelineItem',\r\n DeleteTimelineItemMutation,\r\n DeleteTimelineItemMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteTimelineItem',\r\n mutation: gql`\r\n mutation DeleteTimelineItemMutation($command: DeleteTimelineItem!) {\r\n deleteTimelineItem(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTimelineItem(\r\n command: UpdateTimelineItem,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTimelineItem',\r\n UpdateTimelineItemMutation,\r\n UpdateTimelineItemMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTimelineItem',\r\n mutation: gql`\r\n mutation UpdateTimelineItemMutation($command: UpdateTimelineItem!) {\r\n updateTimelineItem(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public upsertTimelineItem(\r\n command: UpsertTimelineItem,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpsertTimelineItem',\r\n UpsertTimelineItemMutation,\r\n UpsertTimelineItemMutationVariables,\r\n T\r\n >({\r\n name: 'UpsertTimelineItem',\r\n mutation: gql`\r\n mutation UpsertTimelineItemMutation($command: UpsertTimelineItem!) {\r\n upsertTimelineItem(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Timelines\r\n public addTimeline(\r\n command: AddTimeline,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddTimeline',\r\n AddTimelineMutation,\r\n AddTimelineMutationVariables,\r\n T\r\n >({\r\n name: 'AddTimeline',\r\n mutation: gql`\r\n mutation AddTimelineMutation($command: AddTimeline!) {\r\n addTimeline(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteTimeline(\r\n command: DeleteTimeline,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteTimeline',\r\n DeleteTimelineMutation,\r\n DeleteTimelineMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteTimeline',\r\n mutation: gql`\r\n mutation DeleteTimelineMutation($command: DeleteTimeline!) {\r\n deleteTimeline(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTimeline(\r\n command: UpdateTimeline,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTimeline',\r\n UpdateTimelineMutation,\r\n UpdateTimelineMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTimeline',\r\n mutation: gql`\r\n mutation UpdateTimelineMutation($command: UpdateTimeline!) {\r\n updateTimeline(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Timestamps\r\n public addEmsReport(\r\n command: AddEmsReport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddEmsReport',\r\n AddEmsReportMutation,\r\n AddEmsReportMutationVariables,\r\n T\r\n >({\r\n name: 'AddEmsReport',\r\n mutation: gql`\r\n mutation AddEmsReportMutation($command: AddEmsReport!) {\r\n addEmsReport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addTimestamp(\r\n command: AddTimestamp,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddTimestamp',\r\n AddTimestampMutation,\r\n AddTimestampMutationVariables,\r\n T\r\n >({\r\n name: 'AddTimestamp',\r\n mutation: gql`\r\n mutation AddTimestampMutation($command: AddTimestamp!) {\r\n addTimestamp(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteTimestamp(\r\n command: DeleteTimestamp,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteTimestamp',\r\n DeleteTimestampMutation,\r\n DeleteTimestampMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteTimestamp',\r\n mutation: gql`\r\n mutation DeleteTimestampMutation($command: DeleteTimestamp!) {\r\n deleteTimestamp(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public reSendToDataWarehouse(\r\n command: ReSendToDataWarehouse,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ReSendToDataWarehouse',\r\n ReSendToDataWarehouseMutation,\r\n ReSendToDataWarehouseMutationVariables,\r\n T\r\n >({\r\n name: 'ReSendToDataWarehouse',\r\n mutation: gql`\r\n mutation ReSendToDataWarehouseMutation($command: ReSendToDataWarehouse!) {\r\n reSendToDataWarehouse(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public sendToImageTrend(\r\n command: SendToImageTrend,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SendToImageTrend',\r\n SendToImageTrendMutation,\r\n SendToImageTrendMutationVariables,\r\n T\r\n >({\r\n name: 'SendToImageTrend',\r\n mutation: gql`\r\n mutation SendToImageTrendMutation($command: SendToImageTrend!) {\r\n sendToImageTrend(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateEmsReport(\r\n command: UpdateEmsReport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateEmsReport',\r\n UpdateEmsReportMutation,\r\n UpdateEmsReportMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateEmsReport',\r\n mutation: gql`\r\n mutation UpdateEmsReportMutation($command: UpdateEmsReport!) {\r\n updateEmsReport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTimestamp(\r\n command: UpdateTimestamp,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTimestamp',\r\n UpdateTimestampMutation,\r\n UpdateTimestampMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTimestamp',\r\n mutation: gql`\r\n mutation UpdateTimestampMutation($command: UpdateTimestamp!) {\r\n updateTimestamp(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // TimestampTypes\r\n public addTimestampType(\r\n command: AddTimestampType,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddTimestampType',\r\n AddTimestampTypeMutation,\r\n AddTimestampTypeMutationVariables,\r\n T\r\n >({\r\n name: 'AddTimestampType',\r\n mutation: gql`\r\n mutation AddTimestampTypeMutation($command: AddTimestampType!) {\r\n addTimestampType(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteTimestampType(\r\n command: DeleteTimestampType,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteTimestampType',\r\n DeleteTimestampTypeMutation,\r\n DeleteTimestampTypeMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteTimestampType',\r\n mutation: gql`\r\n mutation DeleteTimestampTypeMutation($command: DeleteTimestampType!) {\r\n deleteTimestampType(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTimestampType(\r\n command: UpdateTimestampType,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTimestampType',\r\n UpdateTimestampTypeMutation,\r\n UpdateTimestampTypeMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTimestampType',\r\n mutation: gql`\r\n mutation UpdateTimestampTypeMutation($command: UpdateTimestampType!) {\r\n updateTimestampType(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // TrackedMessages\r\n public deliverTrackedMessage(\r\n command: DeliverTrackedMessage,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeliverTrackedMessage',\r\n DeliverTrackedMessageMutation,\r\n DeliverTrackedMessageMutationVariables,\r\n T\r\n >({\r\n name: 'DeliverTrackedMessage',\r\n mutation: gql`\r\n mutation DeliverTrackedMessageMutation($command: DeliverTrackedMessage!) {\r\n deliverTrackedMessage(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public sendMessage(\r\n command: SendMessage,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SendMessage',\r\n SendMessageMutation,\r\n SendMessageMutationVariables,\r\n T\r\n >({\r\n name: 'SendMessage',\r\n mutation: gql`\r\n mutation SendMessageMutation($command: SendMessage!) {\r\n sendMessage(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTrackedMessage(\r\n command: UpdateTrackedMessage,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTrackedMessage',\r\n UpdateTrackedMessageMutation,\r\n UpdateTrackedMessageMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTrackedMessage',\r\n mutation: gql`\r\n mutation UpdateTrackedMessageMutation($command: UpdateTrackedMessage!) {\r\n updateTrackedMessage(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // TransferReasons\r\n public addTransferReason(\r\n command: AddTransferReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddTransferReason',\r\n AddTransferReasonMutation,\r\n AddTransferReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddTransferReason',\r\n mutation: gql`\r\n mutation AddTransferReasonMutation($command: AddTransferReason!) {\r\n addTransferReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteTransferReason(\r\n command: DeleteTransferReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteTransferReason',\r\n DeleteTransferReasonMutation,\r\n DeleteTransferReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteTransferReason',\r\n mutation: gql`\r\n mutation DeleteTransferReasonMutation($command: DeleteTransferReason!) {\r\n deleteTransferReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTransferReason(\r\n command: UpdateTransferReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTransferReason',\r\n UpdateTransferReasonMutation,\r\n UpdateTransferReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTransferReason',\r\n mutation: gql`\r\n mutation UpdateTransferReasonMutation($command: UpdateTransferReason!) {\r\n updateTransferReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // TransportOfferOptions\r\n public updateTransportOfferOption(\r\n command: UpdateTransportOfferOption,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTransportOfferOption',\r\n UpdateTransportOfferOptionMutation,\r\n UpdateTransportOfferOptionMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTransportOfferOption',\r\n mutation: gql`\r\n mutation UpdateTransportOfferOptionMutation($command: UpdateTransportOfferOption!) {\r\n updateTransportOfferOption(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // TransportOffers\r\n public acceptTransportOffer(\r\n command: AcceptTransportOffer,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AcceptTransportOffer',\r\n AcceptTransportOfferMutation,\r\n AcceptTransportOfferMutationVariables,\r\n T\r\n >({\r\n name: 'AcceptTransportOffer',\r\n mutation: gql`\r\n mutation AcceptTransportOfferMutation($command: AcceptTransportOffer!) {\r\n acceptTransportOffer(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addCancellation(\r\n command: AddCancellation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddCancellation',\r\n AddCancellationMutation,\r\n AddCancellationMutationVariables,\r\n T\r\n >({\r\n name: 'AddCancellation',\r\n mutation: gql`\r\n mutation AddCancellationMutation($command: AddCancellation!) {\r\n addCancellation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addDecline(\r\n command: AddDecline,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddDecline', AddDeclineMutation, AddDeclineMutationVariables, T>(\r\n {\r\n name: 'AddDecline',\r\n mutation: gql`\r\n mutation AddDeclineMutation($command: AddDecline!) {\r\n addDecline(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public addTransportOffer(\r\n command: AddTransportOffer,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddTransportOffer',\r\n AddTransportOfferMutation,\r\n AddTransportOfferMutationVariables,\r\n T\r\n >({\r\n name: 'AddTransportOffer',\r\n mutation: gql`\r\n mutation AddTransportOfferMutation($command: AddTransportOffer!) {\r\n addTransportOffer(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public beginTransportOffer(\r\n command: BeginTransportOffer,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'BeginTransportOffer',\r\n BeginTransportOfferMutation,\r\n BeginTransportOfferMutationVariables,\r\n T\r\n >({\r\n name: 'BeginTransportOffer',\r\n mutation: gql`\r\n mutation BeginTransportOfferMutation($command: BeginTransportOffer!) {\r\n beginTransportOffer(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public cancelTransportOffer(\r\n command: CancelTransportOffer,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CancelTransportOffer',\r\n CancelTransportOfferMutation,\r\n CancelTransportOfferMutationVariables,\r\n T\r\n >({\r\n name: 'CancelTransportOffer',\r\n mutation: gql`\r\n mutation CancelTransportOfferMutation($command: CancelTransportOffer!) {\r\n cancelTransportOffer(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public declineAndAssignNewTransportOffer(\r\n command: DeclineAndAssignNewTransportOffer,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeclineAndAssignNewTransportOffer',\r\n DeclineAndAssignNewTransportOfferMutation,\r\n DeclineAndAssignNewTransportOfferMutationVariables,\r\n T\r\n >({\r\n name: 'DeclineAndAssignNewTransportOffer',\r\n mutation: gql`\r\n mutation DeclineAndAssignNewTransportOfferMutation(\r\n $command: DeclineAndAssignNewTransportOffer!\r\n ) {\r\n declineAndAssignNewTransportOffer(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public declineTransportOffer(\r\n command: DeclineTransportOffer,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeclineTransportOffer',\r\n DeclineTransportOfferMutation,\r\n DeclineTransportOfferMutationVariables,\r\n T\r\n >({\r\n name: 'DeclineTransportOffer',\r\n mutation: gql`\r\n mutation DeclineTransportOfferMutation($command: DeclineTransportOffer!) {\r\n declineTransportOffer(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public declineTransportOfferAndDelayAssignment(\r\n command: DeclineTransportOfferAndDelayAssignment,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeclineTransportOfferAndDelayAssignment',\r\n DeclineTransportOfferAndDelayAssignmentMutation,\r\n DeclineTransportOfferAndDelayAssignmentMutationVariables,\r\n T\r\n >({\r\n name: 'DeclineTransportOfferAndDelayAssignment',\r\n mutation: gql`\r\n mutation DeclineTransportOfferAndDelayAssignmentMutation(\r\n $command: DeclineTransportOfferAndDelayAssignment!\r\n ) {\r\n declineTransportOfferAndDelayAssignment(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteTransportOffer(\r\n command: DeleteTransportOffer,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteTransportOffer',\r\n DeleteTransportOfferMutation,\r\n DeleteTransportOfferMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteTransportOffer',\r\n mutation: gql`\r\n mutation DeleteTransportOfferMutation($command: DeleteTransportOffer!) {\r\n deleteTransportOffer(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public initiateTransportCheck(\r\n command: InitiateTransportCheck,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'InitiateTransportCheck',\r\n InitiateTransportCheckMutation,\r\n InitiateTransportCheckMutationVariables,\r\n T\r\n >({\r\n name: 'InitiateTransportCheck',\r\n mutation: gql`\r\n mutation InitiateTransportCheckMutation($command: InitiateTransportCheck!) {\r\n initiateTransportCheck(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public offerWithBulkSkip(\r\n command: OfferWithBulkSkip,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'OfferWithBulkSkip',\r\n OfferWithBulkSkipMutation,\r\n OfferWithBulkSkipMutationVariables,\r\n T\r\n >({\r\n name: 'OfferWithBulkSkip',\r\n mutation: gql`\r\n mutation OfferWithBulkSkipMutation($command: OfferWithBulkSkip!) {\r\n offerWithBulkSkip(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public referTransportOffer(\r\n command: ReferTransportOffer,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ReferTransportOffer',\r\n ReferTransportOfferMutation,\r\n ReferTransportOfferMutationVariables,\r\n T\r\n >({\r\n name: 'ReferTransportOffer',\r\n mutation: gql`\r\n mutation ReferTransportOfferMutation($command: ReferTransportOffer!) {\r\n referTransportOffer(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public skipTransportOffer(\r\n command: SkipTransportOffer,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SkipTransportOffer',\r\n SkipTransportOfferMutation,\r\n SkipTransportOfferMutationVariables,\r\n T\r\n >({\r\n name: 'SkipTransportOffer',\r\n mutation: gql`\r\n mutation SkipTransportOfferMutation($command: SkipTransportOffer!) {\r\n skipTransportOffer(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCancellation(\r\n command: UpdateCancellation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCancellation',\r\n UpdateCancellationMutation,\r\n UpdateCancellationMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCancellation',\r\n mutation: gql`\r\n mutation UpdateCancellationMutation($command: UpdateCancellation!) {\r\n updateCancellation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateDecline(\r\n command: UpdateDecline,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateDecline',\r\n UpdateDeclineMutation,\r\n UpdateDeclineMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateDecline',\r\n mutation: gql`\r\n mutation UpdateDeclineMutation($command: UpdateDecline!) {\r\n updateDecline(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOfferRank(\r\n command: UpdateOfferRank,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOfferRank',\r\n UpdateOfferRankMutation,\r\n UpdateOfferRankMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOfferRank',\r\n mutation: gql`\r\n mutation UpdateOfferRankMutation($command: UpdateOfferRank!) {\r\n updateOfferRank(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateSkip(\r\n command: UpdateSkip,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'UpdateSkip', UpdateSkipMutation, UpdateSkipMutationVariables, T>(\r\n {\r\n name: 'UpdateSkip',\r\n mutation: gql`\r\n mutation UpdateSkipMutation($command: UpdateSkip!) {\r\n updateSkip(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public updateTransportOffer(\r\n command: UpdateTransportOffer,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTransportOffer',\r\n UpdateTransportOfferMutation,\r\n UpdateTransportOfferMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTransportOffer',\r\n mutation: gql`\r\n mutation UpdateTransportOfferMutation($command: UpdateTransportOffer!) {\r\n updateTransportOffer(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTransportOfferEta(\r\n command: UpdateTransportOfferEta,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTransportOfferEta',\r\n UpdateTransportOfferEtaMutation,\r\n UpdateTransportOfferEtaMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTransportOfferEta',\r\n mutation: gql`\r\n mutation UpdateTransportOfferEtaMutation($command: UpdateTransportOfferEta!) {\r\n updateTransportOfferEta(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // TransportReasons\r\n public addTransportReason(\r\n command: AddTransportReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddTransportReason',\r\n AddTransportReasonMutation,\r\n AddTransportReasonMutationVariables,\r\n T\r\n >({\r\n name: 'AddTransportReason',\r\n mutation: gql`\r\n mutation AddTransportReasonMutation($command: AddTransportReason!) {\r\n addTransportReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteTransportReason(\r\n command: DeleteTransportReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteTransportReason',\r\n DeleteTransportReasonMutation,\r\n DeleteTransportReasonMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteTransportReason',\r\n mutation: gql`\r\n mutation DeleteTransportReasonMutation($command: DeleteTransportReason!) {\r\n deleteTransportReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTransportReason(\r\n command: UpdateTransportReason,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTransportReason',\r\n UpdateTransportReasonMutation,\r\n UpdateTransportReasonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTransportReason',\r\n mutation: gql`\r\n mutation UpdateTransportReasonMutation($command: UpdateTransportReason!) {\r\n updateTransportReason(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // TripLegManifestEntries\r\n public addManifestEntry(\r\n command: AddManifestEntry,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddManifestEntry',\r\n AddManifestEntryMutation,\r\n AddManifestEntryMutationVariables,\r\n T\r\n >({\r\n name: 'AddManifestEntry',\r\n mutation: gql`\r\n mutation AddManifestEntryMutation($command: AddManifestEntry!) {\r\n addManifestEntry(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteManifestEntry(\r\n command: DeleteManifestEntry,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteManifestEntry',\r\n DeleteManifestEntryMutation,\r\n DeleteManifestEntryMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteManifestEntry',\r\n mutation: gql`\r\n mutation DeleteManifestEntryMutation($command: DeleteManifestEntry!) {\r\n deleteManifestEntry(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateManifestEntry(\r\n command: UpdateManifestEntry,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateManifestEntry',\r\n UpdateManifestEntryMutation,\r\n UpdateManifestEntryMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateManifestEntry',\r\n mutation: gql`\r\n mutation UpdateManifestEntryMutation($command: UpdateManifestEntry!) {\r\n updateManifestEntry(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // TripLegs\r\n public updateOdometerReadings(\r\n command: UpdateOdometerReadings,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOdometerReadings',\r\n UpdateOdometerReadingsMutation,\r\n UpdateOdometerReadingsMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOdometerReadings',\r\n mutation: gql`\r\n mutation UpdateOdometerReadingsMutation($command: UpdateOdometerReadings!) {\r\n updateOdometerReadings(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // TripPassengers\r\n public addTripPassenger(\r\n command: AddTripPassenger,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddTripPassenger',\r\n AddTripPassengerMutation,\r\n AddTripPassengerMutationVariables,\r\n T\r\n >({\r\n name: 'AddTripPassenger',\r\n mutation: gql`\r\n mutation AddTripPassengerMutation($command: AddTripPassenger!) {\r\n addTripPassenger(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteTripPassenger(\r\n command: DeleteTripPassenger,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteTripPassenger',\r\n DeleteTripPassengerMutation,\r\n DeleteTripPassengerMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteTripPassenger',\r\n mutation: gql`\r\n mutation DeleteTripPassengerMutation($command: DeleteTripPassenger!) {\r\n deleteTripPassenger(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTripPassenger(\r\n command: UpdateTripPassenger,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTripPassenger',\r\n UpdateTripPassengerMutation,\r\n UpdateTripPassengerMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTripPassenger',\r\n mutation: gql`\r\n mutation UpdateTripPassengerMutation($command: UpdateTripPassenger!) {\r\n updateTripPassenger(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Trips\r\n public addTrip(\r\n command: AddTrip,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddTrip', AddTripMutation, AddTripMutationVariables, T>({\r\n name: 'AddTrip',\r\n mutation: gql`\r\n mutation AddTripMutation($command: AddTrip!) {\r\n addTrip(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addTripLegManifestEntry(\r\n command: AddTripLegManifestEntry,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddTripLegManifestEntry',\r\n AddTripLegManifestEntryMutation,\r\n AddTripLegManifestEntryMutationVariables,\r\n T\r\n >({\r\n name: 'AddTripLegManifestEntry',\r\n mutation: gql`\r\n mutation AddTripLegManifestEntryMutation($command: AddTripLegManifestEntry!) {\r\n addTripLegManifestEntry(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public calculateEtas(\r\n command: CalculateEtas,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CalculateEtas',\r\n CalculateEtasMutation,\r\n CalculateEtasMutationVariables,\r\n T\r\n >({\r\n name: 'CalculateEtas',\r\n mutation: gql`\r\n mutation CalculateEtasMutation($command: CalculateEtas!) {\r\n calculateEtas(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public confirmManifest(\r\n command: ConfirmManifest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ConfirmManifest',\r\n ConfirmManifestMutation,\r\n ConfirmManifestMutationVariables,\r\n T\r\n >({\r\n name: 'ConfirmManifest',\r\n mutation: gql`\r\n mutation ConfirmManifestMutation($command: ConfirmManifest!) {\r\n confirmManifest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public createPrecautionaryLanding(\r\n command: CreatePrecautionaryLanding,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CreatePrecautionaryLanding',\r\n CreatePrecautionaryLandingMutation,\r\n CreatePrecautionaryLandingMutationVariables,\r\n T\r\n >({\r\n name: 'CreatePrecautionaryLanding',\r\n mutation: gql`\r\n mutation CreatePrecautionaryLandingMutation($command: CreatePrecautionaryLanding!) {\r\n createPrecautionaryLanding(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public createPrecautionaryLandingV2(\r\n command: CreatePrecautionaryLandingV2,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'CreatePrecautionaryLandingV2',\r\n CreatePrecautionaryLandingV2Mutation,\r\n CreatePrecautionaryLandingV2MutationVariables,\r\n T\r\n >({\r\n name: 'CreatePrecautionaryLandingV2',\r\n mutation: gql`\r\n mutation CreatePrecautionaryLandingV2Mutation($command: CreatePrecautionaryLandingV2!) {\r\n createPrecautionaryLandingV2(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteTrip(\r\n command: DeleteTrip,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'DeleteTrip', DeleteTripMutation, DeleteTripMutationVariables, T>(\r\n {\r\n name: 'DeleteTrip',\r\n mutation: gql`\r\n mutation DeleteTripMutation($command: DeleteTrip!) {\r\n deleteTrip(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public deleteTripLegManifestEntry(\r\n command: DeleteTripLegManifestEntry,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteTripLegManifestEntry',\r\n DeleteTripLegManifestEntryMutation,\r\n DeleteTripLegManifestEntryMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteTripLegManifestEntry',\r\n mutation: gql`\r\n mutation DeleteTripLegManifestEntryMutation($command: DeleteTripLegManifestEntry!) {\r\n deleteTripLegManifestEntry(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public insertWaypoint(\r\n command: InsertWaypoint,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'InsertWaypoint',\r\n InsertWaypointMutation,\r\n InsertWaypointMutationVariables,\r\n T\r\n >({\r\n name: 'InsertWaypoint',\r\n mutation: gql`\r\n mutation InsertWaypointMutation($command: InsertWaypoint!) {\r\n insertWaypoint(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public mergePostAndDropoffWaypoints(\r\n command: MergePostAndDropoffWaypoints,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'MergePostAndDropoffWaypoints',\r\n MergePostAndDropoffWaypointsMutation,\r\n MergePostAndDropoffWaypointsMutationVariables,\r\n T\r\n >({\r\n name: 'MergePostAndDropoffWaypoints',\r\n mutation: gql`\r\n mutation MergePostAndDropoffWaypointsMutation($command: MergePostAndDropoffWaypoints!) {\r\n mergePostAndDropoffWaypoints(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public mergeUnitOriginAndPickupWaypoints(\r\n command: MergeUnitOriginAndPickupWaypoints,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'MergeUnitOriginAndPickupWaypoints',\r\n MergeUnitOriginAndPickupWaypointsMutation,\r\n MergeUnitOriginAndPickupWaypointsMutationVariables,\r\n T\r\n >({\r\n name: 'MergeUnitOriginAndPickupWaypoints',\r\n mutation: gql`\r\n mutation MergeUnitOriginAndPickupWaypointsMutation(\r\n $command: MergeUnitOriginAndPickupWaypoints!\r\n ) {\r\n mergeUnitOriginAndPickupWaypoints(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public modifyWaypoint(\r\n command: ModifyWaypoint,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ModifyWaypoint',\r\n ModifyWaypointMutation,\r\n ModifyWaypointMutationVariables,\r\n T\r\n >({\r\n name: 'ModifyWaypoint',\r\n mutation: gql`\r\n mutation ModifyWaypointMutation($command: ModifyWaypoint!) {\r\n modifyWaypoint(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public recalculateTripMileage(\r\n command: RecalculateTripMileage,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'RecalculateTripMileage',\r\n RecalculateTripMileageMutation,\r\n RecalculateTripMileageMutationVariables,\r\n T\r\n >({\r\n name: 'RecalculateTripMileage',\r\n mutation: gql`\r\n mutation RecalculateTripMileageMutation($command: RecalculateTripMileage!) {\r\n recalculateTripMileage(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public removeWaypoint(\r\n command: RemoveWaypoint,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'RemoveWaypoint',\r\n RemoveWaypointMutation,\r\n RemoveWaypointMutationVariables,\r\n T\r\n >({\r\n name: 'RemoveWaypoint',\r\n mutation: gql`\r\n mutation RemoveWaypointMutation($command: RemoveWaypoint!) {\r\n removeWaypoint(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public splitUnitOriginAndPickupWaypoints(\r\n command: SplitUnitOriginAndPickupWaypoints,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SplitUnitOriginAndPickupWaypoints',\r\n SplitUnitOriginAndPickupWaypointsMutation,\r\n SplitUnitOriginAndPickupWaypointsMutationVariables,\r\n T\r\n >({\r\n name: 'SplitUnitOriginAndPickupWaypoints',\r\n mutation: gql`\r\n mutation SplitUnitOriginAndPickupWaypointsMutation(\r\n $command: SplitUnitOriginAndPickupWaypoints!\r\n ) {\r\n splitUnitOriginAndPickupWaypoints(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public splitUnitPostAndDropoffWaypoints(\r\n command: SplitUnitPostAndDropoffWaypoints,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SplitUnitPostAndDropoffWaypoints',\r\n SplitUnitPostAndDropoffWaypointsMutation,\r\n SplitUnitPostAndDropoffWaypointsMutationVariables,\r\n T\r\n >({\r\n name: 'SplitUnitPostAndDropoffWaypoints',\r\n mutation: gql`\r\n mutation SplitUnitPostAndDropoffWaypointsMutation(\r\n $command: SplitUnitPostAndDropoffWaypoints!\r\n ) {\r\n splitUnitPostAndDropoffWaypoints(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public swapWaypoint(\r\n command: SwapWaypoint,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SwapWaypoint',\r\n SwapWaypointMutation,\r\n SwapWaypointMutationVariables,\r\n T\r\n >({\r\n name: 'SwapWaypoint',\r\n mutation: gql`\r\n mutation SwapWaypointMutation($command: SwapWaypoint!) {\r\n swapWaypoint(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTrip(\r\n command: UpdateTrip,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'UpdateTrip', UpdateTripMutation, UpdateTripMutationVariables, T>(\r\n {\r\n name: 'UpdateTrip',\r\n mutation: gql`\r\n mutation UpdateTripMutation($command: UpdateTrip!) {\r\n updateTrip(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n // UnitActivationRules\r\n public addUnitActivationRule(\r\n command: AddUnitActivationRule,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddUnitActivationRule',\r\n AddUnitActivationRuleMutation,\r\n AddUnitActivationRuleMutationVariables,\r\n T\r\n >({\r\n name: 'AddUnitActivationRule',\r\n mutation: gql`\r\n mutation AddUnitActivationRuleMutation($command: AddUnitActivationRule!) {\r\n addUnitActivationRule(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteUnitActivationRule(\r\n command: DeleteUnitActivationRule,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteUnitActivationRule',\r\n DeleteUnitActivationRuleMutation,\r\n DeleteUnitActivationRuleMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteUnitActivationRule',\r\n mutation: gql`\r\n mutation DeleteUnitActivationRuleMutation($command: DeleteUnitActivationRule!) {\r\n deleteUnitActivationRule(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateUnitActivationRule(\r\n command: UpdateUnitActivationRule,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateUnitActivationRule',\r\n UpdateUnitActivationRuleMutation,\r\n UpdateUnitActivationRuleMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateUnitActivationRule',\r\n mutation: gql`\r\n mutation UpdateUnitActivationRuleMutation($command: UpdateUnitActivationRule!) {\r\n updateUnitActivationRule(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // UnitEMSystemMappings\r\n public addUnitEMSystemMapping(\r\n command: AddUnitEMSystemMapping,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddUnitEMSystemMapping',\r\n AddUnitEMSystemMappingMutation,\r\n AddUnitEMSystemMappingMutationVariables,\r\n T\r\n >({\r\n name: 'AddUnitEMSystemMapping',\r\n mutation: gql`\r\n mutation AddUnitEMSystemMappingMutation($command: AddUnitEMSystemMapping!) {\r\n addUnitEMSystemMapping(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteUnitEMSystemMapping(\r\n command: DeleteUnitEMSystemMapping,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteUnitEMSystemMapping',\r\n DeleteUnitEMSystemMappingMutation,\r\n DeleteUnitEMSystemMappingMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteUnitEMSystemMapping',\r\n mutation: gql`\r\n mutation DeleteUnitEMSystemMappingMutation($command: DeleteUnitEMSystemMapping!) {\r\n deleteUnitEMSystemMapping(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateUnitEMSystemMapping(\r\n command: UpdateUnitEMSystemMapping,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateUnitEMSystemMapping',\r\n UpdateUnitEMSystemMappingMutation,\r\n UpdateUnitEMSystemMappingMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateUnitEMSystemMapping',\r\n mutation: gql`\r\n mutation UpdateUnitEMSystemMappingMutation($command: UpdateUnitEMSystemMapping!) {\r\n updateUnitEMSystemMapping(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // UnitNotes\r\n public addUnitNote(\r\n command: AddUnitNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddUnitNote',\r\n AddUnitNoteMutation,\r\n AddUnitNoteMutationVariables,\r\n T\r\n >({\r\n name: 'AddUnitNote',\r\n mutation: gql`\r\n mutation AddUnitNoteMutation($command: AddUnitNote!) {\r\n addUnitNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteUnitNote(\r\n command: DeleteUnitNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteUnitNote',\r\n DeleteUnitNoteMutation,\r\n DeleteUnitNoteMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteUnitNote',\r\n mutation: gql`\r\n mutation DeleteUnitNoteMutation($command: DeleteUnitNote!) {\r\n deleteUnitNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateUnitNote(\r\n command: UpdateUnitNote,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateUnitNote',\r\n UpdateUnitNoteMutation,\r\n UpdateUnitNoteMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateUnitNote',\r\n mutation: gql`\r\n mutation UpdateUnitNoteMutation($command: UpdateUnitNote!) {\r\n updateUnitNote(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // UnitPositions\r\n public addUnitPosition(\r\n command: AddUnitPosition,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddUnitPosition',\r\n AddUnitPositionMutation,\r\n AddUnitPositionMutationVariables,\r\n T\r\n >({\r\n name: 'AddUnitPosition',\r\n mutation: gql`\r\n mutation AddUnitPositionMutation($command: AddUnitPosition!) {\r\n addUnitPosition(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteUnitPosition(\r\n command: DeleteUnitPosition,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteUnitPosition',\r\n DeleteUnitPositionMutation,\r\n DeleteUnitPositionMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteUnitPosition',\r\n mutation: gql`\r\n mutation DeleteUnitPositionMutation($command: DeleteUnitPosition!) {\r\n deleteUnitPosition(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public removeTeamMemberFromUnitPosition(\r\n command: RemoveTeamMemberFromUnitPosition,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'RemoveTeamMemberFromUnitPosition',\r\n RemoveTeamMemberFromUnitPositionMutation,\r\n RemoveTeamMemberFromUnitPositionMutationVariables,\r\n T\r\n >({\r\n name: 'RemoveTeamMemberFromUnitPosition',\r\n mutation: gql`\r\n mutation RemoveTeamMemberFromUnitPositionMutation(\r\n $command: RemoveTeamMemberFromUnitPosition!\r\n ) {\r\n removeTeamMemberFromUnitPosition(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateUnitPosition(\r\n command: UpdateUnitPosition,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateUnitPosition',\r\n UpdateUnitPositionMutation,\r\n UpdateUnitPositionMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateUnitPosition',\r\n mutation: gql`\r\n mutation UpdateUnitPositionMutation($command: UpdateUnitPosition!) {\r\n updateUnitPosition(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public upsertUnitPosition(\r\n command: UpsertUnitPosition,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpsertUnitPosition',\r\n UpsertUnitPositionMutation,\r\n UpsertUnitPositionMutationVariables,\r\n T\r\n >({\r\n name: 'UpsertUnitPosition',\r\n mutation: gql`\r\n mutation UpsertUnitPositionMutation($command: UpsertUnitPosition!) {\r\n upsertUnitPosition(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Units\r\n public addUnit(\r\n command: AddUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddUnit', AddUnitMutation, AddUnitMutationVariables, T>({\r\n name: 'AddUnit',\r\n mutation: gql`\r\n mutation AddUnitMutation($command: AddUnit!) {\r\n addUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public assignVehicle(\r\n command: AssignVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AssignVehicle',\r\n AssignVehicleMutation,\r\n AssignVehicleMutationVariables,\r\n T\r\n >({\r\n name: 'AssignVehicle',\r\n mutation: gql`\r\n mutation AssignVehicleMutation($command: AssignVehicle!) {\r\n assignVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public delayUnit(\r\n command: DelayUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'DelayUnit', DelayUnitMutation, DelayUnitMutationVariables, T>({\r\n name: 'DelayUnit',\r\n mutation: gql`\r\n mutation DelayUnitMutation($command: DelayUnit!) {\r\n delayUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteUnit(\r\n command: DeleteUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'DeleteUnit', DeleteUnitMutation, DeleteUnitMutationVariables, T>(\r\n {\r\n name: 'DeleteUnit',\r\n mutation: gql`\r\n mutation DeleteUnitMutation($command: DeleteUnit!) {\r\n deleteUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public disableUnit(\r\n command: DisableUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DisableUnit',\r\n DisableUnitMutation,\r\n DisableUnitMutationVariables,\r\n T\r\n >({\r\n name: 'DisableUnit',\r\n mutation: gql`\r\n mutation DisableUnitMutation($command: DisableUnit!) {\r\n disableUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public enableUnit(\r\n command: EnableUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'EnableUnit', EnableUnitMutation, EnableUnitMutationVariables, T>(\r\n {\r\n name: 'EnableUnit',\r\n mutation: gql`\r\n mutation EnableUnitMutation($command: EnableUnit!) {\r\n enableUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public ensureThirdPartyUnit(\r\n command: EnsureThirdPartyUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'EnsureThirdPartyUnit',\r\n EnsureThirdPartyUnitMutation,\r\n EnsureThirdPartyUnitMutationVariables,\r\n T\r\n >({\r\n name: 'EnsureThirdPartyUnit',\r\n mutation: gql`\r\n mutation EnsureThirdPartyUnitMutation($command: EnsureThirdPartyUnit!) {\r\n ensureThirdPartyUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public ensureThirdPartyUnits(\r\n command: EnsureThirdPartyUnits,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'EnsureThirdPartyUnits',\r\n EnsureThirdPartyUnitsMutation,\r\n EnsureThirdPartyUnitsMutationVariables,\r\n T\r\n >({\r\n name: 'EnsureThirdPartyUnits',\r\n mutation: gql`\r\n mutation EnsureThirdPartyUnitsMutation($command: EnsureThirdPartyUnits!) {\r\n ensureThirdPartyUnits(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public hideUnit(\r\n command: HideUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'HideUnit', HideUnitMutation, HideUnitMutationVariables, T>({\r\n name: 'HideUnit',\r\n mutation: gql`\r\n mutation HideUnitMutation($command: HideUnit!) {\r\n hideUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public markAsPilotUpdated(\r\n command: MarkAsPilotUpdated,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'MarkAsPilotUpdated',\r\n MarkAsPilotUpdatedMutation,\r\n MarkAsPilotUpdatedMutationVariables,\r\n T\r\n >({\r\n name: 'MarkAsPilotUpdated',\r\n mutation: gql`\r\n mutation MarkAsPilotUpdatedMutation($command: MarkAsPilotUpdated!) {\r\n markAsPilotUpdated(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public reassignVehicle(\r\n command: ReassignVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ReassignVehicle',\r\n ReassignVehicleMutation,\r\n ReassignVehicleMutationVariables,\r\n T\r\n >({\r\n name: 'ReassignVehicle',\r\n mutation: gql`\r\n mutation ReassignVehicleMutation($command: ReassignVehicle!) {\r\n reassignVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public removeDelayFromUnit(\r\n command: RemoveDelayFromUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'RemoveDelayFromUnit',\r\n RemoveDelayFromUnitMutation,\r\n RemoveDelayFromUnitMutationVariables,\r\n T\r\n >({\r\n name: 'RemoveDelayFromUnit',\r\n mutation: gql`\r\n mutation RemoveDelayFromUnitMutation($command: RemoveDelayFromUnit!) {\r\n removeDelayFromUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public removeVehicleFromUnit(\r\n command: RemoveVehicleFromUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'RemoveVehicleFromUnit',\r\n RemoveVehicleFromUnitMutation,\r\n RemoveVehicleFromUnitMutationVariables,\r\n T\r\n >({\r\n name: 'RemoveVehicleFromUnit',\r\n mutation: gql`\r\n mutation RemoveVehicleFromUnitMutation($command: RemoveVehicleFromUnit!) {\r\n removeVehicleFromUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public returnUnitToService(\r\n command: ReturnUnitToService,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ReturnUnitToService',\r\n ReturnUnitToServiceMutation,\r\n ReturnUnitToServiceMutationVariables,\r\n T\r\n >({\r\n name: 'ReturnUnitToService',\r\n mutation: gql`\r\n mutation ReturnUnitToServiceMutation($command: ReturnUnitToService!) {\r\n returnUnitToService(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public swapUnitVehicles(\r\n command: SwapUnitVehicles,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SwapUnitVehicles',\r\n SwapUnitVehiclesMutation,\r\n SwapUnitVehiclesMutationVariables,\r\n T\r\n >({\r\n name: 'SwapUnitVehicles',\r\n mutation: gql`\r\n mutation SwapUnitVehiclesMutation($command: SwapUnitVehicles!) {\r\n swapUnitVehicles(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public takeUnitOutOfService(\r\n command: TakeUnitOutOfService,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'TakeUnitOutOfService',\r\n TakeUnitOutOfServiceMutation,\r\n TakeUnitOutOfServiceMutationVariables,\r\n T\r\n >({\r\n name: 'TakeUnitOutOfService',\r\n mutation: gql`\r\n mutation TakeUnitOutOfServiceMutation($command: TakeUnitOutOfService!) {\r\n takeUnitOutOfService(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public teleportUnit(\r\n command: TeleportUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'TeleportUnit',\r\n TeleportUnitMutation,\r\n TeleportUnitMutationVariables,\r\n T\r\n >({\r\n name: 'TeleportUnit',\r\n mutation: gql`\r\n mutation TeleportUnitMutation($command: TeleportUnit!) {\r\n teleportUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public unhideUnit(\r\n command: UnhideUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'UnhideUnit', UnhideUnitMutation, UnhideUnitMutationVariables, T>(\r\n {\r\n name: 'UnhideUnit',\r\n mutation: gql`\r\n mutation UnhideUnitMutation($command: UnhideUnit!) {\r\n unhideUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public updatePilotUnitConfiguration(\r\n command: UpdatePilotUnitConfiguration,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdatePilotUnitConfiguration',\r\n UpdatePilotUnitConfigurationMutation,\r\n UpdatePilotUnitConfigurationMutationVariables,\r\n T\r\n >({\r\n name: 'UpdatePilotUnitConfiguration',\r\n mutation: gql`\r\n mutation UpdatePilotUnitConfigurationMutation($command: UpdatePilotUnitConfiguration!) {\r\n updatePilotUnitConfiguration(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateUnit(\r\n command: UpdateUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'UpdateUnit', UpdateUnitMutation, UpdateUnitMutationVariables, T>(\r\n {\r\n name: 'UpdateUnit',\r\n mutation: gql`\r\n mutation UpdateUnitMutation($command: UpdateUnit!) {\r\n updateUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public updateUnitConfiguration(\r\n command: UpdateUnitConfiguration,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateUnitConfiguration',\r\n UpdateUnitConfigurationMutation,\r\n UpdateUnitConfigurationMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateUnitConfiguration',\r\n mutation: gql`\r\n mutation UpdateUnitConfigurationMutation($command: UpdateUnitConfiguration!) {\r\n updateUnitConfiguration(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // UnitShifts\r\n public addUnitShift(\r\n command: AddUnitShift,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddUnitShift',\r\n AddUnitShiftMutation,\r\n AddUnitShiftMutationVariables,\r\n T\r\n >({\r\n name: 'AddUnitShift',\r\n mutation: gql`\r\n mutation AddUnitShiftMutation($command: AddUnitShift!) {\r\n addUnitShift(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteUnitShift(\r\n command: DeleteUnitShift,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteUnitShift',\r\n DeleteUnitShiftMutation,\r\n DeleteUnitShiftMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteUnitShift',\r\n mutation: gql`\r\n mutation DeleteUnitShiftMutation($command: DeleteUnitShift!) {\r\n deleteUnitShift(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateUnitShift(\r\n command: UpdateUnitShift,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateUnitShift',\r\n UpdateUnitShiftMutation,\r\n UpdateUnitShiftMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateUnitShift',\r\n mutation: gql`\r\n mutation UpdateUnitShiftMutation($command: UpdateUnitShift!) {\r\n updateUnitShift(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // VehicleDispositions\r\n public addVehicleDisposition(\r\n command: AddVehicleDisposition,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddVehicleDisposition',\r\n AddVehicleDispositionMutation,\r\n AddVehicleDispositionMutationVariables,\r\n T\r\n >({\r\n name: 'AddVehicleDisposition',\r\n mutation: gql`\r\n mutation AddVehicleDispositionMutation($command: AddVehicleDisposition!) {\r\n addVehicleDisposition(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteVehicleDisposition(\r\n command: DeleteVehicleDisposition,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteVehicleDisposition',\r\n DeleteVehicleDispositionMutation,\r\n DeleteVehicleDispositionMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteVehicleDisposition',\r\n mutation: gql`\r\n mutation DeleteVehicleDispositionMutation($command: DeleteVehicleDisposition!) {\r\n deleteVehicleDisposition(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateVehicleDisposition(\r\n command: UpdateVehicleDisposition,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateVehicleDisposition',\r\n UpdateVehicleDispositionMutation,\r\n UpdateVehicleDispositionMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateVehicleDisposition',\r\n mutation: gql`\r\n mutation UpdateVehicleDispositionMutation($command: UpdateVehicleDisposition!) {\r\n updateVehicleDisposition(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // VehiclePositionSummaries\r\n // Waypoints\r\n public addWaypoint(\r\n command: AddWaypoint,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddWaypoint',\r\n AddWaypointMutation,\r\n AddWaypointMutationVariables,\r\n T\r\n >({\r\n name: 'AddWaypoint',\r\n mutation: gql`\r\n mutation AddWaypointMutation($command: AddWaypoint!) {\r\n addWaypoint(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteWaypoint(\r\n command: DeleteWaypoint,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteWaypoint',\r\n DeleteWaypointMutation,\r\n DeleteWaypointMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteWaypoint',\r\n mutation: gql`\r\n mutation DeleteWaypointMutation($command: DeleteWaypoint!) {\r\n deleteWaypoint(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateWaypoint(\r\n command: UpdateWaypoint,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateWaypoint',\r\n UpdateWaypointMutation,\r\n UpdateWaypointMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateWaypoint',\r\n mutation: gql`\r\n mutation UpdateWaypointMutation($command: UpdateWaypoint!) {\r\n updateWaypoint(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // WebhookEventBodies\r\n // WebhookSubscriptionEvents\r\n // WebhookSubscriptions\r\n // WebOrderLogs\r\n public acknowledgeWebOrderLog(\r\n command: AcknowledgeWebOrderLog,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AcknowledgeWebOrderLog',\r\n AcknowledgeWebOrderLogMutation,\r\n AcknowledgeWebOrderLogMutationVariables,\r\n T\r\n >({\r\n name: 'AcknowledgeWebOrderLog',\r\n mutation: gql`\r\n mutation AcknowledgeWebOrderLogMutation($command: AcknowledgeWebOrderLog!) {\r\n acknowledgeWebOrderLog(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addWebOrderLog(\r\n command: AddWebOrderLog,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddWebOrderLog',\r\n AddWebOrderLogMutation,\r\n AddWebOrderLogMutationVariables,\r\n T\r\n >({\r\n name: 'AddWebOrderLog',\r\n mutation: gql`\r\n mutation AddWebOrderLogMutation($command: AddWebOrderLog!) {\r\n addWebOrderLog(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n}\r\n","/* eslint-disable @typescript-eslint/no-non-null-assertion */\r\n/* eslint-disable import/order */\r\n\r\nimport gql from 'graphql-tag';\r\nimport { Observable } from 'rxjs';\r\nimport { CommandResult } from 'src/util/graphql/command-result';\r\nimport {\r\n AddAccessibleItem,\r\n AddAccessibleItemMutation,\r\n AddAccessibleItemMutationVariables,\r\n DeleteAccessibleItem,\r\n DeleteAccessibleItemMutation,\r\n DeleteAccessibleItemMutationVariables,\r\n UpdateAccessibleItem,\r\n UpdateAccessibleItemMutation,\r\n UpdateAccessibleItemMutationVariables,\r\n AddAgency,\r\n AddAgencyMutation,\r\n AddAgencyMutationVariables,\r\n DeleteAgency,\r\n DeleteAgencyMutation,\r\n DeleteAgencyMutationVariables,\r\n UpdateAgency,\r\n UpdateAgencyMutation,\r\n UpdateAgencyMutationVariables,\r\n AddAgencyLocation,\r\n AddAgencyLocationMutation,\r\n AddAgencyLocationMutationVariables,\r\n DeleteAgencyLocation,\r\n DeleteAgencyLocationMutation,\r\n DeleteAgencyLocationMutationVariables,\r\n UpdateAgencyLocation,\r\n UpdateAgencyLocationMutation,\r\n UpdateAgencyLocationMutationVariables,\r\n AddAirport,\r\n AddAirportMutation,\r\n AddAirportMutationVariables,\r\n DeleteAirport,\r\n DeleteAirportMutation,\r\n DeleteAirportMutationVariables,\r\n UpdateAirport,\r\n UpdateAirportMutation,\r\n UpdateAirportMutationVariables,\r\n AddBaseControlZone,\r\n AddBaseControlZoneMutation,\r\n AddBaseControlZoneMutationVariables,\r\n DeleteBaseControlZone,\r\n DeleteBaseControlZoneMutation,\r\n DeleteBaseControlZoneMutationVariables,\r\n UpdateBaseControlZone,\r\n UpdateBaseControlZoneMutation,\r\n UpdateBaseControlZoneMutationVariables,\r\n AddBaseMedicalControlContact,\r\n AddBaseMedicalControlContactMutation,\r\n AddBaseMedicalControlContactMutationVariables,\r\n DeleteBaseMedicalControlContact,\r\n DeleteBaseMedicalControlContactMutation,\r\n DeleteBaseMedicalControlContactMutationVariables,\r\n UpdateBaseMedicalControlContact,\r\n UpdateBaseMedicalControlContactMutation,\r\n UpdateBaseMedicalControlContactMutationVariables,\r\n AddBase,\r\n AddBaseMutation,\r\n AddBaseMutationVariables,\r\n DeleteBase,\r\n DeleteBaseMutation,\r\n DeleteBaseMutationVariables,\r\n UpdateBase,\r\n UpdateBaseMutation,\r\n UpdateBaseMutationVariables,\r\n AddCapability,\r\n AddCapabilityMutation,\r\n AddCapabilityMutationVariables,\r\n DeleteCapability,\r\n DeleteCapabilityMutation,\r\n DeleteCapabilityMutationVariables,\r\n UpdateCapability,\r\n UpdateCapabilityMutation,\r\n UpdateCapabilityMutationVariables,\r\n AddCommunicationCenter,\r\n AddCommunicationCenterMutation,\r\n AddCommunicationCenterMutationVariables,\r\n DeleteCommunicationCenter,\r\n DeleteCommunicationCenterMutation,\r\n DeleteCommunicationCenterMutationVariables,\r\n UpdateCommunicationCenter,\r\n UpdateCommunicationCenterMutation,\r\n UpdateCommunicationCenterMutationVariables,\r\n AddCommunicationCenterTransportOfferOption,\r\n AddCommunicationCenterTransportOfferOptionMutation,\r\n AddCommunicationCenterTransportOfferOptionMutationVariables,\r\n DeleteCommunicationCenterTransportOfferOption,\r\n DeleteCommunicationCenterTransportOfferOptionMutation,\r\n DeleteCommunicationCenterTransportOfferOptionMutationVariables,\r\n UpdateCommunicationCenterTransportOfferOption,\r\n UpdateCommunicationCenterTransportOfferOptionMutation,\r\n UpdateCommunicationCenterTransportOfferOptionMutationVariables,\r\n AddCompany,\r\n AddCompanyMutation,\r\n AddCompanyMutationVariables,\r\n DeleteCompany,\r\n DeleteCompanyMutation,\r\n DeleteCompanyMutationVariables,\r\n UpdateCompany,\r\n UpdateCompanyMutation,\r\n UpdateCompanyMutationVariables,\r\n AddCompleteFlightInstance,\r\n AddCompleteFlightInstanceMutation,\r\n AddCompleteFlightInstanceMutationVariables,\r\n DeleteCompleteFlightInstance,\r\n DeleteCompleteFlightInstanceMutation,\r\n DeleteCompleteFlightInstanceMutationVariables,\r\n UpdateCompleteFlightInstance,\r\n UpdateCompleteFlightInstanceMutation,\r\n UpdateCompleteFlightInstanceMutationVariables,\r\n AddControlZone,\r\n AddControlZoneMutation,\r\n AddControlZoneMutationVariables,\r\n DeleteControlZone,\r\n DeleteControlZoneMutation,\r\n DeleteControlZoneMutationVariables,\r\n UpdateControlZone,\r\n UpdateControlZoneMutation,\r\n UpdateControlZoneMutationVariables,\r\n AddDepartment,\r\n AddDepartmentMutation,\r\n AddDepartmentMutationVariables,\r\n DeleteDepartment,\r\n DeleteDepartmentMutation,\r\n DeleteDepartmentMutationVariables,\r\n UpdateDepartment,\r\n UpdateDepartmentMutation,\r\n UpdateDepartmentMutationVariables,\r\n AddEntityCapability,\r\n AddEntityCapabilityMutation,\r\n AddEntityCapabilityMutationVariables,\r\n DeleteEntityCapability,\r\n DeleteEntityCapabilityMutation,\r\n DeleteEntityCapabilityMutationVariables,\r\n AddExternalReference,\r\n AddExternalReferenceMutation,\r\n AddExternalReferenceMutationVariables,\r\n DeleteExternalReference,\r\n DeleteExternalReferenceMutation,\r\n DeleteExternalReferenceMutationVariables,\r\n UndeleteExternalReference,\r\n UndeleteExternalReferenceMutation,\r\n UndeleteExternalReferenceMutationVariables,\r\n UpdateExternalReference,\r\n UpdateExternalReferenceMutation,\r\n UpdateExternalReferenceMutationVariables,\r\n AddFbo,\r\n AddFboMutation,\r\n AddFboMutationVariables,\r\n DeleteFbo,\r\n DeleteFboMutation,\r\n DeleteFboMutationVariables,\r\n UpdateFbo,\r\n UpdateFboMutation,\r\n UpdateFboMutationVariables,\r\n AddFuelTank,\r\n AddFuelTankMutation,\r\n AddFuelTankMutationVariables,\r\n DeleteFuelTank,\r\n DeleteFuelTankMutation,\r\n DeleteFuelTankMutationVariables,\r\n UpdateFuelTank,\r\n UpdateFuelTankMutation,\r\n UpdateFuelTankMutationVariables,\r\n AddLocation,\r\n AddLocationMutation,\r\n AddLocationMutationVariables,\r\n DeleteLocation,\r\n DeleteLocationMutation,\r\n DeleteLocationMutationVariables,\r\n RefreshLocationsFromGMRWorkday,\r\n RefreshLocationsFromGMRWorkdayMutation,\r\n RefreshLocationsFromGMRWorkdayMutationVariables,\r\n UpdateLocation,\r\n UpdateLocationMutation,\r\n UpdateLocationMutationVariables,\r\n AddMedicalFacility,\r\n AddMedicalFacilityMutation,\r\n AddMedicalFacilityMutationVariables,\r\n ApproveMedicalFacility,\r\n ApproveMedicalFacilityMutation,\r\n ApproveMedicalFacilityMutationVariables,\r\n ArchiveMedicalFacility,\r\n ArchiveMedicalFacilityMutation,\r\n ArchiveMedicalFacilityMutationVariables,\r\n ClearPendingArchiveMedicalFacility,\r\n ClearPendingArchiveMedicalFacilityMutation,\r\n ClearPendingArchiveMedicalFacilityMutationVariables,\r\n DeleteMedicalFacility,\r\n DeleteMedicalFacilityMutation,\r\n DeleteMedicalFacilityMutationVariables,\r\n MergeMedicalFacilities,\r\n MergeMedicalFacilitiesMutation,\r\n MergeMedicalFacilitiesMutationVariables,\r\n SubmitMedicalFacilityForApproval,\r\n SubmitMedicalFacilityForApprovalMutation,\r\n SubmitMedicalFacilityForApprovalMutationVariables,\r\n UnmarkMedicalFacilityAsDuplicate,\r\n UnmarkMedicalFacilityAsDuplicateMutation,\r\n UnmarkMedicalFacilityAsDuplicateMutationVariables,\r\n UpdateMedicalFacility,\r\n UpdateMedicalFacilityMutation,\r\n UpdateMedicalFacilityMutationVariables,\r\n AddMedicalFacilityContact,\r\n AddMedicalFacilityContactMutation,\r\n AddMedicalFacilityContactMutationVariables,\r\n DeleteMedicalFacilityContact,\r\n DeleteMedicalFacilityContactMutation,\r\n DeleteMedicalFacilityContactMutationVariables,\r\n UpdateMedicalFacilityContact,\r\n UpdateMedicalFacilityContactMutation,\r\n UpdateMedicalFacilityContactMutationVariables,\r\n AddMedicalFacilityPhysician,\r\n AddMedicalFacilityPhysicianMutation,\r\n AddMedicalFacilityPhysicianMutationVariables,\r\n DeleteMedicalFacilityPhysician,\r\n DeleteMedicalFacilityPhysicianMutation,\r\n DeleteMedicalFacilityPhysicianMutationVariables,\r\n UpdateMedicalFacilityPhysician,\r\n UpdateMedicalFacilityPhysicianMutation,\r\n UpdateMedicalFacilityPhysicianMutationVariables,\r\n AddMedicalFacilityUnit,\r\n AddMedicalFacilityUnitMutation,\r\n AddMedicalFacilityUnitMutationVariables,\r\n DeleteMedicalFacilityUnit,\r\n DeleteMedicalFacilityUnitMutation,\r\n DeleteMedicalFacilityUnitMutationVariables,\r\n UpdateMedicalFacilityUnit,\r\n UpdateMedicalFacilityUnitMutation,\r\n UpdateMedicalFacilityUnitMutationVariables,\r\n AddOutOfComplianceCrewMember,\r\n AddOutOfComplianceCrewMemberMutation,\r\n AddOutOfComplianceCrewMemberMutationVariables,\r\n AddPerson,\r\n AddPersonMutation,\r\n AddPersonMutationVariables,\r\n AuthorizeClientSyncAccess,\r\n AuthorizeClientSyncAccessMutation,\r\n AuthorizeClientSyncAccessMutationVariables,\r\n DeletePerson,\r\n DeletePersonMutation,\r\n DeletePersonMutationVariables,\r\n RefreshPeopleFromGMRWorkdayV2,\r\n RefreshPeopleFromGMRWorkdayV2Mutation,\r\n RefreshPeopleFromGMRWorkdayV2MutationVariables,\r\n RemoveCrewMemberFromOutOfCompliance,\r\n RemoveCrewMemberFromOutOfComplianceMutation,\r\n RemoveCrewMemberFromOutOfComplianceMutationVariables,\r\n ResetPassword,\r\n ResetPasswordMutation,\r\n ResetPasswordMutationVariables,\r\n SetRoleScope,\r\n SetRoleScopeMutation,\r\n SetRoleScopeMutationVariables,\r\n UpdateOutOfComplianceCrewMember,\r\n UpdateOutOfComplianceCrewMemberMutation,\r\n UpdateOutOfComplianceCrewMemberMutationVariables,\r\n UpdatePerson,\r\n UpdatePersonMutation,\r\n UpdatePersonMutationVariables,\r\n UpdateTcsRealtimeTrackingTab,\r\n UpdateTcsRealtimeTrackingTabMutation,\r\n UpdateTcsRealtimeTrackingTabMutationVariables,\r\n AddPhysician,\r\n AddPhysicianMutation,\r\n AddPhysicianMutationVariables,\r\n DeletePhysician,\r\n DeletePhysicianMutation,\r\n DeletePhysicianMutationVariables,\r\n UpdatePhysician,\r\n UpdatePhysicianMutation,\r\n UpdatePhysicianMutationVariables,\r\n AddProgramBase,\r\n AddProgramBaseMutation,\r\n AddProgramBaseMutationVariables,\r\n DeleteProgramBase,\r\n DeleteProgramBaseMutation,\r\n DeleteProgramBaseMutationVariables,\r\n UpdateProgramBase,\r\n UpdateProgramBaseMutation,\r\n UpdateProgramBaseMutationVariables,\r\n AddProgram,\r\n AddProgramMutation,\r\n AddProgramMutationVariables,\r\n DeleteProgram,\r\n DeleteProgramMutation,\r\n DeleteProgramMutationVariables,\r\n UpdateProgram,\r\n UpdateProgramMutation,\r\n UpdateProgramMutationVariables,\r\n AddRegionBase,\r\n AddRegionBaseMutation,\r\n AddRegionBaseMutationVariables,\r\n DeleteRegionBase,\r\n DeleteRegionBaseMutation,\r\n DeleteRegionBaseMutationVariables,\r\n UpdateRegionBase,\r\n UpdateRegionBaseMutation,\r\n UpdateRegionBaseMutationVariables,\r\n AddRegionGroup,\r\n AddRegionGroupMutation,\r\n AddRegionGroupMutationVariables,\r\n DeleteRegionGroup,\r\n DeleteRegionGroupMutation,\r\n DeleteRegionGroupMutationVariables,\r\n UpdateRegionGroup,\r\n UpdateRegionGroupMutation,\r\n UpdateRegionGroupMutationVariables,\r\n AddRegion,\r\n AddRegionMutation,\r\n AddRegionMutationVariables,\r\n AddTransferCenterRegion,\r\n AddTransferCenterRegionMutation,\r\n AddTransferCenterRegionMutationVariables,\r\n DeleteRegion,\r\n DeleteRegionMutation,\r\n DeleteRegionMutationVariables,\r\n UpdateRegion,\r\n UpdateRegionMutation,\r\n UpdateRegionMutationVariables,\r\n AddExistingSpecialtyTeamMember,\r\n AddExistingSpecialtyTeamMemberMutation,\r\n AddExistingSpecialtyTeamMemberMutationVariables,\r\n AddSpecialtyTeamMember,\r\n AddSpecialtyTeamMemberMutation,\r\n AddSpecialtyTeamMemberMutationVariables,\r\n DeleteSpecialtyTeamMember,\r\n DeleteSpecialtyTeamMemberMutation,\r\n DeleteSpecialtyTeamMemberMutationVariables,\r\n UpdateSpecialtyTeamMember,\r\n UpdateSpecialtyTeamMemberMutation,\r\n UpdateSpecialtyTeamMemberMutationVariables,\r\n AddSpecialtyTeam,\r\n AddSpecialtyTeamMutation,\r\n AddSpecialtyTeamMutationVariables,\r\n DeleteSpecialtyTeam,\r\n DeleteSpecialtyTeamMutation,\r\n DeleteSpecialtyTeamMutationVariables,\r\n UpdateSpecialtyTeam,\r\n UpdateSpecialtyTeamMutation,\r\n UpdateSpecialtyTeamMutationVariables,\r\n AddSupportRequest,\r\n AddSupportRequestMutation,\r\n AddSupportRequestMutationVariables,\r\n DeleteSupportRequest,\r\n DeleteSupportRequestMutation,\r\n DeleteSupportRequestMutationVariables,\r\n SubmitSupportRequest,\r\n SubmitSupportRequestMutation,\r\n SubmitSupportRequestMutationVariables,\r\n UpdateSupportRequest,\r\n UpdateSupportRequestMutation,\r\n UpdateSupportRequestMutationVariables,\r\n AddTimezone,\r\n AddTimezoneMutation,\r\n AddTimezoneMutationVariables,\r\n DeleteTimezone,\r\n DeleteTimezoneMutation,\r\n DeleteTimezoneMutationVariables,\r\n UpdateTimezone,\r\n UpdateTimezoneMutation,\r\n UpdateTimezoneMutationVariables,\r\n AddTransferCenter,\r\n AddTransferCenterMutation,\r\n AddTransferCenterMutationVariables,\r\n DeleteTransferCenter,\r\n DeleteTransferCenterMutation,\r\n DeleteTransferCenterMutationVariables,\r\n UpdateTransferCenter,\r\n UpdateTransferCenterMutation,\r\n UpdateTransferCenterMutationVariables,\r\n AddPreApprovedTrmUser,\r\n AddPreApprovedTrmUserMutation,\r\n AddPreApprovedTrmUserMutationVariables,\r\n ApproveTrmUser,\r\n ApproveTrmUserMutation,\r\n ApproveTrmUserMutationVariables,\r\n DeactivateTrmUser,\r\n DeactivateTrmUserMutation,\r\n DeactivateTrmUserMutationVariables,\r\n DeleteTrmUser,\r\n DeleteTrmUserMutation,\r\n DeleteTrmUserMutationVariables,\r\n DenyTrmUser,\r\n DenyTrmUserMutation,\r\n DenyTrmUserMutationVariables,\r\n RegisterTrmUser,\r\n RegisterTrmUserMutation,\r\n RegisterTrmUserMutationVariables,\r\n UpdateTrmUser,\r\n UpdateTrmUserMutation,\r\n UpdateTrmUserMutationVariables,\r\n AddVehicleConfigurationClass,\r\n AddVehicleConfigurationClassMutation,\r\n AddVehicleConfigurationClassMutationVariables,\r\n DeleteVehicleConfigurationClass,\r\n DeleteVehicleConfigurationClassMutation,\r\n DeleteVehicleConfigurationClassMutationVariables,\r\n UpdateVehicleConfigurationClass,\r\n UpdateVehicleConfigurationClassMutation,\r\n UpdateVehicleConfigurationClassMutationVariables,\r\n AddVehicleControlZone,\r\n AddVehicleControlZoneMutation,\r\n AddVehicleControlZoneMutationVariables,\r\n DeleteVehicleControlZone,\r\n DeleteVehicleControlZoneMutation,\r\n DeleteVehicleControlZoneMutationVariables,\r\n UpdateVehicleControlZone,\r\n UpdateVehicleControlZoneMutation,\r\n UpdateVehicleControlZoneMutationVariables,\r\n AddVehicleMaintenance,\r\n AddVehicleMaintenanceMutation,\r\n AddVehicleMaintenanceMutationVariables,\r\n DeleteVehicleMaintenance,\r\n DeleteVehicleMaintenanceMutation,\r\n DeleteVehicleMaintenanceMutationVariables,\r\n UpdateVehicleMaintenance,\r\n UpdateVehicleMaintenanceMutation,\r\n UpdateVehicleMaintenanceMutationVariables,\r\n UpsertVehicleMaintenanceParameters,\r\n UpsertVehicleMaintenanceParametersMutation,\r\n UpsertVehicleMaintenanceParametersMutationVariables,\r\n AddVehicleMake,\r\n AddVehicleMakeMutation,\r\n AddVehicleMakeMutationVariables,\r\n DeleteVehicleMake,\r\n DeleteVehicleMakeMutation,\r\n DeleteVehicleMakeMutationVariables,\r\n UpdateVehicleMake,\r\n UpdateVehicleMakeMutation,\r\n UpdateVehicleMakeMutationVariables,\r\n AddVehicleModel,\r\n AddVehicleModelMutation,\r\n AddVehicleModelMutationVariables,\r\n DeleteVehicleModel,\r\n DeleteVehicleModelMutation,\r\n DeleteVehicleModelMutationVariables,\r\n UpdateVehicleModel,\r\n UpdateVehicleModelMutation,\r\n UpdateVehicleModelMutationVariables,\r\n AddVehicle,\r\n AddVehicleMutation,\r\n AddVehicleMutationVariables,\r\n ChangeVehicleFlightLogProcess,\r\n ChangeVehicleFlightLogProcessMutation,\r\n ChangeVehicleFlightLogProcessMutationVariables,\r\n DeleteVehicle,\r\n DeleteVehicleMutation,\r\n DeleteVehicleMutationVariables,\r\n EnsureThirdPartyVehicleAndUnit,\r\n EnsureThirdPartyVehicleAndUnitMutation,\r\n EnsureThirdPartyVehicleAndUnitMutationVariables,\r\n HideVehicle,\r\n HideVehicleMutation,\r\n HideVehicleMutationVariables,\r\n SetVehicleControlZoneId,\r\n SetVehicleControlZoneIdMutation,\r\n SetVehicleControlZoneIdMutationVariables,\r\n UndeleteVehicle,\r\n UndeleteVehicleMutation,\r\n UndeleteVehicleMutationVariables,\r\n UnhideVehicle,\r\n UnhideVehicleMutation,\r\n UnhideVehicleMutationVariables,\r\n UpdateVehicle,\r\n UpdateVehicleMutation,\r\n UpdateVehicleMutationVariables,\r\n AddVehicleStateInspection,\r\n AddVehicleStateInspectionMutation,\r\n AddVehicleStateInspectionMutationVariables,\r\n DeleteVehicleStateInspection,\r\n DeleteVehicleStateInspectionMutation,\r\n DeleteVehicleStateInspectionMutationVariables,\r\n UpdateVehicleStateInspection,\r\n UpdateVehicleStateInspectionMutation,\r\n UpdateVehicleStateInspectionMutationVariables,\r\n} from '../graphql-operation-types.generated';\r\nimport {\r\n GraphqlMutationExecutorService,\r\n GraphQLMutationExecutionOptions,\r\n} from '../graphql-mutation-executor.service';\r\n\r\nexport enum OrgCommand {\r\n AddAccessibleItem = 'AddAccessibleItem',\r\n DeleteAccessibleItem = 'DeleteAccessibleItem',\r\n UpdateAccessibleItem = 'UpdateAccessibleItem',\r\n AddAgency = 'AddAgency',\r\n DeleteAgency = 'DeleteAgency',\r\n UpdateAgency = 'UpdateAgency',\r\n AddAgencyLocation = 'AddAgencyLocation',\r\n DeleteAgencyLocation = 'DeleteAgencyLocation',\r\n UpdateAgencyLocation = 'UpdateAgencyLocation',\r\n AddAirport = 'AddAirport',\r\n DeleteAirport = 'DeleteAirport',\r\n UpdateAirport = 'UpdateAirport',\r\n AddBaseControlZone = 'AddBaseControlZone',\r\n DeleteBaseControlZone = 'DeleteBaseControlZone',\r\n UpdateBaseControlZone = 'UpdateBaseControlZone',\r\n AddBaseMedicalControlContact = 'AddBaseMedicalControlContact',\r\n DeleteBaseMedicalControlContact = 'DeleteBaseMedicalControlContact',\r\n UpdateBaseMedicalControlContact = 'UpdateBaseMedicalControlContact',\r\n AddBase = 'AddBase',\r\n DeleteBase = 'DeleteBase',\r\n UpdateBase = 'UpdateBase',\r\n AddCapability = 'AddCapability',\r\n DeleteCapability = 'DeleteCapability',\r\n UpdateCapability = 'UpdateCapability',\r\n AddCommunicationCenter = 'AddCommunicationCenter',\r\n DeleteCommunicationCenter = 'DeleteCommunicationCenter',\r\n UpdateCommunicationCenter = 'UpdateCommunicationCenter',\r\n AddCommunicationCenterTransportOfferOption = 'AddCommunicationCenterTransportOfferOption',\r\n DeleteCommunicationCenterTransportOfferOption = 'DeleteCommunicationCenterTransportOfferOption',\r\n UpdateCommunicationCenterTransportOfferOption = 'UpdateCommunicationCenterTransportOfferOption',\r\n AddCompany = 'AddCompany',\r\n DeleteCompany = 'DeleteCompany',\r\n UpdateCompany = 'UpdateCompany',\r\n AddCompleteFlightInstance = 'AddCompleteFlightInstance',\r\n DeleteCompleteFlightInstance = 'DeleteCompleteFlightInstance',\r\n UpdateCompleteFlightInstance = 'UpdateCompleteFlightInstance',\r\n AddControlZone = 'AddControlZone',\r\n DeleteControlZone = 'DeleteControlZone',\r\n UpdateControlZone = 'UpdateControlZone',\r\n AddDepartment = 'AddDepartment',\r\n DeleteDepartment = 'DeleteDepartment',\r\n UpdateDepartment = 'UpdateDepartment',\r\n AddEntityCapability = 'AddEntityCapability',\r\n DeleteEntityCapability = 'DeleteEntityCapability',\r\n AddExternalReference = 'AddExternalReference',\r\n DeleteExternalReference = 'DeleteExternalReference',\r\n UndeleteExternalReference = 'UndeleteExternalReference',\r\n UpdateExternalReference = 'UpdateExternalReference',\r\n AddFbo = 'AddFbo',\r\n DeleteFbo = 'DeleteFbo',\r\n UpdateFbo = 'UpdateFbo',\r\n AddFuelTank = 'AddFuelTank',\r\n DeleteFuelTank = 'DeleteFuelTank',\r\n UpdateFuelTank = 'UpdateFuelTank',\r\n AddLocation = 'AddLocation',\r\n DeleteLocation = 'DeleteLocation',\r\n RefreshLocationsFromGMRWorkday = 'RefreshLocationsFromGMRWorkday',\r\n UpdateLocation = 'UpdateLocation',\r\n AddMedicalFacility = 'AddMedicalFacility',\r\n ApproveMedicalFacility = 'ApproveMedicalFacility',\r\n ArchiveMedicalFacility = 'ArchiveMedicalFacility',\r\n ClearPendingArchiveMedicalFacility = 'ClearPendingArchiveMedicalFacility',\r\n DeleteMedicalFacility = 'DeleteMedicalFacility',\r\n MergeMedicalFacilities = 'MergeMedicalFacilities',\r\n SubmitMedicalFacilityForApproval = 'SubmitMedicalFacilityForApproval',\r\n UnmarkMedicalFacilityAsDuplicate = 'UnmarkMedicalFacilityAsDuplicate',\r\n UpdateMedicalFacility = 'UpdateMedicalFacility',\r\n AddMedicalFacilityContact = 'AddMedicalFacilityContact',\r\n DeleteMedicalFacilityContact = 'DeleteMedicalFacilityContact',\r\n UpdateMedicalFacilityContact = 'UpdateMedicalFacilityContact',\r\n AddMedicalFacilityPhysician = 'AddMedicalFacilityPhysician',\r\n DeleteMedicalFacilityPhysician = 'DeleteMedicalFacilityPhysician',\r\n UpdateMedicalFacilityPhysician = 'UpdateMedicalFacilityPhysician',\r\n AddMedicalFacilityUnit = 'AddMedicalFacilityUnit',\r\n DeleteMedicalFacilityUnit = 'DeleteMedicalFacilityUnit',\r\n UpdateMedicalFacilityUnit = 'UpdateMedicalFacilityUnit',\r\n AddOutOfComplianceCrewMember = 'AddOutOfComplianceCrewMember',\r\n AddPerson = 'AddPerson',\r\n AuthorizeClientSyncAccess = 'AuthorizeClientSyncAccess',\r\n DeletePerson = 'DeletePerson',\r\n RefreshPeopleFromGMRWorkdayV2 = 'RefreshPeopleFromGMRWorkdayV2',\r\n RemoveCrewMemberFromOutOfCompliance = 'RemoveCrewMemberFromOutOfCompliance',\r\n ResetPassword = 'ResetPassword',\r\n SetRoleScope = 'SetRoleScope',\r\n UpdateOutOfComplianceCrewMember = 'UpdateOutOfComplianceCrewMember',\r\n UpdatePerson = 'UpdatePerson',\r\n UpdateTcsRealtimeTrackingTab = 'UpdateTcsRealtimeTrackingTab',\r\n AddPhysician = 'AddPhysician',\r\n DeletePhysician = 'DeletePhysician',\r\n UpdatePhysician = 'UpdatePhysician',\r\n AddProgramBase = 'AddProgramBase',\r\n DeleteProgramBase = 'DeleteProgramBase',\r\n UpdateProgramBase = 'UpdateProgramBase',\r\n AddProgram = 'AddProgram',\r\n DeleteProgram = 'DeleteProgram',\r\n UpdateProgram = 'UpdateProgram',\r\n AddRegionBase = 'AddRegionBase',\r\n DeleteRegionBase = 'DeleteRegionBase',\r\n UpdateRegionBase = 'UpdateRegionBase',\r\n AddRegionGroup = 'AddRegionGroup',\r\n DeleteRegionGroup = 'DeleteRegionGroup',\r\n UpdateRegionGroup = 'UpdateRegionGroup',\r\n AddRegion = 'AddRegion',\r\n AddTransferCenterRegion = 'AddTransferCenterRegion',\r\n DeleteRegion = 'DeleteRegion',\r\n UpdateRegion = 'UpdateRegion',\r\n AddExistingSpecialtyTeamMember = 'AddExistingSpecialtyTeamMember',\r\n AddSpecialtyTeamMember = 'AddSpecialtyTeamMember',\r\n DeleteSpecialtyTeamMember = 'DeleteSpecialtyTeamMember',\r\n UpdateSpecialtyTeamMember = 'UpdateSpecialtyTeamMember',\r\n AddSpecialtyTeam = 'AddSpecialtyTeam',\r\n DeleteSpecialtyTeam = 'DeleteSpecialtyTeam',\r\n UpdateSpecialtyTeam = 'UpdateSpecialtyTeam',\r\n AddSupportRequest = 'AddSupportRequest',\r\n DeleteSupportRequest = 'DeleteSupportRequest',\r\n SubmitSupportRequest = 'SubmitSupportRequest',\r\n UpdateSupportRequest = 'UpdateSupportRequest',\r\n AddTimezone = 'AddTimezone',\r\n DeleteTimezone = 'DeleteTimezone',\r\n UpdateTimezone = 'UpdateTimezone',\r\n AddTransferCenter = 'AddTransferCenter',\r\n DeleteTransferCenter = 'DeleteTransferCenter',\r\n UpdateTransferCenter = 'UpdateTransferCenter',\r\n AddPreApprovedTrmUser = 'AddPreApprovedTrmUser',\r\n ApproveTrmUser = 'ApproveTrmUser',\r\n DeactivateTrmUser = 'DeactivateTrmUser',\r\n DeleteTrmUser = 'DeleteTrmUser',\r\n DenyTrmUser = 'DenyTrmUser',\r\n RegisterTrmUser = 'RegisterTrmUser',\r\n UpdateTrmUser = 'UpdateTrmUser',\r\n AddVehicleConfigurationClass = 'AddVehicleConfigurationClass',\r\n DeleteVehicleConfigurationClass = 'DeleteVehicleConfigurationClass',\r\n UpdateVehicleConfigurationClass = 'UpdateVehicleConfigurationClass',\r\n AddVehicleControlZone = 'AddVehicleControlZone',\r\n DeleteVehicleControlZone = 'DeleteVehicleControlZone',\r\n UpdateVehicleControlZone = 'UpdateVehicleControlZone',\r\n AddVehicleMaintenance = 'AddVehicleMaintenance',\r\n DeleteVehicleMaintenance = 'DeleteVehicleMaintenance',\r\n UpdateVehicleMaintenance = 'UpdateVehicleMaintenance',\r\n UpsertVehicleMaintenanceParameters = 'UpsertVehicleMaintenanceParameters',\r\n AddVehicleMake = 'AddVehicleMake',\r\n DeleteVehicleMake = 'DeleteVehicleMake',\r\n UpdateVehicleMake = 'UpdateVehicleMake',\r\n AddVehicleModel = 'AddVehicleModel',\r\n DeleteVehicleModel = 'DeleteVehicleModel',\r\n UpdateVehicleModel = 'UpdateVehicleModel',\r\n AddVehicle = 'AddVehicle',\r\n ChangeVehicleFlightLogProcess = 'ChangeVehicleFlightLogProcess',\r\n DeleteVehicle = 'DeleteVehicle',\r\n EnsureThirdPartyVehicleAndUnit = 'EnsureThirdPartyVehicleAndUnit',\r\n HideVehicle = 'HideVehicle',\r\n SetVehicleControlZoneId = 'SetVehicleControlZoneId',\r\n UndeleteVehicle = 'UndeleteVehicle',\r\n UnhideVehicle = 'UnhideVehicle',\r\n UpdateVehicle = 'UpdateVehicle',\r\n AddVehicleStateInspection = 'AddVehicleStateInspection',\r\n DeleteVehicleStateInspection = 'DeleteVehicleStateInspection',\r\n UpdateVehicleStateInspection = 'UpdateVehicleStateInspection',\r\n}\r\n\r\nexport enum OrgFeature {\r\n AccessibleItems = 'AccessibleItems',\r\n Agencies = 'Agencies',\r\n AgencyLocations = 'AgencyLocations',\r\n Airports = 'Airports',\r\n BaseControlZones = 'BaseControlZones',\r\n BaseMedicalControlContacts = 'BaseMedicalControlContacts',\r\n Bases = 'Bases',\r\n Capabilities = 'Capabilities',\r\n CommunicationCenters = 'CommunicationCenters',\r\n CommunicationCenterTransportOfferOptions = 'CommunicationCenterTransportOfferOptions',\r\n Companies = 'Companies',\r\n CompleteFlightInstances = 'CompleteFlightInstances',\r\n ControlZones = 'ControlZones',\r\n Departments = 'Departments',\r\n EntityCapabilities = 'EntityCapabilities',\r\n ExternalReferences = 'ExternalReferences',\r\n Fbos = 'Fbos',\r\n FuelTanks = 'FuelTanks',\r\n Locations = 'Locations',\r\n MedicalFacilities = 'MedicalFacilities',\r\n MedicalFacilityContacts = 'MedicalFacilityContacts',\r\n MedicalFacilityPhysicians = 'MedicalFacilityPhysicians',\r\n MedicalFacilityUnits = 'MedicalFacilityUnits',\r\n People = 'People',\r\n Physicians = 'Physicians',\r\n ProgramBases = 'ProgramBases',\r\n Programs = 'Programs',\r\n RegionBases = 'RegionBases',\r\n RegionGroups = 'RegionGroups',\r\n Regions = 'Regions',\r\n SpecialtyTeamMembers = 'SpecialtyTeamMembers',\r\n SpecialtyTeams = 'SpecialtyTeams',\r\n SupportRequests = 'SupportRequests',\r\n Timezones = 'Timezones',\r\n TransferCenters = 'TransferCenters',\r\n TrmUsers = 'TrmUsers',\r\n VehicleConfigurationClasses = 'VehicleConfigurationClasses',\r\n VehicleControlZones = 'VehicleControlZones',\r\n VehicleMaintenances = 'VehicleMaintenances',\r\n VehicleMakes = 'VehicleMakes',\r\n VehicleModels = 'VehicleModels',\r\n Vehicles = 'Vehicles',\r\n VehicleStateInspections = 'VehicleStateInspections',\r\n}\r\n\r\nexport type AccessibleItemsFeatureCommand =\r\n | OrgCommand.AddAccessibleItem\r\n | OrgCommand.DeleteAccessibleItem\r\n | OrgCommand.UpdateAccessibleItem;\r\nexport type AgenciesFeatureCommand =\r\n | OrgCommand.AddAgency\r\n | OrgCommand.DeleteAgency\r\n | OrgCommand.UpdateAgency;\r\nexport type AgencyLocationsFeatureCommand =\r\n | OrgCommand.AddAgencyLocation\r\n | OrgCommand.DeleteAgencyLocation\r\n | OrgCommand.UpdateAgencyLocation;\r\nexport type AirportsFeatureCommand =\r\n | OrgCommand.AddAirport\r\n | OrgCommand.DeleteAirport\r\n | OrgCommand.UpdateAirport;\r\nexport type BaseControlZonesFeatureCommand =\r\n | OrgCommand.AddBaseControlZone\r\n | OrgCommand.DeleteBaseControlZone\r\n | OrgCommand.UpdateBaseControlZone;\r\nexport type BaseMedicalControlContactsFeatureCommand =\r\n | OrgCommand.AddBaseMedicalControlContact\r\n | OrgCommand.DeleteBaseMedicalControlContact\r\n | OrgCommand.UpdateBaseMedicalControlContact;\r\nexport type BasesFeatureCommand =\r\n | OrgCommand.AddBase\r\n | OrgCommand.DeleteBase\r\n | OrgCommand.UpdateBase;\r\nexport type CapabilitiesFeatureCommand =\r\n | OrgCommand.AddCapability\r\n | OrgCommand.DeleteCapability\r\n | OrgCommand.UpdateCapability;\r\nexport type CommunicationCentersFeatureCommand =\r\n | OrgCommand.AddCommunicationCenter\r\n | OrgCommand.DeleteCommunicationCenter\r\n | OrgCommand.UpdateCommunicationCenter;\r\nexport type CommunicationCenterTransportOfferOptionsFeatureCommand =\r\n | OrgCommand.AddCommunicationCenterTransportOfferOption\r\n | OrgCommand.DeleteCommunicationCenterTransportOfferOption\r\n | OrgCommand.UpdateCommunicationCenterTransportOfferOption;\r\nexport type CompaniesFeatureCommand =\r\n | OrgCommand.AddCompany\r\n | OrgCommand.DeleteCompany\r\n | OrgCommand.UpdateCompany;\r\nexport type CompleteFlightInstancesFeatureCommand =\r\n | OrgCommand.AddCompleteFlightInstance\r\n | OrgCommand.DeleteCompleteFlightInstance\r\n | OrgCommand.UpdateCompleteFlightInstance;\r\nexport type ControlZonesFeatureCommand =\r\n | OrgCommand.AddControlZone\r\n | OrgCommand.DeleteControlZone\r\n | OrgCommand.UpdateControlZone;\r\nexport type DepartmentsFeatureCommand =\r\n | OrgCommand.AddDepartment\r\n | OrgCommand.DeleteDepartment\r\n | OrgCommand.UpdateDepartment;\r\nexport type EntityCapabilitiesFeatureCommand =\r\n | OrgCommand.AddEntityCapability\r\n | OrgCommand.DeleteEntityCapability;\r\nexport type ExternalReferencesFeatureCommand =\r\n | OrgCommand.AddExternalReference\r\n | OrgCommand.DeleteExternalReference\r\n | OrgCommand.UndeleteExternalReference\r\n | OrgCommand.UpdateExternalReference;\r\nexport type FbosFeatureCommand = OrgCommand.AddFbo | OrgCommand.DeleteFbo | OrgCommand.UpdateFbo;\r\nexport type FuelTanksFeatureCommand =\r\n | OrgCommand.AddFuelTank\r\n | OrgCommand.DeleteFuelTank\r\n | OrgCommand.UpdateFuelTank;\r\nexport type LocationsFeatureCommand =\r\n | OrgCommand.AddLocation\r\n | OrgCommand.DeleteLocation\r\n | OrgCommand.RefreshLocationsFromGMRWorkday\r\n | OrgCommand.UpdateLocation;\r\nexport type MedicalFacilitiesFeatureCommand =\r\n | OrgCommand.AddMedicalFacility\r\n | OrgCommand.ApproveMedicalFacility\r\n | OrgCommand.ArchiveMedicalFacility\r\n | OrgCommand.ClearPendingArchiveMedicalFacility\r\n | OrgCommand.DeleteMedicalFacility\r\n | OrgCommand.MergeMedicalFacilities\r\n | OrgCommand.SubmitMedicalFacilityForApproval\r\n | OrgCommand.UnmarkMedicalFacilityAsDuplicate\r\n | OrgCommand.UpdateMedicalFacility;\r\nexport type MedicalFacilityContactsFeatureCommand =\r\n | OrgCommand.AddMedicalFacilityContact\r\n | OrgCommand.DeleteMedicalFacilityContact\r\n | OrgCommand.UpdateMedicalFacilityContact;\r\nexport type MedicalFacilityPhysiciansFeatureCommand =\r\n | OrgCommand.AddMedicalFacilityPhysician\r\n | OrgCommand.DeleteMedicalFacilityPhysician\r\n | OrgCommand.UpdateMedicalFacilityPhysician;\r\nexport type MedicalFacilityUnitsFeatureCommand =\r\n | OrgCommand.AddMedicalFacilityUnit\r\n | OrgCommand.DeleteMedicalFacilityUnit\r\n | OrgCommand.UpdateMedicalFacilityUnit;\r\nexport type PeopleFeatureCommand =\r\n | OrgCommand.AddOutOfComplianceCrewMember\r\n | OrgCommand.AddPerson\r\n | OrgCommand.AuthorizeClientSyncAccess\r\n | OrgCommand.DeletePerson\r\n | OrgCommand.RefreshPeopleFromGMRWorkdayV2\r\n | OrgCommand.RemoveCrewMemberFromOutOfCompliance\r\n | OrgCommand.ResetPassword\r\n | OrgCommand.SetRoleScope\r\n | OrgCommand.UpdateOutOfComplianceCrewMember\r\n | OrgCommand.UpdatePerson\r\n | OrgCommand.UpdateTcsRealtimeTrackingTab;\r\nexport type PhysiciansFeatureCommand =\r\n | OrgCommand.AddPhysician\r\n | OrgCommand.DeletePhysician\r\n | OrgCommand.UpdatePhysician;\r\nexport type ProgramBasesFeatureCommand =\r\n | OrgCommand.AddProgramBase\r\n | OrgCommand.DeleteProgramBase\r\n | OrgCommand.UpdateProgramBase;\r\nexport type ProgramsFeatureCommand =\r\n | OrgCommand.AddProgram\r\n | OrgCommand.DeleteProgram\r\n | OrgCommand.UpdateProgram;\r\nexport type RegionBasesFeatureCommand =\r\n | OrgCommand.AddRegionBase\r\n | OrgCommand.DeleteRegionBase\r\n | OrgCommand.UpdateRegionBase;\r\nexport type RegionGroupsFeatureCommand =\r\n | OrgCommand.AddRegionGroup\r\n | OrgCommand.DeleteRegionGroup\r\n | OrgCommand.UpdateRegionGroup;\r\nexport type RegionsFeatureCommand =\r\n | OrgCommand.AddRegion\r\n | OrgCommand.AddTransferCenterRegion\r\n | OrgCommand.DeleteRegion\r\n | OrgCommand.UpdateRegion;\r\nexport type SpecialtyTeamMembersFeatureCommand =\r\n | OrgCommand.AddExistingSpecialtyTeamMember\r\n | OrgCommand.AddSpecialtyTeamMember\r\n | OrgCommand.DeleteSpecialtyTeamMember\r\n | OrgCommand.UpdateSpecialtyTeamMember;\r\nexport type SpecialtyTeamsFeatureCommand =\r\n | OrgCommand.AddSpecialtyTeam\r\n | OrgCommand.DeleteSpecialtyTeam\r\n | OrgCommand.UpdateSpecialtyTeam;\r\nexport type SupportRequestsFeatureCommand =\r\n | OrgCommand.AddSupportRequest\r\n | OrgCommand.DeleteSupportRequest\r\n | OrgCommand.SubmitSupportRequest\r\n | OrgCommand.UpdateSupportRequest;\r\nexport type TimezonesFeatureCommand =\r\n | OrgCommand.AddTimezone\r\n | OrgCommand.DeleteTimezone\r\n | OrgCommand.UpdateTimezone;\r\nexport type TransferCentersFeatureCommand =\r\n | OrgCommand.AddTransferCenter\r\n | OrgCommand.DeleteTransferCenter\r\n | OrgCommand.UpdateTransferCenter;\r\nexport type TrmUsersFeatureCommand =\r\n | OrgCommand.AddPreApprovedTrmUser\r\n | OrgCommand.ApproveTrmUser\r\n | OrgCommand.DeactivateTrmUser\r\n | OrgCommand.DeleteTrmUser\r\n | OrgCommand.DenyTrmUser\r\n | OrgCommand.RegisterTrmUser\r\n | OrgCommand.UpdateTrmUser;\r\nexport type VehicleConfigurationClassesFeatureCommand =\r\n | OrgCommand.AddVehicleConfigurationClass\r\n | OrgCommand.DeleteVehicleConfigurationClass\r\n | OrgCommand.UpdateVehicleConfigurationClass;\r\nexport type VehicleControlZonesFeatureCommand =\r\n | OrgCommand.AddVehicleControlZone\r\n | OrgCommand.DeleteVehicleControlZone\r\n | OrgCommand.UpdateVehicleControlZone;\r\nexport type VehicleMaintenancesFeatureCommand =\r\n | OrgCommand.AddVehicleMaintenance\r\n | OrgCommand.DeleteVehicleMaintenance\r\n | OrgCommand.UpdateVehicleMaintenance\r\n | OrgCommand.UpsertVehicleMaintenanceParameters;\r\nexport type VehicleMakesFeatureCommand =\r\n | OrgCommand.AddVehicleMake\r\n | OrgCommand.DeleteVehicleMake\r\n | OrgCommand.UpdateVehicleMake;\r\nexport type VehicleModelsFeatureCommand =\r\n | OrgCommand.AddVehicleModel\r\n | OrgCommand.DeleteVehicleModel\r\n | OrgCommand.UpdateVehicleModel;\r\nexport type VehiclesFeatureCommand =\r\n | OrgCommand.AddVehicle\r\n | OrgCommand.ChangeVehicleFlightLogProcess\r\n | OrgCommand.DeleteVehicle\r\n | OrgCommand.EnsureThirdPartyVehicleAndUnit\r\n | OrgCommand.HideVehicle\r\n | OrgCommand.SetVehicleControlZoneId\r\n | OrgCommand.UndeleteVehicle\r\n | OrgCommand.UnhideVehicle\r\n | OrgCommand.UpdateVehicle;\r\nexport type VehicleStateInspectionsFeatureCommand =\r\n | OrgCommand.AddVehicleStateInspection\r\n | OrgCommand.DeleteVehicleStateInspection\r\n | OrgCommand.UpdateVehicleStateInspection;\r\n\r\nexport const OrgFeatures: { [key in OrgFeature]: OrgCommand[] } = {\r\n AccessibleItems: [\r\n OrgCommand.AddAccessibleItem,\r\n OrgCommand.DeleteAccessibleItem,\r\n OrgCommand.UpdateAccessibleItem,\r\n ],\r\n Agencies: [OrgCommand.AddAgency, OrgCommand.DeleteAgency, OrgCommand.UpdateAgency],\r\n AgencyLocations: [\r\n OrgCommand.AddAgencyLocation,\r\n OrgCommand.DeleteAgencyLocation,\r\n OrgCommand.UpdateAgencyLocation,\r\n ],\r\n Airports: [OrgCommand.AddAirport, OrgCommand.DeleteAirport, OrgCommand.UpdateAirport],\r\n BaseControlZones: [\r\n OrgCommand.AddBaseControlZone,\r\n OrgCommand.DeleteBaseControlZone,\r\n OrgCommand.UpdateBaseControlZone,\r\n ],\r\n BaseMedicalControlContacts: [\r\n OrgCommand.AddBaseMedicalControlContact,\r\n OrgCommand.DeleteBaseMedicalControlContact,\r\n OrgCommand.UpdateBaseMedicalControlContact,\r\n ],\r\n Bases: [OrgCommand.AddBase, OrgCommand.DeleteBase, OrgCommand.UpdateBase],\r\n Capabilities: [\r\n OrgCommand.AddCapability,\r\n OrgCommand.DeleteCapability,\r\n OrgCommand.UpdateCapability,\r\n ],\r\n CommunicationCenters: [\r\n OrgCommand.AddCommunicationCenter,\r\n OrgCommand.DeleteCommunicationCenter,\r\n OrgCommand.UpdateCommunicationCenter,\r\n ],\r\n CommunicationCenterTransportOfferOptions: [\r\n OrgCommand.AddCommunicationCenterTransportOfferOption,\r\n OrgCommand.DeleteCommunicationCenterTransportOfferOption,\r\n OrgCommand.UpdateCommunicationCenterTransportOfferOption,\r\n ],\r\n Companies: [OrgCommand.AddCompany, OrgCommand.DeleteCompany, OrgCommand.UpdateCompany],\r\n CompleteFlightInstances: [\r\n OrgCommand.AddCompleteFlightInstance,\r\n OrgCommand.DeleteCompleteFlightInstance,\r\n OrgCommand.UpdateCompleteFlightInstance,\r\n ],\r\n ControlZones: [\r\n OrgCommand.AddControlZone,\r\n OrgCommand.DeleteControlZone,\r\n OrgCommand.UpdateControlZone,\r\n ],\r\n Departments: [OrgCommand.AddDepartment, OrgCommand.DeleteDepartment, OrgCommand.UpdateDepartment],\r\n EntityCapabilities: [OrgCommand.AddEntityCapability, OrgCommand.DeleteEntityCapability],\r\n ExternalReferences: [\r\n OrgCommand.AddExternalReference,\r\n OrgCommand.DeleteExternalReference,\r\n OrgCommand.UndeleteExternalReference,\r\n OrgCommand.UpdateExternalReference,\r\n ],\r\n Fbos: [OrgCommand.AddFbo, OrgCommand.DeleteFbo, OrgCommand.UpdateFbo],\r\n FuelTanks: [OrgCommand.AddFuelTank, OrgCommand.DeleteFuelTank, OrgCommand.UpdateFuelTank],\r\n Locations: [\r\n OrgCommand.AddLocation,\r\n OrgCommand.DeleteLocation,\r\n OrgCommand.RefreshLocationsFromGMRWorkday,\r\n OrgCommand.UpdateLocation,\r\n ],\r\n MedicalFacilities: [\r\n OrgCommand.AddMedicalFacility,\r\n OrgCommand.ApproveMedicalFacility,\r\n OrgCommand.ArchiveMedicalFacility,\r\n OrgCommand.ClearPendingArchiveMedicalFacility,\r\n OrgCommand.DeleteMedicalFacility,\r\n OrgCommand.MergeMedicalFacilities,\r\n OrgCommand.SubmitMedicalFacilityForApproval,\r\n OrgCommand.UnmarkMedicalFacilityAsDuplicate,\r\n OrgCommand.UpdateMedicalFacility,\r\n ],\r\n MedicalFacilityContacts: [\r\n OrgCommand.AddMedicalFacilityContact,\r\n OrgCommand.DeleteMedicalFacilityContact,\r\n OrgCommand.UpdateMedicalFacilityContact,\r\n ],\r\n MedicalFacilityPhysicians: [\r\n OrgCommand.AddMedicalFacilityPhysician,\r\n OrgCommand.DeleteMedicalFacilityPhysician,\r\n OrgCommand.UpdateMedicalFacilityPhysician,\r\n ],\r\n MedicalFacilityUnits: [\r\n OrgCommand.AddMedicalFacilityUnit,\r\n OrgCommand.DeleteMedicalFacilityUnit,\r\n OrgCommand.UpdateMedicalFacilityUnit,\r\n ],\r\n People: [\r\n OrgCommand.AddOutOfComplianceCrewMember,\r\n OrgCommand.AddPerson,\r\n OrgCommand.AuthorizeClientSyncAccess,\r\n OrgCommand.DeletePerson,\r\n OrgCommand.RefreshPeopleFromGMRWorkdayV2,\r\n OrgCommand.RemoveCrewMemberFromOutOfCompliance,\r\n OrgCommand.ResetPassword,\r\n OrgCommand.SetRoleScope,\r\n OrgCommand.UpdateOutOfComplianceCrewMember,\r\n OrgCommand.UpdatePerson,\r\n OrgCommand.UpdateTcsRealtimeTrackingTab,\r\n ],\r\n Physicians: [OrgCommand.AddPhysician, OrgCommand.DeletePhysician, OrgCommand.UpdatePhysician],\r\n ProgramBases: [\r\n OrgCommand.AddProgramBase,\r\n OrgCommand.DeleteProgramBase,\r\n OrgCommand.UpdateProgramBase,\r\n ],\r\n Programs: [OrgCommand.AddProgram, OrgCommand.DeleteProgram, OrgCommand.UpdateProgram],\r\n RegionBases: [OrgCommand.AddRegionBase, OrgCommand.DeleteRegionBase, OrgCommand.UpdateRegionBase],\r\n RegionGroups: [\r\n OrgCommand.AddRegionGroup,\r\n OrgCommand.DeleteRegionGroup,\r\n OrgCommand.UpdateRegionGroup,\r\n ],\r\n Regions: [\r\n OrgCommand.AddRegion,\r\n OrgCommand.AddTransferCenterRegion,\r\n OrgCommand.DeleteRegion,\r\n OrgCommand.UpdateRegion,\r\n ],\r\n SpecialtyTeamMembers: [\r\n OrgCommand.AddExistingSpecialtyTeamMember,\r\n OrgCommand.AddSpecialtyTeamMember,\r\n OrgCommand.DeleteSpecialtyTeamMember,\r\n OrgCommand.UpdateSpecialtyTeamMember,\r\n ],\r\n SpecialtyTeams: [\r\n OrgCommand.AddSpecialtyTeam,\r\n OrgCommand.DeleteSpecialtyTeam,\r\n OrgCommand.UpdateSpecialtyTeam,\r\n ],\r\n SupportRequests: [\r\n OrgCommand.AddSupportRequest,\r\n OrgCommand.DeleteSupportRequest,\r\n OrgCommand.SubmitSupportRequest,\r\n OrgCommand.UpdateSupportRequest,\r\n ],\r\n Timezones: [OrgCommand.AddTimezone, OrgCommand.DeleteTimezone, OrgCommand.UpdateTimezone],\r\n TransferCenters: [\r\n OrgCommand.AddTransferCenter,\r\n OrgCommand.DeleteTransferCenter,\r\n OrgCommand.UpdateTransferCenter,\r\n ],\r\n TrmUsers: [\r\n OrgCommand.AddPreApprovedTrmUser,\r\n OrgCommand.ApproveTrmUser,\r\n OrgCommand.DeactivateTrmUser,\r\n OrgCommand.DeleteTrmUser,\r\n OrgCommand.DenyTrmUser,\r\n OrgCommand.RegisterTrmUser,\r\n OrgCommand.UpdateTrmUser,\r\n ],\r\n VehicleConfigurationClasses: [\r\n OrgCommand.AddVehicleConfigurationClass,\r\n OrgCommand.DeleteVehicleConfigurationClass,\r\n OrgCommand.UpdateVehicleConfigurationClass,\r\n ],\r\n VehicleControlZones: [\r\n OrgCommand.AddVehicleControlZone,\r\n OrgCommand.DeleteVehicleControlZone,\r\n OrgCommand.UpdateVehicleControlZone,\r\n ],\r\n VehicleMaintenances: [\r\n OrgCommand.AddVehicleMaintenance,\r\n OrgCommand.DeleteVehicleMaintenance,\r\n OrgCommand.UpdateVehicleMaintenance,\r\n OrgCommand.UpsertVehicleMaintenanceParameters,\r\n ],\r\n VehicleMakes: [\r\n OrgCommand.AddVehicleMake,\r\n OrgCommand.DeleteVehicleMake,\r\n OrgCommand.UpdateVehicleMake,\r\n ],\r\n VehicleModels: [\r\n OrgCommand.AddVehicleModel,\r\n OrgCommand.DeleteVehicleModel,\r\n OrgCommand.UpdateVehicleModel,\r\n ],\r\n Vehicles: [\r\n OrgCommand.AddVehicle,\r\n OrgCommand.ChangeVehicleFlightLogProcess,\r\n OrgCommand.DeleteVehicle,\r\n OrgCommand.EnsureThirdPartyVehicleAndUnit,\r\n OrgCommand.HideVehicle,\r\n OrgCommand.SetVehicleControlZoneId,\r\n OrgCommand.UndeleteVehicle,\r\n OrgCommand.UnhideVehicle,\r\n OrgCommand.UpdateVehicle,\r\n ],\r\n VehicleStateInspections: [\r\n OrgCommand.AddVehicleStateInspection,\r\n OrgCommand.DeleteVehicleStateInspection,\r\n OrgCommand.UpdateVehicleStateInspection,\r\n ],\r\n};\r\n\r\nexport class OrganizationMutations {\r\n constructor(private _executor: GraphqlMutationExecutorService) {}\r\n\r\n // AccessibleItems\r\n public addAccessibleItem(\r\n command: AddAccessibleItem,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddAccessibleItem',\r\n AddAccessibleItemMutation,\r\n AddAccessibleItemMutationVariables,\r\n T\r\n >({\r\n name: 'AddAccessibleItem',\r\n mutation: gql`\r\n mutation AddAccessibleItemMutation($command: AddAccessibleItem!) {\r\n addAccessibleItem(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteAccessibleItem(\r\n command: DeleteAccessibleItem,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteAccessibleItem',\r\n DeleteAccessibleItemMutation,\r\n DeleteAccessibleItemMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteAccessibleItem',\r\n mutation: gql`\r\n mutation DeleteAccessibleItemMutation($command: DeleteAccessibleItem!) {\r\n deleteAccessibleItem(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateAccessibleItem(\r\n command: UpdateAccessibleItem,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateAccessibleItem',\r\n UpdateAccessibleItemMutation,\r\n UpdateAccessibleItemMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateAccessibleItem',\r\n mutation: gql`\r\n mutation UpdateAccessibleItemMutation($command: UpdateAccessibleItem!) {\r\n updateAccessibleItem(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Agencies\r\n public addAgency(\r\n command: AddAgency,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddAgency', AddAgencyMutation, AddAgencyMutationVariables, T>({\r\n name: 'AddAgency',\r\n mutation: gql`\r\n mutation AddAgencyMutation($command: AddAgency!) {\r\n addAgency(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteAgency(\r\n command: DeleteAgency,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteAgency',\r\n DeleteAgencyMutation,\r\n DeleteAgencyMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteAgency',\r\n mutation: gql`\r\n mutation DeleteAgencyMutation($command: DeleteAgency!) {\r\n deleteAgency(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateAgency(\r\n command: UpdateAgency,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateAgency',\r\n UpdateAgencyMutation,\r\n UpdateAgencyMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateAgency',\r\n mutation: gql`\r\n mutation UpdateAgencyMutation($command: UpdateAgency!) {\r\n updateAgency(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // AgencyLocations\r\n public addAgencyLocation(\r\n command: AddAgencyLocation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddAgencyLocation',\r\n AddAgencyLocationMutation,\r\n AddAgencyLocationMutationVariables,\r\n T\r\n >({\r\n name: 'AddAgencyLocation',\r\n mutation: gql`\r\n mutation AddAgencyLocationMutation($command: AddAgencyLocation!) {\r\n addAgencyLocation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteAgencyLocation(\r\n command: DeleteAgencyLocation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteAgencyLocation',\r\n DeleteAgencyLocationMutation,\r\n DeleteAgencyLocationMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteAgencyLocation',\r\n mutation: gql`\r\n mutation DeleteAgencyLocationMutation($command: DeleteAgencyLocation!) {\r\n deleteAgencyLocation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateAgencyLocation(\r\n command: UpdateAgencyLocation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateAgencyLocation',\r\n UpdateAgencyLocationMutation,\r\n UpdateAgencyLocationMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateAgencyLocation',\r\n mutation: gql`\r\n mutation UpdateAgencyLocationMutation($command: UpdateAgencyLocation!) {\r\n updateAgencyLocation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Airports\r\n public addAirport(\r\n command: AddAirport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddAirport', AddAirportMutation, AddAirportMutationVariables, T>(\r\n {\r\n name: 'AddAirport',\r\n mutation: gql`\r\n mutation AddAirportMutation($command: AddAirport!) {\r\n addAirport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public deleteAirport(\r\n command: DeleteAirport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteAirport',\r\n DeleteAirportMutation,\r\n DeleteAirportMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteAirport',\r\n mutation: gql`\r\n mutation DeleteAirportMutation($command: DeleteAirport!) {\r\n deleteAirport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateAirport(\r\n command: UpdateAirport,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateAirport',\r\n UpdateAirportMutation,\r\n UpdateAirportMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateAirport',\r\n mutation: gql`\r\n mutation UpdateAirportMutation($command: UpdateAirport!) {\r\n updateAirport(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // BaseControlZones\r\n public addBaseControlZone(\r\n command: AddBaseControlZone,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddBaseControlZone',\r\n AddBaseControlZoneMutation,\r\n AddBaseControlZoneMutationVariables,\r\n T\r\n >({\r\n name: 'AddBaseControlZone',\r\n mutation: gql`\r\n mutation AddBaseControlZoneMutation($command: AddBaseControlZone!) {\r\n addBaseControlZone(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteBaseControlZone(\r\n command: DeleteBaseControlZone,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteBaseControlZone',\r\n DeleteBaseControlZoneMutation,\r\n DeleteBaseControlZoneMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteBaseControlZone',\r\n mutation: gql`\r\n mutation DeleteBaseControlZoneMutation($command: DeleteBaseControlZone!) {\r\n deleteBaseControlZone(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateBaseControlZone(\r\n command: UpdateBaseControlZone,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateBaseControlZone',\r\n UpdateBaseControlZoneMutation,\r\n UpdateBaseControlZoneMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateBaseControlZone',\r\n mutation: gql`\r\n mutation UpdateBaseControlZoneMutation($command: UpdateBaseControlZone!) {\r\n updateBaseControlZone(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // BaseMedicalControlContacts\r\n public addBaseMedicalControlContact(\r\n command: AddBaseMedicalControlContact,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddBaseMedicalControlContact',\r\n AddBaseMedicalControlContactMutation,\r\n AddBaseMedicalControlContactMutationVariables,\r\n T\r\n >({\r\n name: 'AddBaseMedicalControlContact',\r\n mutation: gql`\r\n mutation AddBaseMedicalControlContactMutation($command: AddBaseMedicalControlContact!) {\r\n addBaseMedicalControlContact(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteBaseMedicalControlContact(\r\n command: DeleteBaseMedicalControlContact,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteBaseMedicalControlContact',\r\n DeleteBaseMedicalControlContactMutation,\r\n DeleteBaseMedicalControlContactMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteBaseMedicalControlContact',\r\n mutation: gql`\r\n mutation DeleteBaseMedicalControlContactMutation(\r\n $command: DeleteBaseMedicalControlContact!\r\n ) {\r\n deleteBaseMedicalControlContact(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateBaseMedicalControlContact(\r\n command: UpdateBaseMedicalControlContact,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateBaseMedicalControlContact',\r\n UpdateBaseMedicalControlContactMutation,\r\n UpdateBaseMedicalControlContactMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateBaseMedicalControlContact',\r\n mutation: gql`\r\n mutation UpdateBaseMedicalControlContactMutation(\r\n $command: UpdateBaseMedicalControlContact!\r\n ) {\r\n updateBaseMedicalControlContact(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // BaseMedicalControlContactStates\r\n // Bases\r\n public addBase(\r\n command: AddBase,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddBase', AddBaseMutation, AddBaseMutationVariables, T>({\r\n name: 'AddBase',\r\n mutation: gql`\r\n mutation AddBaseMutation($command: AddBase!) {\r\n addBase(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteBase(\r\n command: DeleteBase,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'DeleteBase', DeleteBaseMutation, DeleteBaseMutationVariables, T>(\r\n {\r\n name: 'DeleteBase',\r\n mutation: gql`\r\n mutation DeleteBaseMutation($command: DeleteBase!) {\r\n deleteBase(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public updateBase(\r\n command: UpdateBase,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'UpdateBase', UpdateBaseMutation, UpdateBaseMutationVariables, T>(\r\n {\r\n name: 'UpdateBase',\r\n mutation: gql`\r\n mutation UpdateBaseMutation($command: UpdateBase!) {\r\n updateBase(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n // Capabilities\r\n public addCapability(\r\n command: AddCapability,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddCapability',\r\n AddCapabilityMutation,\r\n AddCapabilityMutationVariables,\r\n T\r\n >({\r\n name: 'AddCapability',\r\n mutation: gql`\r\n mutation AddCapabilityMutation($command: AddCapability!) {\r\n addCapability(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteCapability(\r\n command: DeleteCapability,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteCapability',\r\n DeleteCapabilityMutation,\r\n DeleteCapabilityMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteCapability',\r\n mutation: gql`\r\n mutation DeleteCapabilityMutation($command: DeleteCapability!) {\r\n deleteCapability(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCapability(\r\n command: UpdateCapability,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCapability',\r\n UpdateCapabilityMutation,\r\n UpdateCapabilityMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCapability',\r\n mutation: gql`\r\n mutation UpdateCapabilityMutation($command: UpdateCapability!) {\r\n updateCapability(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // CommunicationCenters\r\n public addCommunicationCenter(\r\n command: AddCommunicationCenter,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddCommunicationCenter',\r\n AddCommunicationCenterMutation,\r\n AddCommunicationCenterMutationVariables,\r\n T\r\n >({\r\n name: 'AddCommunicationCenter',\r\n mutation: gql`\r\n mutation AddCommunicationCenterMutation($command: AddCommunicationCenter!) {\r\n addCommunicationCenter(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteCommunicationCenter(\r\n command: DeleteCommunicationCenter,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteCommunicationCenter',\r\n DeleteCommunicationCenterMutation,\r\n DeleteCommunicationCenterMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteCommunicationCenter',\r\n mutation: gql`\r\n mutation DeleteCommunicationCenterMutation($command: DeleteCommunicationCenter!) {\r\n deleteCommunicationCenter(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCommunicationCenter(\r\n command: UpdateCommunicationCenter,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCommunicationCenter',\r\n UpdateCommunicationCenterMutation,\r\n UpdateCommunicationCenterMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCommunicationCenter',\r\n mutation: gql`\r\n mutation UpdateCommunicationCenterMutation($command: UpdateCommunicationCenter!) {\r\n updateCommunicationCenter(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // CommunicationCenterTransportOfferOptions\r\n public addCommunicationCenterTransportOfferOption(\r\n command: AddCommunicationCenterTransportOfferOption,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddCommunicationCenterTransportOfferOption',\r\n AddCommunicationCenterTransportOfferOptionMutation,\r\n AddCommunicationCenterTransportOfferOptionMutationVariables,\r\n T\r\n >({\r\n name: 'AddCommunicationCenterTransportOfferOption',\r\n mutation: gql`\r\n mutation AddCommunicationCenterTransportOfferOptionMutation(\r\n $command: AddCommunicationCenterTransportOfferOption!\r\n ) {\r\n addCommunicationCenterTransportOfferOption(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteCommunicationCenterTransportOfferOption(\r\n command: DeleteCommunicationCenterTransportOfferOption,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteCommunicationCenterTransportOfferOption',\r\n DeleteCommunicationCenterTransportOfferOptionMutation,\r\n DeleteCommunicationCenterTransportOfferOptionMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteCommunicationCenterTransportOfferOption',\r\n mutation: gql`\r\n mutation DeleteCommunicationCenterTransportOfferOptionMutation(\r\n $command: DeleteCommunicationCenterTransportOfferOption!\r\n ) {\r\n deleteCommunicationCenterTransportOfferOption(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCommunicationCenterTransportOfferOption(\r\n command: UpdateCommunicationCenterTransportOfferOption,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCommunicationCenterTransportOfferOption',\r\n UpdateCommunicationCenterTransportOfferOptionMutation,\r\n UpdateCommunicationCenterTransportOfferOptionMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCommunicationCenterTransportOfferOption',\r\n mutation: gql`\r\n mutation UpdateCommunicationCenterTransportOfferOptionMutation(\r\n $command: UpdateCommunicationCenterTransportOfferOption!\r\n ) {\r\n updateCommunicationCenterTransportOfferOption(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Companies\r\n public addCompany(\r\n command: AddCompany,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddCompany', AddCompanyMutation, AddCompanyMutationVariables, T>(\r\n {\r\n name: 'AddCompany',\r\n mutation: gql`\r\n mutation AddCompanyMutation($command: AddCompany!) {\r\n addCompany(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public deleteCompany(\r\n command: DeleteCompany,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteCompany',\r\n DeleteCompanyMutation,\r\n DeleteCompanyMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteCompany',\r\n mutation: gql`\r\n mutation DeleteCompanyMutation($command: DeleteCompany!) {\r\n deleteCompany(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCompany(\r\n command: UpdateCompany,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCompany',\r\n UpdateCompanyMutation,\r\n UpdateCompanyMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCompany',\r\n mutation: gql`\r\n mutation UpdateCompanyMutation($command: UpdateCompany!) {\r\n updateCompany(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // CompleteFlightInstances\r\n public addCompleteFlightInstance(\r\n command: AddCompleteFlightInstance,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddCompleteFlightInstance',\r\n AddCompleteFlightInstanceMutation,\r\n AddCompleteFlightInstanceMutationVariables,\r\n T\r\n >({\r\n name: 'AddCompleteFlightInstance',\r\n mutation: gql`\r\n mutation AddCompleteFlightInstanceMutation($command: AddCompleteFlightInstance!) {\r\n addCompleteFlightInstance(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteCompleteFlightInstance(\r\n command: DeleteCompleteFlightInstance,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteCompleteFlightInstance',\r\n DeleteCompleteFlightInstanceMutation,\r\n DeleteCompleteFlightInstanceMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteCompleteFlightInstance',\r\n mutation: gql`\r\n mutation DeleteCompleteFlightInstanceMutation($command: DeleteCompleteFlightInstance!) {\r\n deleteCompleteFlightInstance(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateCompleteFlightInstance(\r\n command: UpdateCompleteFlightInstance,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateCompleteFlightInstance',\r\n UpdateCompleteFlightInstanceMutation,\r\n UpdateCompleteFlightInstanceMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateCompleteFlightInstance',\r\n mutation: gql`\r\n mutation UpdateCompleteFlightInstanceMutation($command: UpdateCompleteFlightInstance!) {\r\n updateCompleteFlightInstance(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // ControlZones\r\n public addControlZone(\r\n command: AddControlZone,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddControlZone',\r\n AddControlZoneMutation,\r\n AddControlZoneMutationVariables,\r\n T\r\n >({\r\n name: 'AddControlZone',\r\n mutation: gql`\r\n mutation AddControlZoneMutation($command: AddControlZone!) {\r\n addControlZone(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteControlZone(\r\n command: DeleteControlZone,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteControlZone',\r\n DeleteControlZoneMutation,\r\n DeleteControlZoneMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteControlZone',\r\n mutation: gql`\r\n mutation DeleteControlZoneMutation($command: DeleteControlZone!) {\r\n deleteControlZone(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateControlZone(\r\n command: UpdateControlZone,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateControlZone',\r\n UpdateControlZoneMutation,\r\n UpdateControlZoneMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateControlZone',\r\n mutation: gql`\r\n mutation UpdateControlZoneMutation($command: UpdateControlZone!) {\r\n updateControlZone(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Departments\r\n public addDepartment(\r\n command: AddDepartment,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddDepartment',\r\n AddDepartmentMutation,\r\n AddDepartmentMutationVariables,\r\n T\r\n >({\r\n name: 'AddDepartment',\r\n mutation: gql`\r\n mutation AddDepartmentMutation($command: AddDepartment!) {\r\n addDepartment(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteDepartment(\r\n command: DeleteDepartment,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteDepartment',\r\n DeleteDepartmentMutation,\r\n DeleteDepartmentMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteDepartment',\r\n mutation: gql`\r\n mutation DeleteDepartmentMutation($command: DeleteDepartment!) {\r\n deleteDepartment(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateDepartment(\r\n command: UpdateDepartment,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateDepartment',\r\n UpdateDepartmentMutation,\r\n UpdateDepartmentMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateDepartment',\r\n mutation: gql`\r\n mutation UpdateDepartmentMutation($command: UpdateDepartment!) {\r\n updateDepartment(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // EntityCapabilities\r\n public addEntityCapability(\r\n command: AddEntityCapability,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddEntityCapability',\r\n AddEntityCapabilityMutation,\r\n AddEntityCapabilityMutationVariables,\r\n T\r\n >({\r\n name: 'AddEntityCapability',\r\n mutation: gql`\r\n mutation AddEntityCapabilityMutation($command: AddEntityCapability!) {\r\n addEntityCapability(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteEntityCapability(\r\n command: DeleteEntityCapability,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteEntityCapability',\r\n DeleteEntityCapabilityMutation,\r\n DeleteEntityCapabilityMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteEntityCapability',\r\n mutation: gql`\r\n mutation DeleteEntityCapabilityMutation($command: DeleteEntityCapability!) {\r\n deleteEntityCapability(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // ExternalReferences\r\n public addExternalReference(\r\n command: AddExternalReference,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddExternalReference',\r\n AddExternalReferenceMutation,\r\n AddExternalReferenceMutationVariables,\r\n T\r\n >({\r\n name: 'AddExternalReference',\r\n mutation: gql`\r\n mutation AddExternalReferenceMutation($command: AddExternalReference!) {\r\n addExternalReference(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteExternalReference(\r\n command: DeleteExternalReference,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteExternalReference',\r\n DeleteExternalReferenceMutation,\r\n DeleteExternalReferenceMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteExternalReference',\r\n mutation: gql`\r\n mutation DeleteExternalReferenceMutation($command: DeleteExternalReference!) {\r\n deleteExternalReference(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public undeleteExternalReference(\r\n command: UndeleteExternalReference,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UndeleteExternalReference',\r\n UndeleteExternalReferenceMutation,\r\n UndeleteExternalReferenceMutationVariables,\r\n T\r\n >({\r\n name: 'UndeleteExternalReference',\r\n mutation: gql`\r\n mutation UndeleteExternalReferenceMutation($command: UndeleteExternalReference!) {\r\n undeleteExternalReference(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateExternalReference(\r\n command: UpdateExternalReference,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateExternalReference',\r\n UpdateExternalReferenceMutation,\r\n UpdateExternalReferenceMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateExternalReference',\r\n mutation: gql`\r\n mutation UpdateExternalReferenceMutation($command: UpdateExternalReference!) {\r\n updateExternalReference(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Fbos\r\n public addFbo(\r\n command: AddFbo,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddFbo', AddFboMutation, AddFboMutationVariables, T>({\r\n name: 'AddFbo',\r\n mutation: gql`\r\n mutation AddFboMutation($command: AddFbo!) {\r\n addFbo(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteFbo(\r\n command: DeleteFbo,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'DeleteFbo', DeleteFboMutation, DeleteFboMutationVariables, T>({\r\n name: 'DeleteFbo',\r\n mutation: gql`\r\n mutation DeleteFboMutation($command: DeleteFbo!) {\r\n deleteFbo(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateFbo(\r\n command: UpdateFbo,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'UpdateFbo', UpdateFboMutation, UpdateFboMutationVariables, T>({\r\n name: 'UpdateFbo',\r\n mutation: gql`\r\n mutation UpdateFboMutation($command: UpdateFbo!) {\r\n updateFbo(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // FuelTanks\r\n public addFuelTank(\r\n command: AddFuelTank,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddFuelTank',\r\n AddFuelTankMutation,\r\n AddFuelTankMutationVariables,\r\n T\r\n >({\r\n name: 'AddFuelTank',\r\n mutation: gql`\r\n mutation AddFuelTankMutation($command: AddFuelTank!) {\r\n addFuelTank(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteFuelTank(\r\n command: DeleteFuelTank,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteFuelTank',\r\n DeleteFuelTankMutation,\r\n DeleteFuelTankMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteFuelTank',\r\n mutation: gql`\r\n mutation DeleteFuelTankMutation($command: DeleteFuelTank!) {\r\n deleteFuelTank(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateFuelTank(\r\n command: UpdateFuelTank,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateFuelTank',\r\n UpdateFuelTankMutation,\r\n UpdateFuelTankMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateFuelTank',\r\n mutation: gql`\r\n mutation UpdateFuelTankMutation($command: UpdateFuelTank!) {\r\n updateFuelTank(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Locations\r\n public addLocation(\r\n command: AddLocation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddLocation',\r\n AddLocationMutation,\r\n AddLocationMutationVariables,\r\n T\r\n >({\r\n name: 'AddLocation',\r\n mutation: gql`\r\n mutation AddLocationMutation($command: AddLocation!) {\r\n addLocation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteLocation(\r\n command: DeleteLocation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteLocation',\r\n DeleteLocationMutation,\r\n DeleteLocationMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteLocation',\r\n mutation: gql`\r\n mutation DeleteLocationMutation($command: DeleteLocation!) {\r\n deleteLocation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public refreshLocationsFromGMRWorkday(\r\n command: RefreshLocationsFromGMRWorkday,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'RefreshLocationsFromGMRWorkday',\r\n RefreshLocationsFromGMRWorkdayMutation,\r\n RefreshLocationsFromGMRWorkdayMutationVariables,\r\n T\r\n >({\r\n name: 'RefreshLocationsFromGMRWorkday',\r\n mutation: gql`\r\n mutation RefreshLocationsFromGMRWorkdayMutation($command: RefreshLocationsFromGMRWorkday!) {\r\n refreshLocationsFromGMRWorkday(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateLocation(\r\n command: UpdateLocation,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateLocation',\r\n UpdateLocationMutation,\r\n UpdateLocationMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateLocation',\r\n mutation: gql`\r\n mutation UpdateLocationMutation($command: UpdateLocation!) {\r\n updateLocation(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // MedicalFacilities\r\n public addMedicalFacility(\r\n command: AddMedicalFacility,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddMedicalFacility',\r\n AddMedicalFacilityMutation,\r\n AddMedicalFacilityMutationVariables,\r\n T\r\n >({\r\n name: 'AddMedicalFacility',\r\n mutation: gql`\r\n mutation AddMedicalFacilityMutation($command: AddMedicalFacility!) {\r\n addMedicalFacility(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public approveMedicalFacility(\r\n command: ApproveMedicalFacility,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ApproveMedicalFacility',\r\n ApproveMedicalFacilityMutation,\r\n ApproveMedicalFacilityMutationVariables,\r\n T\r\n >({\r\n name: 'ApproveMedicalFacility',\r\n mutation: gql`\r\n mutation ApproveMedicalFacilityMutation($command: ApproveMedicalFacility!) {\r\n approveMedicalFacility(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public archiveMedicalFacility(\r\n command: ArchiveMedicalFacility,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ArchiveMedicalFacility',\r\n ArchiveMedicalFacilityMutation,\r\n ArchiveMedicalFacilityMutationVariables,\r\n T\r\n >({\r\n name: 'ArchiveMedicalFacility',\r\n mutation: gql`\r\n mutation ArchiveMedicalFacilityMutation($command: ArchiveMedicalFacility!) {\r\n archiveMedicalFacility(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public clearPendingArchiveMedicalFacility(\r\n command: ClearPendingArchiveMedicalFacility,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ClearPendingArchiveMedicalFacility',\r\n ClearPendingArchiveMedicalFacilityMutation,\r\n ClearPendingArchiveMedicalFacilityMutationVariables,\r\n T\r\n >({\r\n name: 'ClearPendingArchiveMedicalFacility',\r\n mutation: gql`\r\n mutation ClearPendingArchiveMedicalFacilityMutation(\r\n $command: ClearPendingArchiveMedicalFacility!\r\n ) {\r\n clearPendingArchiveMedicalFacility(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteMedicalFacility(\r\n command: DeleteMedicalFacility,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteMedicalFacility',\r\n DeleteMedicalFacilityMutation,\r\n DeleteMedicalFacilityMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteMedicalFacility',\r\n mutation: gql`\r\n mutation DeleteMedicalFacilityMutation($command: DeleteMedicalFacility!) {\r\n deleteMedicalFacility(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public mergeMedicalFacilities(\r\n command: MergeMedicalFacilities,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'MergeMedicalFacilities',\r\n MergeMedicalFacilitiesMutation,\r\n MergeMedicalFacilitiesMutationVariables,\r\n T\r\n >({\r\n name: 'MergeMedicalFacilities',\r\n mutation: gql`\r\n mutation MergeMedicalFacilitiesMutation($command: MergeMedicalFacilities!) {\r\n mergeMedicalFacilities(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public submitMedicalFacilityForApproval(\r\n command: SubmitMedicalFacilityForApproval,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SubmitMedicalFacilityForApproval',\r\n SubmitMedicalFacilityForApprovalMutation,\r\n SubmitMedicalFacilityForApprovalMutationVariables,\r\n T\r\n >({\r\n name: 'SubmitMedicalFacilityForApproval',\r\n mutation: gql`\r\n mutation SubmitMedicalFacilityForApprovalMutation(\r\n $command: SubmitMedicalFacilityForApproval!\r\n ) {\r\n submitMedicalFacilityForApproval(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public unmarkMedicalFacilityAsDuplicate(\r\n command: UnmarkMedicalFacilityAsDuplicate,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UnmarkMedicalFacilityAsDuplicate',\r\n UnmarkMedicalFacilityAsDuplicateMutation,\r\n UnmarkMedicalFacilityAsDuplicateMutationVariables,\r\n T\r\n >({\r\n name: 'UnmarkMedicalFacilityAsDuplicate',\r\n mutation: gql`\r\n mutation UnmarkMedicalFacilityAsDuplicateMutation(\r\n $command: UnmarkMedicalFacilityAsDuplicate!\r\n ) {\r\n unmarkMedicalFacilityAsDuplicate(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateMedicalFacility(\r\n command: UpdateMedicalFacility,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateMedicalFacility',\r\n UpdateMedicalFacilityMutation,\r\n UpdateMedicalFacilityMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateMedicalFacility',\r\n mutation: gql`\r\n mutation UpdateMedicalFacilityMutation($command: UpdateMedicalFacility!) {\r\n updateMedicalFacility(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // MedicalFacilityContacts\r\n public addMedicalFacilityContact(\r\n command: AddMedicalFacilityContact,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddMedicalFacilityContact',\r\n AddMedicalFacilityContactMutation,\r\n AddMedicalFacilityContactMutationVariables,\r\n T\r\n >({\r\n name: 'AddMedicalFacilityContact',\r\n mutation: gql`\r\n mutation AddMedicalFacilityContactMutation($command: AddMedicalFacilityContact!) {\r\n addMedicalFacilityContact(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteMedicalFacilityContact(\r\n command: DeleteMedicalFacilityContact,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteMedicalFacilityContact',\r\n DeleteMedicalFacilityContactMutation,\r\n DeleteMedicalFacilityContactMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteMedicalFacilityContact',\r\n mutation: gql`\r\n mutation DeleteMedicalFacilityContactMutation($command: DeleteMedicalFacilityContact!) {\r\n deleteMedicalFacilityContact(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateMedicalFacilityContact(\r\n command: UpdateMedicalFacilityContact,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateMedicalFacilityContact',\r\n UpdateMedicalFacilityContactMutation,\r\n UpdateMedicalFacilityContactMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateMedicalFacilityContact',\r\n mutation: gql`\r\n mutation UpdateMedicalFacilityContactMutation($command: UpdateMedicalFacilityContact!) {\r\n updateMedicalFacilityContact(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // MedicalFacilityPhysicians\r\n public addMedicalFacilityPhysician(\r\n command: AddMedicalFacilityPhysician,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddMedicalFacilityPhysician',\r\n AddMedicalFacilityPhysicianMutation,\r\n AddMedicalFacilityPhysicianMutationVariables,\r\n T\r\n >({\r\n name: 'AddMedicalFacilityPhysician',\r\n mutation: gql`\r\n mutation AddMedicalFacilityPhysicianMutation($command: AddMedicalFacilityPhysician!) {\r\n addMedicalFacilityPhysician(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteMedicalFacilityPhysician(\r\n command: DeleteMedicalFacilityPhysician,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteMedicalFacilityPhysician',\r\n DeleteMedicalFacilityPhysicianMutation,\r\n DeleteMedicalFacilityPhysicianMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteMedicalFacilityPhysician',\r\n mutation: gql`\r\n mutation DeleteMedicalFacilityPhysicianMutation($command: DeleteMedicalFacilityPhysician!) {\r\n deleteMedicalFacilityPhysician(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateMedicalFacilityPhysician(\r\n command: UpdateMedicalFacilityPhysician,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateMedicalFacilityPhysician',\r\n UpdateMedicalFacilityPhysicianMutation,\r\n UpdateMedicalFacilityPhysicianMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateMedicalFacilityPhysician',\r\n mutation: gql`\r\n mutation UpdateMedicalFacilityPhysicianMutation($command: UpdateMedicalFacilityPhysician!) {\r\n updateMedicalFacilityPhysician(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // MedicalFacilityUnits\r\n public addMedicalFacilityUnit(\r\n command: AddMedicalFacilityUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddMedicalFacilityUnit',\r\n AddMedicalFacilityUnitMutation,\r\n AddMedicalFacilityUnitMutationVariables,\r\n T\r\n >({\r\n name: 'AddMedicalFacilityUnit',\r\n mutation: gql`\r\n mutation AddMedicalFacilityUnitMutation($command: AddMedicalFacilityUnit!) {\r\n addMedicalFacilityUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteMedicalFacilityUnit(\r\n command: DeleteMedicalFacilityUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteMedicalFacilityUnit',\r\n DeleteMedicalFacilityUnitMutation,\r\n DeleteMedicalFacilityUnitMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteMedicalFacilityUnit',\r\n mutation: gql`\r\n mutation DeleteMedicalFacilityUnitMutation($command: DeleteMedicalFacilityUnit!) {\r\n deleteMedicalFacilityUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateMedicalFacilityUnit(\r\n command: UpdateMedicalFacilityUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateMedicalFacilityUnit',\r\n UpdateMedicalFacilityUnitMutation,\r\n UpdateMedicalFacilityUnitMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateMedicalFacilityUnit',\r\n mutation: gql`\r\n mutation UpdateMedicalFacilityUnitMutation($command: UpdateMedicalFacilityUnit!) {\r\n updateMedicalFacilityUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // OrgApplicationStarts\r\n // People\r\n public addOutOfComplianceCrewMember(\r\n command: AddOutOfComplianceCrewMember,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddOutOfComplianceCrewMember',\r\n AddOutOfComplianceCrewMemberMutation,\r\n AddOutOfComplianceCrewMemberMutationVariables,\r\n T\r\n >({\r\n name: 'AddOutOfComplianceCrewMember',\r\n mutation: gql`\r\n mutation AddOutOfComplianceCrewMemberMutation($command: AddOutOfComplianceCrewMember!) {\r\n addOutOfComplianceCrewMember(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addPerson(\r\n command: AddPerson,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddPerson', AddPersonMutation, AddPersonMutationVariables, T>({\r\n name: 'AddPerson',\r\n mutation: gql`\r\n mutation AddPersonMutation($command: AddPerson!) {\r\n addPerson(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public authorizeClientSyncAccess(\r\n command: AuthorizeClientSyncAccess,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AuthorizeClientSyncAccess',\r\n AuthorizeClientSyncAccessMutation,\r\n AuthorizeClientSyncAccessMutationVariables,\r\n T\r\n >({\r\n name: 'AuthorizeClientSyncAccess',\r\n mutation: gql`\r\n mutation AuthorizeClientSyncAccessMutation($command: AuthorizeClientSyncAccess!) {\r\n authorizeClientSyncAccess(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deletePerson(\r\n command: DeletePerson,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeletePerson',\r\n DeletePersonMutation,\r\n DeletePersonMutationVariables,\r\n T\r\n >({\r\n name: 'DeletePerson',\r\n mutation: gql`\r\n mutation DeletePersonMutation($command: DeletePerson!) {\r\n deletePerson(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public refreshPeopleFromGMRWorkdayV2(\r\n command: RefreshPeopleFromGMRWorkdayV2,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'RefreshPeopleFromGMRWorkdayV2',\r\n RefreshPeopleFromGMRWorkdayV2Mutation,\r\n RefreshPeopleFromGMRWorkdayV2MutationVariables,\r\n T\r\n >({\r\n name: 'RefreshPeopleFromGMRWorkdayV2',\r\n mutation: gql`\r\n mutation RefreshPeopleFromGMRWorkdayV2Mutation($command: RefreshPeopleFromGMRWorkdayV2!) {\r\n refreshPeopleFromGMRWorkdayV2(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public removeCrewMemberFromOutOfCompliance(\r\n command: RemoveCrewMemberFromOutOfCompliance,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'RemoveCrewMemberFromOutOfCompliance',\r\n RemoveCrewMemberFromOutOfComplianceMutation,\r\n RemoveCrewMemberFromOutOfComplianceMutationVariables,\r\n T\r\n >({\r\n name: 'RemoveCrewMemberFromOutOfCompliance',\r\n mutation: gql`\r\n mutation RemoveCrewMemberFromOutOfComplianceMutation(\r\n $command: RemoveCrewMemberFromOutOfCompliance!\r\n ) {\r\n removeCrewMemberFromOutOfCompliance(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public resetPassword(\r\n command: ResetPassword,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ResetPassword',\r\n ResetPasswordMutation,\r\n ResetPasswordMutationVariables,\r\n T\r\n >({\r\n name: 'ResetPassword',\r\n mutation: gql`\r\n mutation ResetPasswordMutation($command: ResetPassword!) {\r\n resetPassword(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public setRoleScope(\r\n command: SetRoleScope,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SetRoleScope',\r\n SetRoleScopeMutation,\r\n SetRoleScopeMutationVariables,\r\n T\r\n >({\r\n name: 'SetRoleScope',\r\n mutation: gql`\r\n mutation SetRoleScopeMutation($command: SetRoleScope!) {\r\n setRoleScope(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateOutOfComplianceCrewMember(\r\n command: UpdateOutOfComplianceCrewMember,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateOutOfComplianceCrewMember',\r\n UpdateOutOfComplianceCrewMemberMutation,\r\n UpdateOutOfComplianceCrewMemberMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateOutOfComplianceCrewMember',\r\n mutation: gql`\r\n mutation UpdateOutOfComplianceCrewMemberMutation(\r\n $command: UpdateOutOfComplianceCrewMember!\r\n ) {\r\n updateOutOfComplianceCrewMember(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updatePerson(\r\n command: UpdatePerson,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdatePerson',\r\n UpdatePersonMutation,\r\n UpdatePersonMutationVariables,\r\n T\r\n >({\r\n name: 'UpdatePerson',\r\n mutation: gql`\r\n mutation UpdatePersonMutation($command: UpdatePerson!) {\r\n updatePerson(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTcsRealtimeTrackingTab(\r\n command: UpdateTcsRealtimeTrackingTab,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTcsRealtimeTrackingTab',\r\n UpdateTcsRealtimeTrackingTabMutation,\r\n UpdateTcsRealtimeTrackingTabMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTcsRealtimeTrackingTab',\r\n mutation: gql`\r\n mutation UpdateTcsRealtimeTrackingTabMutation($command: UpdateTcsRealtimeTrackingTab!) {\r\n updateTcsRealtimeTrackingTab(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Physicians\r\n public addPhysician(\r\n command: AddPhysician,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddPhysician',\r\n AddPhysicianMutation,\r\n AddPhysicianMutationVariables,\r\n T\r\n >({\r\n name: 'AddPhysician',\r\n mutation: gql`\r\n mutation AddPhysicianMutation($command: AddPhysician!) {\r\n addPhysician(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deletePhysician(\r\n command: DeletePhysician,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeletePhysician',\r\n DeletePhysicianMutation,\r\n DeletePhysicianMutationVariables,\r\n T\r\n >({\r\n name: 'DeletePhysician',\r\n mutation: gql`\r\n mutation DeletePhysicianMutation($command: DeletePhysician!) {\r\n deletePhysician(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updatePhysician(\r\n command: UpdatePhysician,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdatePhysician',\r\n UpdatePhysicianMutation,\r\n UpdatePhysicianMutationVariables,\r\n T\r\n >({\r\n name: 'UpdatePhysician',\r\n mutation: gql`\r\n mutation UpdatePhysicianMutation($command: UpdatePhysician!) {\r\n updatePhysician(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // ProgramBases\r\n public addProgramBase(\r\n command: AddProgramBase,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddProgramBase',\r\n AddProgramBaseMutation,\r\n AddProgramBaseMutationVariables,\r\n T\r\n >({\r\n name: 'AddProgramBase',\r\n mutation: gql`\r\n mutation AddProgramBaseMutation($command: AddProgramBase!) {\r\n addProgramBase(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteProgramBase(\r\n command: DeleteProgramBase,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteProgramBase',\r\n DeleteProgramBaseMutation,\r\n DeleteProgramBaseMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteProgramBase',\r\n mutation: gql`\r\n mutation DeleteProgramBaseMutation($command: DeleteProgramBase!) {\r\n deleteProgramBase(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateProgramBase(\r\n command: UpdateProgramBase,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateProgramBase',\r\n UpdateProgramBaseMutation,\r\n UpdateProgramBaseMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateProgramBase',\r\n mutation: gql`\r\n mutation UpdateProgramBaseMutation($command: UpdateProgramBase!) {\r\n updateProgramBase(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Programs\r\n public addProgram(\r\n command: AddProgram,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddProgram', AddProgramMutation, AddProgramMutationVariables, T>(\r\n {\r\n name: 'AddProgram',\r\n mutation: gql`\r\n mutation AddProgramMutation($command: AddProgram!) {\r\n addProgram(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public deleteProgram(\r\n command: DeleteProgram,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteProgram',\r\n DeleteProgramMutation,\r\n DeleteProgramMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteProgram',\r\n mutation: gql`\r\n mutation DeleteProgramMutation($command: DeleteProgram!) {\r\n deleteProgram(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateProgram(\r\n command: UpdateProgram,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateProgram',\r\n UpdateProgramMutation,\r\n UpdateProgramMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateProgram',\r\n mutation: gql`\r\n mutation UpdateProgramMutation($command: UpdateProgram!) {\r\n updateProgram(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // RamcoVehicleConfigurations\r\n // RegionBases\r\n public addRegionBase(\r\n command: AddRegionBase,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddRegionBase',\r\n AddRegionBaseMutation,\r\n AddRegionBaseMutationVariables,\r\n T\r\n >({\r\n name: 'AddRegionBase',\r\n mutation: gql`\r\n mutation AddRegionBaseMutation($command: AddRegionBase!) {\r\n addRegionBase(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteRegionBase(\r\n command: DeleteRegionBase,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteRegionBase',\r\n DeleteRegionBaseMutation,\r\n DeleteRegionBaseMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteRegionBase',\r\n mutation: gql`\r\n mutation DeleteRegionBaseMutation($command: DeleteRegionBase!) {\r\n deleteRegionBase(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRegionBase(\r\n command: UpdateRegionBase,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRegionBase',\r\n UpdateRegionBaseMutation,\r\n UpdateRegionBaseMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRegionBase',\r\n mutation: gql`\r\n mutation UpdateRegionBaseMutation($command: UpdateRegionBase!) {\r\n updateRegionBase(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // RegionGroups\r\n public addRegionGroup(\r\n command: AddRegionGroup,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddRegionGroup',\r\n AddRegionGroupMutation,\r\n AddRegionGroupMutationVariables,\r\n T\r\n >({\r\n name: 'AddRegionGroup',\r\n mutation: gql`\r\n mutation AddRegionGroupMutation($command: AddRegionGroup!) {\r\n addRegionGroup(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteRegionGroup(\r\n command: DeleteRegionGroup,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteRegionGroup',\r\n DeleteRegionGroupMutation,\r\n DeleteRegionGroupMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteRegionGroup',\r\n mutation: gql`\r\n mutation DeleteRegionGroupMutation($command: DeleteRegionGroup!) {\r\n deleteRegionGroup(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRegionGroup(\r\n command: UpdateRegionGroup,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRegionGroup',\r\n UpdateRegionGroupMutation,\r\n UpdateRegionGroupMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRegionGroup',\r\n mutation: gql`\r\n mutation UpdateRegionGroupMutation($command: UpdateRegionGroup!) {\r\n updateRegionGroup(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Regions\r\n public addRegion(\r\n command: AddRegion,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddRegion', AddRegionMutation, AddRegionMutationVariables, T>({\r\n name: 'AddRegion',\r\n mutation: gql`\r\n mutation AddRegionMutation($command: AddRegion!) {\r\n addRegion(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addTransferCenterRegion(\r\n command: AddTransferCenterRegion,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddTransferCenterRegion',\r\n AddTransferCenterRegionMutation,\r\n AddTransferCenterRegionMutationVariables,\r\n T\r\n >({\r\n name: 'AddTransferCenterRegion',\r\n mutation: gql`\r\n mutation AddTransferCenterRegionMutation($command: AddTransferCenterRegion!) {\r\n addTransferCenterRegion(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteRegion(\r\n command: DeleteRegion,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteRegion',\r\n DeleteRegionMutation,\r\n DeleteRegionMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteRegion',\r\n mutation: gql`\r\n mutation DeleteRegionMutation($command: DeleteRegion!) {\r\n deleteRegion(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateRegion(\r\n command: UpdateRegion,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateRegion',\r\n UpdateRegionMutation,\r\n UpdateRegionMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateRegion',\r\n mutation: gql`\r\n mutation UpdateRegionMutation($command: UpdateRegion!) {\r\n updateRegion(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // SpecialtyTeamMembers\r\n public addExistingSpecialtyTeamMember(\r\n command: AddExistingSpecialtyTeamMember,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddExistingSpecialtyTeamMember',\r\n AddExistingSpecialtyTeamMemberMutation,\r\n AddExistingSpecialtyTeamMemberMutationVariables,\r\n T\r\n >({\r\n name: 'AddExistingSpecialtyTeamMember',\r\n mutation: gql`\r\n mutation AddExistingSpecialtyTeamMemberMutation($command: AddExistingSpecialtyTeamMember!) {\r\n addExistingSpecialtyTeamMember(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public addSpecialtyTeamMember(\r\n command: AddSpecialtyTeamMember,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddSpecialtyTeamMember',\r\n AddSpecialtyTeamMemberMutation,\r\n AddSpecialtyTeamMemberMutationVariables,\r\n T\r\n >({\r\n name: 'AddSpecialtyTeamMember',\r\n mutation: gql`\r\n mutation AddSpecialtyTeamMemberMutation($command: AddSpecialtyTeamMember!) {\r\n addSpecialtyTeamMember(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteSpecialtyTeamMember(\r\n command: DeleteSpecialtyTeamMember,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteSpecialtyTeamMember',\r\n DeleteSpecialtyTeamMemberMutation,\r\n DeleteSpecialtyTeamMemberMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteSpecialtyTeamMember',\r\n mutation: gql`\r\n mutation DeleteSpecialtyTeamMemberMutation($command: DeleteSpecialtyTeamMember!) {\r\n deleteSpecialtyTeamMember(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateSpecialtyTeamMember(\r\n command: UpdateSpecialtyTeamMember,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateSpecialtyTeamMember',\r\n UpdateSpecialtyTeamMemberMutation,\r\n UpdateSpecialtyTeamMemberMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateSpecialtyTeamMember',\r\n mutation: gql`\r\n mutation UpdateSpecialtyTeamMemberMutation($command: UpdateSpecialtyTeamMember!) {\r\n updateSpecialtyTeamMember(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // SpecialtyTeams\r\n public addSpecialtyTeam(\r\n command: AddSpecialtyTeam,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddSpecialtyTeam',\r\n AddSpecialtyTeamMutation,\r\n AddSpecialtyTeamMutationVariables,\r\n T\r\n >({\r\n name: 'AddSpecialtyTeam',\r\n mutation: gql`\r\n mutation AddSpecialtyTeamMutation($command: AddSpecialtyTeam!) {\r\n addSpecialtyTeam(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteSpecialtyTeam(\r\n command: DeleteSpecialtyTeam,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteSpecialtyTeam',\r\n DeleteSpecialtyTeamMutation,\r\n DeleteSpecialtyTeamMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteSpecialtyTeam',\r\n mutation: gql`\r\n mutation DeleteSpecialtyTeamMutation($command: DeleteSpecialtyTeam!) {\r\n deleteSpecialtyTeam(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateSpecialtyTeam(\r\n command: UpdateSpecialtyTeam,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateSpecialtyTeam',\r\n UpdateSpecialtyTeamMutation,\r\n UpdateSpecialtyTeamMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateSpecialtyTeam',\r\n mutation: gql`\r\n mutation UpdateSpecialtyTeamMutation($command: UpdateSpecialtyTeam!) {\r\n updateSpecialtyTeam(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // SupportRequests\r\n public addSupportRequest(\r\n command: AddSupportRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddSupportRequest',\r\n AddSupportRequestMutation,\r\n AddSupportRequestMutationVariables,\r\n T\r\n >({\r\n name: 'AddSupportRequest',\r\n mutation: gql`\r\n mutation AddSupportRequestMutation($command: AddSupportRequest!) {\r\n addSupportRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteSupportRequest(\r\n command: DeleteSupportRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteSupportRequest',\r\n DeleteSupportRequestMutation,\r\n DeleteSupportRequestMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteSupportRequest',\r\n mutation: gql`\r\n mutation DeleteSupportRequestMutation($command: DeleteSupportRequest!) {\r\n deleteSupportRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public submitSupportRequest(\r\n command: SubmitSupportRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SubmitSupportRequest',\r\n SubmitSupportRequestMutation,\r\n SubmitSupportRequestMutationVariables,\r\n T\r\n >({\r\n name: 'SubmitSupportRequest',\r\n mutation: gql`\r\n mutation SubmitSupportRequestMutation($command: SubmitSupportRequest!) {\r\n submitSupportRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateSupportRequest(\r\n command: UpdateSupportRequest,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateSupportRequest',\r\n UpdateSupportRequestMutation,\r\n UpdateSupportRequestMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateSupportRequest',\r\n mutation: gql`\r\n mutation UpdateSupportRequestMutation($command: UpdateSupportRequest!) {\r\n updateSupportRequest(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Timezones\r\n public addTimezone(\r\n command: AddTimezone,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddTimezone',\r\n AddTimezoneMutation,\r\n AddTimezoneMutationVariables,\r\n T\r\n >({\r\n name: 'AddTimezone',\r\n mutation: gql`\r\n mutation AddTimezoneMutation($command: AddTimezone!) {\r\n addTimezone(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteTimezone(\r\n command: DeleteTimezone,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteTimezone',\r\n DeleteTimezoneMutation,\r\n DeleteTimezoneMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteTimezone',\r\n mutation: gql`\r\n mutation DeleteTimezoneMutation($command: DeleteTimezone!) {\r\n deleteTimezone(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTimezone(\r\n command: UpdateTimezone,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTimezone',\r\n UpdateTimezoneMutation,\r\n UpdateTimezoneMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTimezone',\r\n mutation: gql`\r\n mutation UpdateTimezoneMutation($command: UpdateTimezone!) {\r\n updateTimezone(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // TransferCenters\r\n public addTransferCenter(\r\n command: AddTransferCenter,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddTransferCenter',\r\n AddTransferCenterMutation,\r\n AddTransferCenterMutationVariables,\r\n T\r\n >({\r\n name: 'AddTransferCenter',\r\n mutation: gql`\r\n mutation AddTransferCenterMutation($command: AddTransferCenter!) {\r\n addTransferCenter(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteTransferCenter(\r\n command: DeleteTransferCenter,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteTransferCenter',\r\n DeleteTransferCenterMutation,\r\n DeleteTransferCenterMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteTransferCenter',\r\n mutation: gql`\r\n mutation DeleteTransferCenterMutation($command: DeleteTransferCenter!) {\r\n deleteTransferCenter(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTransferCenter(\r\n command: UpdateTransferCenter,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTransferCenter',\r\n UpdateTransferCenterMutation,\r\n UpdateTransferCenterMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTransferCenter',\r\n mutation: gql`\r\n mutation UpdateTransferCenterMutation($command: UpdateTransferCenter!) {\r\n updateTransferCenter(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // TrmUserAgencies\r\n // TrmUserMedicalFacilities\r\n // TrmUserPrograms\r\n // TrmUsers\r\n public addPreApprovedTrmUser(\r\n command: AddPreApprovedTrmUser,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddPreApprovedTrmUser',\r\n AddPreApprovedTrmUserMutation,\r\n AddPreApprovedTrmUserMutationVariables,\r\n T\r\n >({\r\n name: 'AddPreApprovedTrmUser',\r\n mutation: gql`\r\n mutation AddPreApprovedTrmUserMutation($command: AddPreApprovedTrmUser!) {\r\n addPreApprovedTrmUser(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public approveTrmUser(\r\n command: ApproveTrmUser,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ApproveTrmUser',\r\n ApproveTrmUserMutation,\r\n ApproveTrmUserMutationVariables,\r\n T\r\n >({\r\n name: 'ApproveTrmUser',\r\n mutation: gql`\r\n mutation ApproveTrmUserMutation($command: ApproveTrmUser!) {\r\n approveTrmUser(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deactivateTrmUser(\r\n command: DeactivateTrmUser,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeactivateTrmUser',\r\n DeactivateTrmUserMutation,\r\n DeactivateTrmUserMutationVariables,\r\n T\r\n >({\r\n name: 'DeactivateTrmUser',\r\n mutation: gql`\r\n mutation DeactivateTrmUserMutation($command: DeactivateTrmUser!) {\r\n deactivateTrmUser(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteTrmUser(\r\n command: DeleteTrmUser,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteTrmUser',\r\n DeleteTrmUserMutation,\r\n DeleteTrmUserMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteTrmUser',\r\n mutation: gql`\r\n mutation DeleteTrmUserMutation($command: DeleteTrmUser!) {\r\n deleteTrmUser(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public denyTrmUser(\r\n command: DenyTrmUser,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DenyTrmUser',\r\n DenyTrmUserMutation,\r\n DenyTrmUserMutationVariables,\r\n T\r\n >({\r\n name: 'DenyTrmUser',\r\n mutation: gql`\r\n mutation DenyTrmUserMutation($command: DenyTrmUser!) {\r\n denyTrmUser(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public registerTrmUser(\r\n command: RegisterTrmUser,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'RegisterTrmUser',\r\n RegisterTrmUserMutation,\r\n RegisterTrmUserMutationVariables,\r\n T\r\n >({\r\n name: 'RegisterTrmUser',\r\n mutation: gql`\r\n mutation RegisterTrmUserMutation($command: RegisterTrmUser!) {\r\n registerTrmUser(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateTrmUser(\r\n command: UpdateTrmUser,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateTrmUser',\r\n UpdateTrmUserMutation,\r\n UpdateTrmUserMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateTrmUser',\r\n mutation: gql`\r\n mutation UpdateTrmUserMutation($command: UpdateTrmUser!) {\r\n updateTrmUser(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // VehicleConfigurationClasses\r\n public addVehicleConfigurationClass(\r\n command: AddVehicleConfigurationClass,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddVehicleConfigurationClass',\r\n AddVehicleConfigurationClassMutation,\r\n AddVehicleConfigurationClassMutationVariables,\r\n T\r\n >({\r\n name: 'AddVehicleConfigurationClass',\r\n mutation: gql`\r\n mutation AddVehicleConfigurationClassMutation($command: AddVehicleConfigurationClass!) {\r\n addVehicleConfigurationClass(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteVehicleConfigurationClass(\r\n command: DeleteVehicleConfigurationClass,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteVehicleConfigurationClass',\r\n DeleteVehicleConfigurationClassMutation,\r\n DeleteVehicleConfigurationClassMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteVehicleConfigurationClass',\r\n mutation: gql`\r\n mutation DeleteVehicleConfigurationClassMutation(\r\n $command: DeleteVehicleConfigurationClass!\r\n ) {\r\n deleteVehicleConfigurationClass(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateVehicleConfigurationClass(\r\n command: UpdateVehicleConfigurationClass,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateVehicleConfigurationClass',\r\n UpdateVehicleConfigurationClassMutation,\r\n UpdateVehicleConfigurationClassMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateVehicleConfigurationClass',\r\n mutation: gql`\r\n mutation UpdateVehicleConfigurationClassMutation(\r\n $command: UpdateVehicleConfigurationClass!\r\n ) {\r\n updateVehicleConfigurationClass(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // VehicleControlZones\r\n public addVehicleControlZone(\r\n command: AddVehicleControlZone,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddVehicleControlZone',\r\n AddVehicleControlZoneMutation,\r\n AddVehicleControlZoneMutationVariables,\r\n T\r\n >({\r\n name: 'AddVehicleControlZone',\r\n mutation: gql`\r\n mutation AddVehicleControlZoneMutation($command: AddVehicleControlZone!) {\r\n addVehicleControlZone(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteVehicleControlZone(\r\n command: DeleteVehicleControlZone,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteVehicleControlZone',\r\n DeleteVehicleControlZoneMutation,\r\n DeleteVehicleControlZoneMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteVehicleControlZone',\r\n mutation: gql`\r\n mutation DeleteVehicleControlZoneMutation($command: DeleteVehicleControlZone!) {\r\n deleteVehicleControlZone(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateVehicleControlZone(\r\n command: UpdateVehicleControlZone,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateVehicleControlZone',\r\n UpdateVehicleControlZoneMutation,\r\n UpdateVehicleControlZoneMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateVehicleControlZone',\r\n mutation: gql`\r\n mutation UpdateVehicleControlZoneMutation($command: UpdateVehicleControlZone!) {\r\n updateVehicleControlZone(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // VehicleMaintenances\r\n public addVehicleMaintenance(\r\n command: AddVehicleMaintenance,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddVehicleMaintenance',\r\n AddVehicleMaintenanceMutation,\r\n AddVehicleMaintenanceMutationVariables,\r\n T\r\n >({\r\n name: 'AddVehicleMaintenance',\r\n mutation: gql`\r\n mutation AddVehicleMaintenanceMutation($command: AddVehicleMaintenance!) {\r\n addVehicleMaintenance(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteVehicleMaintenance(\r\n command: DeleteVehicleMaintenance,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteVehicleMaintenance',\r\n DeleteVehicleMaintenanceMutation,\r\n DeleteVehicleMaintenanceMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteVehicleMaintenance',\r\n mutation: gql`\r\n mutation DeleteVehicleMaintenanceMutation($command: DeleteVehicleMaintenance!) {\r\n deleteVehicleMaintenance(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateVehicleMaintenance(\r\n command: UpdateVehicleMaintenance,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateVehicleMaintenance',\r\n UpdateVehicleMaintenanceMutation,\r\n UpdateVehicleMaintenanceMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateVehicleMaintenance',\r\n mutation: gql`\r\n mutation UpdateVehicleMaintenanceMutation($command: UpdateVehicleMaintenance!) {\r\n updateVehicleMaintenance(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public upsertVehicleMaintenanceParameters(\r\n command: UpsertVehicleMaintenanceParameters,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpsertVehicleMaintenanceParameters',\r\n UpsertVehicleMaintenanceParametersMutation,\r\n UpsertVehicleMaintenanceParametersMutationVariables,\r\n T\r\n >({\r\n name: 'UpsertVehicleMaintenanceParameters',\r\n mutation: gql`\r\n mutation UpsertVehicleMaintenanceParametersMutation(\r\n $command: UpsertVehicleMaintenanceParameters!\r\n ) {\r\n upsertVehicleMaintenanceParameters(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // VehicleMakes\r\n public addVehicleMake(\r\n command: AddVehicleMake,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddVehicleMake',\r\n AddVehicleMakeMutation,\r\n AddVehicleMakeMutationVariables,\r\n T\r\n >({\r\n name: 'AddVehicleMake',\r\n mutation: gql`\r\n mutation AddVehicleMakeMutation($command: AddVehicleMake!) {\r\n addVehicleMake(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteVehicleMake(\r\n command: DeleteVehicleMake,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteVehicleMake',\r\n DeleteVehicleMakeMutation,\r\n DeleteVehicleMakeMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteVehicleMake',\r\n mutation: gql`\r\n mutation DeleteVehicleMakeMutation($command: DeleteVehicleMake!) {\r\n deleteVehicleMake(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateVehicleMake(\r\n command: UpdateVehicleMake,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateVehicleMake',\r\n UpdateVehicleMakeMutation,\r\n UpdateVehicleMakeMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateVehicleMake',\r\n mutation: gql`\r\n mutation UpdateVehicleMakeMutation($command: UpdateVehicleMake!) {\r\n updateVehicleMake(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // VehicleModels\r\n public addVehicleModel(\r\n command: AddVehicleModel,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddVehicleModel',\r\n AddVehicleModelMutation,\r\n AddVehicleModelMutationVariables,\r\n T\r\n >({\r\n name: 'AddVehicleModel',\r\n mutation: gql`\r\n mutation AddVehicleModelMutation($command: AddVehicleModel!) {\r\n addVehicleModel(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteVehicleModel(\r\n command: DeleteVehicleModel,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteVehicleModel',\r\n DeleteVehicleModelMutation,\r\n DeleteVehicleModelMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteVehicleModel',\r\n mutation: gql`\r\n mutation DeleteVehicleModelMutation($command: DeleteVehicleModel!) {\r\n deleteVehicleModel(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateVehicleModel(\r\n command: UpdateVehicleModel,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateVehicleModel',\r\n UpdateVehicleModelMutation,\r\n UpdateVehicleModelMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateVehicleModel',\r\n mutation: gql`\r\n mutation UpdateVehicleModelMutation($command: UpdateVehicleModel!) {\r\n updateVehicleModel(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // Vehicles\r\n public addVehicle(\r\n command: AddVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<'AddVehicle', AddVehicleMutation, AddVehicleMutationVariables, T>(\r\n {\r\n name: 'AddVehicle',\r\n mutation: gql`\r\n mutation AddVehicleMutation($command: AddVehicle!) {\r\n addVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n },\r\n );\r\n }\r\n public changeVehicleFlightLogProcess(\r\n command: ChangeVehicleFlightLogProcess,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'ChangeVehicleFlightLogProcess',\r\n ChangeVehicleFlightLogProcessMutation,\r\n ChangeVehicleFlightLogProcessMutationVariables,\r\n T\r\n >({\r\n name: 'ChangeVehicleFlightLogProcess',\r\n mutation: gql`\r\n mutation ChangeVehicleFlightLogProcessMutation($command: ChangeVehicleFlightLogProcess!) {\r\n changeVehicleFlightLogProcess(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteVehicle(\r\n command: DeleteVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteVehicle',\r\n DeleteVehicleMutation,\r\n DeleteVehicleMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteVehicle',\r\n mutation: gql`\r\n mutation DeleteVehicleMutation($command: DeleteVehicle!) {\r\n deleteVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public ensureThirdPartyVehicleAndUnit(\r\n command: EnsureThirdPartyVehicleAndUnit,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'EnsureThirdPartyVehicleAndUnit',\r\n EnsureThirdPartyVehicleAndUnitMutation,\r\n EnsureThirdPartyVehicleAndUnitMutationVariables,\r\n T\r\n >({\r\n name: 'EnsureThirdPartyVehicleAndUnit',\r\n mutation: gql`\r\n mutation EnsureThirdPartyVehicleAndUnitMutation($command: EnsureThirdPartyVehicleAndUnit!) {\r\n ensureThirdPartyVehicleAndUnit(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public hideVehicle(\r\n command: HideVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'HideVehicle',\r\n HideVehicleMutation,\r\n HideVehicleMutationVariables,\r\n T\r\n >({\r\n name: 'HideVehicle',\r\n mutation: gql`\r\n mutation HideVehicleMutation($command: HideVehicle!) {\r\n hideVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public setVehicleControlZoneId(\r\n command: SetVehicleControlZoneId,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'SetVehicleControlZoneId',\r\n SetVehicleControlZoneIdMutation,\r\n SetVehicleControlZoneIdMutationVariables,\r\n T\r\n >({\r\n name: 'SetVehicleControlZoneId',\r\n mutation: gql`\r\n mutation SetVehicleControlZoneIdMutation($command: SetVehicleControlZoneId!) {\r\n setVehicleControlZoneId(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public undeleteVehicle(\r\n command: UndeleteVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UndeleteVehicle',\r\n UndeleteVehicleMutation,\r\n UndeleteVehicleMutationVariables,\r\n T\r\n >({\r\n name: 'UndeleteVehicle',\r\n mutation: gql`\r\n mutation UndeleteVehicleMutation($command: UndeleteVehicle!) {\r\n undeleteVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public unhideVehicle(\r\n command: UnhideVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UnhideVehicle',\r\n UnhideVehicleMutation,\r\n UnhideVehicleMutationVariables,\r\n T\r\n >({\r\n name: 'UnhideVehicle',\r\n mutation: gql`\r\n mutation UnhideVehicleMutation($command: UnhideVehicle!) {\r\n unhideVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateVehicle(\r\n command: UpdateVehicle,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateVehicle',\r\n UpdateVehicleMutation,\r\n UpdateVehicleMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateVehicle',\r\n mutation: gql`\r\n mutation UpdateVehicleMutation($command: UpdateVehicle!) {\r\n updateVehicle(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n // VehicleStateInspections\r\n public addVehicleStateInspection(\r\n command: AddVehicleStateInspection,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'AddVehicleStateInspection',\r\n AddVehicleStateInspectionMutation,\r\n AddVehicleStateInspectionMutationVariables,\r\n T\r\n >({\r\n name: 'AddVehicleStateInspection',\r\n mutation: gql`\r\n mutation AddVehicleStateInspectionMutation($command: AddVehicleStateInspection!) {\r\n addVehicleStateInspection(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public deleteVehicleStateInspection(\r\n command: DeleteVehicleStateInspection,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'DeleteVehicleStateInspection',\r\n DeleteVehicleStateInspectionMutation,\r\n DeleteVehicleStateInspectionMutationVariables,\r\n T\r\n >({\r\n name: 'DeleteVehicleStateInspection',\r\n mutation: gql`\r\n mutation DeleteVehicleStateInspectionMutation($command: DeleteVehicleStateInspection!) {\r\n deleteVehicleStateInspection(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n public updateVehicleStateInspection(\r\n command: UpdateVehicleStateInspection,\r\n options: GraphQLMutationExecutionOptions,\r\n ): Observable> {\r\n return this._executor.execute<\r\n 'UpdateVehicleStateInspection',\r\n UpdateVehicleStateInspectionMutation,\r\n UpdateVehicleStateInspectionMutationVariables,\r\n T\r\n >({\r\n name: 'UpdateVehicleStateInspection',\r\n mutation: gql`\r\n mutation UpdateVehicleStateInspectionMutation($command: UpdateVehicleStateInspection!) {\r\n updateVehicleStateInspection(command: $command) {\r\n status\r\n data\r\n command\r\n emittedEvents\r\n entities\r\n errors {\r\n message\r\n code\r\n }\r\n }\r\n }\r\n `,\r\n variables: { command },\r\n options,\r\n });\r\n }\r\n}\r\n","import { UserRole } from 'src/graphql/generated/graphql.generated';\r\nimport { PermissionsConfiguration } from 'src/lib/amg-authorization/permissions.model';\r\nimport {\r\n OpsCommand,\r\n OpsFeature,\r\n OpsFeatures,\r\n} from '../graphql/generated/operations-mutations.generated';\r\nimport {\r\n OrgCommand,\r\n OrgFeature,\r\n OrgFeatures,\r\n} from '../graphql/generated/organization-mutations.generated';\r\n\r\nexport enum TcsCustomPermission {\r\n AccessPublicPages = 'AccessPublicPages',\r\n AccessInsights = 'AccessInsights',\r\n AccessDevKit = 'AccessDevKit',\r\n ManageOperations = 'ManageOperations',\r\n ManageOrg = 'ManageOrg',\r\n GrantAllCompanyAccess = 'GrantAllCompanyAccess',\r\n ViewCards = 'ViewCards',\r\n AccessRegionsWithoutCommCenterAssignment = 'AccessRegionsWithoutCommCenterAssignment',\r\n AccessCommCentersWithinScope = 'AccessScopedCommCenters',\r\n EditUnitName = 'EditUnitName',\r\n ViewFleetStatusDashboard = 'ViewFleetStatusDashboard',\r\n ViewFleetStatusAllCompanies = 'ViewFleetStatusAllCompanies',\r\n ViewFixedWingFleetStatus = 'ViewFixedWingFleetStatus',\r\n ViewGroundFleetStatus = 'ViewGroundFleetStatus',\r\n ViewRotorWingFleetStatus = 'ViewRotorWingFleetStatus',\r\n ViewCrewMemberPII = 'ViewCrewMemberPII',\r\n ViewPatientPII = 'ViewPatientPII',\r\n ViewFullCardDetails = 'ViewFullCardDetails',\r\n EditUnitAbbreviation = 'EditUnitAbbreviation',\r\n EditUnitRegion = 'EditUnitRegion',\r\n EditUnitBase = 'EditUnitBase',\r\n SetUnitBase = 'SetUnitBase',\r\n EditUnitAdministrationFlag = 'EditUnitAdministrationFlag',\r\n Impersonate = 'Impersonate',\r\n ViewPermissionMatrix = 'ViewPermissionMatrix',\r\n ViewDeletedCards = 'ViewDeletedCards',\r\n UpdateVehicleCapabilities = 'UpdateVehicleCapabilities',\r\n SetupTransferCenterRegion = 'SetupTransferCenterRegion',\r\n DeleteTransferCenterCall = 'DeleteTransferCenterCall',\r\n ChangeVehicleCompany = 'ChangeVehicleCompany',\r\n ManageVehicleOos = 'ManageVehicleOos',\r\n ResendImageTrend = 'ResendImageTrend',\r\n DisplaySensitiveDetails = 'DisplaySensitiveDetails',\r\n ViewNotificationsFromAllUsers = 'ViewNotificationsFromAllUsers',\r\n AccessControlZonesWithinScope = 'AccessOpsControlZone',\r\n AccessAsb = 'AccessAsb',\r\n ResendCardToDataWarehouse = 'ResendCardToDataWarehouse',\r\n AccessOosRum = 'AccessOosRum',\r\n ManageOosRum = 'ManageOosRum',\r\n ReadOnlyCommCentersWithinScope = 'ReadonlyAccessScopedCommCenters',\r\n ReadonlyOperations = 'ReadonlyOperations',\r\n AccessRtt = 'AccessRtt',\r\n LockCard = 'LockCard',\r\n ViewLockedCards = 'ViewLockedCards',\r\n AccessSupport = 'AccessSupport',\r\n ManageDeclineReasons = 'ManageDeclineReasons',\r\n ManageCancellationReasons = 'ManageCancellationReasons',\r\n}\r\n\r\nexport type TcsPermission = TcsCustomPermission | OpsCommand | OrgCommand;\r\nexport const tcsPermissions: TcsPermission[] = [\r\n ...Object.values(OpsCommand),\r\n ...Object.values(OrgCommand),\r\n ...Object.values(TcsCustomPermission),\r\n];\r\n\r\nexport type TcsPermissionSet =\r\n | OrgFeature\r\n | OpsFeature\r\n | 'CrewMemberCompliance'\r\n | 'RestrictedUnitFields'\r\n | 'FleetStatus'\r\n | 'OpsReadonly';\r\n\r\nexport function buildTcsPermissions(): PermissionsConfiguration<\r\n UserRole,\r\n TcsPermission,\r\n TcsPermissionSet\r\n> {\r\n const baseConfig: PermissionsConfiguration = {\r\n roles: Object.values(UserRole),\r\n permissions: tcsPermissions,\r\n permissionSets: {\r\n FleetStatus: [\r\n TcsCustomPermission.ViewFleetStatusDashboard,\r\n TcsCustomPermission.ViewFixedWingFleetStatus,\r\n TcsCustomPermission.ViewRotorWingFleetStatus,\r\n TcsCustomPermission.ViewGroundFleetStatus,\r\n ],\r\n CrewMemberCompliance: [\r\n OrgCommand.AddOutOfComplianceCrewMember,\r\n OrgCommand.UpdateOutOfComplianceCrewMember,\r\n OrgCommand.RemoveCrewMemberFromOutOfCompliance,\r\n ],\r\n RestrictedUnitFields: [\r\n TcsCustomPermission.EditUnitRegion,\r\n TcsCustomPermission.EditUnitAdministrationFlag,\r\n ],\r\n OpsReadonly: [\r\n TcsCustomPermission.ReadOnlyCommCentersWithinScope,\r\n TcsCustomPermission.AccessRegionsWithoutCommCenterAssignment,\r\n TcsCustomPermission.ViewCards,\r\n TcsCustomPermission.ViewCrewMemberPII,\r\n TcsCustomPermission.ViewPatientPII,\r\n TcsCustomPermission.ViewFullCardDetails,\r\n TcsCustomPermission.DisplaySensitiveDetails,\r\n ],\r\n ...OpsFeatures,\r\n ...OrgFeatures,\r\n },\r\n grants: {\r\n all: {\r\n permissions: [TcsCustomPermission.AccessPublicPages],\r\n },\r\n roles: {\r\n AsbDataManager: {\r\n permissionSets: [OrgFeature.Vehicles],\r\n permissions: [\r\n OrgCommand.AddVehicleMaintenance,\r\n OrgCommand.DeleteVehicleMaintenance,\r\n OrgCommand.UpdateVehicleMaintenance,\r\n ],\r\n },\r\n AsbViewer: {\r\n permissions: [TcsCustomPermission.AccessAsb],\r\n },\r\n AviationDataManager: {\r\n permissionSets: [OrgFeature.VehicleModels, OrgFeature.Vehicles, OrgFeature.FuelTanks],\r\n permissions: [\r\n TcsCustomPermission.ManageOrg,\r\n TcsCustomPermission.ChangeVehicleCompany,\r\n TcsCustomPermission.AccessInsights,\r\n ],\r\n },\r\n AviationSupervisor: {\r\n permissions: [\r\n TcsCustomPermission.ManageVehicleOos,\r\n TcsCustomPermission.ManageOperations,\r\n TcsCustomPermission.AccessInsights,\r\n ],\r\n inherits: [UserRole.Pilot],\r\n },\r\n Biller: {\r\n permissions: [TcsCustomPermission.ManageOperations, TcsCustomPermission.AccessInsights],\r\n },\r\n ImageTrend: {\r\n permissions: [\r\n TcsCustomPermission.ResendImageTrend,\r\n TcsCustomPermission.AccessInsights,\r\n TcsCustomPermission.ResendCardToDataWarehouse,\r\n ],\r\n },\r\n BillerCorrectionsTeam: {\r\n permissions: [OpsCommand.UpdateCardBillable],\r\n inherits: [UserRole.Biller],\r\n },\r\n Communications: {\r\n permissions: [\r\n ...OpsFeatures.Units.filter(\r\n (p) =>\r\n p !== OpsCommand.TeleportUnit &&\r\n p !== OpsCommand.DisableUnit &&\r\n p !== OpsCommand.RemoveVehicleFromUnit &&\r\n p !== OpsCommand.RemoveDelayFromUnit &&\r\n p !== OpsCommand.DelayUnit,\r\n ),\r\n TcsCustomPermission.ManageOperations,\r\n TcsCustomPermission.AccessInsights,\r\n TcsCustomPermission.AccessCommCentersWithinScope,\r\n TcsCustomPermission.ViewCards,\r\n OpsCommand.ReOpenCard,\r\n TcsCustomPermission.AccessRegionsWithoutCommCenterAssignment,\r\n TcsCustomPermission.ViewCrewMemberPII,\r\n TcsCustomPermission.ViewPatientPII,\r\n TcsCustomPermission.DisplaySensitiveDetails,\r\n TcsCustomPermission.ViewFullCardDetails,\r\n OpsCommand.AddMedicalControlContactLogEntry,\r\n ],\r\n permissionSets: [\r\n OpsFeature.Timestamps,\r\n OpsFeature.QuestionnaireResponses,\r\n OpsFeature.ReceivingFacilityRequests,\r\n 'FleetStatus',\r\n OpsFeature.ActiveAlerts,\r\n OpsFeature.PassdownLogs,\r\n ],\r\n },\r\n CommunicationsSupervisor: {\r\n permissionSets: [\r\n 'RestrictedUnitFields',\r\n OpsFeature.Operations,\r\n OpsFeature.TransportOffers,\r\n OpsFeature.Alerts,\r\n OpsFeature.LocationHazards,\r\n OpsFeature.NotificationGroups,\r\n OrgFeature.Agencies,\r\n OrgFeature.AgencyLocations,\r\n OrgFeature.Airports,\r\n OrgFeature.Fbos,\r\n OrgFeature.Locations,\r\n OrgFeature.Physicians,\r\n OpsFeature.Cards,\r\n OpsFeature.Requests,\r\n OpsFeature.UnitActivationRules,\r\n OrgFeature.SpecialtyTeams,\r\n OrgFeature.SpecialtyTeamMembers,\r\n ],\r\n permissions: [\r\n OrgCommand.AddMedicalFacility,\r\n OrgCommand.DeleteMedicalFacility,\r\n OrgCommand.UpdateMedicalFacility,\r\n OrgCommand.UpdateBase,\r\n OpsCommand.TeleportUnit,\r\n OrgCommand.UpdateVehicle,\r\n TcsCustomPermission.ManageOrg,\r\n TcsCustomPermission.ViewDeletedCards,\r\n TcsCustomPermission.UpdateVehicleCapabilities,\r\n TcsCustomPermission.DeleteTransferCenterCall,\r\n OpsCommand.RemoveVehicleFromUnit,\r\n OrgCommand.UpdateVehicleStateInspection,\r\n TcsCustomPermission.ViewNotificationsFromAllUsers,\r\n OpsCommand.DelayUnit,\r\n OpsCommand.RemoveDelayFromUnit,\r\n ],\r\n inherits: [UserRole.Communications, UserRole.ImageTrend],\r\n },\r\n FleetStatusOperations: {\r\n permissionSets: ['FleetStatus'],\r\n permissions: [\r\n TcsCustomPermission.ViewCrewMemberPII,\r\n TcsCustomPermission.ViewPatientPII,\r\n TcsCustomPermission.DisplaySensitiveDetails,\r\n TcsCustomPermission.AccessInsights,\r\n ],\r\n },\r\n FleetStatusViewer: {\r\n permissionSets: ['FleetStatus'],\r\n permissions: [\r\n TcsCustomPermission.ViewCrewMemberPII,\r\n TcsCustomPermission.DisplaySensitiveDetails,\r\n ],\r\n },\r\n Clinical: {\r\n permissionSets: ['FleetStatus'],\r\n permissions: [\r\n TcsCustomPermission.DisplaySensitiveDetails,\r\n TcsCustomPermission.AccessInsights,\r\n ],\r\n },\r\n External: {\r\n permissionSets: ['FleetStatus'],\r\n },\r\n QaSupervisor: {\r\n inherits: [UserRole.QaManager],\r\n },\r\n QaManager: {\r\n permissions: [\r\n ...OpsFeatures.Units.filter(\r\n (p) =>\r\n p !== OpsCommand.TeleportUnit &&\r\n p !== OpsCommand.DisableUnit &&\r\n p !== OpsCommand.RemoveVehicleFromUnit &&\r\n p !== OpsCommand.RemoveDelayFromUnit &&\r\n p !== OpsCommand.DelayUnit,\r\n ),\r\n TcsCustomPermission.ManageOperations,\r\n TcsCustomPermission.AccessInsights,\r\n TcsCustomPermission.ViewCards,\r\n OpsCommand.ReOpenCard,\r\n TcsCustomPermission.AccessRegionsWithoutCommCenterAssignment,\r\n TcsCustomPermission.ViewCrewMemberPII,\r\n TcsCustomPermission.ViewPatientPII,\r\n TcsCustomPermission.DisplaySensitiveDetails,\r\n TcsCustomPermission.ViewFullCardDetails,\r\n OpsCommand.AddMedicalControlContactLogEntry,\r\n ],\r\n permissionSets: [\r\n OpsFeature.Timestamps,\r\n OpsFeature.QuestionnaireResponses,\r\n OpsFeature.ReceivingFacilityRequests,\r\n 'FleetStatus',\r\n OpsFeature.ActiveAlerts,\r\n OpsFeature.PassdownLogs,\r\n ],\r\n },\r\n ComplianceManager: {\r\n permissionSets: ['CrewMemberCompliance'],\r\n permissions: [TcsCustomPermission.ManageOrg, TcsCustomPermission.AccessInsights],\r\n },\r\n GlobalDataManager: {\r\n permissionSets: [\r\n OpsFeature.ConfigurationSettings,\r\n OpsFeature.TimestampTypes,\r\n OpsFeature.CancellationReasons,\r\n OpsFeature.DeclineReasons,\r\n OpsFeature.TransportReasons,\r\n OpsFeature.DeclineSecondaryReasons,\r\n OpsFeature.CancellationSecondaryReasons,\r\n ],\r\n inherits: [UserRole.OperationsDataManager],\r\n permissions: [\r\n TcsCustomPermission.ManageOrg,\r\n OrgCommand.AddCompany,\r\n TcsCustomPermission.ViewPermissionMatrix,\r\n TcsCustomPermission.AccessInsights,\r\n ],\r\n },\r\n GlobalPermissionsManager: {\r\n permissions: [TcsCustomPermission.ManageOrg, TcsCustomPermission.AccessInsights],\r\n },\r\n Developer: {\r\n permissions: 'all',\r\n },\r\n OperationsDataManager: {\r\n permissionSets: [\r\n OpsFeature.Alerts,\r\n OpsFeature.LocationHazards,\r\n OrgFeature.CommunicationCenters,\r\n OrgFeature.Programs,\r\n OrgFeature.Bases,\r\n OrgFeature.Vehicles,\r\n OrgFeature.VehicleModels,\r\n OrgFeature.Regions,\r\n OrgFeature.RegionGroups,\r\n OrgFeature.People,\r\n OrgFeature.FuelTanks,\r\n OpsFeature.NotificationTemplates,\r\n OpsFeature.OfferAlgorithms,\r\n OpsFeature.OutOfServiceReasons,\r\n OpsFeature.OutOfServiceSecondaryReasons,\r\n OpsFeature.Timelines,\r\n OpsFeature.Questions,\r\n OpsFeature.Questionnaires,\r\n OrgFeature.TransferCenters,\r\n OpsFeature.TransferReasons,\r\n OpsFeature.DiversionReasons,\r\n ],\r\n permissions: [\r\n ...OpsFeatures.Units.filter((p) => p !== OpsCommand.DisableUnit),\r\n TcsCustomPermission.ManageOrg,\r\n OrgCommand.UpdateCompany,\r\n TcsCustomPermission.UpdateVehicleCapabilities,\r\n TcsCustomPermission.SetupTransferCenterRegion,\r\n TcsCustomPermission.AccessInsights,\r\n TcsCustomPermission.SetUnitBase,\r\n ],\r\n },\r\n OperationsPermissionsManager: {\r\n permissions: [TcsCustomPermission.ManageOrg, TcsCustomPermission.AccessInsights],\r\n },\r\n OCC: {\r\n permissions: [\r\n TcsCustomPermission.AccessControlZonesWithinScope,\r\n TcsCustomPermission.AccessInsights,\r\n ],\r\n },\r\n OccReader: {\r\n permissions: [TcsCustomPermission.AccessControlZonesWithinScope],\r\n },\r\n Executive: {\r\n permissionSets: ['FleetStatus'],\r\n permissions: [\r\n TcsCustomPermission.ViewCrewMemberPII,\r\n TcsCustomPermission.ViewFleetStatusAllCompanies,\r\n TcsCustomPermission.DisplaySensitiveDetails,\r\n TcsCustomPermission.AccessInsights,\r\n ],\r\n },\r\n Stakeholder: {\r\n permissions: [\r\n TcsCustomPermission.SetUnitBase,\r\n TcsCustomPermission.EditUnitBase,\r\n TcsCustomPermission.EditUnitName,\r\n TcsCustomPermission.EditUnitAbbreviation,\r\n TcsCustomPermission.LockCard,\r\n TcsCustomPermission.ViewLockedCards,\r\n TcsCustomPermission.AccessSupport,\r\n TcsCustomPermission.ManageCancellationReasons,\r\n TcsCustomPermission.ManageDeclineReasons,\r\n ],\r\n },\r\n FixedWingCoordinator: {\r\n permissions: [\r\n TcsCustomPermission.ViewFleetStatusDashboard,\r\n TcsCustomPermission.ViewFleetStatusAllCompanies,\r\n TcsCustomPermission.ViewFixedWingFleetStatus,\r\n TcsCustomPermission.AccessInsights,\r\n ],\r\n },\r\n Pilot: {\r\n permissionSets: ['FleetStatus'],\r\n },\r\n ProgramManager: {\r\n permissions: [TcsCustomPermission.AccessInsights],\r\n },\r\n AviationPermissionsManager: {\r\n permissions: [TcsCustomPermission.AccessInsights],\r\n },\r\n RemoteUser: {\r\n permissions: [TcsCustomPermission.AccessInsights],\r\n },\r\n TrmProgramAdmin: {\r\n permissions: [TcsCustomPermission.AccessInsights],\r\n },\r\n OpsReader: {\r\n permissions: [TcsCustomPermission.ReadonlyOperations],\r\n permissionSets: ['OpsReadonly'],\r\n },\r\n OosViewer: {\r\n permissions: [TcsCustomPermission.AccessOosRum],\r\n },\r\n OosMaintenanceController: {\r\n permissions: [\r\n TcsCustomPermission.AccessOosRum,\r\n TcsCustomPermission.ManageOosRum,\r\n TcsCustomPermission.ManageVehicleOos,\r\n ],\r\n },\r\n },\r\n },\r\n };\r\n\r\n return baseConfig;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { selectCompanyByCompanyCode } from 'src/store/entityStores/company-selectors';\r\nimport {\r\n CompanyProps,\r\n selectAllCompanyEntities,\r\n} from 'src/store/generated/company-record.generated';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CompanyQueryService {\r\n constructor(private _store: Store) {}\r\n\r\n public getCompanyByCode(code: string): Observable {\r\n return this._store.select(selectCompanyByCompanyCode(code));\r\n }\r\n\r\n public getCompanies(): Observable {\r\n return this._store.select(selectAllCompanyEntities).pipe(map((c) => c.valueSeq().toArray()));\r\n }\r\n}\r\n","import { Injectable, OnDestroy } from '@angular/core';\r\nimport { GuardsCheckEnd, NavigationEnd, Router, RouterStateSnapshot } from '@angular/router';\r\nimport { BehaviorSubject, Observable, Subject } from 'rxjs';\r\nimport { distinctUntilChanged, filter, map, switchMap, takeUntil } from 'rxjs/operators';\r\nimport { CompanyProps } from 'src/store/generated/company-record.generated';\r\nimport { filterNull } from 'src/util/rxjs/operators/filter-null';\r\nimport { CompanyQueryService } from './company-query.service';\r\n\r\nfunction getCompanyCode(state: RouterStateSnapshot) {\r\n let route = state.root;\r\n let companyCode: string | undefined = route.params.companyCode;\r\n while (companyCode == null && route.firstChild != null) {\r\n route = route.firstChild;\r\n companyCode = route.params.companyCode;\r\n }\r\n return companyCode;\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CompanyContextService implements OnDestroy {\r\n private _onDestroy$ = new Subject();\r\n\r\n private readonly _onGuardCheckEnd$ = new BehaviorSubject(undefined);\r\n\r\n private readonly _onNavigationEnd$ = new BehaviorSubject(undefined);\r\n\r\n get company$(): Observable {\r\n return this._onNavigationEnd$;\r\n }\r\n\r\n get company(): CompanyProps | undefined {\r\n return this._onNavigationEnd$.getValue();\r\n }\r\n\r\n get postGuardCompany(): CompanyProps | undefined {\r\n return this._onGuardCheckEnd$.getValue();\r\n }\r\n\r\n public filterInvalidCompany(companyCode: string | null | undefined) {\r\n return companyCode != null;\r\n }\r\n\r\n constructor(router: Router, companyQuery: CompanyQueryService) {\r\n router.events\r\n .pipe(\r\n filter((e) => e instanceof GuardsCheckEnd),\r\n map((e) => e as GuardsCheckEnd),\r\n map((e) => (e.shouldActivate ? getCompanyCode(e.state) : undefined)),\r\n filter((companyCode) => this.filterInvalidCompany(companyCode)),\r\n distinctUntilChanged(),\r\n filterNull(),\r\n switchMap((cc) =>\r\n companyQuery\r\n .getCompanies()\r\n .pipe(\r\n map((companies) =>\r\n companies.find((c) => c.companyCode.toLocaleLowerCase() === cc.toLocaleLowerCase()),\r\n ),\r\n ),\r\n ),\r\n takeUntil(this._onDestroy$),\r\n )\r\n .subscribe(this._onGuardCheckEnd$);\r\n\r\n router.events\r\n .pipe(\r\n filter((e) => e instanceof NavigationEnd),\r\n map((e) => e as NavigationEnd),\r\n map((e) => {\r\n return this.postGuardCompany;\r\n }),\r\n takeUntil(this._onDestroy$),\r\n )\r\n .subscribe(this._onNavigationEnd$);\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this._onDestroy$.next(null);\r\n this._onDestroy$.complete();\r\n }\r\n}\r\n","import { createSelector } from '@ngrx/store';\r\nimport { CardStatus, OperationStatus } from 'src/graphql/generated/graphql.generated';\r\nimport { isNullOrEmpty, isNullOrWhitespace } from 'src/util/string';\r\nimport { selectAllCardEntities } from '../generated/card-record.generated';\r\nimport { selectAllCardSummaryEntities } from '../generated/card-summary-record.generated';\r\nimport {\r\n RequestPatientRecord,\r\n selectAllRequestPatientEntities,\r\n} from '../generated/request-patient-record.generated';\r\nimport {\r\n selectVehicleControlZoneEntitiesByCompanyId,\r\n selectVehicleControlZoneEntitiesByControlZoneId,\r\n} from '../generated/vehicle-control-zone-record.generated';\r\nimport {\r\n selectBaseControlZoneEntitiesByCompanyId,\r\n selectBaseControlZoneEntitiesByControlZoneId,\r\n} from '../generated/base-control-zone-record.generated';\r\nimport { selectAllUnitSummaryEntities } from '../generated/unit-summary-record.generated';\r\nimport { selectAllCards, selectAllCardSummaries } from './entity-store-selectors';\r\n\r\nexport function selectCardByOperationId(operationId: string) {\r\n return createSelector(selectAllCards, (cards) =>\r\n cards.find((c) => c.operationId === operationId),\r\n );\r\n}\r\n\r\nexport function selectCardByRequestId(requestId: string) {\r\n return createSelector(selectAllCards, (cards) => {\r\n return cards.find((c) => c.requestId === requestId);\r\n });\r\n}\r\n\r\nexport function selectCardsByCompanyId(companyId: string) {\r\n return createSelector(selectAllCards, (cards) =>\r\n cards.valueSeq().filter((c) => c.companyId === companyId),\r\n );\r\n}\r\n\r\nexport function selectCardByCardNumber(cardNumber: string) {\r\n return createSelector(selectAllCards, (cards) => {\r\n return cards.find((c) => c.cardNumber === cardNumber);\r\n });\r\n}\r\n\r\nexport function selectCardById(id: string) {\r\n return createSelector(selectAllCards, (cards) => {\r\n return cards.get(id);\r\n });\r\n}\r\n\r\nexport function selectCardSummariesByControlZoneCompanyId(companyId: string) {\r\n return createSelector(\r\n selectAllCardSummaryEntities,\r\n selectAllUnitSummaryEntities,\r\n selectVehicleControlZoneEntitiesByCompanyId(companyId),\r\n selectBaseControlZoneEntitiesByCompanyId(companyId),\r\n (cards, units, vehiclesControlZones, baseControlZones) => {\r\n const vids = vehiclesControlZones.map((v) => v.vehicleId);\r\n const baseIds = baseControlZones.map((b) => b.baseId);\r\n return cards.valueSeq().filter((c) => {\r\n const unit = units.find((u) => u.id === c.unitSummaryId);\r\n return (\r\n c.vehicleId != null &&\r\n (vids.includes(c.vehicleId) || (unit != null && baseIds.includes(unit.baseId)))\r\n );\r\n });\r\n },\r\n );\r\n}\r\n\r\nexport function selectCardSummariesByControlZoneId(controlZoneId: string) {\r\n return createSelector(\r\n selectAllCardSummaryEntities,\r\n selectAllUnitSummaryEntities,\r\n selectVehicleControlZoneEntitiesByControlZoneId(controlZoneId),\r\n selectBaseControlZoneEntitiesByControlZoneId(controlZoneId),\r\n (cards, units, vehicleControlZones, baseControlZones) => {\r\n const vids = vehicleControlZones.map((v) => v.vehicleId);\r\n const baseIds = baseControlZones.map((b) => b.baseId);\r\n return cards.valueSeq().filter((c) => {\r\n const unit = units.find((u) => u.id === c.unitSummaryId);\r\n return (\r\n c.vehicleId != null &&\r\n (vids.includes(c.vehicleId) || (unit != null && baseIds.includes(unit.baseId)))\r\n );\r\n });\r\n },\r\n );\r\n}\r\n\r\nexport function selectCardSummariesByRegions(regionIds: string[], ...status: CardStatus[]) {\r\n return createSelector(selectAllCardSummaries, (cards) => {\r\n return cards\r\n .filter((c) => regionIds.includes(c.regionId))\r\n .filter((c) => status.length === 0 || status.includes(c.status))\r\n .sortBy((c) => c.cardNumber)\r\n .valueSeq();\r\n });\r\n}\r\n\r\nexport function selectCardSummariesByRegionId(regionId: string, ...status: CardStatus[]) {\r\n return createSelector(selectAllCardSummaries, (cards) => {\r\n const summaries = cards\r\n .filter((c) => status.length === 0 || status.includes(c.status))\r\n .filter((c) => c.regionId === regionId)\r\n .sortBy((c) => c.cardNumber);\r\n return summaries;\r\n });\r\n}\r\n\r\nexport function selectNewWebOrderCardsByRegion(regionId: string) {\r\n return createSelector(selectCardSummariesByRegionId(regionId), (cards) => {\r\n return cards.filter(\r\n (c) =>\r\n c.apiWebhookSubscriptionId != null &&\r\n c.status === CardStatus.AwaitingAssignment &&\r\n c.webOrderAcknowledgedTime == null,\r\n );\r\n });\r\n}\r\n\r\nexport function selectNewWebOrderCardsByRegions(regionIds: string[]) {\r\n return createSelector(selectCardSummariesByRegions(regionIds), (cards) => {\r\n return cards.filter(\r\n (c) =>\r\n c.apiWebhookSubscriptionId != null &&\r\n c.status === CardStatus.AwaitingAssignment &&\r\n c.webOrderAcknowledgedTime == null,\r\n );\r\n });\r\n}\r\n\r\nexport function selectWebOrderStandbyActivationRequestedCardsByRegion(regionId: string) {\r\n return createSelector(selectCardSummariesByRegionId(regionId), (cards) => {\r\n return cards\r\n .filter((c) => c.apiWebhookSubscriptionId != null)\r\n .filter((c) => c.operation != null && c.operation.status === OperationStatus.OnStandby)\r\n .filter((c) => c.request != null && c.request.standbyActivationRequested === true);\r\n });\r\n}\r\n\r\nexport function selectCardSummaryByUnitId(unitId: string) {\r\n return createSelector(selectAllCardSummaries, (cards) => {\r\n return cards.find((c) => c.unitId === unitId);\r\n });\r\n}\r\n\r\nexport function selectCardsByPatientName(nameLike: string) {\r\n return createSelector(\r\n selectAllCardEntities,\r\n selectAllRequestPatientEntities,\r\n (cards, patients) => {\r\n if (isNullOrWhitespace(nameLike)) {\r\n return undefined;\r\n }\r\n const compare = (a1: string, a2: string) =>\r\n a1.toLocaleLowerCase().includes(a2.toLocaleLowerCase());\r\n const hasName = (p: RequestPatientRecord, first: string, last: string) =>\r\n isNullOrEmpty(last)\r\n ? compare(p.firstName ?? '', first) || compare(p.lastName ?? '', first)\r\n : compare(p.firstName ?? '', first) && compare(p.lastName ?? '', last);\r\n const [firstName, ...segments] = nameLike\r\n .split(' ')\r\n .map((n) => n.trim())\r\n .filter((n) => n !== '');\r\n const lastName = segments.join(' ');\r\n const reqIds = patients\r\n .filter((p) => hasName(p, firstName, lastName))\r\n .map((p) => p.requestId);\r\n return cards\r\n .filter((c) => (c.requestId == null ? false : reqIds.includes(c.requestId)))\r\n .toOrderedSet();\r\n },\r\n );\r\n}\r\n\r\nexport function selectOperationCardSummariesByCommCenterIds(commCenterIds: string[]) {\r\n return createSelector(selectAllCardSummaries, (cards) => {\r\n return cards\r\n .filter(\r\n (c) =>\r\n c.status === CardStatus.AwaitingLaunch ||\r\n (c.status === CardStatus.Underway &&\r\n c.communicationCenterId != null &&\r\n commCenterIds.includes(c.communicationCenterId)),\r\n )\r\n .sortBy((c) => c.cardNumber)\r\n .valueSeq();\r\n });\r\n}\r\n","import { createSelector } from '@ngrx/store';\r\nimport {\r\n TransportOfferResponse,\r\n TransportOfferStatus,\r\n} from 'src/graphql/generated/graphql.generated';\r\nimport { isNullOrWhitespace } from '../../util/string';\r\nimport {\r\n selectTransportOfferEntitiesByRequestId,\r\n TransportOfferProps,\r\n TransportOfferRecord,\r\n} from '../generated/transport-offer-record.generated';\r\nimport { selectAllTransportOffers } from './entity-store-selectors';\r\n\r\nfunction isOffered(offer: TransportOfferRecord): boolean {\r\n return (\r\n offer.status === TransportOfferStatus.Offered &&\r\n offer.response === TransportOfferResponse.Pending\r\n );\r\n}\r\n\r\nexport function selectTransportOfferById(id: string) {\r\n return createSelector(selectAllTransportOffers, (transportOffers) => {\r\n return transportOffers.find((t) => t.id === id);\r\n });\r\n}\r\n\r\nexport function selectFirstTransportOfferByUnitId(unitId: string, excludedId: string) {\r\n return createSelector(selectAllTransportOffers, (transportOffers) => {\r\n return transportOffers.find(\r\n (t) =>\r\n t.unitId === unitId && t.id !== excludedId && t.status === TransportOfferStatus.Offered,\r\n );\r\n });\r\n}\r\n\r\nexport function selectTransportOffersByRequestId(requestId: string) {\r\n return createSelector(selectAllTransportOffers, (offers) =>\r\n offers.filter((o) => o.requestId === requestId).valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectFirstCandidateTransportOfferByRequestId(requestId: string) {\r\n return createSelector(selectAllTransportOffers, (offers) =>\r\n offers\r\n .filter((o) => o.requestId === requestId)\r\n .sortBy((o) => o.rank)\r\n .first(),\r\n );\r\n}\r\n\r\nexport function selectCandidateTransportOffersByRequestId(requestId: string) {\r\n return createSelector(selectTransportOffersByRequestId(requestId), (transportOffers) => {\r\n return transportOffers.filter((o) => o.status === TransportOfferStatus.Candidate);\r\n });\r\n}\r\n\r\nexport function selectMappedOffersByRequestId(requestId: string) {\r\n const ignored = [TransportOfferStatus.Cancelled, TransportOfferStatus.Skipped];\r\n\r\n return createSelector(selectAllTransportOffers, (offers) =>\r\n offers\r\n .filter((o) => o.requestId === requestId)\r\n .filter((o) => !ignored.includes(o.status))\r\n .valueSeq(),\r\n );\r\n}\r\n\r\nexport function selectAvailableOrRespondedTransportOffersByRequestId(requestId: string) {\r\n return createSelector(selectAllTransportOffers, (transportOffers) => {\r\n return transportOffers\r\n .filter(\r\n (t) =>\r\n t.requestId === requestId &&\r\n t.status !== TransportOfferStatus.Skipped &&\r\n t.status !== TransportOfferStatus.Cancelled &&\r\n (t.status !== TransportOfferStatus.Responded ||\r\n (t.status === TransportOfferStatus.Responded &&\r\n (t.response === TransportOfferResponse.Accepted ||\r\n t.response === TransportOfferResponse.Pending))),\r\n )\r\n .sortBy((t) => (isOffered(t) ? 0 : t.rank));\r\n });\r\n}\r\n\r\nexport function selectSkippedOrDeclinedTransportOffersByRequestId(requestId: string) {\r\n return createSelector(selectAllTransportOffers, (transportOffers) => {\r\n return transportOffers\r\n .filter(\r\n (t) =>\r\n t.requestId === requestId &&\r\n (t.status === TransportOfferStatus.Skipped ||\r\n t.status === TransportOfferStatus.Cancelled ||\r\n t.response === TransportOfferResponse.Declined ||\r\n t.response === TransportOfferResponse.Aborted),\r\n )\r\n .sortBy((t) => t.rank);\r\n });\r\n}\r\n\r\nexport function selectCancelledOrDeclinedTransportOffersByRequestId(requestId: string) {\r\n return createSelector(selectAllTransportOffers, (transportOffers) => {\r\n return transportOffers\r\n .filter(\r\n (t) =>\r\n t.requestId === requestId &&\r\n (t.status === TransportOfferStatus.Cancelled ||\r\n t.response === TransportOfferResponse.Declined ||\r\n t.response === TransportOfferResponse.Aborted),\r\n )\r\n .sortBy((t) => t.rank);\r\n });\r\n}\r\n\r\nexport function selectAutoDeclineTransportOffersByRequestId(requestId: string) {\r\n return createSelector(\r\n selectAvailableOrRespondedTransportOffersByRequestId(requestId),\r\n (offers) => {\r\n return offers.takeWhile(\r\n (o) => o.declineReasonId != null && o.status !== TransportOfferStatus.Offered,\r\n );\r\n },\r\n );\r\n}\r\n\r\nexport function selectOfferedOrAcceptedTransportByRequestId(requestId: string) {\r\n return createSelector(selectAllTransportOffers, (offers) => {\r\n return offers.find(\r\n (o) =>\r\n o.requestId === requestId &&\r\n (isOffered(o) ||\r\n (o.response === TransportOfferResponse.Accepted &&\r\n o.status !== TransportOfferStatus.Cancelled)),\r\n );\r\n });\r\n}\r\n\r\nexport function selectActiveTransportOfferByRequestId(requestId: string) {\r\n return createSelector(\r\n selectAvailableOrRespondedTransportOffersByRequestId(requestId),\r\n selectAutoDeclineTransportOffersByRequestId(requestId),\r\n (offers, declinableOffers) => {\r\n const acceptedOffer = offers.find((o) => o.response === TransportOfferResponse.Accepted);\r\n const offer =\r\n acceptedOffer != null\r\n ? acceptedOffer\r\n : offers.find((o) => declinableOffers.get(o.id) == null);\r\n return offer == null ? offers.first(undefined) : offer;\r\n },\r\n );\r\n}\r\n\r\nexport function selectOfferedOrCompletedTransportOffersByRequestId(\r\n requestId: string,\r\n search: string | null,\r\n) {\r\n search = search == null || isNullOrWhitespace(search) ? null : search.toLowerCase();\r\n return createSelector(selectTransportOfferEntitiesByRequestId(requestId), (transportOffers) => {\r\n return transportOffers\r\n .filter((t) => {\r\n if (search == null) {\r\n return true;\r\n }\r\n const searchMatch =\r\n t.unitDescription != null &&\r\n (t.unitDescription.toLowerCase().indexOf(search) >= 0 ||\r\n t.status.toString().toLowerCase().indexOf(search) >= 0 ||\r\n t.response.toString().toLowerCase().indexOf(search) >= 0);\r\n const offerStatusMatch = [];\r\n return (\r\n t.unitDescription != null &&\r\n (t.unitDescription.toLowerCase().indexOf(search) >= 0 ||\r\n t.status.toString().toLowerCase().indexOf(search) >= 0 ||\r\n t.response.toString().toLowerCase().indexOf(search) >= 0) &&\r\n (t.status === TransportOfferStatus.Offered ||\r\n t.status === TransportOfferStatus.Skipped ||\r\n t.status === TransportOfferStatus.Cancelled ||\r\n t.response === TransportOfferResponse.Pending ||\r\n t.response === TransportOfferResponse.Accepted ||\r\n t.response === TransportOfferResponse.Declined ||\r\n t.response === TransportOfferResponse.Aborted)\r\n );\r\n })\r\n .sortBy((t) => t.rank);\r\n });\r\n}\r\n\r\nexport function selectPreviousOrCurrentReferralOffers(currentOffer: TransportOfferProps) {\r\n return createSelector(\r\n selectTransportOfferEntitiesByRequestId(currentOffer.requestId),\r\n (transportOffers) => {\r\n return transportOffers.filter(\r\n (o) =>\r\n o.status !== TransportOfferStatus.Candidate &&\r\n (o.isReferral ?? false) &&\r\n (o.declineReasonId != null || o.id === currentOffer.id),\r\n );\r\n },\r\n );\r\n}\r\n","import { createSelector } from '@ngrx/store';\r\nimport { CardStatus } from 'src/graphql/generated/graphql.generated';\r\nimport { selectAllCards, selectAllOperations, selectAllUnits } from './entity-store-selectors';\r\n\r\nexport const selectNull = () =>\r\n createSelector({} as any, () => undefined as TOut | undefined);\r\n\r\nexport function selectOperationByCardNumber(cardNumber: string) {\r\n return createSelector(selectAllCards, selectAllOperations, (cards, operations) =>\r\n cards.find((c) => c.cardNumber === cardNumber) == null\r\n ? undefined\r\n : operations.find((operation) => {\r\n const card = cards.find((c) => c.cardNumber === cardNumber);\r\n return card == null ? false : operation.id === card.operationId;\r\n }),\r\n );\r\n}\r\n\r\nexport function selectOperationByCardId(cardId: string) {\r\n return createSelector(selectAllCards, selectAllOperations, (cards, operations) =>\r\n cards.find((c) => c.id === cardId) == null\r\n ? undefined\r\n : operations.find((operation) => {\r\n const card = cards.find((c) => c.id === cardId);\r\n return card == null ? false : operation.id === card.operationId;\r\n }),\r\n );\r\n}\r\n\r\nexport function selectOpenOperationsForRegion(regionId: string) {\r\n return createSelector(\r\n selectAllUnits,\r\n selectAllOperations,\r\n selectAllCards,\r\n (units, operations, cards) => {\r\n return operations\r\n .valueSeq()\r\n .filter(\r\n (o) =>\r\n units.find((u) => u.id === o.unitId && u.regionId === regionId) != null &&\r\n cards\r\n .valueSeq()\r\n .find(\r\n (c) =>\r\n c.operationId === o.id &&\r\n c.status !== CardStatus.Completed &&\r\n c.status !== CardStatus.Closed,\r\n ) != null,\r\n );\r\n },\r\n );\r\n}\r\n","import { createSelector } from '@ngrx/store';\r\nimport { Seq } from 'immutable';\r\nimport { OperationStatus, UnitStatus, VehicleType } from 'src/graphql/generated/graphql.generated';\r\nimport { selectTransportOffersByRequestId } from 'src/store/entityStores/transport-offer-selectors';\r\nimport {\r\n CardSummaryRecord,\r\n selectAllCardSummaryEntities,\r\n} from 'src/store/generated/card-summary-record.generated';\r\nimport {\r\n selectAllUnitSummaryEntities,\r\n selectUnitSummaryEntitiesByCompanyId,\r\n selectUnitSummaryEntitiesByRegionId,\r\n UnitSummaryRecord,\r\n} from 'src/store/generated/unit-summary-record.generated';\r\nimport {\r\n selectAllVehicleSummaryEntities,\r\n VehicleSummaryRecord,\r\n} from 'src/store/generated/vehicle-summary-record.generated';\r\nimport { getOrElse } from 'src/util/values';\r\nimport {\r\n selectVehicleControlZoneEntitiesByCompanyId,\r\n selectVehicleControlZoneEntitiesByControlZoneId,\r\n} from '../generated/vehicle-control-zone-record.generated';\r\nimport {\r\n selectBaseControlZoneEntitiesByCompanyId,\r\n selectBaseControlZoneEntitiesByControlZoneId,\r\n} from '../generated/base-control-zone-record.generated';\r\nimport { selectAllUnitPostions, selectAllUnits } from './entity-store-selectors';\r\nimport { selectOperationByCardId, selectOperationByCardNumber } from './shared-selectors';\r\n\r\nexport function selectUnitsByCompany(companyId: string) {\r\n return createSelector(selectAllUnits, (units) =>\r\n units.valueSeq().filter((u) => u.companyId === companyId),\r\n );\r\n}\r\n\r\nexport function selectUnitSummariesByControlZoneCompanyId(\r\n companyId: string,\r\n includeDisabled: boolean = false,\r\n) {\r\n return createSelector(\r\n selectAllUnitSummaryEntities,\r\n selectVehicleControlZoneEntitiesByCompanyId(companyId),\r\n selectBaseControlZoneEntitiesByCompanyId(companyId),\r\n (units, vehiclesControlZones, baseControlZones) => {\r\n const vids = vehiclesControlZones.map((v) => v.vehicleId);\r\n const baseIds = baseControlZones.map((b) => b.baseId);\r\n return units.valueSeq().filter((u) => {\r\n if (u.vehicleId == null || (!vids.contains(u.vehicleId) && !baseIds.contains(u.baseId))) {\r\n return false;\r\n }\r\n\r\n return includeDisabled || u.isEnabled;\r\n });\r\n },\r\n );\r\n}\r\nexport function selectUnitSummariesByControlZoneId(\r\n controlZoneId: string,\r\n includeDisabled: boolean = false,\r\n) {\r\n return createSelector(\r\n selectAllUnitSummaryEntities,\r\n selectVehicleControlZoneEntitiesByControlZoneId(controlZoneId),\r\n selectBaseControlZoneEntitiesByControlZoneId(controlZoneId),\r\n (units, vehiclesControlZones, baseControlZones) => {\r\n const vids = vehiclesControlZones.map((v) => v.vehicleId);\r\n const baseIds = baseControlZones.map((b) => b.baseId);\r\n return units.valueSeq().filter((u) => {\r\n if (u.vehicleId == null || (!vids.contains(u.vehicleId) && !baseIds.contains(u.baseId))) {\r\n return false;\r\n }\r\n return includeDisabled || u.isEnabled;\r\n });\r\n },\r\n );\r\n}\r\nexport function selectUnitSummariesByCompanyId(\r\n companyId: string,\r\n includeDisabled: boolean = false,\r\n) {\r\n return createSelector(selectUnitSummaryEntitiesByCompanyId(companyId), (units) =>\r\n units.valueSeq().filter((u) => {\r\n if (includeDisabled) {\r\n return true;\r\n }\r\n\r\n return u.isEnabled;\r\n }),\r\n );\r\n}\r\n\r\nexport function selectUnitSummariesByRegionId(\r\n regionId: string,\r\n includeHidden: boolean = true,\r\n includeDisabled: boolean = false,\r\n) {\r\n return createSelector(selectUnitSummaryEntitiesByRegionId(regionId), (units) => {\r\n return units\r\n .filter((u) => byHiddenStatus(includeHidden))\r\n .filter((u) => {\r\n if (includeDisabled) {\r\n return true;\r\n }\r\n\r\n return u.isEnabled;\r\n });\r\n });\r\n}\r\n\r\nexport function selectUnitSummariesByRegions(\r\n regionIds: string[],\r\n includeHidden: boolean = true,\r\n nameOrTailLike?: string,\r\n includeDisabled: boolean = false,\r\n ...status: UnitStatus[]\r\n) {\r\n return createSelector(\r\n selectAllUnitSummaryEntities,\r\n selectAllVehicleSummaryEntities,\r\n (units, vehicles) => {\r\n return units\r\n .valueSeq()\r\n .filter((u) => {\r\n if (includeDisabled) {\r\n return true;\r\n }\r\n\r\n return u.isEnabled;\r\n })\r\n .filter((u) => regionIds.includes(u.regionId))\r\n .filter(byHiddenStatus(includeHidden))\r\n .filter((c) => status.length === 0 || status.includes(c.status))\r\n .filter((unit) => matchUnitOrVehicle(vehicles.toIndexedSeq(), unit, nameOrTailLike));\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitSummariesByRegionsAndUnits(\r\n regionIds: string[],\r\n unitIds: string[],\r\n includeHidden: boolean = true,\r\n nameOrTailLike?: string,\r\n includeDisabled: boolean = false,\r\n ...status: UnitStatus[]\r\n) {\r\n return createSelector(\r\n selectAllVehicleSummaryEntities,\r\n selectUnitSummariesByRegions(regionIds, includeHidden, undefined, includeDisabled, ...status),\r\n (vehicles, units) => {\r\n return units\r\n .valueSeq()\r\n .filter(\r\n (u) =>\r\n unitIds.includes(u.id) ||\r\n matchUnitOrVehicle(vehicles.toIndexedSeq(), u, nameOrTailLike),\r\n );\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitSummariesByCurrentCompany(\r\n currentCompanyId: string,\r\n excludeDispatchByCurrentCompany: boolean,\r\n nameOrTailLike?: string,\r\n companyIds: string[] = [],\r\n vehicleTypes: VehicleType[] = [],\r\n) {\r\n const canIncludeCompany = (companyId: string) =>\r\n companyIds.length === 0 || companyIds.includes(companyId);\r\n const canIncludeVehicle = (vehicle: VehicleSummaryRecord) =>\r\n vehicle.companyId === currentCompanyId &&\r\n (!excludeDispatchByCurrentCompany ||\r\n (vehicle.dispatchCompanyId != null && vehicle.dispatchCompanyId !== currentCompanyId)) &&\r\n (vehicleTypes.length === 0 || vehicleTypes.includes(vehicle.type));\r\n return createSelector(\r\n selectAllVehicleSummaryEntities,\r\n selectAllUnitSummaryEntities,\r\n (vehicles, units) => {\r\n // first filter most of the vehicles and units before calling matchUnitOrVehicle()\r\n vehicles = vehicles.filter((v) => canIncludeVehicle(v));\r\n const vehicleIds = vehicles.map((v) => v.id).toIndexedSeq();\r\n const vehiclesSeq = vehicles.toIndexedSeq();\r\n units = units.filter(\r\n (u) =>\r\n u.vehicleId != null && canIncludeCompany(u.companyId) && vehicleIds.includes(u.vehicleId),\r\n );\r\n return units\r\n .filter((unit) => matchUnitOrVehicle(vehiclesSeq, unit, nameOrTailLike))\r\n .valueSeq();\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitByCardNumber(cardNumber: string) {\r\n return createSelector(\r\n selectOperationByCardNumber(cardNumber),\r\n selectAllUnits,\r\n (operation, units) => {\r\n return operation == null ? undefined : units.find((unit) => unit.id === operation.unitId);\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitByCardId(cardId: string) {\r\n return createSelector(selectOperationByCardId(cardId), selectAllUnits, (operation, units) => {\r\n return operation == null ? undefined : units.find((unit) => unit.id === operation.unitId);\r\n });\r\n}\r\n\r\nexport function selectUnitSummaryByCardId(cardId: string) {\r\n return createSelector(\r\n selectOperationByCardId(cardId),\r\n selectAllUnitSummaryEntities,\r\n (operation, units) => {\r\n return operation == null ? undefined : units.find((unit) => unit.id === operation.unitId);\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitSummaryByVehicleId(vehicleId: string) {\r\n return createSelector(selectAllUnitSummaryEntities, (units) => {\r\n return units.find((u) => u.vehicleId === vehicleId);\r\n });\r\n}\r\n\r\nexport function selectNonThirdPartyUnitByBaseId(baseId: string) {\r\n return createSelector(selectAllUnits, (units) => {\r\n return units.find(\r\n (u) => u.baseId === baseId && u.isHidden !== true && u.isThirdPartyUnit !== true,\r\n );\r\n });\r\n}\r\n\r\nexport function selectAvailableUnitsByCompanyId(companyId: string) {\r\n return createSelector(\r\n selectUnitSummaryEntitiesByCompanyId(companyId),\r\n selectAllCardSummaryEntities,\r\n (units, operations) => {\r\n return units\r\n .valueSeq()\r\n .filter(byStatusAndNonActiveOperations(UnitStatus.Available, operations.valueSeq()));\r\n },\r\n );\r\n}\r\n\r\nexport function selectUnitByTeamMemberId(teamMemberId: string) {\r\n return createSelector(selectAllUnits, selectAllUnitPostions, (units, positions) => {\r\n const position = positions.find((p) => p.teamMemberId === teamMemberId);\r\n\r\n return position == null ? undefined : units.find((u) => u.id === position.unitId);\r\n });\r\n}\r\n\r\nexport function byStatusAndNonActiveOperations(\r\n status: UnitStatus,\r\n cards: Seq.Indexed,\r\n) {\r\n return (unit: UnitSummaryRecord) => {\r\n return (\r\n unit.status === status &&\r\n cards\r\n .valueSeq()\r\n .find(\r\n (card) =>\r\n card.unitId === unit.id &&\r\n (card.operation == null ||\r\n (card.operation.status !== OperationStatus.Completed &&\r\n card.operation.status !== OperationStatus.Cancelled)),\r\n ) == null\r\n );\r\n };\r\n}\r\n\r\nexport function selectNonCandidateUnitsForRequest(requestId: string) {\r\n return createSelector(\r\n selectAllUnitSummaryEntities,\r\n selectTransportOffersByRequestId(requestId),\r\n (units, offers) => {\r\n return units.valueSeq().filter((u) => offers.find((o) => o.unitId === u.id) == null);\r\n },\r\n );\r\n}\r\n\r\nfunction byHiddenStatus(includehidden: boolean) {\r\n return (u: UnitSummaryRecord) =>\r\n includehidden === true ||\r\n (getOrElse(u.isHidden, false) === false && getOrElse(u.isThirdPartyUnit, false) === false);\r\n}\r\n\r\nfunction matchUnitOrVehicle(\r\n vehicles: Seq.Indexed,\r\n unit: UnitSummaryRecord,\r\n nameOrTailLike: string | undefined,\r\n): boolean {\r\n const vehicle = vehicles.find((v) => v.id === unit.vehicleId);\r\n return (\r\n nameOrTailLike == null ||\r\n (nameOrTailLike != null &&\r\n (unit.abbreviation.toLocaleLowerCase().includes(nameOrTailLike.toLocaleLowerCase()) ||\r\n (vehicle != null &&\r\n vehicle.registrationNumber\r\n .toLocaleLowerCase()\r\n .includes(nameOrTailLike.toLocaleLowerCase()))))\r\n );\r\n}\r\n","import { createSelector } from '@ngrx/store';\r\nimport { selectAllDepartments } from './entity-store-selectors';\r\n\r\nexport function selectDepartmentById(departmentId: string) {\r\n return createSelector(selectAllDepartments, (departments) => departments.get(departmentId));\r\n}\r\n\r\nexport function selectDepartmentByCode(departmentCode: string) {\r\n return createSelector(selectAllDepartments, (departments) => {\r\n return departments.valueSeq().find((d) => d.code === departmentCode);\r\n });\r\n}\r\n","import { createSelector } from '@ngrx/store';\r\nimport { selectDepartmentByCode } from './department-selectors';\r\nimport { selectAllRegionGroups } from './entity-store-selectors';\r\n\r\nexport function selectOperationsRegionGroupByCompanyId(companyId: string) {\r\n return createSelector(\r\n selectRegionGroupsByCompanyId(companyId),\r\n selectDepartmentByCode('25'),\r\n (regionGroups, dep) => {\r\n if (dep == null) {\r\n return null;\r\n }\r\n return regionGroups.find((rg) => rg.departmentId === dep.id);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRegionGroupsByCompanyId(companyId: string) {\r\n return createSelector(selectAllRegionGroups, (regionGroups) =>\r\n regionGroups.valueSeq().filter((rg) => rg.companyId === companyId),\r\n );\r\n}\r\n\r\nexport function selectRegionGroupyId(regionGroupId: string) {\r\n return createSelector(selectAllRegionGroups, (regionGroups) => regionGroups.get(regionGroupId));\r\n}\r\n","import { createSelector } from '@ngrx/store';\r\nimport { Map, Seq } from 'immutable';\r\nimport { CardRecord } from 'src/store/generated/card-record.generated';\r\nimport { OperationRecord } from 'src/store/generated/operation-record.generated';\r\nimport { RegionRecord } from 'src/store/generated/region-record.generated';\r\nimport { RequestRecord } from 'src/store/generated/request-record.generated';\r\nimport { UnitRecord } from 'src/store/generated/unit-record.generated';\r\nimport {\r\n selectAllUnitSummaryEntities,\r\n UnitSummaryRecord,\r\n} from '../generated/unit-summary-record.generated';\r\nimport {\r\n selectAllCards,\r\n selectAllOperations,\r\n selectAllRegions,\r\n selectAllRequests,\r\n selectAllUnits,\r\n} from './entity-store-selectors';\r\nimport { selectOperationsRegionGroupByCompanyId } from './region-group-selectors';\r\n\r\nexport function selectRegionsByCompanyId(companyId: string) {\r\n return createSelector(selectAllRegions, (regions) =>\r\n regions.filter((r) => r.companyId === companyId),\r\n );\r\n}\r\n\r\nexport function selectOperationsRegionsByCompanyId(companyId: string) {\r\n return createSelector(\r\n selectOperationsRegionGroupByCompanyId(companyId),\r\n selectAllRegions,\r\n (rg, regions) => {\r\n return rg != null\r\n ? regions.valueSeq().filter((r) => r.regionGroupId === rg.id)\r\n : Seq.Indexed();\r\n },\r\n );\r\n}\r\n\r\nexport function selectRegionById(regionId: string) {\r\n return createSelector(selectAllRegions, (regions) => {\r\n return regions.get(regionId);\r\n });\r\n}\r\n\r\nexport function selectRegionByCardNumber(cardNumber: string) {\r\n return createSelector(\r\n selectAllCards,\r\n selectAllRegions,\r\n selectAllOperations,\r\n selectAllUnits,\r\n selectAllUnitSummaryEntities,\r\n selectAllRequests,\r\n (cards, regions, operations, units, unitSummaries, requests) => {\r\n const card = cards.find((c) => c.cardNumber === cardNumber);\r\n return getRegion(card, regions, operations, units, unitSummaries, requests);\r\n },\r\n );\r\n}\r\n\r\nexport function selectRegionByCardId(cardId: string) {\r\n return createSelector(\r\n selectAllCards,\r\n selectAllRegions,\r\n selectAllOperations,\r\n selectAllUnits,\r\n selectAllUnitSummaryEntities,\r\n selectAllRequests,\r\n (cards, regions, operations, units, unitSummaries, requests) => {\r\n const card = cards.get(cardId);\r\n return getRegion(card, regions, operations, units, unitSummaries, requests);\r\n },\r\n );\r\n}\r\n\r\nfunction getRegion(\r\n card: CardRecord | undefined,\r\n regions: Map,\r\n operations: Map,\r\n units: Map,\r\n unitSummaries: Map,\r\n requests: Map,\r\n) {\r\n if (card != null) {\r\n // Look up region based on unit\r\n if (card.operationId != null) {\r\n const operation = operations.get(card.operationId);\r\n if (operation != null && operation.unitId != null) {\r\n const unit = units.get(operation.unitId) ?? unitSummaries.get(operation.unitId);\r\n if (unit != null) {\r\n const region = regions.get(unit.regionId);\r\n if (region != null) {\r\n return region;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // otherwise look up based on request\r\n if (card.requestId != null) {\r\n const request = requests.get(card.requestId);\r\n if (request != null && request.regionId != null) {\r\n const region = regions.get(request.regionId);\r\n if (region != null) {\r\n return region;\r\n }\r\n }\r\n }\r\n }\r\n return undefined;\r\n}\r\n\r\nexport function selectRegionsByCompanyWithCommunicationCenterIdOrUnAssigned(\r\n companyId: string,\r\n commicationCenterId: string,\r\n) {\r\n return createSelector(selectAllRegions, (regions) =>\r\n regions.filter(\r\n (r) =>\r\n r.companyId === companyId &&\r\n (r.communicationCenterId === commicationCenterId || r.communicationCenterId == null),\r\n ),\r\n );\r\n}\r\n\r\nexport function selectRegionsByCompanyAndCommunicationCenterId(\r\n companyId: string,\r\n commicationCenterId: string,\r\n) {\r\n return createSelector(selectAllRegions, (regions) =>\r\n regions.filter(\r\n (r) => r.companyId === companyId && r.communicationCenterId === commicationCenterId,\r\n ),\r\n );\r\n}\r\n\r\nexport function selectRegionsByCommunicationCenterId(commicationCenterId: string) {\r\n return createSelector(selectAllRegions, (regions) =>\r\n regions.filter((r) => r.communicationCenterId === commicationCenterId),\r\n );\r\n}\r\n\r\nexport function selectRegionsWithoutCommunicationCenter(companyId: string) {\r\n return createSelector(selectAllRegions, (regions) =>\r\n regions.filter((r) => r.companyId === companyId && r.communicationCenterId == null),\r\n );\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { Observable, of } from 'rxjs';\r\nimport { map, switchMap } from 'rxjs/operators';\r\nimport { EntityType } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport {\r\n AccessibleItemProps,\r\n selectAccessibleItemEntitiesByPersonId,\r\n} from 'src/store/generated/accessible-item-record.generated';\r\nimport { UserService } from '../tcs-identity/user.service';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AccessibleItemAuthorizationService {\r\n constructor(private _userService: UserService, private _store: Store) {}\r\n\r\n public getAccessibleItems(type?: EntityType): Observable {\r\n return this._userService.user$.pipe(\r\n switchMap((u) =>\r\n u == null\r\n ? of([])\r\n : this._store\r\n .select(selectAccessibleItemEntitiesByPersonId(u.id))\r\n .pipe(map((ais) => ais.toArray().filter((ai) => type == null || type === ai.type))),\r\n ),\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { Seq, Set } from 'immutable';\r\nimport { combineLatest, Observable, of } from 'rxjs';\r\nimport { map, switchMap } from 'rxjs/operators';\r\nimport { TcsCustomPermission } from 'src/app/shared/authorization/permissions';\r\nimport { CompanyContextService } from 'src/app/shared/company-context.service';\r\nimport { EntityType, UserRole } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport {\r\n CommunicationCenterRecord,\r\n selectAllCommunicationCenterEntities,\r\n} from 'src/store/generated/communication-center-record.generated';\r\nimport { filterNull } from 'src/util/rxjs/operators/filter-null';\r\nimport { PermissionsService } from '../amg-authorization/permissions.service';\r\nimport { UserService } from '../tcs-identity/user.service';\r\nimport { AccessibleItemAuthorizationService } from './accessible-item-authorization.service';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OpsReaderAuthorizationService {\r\n constructor(\r\n private _user: UserService,\r\n private _accessibleItems: AccessibleItemAuthorizationService,\r\n private _permissions: PermissionsService,\r\n private _store: Store,\r\n private _companyContextService: CompanyContextService,\r\n ) {}\r\n\r\n public isReadonlyForCommCenter(commCenterId: string): Observable {\r\n return this.getReadonlyCommCenters().pipe(\r\n map((_) => _.find((cc) => cc.id === commCenterId) != null),\r\n );\r\n }\r\n\r\n public isReadonlyForCompany(companyId: string): Observable {\r\n return this.getReadonlyCommCenters(companyId).pipe(\r\n map((ccs) => ccs.find((cc) => cc.companyId === companyId) != null),\r\n );\r\n }\r\n\r\n public isReadonlyForCommCenterAndCurrentCompany(commCenterId: string): Observable {\r\n return this.getReadonlyCommCentersForCurrentCompany().pipe(\r\n map((_) => _.find((cc) => cc.id === commCenterId) != null),\r\n );\r\n }\r\n\r\n public getReadonlyCommCentersForCurrentCompany(): Observable<\r\n Seq.Indexed\r\n > {\r\n return this._companyContextService.company$.pipe(\r\n filterNull(),\r\n switchMap((company) => this.getReadonlyCommCenters(company.id)),\r\n );\r\n }\r\n\r\n public getReadonlyCommCenters(\r\n companyId?: string,\r\n ): Observable> {\r\n return this._user.user$.pipe(\r\n switchMap((user) => {\r\n if (user == null) {\r\n return of(Seq.Indexed());\r\n }\r\n const accessibleItems$ = this._accessibleItems.getAccessibleItems();\r\n const commCenters$ = this._store\r\n .select(selectAllCommunicationCenterEntities)\r\n .pipe(\r\n map((companies) =>\r\n companies.filter((c) => companyId == null || companyId === c.companyId).valueSeq(),\r\n ),\r\n );\r\n return combineLatest([accessibleItems$, commCenters$]).pipe(\r\n map(([accessibleItems, commCenters]) => {\r\n if (this._hasScopedPermission(user)) {\r\n // User has global permission to access all comm centers\r\n return commCenters;\r\n }\r\n\r\n return commCenters.filter((cc) => {\r\n const companyAi = accessibleItems.find(\r\n (ai) => ai.entityId === cc.companyId && ai.type === EntityType.Company,\r\n );\r\n if (this._hasScopedPermission(companyAi)) {\r\n // User has been granted access to this comm center because\r\n // they have accesss to all comm centers in this company\r\n return true;\r\n }\r\n const commCenterAi = accessibleItems.find(\r\n (ai) => ai.entityId === cc.id && ai.type === EntityType.CommunicationCenter,\r\n );\r\n if (this._hasScopedPermission(commCenterAi)) {\r\n // User has been granted access to this specific comm center\r\n return true;\r\n }\r\n return false;\r\n });\r\n }),\r\n );\r\n }),\r\n );\r\n }\r\n\r\n private _hasScopedPermission(\r\n scope:\r\n | {\r\n userRoles: Set | null;\r\n }\r\n | undefined,\r\n ) {\r\n if (scope == null) {\r\n return false;\r\n }\r\n const { userRoles } = scope;\r\n if (userRoles == null) {\r\n return false;\r\n }\r\n return this._permissions.hasPermission(\r\n userRoles.toArray().filter((r) => r !== UserRole.Developer),\r\n TcsCustomPermission.ReadOnlyCommCentersWithinScope,\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { Seq, Set } from 'immutable';\r\nimport { combineLatest, Observable, of } from 'rxjs';\r\nimport { map, switchMap } from 'rxjs/operators';\r\nimport { TcsCustomPermission } from 'src/app/shared/authorization/permissions';\r\nimport { CompanyContextService } from 'src/app/shared/company-context.service';\r\nimport { EntityType, UserRole } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport {\r\n CommunicationCenterProps,\r\n CommunicationCenterRecord,\r\n selectAllCommunicationCenterEntities,\r\n} from 'src/store/generated/communication-center-record.generated';\r\nimport { filterNull } from 'src/util/rxjs/operators/filter-null';\r\nimport { UserViewModel } from 'src/models/person-view-model';\r\nimport { AccessibleItemProps } from 'src/store/generated/accessible-item-record.generated';\r\nimport { undefinedOrSwitchMap } from 'src/util/rxjs';\r\nimport { PermissionsService } from '../amg-authorization/permissions.service';\r\nimport { UserService } from '../tcs-identity/user.service';\r\nimport { AccessibleItemAuthorizationService } from './accessible-item-authorization.service';\r\nimport { OpsReaderAuthorizationService } from './ops-reader-authorization.service';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CommCenterAuthorizationService {\r\n constructor(\r\n private _user: UserService,\r\n private _accessibleItems: AccessibleItemAuthorizationService,\r\n private _permissions: PermissionsService,\r\n private _store: Store,\r\n private _companyContextService: CompanyContextService,\r\n private _opsReaderAuthz: OpsReaderAuthorizationService,\r\n ) {}\r\n\r\n public isAuthorizedForCommCenter(\r\n commCenterId: string,\r\n includeReadonlyCommCenters: boolean = true,\r\n ): Observable {\r\n return this.getAuthorizedCommCenters(undefined, includeReadonlyCommCenters).pipe(\r\n map((_) => _.find((cc) => cc.id === commCenterId) != null),\r\n );\r\n }\r\n\r\n public isAuthorizedForCompany(\r\n companyId: string,\r\n includeReadonlyCommCenters: boolean = true,\r\n ): Observable {\r\n return this._isAuthorizedForCompany(companyId, undefined, includeReadonlyCommCenters);\r\n }\r\n\r\n public getAuthorizedCommCentersForCurrentCompany(\r\n includeReadonlyCommCenters: boolean = true,\r\n ): Observable> {\r\n return this._companyContextService.company$.pipe(\r\n filterNull(),\r\n switchMap((company) => this.getAuthorizedCommCenters(company.id, includeReadonlyCommCenters)),\r\n );\r\n }\r\n\r\n public getAuthorizedCommCenters(\r\n companyId?: string,\r\n includeReadonlyCommCenters: boolean = true,\r\n ): Observable> {\r\n return this._user.user$.pipe(\r\n undefinedOrSwitchMap((user) => {\r\n const readonlyCommCenters$ = includeReadonlyCommCenters\r\n ? this._opsReaderAuthz.getReadonlyCommCenters(companyId)\r\n : of(Seq.Indexed());\r\n const commCenters$ = this._store\r\n .select(selectAllCommunicationCenterEntities)\r\n .pipe(\r\n map((commCenters) =>\r\n commCenters.filter((c) => companyId == null || companyId === c.companyId).valueSeq(),\r\n ),\r\n );\r\n const accessibleItems$ = this._accessibleItems.getAccessibleItems();\r\n return combineLatest([commCenters$, accessibleItems$, readonlyCommCenters$]).pipe(\r\n map(([commCenters, accessibleItems, readonlyCommCenters]) => {\r\n if (this._checkUserAllAccessiblePermissions(user, accessibleItems, companyId)) {\r\n return commCenters.concat(readonlyCommCenters);\r\n }\r\n return commCenters\r\n .filter((cc) => {\r\n return this._checkAuthorizedForCompany(cc.companyId, user, accessibleItems, cc.id);\r\n })\r\n .concat(readonlyCommCenters);\r\n }),\r\n );\r\n }),\r\n map((ccs) => ccs ?? Seq.Indexed()),\r\n );\r\n }\r\n\r\n private _isAuthorizedForCompany(\r\n companyId: string,\r\n commCenterId?: string,\r\n includeReadonlyCommCenters: boolean = true,\r\n ) {\r\n const commCenters$ = this._store\r\n .select(selectAllCommunicationCenterEntities)\r\n .pipe(\r\n map((commCenters) =>\r\n commCenters.filter((c) => companyId == null || companyId === c.companyId).valueSeq(),\r\n ),\r\n );\r\n const readonlyAuthorized$ = includeReadonlyCommCenters\r\n ? this._opsReaderAuthz.isReadonlyForCompany(companyId)\r\n : of(false);\r\n const accessibleItems$ = this._accessibleItems.getAccessibleItems();\r\n return combineLatest([\r\n this._user.user$,\r\n accessibleItems$,\r\n commCenters$,\r\n readonlyAuthorized$,\r\n ]).pipe(\r\n map(([user, accessibleItems, commCenters, readonlyAuthorized]) => {\r\n if (commCenters.count() > 0) {\r\n const authorizedForCompany = commCenters.filter((cc) => {\r\n return this._checkAuthorizedForCompany(\r\n cc.companyId,\r\n user,\r\n accessibleItems,\r\n cc.id,\r\n readonlyAuthorized,\r\n );\r\n });\r\n return authorizedForCompany.count() > 0;\r\n } else {\r\n return this._checkAuthorizedForCompany(\r\n companyId,\r\n user,\r\n accessibleItems,\r\n commCenterId,\r\n readonlyAuthorized,\r\n );\r\n }\r\n }),\r\n );\r\n }\r\n\r\n private _checkAuthorizedForCompany(\r\n companyId: string,\r\n user: UserViewModel | undefined,\r\n accessibleItems: AccessibleItemProps[],\r\n commCenterId?: string,\r\n isReadonlyAuthorized?: boolean,\r\n ) {\r\n if (user == null) {\r\n return false;\r\n }\r\n\r\n if (this._checkUserAllAccessiblePermissions(user, accessibleItems, companyId)) {\r\n return true;\r\n }\r\n\r\n const commCenterAi = accessibleItems.find(\r\n (ai) => ai.entityId === commCenterId && ai.type === EntityType.CommunicationCenter,\r\n );\r\n if (this._hasScopedPermission(commCenterAi)) {\r\n // User has been granted access to this specific comm center\r\n return true;\r\n }\r\n\r\n return isReadonlyAuthorized ?? false;\r\n }\r\n\r\n private _checkUserAllAccessiblePermissions(\r\n user: UserViewModel,\r\n accessibleItems: AccessibleItemProps[],\r\n companyId?: string,\r\n ) {\r\n if (\r\n this._hasScopedPermission(user) ||\r\n (user.allCommunicationCentersAccessible === true && user.allCompaniesAccessible === true)\r\n ) {\r\n // User has global permission to access all comm centers\r\n return true;\r\n }\r\n if (companyId != null) {\r\n const companyAi = accessibleItems.find(\r\n (ai) => ai.entityId === companyId && ai.type === EntityType.Company,\r\n );\r\n if (\r\n this._hasScopedPermission(companyAi) ||\r\n (companyId === user.companyId && user.allCommunicationCentersAccessible === true) ||\r\n (companyAi != null && user.allCommunicationCentersAccessible === true)\r\n ) {\r\n // User has been granted access to this comm center because\r\n // they have accesss to all comm centers in this company\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n private _hasScopedPermission(\r\n scope:\r\n | {\r\n userRoles: Set | null;\r\n }\r\n | undefined,\r\n ) {\r\n if (scope == null) {\r\n return false;\r\n }\r\n const { userRoles } = scope;\r\n if (userRoles == null) {\r\n return false;\r\n }\r\n return this._permissions.hasPermission(\r\n userRoles.toArray(),\r\n TcsCustomPermission.AccessCommCentersWithinScope,\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { Set } from 'immutable';\r\nimport { combineLatest, Observable, of } from 'rxjs';\r\nimport { map, switchMap } from 'rxjs/operators';\r\nimport { TcsCustomPermission } from 'src/app/shared/authorization/permissions';\r\nimport { EntityType, UserRole } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport {\r\n ControlZoneProps,\r\n selectAllControlZoneEntities,\r\n} from 'src/store/generated/control-zone-record.generated';\r\nimport { PermissionsService } from '../amg-authorization/permissions.service';\r\nimport { UserService } from '../tcs-identity/user.service';\r\nimport { AccessibleItemAuthorizationService } from './accessible-item-authorization.service';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ControlZoneAuthorizationService {\r\n constructor(\r\n private _user: UserService,\r\n private _accessibleItems: AccessibleItemAuthorizationService,\r\n private _permissions: PermissionsService,\r\n private _store: Store,\r\n ) {}\r\n\r\n public isAuthorizedForCompany(companyId: string): Observable {\r\n return this.getAuthorizedControlZones(companyId).pipe(\r\n map((czs) => czs.find((cz) => cz.companyId === companyId) != null),\r\n );\r\n }\r\n\r\n public getAuthorizedControlZones(companyId?: string): Observable {\r\n return this._user.user$.pipe(\r\n switchMap((user) => {\r\n if (user == null) {\r\n return of([]);\r\n }\r\n const accessibleItems$ = this._accessibleItems.getAccessibleItems();\r\n const controlZones$ = this._store\r\n .select(selectAllControlZoneEntities)\r\n .pipe(\r\n map((czs) =>\r\n czs.filter((cz) => companyId == null || companyId === cz.companyId).valueSeq(),\r\n ),\r\n );\r\n return combineLatest([accessibleItems$, controlZones$]).pipe(\r\n map(([accessibleItems, controlZones]) => {\r\n if (this._hasScopedPermission(user)) {\r\n // User has global permission to access all control zones\r\n return controlZones;\r\n }\r\n return controlZones.filter((cc) => {\r\n const companyAi = accessibleItems.find(\r\n (ai) => ai.entityId === cc.companyId && ai.type === EntityType.Company,\r\n );\r\n if (this._hasScopedPermission(companyAi)) {\r\n // User has been granted access to this control zone because\r\n // they have accesss to all control zones in this company\r\n return true;\r\n }\r\n const controlZoneAi = accessibleItems.find(\r\n (ai) => ai.entityId === cc.id && ai.type === EntityType.ControlZone,\r\n );\r\n if (this._hasScopedPermission(controlZoneAi)) {\r\n // User has been granted access to this specific control zone\r\n return true;\r\n }\r\n return false;\r\n });\r\n }),\r\n map((czs) => czs.toArray()),\r\n );\r\n }),\r\n );\r\n }\r\n\r\n private _hasScopedPermission(scope: { userRoles: Set | null } | undefined) {\r\n if (scope == null) {\r\n return false;\r\n }\r\n const { userRoles } = scope;\r\n if (userRoles == null) {\r\n return false;\r\n }\r\n return this._permissions.hasPermission(\r\n userRoles.toArray(),\r\n TcsCustomPermission.AccessControlZonesWithinScope,\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { Seq } from 'immutable';\r\nimport { combineLatest, Observable, of } from 'rxjs';\r\nimport { map, switchMap } from 'rxjs/operators';\r\nimport { TcsCustomPermission } from 'src/app/shared/authorization/permissions';\r\nimport { AppState } from 'src/store/appstate';\r\nimport {\r\n RegionProps,\r\n selectRegionEntitiesByCompanyId,\r\n} from 'src/store/generated/region-record.generated';\r\nimport { selectCompanyByCompanyCode } from 'src/store/entityStores/company-selectors';\r\nimport { PermissionsService } from '../amg-authorization/permissions.service';\r\nimport { UserService } from '../tcs-identity/user.service';\r\nimport { CommCenterAuthorizationService } from './comm-center-authorization.service';\r\nimport { OpsReaderAuthorizationService } from './ops-reader-authorization.service';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class RegionAuthorizationService {\r\n constructor(\r\n private _user: UserService,\r\n private _store: Store,\r\n private _commCenterAuthorization: CommCenterAuthorizationService,\r\n private _opsReaderAuthorization: OpsReaderAuthorizationService,\r\n private _permissions: PermissionsService,\r\n ) {}\r\n\r\n public isAuthorizedForCompanyCode(regionId: string, companyCode: string) {\r\n return this.getAuthorizedRegionsByCompanyCode(companyCode).pipe(\r\n map((regions) => regions.find((r) => r.id === regionId) != null),\r\n );\r\n }\r\n\r\n public getAuthorizedRegionsByCompanyCode(companyCode: string) {\r\n return this._store\r\n .select(selectCompanyByCompanyCode(companyCode))\r\n .pipe(\r\n switchMap((c) =>\r\n c != null ? this.getAuthorizedRegions(c.id) : of(Seq.Indexed()),\r\n ),\r\n );\r\n }\r\n\r\n public getAuthorizedRegions(companyId: string): Observable> {\r\n const authorizedCommCenters$ =\r\n this._commCenterAuthorization.getAuthorizedCommCenters(companyId);\r\n const regions$ = this._store.select(selectRegionEntitiesByCompanyId(companyId));\r\n\r\n return combineLatest([this._user.user$, authorizedCommCenters$, regions$]).pipe(\r\n map(([user, authorizedCommCenters, regions]) => {\r\n if (user == null) {\r\n return Seq.Indexed();\r\n }\r\n const authorizedCommCenterIds = authorizedCommCenters.map((cc) => cc.id);\r\n return regions\r\n .sortBy((_) => _.name)\r\n .filter((r) => {\r\n const withCommCenter =\r\n r.communicationCenterId != null &&\r\n authorizedCommCenterIds.includes(r.communicationCenterId);\r\n const withoutCommCenter =\r\n r.communicationCenterId == null &&\r\n user.hasPermissionAnyScope(\r\n this._permissions,\r\n TcsCustomPermission.AccessRegionsWithoutCommCenterAssignment,\r\n );\r\n const isAuthorized = withCommCenter || withoutCommCenter;\r\n return isAuthorized;\r\n })\r\n .valueSeq();\r\n }),\r\n );\r\n }\r\n}\r\n","import { ActivatedRouteSnapshot } from '@angular/router';\r\nimport { flatMap } from 'lodash-es';\r\n\r\nexport function getUrl(route: ActivatedRouteSnapshot): string {\r\n const url = flatMap(route.pathFromRoot.map((ss) => ss.url.map((u) => u.path))).join('/');\r\n return '/' + url;\r\n}\r\n\r\nexport function getCompanyCodeFromRoute(route: ActivatedRouteSnapshot): string | undefined {\r\n return getRouteParam(route, 'companyCode');\r\n}\r\n\r\nexport function getRegionIdFromRoute(route: ActivatedRouteSnapshot): string | undefined {\r\n return getRouteParam(route, 'regionId');\r\n}\r\n\r\nexport function getCardNumberFromRoute(route: ActivatedRouteSnapshot): string | undefined {\r\n return getRouteParam(route, 'cardNumber');\r\n}\r\n\r\nexport function getCommunicationCenterIdFromRoute(\r\n route: ActivatedRouteSnapshot,\r\n): string | undefined {\r\n return getRouteParam(route, 'communicationCenterId');\r\n}\r\n\r\nexport function getRouteOrQueryParam(\r\n route: ActivatedRouteSnapshot,\r\n paramName: string,\r\n): string | undefined {\r\n return getRouteParam(route, paramName) ?? getRouteQueryParam(route, paramName);\r\n}\r\n\r\nexport function getRouteParam(\r\n route: ActivatedRouteSnapshot,\r\n paramName: string,\r\n): string | undefined {\r\n const param = route.pathFromRoot\r\n .map((p) => p.params[paramName] as string | undefined)\r\n .find((p) => p != null);\r\n return param;\r\n}\r\n\r\nexport function getRouteQueryParam(\r\n route: ActivatedRouteSnapshot,\r\n queryParam: string,\r\n): string | undefined {\r\n const param = route.pathFromRoot\r\n .map((p) => p.queryParams[queryParam] as string | undefined)\r\n .find((p) => p != null);\r\n return param;\r\n}\r\n","import { Seq, Set } from 'immutable';\r\nimport { UserRole } from 'src/graphql/generated/graphql.generated';\r\n\r\nexport function flatMapUserRoles(withUserRoles: Seq.Indexed<{ userRoles?: Set | null }>) {\r\n const roles = withUserRoles\r\n .filter((_) => _.userRoles != null)\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n .flatMap((u) => u.userRoles!)\r\n .toSet();\r\n return roles;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { createSelector, Store } from '@ngrx/store';\r\nimport { Seq } from 'immutable';\r\nimport { Observable, of } from 'rxjs';\r\nimport { map, switchMap } from 'rxjs/operators';\r\nimport { TcsCustomPermission, TcsPermission } from 'src/app/shared/authorization/permissions';\r\nimport { EntityType, FetchCardEntitiesGQL } from 'src/graphql/generated/graphql.generated';\r\nimport { AppState } from 'src/store/appstate';\r\nimport {\r\n AccessibleItemRecord,\r\n selectAccessibleItemEntitiesByPersonId,\r\n} from 'src/store/generated/accessible-item-record.generated';\r\nimport { selectCardSummaryById } from 'src/store/generated/card-summary-record.generated';\r\nimport { selectAllCommunicationCenterEntities } from 'src/store/generated/communication-center-record.generated';\r\nimport { selectAllControlZoneEntities } from 'src/store/generated/control-zone-record.generated';\r\nimport { selectAllRegionEntities } from 'src/store/generated/region-record.generated';\r\nimport { selectAllVehicleEntities } from 'src/store/generated/vehicle-record.generated';\r\nimport { selectCardByCardNumber, selectCardById } from 'src/store/entityStores/card-selectors';\r\nimport { valueOrSwitchMap } from 'src/util/rxjs';\r\nimport { StoreService } from 'src/store/store.service';\r\nimport { selectRegionByCardId } from 'src/store/entityStores/region-selectors';\r\nimport { selectUnitSummaryByCardId } from 'src/store/entityStores/unit-selectors';\r\nimport { PermissionsService } from '../amg-authorization/permissions.service';\r\nimport { UserService } from '../tcs-identity/user.service';\r\nimport { flatMapUserRoles } from './authorization-helpers';\r\n\r\ninterface CardAccessibleItemEntityIds {\r\n communicationCenterId?: string;\r\n controlZoneId?: string;\r\n companyId?: string;\r\n}\r\n\r\nfunction selectCardSummaryAccessibleItemsForUser({\r\n userId,\r\n card: { communicationCenterId, companyId, controlZoneId },\r\n}: {\r\n userId: string;\r\n card: CardAccessibleItemEntityIds;\r\n}) {\r\n return createSelector(selectAccessibleItemEntitiesByPersonId(userId), (accesibleItems) => {\r\n const ais: AccessibleItemRecord[] = [\r\n [EntityType.Company, companyId],\r\n [EntityType.CommunicationCenter, communicationCenterId],\r\n [EntityType.ControlZone, controlZoneId],\r\n ]\r\n .map(([type, id]) => accesibleItems.find((_) => _.type === type && _.entityId === id))\r\n .filter((ai) => ai != null)\r\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n .map((_) => _!);\r\n\r\n return Seq.Indexed(ais);\r\n });\r\n}\r\n\r\nfunction selectCardSummaryAccessibleItemEntityIds(cardId: string) {\r\n return createSelector(\r\n selectCardSummaryById(cardId),\r\n selectAllVehicleEntities,\r\n selectAllControlZoneEntities,\r\n selectAllCommunicationCenterEntities,\r\n selectAllRegionEntities,\r\n (card, vehicles, controlZones, commCenters, regions) => {\r\n if (card == null) {\r\n return {};\r\n }\r\n const region =\r\n card.regionId != null ? regions.find((r) => r.id === card.regionId) : undefined;\r\n const commCenter =\r\n region?.communicationCenterId != null\r\n ? commCenters.find((c) => c.id === region.communicationCenterId)\r\n : undefined;\r\n const vehicle = card.vehicleId != null ? vehicles.get(card.vehicleId) : undefined;\r\n const controlZone =\r\n vehicle?.controlZoneId != null ? controlZones.get(vehicle.controlZoneId) : undefined;\r\n\r\n const ids: CardAccessibleItemEntityIds = {\r\n communicationCenterId: commCenter?.id,\r\n companyId: card.companyId,\r\n controlZoneId: controlZone?.id,\r\n };\r\n return ids;\r\n },\r\n );\r\n}\r\n\r\nfunction selectCardAccessibleItemEntityIds(cardId: string) {\r\n return createSelector(\r\n selectCardById(cardId),\r\n selectRegionByCardId(cardId),\r\n selectUnitSummaryByCardId(cardId),\r\n selectAllVehicleEntities,\r\n selectAllControlZoneEntities,\r\n selectAllCommunicationCenterEntities,\r\n (card, region, unit, vehicles, controlZones, commCenters) => {\r\n if (card == null || region == null) {\r\n return {};\r\n }\r\n const commCenter =\r\n region?.communicationCenterId != null\r\n ? commCenters.find((c) => c.id === region.communicationCenterId)\r\n : undefined;\r\n const vehicle = unit?.vehicleId != null ? vehicles.get(unit.vehicleId) : undefined;\r\n const controlZone =\r\n vehicle?.controlZoneId != null ? controlZones.get(vehicle.controlZoneId) : undefined;\r\n\r\n const ids: CardAccessibleItemEntityIds = {\r\n communicationCenterId: commCenter?.id,\r\n companyId: card.companyId,\r\n controlZoneId: controlZone?.id,\r\n };\r\n return ids;\r\n },\r\n );\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class CardAuthorizationService {\r\n constructor(\r\n private _user: UserService,\r\n private _permissions: PermissionsService,\r\n private _store: Store,\r\n private _gql: FetchCardEntitiesGQL,\r\n private _storeService: StoreService,\r\n ) {}\r\n\r\n public isAuthorizedForCardNumber(cardNumber: string): Observable {\r\n return this._store.select(selectCardByCardNumber(cardNumber)).pipe(\r\n valueOrSwitchMap(() =>\r\n this._storeService\r\n .upsertEntitiesFromGraphQL(this._gql, { cardNumber })\r\n .pipe(map((q) => q.data?.cards?.byCardNumber)),\r\n ),\r\n switchMap((card) => {\r\n const permissionsToCheck =\r\n card?.isLocked === true\r\n ? TcsCustomPermission.ViewLockedCards\r\n : [TcsCustomPermission.ManageOperations, TcsCustomPermission.ReadonlyOperations];\r\n return card == null ? of(false) : this.hasPermissionForCardId(card.id, permissionsToCheck);\r\n }),\r\n );\r\n }\r\n\r\n public hasPermission(\r\n cardAccessibleItemIds: CardAccessibleItemEntityIds,\r\n permission: TcsPermission | TcsPermission[],\r\n ): Observable {\r\n const permissions = Array.isArray(permission) ? permission : [permission];\r\n return this._user.user$.pipe(\r\n switchMap((u) => {\r\n if (u == null) {\r\n return of(false);\r\n }\r\n return this._store\r\n .select(\r\n selectCardSummaryAccessibleItemsForUser({ userId: u.id, card: cardAccessibleItemIds }),\r\n )\r\n .pipe(\r\n map((ais) => {\r\n const t = ais.concat([u]);\r\n const roles = flatMapUserRoles(t);\r\n const hasPermission =\r\n permissions.find((p) => this._permissions.hasPermission(roles.toArray(), p)) !=\r\n null;\r\n return hasPermission;\r\n }),\r\n );\r\n }),\r\n );\r\n }\r\n\r\n public hasPermissionForCardSummaryId(\r\n cardId: string,\r\n permission: TcsPermission | TcsPermission[],\r\n ): Observable {\r\n return this._store\r\n .select(selectCardSummaryAccessibleItemEntityIds(cardId))\r\n .pipe(switchMap((cai) => (cai == null ? of(false) : this.hasPermission(cai, permission))));\r\n }\r\n\r\n public hasPermissionForCardId(\r\n cardId: string,\r\n permission: TcsPermission | TcsPermission[],\r\n ): Observable {\r\n return this._store\r\n .select(selectCardAccessibleItemEntityIds(cardId))\r\n .pipe(switchMap((cai) => (cai == null ? of(false) : this.hasPermission(cai, permission))));\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { combineLatest, Observable, of } from 'rxjs';\r\nimport { distinctUntilChanged, map, switchMap, withLatestFrom } from 'rxjs/operators';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { selectCompanyByCompanyCode } from 'src/store/entityStores/company-selectors';\r\nimport { ActivatedRouteSnapshot } from '@angular/router';\r\nimport { getCardNumberFromRoute, getRegionIdFromRoute } from 'src/util/helpers/url-helper';\r\nimport { UserService } from '../tcs-identity/user.service';\r\nimport { CommCenterAuthorizationService } from './comm-center-authorization.service';\r\nimport { ControlZoneAuthorizationService } from './control-zone-authorization.service';\r\nimport { RegionAuthorizationService } from './region-authorization.service';\r\nimport { CardAuthorizationService } from './card-authorization.service';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OpsAuthorizationService {\r\n constructor(\r\n private _commCenterAuthz: CommCenterAuthorizationService,\r\n private _controlZoneAuthz: ControlZoneAuthorizationService,\r\n private _regionAuthz: RegionAuthorizationService,\r\n private _cardAuthz: CardAuthorizationService,\r\n private _user: UserService,\r\n private _store: Store,\r\n ) {}\r\n\r\n public isAuthorizedForRoute(\r\n route: ActivatedRouteSnapshot,\r\n companyCode: string,\r\n ): Observable {\r\n return this.isAuthorizedForCompanyCode(companyCode).pipe(\r\n switchMap((isAuthorized) => {\r\n if (!isAuthorized) {\r\n return of(false);\r\n }\r\n const regionId = getRegionIdFromRoute(route);\r\n if (regionId != null) {\r\n return this._regionAuthz.isAuthorizedForCompanyCode(regionId, companyCode);\r\n }\r\n return of(true);\r\n }),\r\n switchMap((isAuthorized) => {\r\n if (!isAuthorized) {\r\n return of(false);\r\n }\r\n const cardNumber = getCardNumberFromRoute(route);\r\n if (cardNumber != null) {\r\n return this._cardAuthz.isAuthorizedForCardNumber(cardNumber);\r\n }\r\n return of(true);\r\n }),\r\n );\r\n }\r\n\r\n public isAuthorizedForCompanyCode(companyCode: string) {\r\n return this._store\r\n .select(selectCompanyByCompanyCode(companyCode))\r\n .pipe(switchMap((c) => (c != null ? this.isAuthorizedForCompanyId(c.id) : of(false))));\r\n }\r\n\r\n public isAuthorizedForCompanyId(companyId: string) {\r\n const hasAllCommCenterAccessForCompany$ = this._user.user$.pipe(\r\n withLatestFrom(this._user.hasAccessibleCompany(companyId)),\r\n map(([user, hasCompanyAccess]) => {\r\n if (user == null) {\r\n return false;\r\n }\r\n const allCommCenterAccess = user.allCommunicationCentersAccessible ?? false;\r\n const hasAccess = allCommCenterAccess && hasCompanyAccess;\r\n return hasAccess;\r\n }),\r\n );\r\n\r\n return combineLatest([\r\n hasAllCommCenterAccessForCompany$,\r\n this._controlZoneAuthz.isAuthorizedForCompany(companyId),\r\n this._commCenterAuthz.isAuthorizedForCompany(companyId),\r\n ]).pipe(\r\n map((grants) => {\r\n const anyGranted = grants.find((hasPermission) => hasPermission) != null;\r\n return anyGranted;\r\n }),\r\n distinctUntilChanged(),\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { combineLatest, of } from 'rxjs';\r\nimport { distinctUntilChanged, map, switchMap, withLatestFrom } from 'rxjs/operators';\r\nimport { TcsCustomPermission } from 'src/app/shared/authorization/permissions';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { selectCompanyByCompanyCode } from 'src/store/entityStores/company-selectors';\r\nimport { UserService } from '../tcs-identity/user.service';\r\nimport { CommCenterAuthorizationService } from './comm-center-authorization.service';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OrgAuthorizationService {\r\n constructor(\r\n private _commCenterAuthz: CommCenterAuthorizationService,\r\n private _user: UserService,\r\n private _store: Store,\r\n ) {}\r\n\r\n public isAuthorizedForCompanyCode(companyCode: string) {\r\n return this._store\r\n .select(selectCompanyByCompanyCode(companyCode))\r\n .pipe(switchMap((c) => (c != null ? this.isAuthorizedForCompanyId(c.id) : of(false))));\r\n }\r\n\r\n public isAuthorizedForCompanyId(companyId: string) {\r\n const hasGlobalRoleWithManageOrgAccess$ = this._user.hasAccessibleCompany(companyId).pipe(\r\n withLatestFrom(this._user.hasPermissionAnyGlobalRole(TcsCustomPermission.ManageOrg)),\r\n map(\r\n ([hasCompanyAccess, hasGlobalRoleOrgAccess]) => hasCompanyAccess && hasGlobalRoleOrgAccess,\r\n ),\r\n );\r\n const hasManageOrgAndCommCenterAccess$ = this._user\r\n .hasPermissionAnyScope(TcsCustomPermission.ManageOrg)\r\n .pipe(\r\n withLatestFrom(this._commCenterAuthz.isAuthorizedForCompany(companyId, false)),\r\n map(([hasScope, hasCommCenterAccess]) => hasScope && hasCommCenterAccess),\r\n );\r\n return combineLatest([\r\n hasGlobalRoleWithManageOrgAccess$,\r\n hasManageOrgAndCommCenterAccess$,\r\n ]).pipe(\r\n map(([hasGlobalRoleWithManageOrgAccess, hasManageOrgAndCommCenterAccess]) => {\r\n // If a user has ManageOrg permission for any global roles (user.userRoles) and access to the company OR\r\n // If a user has ManageOrg permission for any scope (user.userRolesAllScopes) and access to a comm center within the company\r\n // then they are authorized\r\n return hasManageOrgAndCommCenterAccess || hasGlobalRoleWithManageOrgAccess;\r\n }),\r\n distinctUntilChanged(),\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { combineLatest, Observable, of } from 'rxjs';\r\nimport { distinctUntilChanged, map, switchMap } from 'rxjs/operators';\r\nimport { TcsCustomPermission } from 'src/app/shared/authorization/permissions';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { selectCompanyByCompanyCode } from 'src/store/entityStores/company-selectors';\r\nimport { ActivatedRouteSnapshot } from '@angular/router';\r\nimport {\r\n CommunicationCenterProps,\r\n selectAllCommunicationCenterEntities,\r\n} from 'src/store/generated/communication-center-record.generated';\r\nimport { UserViewModel } from 'src/models/person-view-model';\r\nimport { AccessibleItemProps } from 'src/store/generated/accessible-item-record.generated';\r\nimport { EntityType, UserRole } from 'src/graphql/generated/graphql.generated';\r\nimport { Seq, Set } from 'immutable';\r\nimport { undefinedOrSwitchMap } from 'src/util/rxjs';\r\nimport { CompanyContextService } from 'src/app/shared/company-context.service';\r\nimport { filterNull } from 'src/util/rxjs/operators/filter-null';\r\nimport { PermissionsService } from '../amg-authorization/permissions.service';\r\nimport { UserService } from '../tcs-identity/user.service';\r\nimport { AccessibleItemAuthorizationService } from './accessible-item-authorization.service';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class OosAuthorizationService {\r\n constructor(\r\n private _accessibleItems: AccessibleItemAuthorizationService,\r\n private _user: UserService,\r\n private _permissions: PermissionsService,\r\n private _store: Store,\r\n private _companyContextService: CompanyContextService,\r\n ) {}\r\n\r\n public isAuthorizedForRoute(\r\n route: ActivatedRouteSnapshot,\r\n companyCode: string,\r\n ): Observable {\r\n return this.isAuthorizedForCompanyCode(companyCode).pipe(\r\n switchMap((isAuthorized) => {\r\n if (!isAuthorized) {\r\n return of(false);\r\n }\r\n return of(true);\r\n }),\r\n );\r\n }\r\n\r\n public isAuthorizedForCompanyCode(companyCode: string) {\r\n return this._store\r\n .select(selectCompanyByCompanyCode(companyCode))\r\n .pipe(switchMap((c) => (c != null ? this.isAuthorizedForCompanyId(c.id) : of(false))));\r\n }\r\n\r\n public isAuthorizedForCompanyId(companyId: string) {\r\n return combineLatest([this._isAuthorizedForCompany(companyId)]).pipe(\r\n map((grants) => {\r\n const anyGranted = grants.find((hasPermission) => hasPermission) != null;\r\n return anyGranted;\r\n }),\r\n distinctUntilChanged(),\r\n );\r\n }\r\n\r\n public isAuthorizedForCommCenter(commCenterId: string): Observable {\r\n return this.getAuthorizedCommCenters(undefined, undefined).pipe(\r\n map((_) => _.find((cc) => cc.id === commCenterId) != null),\r\n );\r\n }\r\n\r\n public isAuthorizedToManageCommCenter(commCenterId: string): Observable {\r\n return this.getAuthorizedCommCenters(undefined, TcsCustomPermission.ManageOosRum).pipe(\r\n map((_) => _.find((cc) => cc.id === commCenterId) != null),\r\n );\r\n }\r\n\r\n public getAuthorizedCommCentersForCurrentCompany(\r\n permission?: TcsCustomPermission,\r\n ): Observable> {\r\n return this._companyContextService.company$.pipe(\r\n filterNull(),\r\n switchMap((company) => this.getAuthorizedCommCenters(company.id, permission)),\r\n );\r\n }\r\n\r\n public getAuthorizedCommCenters(\r\n companyId?: string,\r\n permission?: TcsCustomPermission,\r\n ): Observable> {\r\n return this._user.user$.pipe(\r\n undefinedOrSwitchMap((user) => {\r\n const commCenters$ = this._store\r\n .select(selectAllCommunicationCenterEntities)\r\n .pipe(\r\n map((commCenters) =>\r\n commCenters.filter((c) => companyId == null || companyId === c.companyId).valueSeq(),\r\n ),\r\n );\r\n const accessibleItems$ = this._accessibleItems.getAccessibleItems();\r\n return combineLatest([commCenters$, accessibleItems$]).pipe(\r\n map(([commCenters, accessibleItems]) => {\r\n if (\r\n this._checkUserAllAccessiblePermissions(user, accessibleItems, companyId, permission)\r\n ) {\r\n return commCenters;\r\n }\r\n return commCenters.filter((cc) => {\r\n return this._checkAuthorizedForCompany(\r\n cc.companyId,\r\n user,\r\n accessibleItems,\r\n cc.id,\r\n permission,\r\n );\r\n });\r\n }),\r\n );\r\n }),\r\n map((ccs) => ccs ?? Seq.Indexed()),\r\n );\r\n }\r\n\r\n private _isAuthorizedForCompany(companyId: string, commCenterId?: string) {\r\n const commCenters$ = this._store\r\n .select(selectAllCommunicationCenterEntities)\r\n .pipe(\r\n map((commCenters) =>\r\n commCenters.filter((c) => companyId == null || companyId === c.companyId).valueSeq(),\r\n ),\r\n );\r\n\r\n const accessibleItems$ = this._accessibleItems.getAccessibleItems();\r\n return combineLatest([this._user.user$, accessibleItems$, commCenters$]).pipe(\r\n map(([user, accessibleItems, commCenters]) => {\r\n if (commCenters.count() > 0) {\r\n const authorizedForCompany = commCenters.filter((cc) => {\r\n return this._checkAuthorizedForCompany(cc.companyId, user, accessibleItems, cc.id);\r\n });\r\n return authorizedForCompany.count() > 0;\r\n } else {\r\n return this._checkAuthorizedForCompany(companyId, user, accessibleItems, commCenterId);\r\n }\r\n }),\r\n );\r\n }\r\n\r\n private _checkAuthorizedForCompany(\r\n companyId: string,\r\n user: UserViewModel | undefined,\r\n accessibleItems: AccessibleItemProps[],\r\n commCenterId?: string,\r\n permission?: TcsCustomPermission,\r\n ) {\r\n if (user == null) {\r\n return false;\r\n }\r\n\r\n if (this._checkUserAllAccessiblePermissions(user, accessibleItems, companyId, permission)) {\r\n return true;\r\n }\r\n\r\n const commCenterAi = accessibleItems.find(\r\n (ai) => ai.entityId === commCenterId && ai.type === EntityType.CommunicationCenter,\r\n );\r\n if (this._hasScopedPermission(commCenterAi, permission)) {\r\n // User has been granted access to this specific comm center\r\n return true;\r\n }\r\n }\r\n\r\n private _checkUserAllAccessiblePermissions(\r\n user: UserViewModel,\r\n accessibleItems: AccessibleItemProps[],\r\n companyId?: string,\r\n permission?: TcsCustomPermission,\r\n ) {\r\n if (this._hasScopedPermission(user, permission)) {\r\n return true;\r\n }\r\n if (companyId != null) {\r\n const companyAi = accessibleItems.find(\r\n (ai) => ai.entityId === companyId && ai.type === EntityType.Company,\r\n );\r\n if (companyAi?.userRoles != null && this._hasScopedPermission(companyAi, permission)) {\r\n // User has been granted access to this comm center because\r\n // they have accesss to all comm centers in this company\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n private _hasScopedPermission(\r\n scope:\r\n | {\r\n userRoles: Set | null;\r\n }\r\n | undefined,\r\n permission?: TcsCustomPermission,\r\n ) {\r\n const permissionToCheck = permission ?? TcsCustomPermission.AccessOosRum;\r\n if (scope == null) {\r\n return false;\r\n }\r\n const { userRoles } = scope;\r\n if (userRoles == null) {\r\n return false;\r\n }\r\n return this._permissions.hasPermission(userRoles.toArray(), permissionToCheck);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngrx/store';\r\nimport { combineLatest, of } from 'rxjs';\r\nimport { distinctUntilChanged, map, switchMap, withLatestFrom } from 'rxjs/operators';\r\nimport { AppState } from 'src/store/appstate';\r\nimport { selectCompanyByCompanyCode } from 'src/store/entityStores/company-selectors';\r\nimport { TcsCustomPermission } from 'src/app/shared/authorization/permissions';\r\nimport { UserService } from '../tcs-identity/user.service';\r\nimport { OpsAuthorizationService } from './ops-authorization.service';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class InsightsAuthorizationService {\r\n constructor(\r\n private _opsAuthz: OpsAuthorizationService,\r\n private _user: UserService,\r\n private _store: Store,\r\n ) {}\r\n\r\n public isAuthorizedForCompanyCode(companyCode: string) {\r\n return this._store\r\n .select(selectCompanyByCompanyCode(companyCode))\r\n .pipe(switchMap((c) => (c != null ? this.isAuthorizedForCompanyId(c.id) : of(false))));\r\n }\r\n\r\n public isAuthorizedForCompanyId(companyId: string) {\r\n const hasGlobalRoleWithInsightsAccess$ = this._user.hasAccessibleCompany(companyId).pipe(\r\n withLatestFrom(this._user.hasPermissionAnyGlobalRole(TcsCustomPermission.AccessInsights)),\r\n map(\r\n ([hasCompanyAccess, hasGlobalRoleOrgAccess]) => hasCompanyAccess && hasGlobalRoleOrgAccess,\r\n ),\r\n );\r\n return combineLatest([\r\n hasGlobalRoleWithInsightsAccess$,\r\n this._opsAuthz.isAuthorizedForCompanyId(companyId),\r\n this._user.hasPermissionAnyScope(TcsCustomPermission.AccessInsights),\r\n ]).pipe(\r\n map(([hasGlobalRoleWithInsightsAccess, hasOpsAccess, hasInsightsAccess]) => {\r\n // If a user has AccessInsights permission for any global roles (user.userRoles) and access to the company OR\r\n // If a user has AccessInsights permission for any scope (user.userRolesAllScopes) and has access to ops for the company\r\n // then they are authorized\r\n return (hasInsightsAccess && hasOpsAccess) || hasGlobalRoleWithInsightsAccess;\r\n }),\r\n distinctUntilChanged(),\r\n );\r\n }\r\n}\r\n"],"mappings":"6xDAAA,IAAAA,GAAAC,GAAA,CAAAC,IAAAC,KAAA,uBAASC,IAAI,CAGb,CACAA,GAAE,UAAY,CACZ,GAAI,SAAUC,EAAMC,EAAUC,EAAK,CACjC,IAAIC,EAAI,KAAK,IAAM,KAAK,EAAI,CAAC,GAC7B,OAACA,EAAEH,CAAI,IAAMG,EAAEH,CAAI,EAAI,CAAC,IAAI,KAAK,CAC/B,GAAIC,EACJ,IAAKC,CACP,CAAC,EACM,IACT,EACA,KAAM,SAAUF,EAAMC,EAAUC,EAAK,CACnC,IAAIE,EAAO,KACX,SAASC,GAAW,CAClBD,EAAK,IAAIJ,EAAMK,CAAQ,EACvBJ,EAAS,MAAMC,EAAK,SAAS,CAC/B,CAEA,OAAAG,EAAS,EAAIJ,EACN,KAAK,GAAGD,EAAMK,EAAUH,CAAG,CACpC,EACA,KAAM,SAAUF,EAAM,CACpB,IAAIM,EAAO,CAAC,EAAE,MAAM,KAAK,UAAW,CAAC,EACjCC,IAAW,KAAK,IAAM,KAAK,EAAI,CAAC,IAAIP,CAAI,GAAK,CAAC,GAAG,MAAM,EACvD,EAAI,EACJQ,EAAMD,EAAO,OACj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,GAAA,ECbpC,IAAakF,KAA4B,IAAA,CAAnC,MAAOA,CAA4B,CACvCC,YACUC,EACAC,EACAC,EAAuB,CAFvB,KAAAF,UAAAA,EACA,KAAAC,MAAAA,EACA,KAAAC,OAAAA,CACP,CAEIC,2BAA2BC,EAAmB,CACnD,OAAO,KAAKF,OACTG,OAAOC,GAA2BF,CAAW,CAAC,EAC9CG,KAAKC,GAAWC,GAAOA,GAAK,KAAO,KAAKC,yBAAyBD,EAAEE,EAAE,EAAIC,GAAG,EAAK,CAAE,CAAC,CACzF,CAEOF,yBAAyBG,EAAiB,CAC/C,IAAMC,EAAmC,KAAKb,MAAMc,qBAAqBF,CAAS,EAAEN,KAClFS,GAAe,KAAKf,MAAMgB,2BAA2BC,GAAoBC,cAAc,CAAC,EACxFC,EACE,CAAC,CAACC,EAAkBC,CAAsB,IAAMD,GAAoBC,CAAsB,CAC3F,EAEH,OAAOC,GAAc,CACnBT,EACA,KAAKd,UAAUU,yBAAyBG,CAAS,EACjD,KAAKZ,MAAMuB,sBAAsBN,GAAoBC,cAAc,CAAC,CACrE,EAAEZ,KACDa,EAAI,CAAC,CAACK,EAAiCC,EAAcC,CAAiB,IAI5DA,GAAqBD,GAAiBD,CAC/C,EACDG,GAAoB,CAAE,CAE1B,iDAjCW9B,GAA4B+B,EAAAC,GAAA,EAAAD,EAAAE,EAAA,EAAAF,EAAAG,EAAA,CAAA,CAAA,CAAA,iCAA5BlC,EAA4BmC,QAA5BnC,EAA4BoC,UAAAC,WADf,MAAM,CAAA,CAAA,SACnBrC,CAA4B,GAAA","names":["require_tiny_emitter","__commonJSMin","exports","module","E","name","callback","ctx","e","self","listener","data","evtArr","len","evts","liveEvents","i","require_browser_ponyfill","__commonJSMin","exports","module","global","__self__","F","self","irrelevant","support","isDataView","obj","viewClasses","isArrayBufferView","normalizeName","name","normalizeValue","value","iteratorFor","items","iterator","Headers","headers","header","oldValue","callback","thisArg","consumed","body","fileReaderReady","reader","resolve","reject","readBlobAsArrayBuffer","blob","promise","readBlobAsText","readArrayBufferAsText","buf","view","chars","i","bufferClone","Body","rejected","decode","methods","normalizeMethod","method","upcased","Request","input","options","form","bytes","split","parseHeaders","rawHeaders","preProcessedHeaders","line","parts","key","Response","bodyInit","response","redirectStatuses","url","status","message","error","fetch","init","request","xhr","abortXhr","ctx","require_p_cancelable","__commonJSMin","exports","module","CancelError","reason","PCancelable","_PCancelable","userFn","arguments_","resolve","reject","onCancel","executor","onResolve","value","onReject","error","handler","boolean","onFulfilled","onRejected","onFinally","environment","production","freeGlobal","freeGlobal_default","freeSelf","root","freeGlobal_default","root_default","Symbol","root_default","Symbol_default","objectProto","hasOwnProperty","nativeObjectToString","symToStringTag","Symbol_default","getRawTag","value","isOwn","tag","unmasked","result","getRawTag_default","objectProto","nativeObjectToString","objectToString","value","objectToString_default","nullTag","undefinedTag","symToStringTag","Symbol_default","baseGetTag","value","getRawTag_default","objectToString_default","baseGetTag_default","overArg","func","transform","arg","overArg_default","getPrototype","overArg_default","getPrototype_default","isObjectLike","value","isObjectLike_default","objectTag","funcProto","objectProto","funcToString","hasOwnProperty","objectCtorString","isPlainObject","value","isObjectLike_default","baseGetTag_default","proto","getPrototype_default","Ctor","isPlainObject_default","isObject","value","type","isObject_default","asyncTag","funcTag","genTag","proxyTag","isFunction","value","isObject_default","tag","baseGetTag_default","isFunction_default","coreJsData","root_default","coreJsData_default","maskSrcKey","uid","coreJsData_default","isMasked","func","isMasked_default","funcProto","funcToString","toSource","func","toSource_default","reRegExpChar","reIsHostCtor","funcProto","objectProto","funcToString","hasOwnProperty","reIsNative","baseIsNative","value","isObject_default","isMasked_default","pattern","isFunction_default","toSource_default","baseIsNative_default","getValue","object","key","getValue_default","getNative","object","key","value","getValue_default","baseIsNative_default","getNative_default","defineProperty","func","getNative_default","defineProperty_default","baseAssignValue","object","key","value","defineProperty_default","baseAssignValue_default","arrayAggregator","array","setter","iteratee","accumulator","index","length","value","arrayAggregator_default","createBaseFor","fromRight","object","iteratee","keysFunc","index","iterable","props","length","key","createBaseFor_default","baseFor","createBaseFor_default","baseFor_default","baseTimes","n","iteratee","index","result","baseTimes_default","argsTag","baseIsArguments","value","isObjectLike_default","baseGetTag_default","baseIsArguments_default","objectProto","hasOwnProperty","propertyIsEnumerable","isArguments","baseIsArguments_default","value","isObjectLike_default","isArguments_default","isArray","isArray_default","stubFalse","stubFalse_default","freeExports","freeModule","moduleExports","Buffer","root_default","nativeIsBuffer","isBuffer","stubFalse_default","isBuffer_default","MAX_SAFE_INTEGER","reIsUint","isIndex","value","length","type","isIndex_default","MAX_SAFE_INTEGER","isLength","value","isLength_default","argsTag","arrayTag","boolTag","dateTag","errorTag","funcTag","mapTag","numberTag","objectTag","regexpTag","setTag","stringTag","weakMapTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","typedArrayTags","baseIsTypedArray","value","isObjectLike_default","isLength_default","baseGetTag_default","baseIsTypedArray_default","baseUnary","func","value","baseUnary_default","freeExports","freeModule","moduleExports","freeProcess","freeGlobal_default","nodeUtil","types","nodeUtil_default","nodeIsTypedArray","nodeUtil_default","isTypedArray","baseUnary_default","baseIsTypedArray_default","isTypedArray_default","objectProto","hasOwnProperty","arrayLikeKeys","value","inherited","isArr","isArray_default","isArg","isArguments_default","isBuff","isBuffer_default","isType","isTypedArray_default","skipIndexes","result","baseTimes_default","length","key","isIndex_default","arrayLikeKeys_default","objectProto","isPrototype","value","Ctor","proto","isPrototype_default","nativeKeys","overArg_default","nativeKeys_default","objectProto","hasOwnProperty","baseKeys","object","isPrototype_default","nativeKeys_default","result","key","baseKeys_default","isArrayLike","value","isLength_default","isFunction_default","isArrayLike_default","keys","object","isArrayLike_default","arrayLikeKeys_default","baseKeys_default","keys_default","baseForOwn","object","iteratee","baseFor_default","keys_default","baseForOwn_default","createBaseEach","eachFunc","fromRight","collection","iteratee","isArrayLike_default","length","index","iterable","createBaseEach_default","baseEach","createBaseEach_default","baseForOwn_default","baseEach_default","baseAggregator","collection","setter","iteratee","accumulator","baseEach_default","value","key","baseAggregator_default","listCacheClear","listCacheClear_default","eq","value","other","eq_default","assocIndexOf","array","key","length","eq_default","assocIndexOf_default","arrayProto","splice","listCacheDelete","key","data","index","assocIndexOf_default","lastIndex","listCacheDelete_default","listCacheGet","key","data","index","assocIndexOf_default","listCacheGet_default","listCacheHas","key","assocIndexOf_default","listCacheHas_default","listCacheSet","key","value","data","index","assocIndexOf_default","listCacheSet_default","ListCache","entries","index","length","entry","listCacheClear_default","listCacheDelete_default","listCacheGet_default","listCacheHas_default","listCacheSet_default","ListCache_default","stackClear","ListCache_default","stackClear_default","stackDelete","key","data","result","stackDelete_default","stackGet","key","stackGet_default","stackHas","key","stackHas_default","Map","getNative_default","root_default","Map_default","nativeCreate","getNative_default","nativeCreate_default","hashClear","nativeCreate_default","hashClear_default","hashDelete","key","result","hashDelete_default","HASH_UNDEFINED","objectProto","hasOwnProperty","hashGet","key","data","nativeCreate_default","result","hashGet_default","objectProto","hasOwnProperty","hashHas","key","data","nativeCreate_default","hashHas_default","HASH_UNDEFINED","hashSet","key","value","data","nativeCreate_default","hashSet_default","Hash","entries","index","length","entry","hashClear_default","hashDelete_default","hashGet_default","hashHas_default","hashSet_default","Hash_default","mapCacheClear","Hash_default","Map_default","ListCache_default","mapCacheClear_default","isKeyable","value","type","isKeyable_default","getMapData","map","key","data","isKeyable_default","getMapData_default","mapCacheDelete","key","result","getMapData_default","mapCacheDelete_default","mapCacheGet","key","getMapData_default","mapCacheGet_default","mapCacheHas","key","getMapData_default","mapCacheHas_default","mapCacheSet","key","value","data","getMapData_default","size","mapCacheSet_default","MapCache","entries","index","length","entry","mapCacheClear_default","mapCacheDelete_default","mapCacheGet_default","mapCacheHas_default","mapCacheSet_default","MapCache_default","LARGE_ARRAY_SIZE","stackSet","key","value","data","ListCache_default","pairs","Map_default","MapCache_default","stackSet_default","Stack","entries","data","ListCache_default","stackClear_default","stackDelete_default","stackGet_default","stackHas_default","stackSet_default","Stack_default","HASH_UNDEFINED","setCacheAdd","value","setCacheAdd_default","setCacheHas","value","setCacheHas_default","SetCache","values","index","length","MapCache_default","setCacheAdd_default","setCacheHas_default","SetCache_default","arraySome","array","predicate","index","length","arraySome_default","cacheHas","cache","key","cacheHas_default","COMPARE_PARTIAL_FLAG","COMPARE_UNORDERED_FLAG","equalArrays","array","other","bitmask","customizer","equalFunc","stack","isPartial","arrLength","othLength","arrStacked","othStacked","index","result","seen","SetCache_default","arrValue","othValue","compared","arraySome_default","othIndex","cacheHas_default","equalArrays_default","Uint8Array","root_default","Uint8Array_default","mapToArray","map","index","result","value","key","mapToArray_default","setToArray","set","index","result","value","setToArray_default","COMPARE_PARTIAL_FLAG","COMPARE_UNORDERED_FLAG","boolTag","dateTag","errorTag","mapTag","numberTag","regexpTag","setTag","stringTag","symbolTag","arrayBufferTag","dataViewTag","symbolProto","Symbol_default","symbolValueOf","equalByTag","object","other","tag","bitmask","customizer","equalFunc","stack","Uint8Array_default","eq_default","convert","mapToArray_default","isPartial","setToArray_default","stacked","result","equalArrays_default","equalByTag_default","arrayPush","array","values","index","length","offset","arrayPush_default","baseGetAllKeys","object","keysFunc","symbolsFunc","result","isArray_default","arrayPush_default","baseGetAllKeys_default","arrayFilter","array","predicate","index","length","resIndex","result","value","arrayFilter_default","stubArray","stubArray_default","objectProto","propertyIsEnumerable","nativeGetSymbols","getSymbols","object","arrayFilter_default","symbol","stubArray_default","getSymbols_default","getAllKeys","object","baseGetAllKeys_default","keys_default","getSymbols_default","getAllKeys_default","COMPARE_PARTIAL_FLAG","objectProto","hasOwnProperty","equalObjects","object","other","bitmask","customizer","equalFunc","stack","isPartial","objProps","getAllKeys_default","objLength","othProps","othLength","index","key","objStacked","othStacked","result","skipCtor","objValue","othValue","compared","objCtor","othCtor","equalObjects_default","DataView","getNative_default","root_default","DataView_default","Promise","getNative_default","root_default","Promise_default","Set","getNative_default","root_default","Set_default","WeakMap","getNative_default","root_default","WeakMap_default","mapTag","objectTag","promiseTag","setTag","weakMapTag","dataViewTag","dataViewCtorString","toSource_default","DataView_default","mapCtorString","Map_default","promiseCtorString","Promise_default","setCtorString","Set_default","weakMapCtorString","WeakMap_default","getTag","baseGetTag_default","value","result","Ctor","ctorString","getTag_default","COMPARE_PARTIAL_FLAG","argsTag","arrayTag","objectTag","objectProto","hasOwnProperty","baseIsEqualDeep","object","other","bitmask","customizer","equalFunc","stack","objIsArr","isArray_default","othIsArr","objTag","getTag_default","othTag","objIsObj","othIsObj","isSameTag","isBuffer_default","Stack_default","isTypedArray_default","equalArrays_default","equalByTag_default","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","equalObjects_default","baseIsEqualDeep_default","baseIsEqual","value","other","bitmask","customizer","stack","isObjectLike_default","baseIsEqualDeep_default","baseIsEqual_default","COMPARE_PARTIAL_FLAG","COMPARE_UNORDERED_FLAG","baseIsMatch","object","source","matchData","customizer","index","length","noCustomizer","data","key","objValue","srcValue","stack","Stack_default","result","baseIsEqual_default","baseIsMatch_default","isStrictComparable","value","isObject_default","isStrictComparable_default","getMatchData","object","result","keys_default","length","key","value","isStrictComparable_default","getMatchData_default","matchesStrictComparable","key","srcValue","object","matchesStrictComparable_default","baseMatches","source","matchData","getMatchData_default","matchesStrictComparable_default","object","baseIsMatch_default","baseMatches_default","symbolTag","isSymbol","value","isObjectLike_default","baseGetTag_default","isSymbol_default","reIsDeepProp","reIsPlainProp","isKey","value","object","isArray_default","type","isSymbol_default","isKey_default","FUNC_ERROR_TEXT","memoize","func","resolver","memoized","args","key","cache","result","MapCache_default","memoize_default","MAX_MEMOIZE_SIZE","memoizeCapped","func","result","memoize_default","key","cache","memoizeCapped_default","rePropName","reEscapeChar","stringToPath","memoizeCapped_default","string","result","match","number","quote","subString","stringToPath_default","arrayMap","array","iteratee","index","length","result","arrayMap_default","INFINITY","symbolProto","Symbol_default","symbolToString","baseToString","value","isArray_default","arrayMap_default","isSymbol_default","result","baseToString_default","toString","value","baseToString_default","toString_default","castPath","value","object","isArray_default","isKey_default","stringToPath_default","toString_default","castPath_default","INFINITY","toKey","value","isSymbol_default","result","toKey_default","baseGet","object","path","castPath_default","index","length","toKey_default","baseGet_default","get","object","path","defaultValue","result","baseGet_default","get_default","baseHasIn","object","key","baseHasIn_default","hasPath","object","path","hasFunc","castPath_default","index","length","result","key","toKey_default","isLength_default","isIndex_default","isArray_default","isArguments_default","hasPath_default","hasIn","object","path","hasPath_default","baseHasIn_default","hasIn_default","COMPARE_PARTIAL_FLAG","COMPARE_UNORDERED_FLAG","baseMatchesProperty","path","srcValue","isKey_default","isStrictComparable_default","matchesStrictComparable_default","toKey_default","object","objValue","get_default","hasIn_default","baseIsEqual_default","baseMatchesProperty_default","identity","value","identity_default","baseProperty","key","object","baseProperty_default","basePropertyDeep","path","object","baseGet_default","basePropertyDeep_default","property","path","isKey_default","baseProperty_default","toKey_default","basePropertyDeep_default","property_default","baseIteratee","value","identity_default","isArray_default","baseMatchesProperty_default","baseMatches_default","property_default","baseIteratee_default","createAggregator","setter","initializer","collection","iteratee","func","isArray_default","arrayAggregator_default","baseAggregator_default","accumulator","baseIteratee_default","createAggregator_default","objectProto","hasOwnProperty","groupBy","createAggregator_default","result","value","key","baseAssignValue_default","groupBy_default","isEqual","value","other","baseIsEqual_default","isEqual_default","spreadableSymbol","Symbol_default","isFlattenable","value","isArray_default","isArguments_default","isFlattenable_default","baseFlatten","array","depth","predicate","isStrict","result","index","length","isFlattenable_default","value","arrayPush_default","baseFlatten_default","baseMap","collection","iteratee","index","result","isArrayLike_default","baseEach_default","value","key","baseMap_default","baseSortBy","array","comparer","length","baseSortBy_default","compareAscending","value","other","valIsDefined","valIsNull","valIsReflexive","valIsSymbol","isSymbol_default","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","compareAscending_default","compareMultiple","object","other","orders","index","objCriteria","othCriteria","length","ordersLength","result","compareAscending_default","order","compareMultiple_default","baseOrderBy","collection","iteratees","orders","arrayMap_default","iteratee","isArray_default","value","baseGet_default","identity_default","index","baseUnary_default","baseIteratee_default","result","baseMap_default","key","criteria","baseSortBy_default","object","other","compareMultiple_default","baseOrderBy_default","apply","func","thisArg","args","apply_default","nativeMax","overRest","func","start","transform","args","index","length","array","otherArgs","apply_default","overRest_default","constant","value","constant_default","baseSetToString","defineProperty_default","func","string","constant_default","identity_default","baseSetToString_default","HOT_COUNT","HOT_SPAN","nativeNow","shortOut","func","count","lastCalled","stamp","remaining","shortOut_default","setToString","shortOut_default","baseSetToString_default","setToString_default","baseRest","func","start","setToString_default","overRest_default","identity_default","baseRest_default","isIterateeCall","value","index","object","isObject_default","type","isArrayLike_default","isIndex_default","eq_default","isIterateeCall_default","sortBy","baseRest_default","collection","iteratees","length","isIterateeCall_default","baseOrderBy_default","baseFlatten_default","sortBy_default","baseFindIndex","array","predicate","fromIndex","fromRight","length","index","baseFindIndex_default","baseIsNaN","value","baseIsNaN_default","strictIndexOf","array","value","fromIndex","index","length","strictIndexOf_default","baseIndexOf","array","value","fromIndex","strictIndexOf_default","baseFindIndex_default","baseIsNaN_default","baseIndexOf_default","arrayIncludes","array","value","length","baseIndexOf_default","arrayIncludes_default","arrayIncludesWith","array","value","comparator","index","length","arrayIncludesWith_default","noop","noop_default","INFINITY","createSet","Set_default","setToArray_default","values","noop_default","createSet_default","LARGE_ARRAY_SIZE","baseUniq","array","iteratee","comparator","index","includes","arrayIncludes_default","length","isCommon","result","seen","arrayIncludesWith_default","set","createSet_default","setToArray_default","cacheHas_default","SetCache_default","outer","value","computed","seenIndex","baseUniq_default","uniqBy","array","iteratee","baseUniq_default","baseIteratee_default","uniqBy_default","reWhitespace","trimmedEndIndex","string","index","trimmedEndIndex_default","reTrimStart","baseTrim","string","trimmedEndIndex_default","baseTrim_default","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","value","isSymbol_default","isObject_default","other","baseTrim_default","isBinary","toNumber_default","INFINITY","MAX_INTEGER","toFinite","value","toNumber_default","sign","toFinite_default","toInteger","value","result","toFinite_default","remainder","toInteger_default","objectCreate","baseCreate","object","proto","isObject_default","result","baseCreate_default","copyArray","source","array","index","length","copyArray_default","arrayEach","array","iteratee","index","length","arrayEach_default","objectProto","hasOwnProperty","assignValue","object","key","value","objValue","eq_default","baseAssignValue_default","assignValue_default","copyObject","source","props","object","customizer","isNew","index","length","key","newValue","baseAssignValue_default","assignValue_default","copyObject_default","nativeKeysIn","object","result","key","nativeKeysIn_default","objectProto","hasOwnProperty","baseKeysIn","object","isObject_default","nativeKeysIn_default","isProto","isPrototype_default","result","key","baseKeysIn_default","keysIn","object","isArrayLike_default","arrayLikeKeys_default","baseKeysIn_default","keysIn_default","flatten","array","length","baseFlatten_default","flatten_default","baseSlice","array","start","end","index","length","result","baseSlice_default","castSlice","array","start","end","length","baseSlice_default","castSlice_default","rsAstralRange","rsComboMarksRange","reComboHalfMarksRange","rsComboSymbolsRange","rsComboRange","rsVarRange","rsZWJ","reHasUnicode","hasUnicode","string","hasUnicode_default","asciiToArray","string","asciiToArray_default","rsAstralRange","rsComboMarksRange","reComboHalfMarksRange","rsComboSymbolsRange","rsComboRange","rsVarRange","rsAstral","rsCombo","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsZWJ","reOptMod","rsOptVar","rsOptJoin","rsSeq","rsSymbol","reUnicode","unicodeToArray","string","unicodeToArray_default","stringToArray","string","hasUnicode_default","unicodeToArray_default","asciiToArray_default","stringToArray_default","createCaseFirst","methodName","string","toString_default","strSymbols","hasUnicode_default","stringToArray_default","chr","trailing","castSlice_default","createCaseFirst_default","upperFirst","createCaseFirst_default","upperFirst_default","capitalize","string","upperFirst_default","toString_default","capitalize_default","arrayReduce","array","iteratee","accumulator","initAccum","index","length","arrayReduce_default","basePropertyOf","object","key","basePropertyOf_default","deburredLetters","deburrLetter","basePropertyOf_default","deburrLetter_default","reLatin","rsComboMarksRange","reComboHalfMarksRange","rsComboSymbolsRange","rsComboRange","rsCombo","reComboMark","deburr","string","toString_default","deburrLetter_default","deburr_default","reAsciiWord","asciiWords","string","asciiWords_default","reHasUnicodeWord","hasUnicodeWord","string","hasUnicodeWord_default","rsAstralRange","rsComboMarksRange","reComboHalfMarksRange","rsComboSymbolsRange","rsComboRange","rsDingbatRange","rsLowerRange","rsMathOpRange","rsNonCharRange","rsPunctuationRange","rsSpaceRange","rsUpperRange","rsVarRange","rsBreakRange","rsApos","rsBreak","rsCombo","rsDigits","rsDingbat","rsLower","rsMisc","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsUpper","rsZWJ","rsMiscLower","rsMiscUpper","rsOptContrLower","rsOptContrUpper","reOptMod","rsOptVar","rsOptJoin","rsOrdLower","rsOrdUpper","rsSeq","rsEmoji","reUnicodeWord","unicodeWords","string","unicodeWords_default","words","string","pattern","guard","toString_default","hasUnicodeWord_default","unicodeWords_default","asciiWords_default","words_default","rsApos","reApos","createCompounder","callback","string","arrayReduce_default","words_default","deburr_default","createCompounder_default","camelCase","createCompounder_default","result","word","index","capitalize_default","camelCase_default","nativeIsFinite","root_default","nativeMin","createRound","methodName","func","number","precision","toNumber_default","toInteger_default","pair","toString_default","value","createRound_default","baseAssign","object","source","copyObject_default","keys_default","baseAssign_default","baseAssignIn","object","source","copyObject_default","keysIn_default","baseAssignIn_default","freeExports","freeModule","moduleExports","Buffer","root_default","allocUnsafe","cloneBuffer","buffer","isDeep","length","result","cloneBuffer_default","copySymbols","source","object","copyObject_default","getSymbols_default","copySymbols_default","nativeGetSymbols","getSymbolsIn","object","result","arrayPush_default","getSymbols_default","getPrototype_default","stubArray_default","getSymbolsIn_default","copySymbolsIn","source","object","copyObject_default","getSymbolsIn_default","copySymbolsIn_default","getAllKeysIn","object","baseGetAllKeys_default","keysIn_default","getSymbolsIn_default","getAllKeysIn_default","objectProto","hasOwnProperty","initCloneArray","array","length","result","initCloneArray_default","cloneArrayBuffer","arrayBuffer","result","Uint8Array_default","cloneArrayBuffer_default","cloneDataView","dataView","isDeep","buffer","cloneArrayBuffer_default","cloneDataView_default","reFlags","cloneRegExp","regexp","result","cloneRegExp_default","symbolProto","Symbol_default","symbolValueOf","cloneSymbol","symbol","cloneSymbol_default","cloneTypedArray","typedArray","isDeep","buffer","cloneArrayBuffer_default","cloneTypedArray_default","boolTag","dateTag","mapTag","numberTag","regexpTag","setTag","stringTag","symbolTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","initCloneByTag","object","tag","isDeep","Ctor","cloneArrayBuffer_default","cloneDataView_default","cloneTypedArray_default","cloneRegExp_default","cloneSymbol_default","initCloneByTag_default","initCloneObject","object","isPrototype_default","baseCreate_default","getPrototype_default","initCloneObject_default","mapTag","baseIsMap","value","isObjectLike_default","getTag_default","baseIsMap_default","nodeIsMap","nodeUtil_default","isMap","baseUnary_default","baseIsMap_default","isMap_default","setTag","baseIsSet","value","isObjectLike_default","getTag_default","baseIsSet_default","nodeIsSet","nodeUtil_default","isSet","baseUnary_default","baseIsSet_default","isSet_default","CLONE_DEEP_FLAG","CLONE_FLAT_FLAG","CLONE_SYMBOLS_FLAG","argsTag","arrayTag","boolTag","dateTag","errorTag","funcTag","genTag","mapTag","numberTag","objectTag","regexpTag","setTag","stringTag","symbolTag","weakMapTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","cloneableTags","baseClone","value","bitmask","customizer","key","object","stack","result","isDeep","isFlat","isFull","isObject_default","isArr","isArray_default","initCloneArray_default","copyArray_default","tag","getTag_default","isFunc","isBuffer_default","cloneBuffer_default","initCloneObject_default","copySymbolsIn_default","baseAssignIn_default","copySymbols_default","baseAssign_default","initCloneByTag_default","Stack_default","stacked","isSet_default","subValue","isMap_default","keysFunc","getAllKeysIn_default","getAllKeys_default","keysIn_default","keys_default","props","arrayEach_default","assignValue_default","baseClone_default","CLONE_DEEP_FLAG","CLONE_SYMBOLS_FLAG","cloneDeep","value","baseClone_default","cloneDeep_default","now","root_default","now_default","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","toNumber_default","isObject_default","invokeFunc","time","args","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","now_default","trailingEdge","cancel","flush","debounced","isInvoking","debounce_default","isArrayLikeObject","value","isObjectLike_default","isArrayLike_default","isArrayLikeObject_default","LARGE_ARRAY_SIZE","baseDifference","array","values","iteratee","comparator","index","includes","arrayIncludes_default","isCommon","length","result","valuesLength","arrayMap_default","baseUnary_default","arrayIncludesWith_default","cacheHas_default","SetCache_default","outer","value","computed","valuesIndex","baseDifference_default","last","array","length","last_default","head","array","head_default","map","collection","iteratee","func","isArray_default","arrayMap_default","baseMap_default","baseIteratee_default","map_default","flatMap","collection","iteratee","baseFlatten_default","map_default","flatMap_default","stringTag","isString","value","isArray_default","isObjectLike_default","baseGetTag_default","isString_default","boolTag","isBoolean","value","isObjectLike_default","baseGetTag_default","isBoolean_default","mapTag","setTag","objectProto","hasOwnProperty","isEmpty","value","isArrayLike_default","isArray_default","isBuffer_default","isTypedArray_default","isArguments_default","tag","getTag_default","isPrototype_default","baseKeys_default","key","isEmpty_default","numberTag","isNumber","value","isObjectLike_default","baseGetTag_default","isNumber_default","isNaN","value","isNumber_default","isNaN_default","regexpTag","baseIsRegExp","value","isObjectLike_default","baseGetTag_default","baseIsRegExp_default","nodeIsRegExp","nodeUtil_default","isRegExp","baseUnary_default","baseIsRegExp_default","isRegExp_default","baseSum","array","iteratee","result","index","length","current","baseSum_default","FUNC_ERROR_TEXT","negate","predicate","args","negate_default","baseSet","object","path","value","customizer","isObject_default","castPath_default","index","length","lastIndex","nested","key","toKey_default","newValue","objValue","isIndex_default","assignValue_default","baseSet_default","basePickBy","object","paths","predicate","index","length","result","path","value","baseGet_default","baseSet_default","castPath_default","basePickBy_default","pickBy","object","predicate","props","arrayMap_default","getAllKeysIn_default","prop","baseIteratee_default","basePickBy_default","value","path","pickBy_default","omitBy","object","predicate","pickBy_default","negate_default","baseIteratee_default","omitBy_default","orderBy","collection","iteratees","orders","guard","isArray_default","baseOrderBy_default","orderBy_default","asciiSize","baseProperty_default","asciiSize_default","rsAstralRange","rsComboMarksRange","reComboHalfMarksRange","rsComboSymbolsRange","rsComboRange","rsVarRange","rsAstral","rsCombo","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsZWJ","reOptMod","rsOptVar","rsOptJoin","rsSeq","rsSymbol","reUnicode","unicodeSize","string","result","unicodeSize_default","stringSize","string","hasUnicode_default","unicodeSize_default","asciiSize_default","stringSize_default","round","createRound_default","round_default","set","object","path","value","baseSet_default","set_default","sum","array","baseSum_default","identity_default","sum_default","FUNC_ERROR_TEXT","throttle","func","wait","options","leading","trailing","isObject_default","debounce_default","throttle_default","DEFAULT_TRUNC_LENGTH","DEFAULT_TRUNC_OMISSION","reFlags","truncate","string","options","length","omission","isObject_default","separator","toInteger_default","baseToString_default","toString_default","strLength","hasUnicode_default","strSymbols","stringToArray_default","end","stringSize_default","result","castSlice_default","isRegExp_default","match","substring","newEnd","index","truncate_default","union","baseRest_default","arrays","baseUniq_default","baseFlatten_default","isArrayLikeObject_default","union_default","uniq","array","baseUniq_default","uniq_default","baseXor","arrays","iteratee","comparator","length","baseUniq_default","index","result","array","othIndex","baseDifference_default","baseFlatten_default","baseXor_default","xorWith","baseRest_default","arrays","comparator","last_default","baseXor_default","arrayFilter_default","isArrayLikeObject_default","xorWith_default","nullOrMap","project","observable","pipe","map","r","undefinedOrMap","undefined","nullOrSwitchMap","project","observable","pipe","switchMap","r","of","undefinedOrSwitchMap","undefined","ifThen","condition","then","elseThen","o","observable","valueOrSwitchMap","project","observable","pipe","switchMap","r","of","withDefault","defaultValue","evaluateEmptyString","observable","pipe","map","r","toSignal","source","options","requiresCleanup","assertInInjectionContext","cleanupRef","DestroyRef","inject","state","signal","sub","value","error","computed","current","RuntimeError","REGISTERED_ACTION_TYPES","createAction","type","config","REGISTERED_ACTION_TYPES","defineType","args","__spreadProps","__spreadValues","props","defineType","type","creator","INIT","ActionsSubject","BehaviorSubject","action","t","ɵɵdefineInjectable","ACTIONS_SUBJECT_PROVIDERS","_ROOT_STORE_GUARD","InjectionToken","_INITIAL_STATE","INITIAL_STATE","REDUCER_FACTORY","_REDUCER_FACTORY","INITIAL_REDUCERS","_INITIAL_REDUCERS","STORE_FEATURES","_STORE_REDUCERS","_FEATURE_REDUCERS","_FEATURE_CONFIGS","_STORE_FEATURES","_FEATURE_REDUCERS_TOKEN","FEATURE_REDUCERS","USER_PROVIDED_META_REDUCERS","META_REDUCERS","_RESOLVED_META_REDUCERS","USER_RUNTIME_CHECKS","_USER_RUNTIME_CHECKS","ACTIVE_RUNTIME_CHECKS","_ACTION_TYPE_UNIQUENESS_CHECK","ROOT_STORE_PROVIDER","FEATURE_STATE_PROVIDER","combineReducers","reducers","initialState","reducerKeys","finalReducers","i","key","finalReducerKeys","state","hasChanged","nextState","reducer","previousStateForKey","nextStateForKey","omit","object","keyToRemove","result","compose","functions","arg","last","composed","fn","createReducerFactory","reducerFactory","metaReducers","createFeatureReducerFactory","ReducerObservable","Observable","ReducerManagerDispatcher","UPDATE","ReducerManager","dispatcher","feature","features","reducerDict","p","__spreadValues","featureKey","featureKeys","ɵɵinject","REDUCER_MANAGER_PROVIDERS","ScannedActionsSubject","Subject","ɵScannedActionsSubject_BaseFactory","ɵɵgetInheritedFactory","SCANNED_ACTIONS_SUBJECT_PROVIDERS","StateObservable","State","actions$","reducer$","scannedActions","withLatestReducer$","observeOn","queueScheduler","withLatestFrom","seed","stateAndAction$","scan","reduceState","toSignal","stateActionPair","STATE_PROVIDERS","Store","state$","actionsObserver","reducerManager","pathOrMapFn","paths","select","selector","options","computed","operator","store","err","STORE_PROVIDERS","propsOrPath","source$","mapped$","pathSlices","pluck","map","source","distinctUntilChanged","RUNTIME_CHECK_URL","isUndefined","target","isNull","isArray","isString","isBoolean","isNumber","isObjectLike","isObject","isPlainObject","targetPrototype","isFunction","isComponent","hasOwnProperty","propertyName","_ngrxMockEnvironment","isNgrxMockEnvironment","_ngrxMockEnvironment","isEqualCheck","a","b","isArgumentsChanged","args","lastArguments","comparator","defaultMemoize","projectionFn","isArgumentsEqual","isEqualCheck","isResultEqual","lastArguments","lastResult","overrideResult","reset","setResult","result","clearResult","memoized","isArgumentsChanged","newResult","createSelector","input","createSelectorFactory","defaultStateFn","state","selectors","props","memoizedProjector","args","fn","memoize","options","head","tail","isSelectorsDictionary","extractArgsFromSelectorsDictionary","projector","memoizedSelectors","selector","memoizedState","release","isSelectorsDictionary","selectors","selector","extractArgsFromSelectorsDictionary","selectorsDictionary","resultKeys","projector","selectorResults","result","key","index","__spreadProps","__spreadValues","_createStoreReducers","reducers","InjectionToken","inject","_createFeatureStore","configs","featureStores","feat","index","conf","combineReducers","_createFeatureReducers","reducerCollection","reducer","_initialStateFactory","initialState","_concatMetaReducers","metaReducers","userProvidedMetaReducers","_provideForRootGuard","Store","immutabilityCheckMetaReducer","checks","state","action","act","freeze","nextState","target","targetIsFunction","isFunction","prop","hasOwnProperty","propValue","isObjectLike","serializationCheckMetaReducer","unserializableAction","getUnserializable","throwIfUnserializable","unserializableState","path","isUndefined","isNull","result","key","value","isComponent","isNumber","isBoolean","isString","isArray","isPlainObject","unserializable","context","unserializablePath","error","RUNTIME_CHECK_URL","inNgZoneAssertMetaReducer","NgZone","createActiveRuntimeChecks","runtimeChecks","isDevMode","__spreadValues","createSerializationCheckMetaReducer","strictActionSerializability","strictStateSerializability","ignoreNgrxAction","createImmutabilityCheckMetaReducer","strictActionImmutability","strictStateImmutability","createInNgZoneCheckMetaReducer","strictActionWithinNgZone","provideRuntimeChecks","_USER_RUNTIME_CHECKS","USER_RUNTIME_CHECKS","_runtimeChecksFactory","ACTIVE_RUNTIME_CHECKS","META_REDUCERS","checkForActionTypeUniqueness","_ACTION_TYPE_UNIQUENESS_CHECK","_actionTypeUniquenessCheck","config","duplicates","REGISTERED_ACTION_TYPES","registrations","type","_provideStore","reducers","config","_ROOT_STORE_GUARD","_provideForRootGuard","_INITIAL_STATE","INITIAL_STATE","_initialStateFactory","_INITIAL_REDUCERS","_STORE_REDUCERS","InjectionToken","INITIAL_REDUCERS","Inject","_createStoreReducers","USER_PROVIDED_META_REDUCERS","_RESOLVED_META_REDUCERS","META_REDUCERS","_concatMetaReducers","_REDUCER_FACTORY","combineReducers","REDUCER_FACTORY","createReducerFactory","ACTIONS_SUBJECT_PROVIDERS","REDUCER_MANAGER_PROVIDERS","SCANNED_ACTIONS_SUBJECT_PROVIDERS","STATE_PROVIDERS","STORE_PROVIDERS","provideRuntimeChecks","checkForActionTypeUniqueness","_provideState","featureNameOrSlice","reducers","config","_FEATURE_CONFIGS","STORE_FEATURES","InjectionToken","combineReducers","_STORE_FEATURES","_createFeatureStore","_FEATURE_REDUCERS","_FEATURE_REDUCERS_TOKEN","FEATURE_REDUCERS","Inject","_createFeatureReducers","checkForActionTypeUniqueness","StoreRootModule","actions$","reducer$","scannedActions$","store","guard","actionCheck","t","ɵɵinject","ActionsSubject","ReducerObservable","ScannedActionsSubject","Store","_ROOT_STORE_GUARD","_ACTION_TYPE_UNIQUENESS_CHECK","ɵɵdefineNgModule","ɵɵdefineInjector","StoreFeatureModule","features","featureReducers","reducerManager","root","feats","feature","index","__spreadProps","__spreadValues","_initialStateFactory","ReducerManager","StoreModule","_provideStore","DELETE","SHIFT","SIZE","MASK","NOT_SET","MakeRef","SetRef","ref","OwnerID","ensureSize","iter","returnTrue","wrapIndex","index","uint32Index","wholeSlice","begin","end","size","isNeg","resolveBegin","resolveIndex","resolveEnd","defaultIndex","value","IS_COLLECTION_SYMBOL","isCollection","maybeCollection","IS_KEYED_SYMBOL","isKeyed","maybeKeyed","IS_INDEXED_SYMBOL","isIndexed","maybeIndexed","isAssociative","maybeAssociative","Collection","Seq","KeyedCollection","KeyedSeq","IndexedCollection","IndexedSeq","SetCollection","SetSeq","IS_SEQ_SYMBOL","isSeq","maybeSeq","IS_RECORD_SYMBOL","isRecord","maybeRecord","isImmutable","maybeImmutable","IS_ORDERED_SYMBOL","isOrdered","maybeOrdered","ITERATE_KEYS","ITERATE_VALUES","ITERATE_ENTRIES","REAL_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","ITERATOR_SYMBOL","Iterator","next","iteratorValue","type","k","v","iteratorResult","iteratorDone","hasIterator","maybeIterable","getIteratorFn","isIterator","maybeIterator","getIterator","iterable","iteratorFn","isEntriesIterable","isKeysIterable","hasOwnProperty","isArrayLike","emptySequence","seqFromValue","fn","reverse","cache","i","entry","keyedSeqFromValue","indexedSeqFromValue","ArraySeq","array","notSetValue","ii","ObjectSeq","object","keys","key","CollectionSeq","collection","iterator","iterations","step","EMPTY_SEQ","seq","maybeIndexedSeqFromValue","IS_MAP_SYMBOL","isMap","maybeMap","isOrderedMap","maybeOrderedMap","isValueObject","maybeValue","is","valueA","valueB","imul","a","b","c","d","smi","i32","defaultValueOf","hash","o","hashNullish","valueOf","hashNumber","STRING_HASH_CACHE_MIN_STRLEN","cachedHashString","hashString","hashJSObj","hashSymbol","nullish","n","string","hashed","stringHashCache","STRING_HASH_CACHE_SIZE","STRING_HASH_CACHE_MAX_SIZE","sym","symbolMap","nextHash","obj","usingWeakMap","weakMap","UID_HASH_KEY","canDefineProperty","getIENodeHash","isExtensible","node","_objHashUID","ToKeyedSequence","indexed","useKeys","this$1$1","reversedSequence","reverseFactory","mapper","context","mappedSequence","mapFactory","ToIndexedSequence","ToSetSequence","FromEntriesSequence","entries","validateEntry","indexedCollection","cacheResultThrough","flipFactory","flipSequence","makeSequence","filterFactory","predicate","filterSequence","countByFactory","grouper","groups","Map","groupByFactory","isKeyedIter","OrderedMap","coerce","collectionClass","arr","reify","partitionFactory","sliceFactory","originalSize","resolvedBegin","resolvedEnd","resolvedSize","sliceSize","sliceSeq","skipped","isSkipping","takeWhileFactory","takeSequence","iterating","skipWhileFactory","skipSequence","skipping","concatFactory","values","isKeyedCollection","iters","singleton","concatSeq","sum","flattenFactory","depth","flatSequence","stopped","flatDeep","currentDepth","stack","flatMapFactory","interposeFactory","separator","interposedSequence","sortFactory","comparator","defaultComparator","maxFactory","maxCompare","comp","zipWithFactory","keyIter","zipper","zipAll","zipSequence","sizes","iterators","isDone","steps","s","arrCopy","offset","len","newArr","invariant","condition","error","assertNotInfinite","coerceKeyPath","keyPath","toString","isPlainObject","proto","parentProto","nextProto","isDataStructure","quoteString","has","get","shallowCopy","from","to","remove","collectionCopy","set","updateIn$1","updater","updatedValue","updateInDeeply","inImmutable","existing","wasNotSet","existingValue","newValue","nextExisting","nextUpdated","emptyMap","setIn$1","setIn","removeIn","deleteIn","update$1","update","updateIn","merge$1","mergeIntoKeyedWith","mergeWith$1","merger","collections","collection$1","mergeIntoCollection","oldVal","mergeDeepWithSources","collection","sources","merger","mergeWithSources","deepMergerWith","isDataStructure","isImmutable","isArray","merged","Collection","IndexedCollection","KeyedCollection","mergeItem","value","shallowCopy","key","hasVal","hasOwnProperty","nextVal","i","deepMerger","oldValue","newValue","areMergeable","oldDataStructure","newDataStructure","oldSeq","Seq","newSeq","isIndexed","isKeyed","mergeDeep","iters","len","mergeDeepWith","mergeIn","keyPath","updateIn$1","emptyMap","m","mergeDeepIn","withMutations","fn","mutable","asMutable","OwnerID","asImmutable","wasAltered","Map","isMap","isOrdered","map","iter","assertNotInfinite","v","k","keyValues","notSetValue","updateMap","NOT_SET","keys","comparator","OrderedMap","sortFactory","mapper","context","this$1$1","type","reverse","MapIterator","iterations","entry","ownerID","makeMap","MapPrototype","IS_MAP_SYMBOL","DELETE","setIn","deleteIn","update","updateIn","merge$1","mergeWith$1","result","arr","obj","ArrayMapNode","entries","shift","keyHash","ii","is","didChangeSize","didAlter","removed","idx","exists","SetRef","MAX_ARRAY_MAP_SIZE","createNodes","isEditable","newEntries","arrCopy","BitmapIndexedNode","bitmap","nodes","hash","bit","MASK","popCount","SHIFT","keyHashFrag","node","newNode","updateNode","MAX_BITMAP_INDEXED_SIZE","expandNodes","isLeafNode","newBitmap","newNodes","setAt","spliceOut","spliceIn","HashArrayMapNode","count","newCount","MIN_HASH_ARRAY_MAP_SIZE","packNodes","HashCollisionNode","mergeIntoNode","ValueNode","keyMatch","maxIndex","Iterator","mapIteratorFrame","stack","index","mapIteratorValue","subNode","iteratorDone","iteratorValue","prev","size","root","EMPTY_MAP","newRoot","newSize","MakeRef","idx1","idx2","excluding","packedII","packedNodes","including","expandedNodes","SIZE","x","array","val","canEdit","newArray","newLen","after","IS_LIST_SYMBOL","isList","maybeList","List","empty","emptyList","makeList","VNode","list","wrapIndex","listNodeFor","updateList","values","oldSize","setListBounds","arguments$1","seqs","argument","seq","hasIterator","begin","end","wholeSlice","resolveBegin","resolveEnd","iterateList","DONE","ListPrototype","level","originIndex","removingFirst","newChild","oldChild","editable","editableVNode","sizeIndex","left","right","tailPos","getTailOffset","tail","iterateNodeOrLeaf","offset","iterateLeaf","iterateNode","from","to","origin","capacity","EMPTY_LIST","newTail","updateVNode","nodeHas","lowerNode","newLowerNode","rawIndex","owner","oldOrigin","oldCapacity","newOrigin","newCapacity","newLevel","offsetShift","oldTailOffset","newTailOffset","oldTail","beginIndex","emptyOrderedMap","isOrderedMap","updateOrderedMap","newMap","newList","makeOrderedMap","IS_ORDERED_SYMBOL","omap","EMPTY_ORDERED_MAP","has","IS_STACK_SYMBOL","isStack","maybeStack","Stack","emptyStack","head","makeStack","resolvedBegin","resolvedEnd","ArraySeq","StackPrototype","EMPTY_STACK","IS_SET_SYMBOL","isSet","maybeSet","isOrderedSet","maybeOrderedSet","deepEqual","a","b","isCollection","notAssociative","isAssociative","flipped","_","allEqual","bSize","mixin","ctor","methods","keyCopier","toJS","result$1","Set","SetCollection","emptySet","set","sets","SetPrototype","updateSet","didChanges","ref","mapped","toRemove","OrderedSet","makeSet","EMPTY_SET","Range","IndexedSeq","start","step","invariant","EMPTY_RANGE","searchValue","possibleIndex","offsetValue","other","getIn$1","searchKeyPath","coerceKeyPath","get","getIn","hasIn$1","hasIn","toObject","object","useTuples","ToIndexedSequence","ToKeyedSequence","ToSetSequence","reify","concatFactory","ITERATE_ENTRIES","predicate","returnValue","c","filterFactory","partitionFactory","sideEffect","separator","joined","isFirst","ITERATE_KEYS","mapFactory","reducer","initialReduction","reduce","reverseFactory","sliceFactory","not","ITERATE_VALUES","ensureSize","grouper","countByFactory","entriesSequence","entryMapper","found","returnTrue","flatMapFactory","depth","flattenFactory","FromEntriesSequence","searchKey","groupByFactory","keyMapper","maxFactory","neg","defaultNegComparator","amount","skipWhileFactory","takeWhileFactory","hashCollection","CollectionPrototype","IS_COLLECTION_SYMBOL","ITERATOR_SYMBOL","quoteString","flipFactory","KeyedCollectionPrototype","IS_KEYED_SYMBOL","removeNum","numArgs","spliced","interposeFactory","collections","zipped","zipWithFactory","interleaved","defaultZipper","zipper","IndexedCollectionPrototype","IS_INDEXED_SYMBOL","SetCollectionPrototype","KeyedSeq","SetSeq","reduction","useFirst","ordered","keyed","h","hashMerge","murmurHashOfSize","imul","smi","emptyOrderedSet","OrderedSetPrototype","makeOrderedSet","EMPTY_ORDERED_SET","throwOnInvalidDefaultValues","defaultValues","isRecord","isImmutable","Record","name","hasInitialized","RecordType","values","this$1$1","keys","indices","RecordTypePrototype","i","propName","recordName","setProp","List","l","KeyedCollection","v","k","RecordPrototype","str","quoteString","other","recordSeq","notSetValue","index","value","newValues","makeRecord","toJS","ITERATE_ENTRIES","type","reverse","fn","ownerID","IS_RECORD_SYMBOL","DELETE","deleteIn","getIn","CollectionPrototype","merge$1","mergeWith$1","mergeIn","mergeDeep","mergeDeepWith","mergeDeepIn","setIn","update","updateIn","withMutations","asMutable","asImmutable","ITERATOR_SYMBOL","likeRecord","record","keyedSeqFromValue","prototype","invariant","combineMap","items","predicate","length","of","combineLatest","map","item","pipe","results","filter","result","firstValueOrDefault","source","defaultValue","firstValueFrom","firstValueOrUndefined","undefined","firstValueOrNull","countdownInSeconds","seconds","interval","pipe","take","map","v","genericMessage","_a","setPrototypeOf","obj","proto","InvariantError","_super","__extends","message","_this","invariant","condition","message","InvariantError","verbosityLevels","verbosityLevel","wrapConsoleMethod","name","method","setVerbosity","level","old","maybe","thunk","global_default","maybe","__","GLOBAL_KEY","getDEV","global_default","maybe","DEV_default","maybe","thunk","safeGlobal","needToRemove","install","remove","_typeof","obj","isObjectLike","value","SYMBOL_ITERATOR","SYMBOL_ASYNC_ITERATOR","SYMBOL_TO_STRING_TAG","getLocation","source","position","lineRegexp","line","column","match","printLocation","location","printSourceLocation","getLocation","source","sourceLocation","firstLineColumnOffset","body","whitespace","lineIndex","lineOffset","lineNum","columnOffset","columnNum","locationStr","lines","locationLine","subLineIndex","subLineColumnNum","subLines","i","printPrefixedLines","subLine","existingLines","_ref","_","line","padLen","_ref2","prefix","_ref3","leftPad","len","str","_typeof","obj","ownKeys","object","enumerableOnly","keys","symbols","sym","_objectSpread","target","i","source","key","_defineProperty","value","_classCallCheck","instance","Constructor","_defineProperties","props","descriptor","_createClass","protoProps","staticProps","_inherits","subClass","superClass","_setPrototypeOf","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","Super","_getPrototypeOf","result","NewTarget","_possibleConstructorReturn","self","call","_assertThisInitialized","_wrapNativeSuper","Class","_cache","_isNativeFunction","Wrapper","_construct","Parent","args","a","fn","o","p","GraphQLError","_Error","_super","message","nodes","positions","path","originalError","extensions","_nodeLocations","_nodeLocations2","_nodeLocations3","_this","undefinedIfEmpty","nodeLocations","_i2","_ref3","_this$nodes","_ref4","loc","pos","getLocation","originalExtensions","isObjectLike","printError","SYMBOL_TO_STRING_TAG","array","error","output","_i4","_error$nodes2","node","printLocation","_i6","_error$locations2","location","printSourceLocation","syntaxError","source","position","description","GraphQLError","Kind","invariant","condition","message","booleanCondition","nodejsCustomInspectSymbol","nodejsCustomInspectSymbol_default","defineInspect","classObject","fn","invariant","nodejsCustomInspectSymbol_default","Location","startToken","endToken","source","_proto","defineInspect","Token","kind","start","end","line","column","prev","value","_proto2","isNode","maybeNode","TokenKind","_typeof","obj","MAX_ARRAY_LENGTH","MAX_RECURSIVE_DEPTH","inspect","value","formatValue","seenValues","formatObjectValue","previouslySeenValues","customInspectFn","getCustomFn","customValue","formatArray","formatObject","object","keys","getObjectTag","properties","key","array","len","remaining","items","i","nodejsCustomInspectSymbol_default","tag","name","devAssert","condition","message","booleanCondition","instanceOf_default","value","constructor","_defineProperties","target","props","i","descriptor","_createClass","Constructor","protoProps","staticProps","Source","body","name","locationOffset","devAssert","inspect","SYMBOL_TO_STRING_TAG","isSource","source","instanceOf_default","DirectiveLocation","dedentBlockStringValue","rawString","lines","commonIndent","getBlockStringIndentation","startLine","isBlank","endLine","str","i","value","_commonIndent","isFirstLine","isEmptyLine","indent","printBlockString","indentation","preferMultipleLines","isSingleLine","hasLeadingSpace","hasTrailingQuote","hasTrailingSlash","printAsMultipleLines","result","Lexer","source","startOfFileToken","Token","TokenKind","_proto","token","_token$next","readToken","isPunctuatorTokenKind","kind","printCharCode","code","lexer","prev","body","bodyLength","pos","_line","_col","readComment","readBlockString","readString","readNumber","readName","syntaxError","unexpectedCharacterMessage","line","col","start","position","firstCode","isFloat","readDigits","isNameStart","chunkStart","value","charCode","uniCharCode","invalidSequence","rawValue","dedentBlockStringValue","a","b","c","d","char2hex","parse","source","options","parser","Parser","Parser","source","options","sourceObj","isSource","Source","Lexer","_proto","token","TokenKind","Kind","start","operation","name","operationToken","nameOrAlias","alias","isConst","item","hasTypeCondition","_this$_options","_this","_this2","directives","type","keywordToken","description","operationTypes","interfaces","fields","_this$_options2","types","_this$_options3","args","defaultValue","values","repeatable","locations","DirectiveLocation","startToken","_this$_options4","Location","kind","syntaxError","getTokenKindDesc","getTokenDesc","value","atToken","openKind","parseFn","closeKind","nodes","delimiterKind","isPunctuatorTokenKind","QueryDocumentKeys","BREAK","visit","root","visitor","visitorKeys","stack","inArray","keys","index","edits","node","key","parent","path","ancestors","newRoot","isLeaving","isEdited","clone","_i2","_Object$keys2","k","editOffset","ii","editKey","editValue","result","isNode","inspect","visitFn","getVisitFn","_visitorKeys$node$kin","getVisitFn","visitor","kind","isLeaving","kindVisitor","kindSpecificVisitor","specificVisitor","specificKindVisitor","print","ast","visit","printDocASTReducer","MAX_LINE_LENGTH","node","join","op","name","varDefs","wrap","directives","selectionSet","_ref","variable","type","defaultValue","_ref2","selections","block","_ref3","alias","args","prefix","argsLine","indent","_ref4","value","_ref5","_ref6","typeCondition","_ref7","variableDefinitions","_ref8","_ref9","_ref10","key","isBlockString","printBlockString","_ref11","_ref12","_ref13","values","_ref14","fields","_ref15","_ref16","_ref17","_ref18","_ref19","addDescription","_ref20","operationTypes","_ref21","operation","_ref22","_ref23","interfaces","_ref24","hasMultilineItems","_ref25","_ref26","_ref27","types","_ref28","_ref29","_ref30","_ref31","repeatable","locations","_ref32","_ref33","_ref34","_ref35","_ref36","_ref37","_ref38","cb","maybeArray","_maybeArray$filter$jo","separator","x","array","start","maybeString","end","str","isMultiline","isSelectionNode","node","Kind","removeTemporaryGlobals","Source","remove","checkDEV","invariant","DEV_default","removeTemporaryGlobals","checkDEV","shouldInclude","_a","variables","directives","getInclusionDirectives","directive","ifArgument","evaledValue","invariant","hasDirectives","names","root","all","nameSet","uniqueCount","visit","node","BREAK","hasClientExports","document","isInclusionDirective","_a","value","getInclusionDirectives","directives","result","directive","directiveArguments","directiveName","invariant","ifArgument","ifValue","getFragmentQueryDocument","document","fragmentName","actualFragmentName","fragments","definition","InvariantError","invariant","query","__assign","__spreadArray","createFragmentMap","symTable","fragment","getFragmentFromSelection","selection","fragmentMap","isNonNullObject","obj","makeReference","id","isReference","obj","isDocumentNode","value","isNonNullObject","isStringValue","isBooleanValue","isIntValue","isFloatValue","isVariable","isObjectValue","isListValue","isEnumValue","isNullValue","valueToObjectRepresentation","argObj","name","variables","nestedArgObj_1","variableValue","listValue","nestedArgArrayObj","InvariantError","storeKeyNameFromField","field","directivesObj","directive","_a","getStoreKeyName","KNOWN_DIRECTIVES","fieldName","args","directives","filterKeys","filteredArgs_1","key","stringify","completeFieldName","stringifiedArgs","s","previous","stringifyReplacer","_key","copy","argumentsObjectFromField","argObj_1","resultKeyNameFromField","getTypenameFromResult","result","selectionSet","fragmentMap","_i","selection","isField","typename","getFragmentFromSelection","isInlineFragment","checkDocument","doc","invariant","operations","d","definition","InvariantError","getOperationDefinition","getOperationName","x","getFragmentDefinitions","getQueryDefinition","queryDef","getFragmentDefinition","fragmentDef","getMainDefinition","queryDoc","fragmentDefinition","_i","_a","operation","getDefaultValues","defaultValues","defs","def","valueToObjectRepresentation","filterInPlace","array","test","context","target","elem","i","TYPENAME_FIELD","isEmpty","op","fragmentMap","selection","nullIfDocIsEmpty","doc","getOperationDefinition","getFragmentDefinition","createFragmentMap","getFragmentDefinitions","getDirectiveMatcher","directives","directive","dir","removeDirectivesFromDocument","variablesInUse","variablesToRemove","fragmentSpreadsInUse","fragmentSpreadsToRemove","modifiedDoc","visit","node","_key","parent","shouldRemoveField","arg","getAllFragmentSpreadsFromSelectionSet","frag","filterInPlace","v","removeArgumentsFromDocument","fs","removeFragmentSpreadFromDocument","addTypenameToDocument","selections","skip","isField","field","d","__assign","__spreadArray","connectionRemoveConfig","willRemove","invariant","removeConnectionDirectiveFromDocument","checkDocument","getArgumentMatcher","config","argument","aConfig","removeArgumentsFromDocument","doc","argMatcher","nullIfDocIsEmpty","visit","node","__assign","varDef","arg","shouldRemoveField","argConfig","argMatchCount_1","removeFragmentSpreadFromDocument","enter","def","getAllFragmentSpreadsFromSelectionSet","selectionSet","allFragments","selection","isField","isInlineFragment","frag","buildQueryFromSelectionSet","document","definition","getMainDefinition","definitionOperation","modifiedDoc","removeClientSetsFromDocument","checkDocument","removeDirectivesFromDocument","directive","isTypenameOnly","hasOwnProperty","mergeDeep","sources","_i","mergeDeepArray","target","count","merger","DeepMerger","i","defaultReconciler","source","property","reconciler","isNonNullObject","_this","context","sourceKey","targetValue","result","__spreadArray","value","__assign","_createForOfIteratorHelperLoose","o","allowArrayLike","it","_unsupportedIterableToArray","minLen","_arrayLikeToArray","n","arr","len","i","arr2","_defineProperties","target","props","descriptor","_createClass","Constructor","protoProps","staticProps","hasSymbols","hasSymbol","name","getSymbol","SymbolIterator","SymbolObservable","SymbolSpecies","getMethod","obj","key","value","getSpecies","ctor","Observable","isObservable","x","hostReportError","e","enqueue","fn","cleanupSubscription","subscription","cleanup","unsubscribe","closeSubscription","flushSubscription","queue","notifySubscription","type","observer","m","onNotify","Subscription","subscriber","subscriptionObserver","SubscriptionObserver","_proto","_proto2","_proto3","_this","resolve","reject","done","_this2","C","_this3","_this4","hasSeed","hasValue","seed","acc","first","_this5","_len","sources","_key","index","startNext","next","v","_this6","subscriptions","outer","inner","completeIfDone","s","method","observable","_iterator","_step","item","_len2","items","_key2","symbolObservablePonyfill","root","result","Symbol","root","result","symbolObservablePonyfill","prototype","Observable","fakeObsSymbol","toString","cloneDeep","value","cloneDeepHelper","val","seen","copy_1","child","i","copy_2","key","deepFreeze","value","workSet","obj","isNonNullObject","shallowFreeze","name","maybeDeepFreeze","iterateObserversSafely","observers","method","argument","observersWithMethod","obs","asyncMap","observable","mapFn","catchFn","Observable","observer","next","error","complete","activeCallbackCount","completed","promiseQueue","callback","resolve","makeCallback","examiner","delegate","arg","both","result","handler","caught","sub","canUseWeakMap","maybe","canUseWeakSet","canUseSymbol","canUseAsyncIteratorSymbol","canUseDOM","usingJSDOM","fixObservableSubclass","subclass","set","key","Observable","canUseSymbol","isPromiseLike","value","Concast","_super","__extends","sources","_this","observer","resolve","reject","result","iterateObserversSafely","error","sub","obs","reason","_","Observable","iterable","nextOrError","method","arg","nextResultListeners","listener","callback","called","fixObservableSubclass","Concast","isNonEmptyArray","value","isExecutionPatchIncrementalResult","value","isExecutionPatchInitialResult","isExecutionPatchResult","mergeIncrementalData","prevResult","result","mergedData","merger","DeepMerger","isNonEmptyArray","_a","data","path","i","key","isNumericKey","parent_1","graphQLResultHasError","result","errors","getGraphQLErrorsFromResult","isNonEmptyArray","graphQLErrors","isExecutionPatchIncrementalResult","incrementalResult","compact","objects","_i","result","obj","key","value","prefixCounts","makeUniqueId","prefix","count","stringifyForDisplay","value","undefId","makeUniqueId","key","mergeOptions","defaults","options","compact","__assign","fromError","errorValue","Observable","observer","throwServerError","response","result","message","error","validateOperation","operation","OPERATION_FIELDS","_i","_a","key","InvariantError","createOperation","starting","operation","context","__assign","setContext","next","getContext","transformOperation","operation","transformedOperation","getOperationName","passthrough","op","forward","Observable","toLink","handler","ApolloLink","isTerminating","link","LinkError","_super","__extends","message","_this","request","links","x","y","test","left","right","leftLink","rightLink","operation","createOperation","transformOperation","validateOperation","first","second","firstLink","invariant","nextLink","next","InvariantError","error","observer","fn","execute","ApolloLink","version","isNodeResponse","value","isReadableStream","isAsyncIterableIterator","canUseAsyncIteratorSymbol","isStreamableBlob","isBlob","isNodeReadableStream","asyncIterator","source","_a","iterator","nodeStreamIterator","stream","cleanup","error","done","data","waiting","onData","chunk","shiftedArr","onError","err","all","pair","onEnd","getNext","resolve","reject","iterator","canUseAsyncIteratorSymbol","promiseIterator","promise","resolved","iterator","resolve","reject","value","canUseAsyncIteratorSymbol","readerIterator","reader","iterator","canUseAsyncIteratorSymbol","responseIterator","response","body","isNodeResponse","isAsyncIterableIterator","asyncIterator","isReadableStream","readerIterator","isStreamableBlob","isBlob","promiseIterator","isNodeReadableStream","nodeStreamIterator","hasOwnProperty","readMultipartBody","response","observer","_a","_b","_c","__awaiter","decoder","contentType","delimiter","boundaryVal","boundary","buffer","iterator","running","_d","value","done","chunk","bi","message","i","headers","contentType_1","body","result","_e","__generator","_f","responseIterator","parseHeaders","parseJsonBody","err","handleError","headerText","headersInit","line","name_1","bodyText","getResult","throwServerError","parseError","readJsonBody","operation","parseAndCheckHttpResponse","operations","op","serializeFetchParameter","p","label","serialized","e","parseError","InvariantError","defaultHttpOptions","defaultHeaders","defaultOptions","fallbackHttpConfig","defaultPrinter","ast","printer","selectHttpOptionsAndBodyInternal","operation","printer","configs","_i","options","http","config","__assign","removeDuplicateHeaders","operationName","extensions","variables","query","body","print","headers","preserveHeaderCase","normalizedHeaders_1","name","headerData","normalizedHeaders","checkFetcher","fetcher","InvariantError","createSignalIfSupported","controller","signal","selectURI","operation","fallbackURI","context","contextURI","rewriteURIForGET","chosenURI","body","queryParams","addQueryParam","key","value","serializedVariables","serializeFetchParameter","parseError","serializedExtensions","fragment","preFragment","fragmentStart","queryParamsPrefix","newURI","backupFetch","maybe","createHttpLink","linkOptions","_a","uri","preferredFetch","_b","print","defaultPrinter","includeExtensions","preserveHeaderCase","useGETForQueries","_c","includeUnusedVariables","requestOptions","__rest","checkFetcher","linkConfig","ApolloLink","operation","chosenURI","selectURI","context","clientAwarenessHeaders","name_1","version","contextHeaders","__assign","contextConfig","selectHttpOptionsAndBodyInternal","fallbackHttpConfig","options","body","unusedNames_1","visit","node","_key","parent","name","controller","createSignalIfSupported","_controller","signal","definitionIsMutation","d","hasDirectives","_d","rewriteURIForGET","newURI","parseError","fromError","serializeFetchParameter","Observable","observer","currentFetch","response","ctype","readMultipartBody","readJsonBody","err","handleError","HttpLink","_super","__extends","options","_this","createHttpLink","ApolloLink","toString","hasOwnProperty","fnToStr","previousComparisons","equal","a","b","check","check","a","b","aTag","toString","bTag","previouslyCompared","aKeys","definedKeys","bKeys","keyCount","k","hasOwnProperty","key","aIterator","isMap","info","aKey","aValue","len","aCode","fnToStr","endsWith","nativeCodeSuffix","obj","isDefinedKey","full","suffix","fromIndex","bSet","previousComparisons","defaultMakeData","_a","forEach","slice","Trie","weakness","makeData","array","_i","node","key","map","isObjRef","child","value","currentContext","MISSING_VALUE","idCounter","makeSlotClass","context","value","callback","args","thisArg","slots","parent","saved","maybe","fn","globalKey","host","globalHost","Slot","bind","noContext","Slot","defaultDispose","Cache","max","dispose","key","node","older","newer","value","parentEntrySlot","Slot","_a","hasOwnProperty","toArray","collection","array","item","maybeUnsubscribe","entryOrDep","unsubscribe","emptySetPool","POOL_TARGET_SIZE","assert","condition","optionalMessage","valueIs","a","b","len","valueGet","valueCopy","Entry","fn","mightBeDirty","rememberParent","args","reallyRecompute","reportDirty","_this","forgetChildren","eachParent","parent","child","forgetChild","dep","reportDirtyChild","reportCleanChild","entry","recomputeNewValue","maybeSubscribe","setClean","e","reportClean","callback","parentCount","parents","i","parentWasClean","childValue","removeDirtyChild","dc","_value","EntryMethods","options","depsByKey","subscribe","depend","dep_1","entryMethodName","m_1","makeDefaultMakeCacheKeyFunction","keyTrie","Trie","defaultMakeCacheKey","caches","wrap","originalFunction","cache","keyArgs","makeCacheKey","optimistic","dirtyKey","peekKey","forgetKey","ApolloCache","wrap","getFragmentQueryDocument","options","_this","optimisticId","updateResult","transaction","document","object","optimistic","__assign","_a","id","data","__rest","fragment","fragmentName","update","cache","value","MissingFieldError","_super","__extends","message","path","query","variables","_a","_this","i","hasOwn","isNullish","value","isArray","defaultDataIdFromObject","_a","context","__typename","id","_id","defaultConfig","normalizeConfig","config","compact","shouldCanonizeResults","getTypenameFromStoreObject","store","objectOrReference","isReference","TypeOrFieldNameRegExp","fieldNameFromStoreName","storeFieldName","match","selectionSetMatchesResult","selectionSet","result","variables","isNonNullObject","item","field","isField","shouldInclude","key","resultKeyNameFromField","storeValueIsStoreObject","makeProcessedFieldsMerger","DeepMerger","extractFragmentContext","document","fragments","fragmentMap","createFragmentMap","getFragmentDefinitions","name","def","DELETE","delModifier","INVALIDATE","EntityStore","policies","group","_this","objectOrReference","storeFieldName","maybeDeepFreeze","isReference","objOrRef","objOrIdOrRef","mergeIntoStore","makeReference","id","ref","__assign","dataId","fieldName","hasOwn","storeObject","Layer","dependOnExistence","older","newer","existing","incoming","invariant","merged","DeepMerger","storeObjectReconciler","fieldsToDirty_1","fieldNameFromStoreName","fields","changedFields_1","needToMerge_1","allDeleted_1","sharedDetails_1","fieldNameOrOptions","from","fieldValue","modify","newValue","args","_a","typename","options","limit","evicted","obj","extraRootIds","newData","__META","rest_1","__rest","rootId","count","ids","snapshot","idsToRemove","root_1","found_1","root","workSet_1","isNonNullObject","key","child","CacheGroup","caching","parent","dep","Trie","canUseWeakMap","dataId","storeFieldName","makeDepKey","fieldName","fieldNameFromStoreName","maybeDependOnExistenceOfEntity","store","entityId","supportsResultCaching","EntityStore","Root","_super","__extends","_a","policies","_b","resultCaching","seed","_this","Stump","layerId","replay","Layer","id","group","ownStoreObject","parentStoreObject","equal","__assign","fromParent","hasOwn","p","root","storeObjectReconciler","existingObject","incomingObject","property","existingValue","incomingValue","shallowCopy","value","isNonNullObject","isArray","__assign","ObjectCanon","canUseWeakSet","Trie","canUseWeakMap","copy","_this","original","proto","array","node","proto_1","array_1","keys","firstValueIndex_1","key","obj_1","i","obj","json","canonicalStringify","value","isNonNullObject","stringifyCanon","resetCanonicalStringify","canonical","json","stringifyCache","ObjectCanon","canUseWeakMap","execSelectionSetKeyArgs","options","StoreReader","config","_this","canUseWeakMap","compact","shouldCanonizeResults","ObjectCanon","wrap","_a","canonizeResults","peekArgs","other","__assign","maybeDependOnExistenceOfEntity","selectionSet","parent","context","supportsResultCaching","isReference","field","array","store","query","_b","rootId","variables","_c","returnPartialData","_d","policies","getDefaultValues","getQueryDefinition","rootRef","makeReference","execResult","getMainDefinition","canonicalStringify","extractFragmentContext","missing","MissingFieldError","firstMissing","result","latest","objectOrReference","enclosingRef","typename","objectsToMerge","missingMerger","DeepMerger","handleMissing","resultName","workSet","selection","shouldInclude","isField","fieldValue","resultKeyNameFromField","addTypenameToDocument","isArray","fragment","getFragmentFromSelection","Kind","InvariantError","mergeDeepArray","finalResult","frozen","maybeDeepFreeze","childResult","i","item","assertSelectionSetForIdValue","firstMissing","tree","_","value","result","assertSelectionSetForIdValue","store","field","fieldValue","workSet_1","isNonNullObject","invariant","isReference","getTypenameFromStoreObject","cacheSlot","Slot","cacheInfoMap","getCacheInfo","cache","info","dep","forgetCache","rv","recallCache","makeVar","value","caches","listeners","newValue","broadcast","oldListeners","listener","attach","specifierInfoCache","lookupSpecifierInfo","spec","cacheKey","keyFieldsFnFromSpecifier","specifier","info","object","context","extract","from","key","keyObject","collectSpecifierPaths","schemaKeyPath","extracted","extractKeyPath","hasOwn","extractKey","invariant","keyArgsFnFromSpecifier","args","_a","field","variables","fieldName","collected","keyPath","firstKey","firstChar","isNonEmptyArray","directiveName_1","d","directiveArgs","argumentsObjectFromField","variableName","varKeyPath","suffix","extractor","merger","DeepMerger","getSpecifierPaths","path","toMerge","i","paths_1","currentPath_1","s","isArray","p","normalize","reducer","obj","child","value","isNonNullObject","getStoreKeyName","canonicalStringify","argsFromFieldSpecifier","spec","argumentsObjectFromField","nullKeyFieldsFn","simpleKeyArgsFn","_args","context","mergeTrueFn","existing","incoming","_a","mergeObjects","mergeFalseFn","_","Policies","config","__assign","defaultDataIdFromObject","object","partialContext","policies","typename","storeObject","options","normalizeReadFieldOptions","id","policy","keyFn","specifierOrId","isArray","keyFieldsFnFromSpecifier","typePolicies","_this","queryType","mutationType","subscriptionType","__rest","hasOwn","keyFields","fields","setMerge","merge","fieldName","keyArgs","read","keyArgsFnFromSpecifier","which","rootId","old","invariant","possibleTypes","supertype","subtype","match","TypeOrFieldNameRegExp","policy_1","supertypes","rest","inbox","createIfMissing","fieldPolicies","supertypeSet","fragment","result","variables","typenameSupertypeSet","workQueue_1","maybeEnqueue_1","needToCheckFuzzySubtypes","checkingFuzzySubtypes","i","selectionSetMatchesResult","regExp","fuzzyString","fieldSpec","storeFieldName","args","specifierOrString","storeKeyNameFromField","fieldNameFromStoreName","objectOrReference","nameOrField","readOptions","makeFieldFunctionOptions","isReference","cacheSlot","parentTypename","childTypename","storage","field","makeMergeObjectsFunction","makeFieldFunctionOptions","policies","objectOrReference","fieldSpec","context","storage","storeFieldName","fieldName","fieldNameFromStoreName","variables","_a","toReference","canRead","argsFromFieldSpecifier","isReference","normalizeReadFieldOptions","makeMergeObjectsFunction","readFieldArgs","fieldNameOrOptions","from","argc","options","__assign","hasOwn","invariant","stringifyForDisplay","store","existing","incoming","isArray","InvariantError","isNonNullObject","eType","iType","typesDiffer","storeValueIsStoreObject","getContextFlavor","context","clientOnly","deferred","key","flavored","__assign","StoreWriter","cache","reader","fragments","store","_a","_this","query","result","dataId","variables","overwrite","operationDefinition","getOperationDefinition","merger","makeProcessedFieldsMerger","getDefaultValues","existing","incoming","canonicalStringify","extractFragmentContext","ref","isReference","InvariantError","storeObject","mergeTree","fieldNodeSet","entityRef","makeReference","applied","fieldsWithSelectionSets_1","field","hasSelectionSet_1","storeFieldName","fieldNameFromStoreName","hasMergeFunction_1","childTree","warnAboutDataLoss","selectionSet","policies","typename","getTypenameFromResult","readField","options","normalizeReadFieldOptions","info","result_1","resultFieldKey","resultKeyNameFromField","value","getChildMergeTree","incomingValue","childTypename","storeValueIsStoreObject","merge","maybeRecycleChildMergeTree","addTypenameToDocument","invariant","_b","id","keyObject","e","dataRef","sets","previous_1","mergeMergeTrees","mergeTreeIsEmpty","cloneDeep","isArray","item","i","fieldMap","limitingTrie","Trie","flatten","inheritedContext","visitedNode","selection","shouldInclude","isNonEmptyArray","dir","name","args","argumentsObjectFromField","isField","fragment","getFragmentFromSelection","Kind","getStorageArgs","e_1","i_1","changedFields_1","getValue_1","from","eVal","iVal","aVal","emptyMergeTreePool","getChildMergeTree","_a","name","map","mergeMergeTrees","left","right","mergeTreeIsEmpty","info","__assign","needToMergeMaps","merged","remainingRightKeys_1","leftTree","key","tree","maybeRecycleChildMergeTree","childTree","warnings","warnAboutDataLoss","existingRef","incomingObj","storeFieldName","store","getChild","objOrRef","child","existing","incoming","isReference","equal","parentType","fieldName","fieldNameFromStoreName","typeDotName","childTypenames","isArray","typename","invariant","InMemoryCache","_super","__extends","config","_this","makeVar","normalizeConfig","Policies","rootStore","EntityStore","resetResultIdentities","previousReader","fragments","StoreWriter","StoreReader","shouldCanonizeResults","wrap","c","options","store","supportsResultCaching","optimistic","id","variables","canonicalStringify","group","data","_a","returnPartialData","__assign","e","MissingFieldError","hasOwn","watch","recallCache","forgetCache","ids","rootId","object","isReference","invariant","idToRemove","newOptimisticData","update","removeOptimistic","onWatchUpdated","updateResult","perform","layer","optimisticData","alreadyDirty","diff","result","optimisticId","document","addTypenameToDocument","lastDiff","equal","ApolloCache","isApolloError","err","generateErrorMessage","message","isNonEmptyArray","errors","error","errorMessage","ApolloError","_super","__extends","_a","graphQLErrors","clientErrors","networkError","extraInfo","_this","NetworkStatus","isNetworkRequestInFlight","networkStatus","assign","hasOwnProperty","ObservableQuery","_super","__extends","_a","queryManager","queryInfo","options","_this","observer","subObserver","defaultSubscriptionObserverErrorCallback","first","last","_b","_c","_d","defaultFetchPolicy","_e","fetchPolicy","_f","initialFetchPolicy","__assign","opDef","getOperationDefinition","resolve","reject","result","subscription","saveAsLastResult","lastResult","networkStatus","NetworkStatus","isNetworkRequestInFlight","diff","equal","logMissingFieldErrors","newResult","variables","key","variablesMustMatch","reobserveOptions","queryDef","getQueryDefinition","vars","v","invariant","fetchMoreOptions","combinedOptions","qid","originalNetworkStatus","updatedQuerySet","fetchMoreResult","cache","updateQuery","previous","watch","reobserveCacheFirst","subscriptionData","err","newOptions","mapFn","pollInterval","reason","newNetworkStatus","pollingInfo","info","maybeFetch","poll","cloneDeep","isNonEmptyArray","useDisposableConcast","oldVariables","oldFetchPolicy","mergedOptions","compact","concast","error","lastError","iterateObserversSafely","errorResult","sub","Observable","fixObservableSubclass","ObservableQuery","reobserveCacheFirst","obsQuery","_a","fetchPolicy","nextFetchPolicy","defaultSubscriptionObserverErrorCallback","error","invariant","logMissingFieldErrors","missing","LocalState","_a","cache","client","resolvers","fragmentMatcher","_this","resolverGroup","mergeDeep","document","remoteResult","context","variables","_b","onlyRunForcedResolvers","__awaiter","__generator","_c","localResult","__assign","hasDirectives","removeClientSetsFromDocument","obj","data","forceResolvers","visit","node","arg","BREAK","buildQueryFromSelectionSet","rootValue","mainDefinition","fragments","fragmentMap","selectionsToResolve","definitionOperation","defaultOperationType","execContext","isClientFieldDescendant","getMainDefinition","getFragmentDefinitions","createFragmentMap","result","selectionSet","resultsToMerge","execute","selection","fragment","typeCondition","shouldInclude","isField","fieldResult","resultKeyNameFromField","isInlineFragment","invariant","fragmentResult","mergeDeepArray","field","fieldName","aliasedFieldName","aliasUsed","defaultResult","resultPromise","resolverType","resolverMap","resolve","cacheSlot","argumentsObjectFromField","directive","isClientField","d","item","isSingleASTNode","selectionsToResolveCache","collectByDefinition","definitionNode","matches_1","_","__","___","ancestors","isSelectionNode","spread","fragmentSelections","destructiveMethodCounts","canUseWeakMap","wrapDestructiveCacheMethod","cache","methodName","original","cancelNotifyTimeout","info","QueryInfo","queryManager","queryId","query","networkStatus","NetworkStatus","equal","variables","options","oq","diff","_a","_this","oldDiff","reobserveCacheFirst","listener","isNetworkRequestInFlight","fetchPolicy","sub","watchOptions","__assign","result","lastWrite","document","cacheWriteBehavior","merger","DeepMerger","graphQLErrors","isNonEmptyArray","mergedData","mergeIncrementalData","shouldWriteResult","diffOptions","error","shouldWriteResult","result","errorPolicy","ignoreErrors","writeWithErrors","graphQLResultHasError","hasOwnProperty","QueryManager","_a","cache","link","defaultOptions","_b","queryDeduplication","onBroadcast","_c","ssrMode","_d","clientAwareness","localState","assumeImmutableResults","canUseWeakMap","LocalState","_this","_info","queryId","InvariantError","error","cancel","mutation","variables","optimisticResponse","updateQueries","refetchQueries","_e","awaitRefetchQueries","updateWithProxyFn","onQueryUpdated","_f","fetchPolicy","_g","errorPolicy","keepRootFields","context","__awaiter","mutationId","_h","document","hasClientExports","mutationStoreValue","self","__generator","_j","invariant","resolve","reject","asyncMap","__assign","result","graphQLResultHasError","ApolloError","getGraphQLErrorsFromResult","storeResult","err","cacheWrites","skipCache","shouldWriteResult","isExecutionPatchIncrementalResult","isNonEmptyArray","diff","mergedData","mergeIncrementalData","updateQueries_1","observableQuery","queryName","updater","currentQueryResult","complete","nextQueryResult","getOperationName","results_1","write","update","isFinalResult","isExecutionPatchResult","value","fieldName","DELETE","data","options","networkStatus","store","info","queryInfo","transformCache","transformed","noConnection","removeConnectionDirectiveFromDocument","clientQuery","serverQuery","cacheEntry_1","getDefaultValues","getOperationDefinition","def","add","doc","QueryInfo","observable","ObservableQuery","NetworkStatus","include","queries","queryNamesAndDocs","legacyQueryOptions","desc","isDocumentNode","isNonNullObject","oq","makeUniqueId","included","nameOrDoc","includeStandby","observableQueryPromises","query","makeObservable","observablePromise_1","Observable","observer","sub","deduplication","inFlightLinkObservables_1","operation","byVariables_1","varJson_1","canonicalStringify","concast","Concast","execute","cacheWriteBehavior","requestId","linkDocument","graphQLErrors","hasErrors","aqr","networkError","isApolloError","defaults","returnPartialData","notifyOnNetworkStatusChange","normalized","fromVariables","concastSources","cleanupCancelFn","reason","updateCache","optimistic","removeOptimistic","includedQueriesById","results","watch","lastDiff","refetchWritePolicy","oldNetworkStatus","readCache","resultsFromCache","equal","logMissingFieldErrors","fromData","isNetworkRequestInFlight","resolved","resultsFromLink","shouldNotify","newContext","hasSuggestedDevtools","ApolloClient","options","_this","uri","credentials","headers","cache","_a","ssrMode","_b","ssrForceFetchDelay","_c","connectToDevTools","_d","queryDeduplication","defaultOptions","_e","assumeImmutableResults","resolvers","typeDefs","fragmentMatcher","clientAwarenessName","clientAwarenessVersion","link","HttpLink","ApolloLink","InvariantError","hasSuggestedDevtools","nav","ua","url","invariant","version","LocalState","QueryManager","mergeOptions","__assign","optimistic","cb","payload","execute","fn","c","includeStandby","map","queries","results","result","obsQuery","error","include","serializedState","newLink","docCache","fragmentSourceMap","printFragmentWarnings","experimentalFragmentVariables","normalize","string","cacheKeyFromLoc","loc","processFragments","ast","seenKeys","definitions","fragmentDefinition","fragmentName","sourceKey","sourceKeySet","__assign","stripLoc","doc","workSet","node","key","value","parseDocument","source","cacheKey","parsed","parse","gql","literals","args","_i","result","arg","i","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables","extras","gql_1","lib_default","setVerbosity","DEV_default","fromPromise","promiseFn","Observable","subscriber","result","error","useMutationLoading","source","enabled","startWith","map","__spreadProps","__spreadValues","ZoneScheduler","zone","work","delay","state","queueScheduler","fixObservable","obs","observable","wrapWithZone","ngZone","observeOn","pickFlag","flags","flag","defaultValue","useInitialLoading","obsQuery","currentResult","loading","errors","partial","data","partialRefetch","fetchPolicy","hasError","NetworkStatus","QueryRef","options","wrapped","from","variables","fetchMoreOptions","mapFn","pollInterval","opts","APOLLO_FLAGS","InjectionToken","APOLLO_OPTIONS","APOLLO_NAMED_OPTIONS","ApolloBase","_client","extra","client","Apollo","_ngZone","apolloOptions","apolloNamedOptions","name","isDefault","ApolloClient","t","ɵɵinject","NgZone","ɵɵdefineInjectable","PROVIDERS","ApolloModule","ɵɵdefineNgModule","ɵɵdefineInjector","Query","apollo","typedGQLTag","literals","placeholders","gql","AccessControlAction","ActiveAlertContextType","AffiliationType","AgencyType","AirportCodeType","AlertLifecycleStage","AlertTarget","AlertUrgency","AmrUtilizationStatus","ApplicationNotificationUrgency","ArchiveEntityType","AutomatedAlertAlgorithmType","BusinessModel","CardCallStatus","CardLinkType","CardStatus","CareLevel","CommandResultStatus","DistanceCalculation","DiversionType","EmployeeType","EntityType","EstimatedDurationSource","ExternalActionStatus","ExternalSystem","FboType","FlightFollowingField","FlightLogProcess","FlightRule","FlightType","Gender","GeocodeResultQuality","IntegrationSystem","IsoletteType","LocationType","MedicalFacilityStatus","MessageStatus","MissionConfiguration","MissionProfile","MissionRoleType","NextDueCycleType","NonAcceptanceType","NotBillableType","NotificationGroupType","NotificationRecipientType","NotificationStatus","NotificationTriggerType","NotificationType","OperationStatus","OperationType","OutOfServiceType","PassengerType","PositionReportSource","PreferredUnitType","QuestionDataType","QuestionType","QuestionnaireResponseStatus","QuestionnaireType","ReceivingFacilityRequestStatus","RequestStatus","RuleMatchType","StandbyActivationType","SupplementalLegType","SupportRequestStatus","SupportRequestType","SystemTimestampType","TcsEntityType","TimeType","TransportOfferAlgorithm","TransportOfferOptionType","TransportOfferResponse","TransportOfferStatus","TransportReasonCategory","TripLegStatus","UnitPositionType","UnitStatus","UserRole","VehicleRole","VehicleStatus","VehicleType","VisibilityType","WaypointType","WeatherStatus","WebOrderCallType","YesNoType","UnitFieldsFragmentDoc","gql","UnitPositionFieldsFragmentDoc","PersonFieldsFragmentDoc","UnitShiftFieldsFragmentDoc","VehicleFieldsFragmentDoc","VehicleDispositionFieldsFragmentDoc","VehicleModelFieldsFragmentDoc","VehicleStateInspectionFieldsFragmentDoc","UnitContextFragmentDoc","AddressFieldsFragmentDoc","CardLocationInfoLocationFieldsFragmentDoc","ActivationRuleFieldsFragmentDoc","ActiveAlertFieldsFragmentDoc","ActiveCardUnitOfferingFieldsFragmentDoc","ActiveTimelineFieldsFragmentDoc","AlertFieldsFragmentDoc","ApplicationNotificationFieldsFragmentDoc","AssignmentDelayedReasonFieldsFragmentDoc","CancellationCategoryFieldsFragmentDoc","CancellationReasonFieldsFragmentDoc","CancellationSecondaryReasonFieldsFragmentDoc","CardFieldsFragmentDoc","CardLinkFieldsFragmentDoc","CardNoteArchiveFieldsFragmentDoc","CardNoteFieldsFragmentDoc","CardReOpenReasonFieldsFragmentDoc","CardSummaryFieldsFragmentDoc","ConfigurationSettingFieldsFragmentDoc","DeclineCategoryFieldsFragmentDoc","DeclineReasonFieldsFragmentDoc","DeclineSecondaryReasonFieldsFragmentDoc","DiversionReasonFieldsFragmentDoc","EscortRequestFieldsFragmentDoc","EstimatedDurationFieldsFragmentDoc","EtaFieldsFragmentDoc","ExternalActionFieldsFragmentDoc","ExternalActionTypeFieldsFragmentDoc","ExternalSystemUnitFieldsFragmentDoc","FacilityNonAcceptanceReasonFieldsFragmentDoc","FirewallRuleFieldsFragmentDoc","FlightFollowingReportFieldsFragmentDoc","LandingZoneOutOfServiceReasonFieldsFragmentDoc","LocationHazardAttachmentFieldsFragmentDoc","LocationHazardFieldsFragmentDoc","ManifestEntryFieldsFragmentDoc","MedicalControlContactLogEntryFieldsFragmentDoc","MessageStatusUpdateFieldsFragmentDoc","NextDueTypeFieldsFragmentDoc","NonReferralReasonFieldsFragmentDoc","NotificationFieldsFragmentDoc","NotificationGroupFieldsFragmentDoc","NotificationGroupMemberFieldsFragmentDoc","NotificationRecipientFieldsFragmentDoc","NotificationSubscriptionFieldsFragmentDoc","NotificationTemplateFieldsFragmentDoc","OemActivityFieldsFragmentDoc","OemAssetFieldsFragmentDoc","OemPlanChangeRequestFieldsFragmentDoc","OemPlanFieldsFragmentDoc","OfferAlgorithmFieldsFragmentDoc","OperationFieldsFragmentDoc","OutOfServiceEventFieldsFragmentDoc","OutOfServiceEventNoteFieldsFragmentDoc","OutOfServiceReasonFieldsFragmentDoc","OutOfServiceSecondaryReasonFieldsFragmentDoc","PassdownLogAcknowledgementFieldsFragmentDoc","PassdownLogFieldsFragmentDoc","PatientFieldsFragmentDoc","PositionReportAlertFieldsFragmentDoc","PositionReportArchiveFieldsFragmentDoc","PositionReportFieldsFragmentDoc","QuestionChoiceFieldsFragmentDoc","QuestionFieldsFragmentDoc","QuestionnaireFieldsFragmentDoc","QuestionnaireQuestionResponseFieldsFragmentDoc","QuestionnaireQuestionResponseNoteFieldsFragmentDoc","QuestionnaireResponseFieldsFragmentDoc","QuestionnaireSectionFieldsFragmentDoc","QuestionnaireSectionQuestionFieldsFragmentDoc","ReceivingFacilityRequestFieldsFragmentDoc","RendezvousRequestFieldsFragmentDoc","RequestFieldsFragmentDoc","RequesterFieldsFragmentDoc","RequesterReferralReasonFieldsFragmentDoc","RequesterRoleFieldsFragmentDoc","RequestLocationFieldsFragmentDoc","RequestPatientFieldsFragmentDoc","SystemTimerFieldsFragmentDoc","TimelineFieldsFragmentDoc","TimelineItemFieldsFragmentDoc","TimestampFieldsFragmentDoc","TimestampTypeFieldsFragmentDoc","TrackedMessageFieldsFragmentDoc","TransferReasonFieldsFragmentDoc","TransportOfferFieldsFragmentDoc","TransportOfferOptionFieldsFragmentDoc","TransportReasonFieldsFragmentDoc","TripFieldsFragmentDoc","TripLegFieldsFragmentDoc","TripPassengerFieldsFragmentDoc","UnitActivationRuleFieldsFragmentDoc","UnitEMSystemMappingFieldsFragmentDoc","UnitNoteFieldsFragmentDoc","UnitStatusHistoryEntryFieldsFragmentDoc","UnitSummaryFieldsFragmentDoc","VehiclePositionSummaryFieldsFragmentDoc","VehicleSummaryFieldsFragmentDoc","WaypointFieldsFragmentDoc","WebOrderLogFieldsFragmentDoc","AgencyFieldsFragmentDoc","AgencyLocationFieldsFragmentDoc","AirportFieldsFragmentDoc","ArchiveLogFieldsFragmentDoc","BaseFieldsFragmentDoc","BaseMedicalControlContactFieldsFragmentDoc","BaseMedicalControlContactStateFieldsFragmentDoc","CapabilityFieldsFragmentDoc","CommunicationCenterTransportOfferOptionFieldsFragmentDoc","CompanyFieldsFragmentDoc","CompleteFlightInstanceFieldsFragmentDoc","DepartmentFieldsFragmentDoc","EntityCapabilityFieldsFragmentDoc","ExternalReferenceFieldsFragmentDoc","FboFieldsFragmentDoc","FuelTankFieldsFragmentDoc","LocationFieldsFragmentDoc","MedicalFacilityContactFieldsFragmentDoc","MedicalFacilityFieldsFragmentDoc","MedicalFacilityPhysicianFieldsFragmentDoc","MedicalFacilityUnitFieldsFragmentDoc","MedicalUnitFieldsFragmentDoc","PhysicianFieldsFragmentDoc","ProgramBaseFieldsFragmentDoc","ProgramFieldsFragmentDoc","RamcoVehicleConfigurationFieldsFragmentDoc","RegionBaseFieldsFragmentDoc","RegionFieldsFragmentDoc","RegionGroupFieldsFragmentDoc","SpecialtyTeamFieldsFragmentDoc","SpecialtyTeamMemberFieldsFragmentDoc","SupportRequestFieldsFragmentDoc","TimezoneFieldsFragmentDoc","TransferCenterFieldsFragmentDoc","TrmUserAgencyFieldsFragmentDoc","TrmUserFieldsFragmentDoc","TrmUserMedicalFacilityFieldsFragmentDoc","TrmUserProgramFieldsFragmentDoc","VehicleConfigurationClassFieldsFragmentDoc","VehicleMaintenanceFieldsFragmentDoc","VehicleMakeFieldsFragmentDoc","AccessibleItemFieldsFragmentDoc","CommunicationCenterFieldsFragmentDoc","ControlZoneFieldsFragmentDoc","VehicleControlZoneFieldsFragmentDoc","BaseControlZoneFieldsFragmentDoc","UserDataContextFragmentDoc","AsbPageComponent_FetchAllVehiclesDocument","AsbPageComponent_FetchAllVehiclesGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","AsbPageComponent_FetchAllNextDueTypesDocument","AsbPageComponent_FetchAllNextDueTypesGQL","AsbPageComponent_FetchAllVehicleModelsDocument","AsbPageComponent_FetchAllVehicleModelsGQL","GlobalDataContextService_FetchDocument","GlobalDataContextService_FetchGQL","CardSearchComponent_SearchForCardsDocument","CardSearchComponent_SearchForCardsGQL","NewCardSearchComponent_SearchForCardsDocument","NewCardSearchComponent_SearchForCardsGQL","NewCardSearchComponent_FetchAllPeopleDocument","NewCardSearchComponent_FetchAllPeopleGQL","NewCardSearchComponent_FetchAllAgencyLocationsDocument","NewCardSearchComponent_FetchAllAgencyLocationsGQL","NewCardSearchComponent_FetchAllCommunicationCentersDocument","NewCardSearchComponent_FetchAllCommunicationCentersGQL","OosRumEventsComponent_FetchOosDashboardEventsDocument","OosRumEventsComponent_FetchOosDashboardEventsGQL","OosRumNotificationAddDialogComponent_FetchAllNotificationTemplatesDocument","OosRumNotificationAddDialogComponent_FetchAllNotificationTemplatesGQL","OosRumNotificationAddDialogComponent_DeriveOosTemplateDocument","OosRumNotificationAddDialogComponent_DeriveOosTemplateGQL","OosRumAddDialogComponent_FetchOosEventsDocument","OosRumAddDialogComponent_FetchOosEventsGQL","OosRumAddDialogComponent_FetchUnitPositionsByUnitIdDocument","OosRumAddDialogComponent_FetchUnitPositionsByUnitIdGQL","OosRumAddDialogComponent_FetchVehiclesDocument","OosRumAddDialogComponent_FetchVehiclesGQL","OosRumNotificationsComponent_FetchOosDashboardNotificationsDocument","OosRumNotificationsComponent_FetchOosDashboardNotificationsGQL","OosRumNotificationsComponent_FetchAllNotificationTemplatesDocument","OosRumNotificationsComponent_FetchAllNotificationTemplatesGQL","CardTimelineComponent_FetchTimelineItemsDocument","CardTimelineComponent_FetchTimelineItemsGQL","RequestLocationFormComponent_FetchMedicalFacilityEntitiesDocument","RequestLocationFormComponent_FetchMedicalFacilityEntitiesGQL","Card_FetchNotificationEntitiesDocument","Card_FetchNotificationEntitiesGQL","Card_FetchTimeEntitiesDocument","Card_FetchTimeEntitiesGQL","QuestionnaireResponseContextResolver_FetchQuestionnaireResponseDocument","QuestionnaireResponseContextResolver_FetchQuestionnaireResponseGQL","CommunicationCenterInfoComponent_FetchCommunicationCenterDocument","CommunicationCenterInfoComponent_FetchCommunicationCenterGQL","ExternalAgencyInfoComponent_FetchExternalAgencyLocationDocument","ExternalAgencyInfoComponent_FetchExternalAgencyLocationGQL","FetchRequestCandidateUnitContextDocument","FetchRequestCandidateUnitContextGQL","RequestRequesterSpecialtyTeamFormComponent_FetchAllSpecialtyTeamsDocument","RequestRequesterSpecialtyTeamFormComponent_FetchAllSpecialtyTeamsGQL","RequestViewComponent_FetchAllSpecialtyTeamMembersDocument","RequestViewComponent_FetchAllSpecialtyTeamMembersGQL","SpecialtyTeamMemberSelectorComponent_FetchAllSpecialtyTeamMembersDocument","SpecialtyTeamMemberSelectorComponent_FetchAllSpecialtyTeamMembersGQL","FetchTransportOfferUnitContextDocument","FetchTransportOfferUnitContextGQL","FetchTransportOffersForCardDocument","FetchTransportOffersForCardGQL","PatientInfoComponent_FetchCardByCardIdDocument","PatientInfoComponent_FetchCardByCardIdGQL","QuestionnaireResponseCards_FetchQuestionnaireResponseEntitiesDocument","QuestionnaireResponseCards_FetchQuestionnaireResponseEntitiesGQL","RegionBoardAllPage_FetchCardsByPatientNameDocument","RegionBoardAllPage_FetchCardsByPatientNameGQL","RegionBoardVehiclesPageComponent_FetchAllVehiclesDocument","RegionBoardVehiclesPageComponent_FetchAllVehiclesGQL","TransferCenterRegionBoardComponent_FetchDocument","TransferCenterRegionBoardComponent_FetchGQL","OpsCompanyDataContextService_FetchDocument","OpsCompanyDataContextService_FetchGQL","ScheduledAlertsListDialogComponent_FetchActiveAlertsDocument","ScheduledAlertsListDialogComponent_FetchActiveAlertsGQL","oosEventNotesComponent_FetchOosEventNotesDocument","oosEventNotesComponent_FetchOosEventNotesGQL","OosEventNotifications_FetchNotificationsDocument","OosEventNotifications_FetchNotificationsGQL","OosHistoryComponent_FetchHistoryDocument","OosHistoryComponent_FetchHistoryGQL","OosService_LoadOosManagerDialagDataDocument","OosService_LoadOosManagerDialagDataGQL","CardNoteEditHistoryDialogComponent_FetchCardNoteDocument","CardNoteEditHistoryDialogComponent_FetchCardNoteGQL","GroundLegFormComponent_FetchAllLocationsDocument","GroundLegFormComponent_FetchAllLocationsGQL","MedicalControlContactsDialogComponent_FetchBaseMedicalControlContactsDocument","MedicalControlContactsDialogComponent_FetchBaseMedicalControlContactsGQL","MileageCalculatorDialogComponent_FetchMedicalFacilityEntitiesDocument","MileageCalculatorDialogComponent_FetchMedicalFacilityEntitiesGQL","MileageCalculatorDialogComponent_FetchAllBasesDocument","MileageCalculatorDialogComponent_FetchAllBasesGQL","MileageCalculatorDialogComponent_FetchAllVehicleModelsDocument","MileageCalculatorDialogComponent_FetchAllVehicleModelsGQL","NotificationAddDialogComponent_FetchAllNotificationTemplatesDocument","NotificationAddDialogComponent_FetchAllNotificationTemplatesGQL","NotificationAddDialogComponent_FetchNotificationTemplateDetailsDocument","NotificationAddDialogComponent_FetchNotificationTemplateDetailsGQL","NotificationsEditDialogComponent_FetchNotificationDocument","NotificationsEditDialogComponent_FetchNotificationGQL","NotificationsManageDialogComponent_FetchNotificationDocument","NotificationsManageDialogComponent_FetchNotificationGQL","NotificationsListDialogComponent_FetchNotificationsDocument","NotificationsListDialogComponent_FetchNotificationsGQL","RecipientGroupManageDialogComponent_FetchAllNotificationGroupsDocument","RecipientGroupManageDialogComponent_FetchAllNotificationGroupsGQL","RecipientGroupManageDialogComponent_FetchAllNotificationGroupMembersDocument","RecipientGroupManageDialogComponent_FetchAllNotificationGroupMembersGQL","TransportAbortDialogComponent_FetchAllVehiclesDocument","TransportAbortDialogComponent_FetchAllVehiclesGQL","TransportAbortDialogComponent_FetchTransportOffersByCardNumberDocument","TransportAbortDialogComponent_FetchTransportOffersByCardNumberGQL","UnitNoteListComponent_FetchUnitNotesDocument","UnitNoteListComponent_FetchUnitNotesGQL","UnitShiftListComponent_FetchUnitShiftsDocument","UnitShiftListComponent_FetchUnitShiftsGQL","PassdownLogDetailsComponent_FetchPassdownLogDocument","PassdownLogDetailsComponent_FetchPassdownLogGQL","PassdownLogDialogComponent_FetchAllPassdownLogsDocument","PassdownLogDialogComponent_FetchAllPassdownLogsGQL","PassdownLogEditHistoryDialogComponent_FetchPassdownLogDocument","PassdownLogEditHistoryDialogComponent_FetchPassdownLogGQL","ReceivingFacilityRequestAcceptDialog_FetchMedicalFacilityUnitsByMedicalFacilityIdDocument","ReceivingFacilityRequestAcceptDialog_FetchMedicalFacilityUnitsByMedicalFacilityIdGQL","ReceivingFacilityRequestAcceptDialog_FetchPhysiciansByMedicalFacilityIdDocument","ReceivingFacilityRequestAcceptDialog_FetchPhysiciansByMedicalFacilityIdGQL","ReceivingFacilityRequestDivertDialogComponent_FetchMedicalFacilitiesDocument","ReceivingFacilityRequestDivertDialogComponent_FetchMedicalFacilitiesGQL","ReceivingFacilityRequestHistoryAddDialogComponent_FetchMedicalFacilitiesDocument","ReceivingFacilityRequestHistoryAddDialogComponent_FetchMedicalFacilitiesGQL","ReceivingFacilityRequestReferDialogComponent_FetchMedicalFacilitiesDocument","ReceivingFacilityRequestReferDialogComponent_FetchMedicalFacilitiesGQL","TransportOfferDeclineComponent_FetchTransportOffersByCardNumberDocument","TransportOfferDeclineComponent_FetchTransportOffersByCardNumberGQL","TransportOfferDeclineComponent_FetchAllDelayReasonsDocument","TransportOfferDeclineComponent_FetchAllDelayReasonsGQL","UnitEditDialogComponent_FetchUnitActivationRuleByUnitIdDocument","UnitEditDialogComponent_FetchUnitActivationRuleByUnitIdGQL","UnitEditDialogComponent_FetchUnitEMSystemMappingsDocument","UnitEditDialogComponent_FetchUnitEMSystemMappingsGQL","UnitFormComponent_FetchAllCompleteFlightInstancesDocument","UnitFormComponent_FetchAllCompleteFlightInstancesGQL","UnitRepositionDialogComponent_FetchVehiclePositionSummaryDocument","UnitRepositionDialogComponent_FetchVehiclePositionSummaryGQL","FetchUnitEditContextDocument","FetchUnitEditContextGQL","WebOrderLogsDialog_FetchWebOrderLogsByEntityIdDocument","WebOrderLogsDialog_FetchWebOrderLogsByEntityIdGQL","CardArchivedRecordsFetchService_FetchArchivedCardNotesDocument","CardArchivedRecordsFetchService_FetchArchivedCardNotesGQL","CardArchivedRecordsFetchService_FetchArchivedPositionReportsDocument","CardArchivedRecordsFetchService_FetchArchivedPositionReportsGQL","ActivationRuleDetailsComponent_FetchActivationRuleByIdDocument","ActivationRuleDetailsComponent_FetchActivationRuleByIdGQL","ActivationRuleForm_GetRegionsDocument","ActivationRuleForm_GetRegionsGQL","ActivationRuleForm_GetCommunicationCentersDocument","ActivationRuleForm_GetCommunicationCentersGQL","ActivationRuleForm_GetActivationRuleIdDocument","ActivationRuleForm_GetDeclineReasonsDocument","gql","DeclineReasonFieldsFragmentDoc","ActivationRuleForm_GetDeclineReasonsGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","AgencyListPageComponent_FetchAgenciesDocument","AgencyFieldsFragmentDoc","AgencyLocationFieldsFragmentDoc","LocationFieldsFragmentDoc","AgencyListPageComponent_FetchAgenciesGQL","AgencyLocationListComponent_FetchAllAgencyLocationsDocument","AddressFieldsFragmentDoc","AgencyLocationListComponent_FetchAllAgencyLocationsGQL","AgencyLocationManagePageComponent_FetchAgencyLocationByIdDocument","AgencyLocationManagePageComponent_FetchAgencyLocationByIdGQL","FboListPageComponent_FetchAllFbosDocument","FboFieldsFragmentDoc","AirportFieldsFragmentDoc","FboListPageComponent_FetchAllFbosGQL","AirportListPageComponent_FetchAllAirportsDocument","AirportListPageComponent_FetchAllAirportsGQL","AlertListPageDocument","AlertFieldsFragmentDoc","ActivationRuleFieldsFragmentDoc","MedicalFacilityFieldsFragmentDoc","AlertListPageGQL","ApplicationNotificationFormComponent_FetchAllRegionsDocument","RegionFieldsFragmentDoc","RegionGroupFieldsFragmentDoc","ApplicationNotificationFormComponent_FetchAllRegionsGQL","ApplicationNotificationListPageComponent_FetchAllApplicationNotificationsDocument","ApplicationNotificationFieldsFragmentDoc","ApplicationNotificationListPageComponent_FetchAllApplicationNotificationsGQL","CancellationCategoryFormComponent_FetchAllCancellationReasonsDocument","CancellationReasonFieldsFragmentDoc","CancellationCategoryFormComponent_FetchAllCancellationReasonsGQL","CancellationCategoryListPageComponent_FetchAllCancellationCategoriesDocument","CancellationCategoryFieldsFragmentDoc","CancellationCategoryListPageComponent_FetchAllCancellationCategoriesGQL","CancellationReasonFormComponent_FetchSecondaryReasonsByCancellationReasonIdDocument","CancellationSecondaryReasonFieldsFragmentDoc","CancellationReasonFormComponent_FetchSecondaryReasonsByCancellationReasonIdGQL","CancellationReasonListPageComponent_FetchAllCancellationReasonsDocument","CancellationReasonListPageComponent_FetchAllCancellationReasonsGQL","CancellationSeconadaryReasonListComponent_FetchSecondaryReasonsByCancellationReasonIdDocument","CancellationSeconadaryReasonListComponent_FetchSecondaryReasonsByCancellationReasonIdGQL","CapabilityListPageComponent_FetchAllCapabilitiesDocument","CapabilityFieldsFragmentDoc","CapabilityListPageComponent_FetchAllCapabilitiesGQL","CardReOpenReasonListPageComponent_FetchAllCardReOpenReasonsDocument","CardReOpenReasonFieldsFragmentDoc","CardReOpenReasonListPageComponent_FetchAllCardReOpenReasonsGQL","CommunicationCenterDetailPageComponent_FetchCommunicationCenterByIdDocument","CommunicationCenterFieldsFragmentDoc","CompanyFieldsFragmentDoc","CommunicationCenterDetailPageComponent_FetchCommunicationCenterByIdGQL","CommunicationCenterListPageComponent_FetchAllCommunicationCentersDocument","CommunicationCenterListPageComponent_FetchAllCommunicationCentersGQL","CommunicationCenterRegionsListComponent_FetchRegionsDocument","CommunicationCenterRegionsListComponent_FetchRegionsGQL","CommunicationCenterTransferCentersListComponent_FetchTransferCentersDocument","TransferCenterFieldsFragmentDoc","CommunicationCenterTransferCentersListComponent_FetchTransferCentersGQL","CommunicationCenterTransportOffersOptionsDialog_FetchCommunicationCenterTransportOffersOptionsDocument","CommunicationCenterTransportOfferOptionFieldsFragmentDoc","CommunicationCenterTransportOffersOptionsDialog_FetchCommunicationCenterTransportOffersOptionsGQL","ControlZoneBasesListComponent_FetchBasesDocument","BaseFieldsFragmentDoc","ControlZoneFieldsFragmentDoc","ControlZoneBasesListComponent_FetchBasesGQL","ControlZoneListPageComponent_FetchAllControlZonesDocument","ControlZoneListPageComponent_FetchAllControlZonesGQL","ControlZoneVehiclesListComponent_FetchVehiclesDocument","VehicleFieldsFragmentDoc","ControlZoneVehiclesListComponent_FetchVehiclesGQL","DeclineCategoryFormComponent_FetchAllDeclineReasonsDocument","DeclineCategoryFormComponent_FetchAllDeclineReasonsGQL","DeclineCategoryListPageComponent_FetchAllDeclineCategoriesDocument","DeclineCategoryFieldsFragmentDoc","DeclineCategoryListPageComponent_FetchAllDeclineCategoriesGQL","DeclineReasonFormComponent_FetchAllDeclineCategoriesDocument","DeclineReasonFormComponent_FetchAllDeclineCategoriesGQL","DeclineReasonListPageComponent_FetchAllDeclineReasonsDocument","DeclineReasonListPageComponent_FetchAllDeclineReasonsGQL","DeclineSeconadaryReasonListComponent_FetchSecondaryReasonsByDeclineReasonIdDocument","DeclineSecondaryReasonFieldsFragmentDoc","DeclineSeconadaryReasonListComponent_FetchSecondaryReasonsByDeclineReasonIdGQL","DiversionReasonListPageComponent_FetchAllDiversionReasonsDocument","DiversionReasonFieldsFragmentDoc","DiversionReasonListPageComponent_FetchAllDiversionReasonsGQL","FacilityNonAcceptanceReasonListPageComponent_FetchAllFacilityNonAcceptanceReasonsDocument","FacilityNonAcceptanceReasonFieldsFragmentDoc","FacilityNonAcceptanceReasonListPageComponent_FetchAllFacilityNonAcceptanceReasonsGQL","FirewallRuleListPageComponent_FetchAllFirewallRulesDocument","FirewallRuleFieldsFragmentDoc","FirewallRuleListPageComponent_FetchAllFirewallRulesGQL","FuelTankListPageComponent_FetchAllFuelTanksDocument","FuelTankFieldsFragmentDoc","FuelTankListPageComponent_FetchAllFuelTanksGQL","FuelTankManagePageComponent_FetchFuelTankByIdDocument","FuelTankManagePageComponent_FetchFuelTankByIdGQL","GlobalSettingsFormComponent_FetchAllDeclineReasonsDocument","GlobalSettingsFormComponent_FetchAllDeclineReasonsGQL","GlobalSettingsFormComponent_FetchAllCancellationReasonsDocument","GlobalSettingsFormComponent_FetchAllCancellationReasonsGQL","GlobalSettingsListPageComponent_FetchConfiguredRequestActionReasonsDocument","ConfigurationSettingFieldsFragmentDoc","GlobalSettingsListPageComponent_FetchConfiguredRequestActionReasonsGQL","GlobalSettingsManagePageComponent_FetchConfigurationSettingsDocument","GlobalSettingsManagePageComponent_FetchConfigurationSettingsGQL","HazardListComponent_FetchAllLocationHazardsDocument","LocationHazardFieldsFragmentDoc","HazardListComponent_FetchAllLocationHazardsGQL","LandingZoneFormComponent_FetchAllLandingZoneOutOfServiceReasonsDocument","LandingZoneOutOfServiceReasonFieldsFragmentDoc","LandingZoneFormComponent_FetchAllLandingZoneOutOfServiceReasonsGQL","LandingZoneListPageComponent_FetchAllLandingZonesDocument","LandingZoneListPageComponent_FetchAllLandingZonesGQL","MedicalFacilitiesListPageComponent_FetchMedicalFacilitiesDocument","MedicalFacilitiesListPageComponent_FetchMedicalFacilitiesGQL","MedicaFacilityContactListComponent_FetchMedicalFacilityContactsDocument","MedicalFacilityContactFieldsFragmentDoc","MedicaFacilityContactListComponent_FetchMedicalFacilityContactsGQL","MedicalFacilitiesDetailPageComponent_FetchMedicalFacilityDetailEntitiesDocument","MedicalFacilitiesDetailPageComponent_FetchMedicalFacilityDetailEntitiesGQL","MedicalFacilitiesDetailPageComponent_FetchAllEntityCapabilitiesDocument","EntityCapabilityFieldsFragmentDoc","MedicalFacilitiesDetailPageComponent_FetchAllEntityCapabilitiesGQL","MedicalFacilityEditPageComponent_FetchMedicalFacilityEntitiesDocument","MedicalFacilityEditPageComponent_FetchMedicalFacilityEntitiesGQL","MedicalFacilityFormComponent_FetchAllCapabilitiesDocument","MedicalFacilityFormComponent_FetchAllCapabilitiesGQL","MedicalFacilityFormComponent_FetchAllEntityCapabilitiesDocument","MedicalFacilityFormComponent_FetchAllEntityCapabilitiesGQL","MedicalFacilityFormComponent_FetchMedicalFacilitiesDocument","MedicalFacilityFormComponent_FetchMedicalFacilitiesGQL","MergeMedicalFacilityDialogComponent_FetchMedicalFacilityInfoDocument","MergeMedicalFacilityDialogComponent_FetchMedicalFacilityInfoGQL","MedicaFacilityPhysiciansListComponent_FetchMedicalFacilityPhysiciansDocument","MedicalFacilityPhysicianFieldsFragmentDoc","PhysicianFieldsFragmentDoc","MedicaFacilityPhysiciansListComponent_FetchMedicalFacilityPhysiciansGQL","MedicaFacilityUnitsListComponent_FetchMedicalFacilityUnitsDocument","MedicalFacilityUnitFieldsFragmentDoc","MedicaFacilityUnitsListComponent_FetchMedicalFacilityUnitsGQL","NonReferralReasonListPageComponent_FetchAllNonReferralReasonsDocument","NonReferralReasonFieldsFragmentDoc","NonReferralReasonListPageComponent_FetchAllNonReferralReasonsGQL","NotificationTemplateListPageComponent_FetchAllNotificationTemplatesDocument","NotificationTemplateFieldsFragmentDoc","NotificationTemplateListPageComponent_FetchAllNotificationTemplatesGQL","OfferAlgorithmFormComponent_FetchAgencyLocationsDocument","OfferAlgorithmFormComponent_FetchAgencyLocationsGQL","OfferAlgorithmListPageComponent_FetchAllOfferAlgorithmsDocument","OfferAlgorithmFieldsFragmentDoc","OfferAlgorithmListPageComponent_FetchAllOfferAlgorithmsGQL","OktaDirectoryListComponent_FetchOktaUsersDocument","OktaDirectoryListComponent_FetchOktaUsersGQL","OktaProfileDetailPageComponent_FetchOktaDetailEntitiesByIdDocument","OktaProfileDetailPageComponent_FetchOktaDetailEntitiesByIdGQL","ActivationRuleManageDialog_GetActivationRuleIdDocument","CommunicationCenterRegionDialog_FetchUnitsByRegionIdDocument","gql","UnitFieldsFragmentDoc","CommunicationCenterRegionDialog_FetchUnitsByRegionIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","CommunicationCenterRegionFormComponent_FetchAllCommunicationCentersDocument","CommunicationCenterFieldsFragmentDoc","CommunicationCenterRegionFormComponent_FetchAllCommunicationCentersGQL","ControlZoneBaseForm_GetBasesDocument","BaseFieldsFragmentDoc","ControlZoneBaseForm_GetBasesGQL","ControlZoneVehicleForm_GetVehiclesDocument","VehicleFieldsFragmentDoc","ControlZoneVehicleForm_GetVehiclesGQL","HazardEditDialogComponent_FetchLocationHazardAttachmentsDocument","LocationHazardAttachmentFieldsFragmentDoc","HazardEditDialogComponent_FetchLocationHazardAttachmentsGQL","MedicalFacilityAssociatedPhysicianFormComponent_FetchAllPhysiciansDocument","PhysicianFieldsFragmentDoc","MedicalFacilityAssociatedPhysicianFormComponent_FetchAllPhysiciansGQL","NotificationGroupListDialogComponent_FetchAllNotificationGroupsDocument","NotificationGroupFieldsFragmentDoc","NotificationGroupListDialogComponent_FetchAllNotificationGroupsGQL","NotificationGroupMemberListDialogComponent_FetchAllNotificationGroupMembersDocument","NotificationGroupMemberListDialogComponent_FetchAllNotificationGroupMembersGQL","UserNotificationGroupsDialogComponent_FetchAllNotificationGroupsDocument","UserNotificationGroupsDialogComponent_FetchAllNotificationGroupsGQL","UserNotificationGroupsDialogComponent_FetchUserNotificationGroupsDocument","UserNotificationGroupsDialogComponent_FetchUserNotificationGroupsGQL","VehicleMaintenanceFormComponent_FetchAllNextDueTypesDocument","VehicleMaintenanceFormComponent_FetchAllNextDueTypesGQL","OutOfServiceReasonListPageComponent_FetchAllOutOfServiceReasonsDocument","OutOfServiceReasonFieldsFragmentDoc","OutOfServiceReasonListPageComponent_FetchAllOutOfServiceReasonsGQL","OutOfServiceSeconadaryReasonListComponent_FetchSecondaryReasonsByPrimaryReasonIdDocument","OutOfServiceSecondaryReasonFieldsFragmentDoc","OutOfServiceSeconadaryReasonListComponent_FetchSecondaryReasonsByPrimaryReasonIdGQL","PhysicianListPageComponent_FetchAllPhysiciansDocument","PhysicianListPageComponent_FetchAllPhysiciansGQL","PhysicianMedicalFacilitiesListComponent_FetchPhysicianMedicalFacilitiesDocument","MedicalFacilityPhysicianFieldsFragmentDoc","MedicalFacilityFieldsFragmentDoc","LocationFieldsFragmentDoc","PhysicianMedicalFacilitiesListComponent_FetchPhysicianMedicalFacilitiesGQL","QuestionnaireDetailPageComponent_FetchQuestionnaireByIdDocument","QuestionnaireFieldsFragmentDoc","QuestionnaireSectionFieldsFragmentDoc","QuestionnaireSectionQuestionFieldsFragmentDoc","QuestionFieldsFragmentDoc","QuestionChoiceFieldsFragmentDoc","ActivationRuleFieldsFragmentDoc","QuestionnaireDetailPageComponent_FetchQuestionnaireByIdGQL","QuestionnaireFormComponent_FetchAllCommunicationCentersDocument","CompanyFieldsFragmentDoc","QuestionnaireFormComponent_FetchAllCommunicationCentersGQL","QuestionnaireListPageComponent_FetchQuestionnairesDocument","QuestionnaireListPageComponent_FetchQuestionnairesGQL","QuestionnaireManagePageComponent_FetchQuestionnaireByIdDocument","QuestionnaireManagePageComponent_FetchQuestionnaireByIdGQL","QuestionnaireSectionQuestionFormComponent_FetchActivationRuleByIdDocument","QuestionnaireSectionQuestionFormComponent_FetchActivationRuleByIdGQL","QuestionnaireContextResolverService_FetchQuestionsDocument","QuestionnaireContextResolverService_FetchQuestionsGQL","QuestionDetailPageComponent_FetchQuestionByIdDocument","QuestionDetailPageComponent_FetchQuestionByIdGQL","QuestionListPageComponent_FetchQuestionsDocument","QuestionListPageComponent_FetchQuestionsGQL","QuestionManagePageComponent_FetchQuestionByIdDocument","QuestionManagePageComponent_FetchQuestionByIdGQL","TimelineDetailPageComponent_FetchTimelineByIdDocument","TimelineFieldsFragmentDoc","TimelineItemFieldsFragmentDoc","TimestampTypeFieldsFragmentDoc","TimelineDetailPageComponent_FetchTimelineByIdGQL","TimelineFormComponent_FetchActivationRuleByIdDocument","TimelineFormComponent_FetchActivationRuleByIdGQL","TimelineListPageComponent_FetchTimelinesDocument","TimelineListPageComponent_FetchTimelinesGQL","TimelineManagePageComponent_FetchTimelineByIdDocument","TimelineManagePageComponent_FetchTimelineByIdGQL","TimelinesContextResolverService_FetchTimelinesContextDocument","TimelinesContextResolverService_FetchTimelinesContextGQL","TimestampTypeListPageComponent_FetchAllTimestampTypesDocument","TimestampTypeListPageComponent_FetchAllTimestampTypesGQL","TransferReasonListPageComponent_FetchAllTransferReasonsDocument","TransferReasonFieldsFragmentDoc","TransferReasonListPageComponent_FetchAllTransferReasonsGQL","TrmUserListPageComponent_FetchTrmUsersDocument","TrmUserListPageComponent_FetchTrmUsersGQL","TrmUserListPageComponent_FetchAllAgenciesDocument","TrmUserListPageComponent_FetchAllAgenciesGQL","TrmUserListPageComponent_FetchAllMedicalFacilitiesDocument","TrmUserListPageComponent_FetchAllMedicalFacilitiesGQL","VehicleModelsListPageComponent_FetchAllVehicleModelsDocument","VehicleModelFieldsFragmentDoc","VehicleModelsListPageComponent_FetchAllVehicleModelsGQL","BasesFormComponent_FetchAllBasesDocument","BasesFormComponent_FetchAllBasesGQL","BaseMedicalControlContactListComponent_FetchBaseMedicalControlContactsDocument","BaseMedicalControlContactFieldsFragmentDoc","PersonFieldsFragmentDoc","BaseMedicalControlContactStateFieldsFragmentDoc","BaseMedicalControlContactListComponent_FetchBaseMedicalControlContactsGQL","BasesListPageComponent_FetchAllBasesDocument","BasesListPageComponent_FetchAllBasesGQL","ComplianceListPageComponent_FetchAllPeopleDocument","DepartmentFieldsFragmentDoc","AccessibleItemFieldsFragmentDoc","ComplianceListPageComponent_FetchAllPeopleGQL","NotificationGroupListPageComponent_FetchAllNotificationGroupsDocument","NotificationGroupListPageComponent_FetchAllNotificationGroupsGQL","ManageCommunicationCenterRoleResolverService_ResolveDocument","ManageCommunicationCenterRoleResolverService_ResolveGQL","PersonListPageComponent_FetchAllPeopleDocument","PersonListPageComponent_FetchAllPeopleGQL","UserDetailPageComponent_FetchOktaPersonEntitiesByIdDocument","UserDetailPageComponent_FetchOktaPersonEntitiesByIdGQL","UserFormComponent_FetchAccessibleItemsDocument","UserFormComponent_FetchAccessibleItemsGQL","UserFormComponent_FetchAllCommunicationCentersDocument","UserFormComponent_FetchAllCommunicationCentersGQL","UserFormComponent_FetchAllProgramsDocument","ProgramFieldsFragmentDoc","UserFormComponent_FetchAllProgramsGQL","UserFormComponent_FetchAllBasesDocument","UserFormComponent_FetchAllBasesGQL","ManageOccRolePageResolver_ResolveDocument","ControlZoneFieldsFragmentDoc","ManageOccRolePage_ResolverDocument","gql","PersonFieldsFragmentDoc","AccessibleItemFieldsFragmentDoc","CompanyFieldsFragmentDoc","ControlZoneFieldsFragmentDoc","ManageOccRolePage_ResolverGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","RegionGroupsFormComponent_FetchAllDepartmentsDocument","RegionGroupsFormComponent_FetchAllDepartmentsGQL","RegionGroupsListPageComponent_FetchAllRegionGroupsDocument","RegionGroupFieldsFragmentDoc","RegionGroupsListPageComponent_FetchAllRegionGroupsGQL","RegionFormComponent_FetchAllCommunicationCentersDocument","CommunicationCenterFieldsFragmentDoc","RegionFormComponent_FetchAllCommunicationCentersGQL","RegionFormComponent_FetchAllRegionGroupsDocument","RegionFormComponent_FetchAllRegionGroupsGQL","RegionsListPageComponent_FetchAllRegionsDocument","RegionFieldsFragmentDoc","RegionsListPageComponent_FetchAllRegionsGQL","SpecialtyTeamListPageComponent_FetchAllSpecialtyTeamsDocument","SpecialtyTeamFieldsFragmentDoc","SpecialtyTeamListPageComponent_FetchAllSpecialtyTeamsGQL","SpecialtyTeamMemberListPageComponent_FetchAllSpecialtyTeamMembersDocument","SpecialtyTeamMemberFieldsFragmentDoc","SpecialtyTeamMemberListPageComponent_FetchAllSpecialtyTeamMembersGQL","VehicleDetailPageComponent_FetchVehicleByIdDocument","VehicleFieldsFragmentDoc","VehicleConfigurationClassFieldsFragmentDoc","VehicleMakeFieldsFragmentDoc","VehicleModelFieldsFragmentDoc","VehicleDetailPageComponent_FetchVehicleByIdGQL","VehicleFormComponent_FetchAllVehicleMakesDocument","VehicleFormComponent_FetchAllVehicleMakesGQL","VehicleFormComponent_FetchAllCapabilitiesDocument","CapabilityFieldsFragmentDoc","VehicleFormComponent_FetchAllCapabilitiesGQL","VehicleFormComponent_FetchAllEntityCapabilitiesDocument","EntityCapabilityFieldsFragmentDoc","VehicleFormComponent_FetchAllEntityCapabilitiesGQL","VehicleFormComponent_FetchAllCommunicationCentersDocument","VehicleFormComponent_FetchAllCommunicationCentersGQL","VehicleMaintenanceListComponent_FetchVehicleMaintenanceDocument","VehicleMaintenanceFieldsFragmentDoc","VehicleMaintenanceListComponent_FetchVehicleMaintenanceGQL","VehicleStateInspectionListComponent_FetchVehicleStateInspectionsDocument","VehicleStateInspectionFieldsFragmentDoc","VehicleStateInspectionListComponent_FetchVehicleStateInspectionsGQL","VehiclesListPageComponent_FetchAllVehiclesDocument","VehiclesListPageComponent_FetchAllVehiclesGQL","GetRttCardByCardNumberDocument","CardFieldsFragmentDoc","OperationFieldsFragmentDoc","UnitContextFragmentDoc","TripFieldsFragmentDoc","EstimatedDurationFieldsFragmentDoc","VehicleDispositionFieldsFragmentDoc","PositionReportFieldsFragmentDoc","TripLegFieldsFragmentDoc","WaypointFieldsFragmentDoc","AddressFieldsFragmentDoc","GetRttCardByCardNumberGQL","GetRttCardSummariesDocument","CardSummaryFieldsFragmentDoc","GetRttCardSummariesGQL","LocationSearchDialogComponent_FetchAllLocationsDocument","LocationFieldsFragmentDoc","LocationSearchDialogComponent_FetchAllLocationsGQL","LocationSearchDialogComponent_FetchAllCapabilitiesDocument","LocationSearchDialogComponent_FetchAllCapabilitiesGQL","LocationSearchComponent_FetchAllLocationsDocument","LocationSearchComponent_FetchAllLocationsGQL","OmnisearchCardResultsComponent_SearchForCardsDocument","OmnisearchCardResultsComponent_SearchForCardsGQL","PeopleFetchService_FetchAllPeopleDocument","DepartmentFieldsFragmentDoc","PeopleFetchService_FetchAllPeopleGQL","SupportRequestListComponent_FetchAllSupportRequestsDocument","SupportRequestFieldsFragmentDoc","SupportRequestListComponent_FetchAllSupportRequestsGQL","DeveloperNotesPageComponent_FetchDevNotesDocument","DeveloperNotesPageComponent_FetchDevNotesGQL","GetFleetStatusDocument","UnitFieldsFragmentDoc","FlightFollowingReportFieldsFragmentDoc","GetFleetStatusGQL","GetFleetStatusCardSummariesDocument","GetFleetStatusCardSummariesGQL","GetAccessibleItemsDocument","GetAccessibleItemsGQL","GetCardActiveAlertsByCardIdDocument","ActiveAlertFieldsFragmentDoc","GetCardActiveAlertsByCardIdGQL","GetCardLocationInfoByCardNumberDocument","CardLocationInfoLocationFieldsFragmentDoc","GetCardLocationInfoByCardNumberGQL","GetCardNotesByCardDocument","CardNoteFieldsFragmentDoc","GetCardNotesByCardGQL","FetchActivationRuleByIdDocument","ActivationRuleFieldsFragmentDoc","FetchActivationRuleByIdGQL","FetchActivationRuleByIdsDocument","FetchActivationRuleByIdsGQL","FetchActiveAlertByIdDocument","FetchActiveAlertByIdGQL","FetchActiveAlertByIdsDocument","FetchActiveAlertByIdsGQL","FetchActiveCardUnitOfferingByIdDocument","ActiveCardUnitOfferingFieldsFragmentDoc","FetchActiveCardUnitOfferingByIdsDocument","gql","ActiveCardUnitOfferingFieldsFragmentDoc","FetchActiveTimelineByIdDocument","gql","ActiveTimelineFieldsFragmentDoc","FetchActiveTimelineByIdsDocument","gql","ActiveTimelineFieldsFragmentDoc","FetchAlertByIdDocument","gql","AlertFieldsFragmentDoc","FetchAlertByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchAlertByIdsDocument","FetchAlertByIdsGQL","FetchApplicationNotificationByIdDocument","ApplicationNotificationFieldsFragmentDoc","FetchApplicationNotificationByIdGQL","FetchApplicationNotificationByIdsDocument","FetchApplicationNotificationByIdsGQL","FetchAssignmentDelayedReasonByIdDocument","AssignmentDelayedReasonFieldsFragmentDoc","FetchAssignmentDelayedReasonByIdGQL","FetchAssignmentDelayedReasonByIdsDocument","FetchAssignmentDelayedReasonByIdsGQL","FetchCancellationCategoryByIdDocument","CancellationCategoryFieldsFragmentDoc","FetchCancellationCategoryByIdGQL","FetchCancellationCategoryByIdsDocument","FetchCancellationCategoryByIdsGQL","FetchCancellationReasonByIdDocument","CancellationReasonFieldsFragmentDoc","FetchCancellationReasonByIdGQL","FetchCancellationReasonByIdsDocument","FetchCancellationReasonByIdsGQL","FetchCancellationSecondaryReasonByIdDocument","CancellationSecondaryReasonFieldsFragmentDoc","FetchCancellationSecondaryReasonByIdsDocument","gql","CancellationSecondaryReasonFieldsFragmentDoc","FetchCardByIdDocument","gql","CardFieldsFragmentDoc","FetchCardByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchCardByIdsDocument","FetchCardByIdsGQL","FetchCardLinkByIdDocument","CardLinkFieldsFragmentDoc","FetchCardLinkByIdsDocument","gql","CardLinkFieldsFragmentDoc","FetchCardNoteArchiveByIdDocument","gql","CardNoteArchiveFieldsFragmentDoc","FetchCardNoteArchiveByIdsDocument","gql","CardNoteArchiveFieldsFragmentDoc","FetchCardNoteByIdDocument","gql","CardNoteFieldsFragmentDoc","FetchCardNoteByIdsDocument","gql","CardNoteFieldsFragmentDoc","FetchCardReOpenReasonByIdDocument","gql","CardReOpenReasonFieldsFragmentDoc","FetchCardReOpenReasonByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchCardReOpenReasonByIdsDocument","FetchCardReOpenReasonByIdsGQL","FetchCardSummaryByIdDocument","CardSummaryFieldsFragmentDoc","FetchCardSummaryByIdGQL","FetchCardSummaryByIdsDocument","FetchCardSummaryByIdsGQL","FetchConfigurationSettingByIdDocument","ConfigurationSettingFieldsFragmentDoc","FetchConfigurationSettingByIdsDocument","gql","ConfigurationSettingFieldsFragmentDoc","FetchDeclineCategoryByIdDocument","gql","DeclineCategoryFieldsFragmentDoc","FetchDeclineCategoryByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchDeclineCategoryByIdsDocument","FetchDeclineCategoryByIdsGQL","FetchDeclineReasonByIdDocument","DeclineReasonFieldsFragmentDoc","FetchDeclineReasonByIdGQL","FetchDeclineReasonByIdsDocument","FetchDeclineReasonByIdsGQL","FetchDeclineSecondaryReasonByIdDocument","DeclineSecondaryReasonFieldsFragmentDoc","FetchDeclineSecondaryReasonByIdsDocument","gql","DeclineSecondaryReasonFieldsFragmentDoc","FetchDiversionReasonByIdDocument","gql","DiversionReasonFieldsFragmentDoc","FetchDiversionReasonByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchDiversionReasonByIdsDocument","FetchDiversionReasonByIdsGQL","FetchEscortRequestByIdDocument","EscortRequestFieldsFragmentDoc","FetchEscortRequestByIdsDocument","gql","EscortRequestFieldsFragmentDoc","FetchEstimatedDurationByIdDocument","gql","EstimatedDurationFieldsFragmentDoc","FetchEstimatedDurationByIdsDocument","gql","EstimatedDurationFieldsFragmentDoc","FetchEtaByIdDocument","gql","EtaFieldsFragmentDoc","FetchEtaByIdsDocument","gql","EtaFieldsFragmentDoc","FetchExternalActionByIdDocument","gql","ExternalActionFieldsFragmentDoc","FetchExternalActionByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchExternalActionByIdsDocument","FetchExternalActionByIdsGQL","FetchExternalActionTypeByIdDocument","ExternalActionTypeFieldsFragmentDoc","FetchExternalActionTypeByIdGQL","FetchExternalActionTypeByIdsDocument","FetchExternalActionTypeByIdsGQL","FetchExternalSystemUnitByIdDocument","ExternalSystemUnitFieldsFragmentDoc","FetchExternalSystemUnitByIdsDocument","gql","ExternalSystemUnitFieldsFragmentDoc","FetchFacilityNonAcceptanceReasonByIdDocument","gql","FacilityNonAcceptanceReasonFieldsFragmentDoc","FetchFacilityNonAcceptanceReasonByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchFacilityNonAcceptanceReasonByIdsDocument","FetchFacilityNonAcceptanceReasonByIdsGQL","FetchFirewallRuleByIdDocument","FirewallRuleFieldsFragmentDoc","FetchFirewallRuleByIdGQL","FetchFirewallRuleByIdsDocument","FetchFirewallRuleByIdsGQL","FetchFlightFollowingReportByIdDocument","FlightFollowingReportFieldsFragmentDoc","FetchFlightFollowingReportByIdGQL","FetchFlightFollowingReportByIdsDocument","FetchFlightFollowingReportByIdsGQL","FetchLandingZoneOutOfServiceReasonByIdDocument","LandingZoneOutOfServiceReasonFieldsFragmentDoc","FetchLandingZoneOutOfServiceReasonByIdGQL","FetchLandingZoneOutOfServiceReasonByIdsDocument","FetchLandingZoneOutOfServiceReasonByIdsGQL","FetchLocationHazardAttachmentByIdDocument","LocationHazardAttachmentFieldsFragmentDoc","FetchLocationHazardAttachmentByIdsDocument","gql","LocationHazardAttachmentFieldsFragmentDoc","FetchLocationHazardByIdDocument","gql","LocationHazardFieldsFragmentDoc","FetchLocationHazardByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchLocationHazardByIdsDocument","FetchLocationHazardByIdsGQL","FetchManifestEntryByIdDocument","ManifestEntryFieldsFragmentDoc","FetchManifestEntryByIdsDocument","gql","ManifestEntryFieldsFragmentDoc","FetchMedicalControlContactLogEntryByIdDocument","gql","MedicalControlContactLogEntryFieldsFragmentDoc","FetchMedicalControlContactLogEntryByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchMedicalControlContactLogEntryByIdsDocument","FetchMedicalControlContactLogEntryByIdsGQL","FetchMessageStatusUpdateByIdDocument","MessageStatusUpdateFieldsFragmentDoc","FetchMessageStatusUpdateByIdsDocument","gql","MessageStatusUpdateFieldsFragmentDoc","FetchNextDueTypeByIdDocument","gql","NextDueTypeFieldsFragmentDoc","FetchNextDueTypeByIdsDocument","gql","NextDueTypeFieldsFragmentDoc","FetchNonReferralReasonByIdDocument","gql","NonReferralReasonFieldsFragmentDoc","FetchNonReferralReasonByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchNonReferralReasonByIdsDocument","FetchNonReferralReasonByIdsGQL","FetchNotificationByIdDocument","NotificationFieldsFragmentDoc","FetchNotificationByIdGQL","FetchNotificationByIdsDocument","FetchNotificationByIdsGQL","FetchNotificationGroupByIdDocument","NotificationGroupFieldsFragmentDoc","FetchNotificationGroupByIdGQL","FetchNotificationGroupByIdsDocument","FetchNotificationGroupByIdsGQL","FetchNotificationGroupMemberByIdDocument","NotificationGroupMemberFieldsFragmentDoc","FetchNotificationGroupMemberByIdsDocument","gql","NotificationGroupMemberFieldsFragmentDoc","FetchNotificationRecipientByIdDocument","gql","NotificationRecipientFieldsFragmentDoc","FetchNotificationRecipientByIdsDocument","gql","NotificationRecipientFieldsFragmentDoc","FetchNotificationSubscriptionByIdDocument","gql","NotificationSubscriptionFieldsFragmentDoc","FetchNotificationSubscriptionByIdsDocument","gql","NotificationSubscriptionFieldsFragmentDoc","FetchNotificationTemplateByIdDocument","gql","NotificationTemplateFieldsFragmentDoc","FetchNotificationTemplateByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchNotificationTemplateByIdsDocument","FetchNotificationTemplateByIdsGQL","FetchOemActivityByIdDocument","OemActivityFieldsFragmentDoc","FetchOemActivityByIdsDocument","gql","OemActivityFieldsFragmentDoc","FetchOemAssetByIdDocument","gql","OemAssetFieldsFragmentDoc","FetchOemAssetByIdsDocument","gql","OemAssetFieldsFragmentDoc","FetchOemPlanChangeRequestByIdDocument","gql","OemPlanChangeRequestFieldsFragmentDoc","FetchOemPlanChangeRequestByIdsDocument","gql","OemPlanChangeRequestFieldsFragmentDoc","FetchOemPlanByIdDocument","gql","OemPlanFieldsFragmentDoc","FetchOemPlanByIdsDocument","gql","OemPlanFieldsFragmentDoc","FetchOfferAlgorithmByIdDocument","gql","OfferAlgorithmFieldsFragmentDoc","FetchOfferAlgorithmByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchOfferAlgorithmByIdsDocument","FetchOfferAlgorithmByIdsGQL","FetchOperationByIdDocument","OperationFieldsFragmentDoc","FetchOperationByIdGQL","FetchOperationByIdsDocument","FetchOperationByIdsGQL","FetchOutOfServiceEventByIdDocument","OutOfServiceEventFieldsFragmentDoc","FetchOutOfServiceEventByIdGQL","FetchOutOfServiceEventByIdsDocument","FetchOutOfServiceEventByIdsGQL","FetchOutOfServiceEventNoteByIdDocument","OutOfServiceEventNoteFieldsFragmentDoc","FetchOutOfServiceEventNoteByIdsDocument","gql","OutOfServiceEventNoteFieldsFragmentDoc","FetchOutOfServiceReasonByIdDocument","gql","OutOfServiceReasonFieldsFragmentDoc","FetchOutOfServiceReasonByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchOutOfServiceReasonByIdsDocument","FetchOutOfServiceReasonByIdsGQL","FetchOutOfServiceSecondaryReasonByIdDocument","OutOfServiceSecondaryReasonFieldsFragmentDoc","FetchOutOfServiceSecondaryReasonByIdsDocument","gql","OutOfServiceSecondaryReasonFieldsFragmentDoc","FetchPassdownLogAcknowledgementByIdDocument","gql","PassdownLogAcknowledgementFieldsFragmentDoc","FetchPassdownLogAcknowledgementByIdsDocument","gql","PassdownLogAcknowledgementFieldsFragmentDoc","FetchPassdownLogByIdDocument","gql","PassdownLogFieldsFragmentDoc","FetchPassdownLogByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchPassdownLogByIdsDocument","FetchPassdownLogByIdsGQL","FetchPatientByIdDocument","PatientFieldsFragmentDoc","FetchPatientByIdsDocument","gql","PatientFieldsFragmentDoc","FetchPositionReportAlertByIdDocument","gql","PositionReportAlertFieldsFragmentDoc","FetchPositionReportAlertByIdsDocument","gql","PositionReportAlertFieldsFragmentDoc","FetchPositionReportArchiveByIdDocument","gql","PositionReportArchiveFieldsFragmentDoc","FetchPositionReportArchiveByIdsDocument","gql","PositionReportArchiveFieldsFragmentDoc","FetchPositionReportByIdDocument","gql","PositionReportFieldsFragmentDoc","FetchPositionReportByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchPositionReportByIdsDocument","FetchPositionReportByIdsGQL","FetchQuestionChoiceByIdDocument","QuestionChoiceFieldsFragmentDoc","FetchQuestionChoiceByIdsDocument","gql","QuestionChoiceFieldsFragmentDoc","FetchQuestionByIdDocument","gql","QuestionFieldsFragmentDoc","FetchQuestionByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchQuestionByIdsDocument","FetchQuestionByIdsGQL","FetchQuestionnaireByIdDocument","QuestionnaireFieldsFragmentDoc","FetchQuestionnaireByIdGQL","FetchQuestionnaireByIdsDocument","FetchQuestionnaireByIdsGQL","FetchQuestionnaireQuestionResponseByIdDocument","QuestionnaireQuestionResponseFieldsFragmentDoc","FetchQuestionnaireQuestionResponseByIdGQL","FetchQuestionnaireQuestionResponseByIdsDocument","FetchQuestionnaireQuestionResponseByIdsGQL","FetchQuestionnaireQuestionResponseNoteByIdDocument","QuestionnaireQuestionResponseNoteFieldsFragmentDoc","FetchQuestionnaireQuestionResponseNoteByIdsDocument","gql","QuestionnaireQuestionResponseNoteFieldsFragmentDoc","FetchQuestionnaireResponseByIdDocument","gql","QuestionnaireResponseFieldsFragmentDoc","FetchQuestionnaireResponseByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchQuestionnaireResponseByIdsDocument","FetchQuestionnaireResponseByIdsGQL","FetchQuestionnaireSectionByIdDocument","QuestionnaireSectionFieldsFragmentDoc","FetchQuestionnaireSectionByIdsDocument","gql","QuestionnaireSectionFieldsFragmentDoc","FetchQuestionnaireSectionQuestionByIdDocument","gql","QuestionnaireSectionQuestionFieldsFragmentDoc","FetchQuestionnaireSectionQuestionByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchQuestionnaireSectionQuestionByIdsDocument","FetchQuestionnaireSectionQuestionByIdsGQL","FetchReceivingFacilityRequestByIdDocument","ReceivingFacilityRequestFieldsFragmentDoc","FetchReceivingFacilityRequestByIdGQL","FetchReceivingFacilityRequestByIdsDocument","FetchReceivingFacilityRequestByIdsGQL","FetchRendezvousRequestByIdDocument","RendezvousRequestFieldsFragmentDoc","FetchRendezvousRequestByIdGQL","FetchRendezvousRequestByIdsDocument","FetchRendezvousRequestByIdsGQL","FetchRequestByIdDocument","RequestFieldsFragmentDoc","FetchRequestByIdGQL","FetchRequestByIdsDocument","FetchRequestByIdsGQL","FetchRequesterByIdDocument","RequesterFieldsFragmentDoc","FetchRequesterByIdGQL","FetchRequesterByIdsDocument","FetchRequesterByIdsGQL","FetchRequesterReferralReasonByIdDocument","RequesterReferralReasonFieldsFragmentDoc","FetchRequesterReferralReasonByIdsDocument","gql","RequesterReferralReasonFieldsFragmentDoc","FetchRequesterRoleByIdDocument","gql","RequesterRoleFieldsFragmentDoc","FetchRequesterRoleByIdsDocument","gql","RequesterRoleFieldsFragmentDoc","FetchRequestLocationByIdDocument","gql","RequestLocationFieldsFragmentDoc","FetchRequestLocationByIdsDocument","gql","RequestLocationFieldsFragmentDoc","FetchRequestPatientByIdDocument","gql","RequestPatientFieldsFragmentDoc","FetchRequestPatientByIdsDocument","gql","RequestPatientFieldsFragmentDoc","FetchSystemTimerByIdDocument","gql","SystemTimerFieldsFragmentDoc","FetchSystemTimerByIdsDocument","gql","SystemTimerFieldsFragmentDoc","FetchTimelineByIdDocument","gql","TimelineFieldsFragmentDoc","FetchTimelineByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchTimelineByIdsDocument","FetchTimelineByIdsGQL","FetchTimelineItemByIdDocument","TimelineItemFieldsFragmentDoc","FetchTimelineItemByIdsDocument","gql","TimelineItemFieldsFragmentDoc","FetchTimestampByIdDocument","gql","TimestampFieldsFragmentDoc","FetchTimestampByIdsDocument","gql","TimestampFieldsFragmentDoc","FetchTimestampTypeByIdDocument","gql","TimestampTypeFieldsFragmentDoc","FetchTimestampTypeByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchTimestampTypeByIdsDocument","FetchTimestampTypeByIdsGQL","FetchTrackedMessageByIdDocument","TrackedMessageFieldsFragmentDoc","FetchTrackedMessageByIdsDocument","gql","TrackedMessageFieldsFragmentDoc","FetchTransferReasonByIdDocument","gql","TransferReasonFieldsFragmentDoc","FetchTransferReasonByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchTransferReasonByIdsDocument","FetchTransferReasonByIdsGQL","FetchTransportOfferByIdDocument","TransportOfferFieldsFragmentDoc","FetchTransportOfferByIdGQL","FetchTransportOfferByIdsDocument","FetchTransportOfferByIdsGQL","FetchTransportOfferOptionByIdDocument","TransportOfferOptionFieldsFragmentDoc","FetchTransportOfferOptionByIdsDocument","gql","TransportOfferOptionFieldsFragmentDoc","FetchTransportReasonByIdDocument","gql","TransportReasonFieldsFragmentDoc","FetchTransportReasonByIdsDocument","gql","TransportReasonFieldsFragmentDoc","FetchTripByIdDocument","gql","TripFieldsFragmentDoc","FetchTripByIdsDocument","gql","TripFieldsFragmentDoc","FetchTripLegByIdDocument","gql","TripLegFieldsFragmentDoc","FetchTripLegByIdsDocument","gql","TripLegFieldsFragmentDoc","FetchTripPassengerByIdDocument","gql","TripPassengerFieldsFragmentDoc","FetchTripPassengerByIdsDocument","gql","TripPassengerFieldsFragmentDoc","FetchUnitActivationRuleByIdDocument","gql","UnitActivationRuleFieldsFragmentDoc","FetchUnitActivationRuleByIdsDocument","gql","UnitActivationRuleFieldsFragmentDoc","FetchUnitEMSystemMappingByIdDocument","gql","UnitEMSystemMappingFieldsFragmentDoc","FetchUnitEMSystemMappingByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchUnitEMSystemMappingByIdsDocument","FetchUnitEMSystemMappingByIdsGQL","FetchUnitByIdDocument","UnitFieldsFragmentDoc","FetchUnitByIdGQL","FetchUnitByIdsDocument","FetchUnitByIdsGQL","FetchUnitNoteByIdDocument","UnitNoteFieldsFragmentDoc","FetchUnitNoteByIdsDocument","gql","UnitNoteFieldsFragmentDoc","FetchUnitPositionByIdDocument","gql","UnitPositionFieldsFragmentDoc","FetchUnitPositionByIdsDocument","gql","UnitPositionFieldsFragmentDoc","FetchUnitShiftByIdDocument","gql","UnitShiftFieldsFragmentDoc","FetchUnitShiftByIdsDocument","gql","UnitShiftFieldsFragmentDoc","FetchUnitStatusHistoryEntryByIdDocument","gql","UnitStatusHistoryEntryFieldsFragmentDoc","FetchUnitStatusHistoryEntryByIdsDocument","gql","UnitStatusHistoryEntryFieldsFragmentDoc","FetchUnitSummaryByIdDocument","gql","UnitSummaryFieldsFragmentDoc","FetchUnitSummaryByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchUnitSummaryByIdsDocument","FetchUnitSummaryByIdsGQL","FetchVehicleDispositionByIdDocument","VehicleDispositionFieldsFragmentDoc","FetchVehicleDispositionByIdGQL","FetchVehicleDispositionByIdsDocument","FetchVehicleDispositionByIdsGQL","FetchVehiclePositionSummaryByIdDocument","VehiclePositionSummaryFieldsFragmentDoc","FetchVehiclePositionSummaryByIdsDocument","gql","VehiclePositionSummaryFieldsFragmentDoc","FetchVehicleSummaryByIdDocument","gql","VehicleSummaryFieldsFragmentDoc","FetchVehicleSummaryByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchVehicleSummaryByIdsDocument","FetchVehicleSummaryByIdsGQL","FetchWaypointByIdDocument","WaypointFieldsFragmentDoc","FetchWaypointByIdGQL","FetchWaypointByIdsDocument","FetchWaypointByIdsGQL","FetchWebOrderLogByIdDocument","WebOrderLogFieldsFragmentDoc","FetchWebOrderLogByIdsDocument","gql","WebOrderLogFieldsFragmentDoc","FetchAccessibleItemByIdDocument","gql","AccessibleItemFieldsFragmentDoc","FetchAccessibleItemByIdsDocument","gql","AccessibleItemFieldsFragmentDoc","FetchAgencyByIdDocument","gql","AgencyFieldsFragmentDoc","FetchAgencyByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchAgencyByIdsDocument","FetchAgencyByIdsGQL","FetchAgencyLocationByIdDocument","AgencyLocationFieldsFragmentDoc","FetchAgencyLocationByIdGQL","FetchAgencyLocationByIdsDocument","FetchAgencyLocationByIdsGQL","FetchAirportByIdDocument","AirportFieldsFragmentDoc","FetchAirportByIdGQL","FetchAirportByIdsDocument","FetchAirportByIdsGQL","FetchArchiveLogByIdDocument","ArchiveLogFieldsFragmentDoc","FetchArchiveLogByIdsDocument","gql","ArchiveLogFieldsFragmentDoc","FetchBaseControlZoneByIdDocument","gql","BaseControlZoneFieldsFragmentDoc","FetchBaseControlZoneByIdsDocument","gql","BaseControlZoneFieldsFragmentDoc","FetchBaseByIdDocument","gql","BaseFieldsFragmentDoc","FetchBaseByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchBaseByIdsDocument","FetchBaseByIdsGQL","FetchBaseMedicalControlContactByIdDocument","BaseMedicalControlContactFieldsFragmentDoc","FetchBaseMedicalControlContactByIdGQL","FetchBaseMedicalControlContactByIdsDocument","FetchBaseMedicalControlContactByIdsGQL","FetchBaseMedicalControlContactStateByIdDocument","BaseMedicalControlContactStateFieldsFragmentDoc","FetchBaseMedicalControlContactStateByIdsDocument","gql","BaseMedicalControlContactStateFieldsFragmentDoc","FetchCapabilityByIdDocument","gql","CapabilityFieldsFragmentDoc","FetchCapabilityByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchCapabilityByIdsDocument","FetchCapabilityByIdsGQL","FetchCommunicationCenterByIdDocument","CommunicationCenterFieldsFragmentDoc","FetchCommunicationCenterByIdGQL","FetchCommunicationCenterByIdsDocument","FetchCommunicationCenterByIdsGQL","FetchCommunicationCenterTransportOfferOptionByIdDocument","CommunicationCenterTransportOfferOptionFieldsFragmentDoc","FetchCommunicationCenterTransportOfferOptionByIdsDocument","gql","CommunicationCenterTransportOfferOptionFieldsFragmentDoc","FetchCompanyByIdDocument","gql","CompanyFieldsFragmentDoc","FetchCompanyByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchCompanyByIdsDocument","FetchCompanyByIdsGQL","FetchCompleteFlightInstanceByIdDocument","CompleteFlightInstanceFieldsFragmentDoc","FetchCompleteFlightInstanceByIdsDocument","gql","CompleteFlightInstanceFieldsFragmentDoc","FetchControlZoneByIdDocument","gql","ControlZoneFieldsFragmentDoc","FetchControlZoneByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchControlZoneByIdsDocument","FetchControlZoneByIdsGQL","FetchDepartmentByIdDocument","DepartmentFieldsFragmentDoc","FetchDepartmentByIdGQL","FetchDepartmentByIdsDocument","FetchDepartmentByIdsGQL","FetchEntityCapabilityByIdDocument","EntityCapabilityFieldsFragmentDoc","FetchEntityCapabilityByIdsDocument","gql","EntityCapabilityFieldsFragmentDoc","FetchExternalReferenceByIdDocument","gql","ExternalReferenceFieldsFragmentDoc","FetchExternalReferenceByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchExternalReferenceByIdsDocument","FetchExternalReferenceByIdsGQL","FetchFboByIdDocument","FboFieldsFragmentDoc","FetchFboByIdGQL","FetchFboByIdsDocument","FetchFboByIdsGQL","FetchFuelTankByIdDocument","FuelTankFieldsFragmentDoc","FetchFuelTankByIdGQL","FetchFuelTankByIdsDocument","FetchFuelTankByIdsGQL","FetchLocationByIdDocument","LocationFieldsFragmentDoc","FetchLocationByIdGQL","FetchLocationByIdsDocument","FetchLocationByIdsGQL","FetchMedicalFacilityContactByIdDocument","MedicalFacilityContactFieldsFragmentDoc","FetchMedicalFacilityContactByIdGQL","FetchMedicalFacilityContactByIdsDocument","FetchMedicalFacilityContactByIdsGQL","FetchMedicalFacilityByIdDocument","MedicalFacilityFieldsFragmentDoc","FetchMedicalFacilityByIdGQL","FetchMedicalFacilityByIdsDocument","FetchMedicalFacilityByIdsGQL","FetchMedicalFacilityPhysicianByIdDocument","MedicalFacilityPhysicianFieldsFragmentDoc","FetchMedicalFacilityPhysicianByIdGQL","FetchMedicalFacilityPhysicianByIdsDocument","FetchMedicalFacilityPhysicianByIdsGQL","FetchMedicalFacilityUnitByIdDocument","MedicalFacilityUnitFieldsFragmentDoc","FetchMedicalFacilityUnitByIdGQL","FetchMedicalFacilityUnitByIdsDocument","FetchMedicalFacilityUnitByIdsGQL","FetchMedicalUnitByIdDocument","MedicalUnitFieldsFragmentDoc","FetchMedicalUnitByIdsDocument","gql","MedicalUnitFieldsFragmentDoc","FetchPersonByIdDocument","gql","PersonFieldsFragmentDoc","FetchPersonByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchPersonByIdsDocument","FetchPersonByIdsGQL","FetchPhysicianByIdDocument","PhysicianFieldsFragmentDoc","FetchPhysicianByIdGQL","FetchPhysicianByIdsDocument","FetchPhysicianByIdsGQL","FetchProgramBaseByIdDocument","ProgramBaseFieldsFragmentDoc","FetchProgramBaseByIdsDocument","gql","ProgramBaseFieldsFragmentDoc","FetchProgramByIdDocument","gql","ProgramFieldsFragmentDoc","FetchProgramByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchProgramByIdsDocument","FetchProgramByIdsGQL","FetchRamcoVehicleConfigurationByIdDocument","RamcoVehicleConfigurationFieldsFragmentDoc","FetchRamcoVehicleConfigurationByIdsDocument","gql","RamcoVehicleConfigurationFieldsFragmentDoc","FetchRegionBaseByIdDocument","gql","RegionBaseFieldsFragmentDoc","FetchRegionBaseByIdsDocument","gql","RegionBaseFieldsFragmentDoc","FetchRegionByIdDocument","gql","RegionFieldsFragmentDoc","FetchRegionByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchRegionByIdsDocument","FetchRegionByIdsGQL","FetchRegionGroupByIdDocument","RegionGroupFieldsFragmentDoc","FetchRegionGroupByIdGQL","FetchRegionGroupByIdsDocument","FetchRegionGroupByIdsGQL","FetchSpecialtyTeamByIdDocument","SpecialtyTeamFieldsFragmentDoc","FetchSpecialtyTeamByIdGQL","FetchSpecialtyTeamByIdsDocument","FetchSpecialtyTeamByIdsGQL","FetchSpecialtyTeamMemberByIdDocument","SpecialtyTeamMemberFieldsFragmentDoc","FetchSpecialtyTeamMemberByIdGQL","FetchSpecialtyTeamMemberByIdsDocument","FetchSpecialtyTeamMemberByIdsGQL","FetchSupportRequestByIdDocument","SupportRequestFieldsFragmentDoc","FetchSupportRequestByIdGQL","FetchSupportRequestByIdsDocument","FetchSupportRequestByIdsGQL","FetchTimezoneByIdDocument","TimezoneFieldsFragmentDoc","FetchTimezoneByIdGQL","FetchTimezoneByIdsDocument","FetchTimezoneByIdsGQL","FetchTransferCenterByIdDocument","TransferCenterFieldsFragmentDoc","FetchTransferCenterByIdGQL","FetchTransferCenterByIdsDocument","FetchTransferCenterByIdsGQL","FetchTrmUserAgencyByIdDocument","TrmUserAgencyFieldsFragmentDoc","FetchTrmUserAgencyByIdsDocument","gql","TrmUserAgencyFieldsFragmentDoc","FetchTrmUserByIdDocument","gql","TrmUserFieldsFragmentDoc","FetchTrmUserByIdsDocument","gql","TrmUserFieldsFragmentDoc","FetchTrmUserMedicalFacilityByIdDocument","gql","TrmUserMedicalFacilityFieldsFragmentDoc","FetchTrmUserMedicalFacilityByIdsDocument","gql","TrmUserMedicalFacilityFieldsFragmentDoc","FetchTrmUserProgramByIdDocument","gql","TrmUserProgramFieldsFragmentDoc","FetchTrmUserProgramByIdsDocument","gql","TrmUserProgramFieldsFragmentDoc","FetchVehicleConfigurationClassByIdDocument","gql","VehicleConfigurationClassFieldsFragmentDoc","FetchVehicleConfigurationClassByIdsDocument","gql","VehicleConfigurationClassFieldsFragmentDoc","FetchVehicleControlZoneByIdDocument","gql","VehicleControlZoneFieldsFragmentDoc","FetchVehicleControlZoneByIdsDocument","gql","VehicleControlZoneFieldsFragmentDoc","FetchVehicleByIdDocument","gql","VehicleFieldsFragmentDoc","FetchVehicleByIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","FetchVehicleByIdsDocument","FetchVehicleByIdsGQL","FetchVehicleMaintenanceByIdDocument","VehicleMaintenanceFieldsFragmentDoc","FetchVehicleMaintenanceByIdGQL","FetchVehicleMaintenanceByIdsDocument","FetchVehicleMaintenanceByIdsGQL","FetchVehicleMakeByIdDocument","VehicleMakeFieldsFragmentDoc","FetchVehicleMakeByIdGQL","FetchVehicleMakeByIdsDocument","FetchVehicleMakeByIdsGQL","FetchVehicleModelByIdDocument","VehicleModelFieldsFragmentDoc","FetchVehicleModelByIdGQL","FetchVehicleModelByIdsDocument","FetchVehicleModelByIdsGQL","FetchVehicleStateInspectionByIdDocument","VehicleStateInspectionFieldsFragmentDoc","FetchVehicleStateInspectionByIdGQL","FetchVehicleStateInspectionByIdsDocument","FetchVehicleStateInspectionByIdsGQL","InsightsCardActivityDocument","AccessibleItemFieldsFragmentDoc","GetAllNotificationsDocument","gql","NotificationFieldsFragmentDoc","GetRamcoVehicleConfigurationByTailNumberDocument","gql","RamcoVehicleConfigurationFieldsFragmentDoc","GetRamcoVehicleConfigurationByTailNumberGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","GetRamcoVehicleConfigurationByVehicleIdDocument","GetUnitNotesByUnitDocument","gql","UnitNoteFieldsFragmentDoc","PersonFieldsFragmentDoc","UserContextResolverDocument","gql","BaseFieldsFragmentDoc","ProgramFieldsFragmentDoc","UserContextResolverGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","GetUserByEmailDocument","PersonFieldsFragmentDoc","CompanyFieldsFragmentDoc","GetUserByEmailGQL","GetVehicleConfigurationClassesDocument","VehicleConfigurationClassFieldsFragmentDoc","GetVehicleConfigurationClassesGQL","GetVehicleModelsDocument","VehicleModelFieldsFragmentDoc","GetVehicleModelsGQL","FetchCardByCardNumberDocument","CardFieldsFragmentDoc","FetchCardByCardNumberGQL","FetchCardEntitiesDocument","ActiveAlertFieldsFragmentDoc","RequestFieldsFragmentDoc","TransportOfferOptionFieldsFragmentDoc","RequesterFieldsFragmentDoc","RequestLocationFieldsFragmentDoc","RendezvousRequestFieldsFragmentDoc","AgencyLocationFieldsFragmentDoc","CardLinkFieldsFragmentDoc","DiversionReasonFieldsFragmentDoc","RequestPatientFieldsFragmentDoc","TransferReasonFieldsFragmentDoc","ReceivingFacilityRequestFieldsFragmentDoc","OperationFieldsFragmentDoc","UnitContextFragmentDoc","TripFieldsFragmentDoc","EstimatedDurationFieldsFragmentDoc","VehicleFieldsFragmentDoc","VehicleDispositionFieldsFragmentDoc","AgencyFieldsFragmentDoc","EtaFieldsFragmentDoc","PositionReportFieldsFragmentDoc","FlightFollowingReportFieldsFragmentDoc","TripPassengerFieldsFragmentDoc","ManifestEntryFieldsFragmentDoc","TripLegFieldsFragmentDoc","QuestionnaireResponseFieldsFragmentDoc","QuestionnaireQuestionResponseFieldsFragmentDoc","QuestionnaireQuestionResponseNoteFieldsFragmentDoc","QuestionnaireFieldsFragmentDoc","MedicalControlContactLogEntryFieldsFragmentDoc","FetchCardEntitiesGQL","FetchOpsSummaryDataDocument","OutOfServiceEventFieldsFragmentDoc","VehicleSummaryFieldsFragmentDoc","CardSummaryFieldsFragmentDoc","UnitSummaryFieldsFragmentDoc","FetchOpsSummaryDataGQL","FetchCardLinksDocument","FetchCardLinksGQL","FetchCardSummaryByCardNumberDocument","FetchCardSummaryByCardIdDocument","gql","CardSummaryFieldsFragmentDoc","CardUnitOverviewComponent_FetchCardEntitiesByCardIdDocument","gql","CardFieldsFragmentDoc","RequestFieldsFragmentDoc","RequestLocationFieldsFragmentDoc","RequestPatientFieldsFragmentDoc","OperationFieldsFragmentDoc","UnitFieldsFragmentDoc","TripFieldsFragmentDoc","EstimatedDurationFieldsFragmentDoc","VehicleFieldsFragmentDoc","VehicleDispositionFieldsFragmentDoc","TripPassengerFieldsFragmentDoc","ManifestEntryFieldsFragmentDoc","TripLegFieldsFragmentDoc","CardUnitOverviewComponent_FetchCardEntitiesByCardIdGQL","Query","constructor","apollo","document","ɵɵinject","Apollo","factory","ɵfac","providedIn","UserDataContextService_FetchDocument","UserDataContextFragmentDoc","UserDataContextService_FetchGQL","LocationHazardsComponent_FetchLocationHazardsByLocationIdDocument","LocationHazardFieldsFragmentDoc","LocationHazardAttachmentFieldsFragmentDoc","LocationHazardsComponent_FetchLocationHazardsByLocationIdGQL","PollingService_FetchEntitiesDocument","NotificationFieldsFragmentDoc","UnitSummaryFieldsFragmentDoc","VehicleSummaryFieldsFragmentDoc","CardSummaryFieldsFragmentDoc","VehiclePositionSummaryFieldsFragmentDoc","PollingService_FetchEntitiesGQL","AccessibleItemRecord","Record","id","type","entityId","userRoles","personId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Set","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllAccessibleItemEntities","state","entityStores","accessibleItem","entities","selectAccessibleItemEntitiesByPersonId","personId","createSelector","selectAllAccessibleItemEntities","entities","filter","e","valueSeq","OutOfServiceEventRecord","Record","id","type","eventNumber","estimatedEndTime","startTime","unitId","vehicleId","reasonId","isAirworthy","secondaryReasonId","scheduledStartTime","initialEstimatedEndTime","endTime","notes","linkedCardId","createdById","endedById","secondaryReasonComment","parentOutOfServiceEventId","copiedFromId","alertWhenEventEnds","alertTimeInMinutes","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllOutOfServiceEventEntities","state","entityStores","outOfServiceEvent","entities","selectOutOfServiceEventById","id","get","selectOutOfServiceEventEntitiesByIds","ids","createSelector","selectAllOutOfServiceEventEntities","entities","entries","map","id","get","Map","selectOutOfServiceEventEntitiesByUnitId","unitId","createSelector","selectAllOutOfServiceEventEntities","entities","filter","e","valueSeq","OutOfServiceReasonRecord","Record","id","name","controllable","description","isVehicleReason","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","OutOfServiceReasonViewModelBase","_props","toJS","toJSON","_json","selectAllOutOfServiceReasonEntities","state","entityStores","outOfServiceReason","entities","selectOutOfServiceReasonById","get","selectOutOfServiceReasonEntitiesByIds","ids","createSelector","selectAllOutOfServiceReasonEntities","entities","entries","map","id","get","Map","OutOfServiceSecondaryReasonRecord","Record","id","name","outOfServiceReasonId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllOutOfServiceSecondaryReasonEntities","state","entityStores","outOfServiceSecondaryReason","entities","selectOutOfServiceSecondaryReasonById","id","get","selectOutOfServiceSecondaryReasonEntitiesByOutOfServiceReasonId","outOfServiceReasonId","createSelector","selectAllOutOfServiceSecondaryReasonEntities","entities","filter","e","valueSeq","UnitShiftSummaryRecord","Record","id","name","startTimeInMinutes","endTimeInMinutes","fromJS","json","Error","getFromOrThrow","j","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","OutOfServiceEventSummaryRecord","Record","id","type","eventNumber","estimatedEndTime","startTime","reasonName","reasonId","notes","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","UnitPositionSummaryRecord","Record","id","name","type","isFlightCrew","isNonEmployee","notificationAddress","teamMemberId","teamMemberFirstName","teamMemberLastName","isNonCompliant","nonComplianceReason","fromJS","json","Error","getFromOrThrow","j","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","UnitSummaryRecord","Record","id","name","abbreviation","status","weatherStatus","isAdministrative","isHidden","isThirdPartyUnit","etloInMinutes","pilotNotes","lastPilotUpdateTime","lastPilotUpdateById","isExternallyManaged","maximumFlightRule","isOnDelay","plannedAvailableNotes","plannedAvailableTime","isEnabled","isSpare","lastPilotUpdateName","baseTimezoneCd","shifts","vehicleSummaryId","outOfServiceEvents","positions","baseId","vehicleId","regionId","communicationCenterId","companyId","dateLastUpdated","dateCreated","dateDeleted","fromJS","json","Error","getFromOrThrow","j","Date","List","map","o","UnitShiftSummaryRecord","OutOfServiceEventSummaryRecord","UnitPositionSummaryRecord","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","UnitSummaryViewModelBase","_props","isAvailable","UnitStatus","Available","isCommitted","Committed","isOnStandby","OnStandby","isOutOfService","OutOfService","isPartiallyAvailable","PartiallyAvailable","isGreen","WeatherStatus","Green","isRed","Red","isUnspecified","Unspecified","isYellow","Yellow","isIfr","FlightRule","Ifr","isNone","None","isVfr","Vfr","isAnyStatus","unitStatus","includes","isAnyWeatherStatus","isAnyMaximumFlightRule","flightRule","toJS","toJSON","_json","selectAllUnitSummaryEntities","state","entityStores","unitSummary","entities","selectUnitSummaryById","get","selectUnitSummaryEntitiesByIds","ids","createSelector","selectAllUnitSummaryEntities","entities","entries","map","id","get","Map","selectUnitSummaryEntitiesByVehicleId","vehicleId","createSelector","selectAllUnitSummaryEntities","entities","filter","e","valueSeq","selectUnitSummaryEntitiesByRegionId","regionId","selectUnitSummaryEntitiesByCommunicationCenterId","communicationCenterId","selectUnitSummaryEntitiesByCompanyId","companyId","WaypointSummaryRecord","Record","id","name","abbreviation","type","fromJS","json","Error","getFromOrThrow","j","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","PositionReportSummaryRecord","Record","id","positionTime","source","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","CoordinatesRecord","Record","latitude","longitude","fromJS","json","Error","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","VehicleSummaryRecord","Record","id","type","serialNumber","registrationNumber","dispatchCompanyId","from","to","unitSummaryId","makeName","modelName","regionId","status","statusDescription","etlo","eta","currentCardNumber","currentCardSummaryId","latestPositionReportSummary","lastQualifyingPositionReportTime","lastKnownCoordinates","currentOrNextLegSequence","totalLegCount","communicationCenterId","vehicleDispositionId","unitId","currentCardId","companyId","dateLastUpdated","dateCreated","dateDeleted","fromJS","json","Error","getFromOrThrow","j","WaypointSummaryRecord","Date","PositionReportSummaryRecord","CoordinatesRecord","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","VehicleSummaryViewModelBase","_props","isFixedWing","VehicleType","FixedWing","isGround","Ground","isRotorWing","RotorWing","isUnspecified","Unspecified","isAtWaypoint","VehicleStatus","AtWaypoint","isEnRoute","EnRoute","isAnyType","vehicleType","includes","isAnyStatus","vehicleStatus","toJS","toJSON","_json","selectAllVehicleSummaryEntities","state","entityStores","vehicleSummary","entities","selectVehicleSummaryById","get","selectVehicleSummaryEntitiesByIds","ids","createSelector","selectAllVehicleSummaryEntities","entities","entries","map","id","get","Map","selectVehicleSummaryEntitiesByCommunicationCenterId","communicationCenterId","createSelector","selectAllVehicleSummaryEntities","entities","filter","e","valueSeq","selectVehicleSummaryEntitiesByCompanyId","companyId","createSelector","selectAllVehicleSummaryEntities","entities","filter","e","valueSeq","VehiclePositionSummaryRecord","Record","id","vehicleId","latitude","longitude","positionSource","positionTime","lastPositionReportId","lastQualifyingPositionReportTime","etlo","lastGpsAutoPositionTime","companyId","dateLastUpdated","dateCreated","dateDeleted","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllVehiclePositionSummaryEntities","state","entityStores","vehiclePositionSummary","entities","selectVehiclePositionSummaryEntitiesByVehicleId","vehicleId","createSelector","selectAllVehiclePositionSummaryEntities","entities","filter","e","valueSeq","shareReplaySafe","bufferSize","observable","pipe","shareReplay","refCount","NamedKeyCache","constructor","ttlMs","_cache","cacheFactory","cache","Infinity","keys","peek","key","hash","has","get","getUnsafe","getAllByName","name","results","split","push","set","value","delete","deleteAllByName","deletedCnt","clear","TimedKeyValueCache","hashAlgorithm","_generateHash","generateHash","TimedValueCache","Map","_purgeAndExecute","item","_get","lastAccessDate","Date","entry","undefined","fn","purgeExpiredMapEntries","AccessTrackerCache","_defaultValue","prev","rollback","map","now","entries","getTime","createCacheFactory","keyValueCache","HashAlgorithm","md5","namedKeyCache","accessTracker","appInsightsMaxPropLength","createSafeProp","value","t","val","truncate","omission","length","isEqual","json","JSON","stringify","err","message","createSafeProps","result","Object","entries","forEach","key","propVal","String","patchTelemetryProps","item","props","data","oldProps","newProps","__spreadValues","FETCH_ENTITIES","ENTITIES_RECEIVED","EntitiesReceived","constructor","entities","source","type","ENTITIES_RECEIVED","AddressRecord","Record","streetAddress","city","region","postalCode","country","county","gpsId","coordinates","fromJS","json","Error","CoordinatesRecord","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","IdListItemRecord","Record","id","fromJS","json","Error","getFromOrThrow","j","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","ActivationRuleRecord","Record","id","name","isShared","companyId","regionId","baseId","unitId","vehicleId","vehicleTypes","medicalFacilityId","locationId","address","operationTypes","declineReasons","timestampTypeId","systemTimestampType","outOfServiceReasonId","communicationCenters","outOfServiceType","automatedAlertAlgorithmType","ageInMinutes","waypointTypes","missionRoleTypes","companies","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Set","AddressRecord","List","map","o","IdListItemRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllActivationRuleEntities","state","entityStores","activationRule","entities","selectActivationRuleById","id","get","selectActivationRuleEntitiesByIds","ids","createSelector","selectAllActivationRuleEntities","entities","entries","map","id","get","Map","ActiveAlertRecord","Record","id","urgency","target","targetId","entityType","entityId","title","content","definitionId","lifecycleStage","requiresAcknowledgement","dateAcknowledged","acknowledgedById","matchType","parentEntityType","parentEntityId","activationTime","visibilityType","escalationDurationInSeconds","snoozeMaxInSeconds","authorId","regionId","communicationCenterId","lookupHash","isGpsAlert","referenceEntityType","referenceEntityId","isActive","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","ActiveAlertViewModelBase","_props","isCritical","AlertUrgency","Critical","isInformation","Information","isWarning","Warning","isTargetCard","AlertTarget","Card","isEntityTypeCard","EntityType","isParentEntityTypeCard","isReferenceEntityTypeCard","isTargetCompany","Company","isEntityTypeCompany","isParentEntityTypeCompany","isReferenceEntityTypeCompany","isTargetRegion","Region","isEntityTypeRegion","isParentEntityTypeRegion","isVisibilityTypeRegion","VisibilityType","isReferenceEntityTypeRegion","isEntityTypeAirport","Airport","isParentEntityTypeAirport","isReferenceEntityTypeAirport","isEntityTypeBase","Base","isParentEntityTypeBase","isReferenceEntityTypeBase","isEntityTypeCommunicationCenter","CommunicationCenter","isParentEntityTypeCommunicationCenter","isReferenceEntityTypeCommunicationCenter","isEntityTypeControlZone","ControlZone","isParentEntityTypeControlZone","isReferenceEntityTypeControlZone","isEntityTypeLocation","Location","isParentEntityTypeLocation","isReferenceEntityTypeLocation","isEntityTypeMedicalFacility","MedicalFacility","isParentEntityTypeMedicalFacility","isReferenceEntityTypeMedicalFacility","isEntityTypeOutOfServiceEvent","OutOfServiceEvent","isParentEntityTypeOutOfServiceEvent","isReferenceEntityTypeOutOfServiceEvent","isEntityTypePerson","Person","isParentEntityTypePerson","isReferenceEntityTypePerson","isEntityTypeProgram","Program","isParentEntityTypeProgram","isReferenceEntityTypeProgram","isEntityTypeTimer","Timer","isParentEntityTypeTimer","isReferenceEntityTypeTimer","isEntityTypeUnit","Unit","isParentEntityTypeUnit","isReferenceEntityTypeUnit","isEntityTypeUnspecified","Unspecified","isLifecycleStageUnspecified","AlertLifecycleStage","isMatchTypeUnspecified","RuleMatchType","isParentEntityTypeUnspecified","isReferenceEntityTypeUnspecified","isEntityTypeVehicle","Vehicle","isParentEntityTypeVehicle","isReferenceEntityTypeVehicle","isPreAssignment","PreAssignment","isDropoffLocation","DropoffLocation","isPickupLocation","PickupLocation","isAuthor","Author","isCommunicationsCenter","CommunicationsCenter","isEntityOnly","EntityOnly","isAnyUrgency","alertUrgency","includes","isAnyTarget","alertTarget","isAnyEntityType","isAnyLifecycleStage","alertLifecycleStage","isAnyMatchType","ruleMatchType","isAnyParentEntityType","isAnyVisibilityType","isAnyReferenceEntityType","toJS","toJSON","_json","selectAllActiveAlertEntities","state","entityStores","activeAlert","entities","selectActiveAlertById","get","selectActiveAlertEntitiesByIds","ids","createSelector","selectAllActiveAlertEntities","entities","entries","map","id","get","Map","selectActiveAlertEntitiesByEntityType","entityType","createSelector","selectAllActiveAlertEntities","entities","filter","e","valueSeq","ActiveTimelineRecord","Record","id","timelineId","companyId","matchType","entityType","entityId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","AlertRecord","Record","id","entityType","activationRuleId","urgency","title","content","effectiveDate","expirationDate","paused","lifecycleStage","requiresAcknowledgement","createdById","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllAlertEntities","state","entityStores","alert","entities","selectAlertById","id","get","selectAlertEntitiesByIds","ids","createSelector","selectAllAlertEntities","entities","entries","map","id","get","Map","ApplicationNotificationRecord","Record","id","urgency","displayOnBanner","dismissable","title","notification","effectiveDate","expirationDate","createdById","companyId","regionId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","ApplicationNotificationViewModelBase","_props","isCritical","ApplicationNotificationUrgency","Critical","isInformation","Information","isWarning","Warning","isAnyUrgency","applicationNotificationUrgency","includes","toJS","toJSON","_json","selectAllApplicationNotificationEntities","state","entityStores","applicationNotification","entities","selectApplicationNotificationById","get","selectApplicationNotificationEntitiesByIds","ids","createSelector","selectAllApplicationNotificationEntities","entities","entries","map","id","get","Map","AssignmentDelayedReasonRecord","Record","id","name","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllAssignmentDelayedReasonEntities","state","entityStores","assignmentDelayedReason","entities","selectAssignmentDelayedReasonById","id","get","selectAssignmentDelayedReasonEntitiesByIds","ids","createSelector","selectAllAssignmentDelayedReasonEntities","entities","entries","map","id","get","Map","CancellationCategoryRecord","Record","id","name","defaultCancellationReasonId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllCancellationCategoryEntities","state","entityStores","cancellationCategory","entities","selectCancellationCategoryById","id","get","selectCancellationCategoryEntitiesByIds","ids","createSelector","selectAllCancellationCategoryEntities","entities","entries","map","id","get","Map","CancellationReasonRecord","Record","id","name","abbreviation","canBeUnitCancellationReason","isTransferCenterReason","cancellationCategoryId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllCancellationReasonEntities","state","entityStores","cancellationReason","entities","selectCancellationReasonById","id","get","selectCancellationReasonEntitiesByIds","ids","createSelector","selectAllCancellationReasonEntities","entities","entries","map","id","get","Map","CancellationSecondaryReasonRecord","Record","id","name","cancellationReasonId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllCancellationSecondaryReasonEntities","state","entityStores","cancellationSecondaryReason","entities","selectCancellationSecondaryReasonById","id","get","selectCancellationSecondaryReasonEntitiesByCancellationReasonId","cancellationReasonId","createSelector","selectAllCancellationSecondaryReasonEntities","entities","filter","e","valueSeq","CardRecord","Record","id","status","cardNumber","dateCardClosed","transferredToCardId","transferredFromCardId","linkedCardId","closeComment","reOpenComment","postTransportDebriefCompleted","isBillable","notBillableType","notBillableComment","apiWebhookSubscriptionId","createdById","plannedCompletionTime","reOpenReasonId","lastOperationId","diversionType","gmrUtilizationStatus","gmrCADNumber","isLocked","operationId","requestId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","CardViewModelBase","_props","isAwaitingAssignment","CardStatus","AwaitingAssignment","isAwaitingLaunch","AwaitingLaunch","isClosed","Closed","isCompleted","Completed","isUnderway","Underway","isMechanicalAbort","NotBillableType","MechanicalAbort","isOther","Other","isPatientCondition","PatientCondition","isPatientExpiredOrQL","PatientExpiredOrQL","isPatientWentByGround","PatientWentByGround","isWeatherAbort","WeatherAbort","isDiversion","DiversionType","Diversion","isFollowOn","FollowOn","isNoResourcesAvailable","AmrUtilizationStatus","NoResourcesAvailable","isNoServiceAvailable","NoServiceAvailable","isNotConsidered","NotConsidered","isUnsatisfactoryEta","UnsatisfactoryEta","isUnspecified","Unspecified","isUtilized","Utilized","isAnyStatus","cardStatus","includes","isAnyNotBillableType","isAnyDiversionType","isAnyGmrUtilizationStatus","amrUtilizationStatus","toJS","toJSON","_json","selectAllCardEntities","state","entityStores","card","entities","selectCardById","get","selectCardEntitiesByIds","ids","createSelector","selectAllCardEntities","entities","entries","map","id","get","Map","selectCardEntitiesByRequestId","requestId","createSelector","selectAllCardEntities","entities","filter","e","valueSeq","CardLinkRecord","Record","id","type","fromCardId","toCardId","toCardNumber","rendezvousRequestId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","CardLinkViewModelBase","_props","isReferral","CardLinkType","Referral","isSupportLeg","SupportLeg","isAnyType","cardLinkType","includes","toJS","toJSON","_json","selectAllCardLinkEntities","state","entityStores","cardLink","entities","selectCardLinkEntitiesByFromCardId","fromCardId","createSelector","selectAllCardLinkEntities","entities","filter","e","valueSeq","CardNoteArchiveRecord","Record","id","content","noteTime","authorId","isInternal","noteCategory","noteMetadataJson","isSystem","dateArchived","cardId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","CardNoteRecord","Record","id","content","noteTime","authorId","isInternal","noteCategory","noteMetadataJson","isSystem","cardId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","CardReOpenReasonRecord","Record","id","name","affectsTrip","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllCardReOpenReasonEntities","state","entityStores","cardReOpenReason","entities","selectCardReOpenReasonById","id","get","selectCardReOpenReasonEntitiesByIds","ids","createSelector","selectAllCardReOpenReasonEntities","entities","entries","map","id","get","Map","OperationSummaryRecord","Record","id","status","unitId","vehicleId","riskAnalysisNumber","riskAnalysisAcknowledged","tripId","fromJS","json","Error","getFromOrThrow","j","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RequesterSummaryRecord","Record","id","missionRole","fromJS","json","Error","getFromOrThrow","j","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RequestLocationSummaryRecord","Record","id","name","abbreviation","type","address","fromJS","json","Error","getFromOrThrow","j","AddressRecord","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RequestSummaryRecord","Record","id","status","requester","from","to","isStandbyRequest","isSisterCompanyReferral","standbyActivationRequested","assignmentDelayedReason","transportTrackingLink","latestWeatherDeclineUnitId","latestWeatherDeclineTime","latestWeatherDeclineReasonId","latestWeatherDeclineSecondaryReasonId","assignmentDelayedTime","fromJS","json","Error","getFromOrThrow","j","RequesterSummaryRecord","RequestLocationSummaryRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RequestPatientSummaryRecord","Record","id","dateOfBirth","weightInKg","dateCreated","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","CardSummaryRecord","Record","id","status","cardNumber","operation","request","patients","apiWebhookSubscriptionId","webOrderAcknowledgedTime","operationType","diversionType","gmrUtilizationStatus","gmrCADNumber","vehicleId","vehicleSummaryId","communicationCenterId","unitId","unitSummaryId","regionId","companyId","dateLastUpdated","dateCreated","dateDeleted","fromJS","json","Error","getFromOrThrow","j","OperationSummaryRecord","RequestSummaryRecord","List","map","o","RequestPatientSummaryRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","CardSummaryViewModelBase","_props","isAwaitingAssignment","CardStatus","AwaitingAssignment","isAwaitingLaunch","AwaitingLaunch","isClosed","Closed","isCompleted","Completed","isUnderway","Underway","isGroundRun","OperationType","GroundRun","isMaintenance","Maintenance","isNonPatientShuttle","NonPatientShuttle","isPatientShuttle","PatientShuttle","isPublicRelations","PublicRelations","isPublicUtility","PublicUtility","isReposition","Reposition","isResidence","Residence","isSceneCall","SceneCall","isSearchAndAssist","SearchAndAssist","isTraining","Training","isTransfer","Transfer","isTransferCenter","TransferCenter","isDiversion","DiversionType","Diversion","isFollowOn","FollowOn","isNoResourcesAvailable","AmrUtilizationStatus","NoResourcesAvailable","isNoServiceAvailable","NoServiceAvailable","isNotConsidered","NotConsidered","isUnsatisfactoryEta","UnsatisfactoryEta","isUnspecified","Unspecified","isUtilized","Utilized","isAnyStatus","cardStatus","includes","isAnyOperationType","isAnyDiversionType","isAnyGmrUtilizationStatus","amrUtilizationStatus","toJS","toJSON","_json","selectAllCardSummaryEntities","state","entityStores","cardSummary","entities","selectCardSummaryById","get","selectCardSummaryEntitiesByIds","ids","createSelector","selectAllCardSummaryEntities","entities","entries","map","id","get","Map","selectCardSummaryEntitiesByCardNumber","cardNumber","createSelector","selectAllCardSummaryEntities","entities","filter","e","valueSeq","selectCardSummaryEntitiesByUnitId","unitId","createSelector","selectAllCardSummaryEntities","entities","filter","e","valueSeq","selectCardSummaryEntitiesByRegionId","regionId","createSelector","selectAllCardSummaryEntities","entities","filter","e","valueSeq","selectCardSummaryEntitiesByCompanyId","companyId","ConfigurationSettingRecord","Record","id","companyId","defaultUnitCommittedDeclineReasonId","defaultUnitOutOfServiceDeclineReasonId","requestReferredInternallyCancellationReasonId","requestReferredExternallyCancellationReasonId","crewGoingByGroundOutOfServiceReasonId","assetReassignedDeclineReasonId","externallyCancelledCancellationReasonId","pilotReportGracePeriodInMinutes","sameDestinationWarningThresholdInMinutes","bugRequestEmail","featureRequestEmail","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllConfigurationSettingEntities","state","entityStores","configurationSetting","entities","DeclineCategoryRecord","Record","id","name","defaultDeclineReasonId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllDeclineCategoryEntities","state","entityStores","declineCategory","entities","selectDeclineCategoryById","id","get","selectDeclineCategoryEntitiesByIds","ids","createSelector","selectAllDeclineCategoryEntities","entities","entries","map","id","get","Map","DeclineReasonRecord","Record","id","name","abbreviation","declineCategoryId","controllable","canBeSkipReason","canBeAbortReason","canBeBulkSkipReason","canBeOneCallSkipReason","isUnitAvailableAfterAbort","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllDeclineReasonEntities","state","entityStores","declineReason","entities","selectDeclineReasonById","id","get","selectDeclineReasonEntitiesByIds","ids","createSelector","selectAllDeclineReasonEntities","entities","entries","map","id","get","Map","DeclineSecondaryReasonRecord","Record","id","name","declineReasonId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllDeclineSecondaryReasonEntities","state","entityStores","declineSecondaryReason","entities","selectDeclineSecondaryReasonEntitiesByDeclineReasonId","declineReasonId","createSelector","selectAllDeclineSecondaryReasonEntities","entities","filter","e","valueSeq","DiversionReasonRecord","Record","id","name","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllDiversionReasonEntities","state","entityStores","diversionReason","entities","selectDiversionReasonById","id","get","selectDiversionReasonEntitiesByIds","ids","createSelector","selectAllDiversionReasonEntities","entities","entries","map","id","get","Map","EscortRequestRecord","Record","id","escortName","relationship","escortWeightInKg","requestApprovalTime","requestId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","EstimatedDurationRecord","Record","id","asOfTime","durationInMinutes","isOfficial","estimateSource","durationType","ownerId","tripId","positionReportId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","EtaRecord","Record","id","asOfTime","estimatedArrivalTime","calculatedArrivalTime","currentTripId","waypointId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","ExternalActionRecord","Record","id","entityId","status","entityType","actionTypeId","actionBodyJson","completedById","dateCompleted","notes","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","ExternalActionViewModelBase","_props","isCompleted","ExternalActionStatus","Completed","isDisregarded","Disregarded","isRequested","Requested","isUnknown","Unknown","isAirport","EntityType","Airport","isBase","Base","isCard","Card","isCommunicationCenter","CommunicationCenter","isCompany","Company","isControlZone","ControlZone","isLocation","Location","isMedicalFacility","MedicalFacility","isOutOfServiceEvent","OutOfServiceEvent","isPerson","Person","isProgram","Program","isRegion","Region","isTimer","Timer","isUnit","Unit","isUnspecified","Unspecified","isVehicle","Vehicle","isAnyStatus","externalActionStatus","includes","isAnyEntityType","toJS","toJSON","_json","selectAllExternalActionEntities","state","entityStores","externalAction","entities","selectExternalActionById","get","selectExternalActionEntitiesByIds","ids","createSelector","selectAllExternalActionEntities","entities","entries","map","id","get","Map","ExternalActionTypeRecord","Record","id","actionTypeName","actionTypeDescription","priority","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllExternalActionTypeEntities","state","entityStores","externalActionType","entities","selectExternalActionTypeById","id","get","selectExternalActionTypeEntitiesByIds","ids","createSelector","selectAllExternalActionTypeEntities","entities","entries","map","id","get","Map","ExternalSystemUnitRecord","Record","id","name","abbreviation","unitId","vehicleId","regionId","companyId","unitStatus","outOfServiceEvents","vehicleType","registrationNumber","vehicleStatus","vehicleStatusDescription","currentCardNumber","lastKnownLocationName","lastKnownCoordinates","lastQualifyingPositionReportTime","baseId","modelName","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","List","map","o","OutOfServiceEventSummaryRecord","CoordinatesRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","FacilityNonAcceptanceReasonRecord","Record","id","name","facilityNonAcceptanceReasonType","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllFacilityNonAcceptanceReasonEntities","state","entityStores","facilityNonAcceptanceReason","entities","selectFacilityNonAcceptanceReasonById","id","get","selectFacilityNonAcceptanceReasonEntitiesByIds","ids","createSelector","selectAllFacilityNonAcceptanceReasonEntities","entities","entries","map","id","get","Map","FirewallRuleRecord","Record","id","name","action","ipRange","enabled","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllFirewallRuleEntities","state","entityStores","firewallRule","entities","selectFirewallRuleById","id","get","selectFirewallRuleEntitiesByIds","ids","createSelector","selectAllFirewallRuleEntities","entities","entries","map","id","get","Map","FlightFollowingReportRecord","Record","id","summary","fuel","estimatedTimeEnrouteMinutes","riskAnalysis","flightType","soulsOnBoard","highestFeatureEnroute","takeOffWeight","centerOfGravity","destination","trackingViaGps","flightRule","tripLegId","confirmedFboId","cruisingAltitude","medicalCrewRA","tripId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","FlightFollowingReportViewModelBase","_props","isPt133","FlightType","Pt133","isPt135","Pt135","isPt91","Pt91","isIfr","FlightRule","Ifr","isNone","None","isVfr","Vfr","isAnyFlightType","includes","isAnyFlightRule","toJS","toJSON","_json","selectAllFlightFollowingReportEntities","state","entityStores","flightFollowingReport","entities","selectFlightFollowingReportById","get","selectFlightFollowingReportEntitiesByIds","ids","createSelector","selectAllFlightFollowingReportEntities","entities","entries","map","id","get","Map","LandingZoneOutOfServiceReasonRecord","Record","id","name","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllLandingZoneOutOfServiceReasonEntities","state","entityStores","landingZoneOutOfServiceReason","entities","selectLandingZoneOutOfServiceReasonById","id","get","selectLandingZoneOutOfServiceReasonEntitiesByIds","ids","createSelector","selectAllLandingZoneOutOfServiceReasonEntities","entities","entries","map","id","get","Map","LocationHazardAttachmentRecord","Record","id","locationHazardId","fileName","fileSizeInBytes","contentType","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","LocationHazardRecord","Record","id","locationId","hazard","effectiveDate","expirationDate","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","LocationHazardViewModelBase","_props","toJS","toJSON","_json","selectAllLocationHazardEntities","state","entityStores","locationHazard","entities","selectLocationHazardById","get","selectLocationHazardEntitiesByIds","ids","createSelector","selectAllLocationHazardEntities","entities","entries","map","id","get","Map","selectLocationHazardEntitiesByLocationId","locationId","filter","e","valueSeq","ManifestEntryRecord","Record","id","passengerId","confirmedAt","confirmedById","tripLegId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","ManifestEntryViewModelBase","_props","toJS","toJSON","_json","MedicalControlContactLogEntryRecord","Record","id","cardId","timestampId","personId","isSuccessful","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","MedicalControlContactLogEntryViewModelBase","_props","toJS","toJSON","_json","selectAllMedicalControlContactLogEntryEntities","state","entityStores","medicalControlContactLogEntry","entities","selectMedicalControlContactLogEntryById","get","selectMedicalControlContactLogEntryEntitiesByIds","ids","createSelector","selectAllMedicalControlContactLogEntryEntities","entities","entries","map","id","get","Map","MessageStatusUpdateRecord","Record","id","status","error","vendorMessage","metadataJson","trackedMessageId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","MessageStatusUpdateViewModelBase","_props","isCreated","MessageStatus","Created","isFailed","Failed","isReceivedByRecipient","ReceivedByRecipient","isSentToProvider","SentToProvider","isSentToRecipient","SentToRecipient","isAnyStatus","messageStatus","includes","toJS","toJSON","_json","NextDueTypeRecord","Record","id","name","dataType","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","NonReferralReasonRecord","Record","id","name","associatedCancellationReasonId","associatedCancellationSecondaryReasonId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllNonReferralReasonEntities","state","entityStores","nonReferralReason","entities","selectNonReferralReasonById","id","get","selectNonReferralReasonEntitiesByIds","ids","createSelector","selectAllNonReferralReasonEntities","entities","entries","map","id","get","Map","NotificationRecord","Record","id","cardId","status","subject","body","sourceTemplateId","entityType","entityId","createdById","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","NotificationViewModelBase","_props","isAwaitingApproval","NotificationStatus","AwaitingApproval","isCancelled","Cancelled","isDraft","Draft","isFailed","Failed","isPartiallyFailed","PartiallyFailed","isSending","Sending","isSent","Sent","isAirport","EntityType","Airport","isBase","Base","isCard","Card","isCommunicationCenter","CommunicationCenter","isCompany","Company","isControlZone","ControlZone","isLocation","Location","isMedicalFacility","MedicalFacility","isOutOfServiceEvent","OutOfServiceEvent","isPerson","Person","isProgram","Program","isRegion","Region","isTimer","Timer","isUnit","Unit","isUnspecified","Unspecified","isVehicle","Vehicle","isAnyStatus","notificationStatus","includes","isAnyEntityType","toJS","toJSON","_json","selectAllNotificationEntities","state","entityStores","notification","entities","selectNotificationById","get","selectNotificationEntitiesByIds","ids","createSelector","selectAllNotificationEntities","entities","entries","map","id","get","Map","NotificationGroupRecord","Record","id","name","companyId","unitId","regionId","type","types","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Set","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllNotificationGroupEntities","state","entityStores","notificationGroup","entities","selectNotificationGroupById","id","get","selectNotificationGroupEntitiesByIds","ids","createSelector","selectAllNotificationGroupEntities","entities","entries","map","id","get","Map","NotificationGroupMemberRecord","Record","id","name","userId","notificationAddress","notificationGroupId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","NotificationRecipientRecord","Record","id","name","notificationAddress","userId","messageId","messageStatus","notificationId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","NotificationRecipientViewModelBase","_props","isCreated","MessageStatus","Created","isFailed","Failed","isReceivedByRecipient","ReceivedByRecipient","isSentToProvider","SentToProvider","isSentToRecipient","SentToRecipient","isAnyMessageStatus","includes","toJS","toJSON","_json","NotificationSubscriptionRecord","Record","id","name","unitId","notificationGroupId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","NotificationTemplateRecord","Record","id","name","companyId","triggerType","triggerValue","activationRuleId","recipientTypes","contextType","subjectTemplate","bodyTemplate","requiresApproval","groupTypes","canBeManualTrigger","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Set","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllNotificationTemplateEntities","state","entityStores","notificationTemplate","entities","selectNotificationTemplateById","id","get","selectNotificationTemplateEntitiesByIds","ids","createSelector","selectAllNotificationTemplateEntities","entities","entries","map","id","get","Map","OemActivityRecord","Record","id","oemPlanId","time","authorId","content","activityType","priorStatus","currentStatus","oemPlanChangeRequestId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","OemAssetRecord","Record","id","oemPlanId","assetId","assetType","assetDispatchCompanyId","status","originalUnitId","oemUnitId","requestedPlacardNumber","requestedUnitName","requestedUnitAbbreviation","requestedBaseId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","OemPlanChangeRequestRecord","Record","id","oemPlanId","oemAssetId","status","originalAssetStatus","requestedAssetStatus","requestedById","dateRequested","dateCompleted","dateCancelled","notes","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","OemPlanRecord","Record","id","name","companyId","oemCompanyId","outOfServiceReasonId","defaultBaseId","planStatus","planYear","description","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","PreferredUnitRecord","Record","id","unitAbbreviation","rank","type","fromJS","json","Error","getFromOrThrow","j","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","OfferAlgorithmRecord","Record","id","name","includeCompetitors","oneCallAgreement","rank","transportOfferAlgorithm","distanceCalculation","activationRuleId","minimumFlightRule","companyId","preferredUnits","companies","isEnabled","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","List","map","o","PreferredUnitRecord","IdListItemRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllOfferAlgorithmEntities","state","entityStores","offerAlgorithm","entities","selectOfferAlgorithmById","id","get","selectOfferAlgorithmEntitiesByIds","ids","createSelector","selectAllOfferAlgorithmEntities","entities","entries","map","id","get","Map","OperationRecord","Record","id","status","type","unitId","vehicleId","dateOperationStarted","dateOperationEnded","unitActivationTime","riskAnalysisNumber","standbyActivationType","caller","callbackNumber","initialOperationType","riskAnalysisAcknowledged","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","OperationViewModelBase","_props","isAborted","OperationStatus","Aborted","isCancelled","Cancelled","isCompleted","Completed","isCrewAccepted","CrewAccepted","isOnStandby","OnStandby","isScheduled","Scheduled","isUnderway","Underway","isUnitActivated","UnitActivated","isTypeGroundRun","OperationType","GroundRun","isInitialOperationTypeGroundRun","isTypeMaintenance","Maintenance","isInitialOperationTypeMaintenance","isTypeNonPatientShuttle","NonPatientShuttle","isInitialOperationTypeNonPatientShuttle","isTypePatientShuttle","PatientShuttle","isInitialOperationTypePatientShuttle","isTypePublicRelations","PublicRelations","isInitialOperationTypePublicRelations","isTypePublicUtility","PublicUtility","isInitialOperationTypePublicUtility","isTypeReposition","Reposition","isInitialOperationTypeReposition","isTypeResidence","Residence","isInitialOperationTypeResidence","isTypeSceneCall","SceneCall","isInitialOperationTypeSceneCall","isTypeSearchAndAssist","SearchAndAssist","isInitialOperationTypeSearchAndAssist","isTypeTraining","Training","isInitialOperationTypeTraining","isTypeTransfer","Transfer","isInitialOperationTypeTransfer","isTypeTransferCenter","TransferCenter","isInitialOperationTypeTransferCenter","isAutoLaunch","StandbyActivationType","AutoLaunch","isCustomerActivation","CustomerActivation","isAnyStatus","operationStatus","includes","isAnyType","operationType","isAnyStandbyActivationType","isAnyInitialOperationType","toJS","toJSON","_json","selectAllOperationEntities","state","entityStores","operation","entities","selectOperationById","get","selectOperationEntitiesByIds","ids","createSelector","selectAllOperationEntities","entities","entries","map","id","get","Map","OutOfServiceEventNoteRecord","Record","id","outOfServiceEventId","content","noteTime","authorId","noteCategory","noteMetadataJson","isSystem","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllOutOfServiceEventNoteEntities","state","entityStores","outOfServiceEventNote","entities","selectOutOfServiceEventNoteEntitiesByOutOfServiceEventId","outOfServiceEventId","createSelector","selectAllOutOfServiceEventNoteEntities","entities","filter","e","valueSeq","PassdownLogAcknowledgementRecord","Record","id","passdownLogId","dateAcknowledged","acknowledgedById","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","PassdownLogRecord","Record","id","name","regionId","logDate","body","requiresAcknowledgement","dateAcknowledged","acknowledgedById","authorId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllPassdownLogEntities","state","entityStores","passdownLog","entities","selectPassdownLogById","id","get","selectPassdownLogEntitiesByIds","ids","createSelector","selectAllPassdownLogEntities","entities","entries","map","id","get","Map","PatientRecord","Record","id","name","firstName","lastName","gender","dateOfBirth","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","PositionReportAlertRecord","Record","id","vehicleId","hasReceivedQualifyingReport","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllPositionReportAlertEntities","state","entityStores","positionReportAlert","entities","selectPositionReportAlertEntitiesByCompanyId","companyId","createSelector","selectAllPositionReportAlertEntities","entities","filter","e","valueSeq","PositionReportArchiveRecord","Record","id","positionTime","source","dateArchived","tripId","coordinates","altitude","speedInKnots","heading","estimatedMinutesEnRoute","fuelRemaining","timezoneCd","dateConfirmed","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","CoordinatesRecord","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","PositionReportRecord","Record","id","positionTime","source","coordinates","altitude","speedInKnots","heading","estimatedMinutesEnRoute","fuelRemaining","timezoneCd","dateConfirmed","tripId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","CoordinatesRecord","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","PositionReportViewModelBase","_props","isGpsAuto","PositionReportSource","GpsAuto","isGpsManual","GpsManual","isPilot","Pilot","isTCS","TCS","isAnySource","positionReportSource","includes","toJS","toJSON","_json","selectAllPositionReportEntities","state","entityStores","positionReport","entities","selectPositionReportById","get","selectPositionReportEntitiesByIds","ids","createSelector","selectAllPositionReportEntities","entities","entries","map","id","get","Map","QuestionChoiceRecord","Record","id","label","value","questionId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","QuestionRecord","Record","id","name","question","questionType","dataType","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","QuestionViewModelBase","_props","isChoice","QuestionType","Choice","isFreeText","FreeText","isYesNo","YesNo","isBoolean","QuestionDataType","Boolean","isDecimal","Decimal","isInteger","Integer","isString","String","isAnyQuestionType","includes","isAnyDataType","questionDataType","toJS","toJSON","_json","selectAllQuestionEntities","state","entityStores","entities","selectQuestionById","get","selectQuestionEntitiesByIds","ids","createSelector","selectAllQuestionEntities","entities","entries","map","id","get","Map","QuestionnaireRecord","Record","id","name","companyId","type","communicationCenterId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllQuestionnaireEntities","state","entityStores","questionnaire","entities","selectQuestionnaireById","id","get","selectQuestionnaireEntitiesByIds","ids","createSelector","selectAllQuestionnaireEntities","entities","entries","map","id","get","Map","QuestionnaireQuestionResponseRecord","Record","id","questionnaireResponseId","questionnaireSectionQuestionId","matchType","responseValue","explanation","reviewRequired","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","QuestionnaireQuestionResponseViewModelBase","_props","isDropoffLocation","RuleMatchType","DropoffLocation","isPickupLocation","PickupLocation","isUnspecified","Unspecified","isAnyMatchType","ruleMatchType","includes","toJS","toJSON","_json","selectAllQuestionnaireQuestionResponseEntities","state","entityStores","questionnaireQuestionResponse","entities","selectQuestionnaireQuestionResponseById","get","selectQuestionnaireQuestionResponseEntitiesByIds","ids","createSelector","selectAllQuestionnaireQuestionResponseEntities","entities","entries","map","id","get","Map","QuestionnaireQuestionResponseNoteRecord","Record","id","questionnaireQuestionResponseId","authorId","dateAuthored","note","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllQuestionnaireQuestionResponseNoteEntities","state","entityStores","questionnaireQuestionResponseNote","entities","QuestionnaireResponseRecord","Record","id","status","currentReviewLevel","questionnaireId","completedById","dateCompleted","communicationsReviewById","dateCommunicationsReviewed","supervisorReviewById","dateSupervisorReviewed","managerReviewById","dateManagerReviewed","companyId","cardId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","QuestionnaireResponseViewModelBase","_props","isAwaitingReview","QuestionnaireResponseStatus","AwaitingReview","isCompleted","Completed","isDraft","Draft","isNotStarted","NotStarted","isAsbDataManager","UserRole","AsbDataManager","isAsbViewer","AsbViewer","isAviationDataManager","AviationDataManager","isAviationPermissionsManager","AviationPermissionsManager","isAviationSupervisor","AviationSupervisor","isBiller","Biller","isBillerCorrectionsTeam","BillerCorrectionsTeam","isClinical","Clinical","isCommunications","Communications","isCommunicationsSupervisor","CommunicationsSupervisor","isComplianceManager","ComplianceManager","isDeveloper","Developer","isExecutive","Executive","isExternal","External","isFixedWingCoordinator","FixedWingCoordinator","isFleetStatusOperations","FleetStatusOperations","isFleetStatusViewer","FleetStatusViewer","isFlightLogViewer","FlightLogViewer","isGlobalDataManager","GlobalDataManager","isGlobalPermissionsManager","GlobalPermissionsManager","isImageTrend","ImageTrend","isOCC","OCC","isOccReader","OccReader","isOosMaintenanceController","OosMaintenanceController","isOosViewer","OosViewer","isOperationsDataManager","OperationsDataManager","isOperationsPermissionsManager","OperationsPermissionsManager","isOpsReader","OpsReader","isPilot","Pilot","isPrdAdmin","PrdAdmin","isPrdUser","PrdUser","isProgramManager","ProgramManager","isQaManager","QaManager","isQaSupervisor","QaSupervisor","isRemoteUser","RemoteUser","isStakeholder","Stakeholder","isTrmProgramAdmin","TrmProgramAdmin","isAnyStatus","questionnaireResponseStatus","includes","isAnyCurrentReviewLevel","userRole","toJS","toJSON","_json","selectAllQuestionnaireResponseEntities","state","entityStores","questionnaireResponse","entities","selectQuestionnaireResponseById","get","selectQuestionnaireResponseEntitiesByIds","ids","createSelector","selectAllQuestionnaireResponseEntities","entities","entries","map","id","get","Map","QuestionnaireSectionRecord","Record","id","name","questionnaireId","sequence","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllQuestionnaireSectionEntities","state","entityStores","questionnaireSection","entities","QuestionnaireSectionQuestionRecord","Record","id","questionnaireSectionId","questionId","explanationRequiredChoices","reviewRequiredChoices","responsibleRole","sequence","activationRuleId","isDisabled","activityType","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","List","map","o","IdListItemRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","QuestionnaireSectionQuestionViewModelBase","_props","isAsbDataManager","UserRole","AsbDataManager","isAsbViewer","AsbViewer","isAviationDataManager","AviationDataManager","isAviationPermissionsManager","AviationPermissionsManager","isAviationSupervisor","AviationSupervisor","isBiller","Biller","isBillerCorrectionsTeam","BillerCorrectionsTeam","isClinical","Clinical","isCommunications","Communications","isCommunicationsSupervisor","CommunicationsSupervisor","isComplianceManager","ComplianceManager","isDeveloper","Developer","isExecutive","Executive","isExternal","External","isFixedWingCoordinator","FixedWingCoordinator","isFleetStatusOperations","FleetStatusOperations","isFleetStatusViewer","FleetStatusViewer","isFlightLogViewer","FlightLogViewer","isGlobalDataManager","GlobalDataManager","isGlobalPermissionsManager","GlobalPermissionsManager","isImageTrend","ImageTrend","isOCC","OCC","isOccReader","OccReader","isOosMaintenanceController","OosMaintenanceController","isOosViewer","OosViewer","isOperationsDataManager","OperationsDataManager","isOperationsPermissionsManager","OperationsPermissionsManager","isOpsReader","OpsReader","isPilot","Pilot","isPrdAdmin","PrdAdmin","isPrdUser","PrdUser","isProgramManager","ProgramManager","isQaManager","QaManager","isQaSupervisor","QaSupervisor","isRemoteUser","RemoteUser","isStakeholder","Stakeholder","isTrmProgramAdmin","TrmProgramAdmin","isAnyResponsibleRole","userRole","includes","toJS","toJSON","_json","selectAllQuestionnaireSectionQuestionEntities","state","entityStores","questionnaireSectionQuestion","entities","selectQuestionnaireSectionQuestionById","get","selectQuestionnaireSectionQuestionEntitiesByIds","ids","createSelector","selectAllQuestionnaireSectionQuestionEntities","entities","entries","map","id","get","Map","ReceivingFacilityRequestRecord","Record","id","status","cardId","requestId","medicalFacilityId","nonAcceptanceType","nonAcceptanceReasonId","referredToFacilityId","requestLocationId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","ReceivingFacilityRequestViewModelBase","_props","isAccepted","ReceivingFacilityRequestStatus","Accepted","isStatusCancelled","Cancelled","isNonAcceptanceTypeCancelled","NonAcceptanceType","isStatusDenied","Denied","isNonAcceptanceTypeDenied","isStatusDiverted","Diverted","isNonAcceptanceTypeDiverted","isPending","Pending","isReferred","Referred","isAnyStatus","receivingFacilityRequestStatus","includes","isAnyNonAcceptanceType","toJS","toJSON","_json","selectAllReceivingFacilityRequestEntities","state","entityStores","receivingFacilityRequest","entities","selectReceivingFacilityRequestById","get","selectReceivingFacilityRequestEntitiesByIds","ids","createSelector","selectAllReceivingFacilityRequestEntities","entities","entries","map","id","get","Map","selectReceivingFacilityRequestEntitiesByCardId","cardId","createSelector","selectAllReceivingFacilityRequestEntities","entities","filter","e","valueSeq","selectReceivingFacilityRequestEntitiesByRequestId","requestId","RendezvousRequestRecord","Record","id","type","agencyLocationId","agencyEta","rendezvousLocationDescription","contactInformation","confirmedAt","departedLzAt","arrivedDestAt","departedDestAt","arrivedLzAt","cancelledAt","notes","utilizationStatus","transportUnitNumber","requestLocationId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RendezvousRequestViewModelBase","_props","isCompanyUnit","SupplementalLegType","CompanyUnit","isExternalAgency","ExternalAgency","isSisterCompanyUnit","SisterCompanyUnit","isNoResourcesAvailable","AmrUtilizationStatus","NoResourcesAvailable","isNoServiceAvailable","NoServiceAvailable","isNotConsidered","NotConsidered","isUnsatisfactoryEta","UnsatisfactoryEta","isUnspecified","Unspecified","isUtilized","Utilized","isAnyType","supplementalLegType","includes","isAnyUtilizationStatus","amrUtilizationStatus","toJS","toJSON","_json","selectAllRendezvousRequestEntities","state","entityStores","rendezvousRequest","entities","selectRendezvousRequestById","get","selectRendezvousRequestEntitiesByIds","ids","createSelector","selectAllRendezvousRequestEntities","entities","entries","map","id","get","Map","SafetyQuestionsRecord","Record","otherServiceDeclined","otherServiceDescription","otherServicesAreRespondingToTransferring","otherServiceResponseDescription","fromJS","json","Error","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RequiredCapabilityRecord","Record","id","fromJS","json","Error","getFromOrThrow","j","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RequestRecord","Record","id","status","cancellationReasonId","cancellationSecondaryReasonId","cancellationReasonNotes","requestedVehicleType","requestedOperationType","primaryUnitServiceAreaId","isStandbyRequest","commitUnitToStandby","standbyActivationRequested","safetyQuestions","assignmentDelayedTime","assignmentDelayedReasonId","regionId","includeCompetitors","transportOfferAlgorithmId","transportOfferAlgorithm","minimumFlightRule","requiredCapabilities","missionConfiguration","missionProfile","transportTrackingLink","latestWeatherDeclineUnitId","latestWeatherDeclineTime","latestWeatherDeclineReasonId","latestWeatherDeclineSecondaryReasonId","webOrderCallType","etloInMinutes","atloInMinutes","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","SafetyQuestionsRecord","Date","List","map","o","RequiredCapabilityRecord","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RequestViewModelBase","_props","isAssigned","RequestStatus","Assigned","isAssignmentDelayed","AssignmentDelayed","isCallReceived","CallReceived","isCancelled","Cancelled","isOffered","Offered","isOffering","Offering","isFixedWing","VehicleType","FixedWing","isGround","Ground","isRotorWing","RotorWing","isRequestedVehicleTypeUnspecified","Unspecified","isMissionConfigurationUnspecified","MissionConfiguration","isMissionProfileUnspecified","MissionProfile","isGroundRun","OperationType","GroundRun","isMaintenance","Maintenance","isNonPatientShuttle","NonPatientShuttle","isPatientShuttle","PatientShuttle","isPublicRelations","PublicRelations","isPublicUtility","PublicUtility","isReposition","Reposition","isResidence","Residence","isSceneCall","SceneCall","isSearchAndAssist","SearchAndAssist","isTraining","Training","isTransfer","Transfer","isTransferCenter","TransferCenter","isShortestDistance","TransportOfferAlgorithm","ShortestDistance","isShortestEta","ShortestEta","isIfr","FlightRule","Ifr","isNone","None","isVfr","Vfr","isCommunityRequest","CommunityRequest","isContractServices","ContractServices","isGovernmentIncident","GovernmentIncident","isAerialOperation","AerialOperation","isFireSuppression","FireSuppression","isHoistRescue","HoistRescue","isRapidCall","WebOrderCallType","RapidCall","isWebOrder","WebOrder","isAnyStatus","requestStatus","includes","isAnyRequestedVehicleType","vehicleType","isAnyRequestedOperationType","operationType","isAnyTransportOfferAlgorithm","isAnyMinimumFlightRule","flightRule","isAnyMissionConfiguration","isAnyMissionProfile","isAnyWebOrderCallType","toJS","toJSON","_json","selectAllRequestEntities","state","entityStores","request","entities","selectRequestById","get","selectRequestEntitiesByIds","ids","createSelector","selectAllRequestEntities","entities","entries","map","id","get","Map","RequesterRecord","Record","id","affiliationType","caller","roleId","missionRole","callbackNumber","email","facilityId","agencyLocationId","referringCompanyId","referringAgencyLocationId","referralReasonId","referringRecordNumber","specialtyTeamNotes","specialtyTeamId","specialtyTeamMembers","careLevelRequested","transferCenterId","transferCenterNotes","transportingAgencyLocationId","isDoublePatient","isWingToWing","requestId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","List","map","o","IdListItemRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RequesterViewModelBase","_props","isAgency","AffiliationType","Agency","isCompetitor","Competitor","isInternal","Internal","isOther","Other","isPsap","Psap","isReceivingFacility","ReceivingFacility","isSendingFacility","SendingFacility","isSisterCompany","SisterCompany","isUnspecified","Unspecified","isANMC","MissionRoleType","ANMC","isCharter","Charter","isFlightFollowing","FlightFollowing","isFullService","FullService","isHospice","Hospice","isMassCasualty","MassCasualty","isPrecautionaryEvacuation","PrecautionaryEvacuation","isQuote","Quote","isSEARHC","SEARHC","isSupplemental","Supplemental","isTeamFlight","TeamFlight","isALS","CareLevel","ALS","isBLS","BLS","isCCT","CCT","isAnyAffiliationType","includes","isAnyMissionRole","missionRoleType","isAnyCareLevelRequested","careLevel","toJS","toJSON","_json","selectAllRequesterEntities","state","entityStores","requester","entities","selectRequesterById","get","selectRequesterEntitiesByIds","ids","createSelector","selectAllRequesterEntities","entities","entries","map","id","get","Map","RequesterReferralReasonRecord","Record","id","name","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllRequesterReferralReasonEntities","state","entityStores","requesterReferralReason","entities","selectRequesterReferralReasonById","id","get","RequesterRoleRecord","Record","id","name","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RequestLocationRecord","Record","id","name","abbreviation","type","locationId","address","timezoneCd","isRotorWingLz","medicalFacilityId","roomNumber","medicalFacilityUnitId","notes","groundContact","estimatedRendezvousTimeInMinutes","estimatedGroundTimeInMinutes","fboId","physicianId","diversionReasonId","diversionReasonOtherNotes","isAutoAccepted","dateConfirmed","confirmedByUserId","unConfirmed","requestId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","AddressRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RequestLocationViewModelBase","_props","isDropoffTeam","WaypointType","DropoffTeam","isEnRouteDiversion","EnRouteDiversion","isFuelLocation","FuelLocation","isOther","Other","isPatientDropoffRendezvous","PatientDropoffRendezvous","isPatientPickupRendezvous","PatientPickupRendezvous","isPickupTeam","PickupTeam","isPost","Post","isPublicRelationsSite","PublicRelationsSite","isReceivingFacility","ReceivingFacility","isRendezvousPoint","RendezvousPoint","isSceneLocation","SceneLocation","isSendingFacility","SendingFacility","isAnyType","waypointType","includes","toJS","toJSON","_json","selectAllRequestLocationEntities","state","entityStores","requestLocation","entities","selectRequestLocationById","get","selectRequestLocationEntitiesByRequestId","requestId","createSelector","selectAllRequestLocationEntities","entities","filter","e","valueSeq","RequestPatientRecord","Record","id","patientId","firstName","lastName","gender","dateOfBirth","weightInKg","transportReasonId","notes","chiefComplaintNotes","transportReasonCategory","isIntubated","numberOfDrips","specialtyEquipment","rideAlongRequested","isoletteType","isoletteNotes","isIsolette","transferReasonId","estimatedAgeInHours","gcs","bpSystolic","bpDiastolic","heartRate","oxygenSaturation","respiratoryRate","temperatureInCelsius","rideAlongWeightInKg","medicalRecordNumber","rideAlongName","rideAlongDateOfBirth","requestId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RequestPatientViewModelBase","_props","isFemale","Gender","Female","isMale","Male","isOther","Other","isGenderUnspecified","Unspecified","isRideAlongRequestedUnspecified","YesNoType","isIsoletteTypeUnspecified","IsoletteType","isEndocrine","TransportReasonCategory","Endocrine","isOB","OB","isSurgery","Surgery","isNo","No","isYes","Yes","isDraegerIsolette","DraegerIsolette","isLifeportDeck","LifeportDeck","isMetroPallet","MetroPallet","isSpectrumSled","SpectrumSled","isUnconfirmed","Unconfirmed","isVoyagerIsolette","VoyagerIsolette","isVoyagerIsolette1","VoyagerIsolette1","isVoyagerIsolette2","VoyagerIsolette2","isVoyagerIsolette4","VoyagerIsolette4","isVoyagerIsolette6","VoyagerIsolette6","isAnyGender","includes","isAnyTransportReasonCategory","isAnyRideAlongRequested","yesNoType","isAnyIsoletteType","toJS","toJSON","_json","selectAllRequestPatientEntities","state","entityStores","requestPatient","entities","selectRequestPatientById","get","SystemTimerRecord","Record","id","name","description","commandName","runIntervalInSeconds","hasRunCondition","isEnqueued","lastRunDate","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TimelineRecord","Record","id","name","companyId","activationRuleId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllTimelineEntities","state","entityStores","timeline","entities","selectTimelineById","id","get","selectTimelineEntitiesByIds","ids","createSelector","selectAllTimelineEntities","entities","entries","map","id","get","Map","TimelineItemRecord","Record","id","timestampTypeId","required","sequence","timelineId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TimelineItemViewModelBase","_props","toJS","toJSON","_json","selectTimelineItemById","id","state","entityStores","timelineItem","entities","get","TimestampRecord","Record","id","time","userId","note","typeId","cardId","requestId","operationId","personsInvolved","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TimestampViewModelBase","_props","toJS","toJSON","_json","TimestampTypeRecord","Record","id","name","systemTimestampType","order","description","companies","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","List","map","o","IdListItemRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TimestampTypeViewModelBase","_props","isArriveBase","SystemTimestampType","ArriveBase","isArriveBedsideReceiving","ArriveBedsideReceiving","isArriveDropoff","ArriveDropoff","isArriveDropoffLzViaGround","ArriveDropoffLzViaGround","isArrivePatient","ArrivePatient","isArrivePickup","ArrivePickup","isArrivePickupLzViaGround","ArrivePickupLzViaGround","isArriveReceivingViaGround","ArriveReceivingViaGround","isArriveSendingViaGround","ArriveSendingViaGround","isArriveWaypoint","ArriveWaypoint","isAssignmentStarted","AssignmentStarted","isCardClosed","CardClosed","isConfirmedDropoffGround","ConfirmedDropoffGround","isConfirmedPickupGround","ConfirmedPickupGround","isCrewNotificationReceived","CrewNotificationReceived","isCrewNotified","CrewNotified","isCustom","Custom","isDepartBase","DepartBase","isDepartBedsideReceiving","DepartBedsideReceiving","isDepartDropoff","DepartDropoff","isDepartDropoffLzViaGround","DepartDropoffLzViaGround","isDepartPickup","DepartPickup","isDepartPickupLzViaGround","DepartPickupLzViaGround","isDepartReceivingViaGround","DepartReceivingViaGround","isDepartSendingViaGround","DepartSendingViaGround","isDepartWaypoint","DepartWaypoint","isDepartWithPatient","DepartWithPatient","isEmsReport","EmsReport","isEnRouteToPatient","EnRouteToPatient","isEnRouteToPickup","EnRouteToPickup","isEtaProvided","EtaProvided","isExternalActionCancellationRequested","ExternalActionCancellationRequested","isExternalActionRemoveStandby","ExternalActionRemoveStandby","isExternalRequestDisregarded","ExternalRequestDisregarded","isFboConfirmed","FboConfirmed","isInitialDeparture","InitialDeparture","isManifestConfirmed","ManifestConfirmed","isMedicalControlContactAttempted","MedicalControlContactAttempted","isOperationCancelled","OperationCancelled","isOperationCompleted","OperationCompleted","isOverheadDropoff","OverheadDropoff","isOverheadPickup","OverheadPickup","isPaipEvent","PaipEvent","isPatientInfoMessageSent","PatientInfoMessageSent","isPlacedOnStandby","PlacedOnStandby","isReceivingFacilityRequestAccepted","ReceivingFacilityRequestAccepted","isReceivingFacilityRequestCancelled","ReceivingFacilityRequestCancelled","isReceivingFacilityRequestDenied","ReceivingFacilityRequestDenied","isReceivingFacilityRequestDiverted","ReceivingFacilityRequestDiverted","isReceivingFacilityRequestReferred","ReceivingFacilityRequestReferred","isReferRequest","ReferRequest","isRequestCancelled","RequestCancelled","isRequestReactivated","RequestReactivated","isRequestReceived","RequestReceived","isResendToDW","ResendToDW","isSentToImageTrend","SentToImageTrend","isStandbyRemoved","StandbyRemoved","isTransportCheckInitiated","TransportCheckInitiated","isUnitAborted","UnitAborted","isUnitActivated","UnitActivated","isUnitAssigned","UnitAssigned","isUnitOffered","UnitOffered","isWebOrderAcknowledged","WebOrderAcknowledged","isAnySystemTimestampType","includes","toJS","toJSON","_json","selectAllTimestampTypeEntities","state","entityStores","timestampType","entities","selectTimestampTypeById","get","selectTimestampTypeEntitiesByIds","ids","createSelector","selectAllTimestampTypeEntities","entities","entries","map","id","get","Map","TrackedMessageRecord","Record","id","recipientName","recipientAddress","subject","body","fromName","fromAddress","doNotDivert","medium","status","vendorId","vendorMessageId","referenceNumber","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TransferReasonRecord","Record","id","name","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllTransferReasonEntities","state","entityStores","transferReason","entities","selectTransferReasonById","id","get","selectTransferReasonEntitiesByIds","ids","createSelector","selectAllTransferReasonEntities","entities","entries","map","id","get","Map","TransportOfferRecord","Record","id","status","rank","distanceInMiles","bearingInDegrees","estimatedDepartureTimeInMinutes","estimatedTimeEnRouteInMinutes","offerTime","crewNotified","transportCheckInitiated","notificationAcknowledged","responseReceived","response","declineReasonId","declineSecondaryReasonId","nonReferralReasonId","nonReferralReasonNotes","cancellationReasonId","cancellationSecondaryReasonId","cancellationReasonNotes","outOfServiceEventId","unitId","vehicleId","agencyLocationId","unitDescription","isReferral","vehicleType","patientOriginatesAtUnit","vehicleCoordinates","homeBaseDistanceInMiles","baseId","preferredRank","notes","wasBulkSkip","onBaseETAInMinutes","isOnDelay","isOneCallAgreement","specialtyTeamETLOInMinutes","specialtyTeamETEInMinutes","isInternalAgency","requestId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","CoordinatesRecord","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TransportOfferViewModelBase","_props","isCancelled","TransportOfferStatus","Cancelled","isCandidate","Candidate","isOffered","Offered","isResponded","Responded","isSkipped","Skipped","isAborted","TransportOfferResponse","Aborted","isAccepted","Accepted","isDeclined","Declined","isPending","Pending","isFixedWing","VehicleType","FixedWing","isGround","Ground","isRotorWing","RotorWing","isUnspecified","Unspecified","isAnyStatus","transportOfferStatus","includes","isAnyResponse","transportOfferResponse","isAnyVehicleType","toJS","toJSON","_json","selectAllTransportOfferEntities","state","entityStores","transportOffer","entities","selectTransportOfferById","get","selectTransportOfferEntitiesByIds","ids","createSelector","selectAllTransportOfferEntities","entities","entries","map","id","get","Map","selectTransportOfferEntitiesByRequestId","requestId","createSelector","selectAllTransportOfferEntities","entities","filter","e","valueSeq","TransportOfferOptionRecord","Record","id","requestedVehicleType","transportOfferAlgorithm","minimumFlightRule","includeCompetitors","includeAbortedUnit","type","requiredCapabilities","requestId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","List","map","o","RequiredCapabilityRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllTransportOfferOptionEntities","state","entityStores","transportOfferOption","entities","selectTransportOfferOptionEntitiesByRequestId","requestId","createSelector","selectAllTransportOfferOptionEntities","entities","filter","e","valueSeq","TransportReasonRecord","Record","id","name","operationType","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TripRecord","Record","id","vehicleId","agencyId","agencyLocationId","calculatedLoadedMiles","gpsLoadedMiles","operationId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TripViewModelBase","_props","toJS","toJSON","_json","TripLegRecord","Record","id","status","sequence","estimatedDistanceInMiles","departingOdometerReading","departingNote","arrivingOdometerReading","arrivingNote","isEmergent","officialEteId","calculatedEteId","endingWaypointId","startingWaypointId","tripId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TripLegViewModelBase","_props","isCancelled","TripLegStatus","Cancelled","isComplete","Complete","isEnRoute","EnRoute","isPlanned","Planned","isAnyStatus","tripLegStatus","includes","toJS","toJSON","_json","TripPassengerRecord","Record","id","name","abbreviation","weightInKg","type","positionName","positionType","notificationAddress","personId","crewMemberId","tripId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TripPassengerViewModelBase","_props","isTypeCoPilot","PassengerType","CoPilot","isPositionTypeCoPilot","UnitPositionType","isCrewMember","CrewMember","isTypeDriver","Driver","isPositionTypeDriver","isEscort","Escort","isGuard","Guard","isTypeOther","Other","isPositionTypeOther","isPatient","Patient","isPilotInCommand","PilotInCommand","isRideAlong","RideAlong","isSpecialyTeamMember","SpecialyTeamMember","isClinician","Clinician","isClinicianTrainee","ClinicianTrainee","isMechanic","Mechanic","isNurse","Nurse","isObserver","Observer","isParamedic","Paramedic","isPilot","Pilot","isPilotTrainee","PilotTrainee","isAnyType","passengerType","includes","isAnyPositionType","unitPositionType","toJS","toJSON","_json","UnitActivationRuleRecord","Record","id","companyId","unitId","operationTypes","missionRoleTypes","maximumDistanceInMiles","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Set","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","UnitEMSystemMappingRecord","Record","id","resourceId","sendGps","divisionName","unitId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllUnitEMSystemMappingEntities","state","entityStores","unitEMSystemMapping","entities","selectUnitEMSystemMappingById","id","get","selectUnitEMSystemMappingEntitiesByIds","ids","createSelector","selectAllUnitEMSystemMappingEntities","entities","entries","map","id","get","Map","UnitRecord","Record","id","name","abbreviation","status","weatherStatus","baseId","isAdministrative","vehicleId","regionId","isHidden","isThirdPartyUnit","etloInMinutes","pilotNotes","lastPilotUpdateTime","lastPilotUpdateById","isExternallyManaged","maximumFlightRule","isOnDelay","plannedAvailableNotes","plannedAvailableTime","isEnabled","isSpare","oemPlacardNumber","primaryOutOfServiceEventId","emSystemResourceId","integrations","onBaseETAInMinutes","completeFlightInstanceId","parentUnitId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","Set","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","UnitViewModelBase","_props","isAvailable","UnitStatus","Available","isCommitted","Committed","isOnStandby","OnStandby","isOutOfService","OutOfService","isPartiallyAvailable","PartiallyAvailable","isGreen","WeatherStatus","Green","isRed","Red","isUnspecified","Unspecified","isYellow","Yellow","isIfr","FlightRule","Ifr","isNone","None","isVfr","Vfr","isAnyStatus","unitStatus","includes","isAnyWeatherStatus","isAnyMaximumFlightRule","flightRule","toJS","toJSON","_json","selectAllUnitEntities","state","entityStores","unit","entities","selectUnitById","get","selectUnitEntitiesByIds","ids","createSelector","selectAllUnitEntities","entities","entries","map","id","get","Map","selectUnitEntitiesByCompanyId","companyId","createSelector","selectAllUnitEntities","entities","filter","e","valueSeq","UnitNoteRecord","Record","id","content","noteTime","authorId","noteCategory","noteMetadataJson","unitId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","UnitPositionRecord","Record","id","name","type","isFlightCrew","isNonEmployee","notificationAddress","teamMemberId","firstName","lastName","unitId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","UnitShiftRecord","Record","id","name","startTimeInMinutes","endTimeInMinutes","unitId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","UnitStatusHistoryEntryRecord","Record","id","startTime","endTime","status","unitId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","VehicleDispositionRecord","Record","id","vehicleId","status","currentWaypointId","currentTripLegId","currentTripId","lastTripId","currentAgencyLocationId","notes","isAssetOutOfService","lastQualifyingPositionReportTime","latitude","longitude","etlo","statusDescription","from","to","positionTime","positionSource","latestPositionReportId","latestFlightFollowingReportId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","WaypointSummaryRecord","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","VehicleDispositionViewModelBase","_props","isAtWaypoint","VehicleStatus","AtWaypoint","isEnRoute","EnRoute","isGpsAuto","PositionReportSource","GpsAuto","isGpsManual","GpsManual","isPilot","Pilot","isTCS","TCS","isAnyStatus","vehicleStatus","includes","isAnyPositionSource","positionReportSource","toJS","toJSON","_json","selectAllVehicleDispositionEntities","state","entityStores","vehicleDisposition","entities","selectVehicleDispositionById","get","selectVehicleDispositionEntitiesByIds","ids","createSelector","selectAllVehicleDispositionEntities","entities","entries","map","id","get","Map","WaypointRecord","Record","id","name","abbreviation","type","address","timezoneCd","isRotorWingLz","arrivalTime","departureTime","locationId","isPatientPickup","isPatientDropoff","arrivingType","estimatedDurationId","currentEtaId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","AddressRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","WaypointViewModelBase","_props","isTypeDropoffTeam","WaypointType","DropoffTeam","isArrivingTypeDropoffTeam","isTypeEnRouteDiversion","EnRouteDiversion","isArrivingTypeEnRouteDiversion","isTypeFuelLocation","FuelLocation","isArrivingTypeFuelLocation","isTypeOther","Other","isArrivingTypeOther","isTypePatientDropoffRendezvous","PatientDropoffRendezvous","isArrivingTypePatientDropoffRendezvous","isTypePatientPickupRendezvous","PatientPickupRendezvous","isArrivingTypePatientPickupRendezvous","isTypePickupTeam","PickupTeam","isArrivingTypePickupTeam","isTypePost","Post","isArrivingTypePost","isTypePublicRelationsSite","PublicRelationsSite","isArrivingTypePublicRelationsSite","isTypeReceivingFacility","ReceivingFacility","isArrivingTypeReceivingFacility","isTypeRendezvousPoint","RendezvousPoint","isArrivingTypeRendezvousPoint","isTypeSceneLocation","SceneLocation","isArrivingTypeSceneLocation","isTypeSendingFacility","SendingFacility","isArrivingTypeSendingFacility","isAnyType","waypointType","includes","isAnyArrivingType","toJS","toJSON","_json","selectAllWaypointEntities","state","entityStores","waypoint","entities","selectWaypointById","get","selectWaypointEntitiesByIds","ids","createSelector","selectAllWaypointEntities","entities","entries","map","id","get","Map","WebOrderLogEntityChangesRecord","Record","id","entityType","fieldName","oldValue","newValue","fromJS","json","Error","getFromOrThrow","j","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","WebOrderLogRecord","Record","id","requestJson","name","isSuccess","errors","entityId","entityType","changes","dateAcknowledged","acknowledgedById","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","List","map","o","WebOrderLogEntityChangesRecord","Date","fromJSUnsafe","tryOrDefault","err","push","constructor","props","selectAllWebOrderLogEntities","state","entityStores","webOrderLog","entities","selectWebOrderLogEntitiesByEntityId","entityId","createSelector","selectAllWebOrderLogEntities","entities","filter","e","valueSeq","AgencyRecord","Record","id","name","abbreviation","type","isCompetitor","parentCompanyId","notes","isInternallyOwned","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllAgencyEntities","state","entityStores","agency","entities","selectAgencyById","id","get","selectAgencyEntitiesByIds","ids","createSelector","selectAllAgencyEntities","entities","entries","map","id","get","Map","AgencyLocationRecord","Record","id","name","emailAddress","primaryPhoneNumber","secondaryPhoneNumber","smsPhoneNumber","faxPhoneNumber","notes","vehicleType","estimatedDepartureTimeInMinutes","locationId","agencyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllAgencyLocationEntities","state","entityStores","agencyLocation","entities","selectAgencyLocationById","id","get","selectAgencyLocationEntitiesByIds","ids","createSelector","selectAllAgencyLocationEntities","entities","entries","map","id","get","Map","AirportRecord","Record","id","name","abbreviation","code","airportType","airportCodeType","sourceSystemId","preferredFboId","locationId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","AirportViewModelBase","_props","isFAA","AirportCodeType","FAA","isIATA","IATA","isICAO","ICAO","isAnyAirportCodeType","includes","toJS","toJSON","_json","selectAllAirportEntities","state","entityStores","airport","entities","selectAirportById","get","selectAirportEntitiesByIds","ids","createSelector","selectAllAirportEntities","entities","entries","map","id","get","Map","ArchiveLogRecord","Record","id","archiveEntityType","archivedUntilDate","isError","notes","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllArchiveLogEntities","state","entityStores","archiveLog","entities","BaseControlZoneRecord","Record","id","controlZoneId","baseId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllBaseControlZoneEntities","state","entityStores","baseControlZone","entities","selectBaseControlZoneEntitiesByControlZoneId","controlZoneId","createSelector","selectAllBaseControlZoneEntities","entities","filter","e","valueSeq","selectBaseControlZoneEntitiesByCompanyId","companyId","createSelector","selectAllBaseControlZoneEntities","entities","filter","e","valueSeq","HoursOfOperationRecord","Record","is24Hours","startTime","endTime","fromJS","json","Error","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","BaseRecord","Record","id","name","abbreviation","locationId","plannedOperationsStart","operationsStarted","operationsTerminated","dateOfMaturity","primaryPhoneNumber","hoursOfOperation","businessModel","estimatedLiftoffTime","licenseNumber","enableFlightLogDutyLog","dispatchBaseId","aviationCompanyId","workdayBaseId","gmrWorkdayLocationId","dateLastUpdatedFromGMRWorkday","pilotPhoneNumber","crewPhoneNumber1","crewPhoneNumber2","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","HoursOfOperationRecord","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","BaseViewModelBase","_props","isCommunity","BusinessModel","Community","isGround","Ground","isTraditional","Traditional","isUnspecified","Unspecified","isAnyBusinessModel","includes","toJS","toJSON","_json","selectAllBaseEntities","state","entityStores","base","entities","selectBaseById","get","selectBaseEntitiesByIds","ids","createSelector","selectAllBaseEntities","entities","entries","map","id","get","Map","BaseMedicalControlContactRecord","Record","id","personId","rank","specialty","baseId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllBaseMedicalControlContactEntities","state","entityStores","baseMedicalControlContact","entities","selectBaseMedicalControlContactById","id","get","selectBaseMedicalControlContactEntitiesByIds","ids","createSelector","selectAllBaseMedicalControlContactEntities","entities","entries","map","id","get","Map","BaseMedicalControlContactStateRecord","Record","id","stateAbbrevation","baseMedicalControlContactId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","CapabilityRecord","Record","id","name","abbreviation","description","entityType","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllCapabilityEntities","state","entityStores","capability","entities","selectCapabilityById","id","get","selectCapabilityEntitiesByIds","ids","createSelector","selectAllCapabilityEntities","entities","entries","map","id","get","Map","selectCapabilityEntitiesByEntityType","entityType","createSelector","selectAllCapabilityEntities","entities","filter","e","valueSeq","CommunicationCenterRecord","Record","id","name","timezoneCd","primaryPhoneNumber","emailAddress","states","includeCompetitors","showReferToGmrWarning","playAlertForManualPositionReports","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","List","map","o","String","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","CommunicationCenterViewModelBase","_props","toJS","toJSON","_json","selectAllCommunicationCenterEntities","state","entityStores","communicationCenter","entities","selectCommunicationCenterById","get","selectCommunicationCenterEntitiesByIds","ids","createSelector","selectAllCommunicationCenterEntities","entities","entries","map","id","get","Map","RequiredCapabilityIdListRecord","Record","id","fromJS","json","Error","getFromOrThrow","j","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","CommunicationCenterTransportOfferOptionRecord","Record","id","requestedVehicleType","transportOfferAlgorithm","minimumFlightRule","includeCompetitors","includeAbortedUnit","requiredCapabilities","communicationCenterId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","List","map","o","RequiredCapabilityIdListRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","CompanyRecord","Record","id","name","abbreviation","companyCode","includeCompetitors","hasPrivateUnits","isOemCompany","imageUri","gLCode","gpsFeedResetsPositionReportTime","callNumberPrefix","timezoneCd","flightFollowingFields","requireSkipReasonsForNonCompanyTransportOffers","crewPatientInfoPageNotificationTemplateId","unitRemainsInServiceWithNoVehicle","enableNotificationGroupTypes","transportCheckTimerDurationInMinutes","restrictRiskAnalysisAcknowledgementToOCCRole","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Set","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","CompanyViewModelBase","_props","toJS","toJSON","_json","selectAllCompanyEntities","state","entityStores","company","entities","selectCompanyById","get","selectCompanyEntitiesByIds","ids","createSelector","selectAllCompanyEntities","entities","entries","map","id","get","Map","CompleteFlightInstanceRecord","Record","id","completeFlightInstanceName","url","username","apiKey","isPrimary","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","ControlZoneRecord","Record","id","name","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","ControlZoneViewModelBase","_props","toJS","toJSON","_json","selectAllControlZoneEntities","state","entityStores","controlZone","entities","selectControlZoneById","get","selectControlZoneEntitiesByIds","ids","createSelector","selectAllControlZoneEntities","entities","entries","map","id","get","Map","DepartmentRecord","Record","id","name","code","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllDepartmentEntities","state","entityStores","department","entities","selectDepartmentById","id","get","selectDepartmentEntitiesByIds","ids","createSelector","selectAllDepartmentEntities","entities","entries","map","id","get","Map","EntityCapabilityRecord","Record","id","capabilityId","entityId","entityType","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","ExternalReferenceRecord","Record","id","externalKey","externalSystem","entityId","entityType","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllExternalReferenceEntities","state","entityStores","externalReference","entities","selectExternalReferenceById","id","get","selectExternalReferenceEntitiesByIds","ids","createSelector","selectAllExternalReferenceEntities","entities","entries","map","id","get","Map","FboRecord","Record","id","name","fuelBrand","airportId","fboType","sourceSystemId","locationId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","FboViewModelBase","_props","isFBO","FboType","FBO","isFlightSupportOrganisation","FlightSupportOrganisation","isFuelOnly","FuelOnly","isHandler","Handler","isLineRampEngineering","LineRampEngineering","isSupervisingAgent","SupervisingAgent","isAnyFboType","includes","toJS","toJSON","_json","selectAllFboEntities","state","entityStores","fbo","entities","selectFboById","get","selectFboEntitiesByIds","ids","createSelector","selectAllFboEntities","entities","entries","map","id","get","Map","FuelTankRecord","Record","id","code","name","operationsStarted","operationsEnded","locationId","sourceSystemId","baseId","locationName","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllFuelTankEntities","state","entityStores","fuelTank","entities","selectFuelTankById","id","get","selectFuelTankEntitiesByIds","ids","createSelector","selectAllFuelTankEntities","entities","entries","map","id","get","Map","LocationRecord","Record","id","name","abbreviation","locationType","address","timezoneCd","isRotorWingLz","notes","sourceSystemId","closedDate","duplicateOfId","isLandingZoneOutOfService","landingZoneOutOfServiceNotes","landingZoneOutOfServiceExpirationDate","landingZoneOutOfServiceReasonId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","AddressRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","LocationViewModelBase","_props","isAgency","LocationType","Agency","isAirport","Airport","isBase","Base","isCommunicationsCenter","CommunicationsCenter","isCorporateOffice","CorporateOffice","isFbo","Fbo","isFuelTank","FuelTank","isHangar","Hangar","isLandingZone","LandingZone","isMaintenanceFacility","MaintenanceFacility","isMedicalFacility","MedicalFacility","isRadioTower","RadioTower","isRemoteMaintenanceFacility","RemoteMaintenanceFacility","isUnspecified","Unspecified","isAnyLocationType","includes","toJS","toJSON","_json","selectAllLocationEntities","state","entityStores","location","entities","selectLocationById","get","selectLocationEntitiesByIds","ids","createSelector","selectAllLocationEntities","entities","entries","map","id","get","Map","MedicalFacilityContactRecord","Record","id","name","emailAddress","primaryPhoneNumber","secondaryPhoneNumber","smsPhoneNumber","faxPhoneNumber","notes","medicalFacilityId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","MedicalFacilityContactViewModelBase","_props","toJS","toJSON","_json","selectAllMedicalFacilityContactEntities","state","entityStores","medicalFacilityContact","entities","selectMedicalFacilityContactById","get","selectMedicalFacilityContactEntitiesByIds","ids","createSelector","selectAllMedicalFacilityContactEntities","entities","entries","map","id","get","Map","selectMedicalFacilityContactEntitiesByMedicalFacilityId","medicalFacilityId","createSelector","selectAllMedicalFacilityContactEntities","entities","filter","e","valueSeq","MedicalFacilityRecord","Record","id","name","abbreviation","npi","providerNumber","sourceSystemId","masterDataSetId","firmType","hospitalType","hospitalSpecialization","website","defaultLandingZoneId","defaultFixedWingLandingZoneId","notes","stateSourceSystemId","nemsisCode","stateFacilityName","status","archiveNotes","archiveClearedDate","locationId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","MedicalFacilityViewModelBase","_props","isApproved","MedicalFacilityStatus","Approved","isArchived","Archived","isDuplicate","Duplicate","isPendingApproval","PendingApproval","isPendingArchive","PendingArchive","isAnyStatus","medicalFacilityStatus","includes","toJS","toJSON","_json","selectAllMedicalFacilityEntities","state","entityStores","medicalFacility","entities","selectMedicalFacilityById","get","selectMedicalFacilityEntitiesByIds","ids","createSelector","selectAllMedicalFacilityEntities","entities","entries","map","id","get","Map","MedicalFacilityPhysicianRecord","Record","id","physicianId","medicalFacilityId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllMedicalFacilityPhysicianEntities","state","entityStores","medicalFacilityPhysician","entities","selectMedicalFacilityPhysicianById","id","get","selectMedicalFacilityPhysicianEntitiesByIds","ids","createSelector","selectAllMedicalFacilityPhysicianEntities","entities","entries","map","id","get","Map","MedicalFacilityUnitRecord","Record","id","name","phoneNumber","medicalFacilityId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllMedicalFacilityUnitEntities","state","entityStores","medicalFacilityUnit","entities","selectMedicalFacilityUnitById","id","get","selectMedicalFacilityUnitEntitiesByIds","ids","createSelector","selectAllMedicalFacilityUnitEntities","entities","entries","map","id","get","Map","MedicalUnitRecord","Record","id","name","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TcsRealtimeTrackingRecord","Record","tabId","tabDate","fromJS","json","Error","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","UserApplicationSettingsRecord","Record","tcsRealtimeTracking","fromJS","json","Error","TcsRealtimeTrackingRecord","getFromOrThrow","j","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","PersonRecord","Record","id","firstName","lastName","email","title","employeeId","employeeType","timeType","hireDate","terminationDate","departmentId","reportsToPersonId","baseId","locationId","programId","activeDirectoryId","activateOktaAccount","grantTcsAccess","notificationAddress","userRoles","allCompaniesAccessible","allBasesAccessible","allTrmProgramsAccessible","allCommunicationCentersAccessible","faaCompanyId","dispatchCompanyId","aviationCompanyId","primaryCommunicationCenterId","isOutOfFlightCompliance","outOfFlightComplianceComment","dateLastUpdatedFromGMRWorkday","appSettings","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","Set","UserApplicationSettingsRecord","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","PersonViewModelBase","_props","isContingent","EmployeeType","Contingent","isNonEmployee","NonEmployee","isPrn","Prn","isRegular","Regular","isTemporary","Temporary","isEmployeeTypeUnspecified","Unspecified","isTimeTypeUnspecified","TimeType","isFullTime","FullTime","isPartTime","PartTime","isAnyEmployeeType","includes","isAnyTimeType","toJS","toJSON","_json","selectAllPersonEntities","state","entityStores","person","entities","selectPersonById","get","selectPersonEntitiesByIds","ids","createSelector","selectAllPersonEntities","entities","entries","map","id","get","Map","PhysicianRecord","Record","id","firstName","lastName","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllPhysicianEntities","state","entityStores","physician","entities","selectPhysicianById","id","get","selectPhysicianEntitiesByIds","ids","createSelector","selectAllPhysicianEntities","entities","entries","map","id","get","Map","ProgramBaseRecord","Record","id","startTime","endTime","baseId","programId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","ProgramRecord","Record","id","name","abbreviation","code","adminId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllProgramEntities","state","entityStores","program","entities","selectProgramById","id","get","selectProgramEntitiesByIds","ids","createSelector","selectAllProgramEntities","entities","entries","map","id","get","Map","selectProgramEntitiesByCompanyId","companyId","createSelector","selectAllProgramEntities","entities","filter","e","valueSeq","RamcoVehicleConfigurationRecord","Record","id","maintenanceSystemId","tailNumber","modelNumber","companyCode","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RegionBaseRecord","Record","id","baseId","regionId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RegionRecord","Record","id","name","abbreviation","timezoneCd","emSystemDivisionName","dispatchNumber","communicationCenterId","isTransferCenterRegion","fixedWingPreferredThresholdInNauticalMiles","regionGroupId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","RegionViewModelBase","_props","toJS","toJSON","_json","selectAllRegionEntities","state","entityStores","region","entities","selectRegionById","get","selectRegionEntitiesByIds","ids","createSelector","selectAllRegionEntities","entities","entries","map","id","get","Map","selectRegionEntitiesByCompanyId","companyId","createSelector","selectAllRegionEntities","entities","filter","e","valueSeq","RegionGroupRecord","Record","id","name","abbreviation","departmentId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllRegionGroupEntities","state","entityStores","regionGroup","entities","selectRegionGroupById","id","get","selectRegionGroupEntitiesByIds","ids","createSelector","selectAllRegionGroupEntities","entities","entries","map","id","get","Map","SpecialtyTeamRecord","Record","id","name","affiliationId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllSpecialtyTeamEntities","state","entityStores","specialtyTeam","entities","selectSpecialtyTeamById","id","get","selectSpecialtyTeamEntitiesByIds","ids","createSelector","selectAllSpecialtyTeamEntities","entities","entries","map","id","get","Map","SpecialtyTeamMemberRecord","Record","id","specialtyTeamId","teamMemberId","weightInKg","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllSpecialtyTeamMemberEntities","state","entityStores","specialtyTeamMember","entities","selectSpecialtyTeamMemberById","id","get","selectSpecialtyTeamMemberEntitiesByIds","ids","createSelector","selectAllSpecialtyTeamMemberEntities","entities","entries","map","id","get","Map","SupportRequestRecord","Record","id","subject","content","supportRequestType","isEmailSent","supportRequestStatus","personId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllSupportRequestEntities","state","entityStores","supportRequest","entities","selectSupportRequestById","id","get","selectSupportRequestEntitiesByIds","ids","createSelector","selectAllSupportRequestEntities","entities","entries","map","id","get","Map","TimezoneRecord","Record","id","name","abbreviation","code","isDst","utcOffset","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TimezoneViewModelBase","_props","toJS","toJSON","_json","selectAllTimezoneEntities","state","entityStores","timezone","entities","selectTimezoneById","get","selectTimezoneEntitiesByIds","ids","createSelector","selectAllTimezoneEntities","entities","entries","map","id","get","Map","selectTimezoneEntitiesByCode","code","createSelector","selectAllTimezoneEntities","entities","filter","e","valueSeq","TransferCenterRecord","Record","id","name","description","communicationCenterId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllTransferCenterEntities","state","entityStores","transferCenter","entities","selectTransferCenterById","id","get","selectTransferCenterEntitiesByIds","ids","createSelector","selectAllTransferCenterEntities","entities","entries","map","id","get","Map","selectTransferCenterEntitiesByCommunicationCenterId","communicationCenterId","createSelector","selectAllTransferCenterEntities","entities","filter","e","valueSeq","TrmUserAgencyRecord","Record","id","trmUserId","agencyId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TrmUserRecord","Record","id","personId","emailAddress","firstName","lastName","phoneNumber","userStatus","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TrmUserMedicalFacilityRecord","Record","id","trmUserId","medicalFacilityId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","TrmUserProgramRecord","Record","id","trmUserId","programId","isPreferred","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","VehicleControlZoneRecord","Record","id","controlZoneId","vehicleId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllVehicleControlZoneEntities","state","entityStores","vehicleControlZone","entities","selectVehicleControlZoneEntitiesByControlZoneId","controlZoneId","createSelector","selectAllVehicleControlZoneEntities","entities","filter","e","valueSeq","selectVehicleControlZoneEntitiesByCompanyId","companyId","createSelector","selectAllVehicleControlZoneEntities","entities","filter","e","valueSeq","VehicleRecord","Record","id","type","serialNumber","registrationNumber","dispatchCompanyId","year","isUnderLease","role","dateAcquired","makeId","modelId","cruiseSpeed","configurationClassId","isThirdPartyVehicle","parentUnitId","isHidden","faaCompanyId","flightLogProcess","isPlaceholder","skytracIMEI","phoneNumber","stateInspectionRequired","completeFlightId","controlZoneId","communicationCenterId","regionId","isRetired","isPositionTrackingEnabled","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","VehicleViewModelBase","_props","isFixedWing","VehicleType","FixedWing","isGround","Ground","isRotorWing","RotorWing","isTypeUnspecified","Unspecified","isRoleUnspecified","VehicleRole","isPrimary","Primary","isSpare","Spare","isSupport","Support","isExternal","FlightLogProcess","External","isFlightLogDynamic","FlightLogDynamic","isFlightLogStatic","FlightLogStatic","isPstStatic","PstStatic","isAnyType","vehicleType","includes","isAnyRole","vehicleRole","isAnyFlightLogProcess","toJS","toJSON","_json","selectAllVehicleEntities","state","entityStores","vehicle","entities","selectVehicleById","get","selectVehicleEntitiesByIds","ids","createSelector","selectAllVehicleEntities","entities","entries","map","id","get","Map","EngineParametersRecord","Record","time","starts","fromJS","json","Error","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","MaintenanceParametersRecord","Record","endingHobbs","airframeTime","totalLandings","engine1","engine2","fromJS","json","Error","EngineParametersRecord","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","DeferralDueDateRecord","Record","id","dueDate","triggerValue","notes","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","NextDueRecord","Record","id","typeId","cycleType","value","triggerValue","notes","inTolerance","fromJS","json","Error","getFromOrThrow","j","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","VehicleMaintenanceRecord","Record","id","maintenanceParams","deferralDueDates","nextDues","notes","isReleasedFromOCF","vehicleId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","MaintenanceParametersRecord","List","map","o","DeferralDueDateRecord","NextDueRecord","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllVehicleMaintenanceEntities","state","entityStores","vehicleMaintenance","entities","selectVehicleMaintenanceById","id","get","selectVehicleMaintenanceEntitiesByIds","ids","createSelector","selectAllVehicleMaintenanceEntities","entities","entries","map","id","get","Map","VehicleMakeRecord","Record","id","name","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","VehicleMakeViewModelBase","_props","toJS","toJSON","_json","selectAllVehicleMakeEntities","state","entityStores","vehicleMake","entities","selectVehicleMakeById","get","selectVehicleMakeEntitiesByIds","ids","createSelector","selectAllVehicleMakeEntities","entities","entries","map","id","get","Map","VehicleModelRecord","Record","id","name","cruiseSpeedInMph","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","VehicleModelViewModelBase","_props","toJS","toJSON","_json","selectAllVehicleModelEntities","state","entityStores","vehicleModel","entities","selectVehicleModelById","get","selectVehicleModelEntitiesByIds","ids","createSelector","selectAllVehicleModelEntities","entities","entries","map","id","get","Map","VehicleStateInspectionRecord","Record","id","stateAbbrevation","inspectionDate","vehicleId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","selectAllVehicleStateInspectionEntities","state","entityStores","vehicleStateInspection","entities","selectVehicleStateInspectionById","id","get","selectVehicleStateInspectionEntitiesByIds","ids","createSelector","selectAllVehicleStateInspectionEntities","entities","entries","map","id","get","Map","ActiveCardUnitOfferingRecord","Record","id","cardId","unitId","companyId","dateLastUpdated","dateCreated","dateDeleted","lastUpdatedById","fromJS","json","Error","getFromOrThrow","j","Date","fromJSUnsafe","errors","tryOrDefault","err","push","constructor","props","revive","state","type","ActivationRuleRecord","fromJS","ActiveAlertRecord","ActiveTimelineRecord","AlertRecord","ApplicationNotificationRecord","AssignmentDelayedReasonRecord","CancellationCategoryRecord","CancellationReasonRecord","CancellationSecondaryReasonRecord","CardRecord","CardLinkRecord","CardNoteArchiveRecord","CardNoteRecord","CardReOpenReasonRecord","CardSummaryRecord","ConfigurationSettingRecord","DeclineCategoryRecord","DeclineReasonRecord","DeclineSecondaryReasonRecord","DiversionReasonRecord","EscortRequestRecord","EstimatedDurationRecord","EtaRecord","ExternalActionRecord","ExternalActionTypeRecord","ExternalSystemUnitRecord","FacilityNonAcceptanceReasonRecord","FirewallRuleRecord","FlightFollowingReportRecord","LandingZoneOutOfServiceReasonRecord","LocationHazardAttachmentRecord","LocationHazardRecord","ManifestEntryRecord","MedicalControlContactLogEntryRecord","MessageStatusUpdateRecord","NextDueTypeRecord","NonReferralReasonRecord","NotificationRecord","NotificationGroupRecord","NotificationGroupMemberRecord","NotificationRecipientRecord","NotificationSubscriptionRecord","NotificationTemplateRecord","OemActivityRecord","OemAssetRecord","OemPlanChangeRequestRecord","OemPlanRecord","OfferAlgorithmRecord","OperationRecord","OutOfServiceEventRecord","OutOfServiceEventNoteRecord","OutOfServiceReasonRecord","OutOfServiceSecondaryReasonRecord","PassdownLogAcknowledgementRecord","PassdownLogRecord","PatientRecord","PositionReportAlertRecord","PositionReportArchiveRecord","PositionReportRecord","QuestionChoiceRecord","QuestionRecord","QuestionnaireRecord","QuestionnaireQuestionResponseRecord","QuestionnaireQuestionResponseNoteRecord","QuestionnaireResponseRecord","QuestionnaireSectionRecord","QuestionnaireSectionQuestionRecord","ReceivingFacilityRequestRecord","RendezvousRequestRecord","RequestRecord","RequesterRecord","RequesterReferralReasonRecord","RequesterRoleRecord","RequestLocationRecord","RequestPatientRecord","SystemTimerRecord","TimelineRecord","TimelineItemRecord","TimestampRecord","TimestampTypeRecord","TrackedMessageRecord","TransferReasonRecord","TransportOfferRecord","TransportOfferOptionRecord","TransportReasonRecord","TripRecord","TripLegRecord","TripPassengerRecord","UnitActivationRuleRecord","UnitEMSystemMappingRecord","UnitRecord","UnitNoteRecord","UnitPositionRecord","UnitShiftRecord","UnitStatusHistoryEntryRecord","UnitSummaryRecord","VehicleDispositionRecord","VehicleSummaryRecord","WaypointRecord","WebOrderLogRecord","AccessibleItemRecord","AgencyRecord","AgencyLocationRecord","AirportRecord","ArchiveLogRecord","BaseControlZoneRecord","BaseRecord","BaseMedicalControlContactRecord","BaseMedicalControlContactStateRecord","CapabilityRecord","CommunicationCenterRecord","CommunicationCenterTransportOfferOptionRecord","CompanyRecord","CompleteFlightInstanceRecord","ControlZoneRecord","DepartmentRecord","EntityCapabilityRecord","ExternalReferenceRecord","FboRecord","FuelTankRecord","LocationRecord","MedicalFacilityContactRecord","MedicalFacilityRecord","MedicalFacilityPhysicianRecord","MedicalFacilityUnitRecord","MedicalUnitRecord","PersonRecord","PhysicianRecord","ProgramBaseRecord","ProgramRecord","RamcoVehicleConfigurationRecord","RegionBaseRecord","RegionRecord","RegionGroupRecord","SpecialtyTeamRecord","SpecialtyTeamMemberRecord","SupportRequestRecord","TimezoneRecord","TransferCenterRecord","TrmUserAgencyRecord","TrmUserRecord","TrmUserMedicalFacilityRecord","TrmUserProgramRecord","VehicleControlZoneRecord","VehicleRecord","VehicleMaintenanceRecord","VehicleMakeRecord","VehicleModelRecord","VehicleStateInspectionRecord","ActiveCardUnitOfferingRecord","VehiclePositionSummaryRecord","reviveUnsafe","fromJSUnsafe","undefined","Error","isObject","obj","type","isEntity","val","idVal","id","trim","length","typenameVal","__typename","TcsEntityType","_flattenEntities","result","selfEntity","push","Object","keys","reduce","flattened","key","propVal","Array","forEach","item","flattenedItem","innerFlat","flattenEntities","Error","cloneDeep","StoreService","constructor","store","_log","upsertEntitiesFromQuery","query","variables","queryOptions","isCancellable","_upsertEntitiesFromGraphQL","upsertEntitiesFromGraphQL","logPrefix","watch","valueChanges","fetch","pipe","filter","r","loading","tap","result","data","error","errors","message","Error","_upsertNestedJs","err","console","queryStr","print","document","createSafeProps","take","upsertFromPubNub","entities","snapshots","success","i","length","snapshot","source","push","key","type","record","reviveUnsafe","state","id","forEach","dispatch","EntitiesReceived","upsertEntities","entityJs","revive","__typename","upsertEntityRecords","entityRecords","typeName","entityRecord","flattened","flattenEntities","ɵɵinject","Store","Logger","factory","ɵfac","providedIn","EntityStatus","EntityMeta","Record","status","None","dateLoaded","dateFetched","markAsLoaded","withMutations","s","Loaded","Date","markAsFetching","Fetching","markAsRequested","Requested","EntityStore","entities","Map","meta","getFetchPolicyOrDefault","options","defaultPolicy","fetchPolicy","EntityFetchService","constructor","_networkCache","cacheFactory","cache","getByIds","ids","uniq","length","of","Seq","Indexed","_getManyFromNetwork","pipe","switchMap","_getManyFromCache","map","d","valueSeq","filter","v","fromCache","missingIds","c","keySeq","toArray","cacheResult","e","shareReplaySafe","fromNetwork","mapEntries","id","cached","cacheOrNetwork","find","nr","getById","_getFromNetworkCached","_getFromCache","distinctUntilChanged","queryOptions","networkResult","get","_getFromNetwork","catchError","err","delete","throwError","tap","set","ClientSyncFetchService","_getByIdQuery","_getByIdsQuery","_store","_selectByIdFactory","_selectManyFactory","_recordFactory","fetch","__spreadProps","__spreadValues","r","loading","Object","values","data","byId","_updateCache","getMany","cacheSelector","getIdsFallback","extras","store","select","entities","count","networkResults","upsertEntities","byIds","ActivationRuleEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectActivationRuleById","selectActivationRuleEntitiesByIds","ActivationRuleRecord","fromJS","ɵɵinject","FetchActivationRuleByIdGQL","FetchActivationRuleByIdsGQL","StoreService","factory","ɵfac","providedIn","ActiveAlertEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectActiveAlertById","selectActiveAlertEntitiesByIds","ActiveAlertRecord","fromJS","ɵɵinject","FetchActiveAlertByIdGQL","FetchActiveAlertByIdsGQL","StoreService","factory","ɵfac","providedIn","AlertEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectAlertById","selectAlertEntitiesByIds","AlertRecord","fromJS","ɵɵinject","FetchAlertByIdGQL","FetchAlertByIdsGQL","StoreService","factory","ɵfac","providedIn","AlertEntityResolver","_fetchService","resolve","route","state","alertId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","alert","take","ApplicationNotificationEntityFetchService","selectApplicationNotificationById","selectApplicationNotificationEntitiesByIds","ApplicationNotificationRecord","FetchApplicationNotificationByIdGQL","FetchApplicationNotificationByIdsGQL","ApplicationNotificationEntityResolver","applicationNotificationId","applicationNotification","AssignmentDelayedReasonEntityFetchService","selectAssignmentDelayedReasonById","selectAssignmentDelayedReasonEntitiesByIds","AssignmentDelayedReasonRecord","FetchAssignmentDelayedReasonByIdGQL","FetchAssignmentDelayedReasonByIdsGQL","CancellationCategoryEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectCancellationCategoryById","selectCancellationCategoryEntitiesByIds","CancellationCategoryRecord","fromJS","ɵɵinject","FetchCancellationCategoryByIdGQL","FetchCancellationCategoryByIdsGQL","StoreService","factory","ɵfac","providedIn","CancellationCategoryEntityResolver","_fetchService","resolve","route","state","cancellationCategoryId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","cancellationCategory","take","CancellationReasonEntityFetchService","selectCancellationReasonById","selectCancellationReasonEntitiesByIds","CancellationReasonRecord","FetchCancellationReasonByIdGQL","FetchCancellationReasonByIdsGQL","CancellationReasonEntityResolver","cancellationReasonId","cancellationReason","CardEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectCardById","selectCardEntitiesByIds","CardRecord","fromJS","ɵɵinject","FetchCardByIdGQL","FetchCardByIdsGQL","StoreService","factory","ɵfac","providedIn","CardReOpenReasonEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectCardReOpenReasonById","selectCardReOpenReasonEntitiesByIds","CardReOpenReasonRecord","fromJS","ɵɵinject","FetchCardReOpenReasonByIdGQL","FetchCardReOpenReasonByIdsGQL","StoreService","factory","ɵfac","providedIn","CardReOpenReasonEntityResolver","_fetchService","resolve","route","state","cardReOpenReasonId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","cardReOpenReason","take","CardSummaryEntityFetchService","selectCardSummaryById","selectCardSummaryEntitiesByIds","CardSummaryRecord","FetchCardSummaryByIdGQL","FetchCardSummaryByIdsGQL","DeclineCategoryEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectDeclineCategoryById","selectDeclineCategoryEntitiesByIds","DeclineCategoryRecord","fromJS","ɵɵinject","FetchDeclineCategoryByIdGQL","FetchDeclineCategoryByIdsGQL","StoreService","factory","ɵfac","providedIn","DeclineCategoryEntityResolver","_fetchService","resolve","route","state","declineCategoryId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","declineCategory","take","DeclineReasonEntityFetchService","selectDeclineReasonById","selectDeclineReasonEntitiesByIds","DeclineReasonRecord","FetchDeclineReasonByIdGQL","FetchDeclineReasonByIdsGQL","DeclineReasonEntityResolver","declineReasonId","declineReason","DiversionReasonEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectDiversionReasonById","selectDiversionReasonEntitiesByIds","DiversionReasonRecord","fromJS","ɵɵinject","FetchDiversionReasonByIdGQL","FetchDiversionReasonByIdsGQL","StoreService","factory","ɵfac","providedIn","DiversionReasonEntityResolver","_fetchService","resolve","route","state","diversionReasonId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","diversionReason","take","ExternalActionEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectExternalActionById","selectExternalActionEntitiesByIds","ExternalActionRecord","fromJS","ɵɵinject","FetchExternalActionByIdGQL","FetchExternalActionByIdsGQL","StoreService","factory","ɵfac","providedIn","ExternalActionTypeEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectExternalActionTypeById","selectExternalActionTypeEntitiesByIds","ExternalActionTypeRecord","fromJS","ɵɵinject","FetchExternalActionTypeByIdGQL","FetchExternalActionTypeByIdsGQL","StoreService","factory","ɵfac","providedIn","FacilityNonAcceptanceReasonEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectFacilityNonAcceptanceReasonById","selectFacilityNonAcceptanceReasonEntitiesByIds","FacilityNonAcceptanceReasonRecord","fromJS","ɵɵinject","FetchFacilityNonAcceptanceReasonByIdGQL","FetchFacilityNonAcceptanceReasonByIdsGQL","StoreService","factory","ɵfac","providedIn","FacilityNonAcceptanceReasonEntityResolver","_fetchService","resolve","route","state","facilityNonAcceptanceReasonId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","facilityNonAcceptanceReason","take","FirewallRuleEntityFetchService","selectFirewallRuleById","selectFirewallRuleEntitiesByIds","FirewallRuleRecord","FetchFirewallRuleByIdGQL","FetchFirewallRuleByIdsGQL","FirewallRuleEntityResolver","firewallRuleId","firewallRule","FlightFollowingReportEntityFetchService","selectFlightFollowingReportById","selectFlightFollowingReportEntitiesByIds","FlightFollowingReportRecord","FetchFlightFollowingReportByIdGQL","FetchFlightFollowingReportByIdsGQL","LandingZoneOutOfServiceReasonEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectLandingZoneOutOfServiceReasonById","selectLandingZoneOutOfServiceReasonEntitiesByIds","LandingZoneOutOfServiceReasonRecord","fromJS","ɵɵinject","FetchLandingZoneOutOfServiceReasonByIdGQL","FetchLandingZoneOutOfServiceReasonByIdsGQL","StoreService","factory","ɵfac","providedIn","LocationHazardEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectLocationHazardById","selectLocationHazardEntitiesByIds","LocationHazardRecord","fromJS","ɵɵinject","FetchLocationHazardByIdGQL","FetchLocationHazardByIdsGQL","StoreService","factory","ɵfac","providedIn","MedicalControlContactLogEntryEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectMedicalControlContactLogEntryById","selectMedicalControlContactLogEntryEntitiesByIds","MedicalControlContactLogEntryRecord","fromJS","ɵɵinject","FetchMedicalControlContactLogEntryByIdGQL","FetchMedicalControlContactLogEntryByIdsGQL","StoreService","factory","ɵfac","providedIn","NonReferralReasonEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectNonReferralReasonById","selectNonReferralReasonEntitiesByIds","NonReferralReasonRecord","fromJS","ɵɵinject","FetchNonReferralReasonByIdGQL","FetchNonReferralReasonByIdsGQL","StoreService","factory","ɵfac","providedIn","NonReferralReasonEntityResolver","_fetchService","resolve","route","state","nonReferralReasonId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","nonReferralReason","take","NotificationEntityFetchService","selectNotificationById","selectNotificationEntitiesByIds","NotificationRecord","FetchNotificationByIdGQL","FetchNotificationByIdsGQL","NotificationGroupEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectNotificationGroupById","selectNotificationGroupEntitiesByIds","NotificationGroupRecord","fromJS","ɵɵinject","FetchNotificationGroupByIdGQL","FetchNotificationGroupByIdsGQL","StoreService","factory","ɵfac","providedIn","NotificationTemplateEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectNotificationTemplateById","selectNotificationTemplateEntitiesByIds","NotificationTemplateRecord","fromJS","ɵɵinject","FetchNotificationTemplateByIdGQL","FetchNotificationTemplateByIdsGQL","StoreService","factory","ɵfac","providedIn","NotificationTemplateEntityResolver","_fetchService","resolve","route","state","notificationTemplateId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","notificationTemplate","take","OfferAlgorithmEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectOfferAlgorithmById","selectOfferAlgorithmEntitiesByIds","OfferAlgorithmRecord","fromJS","ɵɵinject","FetchOfferAlgorithmByIdGQL","FetchOfferAlgorithmByIdsGQL","StoreService","factory","ɵfac","providedIn","OfferAlgorithmEntityResolver","_fetchService","resolve","route","state","offerAlgorithmId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","offerAlgorithm","take","OperationEntityFetchService","selectOperationById","selectOperationEntitiesByIds","OperationRecord","FetchOperationByIdGQL","FetchOperationByIdsGQL","OutOfServiceEventEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectOutOfServiceEventById","selectOutOfServiceEventEntitiesByIds","OutOfServiceEventRecord","fromJS","ɵɵinject","FetchOutOfServiceEventByIdGQL","FetchOutOfServiceEventByIdsGQL","StoreService","factory","ɵfac","providedIn","OutOfServiceReasonEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectOutOfServiceReasonById","selectOutOfServiceReasonEntitiesByIds","OutOfServiceReasonRecord","fromJS","ɵɵinject","FetchOutOfServiceReasonByIdGQL","FetchOutOfServiceReasonByIdsGQL","StoreService","factory","ɵfac","providedIn","OutOfServiceReasonEntityResolver","_fetchService","resolve","route","state","outOfServiceReasonId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","outOfServiceReason","take","PassdownLogEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectPassdownLogById","selectPassdownLogEntitiesByIds","PassdownLogRecord","fromJS","ɵɵinject","FetchPassdownLogByIdGQL","FetchPassdownLogByIdsGQL","StoreService","factory","ɵfac","providedIn","PositionReportEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectPositionReportById","selectPositionReportEntitiesByIds","PositionReportRecord","fromJS","ɵɵinject","FetchPositionReportByIdGQL","FetchPositionReportByIdsGQL","StoreService","factory","ɵfac","providedIn","QuestionEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectQuestionById","selectQuestionEntitiesByIds","QuestionRecord","fromJS","ɵɵinject","FetchQuestionByIdGQL","FetchQuestionByIdsGQL","StoreService","factory","ɵfac","providedIn","QuestionEntityResolver","_fetchService","resolve","route","state","questionId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","question","take","QuestionnaireEntityFetchService","selectQuestionnaireById","selectQuestionnaireEntitiesByIds","QuestionnaireRecord","FetchQuestionnaireByIdGQL","FetchQuestionnaireByIdsGQL","QuestionnaireEntityResolver","questionnaireId","questionnaire","QuestionnaireQuestionResponseEntityFetchService","selectQuestionnaireQuestionResponseById","selectQuestionnaireQuestionResponseEntitiesByIds","QuestionnaireQuestionResponseRecord","FetchQuestionnaireQuestionResponseByIdGQL","FetchQuestionnaireQuestionResponseByIdsGQL","QuestionnaireResponseEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectQuestionnaireResponseById","selectQuestionnaireResponseEntitiesByIds","QuestionnaireResponseRecord","fromJS","ɵɵinject","FetchQuestionnaireResponseByIdGQL","FetchQuestionnaireResponseByIdsGQL","StoreService","factory","ɵfac","providedIn","QuestionnaireSectionQuestionEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectQuestionnaireSectionQuestionById","selectQuestionnaireSectionQuestionEntitiesByIds","QuestionnaireSectionQuestionRecord","fromJS","ɵɵinject","FetchQuestionnaireSectionQuestionByIdGQL","FetchQuestionnaireSectionQuestionByIdsGQL","StoreService","factory","ɵfac","providedIn","ReceivingFacilityRequestEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectReceivingFacilityRequestById","selectReceivingFacilityRequestEntitiesByIds","ReceivingFacilityRequestRecord","fromJS","ɵɵinject","FetchReceivingFacilityRequestByIdGQL","FetchReceivingFacilityRequestByIdsGQL","StoreService","factory","ɵfac","providedIn","RendezvousRequestEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectRendezvousRequestById","selectRendezvousRequestEntitiesByIds","RendezvousRequestRecord","fromJS","ɵɵinject","FetchRendezvousRequestByIdGQL","FetchRendezvousRequestByIdsGQL","StoreService","factory","ɵfac","providedIn","RequestEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectRequestById","selectRequestEntitiesByIds","RequestRecord","fromJS","ɵɵinject","FetchRequestByIdGQL","FetchRequestByIdsGQL","StoreService","factory","ɵfac","providedIn","RequesterEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectRequesterById","selectRequesterEntitiesByIds","RequesterRecord","fromJS","ɵɵinject","FetchRequesterByIdGQL","FetchRequesterByIdsGQL","StoreService","factory","ɵfac","providedIn","TimelineEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectTimelineById","selectTimelineEntitiesByIds","TimelineRecord","fromJS","ɵɵinject","FetchTimelineByIdGQL","FetchTimelineByIdsGQL","StoreService","factory","ɵfac","providedIn","TimelineEntityResolver","_fetchService","resolve","route","state","timelineId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","timeline","take","TimestampTypeEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectTimestampTypeById","selectTimestampTypeEntitiesByIds","TimestampTypeRecord","fromJS","ɵɵinject","FetchTimestampTypeByIdGQL","FetchTimestampTypeByIdsGQL","StoreService","factory","ɵfac","providedIn","TimestampTypeEntityResolver","_fetchService","resolve","route","state","timestampTypeId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","timestampType","take","TransferReasonEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectTransferReasonById","selectTransferReasonEntitiesByIds","TransferReasonRecord","fromJS","ɵɵinject","FetchTransferReasonByIdGQL","FetchTransferReasonByIdsGQL","StoreService","factory","ɵfac","providedIn","TransferReasonEntityResolver","_fetchService","resolve","route","state","transferReasonId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","transferReason","take","TransportOfferEntityFetchService","selectTransportOfferById","selectTransportOfferEntitiesByIds","TransportOfferRecord","FetchTransportOfferByIdGQL","FetchTransportOfferByIdsGQL","UnitEMSystemMappingEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectUnitEMSystemMappingById","selectUnitEMSystemMappingEntitiesByIds","UnitEMSystemMappingRecord","fromJS","ɵɵinject","FetchUnitEMSystemMappingByIdGQL","FetchUnitEMSystemMappingByIdsGQL","StoreService","factory","ɵfac","providedIn","UnitEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectUnitById","selectUnitEntitiesByIds","UnitRecord","fromJS","ɵɵinject","FetchUnitByIdGQL","FetchUnitByIdsGQL","StoreService","factory","ɵfac","providedIn","UnitSummaryEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectUnitSummaryById","selectUnitSummaryEntitiesByIds","UnitSummaryRecord","fromJS","ɵɵinject","FetchUnitSummaryByIdGQL","FetchUnitSummaryByIdsGQL","StoreService","factory","ɵfac","providedIn","VehicleDispositionEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectVehicleDispositionById","selectVehicleDispositionEntitiesByIds","VehicleDispositionRecord","fromJS","ɵɵinject","FetchVehicleDispositionByIdGQL","FetchVehicleDispositionByIdsGQL","StoreService","factory","ɵfac","providedIn","VehicleSummaryEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectVehicleSummaryById","selectVehicleSummaryEntitiesByIds","VehicleSummaryRecord","fromJS","ɵɵinject","FetchVehicleSummaryByIdGQL","FetchVehicleSummaryByIdsGQL","StoreService","factory","ɵfac","providedIn","WaypointEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectWaypointById","selectWaypointEntitiesByIds","WaypointRecord","fromJS","ɵɵinject","FetchWaypointByIdGQL","FetchWaypointByIdsGQL","StoreService","factory","ɵfac","providedIn","AgencyEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectAgencyById","selectAgencyEntitiesByIds","AgencyRecord","fromJS","ɵɵinject","FetchAgencyByIdGQL","FetchAgencyByIdsGQL","StoreService","factory","ɵfac","providedIn","AgencyEntityResolver","_fetchService","resolve","route","state","agencyId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","agency","take","AgencyLocationEntityFetchService","selectAgencyLocationById","selectAgencyLocationEntitiesByIds","AgencyLocationRecord","FetchAgencyLocationByIdGQL","FetchAgencyLocationByIdsGQL","AgencyLocationEntityResolver","agencyLocationId","agencyLocation","AirportEntityFetchService","selectAirportById","selectAirportEntitiesByIds","AirportRecord","FetchAirportByIdGQL","FetchAirportByIdsGQL","AirportEntityResolver","airportId","airport","BaseEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectBaseById","selectBaseEntitiesByIds","BaseRecord","fromJS","ɵɵinject","FetchBaseByIdGQL","FetchBaseByIdsGQL","StoreService","factory","ɵfac","providedIn","BaseEntityResolver","_fetchService","resolve","route","state","baseId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","base","take","BaseMedicalControlContactEntityFetchService","selectBaseMedicalControlContactById","selectBaseMedicalControlContactEntitiesByIds","BaseMedicalControlContactRecord","FetchBaseMedicalControlContactByIdGQL","FetchBaseMedicalControlContactByIdsGQL","CapabilityEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectCapabilityById","selectCapabilityEntitiesByIds","CapabilityRecord","fromJS","ɵɵinject","FetchCapabilityByIdGQL","FetchCapabilityByIdsGQL","StoreService","factory","ɵfac","providedIn","CapabilityEntityResolver","_fetchService","resolve","route","state","capabilityId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","capability","take","CommunicationCenterEntityFetchService","selectCommunicationCenterById","selectCommunicationCenterEntitiesByIds","CommunicationCenterRecord","FetchCommunicationCenterByIdGQL","FetchCommunicationCenterByIdsGQL","CommunicationCenterEntityResolver","communicationCenterId","communicationCenter","CompanyEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectCompanyById","selectCompanyEntitiesByIds","CompanyRecord","fromJS","ɵɵinject","FetchCompanyByIdGQL","FetchCompanyByIdsGQL","StoreService","factory","ɵfac","providedIn","ControlZoneEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectControlZoneById","selectControlZoneEntitiesByIds","ControlZoneRecord","fromJS","ɵɵinject","FetchControlZoneByIdGQL","FetchControlZoneByIdsGQL","StoreService","factory","ɵfac","providedIn","ControlZoneEntityResolver","_fetchService","resolve","route","state","controlZoneId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","controlZone","take","DepartmentEntityFetchService","selectDepartmentById","selectDepartmentEntitiesByIds","DepartmentRecord","FetchDepartmentByIdGQL","FetchDepartmentByIdsGQL","ExternalReferenceEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectExternalReferenceById","selectExternalReferenceEntitiesByIds","ExternalReferenceRecord","fromJS","ɵɵinject","FetchExternalReferenceByIdGQL","FetchExternalReferenceByIdsGQL","StoreService","factory","ɵfac","providedIn","FboEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectFboById","selectFboEntitiesByIds","FboRecord","fromJS","ɵɵinject","FetchFboByIdGQL","FetchFboByIdsGQL","StoreService","factory","ɵfac","providedIn","FboEntityResolver","_fetchService","resolve","route","state","fboId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","fbo","take","FuelTankEntityFetchService","selectFuelTankById","selectFuelTankEntitiesByIds","FuelTankRecord","FetchFuelTankByIdGQL","FetchFuelTankByIdsGQL","FuelTankEntityResolver","fuelTankId","fuelTank","LocationEntityFetchService","selectLocationById","selectLocationEntitiesByIds","LocationRecord","FetchLocationByIdGQL","FetchLocationByIdsGQL","LocationEntityResolver","locationId","location","MedicalFacilityContactEntityFetchService","selectMedicalFacilityContactById","selectMedicalFacilityContactEntitiesByIds","MedicalFacilityContactRecord","FetchMedicalFacilityContactByIdGQL","FetchMedicalFacilityContactByIdsGQL","MedicalFacilityEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectMedicalFacilityById","selectMedicalFacilityEntitiesByIds","MedicalFacilityRecord","fromJS","ɵɵinject","FetchMedicalFacilityByIdGQL","FetchMedicalFacilityByIdsGQL","StoreService","factory","ɵfac","providedIn","MedicalFacilityEntityResolver","_fetchService","resolve","route","state","medicalFacilityId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","medicalFacility","take","MedicalFacilityPhysicianEntityFetchService","selectMedicalFacilityPhysicianById","selectMedicalFacilityPhysicianEntitiesByIds","MedicalFacilityPhysicianRecord","FetchMedicalFacilityPhysicianByIdGQL","FetchMedicalFacilityPhysicianByIdsGQL","MedicalFacilityUnitEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectMedicalFacilityUnitById","selectMedicalFacilityUnitEntitiesByIds","MedicalFacilityUnitRecord","fromJS","ɵɵinject","FetchMedicalFacilityUnitByIdGQL","FetchMedicalFacilityUnitByIdsGQL","StoreService","factory","ɵfac","providedIn","PersonEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectPersonById","selectPersonEntitiesByIds","PersonRecord","fromJS","ɵɵinject","FetchPersonByIdGQL","FetchPersonByIdsGQL","StoreService","factory","ɵfac","providedIn","PersonEntityResolver","_fetchService","resolve","route","state","personId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","person","take","PhysicianEntityFetchService","selectPhysicianById","selectPhysicianEntitiesByIds","PhysicianRecord","FetchPhysicianByIdGQL","FetchPhysicianByIdsGQL","PhysicianEntityResolver","physicianId","physician","ProgramEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectProgramById","selectProgramEntitiesByIds","ProgramRecord","fromJS","ɵɵinject","FetchProgramByIdGQL","FetchProgramByIdsGQL","StoreService","factory","ɵfac","providedIn","RegionEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectRegionById","selectRegionEntitiesByIds","RegionRecord","fromJS","ɵɵinject","FetchRegionByIdGQL","FetchRegionByIdsGQL","StoreService","factory","ɵfac","providedIn","RegionEntityResolver","_fetchService","resolve","route","state","regionId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","region","take","RegionGroupEntityFetchService","selectRegionGroupById","selectRegionGroupEntitiesByIds","RegionGroupRecord","FetchRegionGroupByIdGQL","FetchRegionGroupByIdsGQL","RegionGroupEntityResolver","regionGroupId","regionGroup","SpecialtyTeamEntityFetchService","selectSpecialtyTeamById","selectSpecialtyTeamEntitiesByIds","SpecialtyTeamRecord","FetchSpecialtyTeamByIdGQL","FetchSpecialtyTeamByIdsGQL","SpecialtyTeamEntityResolver","specialtyTeamId","specialtyTeam","SpecialtyTeamMemberEntityFetchService","selectSpecialtyTeamMemberById","selectSpecialtyTeamMemberEntitiesByIds","SpecialtyTeamMemberRecord","FetchSpecialtyTeamMemberByIdGQL","FetchSpecialtyTeamMemberByIdsGQL","SupportRequestEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectSupportRequestById","selectSupportRequestEntitiesByIds","SupportRequestRecord","fromJS","ɵɵinject","FetchSupportRequestByIdGQL","FetchSupportRequestByIdsGQL","StoreService","factory","ɵfac","providedIn","SupportRequestEntityResolver","_fetchService","resolve","route","state","supportRequestId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","supportRequest","take","TimezoneEntityFetchService","selectTimezoneById","selectTimezoneEntitiesByIds","TimezoneRecord","FetchTimezoneByIdGQL","FetchTimezoneByIdsGQL","TransferCenterEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectTransferCenterById","selectTransferCenterEntitiesByIds","TransferCenterRecord","fromJS","ɵɵinject","FetchTransferCenterByIdGQL","FetchTransferCenterByIdsGQL","StoreService","factory","ɵfac","providedIn","VehicleEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectVehicleById","selectVehicleEntitiesByIds","VehicleRecord","fromJS","ɵɵinject","FetchVehicleByIdGQL","FetchVehicleByIdsGQL","StoreService","factory","ɵfac","providedIn","VehicleEntityResolver","_fetchService","resolve","route","state","vehicleId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","vehicle","take","VehicleMaintenanceEntityFetchService","selectVehicleMaintenanceById","selectVehicleMaintenanceEntitiesByIds","VehicleMaintenanceRecord","FetchVehicleMaintenanceByIdGQL","FetchVehicleMaintenanceByIdsGQL","VehicleMakeEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectVehicleMakeById","selectVehicleMakeEntitiesByIds","VehicleMakeRecord","fromJS","ɵɵinject","FetchVehicleMakeByIdGQL","FetchVehicleMakeByIdsGQL","StoreService","factory","ɵfac","providedIn","VehicleModelEntityFetchService","ClientSyncFetchService","constructor","byIdQuery","byIdsQuery","_store","selectVehicleModelById","selectVehicleModelEntitiesByIds","VehicleModelRecord","fromJS","ɵɵinject","FetchVehicleModelByIdGQL","FetchVehicleModelByIdsGQL","StoreService","factory","ɵfac","providedIn","VehicleModelEntityResolver","_fetchService","resolve","route","state","vehicleModelId","params","id","queryParams","find","Error","url","getById","fetchPolicy","pipe","map","vehicleModel","take","VehicleStateInspectionEntityFetchService","selectVehicleStateInspectionById","selectVehicleStateInspectionEntitiesByIds","VehicleStateInspectionRecord","FetchVehicleStateInspectionByIdGQL","FetchVehicleStateInspectionByIdsGQL","EntityStores","Record","activationRule","EntityStore","activeAlert","activeTimeline","alert","applicationNotification","assignmentDelayedReason","cancellationCategory","cancellationReason","cancellationSecondaryReason","card","cardLink","cardNoteArchive","cardNote","cardReOpenReason","cardSummary","configurationSetting","declineCategory","declineReason","declineSecondaryReason","diversionReason","escortRequest","estimatedDuration","eta","externalAction","externalActionType","externalSystemUnit","facilityNonAcceptanceReason","firewallRule","flightFollowingReport","landingZoneOutOfServiceReason","locationHazardAttachment","locationHazard","manifestEntry","medicalControlContactLogEntry","messageStatusUpdate","nextDueType","nonReferralReason","notification","notificationGroup","notificationGroupMember","notificationRecipient","notificationSubscription","notificationTemplate","oemActivity","oemAsset","oemPlanChangeRequest","oemPlan","offerAlgorithm","operation","outOfServiceEvent","outOfServiceEventNote","outOfServiceReason","outOfServiceSecondaryReason","passdownLogAcknowledgement","passdownLog","patient","positionReportAlert","positionReportArchive","positionReport","questionChoice","question","questionnaire","questionnaireQuestionResponse","questionnaireQuestionResponseNote","questionnaireResponse","questionnaireSection","questionnaireSectionQuestion","receivingFacilityRequest","rendezvousRequest","request","requester","requesterReferralReason","requesterRole","requestLocation","requestPatient","systemTimer","timeline","timelineItem","timestamp","timestampType","trackedMessage","transferReason","transportOffer","transportOfferOption","transportReason","trip","tripLeg","tripPassenger","unitActivationRule","unitEMSystemMapping","unit","unitNote","unitPosition","unitShift","unitStatusHistoryEntry","unitSummary","vehicleDisposition","vehicleSummary","waypoint","webOrderLog","accessibleItem","agency","agencyLocation","airport","archiveLog","baseControlZone","base","baseMedicalControlContact","baseMedicalControlContactState","capability","communicationCenter","communicationCenterTransportOfferOption","company","completeFlightInstance","controlZone","department","entityCapability","externalReference","fbo","fuelTank","location","medicalFacilityContact","medicalFacility","medicalFacilityPhysician","medicalFacilityUnit","medicalUnit","person","physician","programBase","program","ramcoVehicleConfiguration","regionBase","region","regionGroup","specialtyTeam","specialtyTeamMember","supportRequest","timezone","transferCenter","trmUserAgency","trmUser","trmUserMedicalFacility","trmUserProgram","vehicleControlZone","vehicle","vehicleMaintenance","vehicleMake","vehicleModel","vehicleStateInspection","activeCardUnitOffering","vehiclePositionSummary","selectAllCompanies","state","entityStores","company","entities","selectAllUnits","unit","selectAllUnitPostions","unitPosition","selectAllBases","base","selectAllVehicles","vehicle","selectAllPeople","person","selectAllRegions","region","selectAllRegionGroups","regionGroup","selectAllDepartments","department","selectAllOperations","operation","selectAllCards","card","selectAllRequests","request","selectAllRequesters","requester","selectAllRequestPatients","requestPatient","selectAllRequestLocations","requestLocation","selectAllTrips","trip","selectAllTripLegs","tripLeg","selectAllWaypoints","waypoint","selectAllVehicleDispositions","vehicleDisposition","selectAllManifestEntries","manifestEntry","selectAllTripPassengers","tripPassenger","selectAllCardNotes","cardNote","selectAllUnitNotes","unitNote","selectAllPositionReports","positionReport","selectAllFlightFollowingReports","flightFollowingReport","selectAllTransportOffers","transportOffer","selectAllTransportReasons","transportReason","selectAllEtas","eta","selectAllEstimatedDurations","estimatedDuration","selectAllTimestampTypes","timestampType","selectAllTimestamps","timestamp","selectAllRendezvousRequests","rendezvousRequest","selectAllTimezones","timezone","selectAllNotifications","notification","selectAllNotificationRecipients","notificationRecipient","selectAllApplicationNotifications","applicationNotification","selectAllCardSummaries","state","entityStores","cardSummary","entities","selectAllMessageStatusUpdates","messageStatusUpdate","selectAllQuestions","question","selectAllQuestionChoices","questionChoice","selectAllQuestionnaireResponses","questionnaireResponse","selectAllVehicleStateInspections","state","entityStores","vehicleStateInspection","entities","selectAllMedicalControlContactLogEntries","medicalControlContactLogEntry","selectCompanyById","companyId","createSelector","selectAllCompanies","c","get","selectCompanyByCompanyCode","companyCode","companies","find","toLowerCase","undefined","isNullOrEmpty","value","isWhitespace","trim","isNullOrWhitespace","lowerCaseFirstLetter","value","charAt","toLowerCase","slice","getTrailingDigits","matchResult","match","isPlainObject","value","prototype","defaultOptions","cleanObject","obj","options","_options_deep","deep","_options_skipNull","skipNull","_options_emptyStrings","emptyStrings","_options_emptyInvalidNumbers","emptyInvalidNumbers","_options_emptyArrays","emptyArrays","_options_emptyObjects","emptyObjects","key","defaultCleanOptions","deep","emptyArrays","emptyObjects","skipNulls","emptyInvalidNumbers","emptyStrings","isEqualClean","a","b","opts","options","__spreadValues","aClean","cleanObject","bClean","isEqual","removeEmptyArrays","value","omitBy","v","isArray","length","deepFreeze","object","Object","isFrozen","create","propNames","getOwnPropertyNames","name","freeze","removeUndefinedProps","obj","result","__spreadValues","keys","forEach","key","undefined","PERMISSIONS_CONFIG","InjectionToken","PermissionCheckHandler","constructor","_config","_roles","_permissionToCheck","_checkedRoles","_checkedPermissionSets","allUserGrants","grants","all","_grant","description","extras","rolePath","granted","permission","permissionSet","inherited","length","wildcard","hasPermission","splice","permissionsCheck","_grantedByPermissions","permissions","permissionSetOrFalse","_grantedByPermissionSets","permissionSets","role","roleGrantOrFalse","_grantedByRole","permisssionSet","_grantedByPermissionSet","_permissionSetHasBeenChecked","_getPermissionsForPermissionSet","includes","_roleHasBeenChecked","_markRoleAsChecked","push","inheritedStr","join","_getPermissionsForRole","rolePermissionCheck","trim","_getPermissionSetsForRole","inheritedRoles","_getInheritedRoles","inheritedRole","roles","roleCfg","inherits","PermissionsService","_permissionCheckHandlerCache","cacheFactory","keyValueCache","Object","entries","map","name","allPermissions","includedInSets","filter","set","s","cfgInfo","config","deepFreeze","getPermissionInfo","hasAnyPermission","perm","hasAllPermissions","key","handler","get","ɵɵinject","PERMISSIONS_CONFIG","factory","ɵfac","providedIn","ImpersonationService","impersonatedUserId","_impersonatedUserId$","getValue","impersonatedUserId$","asObservable","constructor","_router","_impersonatedUserIdKey","userId","localStorage","getItem","BehaviorSubject","undefined","impersonateUser","setItem","next","navigate","stopImpersonating","clearImpersonation","removeItem","ɵɵinject","Router","factory","ɵfac","providedIn","LandingPage","systemPersonRecord","PersonRecord","fromJS","id","firstName","lastName","email","title","employeeId","employeeType","EmployeeType","Unspecified","timeType","TimeType","hireDate","terminationDate","departmentId","reportsToPersonId","activateOktaAccount","baseId","locationId","activeDirectoryId","companyId","programId","notificationAddress","dateLastUpdated","Date","getTime","dateCreated","dateDeleted","userRoles","allCompaniesAccessible","allBasesAccessible","allTrmProgramsAccessible","allCommunicationCentersAccessible","faaCompanyId","dispatchCompanyId","aviationCompanyId","isOutOfFlightCompliance","lastUpdatedById","outOfFlightComplianceComment","primaryCommunicationCenterId","grantTcsAccess","dateLastUpdatedFromGMRWorkday","appSettings","PersonViewModel","PersonViewModelBase","systemUser","initials","charAt","constructor","person","accessibleItems","forEach","ai","personId","Error","accessibleCompanies","uniq","filter","type","EntityType","Company","map","entityId","concat","name","trim","gravatar","encodeURIComponent","userRolesAllScopes","flatten","toArray","_props","isPilot","includes","UserRole","Pilot","hasAccessibleCompany","hasGlobalRole","roles","find","r","hasRoleAnyScope","hasAnyRoleAnyScope","role","hasAnyGlobalRole","hasPermissionAnyGlobalRole","permissionsService","permission","hasPermission","hasPermissionAnyScope","hasAnyPermissionAnyScope","permissions","hasAnyPermission","UserViewModel","personRecord","companyCode","landingPage","Communications","CommunicationsSupervisor","LandingPage","Ops","Executive","External","FleetStatus","Insights","selectPersonByEmail","email","createSelector","selectAllPeople","v","toLowerCase","find","p","selectPersonByEmployeeId","employeeId","selectPeopleAssignedToUnit","unitId","createSelector","selectAllUnitPostions","selectAllPeople","positions","people","valueSeq","filter","p","teamMemberId","map","undefined","get","IdxStatus","AuthenticatorKey","IdxFeature","isAuthenticator","obj","getNativeConsole","getConsole","nativeConsole","warn","text","removeNils","obj","cleaned","prop","value","clone","str","omit","props","newobj","p","find","collection","searchParams","c","item","found","getLink","linkName","altName","link","CustomError","message","isString","obj","isObject","isNumber","isFunction","fn","isPromise","WWWAuthError","CustomError","scheme","parameters","resp","_a","header","regex","firstSpace","remaining","params","match","headers","isFunction","genRandomString","length","randomCharset","random","c","cl","delay","ms","resolve","split2","str","delim","parts","isAbsoluteUrl","url","toAbsoluteUrl","baseUrl","removeTrailingSlash","toRelativeUrl","toQueryString","obj","str","key","path","trimmed","AuthSdkError","CustomError","msg","xhr","generateState","genRandomString","generateNonce","getIssuer","sdk","options","removeTrailingSlash","getOAuthBaseUrl","issuer","getOAuthDomain","getOAuthUrls","AuthSdkError","authorizeUrl","userinfoUrl","tokenUrl","logoutUrl","revokeUrl","baseUrl","createOAuthMeta","sdk","tokenParams","issuer","urls","getOAuthUrls","oauthMeta","import_tiny_emitter","assign","target","i","source","key","defaultConverter","value","init","converter","defaultAttributes","set","name","attributes","stringifiedAttributes","attributeName","get","cookies","jar","parts","found","api","import_cross_fetch","TokenKind","isAccessToken","obj","isIDToken","isRefreshToken","createTransactionMeta","_0","__async","authClient","options","tokenParams","pkceMeta","createOAuthMeta","flow","withCredentials","activationToken","recoveryToken","maxAge","acrValues","hasSavedInteractionHandle","savedMeta","getSavedTransactionMeta","removeNils","isTransactionMetaValid","warn","getTransactionMeta","validExistingMeta","saveTransactionMeta","meta","clearTransactionMeta","isTransactionMetaValidForOptions","isTransactionMetaValidForFlow","keys","key","value","constants_exports","__export","ACCESS_TOKEN_STORAGE_KEY","CACHE_STORAGE_NAME","DEFAULT_CACHE_DURATION","DEFAULT_CODE_CHALLENGE_METHOD","DEFAULT_MAX_CLOCK_SKEW","DEFAULT_POLLING_DELAY","IDX_API_VERSION","IDX_RESPONSE_STORAGE_NAME","ID_TOKEN_STORAGE_KEY","MAX_VERIFIER_LENGTH","MIN_VERIFIER_LENGTH","ORIGINAL_URI_STORAGE_NAME","PKCE_STORAGE_NAME","REFERRER_PATH_STORAGE_KEY","REFRESH_TOKEN_STORAGE_KEY","SHARED_TRANSACTION_STORAGE_NAME","STATE_TOKEN_KEY_NAME","TOKEN_STORAGE_NAME","TRANSACTION_STORAGE_NAME","AuthApiError","CustomError","err","xhr","meta","message","OAuthError","CustomError","errorCode","summary","resp","formatError","sdk","error","_a","AuthApiError","resp","err","serverErr","isString","clone","wwwAuthHeader","WWWAuthError","OAuthError","wwwAuthErr","max_age","acr_values","httpRequest","options","interceptor","url","method","args","saveAuthnState","accessToken","withCredentials","storageUtil","storage","httpCache","cacheContents","cachedResponse","oktaUserAgentHeader","headers","removeNils","ajaxOptions","res","item","STATE_TOKEN_KEY_NAME","get","isAbsoluteUrl","getOptions","post","postOptions","import_tiny_emitter","import_cross_fetch","getResponse","meta","interact","_0","__async","authClient","options","removeNils","getSavedTransactionMeta","createTransactionMeta","baseUrl","getOAuthBaseUrl","clientId","redirectUri","state","scopes","withCredentials","codeChallenge","codeChallengeMethod","activationToken","recoveryToken","maxAge","acrValues","nonce","clientSecret","url","params","interactionHandle","httpRequest","newMeta","saveTransactionMeta","__rest","s","t","p","i","import_tiny_emitter","import_cross_fetch","isFieldMutable","field","divideSingleActionParamsByMutability","action","_a","_b","defaultParamsForAction","neededParamsForAction","immutableParamsForAction","divideActionParamsByMutability","actionList","neededParams","defaultParams","immutableParams","generateDirectFetch","authClient","actionDefinition","defaultParamsForAction","immutableParamsForAction","toPersist","target","__async","params","_a","headers","body","response","httpRequest","err","AuthApiError","payload","wwwAuthHeader","idxResponse","generateIdxAction","generator","defaultParams","neededParams","immutableParams","divideActionParamsByMutability","action","generateRemediationFunctions","authClient","remediationValue","toPersist","obj","remediation","generateIdxAction","_typeof","obj","_classCallCheck","instance","Constructor","_inherits","subClass","superClass","_setPrototypeOf","_getPrototypeOf","o","p","_isNativeReflectConstruct","_construct","Parent","args","Class","a","_isNativeFunction","fn","_wrapNativeSuper","_cache","Wrapper","_assertThisInitialized","self","_possibleConstructorReturn","call","_createSuper","Derived","hasNativeReflectConstruct","Super","result","NewTarget","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","_arrayLikeToArray","iter","minLen","n","len","i","arr2","_createForOfIteratorHelper","allowArrayLike","it","F","e","normalCompletion","didErr","err","step","hasOwnProp","push","item","unshift","NewError","_Error","_super","value","_this","JSONPath","opts","expr","callback","otherTypeCallback","optObj","ret","json","_this2","currParent","currParentProperty","flatten","wrap","_expr","exprList","ea","rslt","valOrPath","resultType","path","fullRetObj","type","preferredOutput","val","parent","parentPropName","hasArrExpr","literalPriority","_this3","retObj","loc","x","addRet","elems","t","m","l","_x","v","par","pr","cb","addType","valueType","locProp","parts","_iterator","_step","part","rett","tmp","tl","tt","f","start","end","code","_v","_vname","pathArr","pointer","cache","subx","normalized","$0","$1","prop","ups","exp","match","moveToAnotherArray","source","target","conditionCb","il","context","keys","funcs","key","values","vr","funcString","s","func","fString","lastStatementEnd","jsonpath","options","JSONPath","SKIP_FIELDS","parseNonRemediations","authClient","idxResponse","toPersist","actions","context","field","generateIdxAction","_a","fieldValue","type","info","__rest","subField","value","expandRelatesTo","k","query","result","jsonpath","AuthSdkError","innerValue","convertRemediationAction","remediation","actionFn","generateRemediationFunctions","parseIdxResponse","remediationData","remediations","makeIdxState","authClient","idxResponse","toPersist","requestDidSucceed","_a","_b","_c","rawIdxResponse","remediations","context","actions","parseIdxResponse","neededToProceed","proceed","_0","__async","remediationChoice","paramsFromUser","remediationChoiceObject","remediation","findCode","item","interactionCode","v1","makeIdxState","parsersForVersion","version","v1","validateVersionConfig","makeIdxState","authClient","rawIdxResponse","toPersist","requestDidSucceed","_a","IDX_API_VERSION","isRawIdxResponse","obj","isAuthApiError","obj","AuthApiError","isOAuthError","OAuthError","isWWWAuthError","WWWAuthError","import_tiny_emitter","import_cross_fetch","introspect","_0","__async","authClient","options","_a","rawIdxResponse","requestDidSucceed","savedIdxResponse","version","IDX_API_VERSION","domain","getOAuthDomain","interactionHandle","stateHandle","withCredentials","validateVersionConfig","url","body","headers","httpRequest","err","isAuthApiError","isRawIdxResponse","makeIdxState","getAllValues","idxRemediation","_a","getRequiredValues","required","cur","titleCase","str","getAuthenticatorFromRemediation","remediation","name","formatAuthenticator","incoming","authenticator","isAuthenticator","compareAuthenticators","auth1","auth2","findMatchedOption","authenticators","options","option","relatesTo","Remediator","remediation","values","options","authenticator","formatAuthenticator","existing","compareAuthenticators","acc","context","getRequiredValues","key","getAllValues","data","titleCase","val","name","entry","_authClient","_context","inputs","type","inputFromRemediation","input","visible","messages","alias","aliases","i","_a","_b","field","inputsFromRemediation","inputsFromRemediator","relatesTo","authenticatorFromRemediation","getAuthenticatorFromRemediation","id","enrollmentId","unwrapFormValue","remediation","item","res","key","value","formKeys","unwrappedForm","GenericRemediator","Remediator","acc","name","authClient","_context","inputs","_a","href","method","rel","accepts","produces","value","action","rest","__rest","params","__async","unwrapFormValue","input","ctx","_oktaAuth","_flow","setRemediatorsCtx","newCtx","getFlowSpecification","oktaAuth","flow","isTerminalResponse","idxResponse","neededToProceed","interactionCode","canSkipFn","name","canResendFn","actionName","getMessagesFromIdxRemediationValue","value","messages","messagesFromForm","optionValues","option","messagesFromOptions","getMessagesFromResponse","options","_a","rawIdxState","globalMessages","message","remediation","fieldMessages","seen","filtered","key","getEnabledFeatures","res","actions","IdxFeature","getAvailableSteps","authClient","useGenericRemediator","remediatorMap","map","remediatorClass","T","getRemediatorClass","remediator","stepObj","params","__async","part1","part2","split2","actionObj","rest","__rest","item","filterValuesForRemediation","remediationName","values","r","entry","warn","remediators","GenericRemediator","getRemediator","idxRemediations","context","remediatorCandidates","getNextStep","nextStep","canSkip","canResend","handleFailedResponse","terminal","getActionFromValues","values","idxResponse","action","removeActionFromValues","removeActionFromOptions","options","actionName","actions","entry","remediate","authClient","__async","neededToProceed","interactionCode","flow","remediator","getRemediator","actionFromValues","params","valuesWithoutExecutedAction","optionsWithoutExecutedAction","handleFailedResponse","name","terminal","isTerminalResponse","filterValuesForRemediation","AuthSdkError","acc","curr","nextStep","getNextStep","data","gr","initializeValues","options","knownOptions","values","option","initializeData","authClient","data","_a","_b","_c","_d","flow","withCredentials","remediators","actions","status","IdxStatus","flowSpec","getFlowSpecification","getDataFromIntrospect","__async","stateHandle","version","state","scopes","recoveryToken","activationToken","maxAge","acrValues","nonce","useGenericRemediator","idxResponse","meta","getSavedTransactionMeta","introspect","interactionHandle","interactResponse","interact","getDataFromRemediate","autoRemediate","step","idxResponseFromRemediation","nextStep","canceled","remediate","getTokens","interactionCode","clientId","codeVerifier","ignoreSignature","redirectUri","urls","finalizeData","exchangeCodeForTokens","shouldSaveResponse","shouldClearTransaction","clearSharedStorage","tokens","enabledFeatures","availableSteps","messages","terminal","getEnabledFeatures","getAvailableSteps","getMessagesFromResponse","isTerminalResponse","hasActions","hasErrors","msg","run","_0","error","saveTransactionMeta","rawIdxResponse","requestDidSucceed","context","neededToProceed","proceed","rawIdxState","stepUp","authenticate","_0","__async","authClient","options","AuthenticatorKey","run","Authenticator","authenticator","VerificationCodeAuthenticator","Authenticator","values","credentials","verificationCode","otp","idxRemediationValue","_a","OktaVerifyTotp","VerificationCodeAuthenticator","values","verificationCode","OktaPassword","Authenticator","values","credentials","password","passcode","revokeSessions","idxRemediationValue","_a","_b","inputs","input","SecurityQuestionEnrollment","Authenticator","values","credentials","questionKey","question","answer","SecurityQuestionVerification","Authenticator","values","credentials","answer","WebauthnEnrollment","Authenticator","values","credentials","obj","clientData","attestation","WebauthnVerification","Authenticator","values","credentials","obj","clientData","authenticatorData","signatureData","getAuthenticator","remediation","_a","_b","relatesTo","value","AuthenticatorKey","OktaPassword","SecurityQuestionVerification","SecurityQuestionEnrollment","OktaVerifyTotp","WebauthnVerification","WebauthnEnrollment","VerificationCodeAuthenticator","VerifyAuthenticator","Remediator","remediation","values","getAuthenticator","authClient","context","_a","nextStep","authenticatorEnrollments","input","valueKey","EnrollAuthenticator","VerifyAuthenticator","EnrollPoll","Remediator","authClient","context","common","authenticator","valueKey","values","SelectEnrollmentChannel","Remediator","id","channel","authClient","context","common","authenticator","_a","filterKey","valueKey","values","EnrollmentChannelData","Remediator","authClient","context","common","authenticator","valueKey","values","ChallengeAuthenticator","VerifyAuthenticator","ChallengePoll","EnrollPoll","ResetAuthenticator","VerifyAuthenticator","EnrollProfile","Remediator","remediation","values","options","OktaPassword","userProfileFromValues","name","canRemediate","curr","profileAttributes","data","attributeValues","attributeName","val","input","errorRemediation","errors","field","Identify","Remediator","identifier","credentials","password","input","ReEnrollAuthenticator","Remediator","newPassword","input","name","ReEnrollAuthenticatorWarning","ReEnrollAuthenticator","RedirectIdp","Remediator","name","type","idp","href","SelectAuthenticator","Remediator","authenticators","options","option","authenticator","relatesTo","context","_a","_b","authenticatorFromRemediation","getAuthenticatorFromRemediation","isAuthenticator","matchedOption","isCurrentAuthenticator","isCurrentAuthenticatorEnrollment","remediationValue","selectedOption","findMatchedOption","name","remediation","label","compareAuthenticators","SelectAuthenticatorAuthenticate","SelectAuthenticator","remediation","values","options","_a","isRecoveryFlow","getAuthenticatorFromRemediation","relatesTo","AuthenticatorKey","SelectAuthenticatorEnroll","SelectAuthenticator","SelectAuthenticatorUnlockAccount","SelectAuthenticator","remediationValue","_a","_b","_c","authenticatorMap","methodTypeOption","name","methodTypeValue","SelectEnrollProfile","Remediator","AuthenticatorData","Remediator","remediation","values","data","compareAuthenticators","authenticatorData","methodType","authenticator","isAuthenticator","id","enrollmentId","name","authenticatorsData","AuthenticatorVerificationData","AuthenticatorData","authenticator","methodType","name","valueKey","values","AuthenticatorEnrollmentData","AuthenticatorData","authenticatorData","getAuthenticatorFromRemediation","name","remediation","item","value","val","data","phoneNumber","Skip","Remediator","AuthenticationFlow","Identify","SelectAuthenticatorAuthenticate","SelectAuthenticatorEnroll","AuthenticatorEnrollmentData","AuthenticatorVerificationData","EnrollAuthenticator","ChallengeAuthenticator","ChallengePoll","ReEnrollAuthenticator","ReEnrollAuthenticatorWarning","EnrollPoll","SelectEnrollmentChannel","EnrollmentChannelData","RedirectIdp","Skip","PasswordRecoveryFlow","Identify","SelectAuthenticatorAuthenticate","SelectAuthenticatorEnroll","ChallengeAuthenticator","AuthenticatorVerificationData","AuthenticatorEnrollmentData","ResetAuthenticator","ReEnrollAuthenticator","ReEnrollAuthenticatorWarning","EnrollPoll","RegistrationFlow","SelectEnrollProfile","EnrollProfile","AuthenticatorEnrollmentData","SelectAuthenticatorEnroll","EnrollPoll","SelectEnrollmentChannel","EnrollmentChannelData","EnrollAuthenticator","Skip","AccountUnlockFlow","Identify","SelectAuthenticatorUnlockAccount","SelectAuthenticatorAuthenticate","ChallengeAuthenticator","ChallengePoll","AuthenticatorVerificationData","ReEnrollAuthenticatorWarning","getFlowSpecification","oktaAuth","flow","remediators","actions","withCredentials","RegistrationFlow","PasswordRecoveryFlow","AccountUnlockFlow","AuthenticationFlow","cancel","authClient","options","__async","meta","flowSpec","getFlowSpecification","run","urlParamsToObject","hashOrSearch","plus2space","paramSplit","fragment","obj","param","key","value","EmailVerifyCallbackError","CustomError","state","otp","isEmailVerifyCallbackError","error","isEmailVerifyCallback","urlPath","parseEmailVerifyCallback","urlParamsToObject","handleEmailVerifyCallback","authClient","search","__async","canProceed","authClient","options","getSavedTransactionMeta","proceed","_0","__async","AuthSdkError","flow","state","meta","run","poll","_0","__async","authClient","options","_a","transaction","proceed","meta","getSavedTransactionMeta","availablePollingRemeditaions","remediation","warn","resolve","reject","_b","refresh","err","startTransaction","_0","__async","authClient","options","run","register","_0","__async","authClient","options","hasSavedInteractionHandle","enabledFeatures","startTransaction","IdxFeature","AuthSdkError","run","recoverPassword","_0","__async","authClient","options","flowSpec","getFlowSpecification","run","handleInteractionCodeRedirect","authClient","url","__async","meta","AuthSdkError","codeVerifier","savedState","searchParams","state","interactionCode","error","OAuthError","tokens","unlockAccount","_0","__async","authClient","options","hasSavedInteractionHandle","enabledFeatures","startTransaction","IdxFeature","AuthSdkError","run","isInteractionRequiredError","error","isRefreshTokenInvalidError","error","isOAuthError","hasTokensInHash","hash","hasAuthorizationCode","hashOrSearch","hasInteractionCode","hasErrorInUrl","isRedirectUri","uri","sdk","authParams","isCodeFlow","options","hasResponseType","responseType","getHashOrSearch","codeFlow","useQuery","isLoginRedirect","hasCode","isInteractionRequired","import_tiny_emitter","import_cross_fetch","remediators_exports","__export","AuthenticatorEnrollmentData","AuthenticatorVerificationData","ChallengeAuthenticator","ChallengePoll","EnrollAuthenticator","EnrollPoll","EnrollProfile","EnrollmentChannelData","GenericRemediator","Identify","ReEnrollAuthenticator","ReEnrollAuthenticatorWarning","RedirectIdp","Remediator","ResetAuthenticator","SelectAuthenticatorAuthenticate","SelectAuthenticatorEnroll","SelectAuthenticatorUnlockAccount","SelectEnrollProfile","SelectEnrollmentChannel","Skip","createIdxAPI","sdk","setRemediatorsCtx","remediators_exports","getFlowSpecification","boundStartTransaction","startTransaction","interact","introspect","makeIdxState","authenticate","register","poll","proceed","cancel","recoverPassword","handleInteractionCodeRedirect","isInteractionRequired","isInteractionRequiredError","handleEmailVerifyCallback","isEmailVerifyCallback","parseEmailVerifyCallback","isEmailVerifyCallbackError","getSavedTransactionMeta","createTransactionMeta","getTransactionMeta","saveTransactionMeta","clearTransactionMeta","isTransactionMetaValid","flow","canProceed","unlockAccount","features_exports","__export","getUserAgent","hasTextEncoder","isBrowser","isDPoPSupported","isFingerprintSupported","isHTTPS","isIE11OrLess","isLocalhost","isPKCESupported","isPopupPostMessageSupported","isTokenVerifySupported","a","str","b","c","isWindowsPhone","isBrowser","isIE11OrLess","documentMode","getUserAgent","isFingerprintSupported","agent","isPopupPostMessageSupported","isIE8or9","isWebCryptoSubtleSupported","c","isTokenVerifySupported","hasTextEncoder","isPKCESupported","isHTTPS","isLocalhost","isDPoPSupported","import_tiny_emitter","createOktaAuthBase","OptionsConstructor","OktaAuthBase","args","options","removeNils","Emitter","features_exports","constants_exports","mixinStorage","Base","StorageManager","args","storageManager","cookies","storageUtil","OktaUserAgent","env","isBrowser","version","setRequestHeader","authClient","headerName","headerValue","mixinHttp","Base","args","OktaUserAgent","setRequestHeader","headers","opts","url","toQueryString","options","get","crypto_exports","__export","a","base64ToBase64Url","base64UrlDecode","base64UrlToBase64","base64UrlToBuffer","base64UrlToString","b","bufferToBase64Url","getOidcHash","stringToBase64Url","stringToBuffer","verifyToken","c","stringToBase64Url","str","b64","b","base64ToBase64Url","base64UrlToBase64","b64u","base64UrlToString","AuthSdkError","utf8","a","stringToBuffer","buffer","i","base64UrlDecode","base64UrlToBuffer","c","bufferToBase64Url","bin","s","byte","getOidcHash","str","buffer","c","arrayBuffer","intBuffer","firstHalf","hash","b64u","stringToBase64Url","verifyToken","idToken","key","clone","format","algo","extractable","usages","c","cryptoKey","jwt","payload","stringToBuffer","b64Signature","base64UrlDecode","signature","PromiseQueue","options","method","thisObject","args","resolve","reject","warn","queueItem","res","isPromise","import_tiny_emitter","import_cross_fetch","dec2hex","dec","getRandomString","length","a","c","str","generateVerifier","prefix","verifier","computeChallenge","buffer","arrayBuffer","hash","b64u","stringToBase64Url","PKCE","DEFAULT_CODE_CHALLENGE_METHOD","decodeToken","token","jwt","decodedToken","base64UrlToString","AuthSdkError","getDefaultTokenParams","sdk","pkce","clientId","redirectUri","responseType","responseMode","scopes","acrValues","maxAge","state","ignoreSignature","dpop","defaultRedirectUri","isBrowser","removeNils","generateState","generateNonce","import_tiny_emitter","import_cross_fetch","import_tiny_emitter","import_cross_fetch","INDEXEDDB_NAME","DB_KEY","isDPoPNonceError","obj","isOAuthError","isWWWAuthError","createJwt","header","claims","signingKey","__async","head","stringToBase64Url","body","signature","c","stringToBuffer","base64ToBase64Url","bufferToBase64Url","cryptoRandomValue","byteLen","v","generateKeyPair","algorithm","hashAccessToken","accessToken","buffer","hash","b","keyStore","resolve","reject","req","db","tx","store","err","invokeStoreMethod","method","args","storeKeyPair","pairId","keyPair","findKeyPair","AuthSdkError","clearDPoPKeyPair","clearAllDPoPKeyPairs","createDPoPKeyPair","keyPairId","clearDPoPKeyPairAfterRevoke","revokedToken","tokens","_a","shouldClear","refreshToken","generateDPoPProof","_0","url","nonce","kty","crv","e","n","x","y","generateDPoPForTokenRequest","params","validateOptions","options","AuthSdkError","getPostData","sdk","params","removeNils","clientSecret","toQueryString","makeTokenRequest","_0","_1","__async","url","data","nonce","dpopKeyPair","_a","_b","method","headers","proof","generateDPoPForTokenRequest","httpRequest","err","isDPoPNonceError","dpopNonce","AuthApiError","postToTokenEndpoint","urls","postRefreshToken","refreshToken","name","value","import_tiny_emitter","import_cross_fetch","getWellKnown","sdk","issuer","authServerUri","get","getKey","kid","httpCache","wellKnown","jwksUri","cacheContents","cachedResponse","cachedKey","find","res","key","AuthSdkError","validateClaims","sdk","claims","validationParams","aud","iss","nonce","acr","AuthSdkError","now","verifyToken","sdk","token","validationParams","__async","AuthSdkError","jwt","decodeToken","configuredIssuer","issuer","getWellKnown","validationOptions","validateClaims","key","getKey","getOidcHash","import_tiny_emitter","import_cross_fetch","validateResponse","res","oauthParams","OAuthError","AuthSdkError","handleOAuthResponse","sdk","tokenParams","urls","__async","getDefaultTokenParams","getOAuthUrls","responseType","scopes","clone","clientId","tokenDict","expiresIn","tokenType","accessToken","idToken","refreshToken","now","accessJwt","idJwt","idTokenObj","validationParams","verifyToken","exchangeCodeForTokens","sdk","tokenParams","urls","__async","getOAuthUrls","getDefaultTokenParams","clone","authorizationCode","interactionCode","codeVerifier","clientId","redirectUri","scopes","ignoreSignature","state","acrValues","dpop","dpopPairId","getTokenOptions","responseType","handleResponseOptions","keyPair","findKeyPair","keyPairId","createDPoPKeyPair","oauthResponse","postToTokenEndpoint","tokenResponse","handleOAuthResponse","import_tiny_emitter","import_cross_fetch","getUserInfo","sdk","accessTokenObject","idTokenObject","__async","isAccessToken","AuthSdkError","isIDToken","options","headers","httpRequest","userInfo","err","_a","WWWAuthError","error","errorDescription","OAuthError","e","AuthApiError","addListener","eventTarget","name","fn","removeListener","loadFrame","src","iframe","loadPopup","options","title","appearance","addPostMessageListener","sdk","timeout","state","responseHandler","timeoutId","msgReceivedOrTimeout","resolve","reject","e","AuthSdkError","assertPKCESupport","sdk","errorMessage","AuthSdkError","validateCodeChallengeMethod","codeChallengeMethod","__async","DEFAULT_CODE_CHALLENGE_METHOD","methods","getWellKnown","preparePKCE","tokenParams","codeVerifier","codeChallenge","PKCE","prepareTokenParams","_0","defaults","getDefaultTokenParams","convertTokenParamsToOAuthParams","tokenParams","AuthSdkError","isString","oauthParams","removeNils","mayBeArray","buildAuthorizeParams","oauthQueryParams","toQueryString","getToken","sdk","options","AuthSdkError","popupWindow","prepareTokenParams","tokenParams","sessionTokenOverrides","idpOverrides","requestUrl","endpoint","urls","getOAuthUrls","buildAuthorizeParams","flowType","iframePromise","addPostMessageListener","iframeEl","loadFrame","res","handleOAuthResponse","_a","oauthPromise","popupPromise","resolve","reject","closePoller","err","getWithoutPrompt","sdk","options","AuthSdkError","clone","getToken","import_tiny_emitter","import_cross_fetch","getWithPopup","sdk","options","AuthSdkError","popupWindow","loadPopup","clone","getToken","getWithRedirect","_0","_1","__async","sdk","options","AuthSdkError","clone","tokenParams","prepareTokenParams","meta","createOAuthMeta","requestUrl","buildAuthorizeParams","import_tiny_emitter","import_cross_fetch","removeHash","sdk","nativeHistory","nativeDoc","nativeLoc","removeSearch","getResponseMode","defaultResponseMode","responseMode","parseOAuthResponseFromUrl","options","isString","url","paramStr","AuthSdkError","urlParamsToObject","cleanOAuthResponseFromUrl","parseFromUrl","__async","res","state","oauthParams","urls","handleOAuthResponse","err","isInteractionRequiredError","isSameRefreshToken","a","b","renewTokensWithRefresh","sdk","tokenParams","refreshTokenObject","__async","clientId","dpop","AuthSdkError","renewTokenParams","endpointParams","keyPair","findKeyPair","tokenResponse","postRefreshToken","urls","getOAuthUrls","tokens","handleOAuthResponse","refreshToken","isSameRefreshToken","err","isRefreshTokenInvalidError","throwInvalidTokenError","AuthSdkError","getSingleToken","originalToken","tokens","isIDToken","isAccessToken","renewToken","sdk","token","__async","renewTokensWithRefresh","responseType","scopes","authorizeUrl","userinfoUrl","issuer","dpopPairId","getWithoutPrompt","res","import_tiny_emitter","import_cross_fetch","renewTokens","sdk","options","__async","_a","tokens","renewTokensWithRefresh","AuthSdkError","accessToken","idToken","scopes","authorizeUrl","userinfoUrl","issuer","dpopPairId","responseType","getDefaultTokenParams","getWithoutPrompt","res","import_tiny_emitter","import_cross_fetch","revokeToken","sdk","token","__async","accessToken","refreshToken","AuthSdkError","clientId","clientSecret","revokeUrl","getOAuthUrls","args","toQueryString","creds","b","post","import_tiny_emitter","import_cross_fetch","hintMap","oidcIntrospect","sdk","kind","token","__async","_a","issuer","clientId","clientSecret","AuthSdkError","TokenKind","introspectUrl","getWellKnown","authHeader","b","args","toQueryString","post","createEnrollAuthenticatorMeta","sdk","params","issuer","urls","getOAuthUrls","import_tiny_emitter","import_cross_fetch","getDefaultEnrollAuthenticatorParams","sdk","clientId","redirectUri","responseMode","state","defaultRedirectUri","isBrowser","removeNils","generateState","prepareParams","params","AuthSdkError","prepareEnrollAuthenticatorParams","sdk","options","getDefaultEnrollAuthenticatorParams","enrollAuthenticator","sdk","options","clone","params","prepareEnrollAuthenticatorParams","meta","createEnrollAuthenticatorMeta","requestUrl","buildAuthorizeParams","createTokenAPI","sdk","queue","useQueue","method","PromiseQueue","getWithRedirectFn","getWithRedirect","parseFromUrlFn","parseFromUrl","parseFromUrlApi","token","prepareTokenParams","exchangeCodeForTokens","getWithoutPrompt","getWithPopup","decodeToken","revokeToken","renewToken","renewTokensWithRefresh","renewTokens","accessTokenObject","idTokenObject","getUserInfo","verifyToken","isLoginRedirect","oidcIntrospect","key","createEndpoints","enrollAuthenticator","import_tiny_emitter","import_cross_fetch","validateToken","token","type","isIDToken","isAccessToken","isRefreshToken","AuthSdkError","SdkClock","_SdkClock","localOffset","now","EVENT_EXPIRED","EVENT_RENEWED","EVENT_ADDED","EVENT_REMOVED","EVENT_ERROR","EVENT_SET_STORAGE","DEFAULT_OPTIONS","TOKEN_STORAGE_NAME","defaultState","TokenManager","sdk","options","AuthSdkError","removeNils","isLocalhost","storageOptions","SdkClock","event","handler","context","clone","token","expireEarlySeconds","expireTime","key","EVENT_EXPIRED","freshToken","oldToken","EVENT_RENEWED","EVENT_ADDED","EVENT_REMOVED","error","EVENT_ERROR","expireTimeouts","isRefreshToken","expireEventWait","expireEventTimeout","tokenStorage","validateToken","__async","tokens","isAccessToken","isIDToken","type","isIE11OrLess","storage","EVENT_SET_STORAGE","accessTokenCb","idTokenCb","refreshTokenCb","handleTokenCallback","handleAdded","handleRenewed","handleRemoved","types","existingTokens","storageKey","newToken","existingToken","removedToken","_a","shouldRenew","refreshKey","err","accessToken","tokenType","removedTokens","REFRESH_TOKEN_STORAGE_KEY","storageUtil","storage","storageType","supported","options","storageProvider","AuthSdkError","types","curType","nextType","warn","isIE11OrLess","secure","sameSite","sessionCookie","key","value","expiresAt","data","k","existingValues","storageKey","valueToStore","name","cookieOptions","api","provideOriginalUri","BaseClass","originalUri","state","storageUtil","REFERRER_PATH_STORAGE_KEY","storage","sharedStorage","mixinOAuth","Base","TransactionManagerConstructor","_a","WithOriginalUri","provideOriginalUri","args","PKCE","PromiseQueue","createTokenAPI","TokenManager","createEndpoints","__async","options","autoRenew","autoRemove","shouldRenew","shouldRemove","accessToken","idToken","opts","originalUri","additionalParams","__rest","params","refreshToken","key","token","err","tokens","responseType","isLoginRedirect","hasResponseType","httpRequest","accessTokenKey","clearDPoPKeyPairAfterRevoke","refreshTokenKey","postLogoutRedirectUri","state","logoutUrl","getOAuthUrls","idTokenHint","logoutUri","defaultUri","currentUri","revokeAccessToken","revokeRefreshToken","dpopPairId","clearDPoPKeyPair","sessionClosed","redirectUri","AuthSdkError","keyPair","findKeyPair","proof","generateDPoPProof","clearAll","_b","clearAllDPoPKeyPairs","headers","wwwAuth","WWWAuthError","wwwErr","isDPoPNonceError","nonce","isFunction","crypto_exports","import_p_cancelable","import_tiny_emitter","import_cross_fetch","INITIAL_AUTH_STATE","DEFAULT_PENDING","EVENT_AUTH_STATE_CHANGE","MAX_PROMISE_CANCEL_TIMES","isSameAuthState","prevState","state","AuthStateManager","sdk","AuthSdkError","PromiseQueue","EVENT_ADDED","key","token","EVENT_REMOVED","options","__async","transformAuthState","devMode","log","status","event","getConsole","emitAuthStateChange","authState","finalPromise","origPromise","curPromise","cancelablePromise","PCancelable","resolve","_","onCancel","emitAndResolve","accessToken","idToken","refreshToken","error","handler","AutoRenewService","tokenManager","options","res","firstTime","isBrowser","tokens","key","token","isRefreshToken","error","AuthSdkError","__async","EVENT_EXPIRED","isPromise","obj","PROMISE_RESOLVED_FALSE","PROMISE_RESOLVED_TRUE","PROMISE_RESOLVED_VOID","sleep","time","resolveWith","res","randomInt","min","max","randomToken","lastMs","additional","microSeconds","ms","supportsWebLockAPI","microSeconds","type","create","channelName","state","msg","close","channelState","postMessage","messageJson","PROMISE_RESOLVED_VOID","err","onMessage","fn","canBeUsed","averageResponseTime","NativeMethod","ObliviousSet","ttl","value","_this","now","removeTooOldValues","removeTooOldValues","obliviousSet","olderThen","now","iterator","next","value","time","fillOptionsWithDefaults","originalOptions","options","microSeconds","DB_PREFIX","OBJECT_STORE_ID","TRANSACTION_SETTINGS","type","getIdb","commitIndexedDBTransaction","tx","createDatabase","channelName","IndexedDB","dbName","openRequest","ev","db","res","rej","writeMessage","readerUuid","messageJson","time","writeObject","objectStore","getMessagesHigherThan","db","lastCursorId","tx","OBJECT_STORE_ID","TRANSACTION_SETTINGS","objectStore","ret","keyRangeValue","getAllRequest","res","rej","err","e","openCursor","openCursorRequest","ev","cursor","commitIndexedDBTransaction","removeMessagesById","channelState","ids","id","deleteRequest","getOldMessages","ttl","olderThen","msgObk","cleanOldMessages","tooOld","msg","create","channelName","options","fillOptionsWithDefaults","createDatabase","state","randomToken","ObliviousSet","PROMISE_RESOLVED_VOID","_readLoop","readNewMessages","sleep","_filterMessage","msgObj","newerMessages","useMessages","msgObjA","msgObjB","close","postMessage","messageJson","writeMessage","randomInt","onMessage","fn","time","canBeUsed","getIdb","averageResponseTime","IndexedDBMethod","type","microSeconds","microSeconds","KEY_PREFIX","type","getLocalStorage","localStorage","storageKey","channelName","postMessage","channelState","messageJson","res","sleep","key","writeObj","randomToken","value","ev","addStorageEventListener","fn","listener","removeStorageEventListener","create","options","fillOptionsWithDefaults","canBeUsed","uuid","eMIs","ObliviousSet","state","msgObj","close","onMessage","time","ls","averageResponseTime","defaultTime","userAgent","LocalstorageMethod","microSeconds","type","SIMULATE_CHANNELS","create","channelName","state","close","channelState","postMessage","messageJson","res","channelArray","channel","onMessage","fn","canBeUsed","averageResponseTime","SimulateMethod","METHODS","NativeMethod","IndexedDBMethod","LocalstorageMethod","chooseMethod","options","chooseMethods","SimulateMethod","ret","m","useMethod","method","OPEN_BROADCAST_CHANNELS","lastId","BroadcastChannel","name","options","ENFORCED_OPTIONS","fillOptionsWithDefaults","chooseMethod","_prepareChannel","ENFORCED_OPTIONS","BroadcastChannel","msg","_post","fn","time","listenObj","_removeListenerObject","_addListenerObject","type","obj","_this","OPEN_BROADCAST_CHANNELS","awaitPrepare","PROMISE_RESOLVED_VOID","broadcastChannel","msgObj","sendPromise","_prepareChannel","channel","maybePromise","isPromise","s","_hasMessageListeners","_startListening","o","_stopListening","listenerFn","listenerObject","hundredMsInMicro","minMessageTime","addBrowser","fn","oldClose","addNode","fn","err","isNode","USE_METHOD","addNode","addBrowser","LISTENERS","startedListening","startListening","runAll","add","fn","addReturn","promises","sendLeaderMessage","leaderElector","action","msgJson","beLeader","unloadFn","add","isLeaderListener","msg","LeaderElectionWebLock","broadcastChannel","options","_this","randomToken","_this2","locks","relevantLocks","lock","_this3","returnPromise","res","rej","beLeader","_fn","_this4","listener","uFn","sendLeaderMessage","LeaderElection","broadcastChannel","options","_this","randomToken","PROMISE_RESOLVED_VOID","hasLeaderListener","msg","isFromFallbackInterval","_this2","sleep","applyRun","PROMISE_RESOLVED_TRUE","stopCriteria","stopCriteriaPromiseResolve","stopCriteriaPromise","res","handleMessage","waitForAnswerTime","sendLeaderMessage","beLeader","_awaitLeadershipOnce","fn","_this3","listener","uFn","leaderElector","resolved","finish","whenDeathListener","tryOnFallBack","fillOptionsWithDefaults","channel","createLeaderElection","elector","supportsWebLockAPI","LeaderElectionWebLock","SyncStorageService","tokenManager","options","isBrowser","__async","syncChannelName","BroadcastChannel","AuthSdkError","EVENT_ADDED","EVENT_REMOVED","EVENT_RENEWED","EVENT_SET_STORAGE","_a","_b","key","token","oldToken","storage","msg","LeaderElectionService","options","__async","_a","_b","electionChannelName","BroadcastChannel","createLeaderElection","isBrowser","getNow","RenewOnTabActivationService","tokenManager","options","accessToken","idToken","key","__async","isBrowser","AUTO_RENEW","SYNC_STORAGE","LEADER_ELECTION","RENEW_ON_TAB_ACTIVATION","ServiceManager","sdk","options","autoRenew","autoRemove","syncStorage","removeNils","name","svc","__async","_a","srv","canStart","tokenManager","service","LeaderElectionService","AutoRenewService","SyncStorageService","RenewOnTabActivationService","mixinCore","Base","args","AuthStateManager","ServiceManager","__async","originalUri","tokens","state","parseOAuthResponseFromUrl","e","restoreOriginalUri","import_tiny_emitter","import_cross_fetch","sessionExists","sdk","res","getSession","get","session","omit","post","getLink","closeSession","httpRequest","refreshSession","setCookieAndRedirect","sessionToken","redirectUrl","toQueryString","createSessionApi","sdk","closeSession","sessionExists","getSession","refreshSession","setCookieAndRedirect","mixinSession","Base","args","createSessionApi","__async","e","createOktaAuthCore","StorageManagerConstructor","OptionsConstructor","TransactionManagerConstructor","Base","createOktaAuthBase","WithStorage","mixinStorage","WithHttp","mixinHttp","WithSession","mixinSession","WithOAuth","mixinOAuth","mixinCore","webauthn_exports","__export","buildCredentialCreationOptions","buildCredentialRequestOptions","getAssertion","getAttestation","getEnrolledCredentials","authenticatorEnrollments","credentials","enrollement","base64UrlToBuffer","buildCredentialCreationOptions","activationData","buildCredentialRequestOptions","challengeData","getAttestation","credential","response","id","clientData","bufferToBase64Url","attestation","getAssertion","authenticatorData","signatureData","mixinIdx","Base","_a","args","createIdxAPI","webauthn_exports","createOktaAuthIdx","StorageManagerConstructor","OptionsConstructor","TransactionManagerConstructor","Core","createOktaAuthCore","mixinIdx","import_tiny_emitter","import_cross_fetch","import_tiny_emitter","import_cross_fetch","import_tiny_emitter","createBaseOptionsConstructor","args","getStorage","storageUtil","STORAGE_MANAGER_OPTIONS","getCookieSettings","args","isHTTPS","cookieSettings","warn","createStorageOptionsConstructor","BaseOptionsConstructor","createBaseOptionsConstructor","args","getCookieSettings","isHTTPS","getStorage","STORAGE_MANAGER_OPTIONS","import_cross_fetch","appJsonContentTypeRegex","readData","response","formatResult","status","data","isObject","headers","pair","result","fetchRequest","method","url","args","body","contentType","param","value","fetch","crossFetch","fetchPromise","error","_a","createHttpOptionsConstructor","StorageOptionsConstructor","createStorageOptionsConstructor","args","fetchRequest","assertValidConfig","args","scopes","AuthSdkError","issuer","isUrlRegex","createOAuthOptionsConstructor","HttpOptionsConstructor","createHttpOptionsConstructor","options","removeTrailingSlash","isBrowser","toAbsoluteUrl","createCoreOptionsConstructor","OAuthOptionsConstructor","createOAuthOptionsConstructor","options","createIdxOptionsConstructor","CoreOptionsConstructor","createCoreOptionsConstructor","options","import_tiny_emitter","SavedObject","storage","storageName","AuthSdkError","key","value","storageString","obj","logServerSideMemoryStorageWarning","options","isBrowser","warn","BaseStorageManager","storageManagerOptions","cookieOptions","storageUtil","sectionName","overrideOptions","storageType","storageTypes","idx","storage","storageKey","TOKEN_STORAGE_NAME","SavedObject","CACHE_STORAGE_NAME","import_tiny_emitter","createOAuthStorageManager","BaseStorageManager","storageManagerOptions","cookieOptions","storageUtil","options","logServerSideMemoryStorageWarning","storage","storageKey","TRANSACTION_STORAGE_NAME","SavedObject","SHARED_TRANSACTION_STORAGE_NAME","ORIGINAL_URI_STORAGE_NAME","createCoreStorageManager","createOAuthStorageManager","createIdxStorageManager","CoreStorageManager","createCoreStorageManager","storageManagerOptions","cookieOptions","storageUtil","options","storage","isBrowser","warn","transactionStorage","key","transaction","val","AuthSdkError","SavedObject","IDX_RESPONSE_STORAGE_NAME","isObjectWithProperties","obj","isOAuthTransactionMeta","isCustomAuthTransactionMeta","obj","isObjectWithProperties","value","isTransactionMeta","isOAuthTransactionMeta","MAX_ENTRY_LIFETIME","pruneSharedStorage","storageManager","sharedStorage","entries","state","entry","saveTransactionToSharedStorage","meta","loadTransactionFromSharedStorage","isTransactionMeta","clearTransactionFromSharedStorage","createTransactionManager","options","transactionStorage","meta","state","clearTransactionFromSharedStorage","storage","obj","isTransactionMeta","warn","saveTransactionToSharedStorage","pruneSharedStorage","loadTransactionFromSharedStorage","createIdxTransactionManager","TransactionManager","createTransactionManager","options","data","storage","storedValue","isRawIdxResponse","stateHandle","interactionHandle","BaseTransaction","oktaAuth","options","res","headers","rest","__rest","key","import_tiny_emitter","import_cross_fetch","sendRequest","_0","_1","__async","oktaAuth","options","TransactionClass","BaseTransaction","accessTokenObj","accessToken","issuer","url","method","payload","requestUrl","AuthSdkError","res","httpRequest","ret","item","generateRequestFnFromLinks","methodName","links","link","ProfileTransaction","BaseTransaction","oktaAuth","options","createdAt","modifiedAt","profile","ProfileSchemaTransaction","BaseTransaction","oktaAuth","options","PasswordStatus","getProfile","oktaAuth","options","__async","sendRequest","ProfileTransaction","updateProfile","payload","accessToken","getProfileSchema","ProfileSchemaTransaction","EmailStatusTransaction","BaseTransaction","oktaAuth","options","res","id","profile","expiresAt","status","EmailChallengeTransaction","_EmailChallengeTransaction","BaseTransaction","oktaAuth","options","accessToken","res","id","expiresAt","profile","status","_links","__async","generateRequestFnFromLinks","EmailStatusTransaction","payload","EmailTransaction","_EmailTransaction","BaseTransaction","oktaAuth","options","accessToken","res","id","profile","roles","status","_links","__async","generateRequestFnFromLinks","EmailChallengeTransaction","EmailStatusTransaction","payload","getEmails","oktaAuth","options","__async","sendRequest","EmailTransaction","getEmail","id","accessToken","addEmail","payload","deleteEmail","sendEmailChallenge","EmailChallengeTransaction","getEmailChallenge","emailId","challengeId","verifyEmailChallenge","PhoneTransaction","_PhoneTransaction","BaseTransaction","oktaAuth","options","res","accessToken","id","profile","status","_links","__async","generateRequestFnFromLinks","payload","getPhones","oktaAuth","options","__async","sendRequest","PhoneTransaction","getPhone","accessToken","id","addPhone","payload","deletePhone","sendPhoneChallenge","verifyPhoneChallenge","PasswordTransaction","_PasswordTransaction","BaseTransaction","oktaAuth","options","res","accessToken","id","status","created","lastUpdated","_links","PasswordStatus","payload","__async","generateRequestFnFromLinks","getPassword","oktaAuth","options","__async","sendRequest","PasswordTransaction","enrollPassword","accessToken","payload","updatePassword","deletePassword","api_exports","__export","addEmail","addPhone","deleteEmail","deletePassword","deletePhone","enrollPassword","getEmail","getEmailChallenge","getEmails","getPassword","getPhone","getPhones","getProfile","getProfileSchema","sendEmailChallenge","sendPhoneChallenge","updatePassword","updateProfile","verifyEmailChallenge","verifyPhoneChallenge","mixinMyAccount","Base","args","api_exports","name","acc","fn","import_tiny_emitter","import_cross_fetch","addStateToken","res","options","builtArgs","getStateToken","transactionStatus","sdk","args","addStateToken","post","resumeTransaction","tx","stateToken","getSavedStateToken","AuthSdkError","res","introspectAuthn","transactionStep","transactionExists","postToTransaction","url","options","STATE_TOKEN_KEY_NAME","import_tiny_emitter","import_cross_fetch","link2fn","sdk","tx","res","obj","link","ref","name","opts","AuthSdkError","lk","find","method","get","data","addStateToken","params","autoPush","omit","rememberDevice","href","toQueryString","postToTransaction","AuthPollStopError","CustomError","import_tiny_emitter","import_cross_fetch","getPollFn","sdk","res","ref","options","delay$1","rememberDevice","autoPush","transactionCallBack","isNumber","isObject","pollLink","getLink","pollFn","opts","AuthSdkError","href","toQueryString","post","getStateToken","retryCount","recursivePoll","pollRes","AuthPollStopError","delay","err","delayLength","links2fns","sdk","tx","res","obj","ref","fns","linkName","link","getPollFn","fn","link2fn","flattenEmbedded","sdk","tx","res","obj","ref","clone","objArr","o","ol","embedded","key","isObject","fns","links2fns","omit","AuthnTransactionImpl","sdk","tx","res","flattenEmbedded","createAuthnTransactionAPI","sdk","tx","transactionStatus","args","resumeTransaction","transactionExists","introspectAuthn","res","AuthnTransactionImpl","url","options","postToTransaction","import_tiny_emitter","import_cross_fetch","fingerprint","sdk","options","isFingerprintSupported","AuthSdkError","timeout","iframe","listener","promise","resolve","reject","e","msg","addListener","removeListener","mixinAuthn","Base","args","createAuthnTransactionAPI","fingerprint","opts","__async","clone","_postToTransaction","options","OptionsConstructor","createIdxOptionsConstructor","StorageManager","createIdxStorageManager","TransactionManager","createIdxTransactionManager","WithIdx","createOktaAuthIdx","WithMyAccount","mixinMyAccount","WithAuthn","mixinAuthn","OktaAuth","options","compareVersions","v1","v2","n1","validateAndParse","n2","p1","p2","r","compareSegments","compare","v1","v2","operator","assertValidOperator","res","compareVersions","operatorResMap","semver","validateAndParse","version","match","isWildcard","s","tryParse","v","n","forceType","a","b","compareStrings","ap","bp","compareSegments","i","r","operatorResMap","allowedOperators","assertValidOperator","op","OKTA_CONFIG","InjectionToken","OKTA_AUTH","OktaAuthConfigService","config","t","ɵɵinject","ɵɵdefineInjectable","__awaiter$2","thisArg","_arguments","P","generator","adopt","value","resolve","reject","fulfilled","step","e","rejected","result","OktaAuthGuard","oktaAuth","injector","configService","authState","config","Router","filter","NavigationStart","route","_a","nav","originalUri","state","routeData","_b","_c","res","options","t","ɵɵinject","OKTA_AUTH","Injector","OktaAuthConfigService","ɵɵdefineInjectable","__awaiter$1","defaultAuthState","OktaAuthStateService","BehaviorSubject","initialAuthState","groups","mergeMap","isAuthenticated","idToken","key","authority","userInfo","packageInfo","__awaiter","OktaAuthFactoryService","_OktaAuthFactoryService","router","location","compare","AuthSdkError","VERSION","_","baseUrl","routePath","toRelativeUrl","OktaAuthModule","config","OKTA_CONFIG","t","ɵɵdefineNgModule","ɵɵdefineInjector","OktaAuthConfigService","OktaAuthStateService","OktaAuthGuard","OKTA_AUTH","OktaAuthFactoryService","Optional","Router","Location","decode","token","JSON","parse","atob","split","AuthenticationService","accessClaims","_accessTokenClaims","accessClaims$","_accessClaims$","asObservable","idClaims","_idClaims","idClaims$","_idClaims$","isAuthenticated","_okta","isAuthenticated$","pipe","switchMap","claims","from","distinctUntilChanged","accessToken$","_accessToken$","getAccessToken","firstValueOrDefault","take","undefined","getIdToken","_idToken$","constructor","_oktaState","_impersonation","_log","ReplaySubject","_onDestroy$","Subject","takeUntil","subscribe","accessToken","next","idToken","authState$","authState","init","__async","config","options","iss","issuer","props","info","createSafeProps","clearLogin","login","caller","fromUri","window","location","href","_0","toLowerCase","includes","signInWithRedirect","originalUri","logout","url","signOut","state","clearImpersonation","localStorage","removeItem","ngOnDestroy","complete","ɵɵinject","OKTA_AUTH","OktaAuthStateService","ImpersonationService","Logger","factory","ɵfac","providedIn","_pureAssign","func1","func2","_pureRef","value","name","UNDEF_VALUE","NULL_VALUE","EMPTY","FUNCTION","OBJECT","PROTOTYPE","__PROTO__","UNDEFINED","CONSTRUCTOR","SYMBOL","POLYFILL_TAG","LENGTH","NAME","CALL","TO_STRING","ObjClass","ObjProto","StrCls","StrProto","MathCls","ArrCls","ArrProto","ArrSlice","safe","func","argArray","e","safeGet","cb","defValue","result","_primitiveTypes","_createIs","theType","_createObjIs","theName","objToString","isUndefined","value","UNDEFINED","isNullOrUndefined","value","NULL_VALUE","isUndefined","isStrictNullOrUndefined","isDefined","arg","UNDEF_VALUE","isPrimitiveType","theType","_primitiveTypes","UNDEFINED","OBJECT","isString","_createIs","isFunction","FUNCTION","isObject","value","isNullOrUndefined","isArray","_pureRef","ArrCls","isDate","_createObjIs","isNumber","isBoolean","isError","_createObjIs","isPromiseLike","value","isFunction","isTruthy","value","safeGet","objGetOwnPropertyDescriptor","_pureRef","ObjClass","objHasOwnProperty","obj","prop","ObjProto","CALL","objHasOwn","_pureAssign","polyObjHasOwn","objForEachKey","theObject","callbackfn","thisArg","isObject","propMap","_createProp","desc","newValue","key","isUndefined","objDefineProp","objDefineProperties","objDefine","target","key","propDesc","objDefineProp","_createProp","_createKeyValueMap","values","keyType","valueType","completeFn","writable","theMap","objForEachKey","key","value","_assignMapValue","objDefineProp","asString","_pureAssign","StrCls","ERROR_TYPE","dumpObj","object","format","propertyValueDump","EMPTY","objType","ObjProto","TO_STRING","CALL","NULL_VALUE","UNDEF_VALUE","e","throwError","message","throwTypeError","_objFreeze","_pureRef","ObjClass","_doNothing","value","_getProto","__PROTO__","NULL_VALUE","objAssign","objKeys","objDeepFreeze","objForEachKey","key","isArray","isObject","objFreeze","_pureAssign","objGetPrototypeOf","_pureAssign","_pureRef","ObjClass","_getProto","createEnum","values","_createKeyValueMap","objFreeze","createEnumKeyMap","createSimpleMap","values","mapClass","objForEachKey","key","value","_assignMapValue","objFreeze","createTypeMap","_wellKnownSymbolMap","createEnumKeyMap","GLOBAL_CONFIG_KEY","_globalCfg","_getGlobalValue","result","UNDEFINED","_getGlobalConfig","gbl","safe","_unwrapFunction","_unwrapFunctionWithPoly","funcName","clsProto","polyFunc","clsFn","thisArg","theFunc","theArgs","ArrSlice","CALL","throwTypeError","asString","dumpObj","_unwrapProp","propName","mathMax","_pureRef","MathCls","strSlice","_unwrapFunction","StrProto","strSubstring","strSubstr","_unwrapFunctionWithPoly","polyStrSubstr","value","start","length","isNullOrUndefined","throwTypeError","dumpObj","EMPTY","LENGTH","isUndefined","strLeft","count","UNIQUE_REGISTRY_ID","_polySymbols","_globalSymbolRegistry","gblCfg","_getGlobalConfig","_wellKnownSymbolCache","polyNewSymbol","description","theSymbol","asString","SYMBOL","POLYFILL_TAG","polySymbolFor","key","registry","objHasOwn","newSymbol_1","regId_1","objKeys","TO_STRING","polyGetKnownSymbol","name","_wellKnownSymbolCache","result","knownName","_wellKnownSymbolMap","polyNewSymbol","SYMBOL","_globalLazyTestHooks","_initTestHooks","_getGlobalConfig","getLazy","cb","lazyValue","objDefineProp","createCachedValue","value","objDefineProp","WINDOW","_cachedGlobal","_getGlobalInstFn","getFn","theArgs","cachedValue","_globalLazyTestHooks","_initTestHooks","createCachedValue","safe","getGlobal","useCached","_globalLazyTestHooks","_initTestHooks","_cachedGlobal","createCachedValue","safe","_getGlobalValue","NULL_VALUE","getInst","name","gbl","WINDOW","getWindow","hasDocument","getDocument","_getGlobalInstFn","hasWindow","hasNavigator","getNavigator","hasHistory","getHistory","isNode","isWebWorker","_symbol","_symbolFor","_initSymbol","_symbol","createCachedValue","safe","getInst","SYMBOL","_getSymbolKey","key","gblSym","_globalLazyTestHooks","UNDEF_VALUE","hasSymbol","getSymbol","_globalLazyTestHooks","_initTestHooks","_symbol","_initSymbol","getKnownSymbol","name","noPoly","knownName","_wellKnownSymbolMap","sym","UNDEF_VALUE","polyGetKnownSymbol","newSymbol","description","NULL_VALUE","polyNewSymbol","symbolFor","key","_symbolFor","createCachedValue","safe","_getSymbolKey","polySymbolFor","isIterator","value","isFunction","isIterable","isStrictNullOrUndefined","getKnownSymbol","_iterSymbol$1","iterForOf","iter","callbackfn","thisArg","createCachedValue","err","UNDEF_VALUE","iterResult","count","CALL","failed","NULL_VALUE","fnApply","fn","argArray","arrAppend","target","elms","isUndefined","isArray","fnApply","isIterator","isIterable","iterForOf","elm","arrForEach","theArray","callbackfn","thisArg","len","LENGTH","idx","CALL","arrIndexOf","_unwrapFunction","ArrProto","arrMap","_unwrapFunction","ArrProto","arrSlice","theArray","start","end","ArrSlice","CALL","arrReduce","_unwrapFunction","ArrProto","objCreate","_pureAssign","_pureRef","ObjClass","polyObjCreate","obj","type","OBJECT","FUNCTION","throwTypeError","dumpObj","tempFunc","PROTOTYPE","_isProtoArray","objSetPrototypeOf","proto","fn","d","b","_a","createCachedValue","__PROTO__","objForEachKey","key","value","_createCustomError","name","safe","objDefine","NAME","__","CONSTRUCTOR","NULL_VALUE","_setName","baseClass","createCustomError","constructCb","errorBase","theBaseClass","orgName","captureFn","_this","theArgs","_self","fnApply","ArrSlice","CALL","orgProto","objGetPrototypeOf","_unsupportedError","throwUnsupported","message","utcNow","polyUtcNow","_createTrimFn","exp","isNullOrUndefined","EMPTY","polyStrTrim","strTrim","_unwrapFunctionWithPoly","StrProto","polyStrTrim","_fnToString","_objCtrFnString","_gblWindow","isPlainObject","value","OBJECT","hasWindow","getWindow","result","PROTOTYPE","TO_STRING","CALL","ObjClass","proto","objGetPrototypeOf","objHasOwnProperty","CONSTRUCTOR","FUNCTION","_defaultDeepCopyHandler","details","plainObjDeepCopyHandler","defaultDeepCopyHandlers","arrayDeepCopyHandler","functionDeepCopyHandler","dateDeepCopyHandler","_getSetVisited","visitMap","source","newPath","cb","theEntry","arrForEach","entry","_deepCopy","ctx","key","userHandler","newCtx","theType","isPlain","isPrim","NULL_VALUE","isPrimitiveType","newKey","target","_copyProps","newEntry","objDefine","newValue","idx","handler","isNullOrUndefined","objCopyProps","objDeepCopy","isArray","isDate","_doExtend","theArgs","theArg","deepExtend","obj1","obj2","obj3","obj4","obj5","obj6","ArrSlice","objExtend","getLength","_unwrapProp","LENGTH","_perf","getPerformance","_globalLazyTestHooks","_initTestHooks","_perf","createCachedValue","safe","getInst","strSplit","_unwrapFunction","StrProto","setValueByKey","target","path","value","parts","strSplit","lastKey","arrForEach","key","isNullOrUndefined","strEndsWith","_unwrapFunctionWithPoly","StrProto","polyStrEndsWith","value","searchString","length","isString","throwTypeError","dumpObj","searchValue","asString","end","isUndefined","LENGTH","strSubstring","strIndexOf","_unwrapFunction","REF","UNREF","HAS_REF","ENABLED","_createTimerHandler","startTimer","refreshFn","cancelFn","ref","timerId","NULL_VALUE","theTimerHandler","_unref","_cancel","_refresh","_setEnabled","value","objDefineProp","_createTimeoutWith","overrideFn","theArgs","isArr","isArray","len","setFn","UNDEF_VALUE","clearFn","timerFn","handler","fnApply","ArrSlice","CALL","scheduleTimeout","callback","timeout","createTimeout","callback","timeout","_createTimeoutWith","UNDEF_VALUE","ArrSlice","CALL","_a","Constructor","Prototype","strFunction","DynInstFuncTable","DynProxyTag","DynClassName","DynClassNamePrefix","DynInstChkTag","DynAllowInstChkTag","DynProtoDefaultOptions","UnknownValue","str__Proto","DynProtoBaseProto","DynProtoGlobalSettings","DynProtoCurrent","strUseBaseInst","strSetInstFuncs","Obj","_objGetPrototypeOf","_objGetOwnProps","_gbl","getGlobal","_gblInst","_a","_isObjectOrArrayPrototype","target","_isObjectArrayOrFunctionPrototype","_getObjProto","newProto","curProto","objHasOwnProperty","_forEachProp","func","props","name_1","lp","_isDynamicCandidate","funcName","skipOwn","_throwTypeError","message","throwTypeError","_getInstanceFuncs","thisTarget","instFuncs","objCreate","name","_hasVisited","values","value","_getBaseFuncs","classProto","useBaseInst","_instFuncProxy","funcHost","theFunc","instFuncTable","baseFuncs","baseProto","visited","_getInstFunc","proto","currentDynProtoProxy","instFunc","canAddInst","objProto","protoFunc","_getProtoFunc","_populatePrototype","className","baseInstFuncs","setInstanceFunc","_createDynamicPrototype","dynProtoProxy","instFuncs_1","_checkPrototype","thisProto","_getObjName","unknownValue","dynamicProto","theClass","delegateFunc","options","perfOptions","strShimFunction","strShimObject","strShimUndefined","strShimPrototype","ObjClass","ObjProto","strShimPrototype","SymbolObj","getGlobal","ReflectObj","strHasOwnProperty","__objAssignFnImpl","s","i","n","p","ObjProto","__assignFn","objAssign","extendStaticsFn","d","b","ObjClass","__extendsFn","strShimFunction","throwTypeError","__","strShimPrototype","objCreate","__spreadArrayFn","to","from","i","il","j","createEnumStyle","createEnum","createValueMap","createTypeMap","_DYN_TO_LOWER_CASE","_DYN_BLK_VAL","_DYN_LENGTH","_DYN_RD_ONLY","_DYN_NOTIFY","_DYN_WARN_TO_CONSOLE","_DYN_THROW_INTERNAL","_DYN_SET_DF","_DYN_WATCH","_DYN_LOGGER","_DYN_APPLY","_DYN_PUSH","_DYN_SPLICE","_DYN_HDLR","_DYN_CANCEL","_DYN_INITIALIZE","_DYN_IDENTIFIER","_DYN_IS_INITIALIZED","_DYN_GET_PLUGIN","_DYN_POLL_INTERNAL_LOGS","_DYN_NAME","_DYN_TIME","_DYN_PROCESS_NEXT","_DYN_GET_PROCESS_TEL_CONT0","_DYN_GET_NOTIFY_MGR","_DYN_ADD_NOTIFICATION_LIS1","_DYN_REMOVE_NOTIFICATION_2","_DYN_ENABLED","_DYN_STOP_POLLING_INTERNA3","_DYN_UNLOAD","_DYN_ON_COMPLETE","_DYN_VERSION","_DYN_LOGGING_LEVEL_CONSOL4","_DYN_CREATE_NEW","_DYN_TEARDOWN","_DYN_MESSAGE_ID","_DYN_MESSAGE","_DYN_IS_ASYNC","_DYN_DIAG_LOG","_DYN__DO_TEARDOWN","_DYN_UPDATE","_DYN_GET_NEXT","_DYN_SET_NEXT_PLUGIN","_DYN_USER_AGENT","_DYN_SPLIT","_DYN_NODE_TYPE","_DYN_REPLACE","_DYN_LOG_INTERNAL_MESSAGE","_DYN_TYPE","_DYN_HANDLER","_DYN_IS_CHILD_EVT","_DYN_GET_CTX","_DYN_SET_CTX","_DYN_COMPLETE","_DYN_TRACE_ID","_DYN_SPAN_ID","_DYN_TRACE_FLAGS","aggregationErrorType","throwAggregationError","message","sourceErrors","createCustomError","self","args","_DYN_LENGTH","theMessage","arrForEach","srcError","idx","dumpObj","STR_PROMISE","REJECTED","doAwaitResponse","value","cb","doAwait","reason","resolveFn","rejectFn","finallyFn","result","isPromiseLike","err","doFinally","_debugState","_debugResult","_debugHandled","_promiseDebugEnabled","_addDebugState$1","thePromise","stateFn","resultFn","handledFn","props","objDefineProperties","STRING_STATES","REJECTED","DISPATCH_EVENT","_hasInitEvent","_hasInitEventFn","doc","evt","emitEvent","target","evtName","populateEvent","useNewEvent","getDocument","createCachedValue","safe","theEvt","handler","theConsole","getInst","dumpObj","NODE_UNHANDLED_REJECTION","UNHANDLED_REJECTION","_currentPromiseId","_uniquePromiseId","_unhandledRejectionTimeout","_hasPromiseRejectionEvent","dumpFnObj","value","isFunction","dumpObj","_createPromise","newPromise","processor","executor","additionalArgs","arrSlice","_state","_hasResolved","_settledValue","_queue","_id","_uniquePromiseId","_parentId","_currentPromiseId","_handled","_unHandledRejectionHandler","_thePromise","_then","onResolved","onRejected","thenPromise","resolve","reject","handler","value","isUndefined","isFunction","isPromiseLike","e","_processQueue","_catch","_finally","onFinally","thenFinally","catchFinally","reason","_strState","STRING_STATES","pending","_createSettleIfFn","newState","allowState","theValue","scheduleTimeout","_notifyUnhandledRejection","_unhandledRejectionTimeout","isNode","NODE_UNHANDLED_REJECTION","gbl","getWindow","getGlobal","_hasPromiseRejectionEvent","createCachedValue","safe","getInst","STR_PROMISE","emitEvent","UNHANDLED_REJECTION","theEvt","objDefine","objDefineProp","_promiseDebugEnabled","_addDebugState$1","objToString","hasSymbol","getKnownSymbol","_toString","dumpFnObj","throwTypeError","_rejectFn","_createAllPromise","input","values_1","pending_1","iterForOf","item","idx","doAwait","syncItemProcessor","pending","arrForEach","fn","timeoutItemProcessor","timeout","callbackTimeout","isNumber","scheduleTimeout","createAsyncPromise","executor","timeout","_createPromise","timeoutItemProcessor","_promiseCls","createNativePromise","executor","timeout","_promiseCls","createCachedValue","safe","getInst","STR_PROMISE","PrmCls","createAsyncPromise","isFunction","throwTypeError","dumpObj","_state","_strState","STRING_STATES","thePromise","resolve","reject","_resolve","value","_reject","reason","objDefineProp","_promiseCreator","createPromise","executor","timeout","_promiseCreator","createCachedValue","createNativePromise","createAllPromise","_createAllPromise","toStringTagSymbol","getKnownSymbol","UNDEFINED_VALUE","STR_EMPTY","STR_CHANNELS","STR_CORE","STR_CREATE_PERF_MGR","STR_DISABLED","STR_EXTENSION_CONFIG","STR_EXTENSIONS","STR_PROCESS_TELEMETRY","STR_PRIORITY","STR_EVENTS_SENT","STR_EVENTS_DISCARDED","STR_EVENTS_SEND_REQUEST","STR_PERF_EVENT","STR_GET_PERF_MGR","STR_DOMAIN","STR_PATH","STR_NOT_DYNAMIC_ERROR","strGetPrototypeOf","rCamelCase","rNormalizeInvalid","rLeadingNumeric","_getObjProto","isNotNullOrUndefined","value","isNullOrUndefined","normalizeJsName","name","isString","_DYN_REPLACE","rCamelCase","_all","letter","rNormalizeInvalid","rLeadingNumeric","match","strContains","search","strIndexOf","toISOString","date","getExceptionName","object","isError","_DYN_NAME","STR_EMPTY","setValue","target","field","value","valChk","srcChk","theValue","getSetValue","defValue","isNullOrUndefined","isUndefined","_createProxyFunction","source","funcName","srcFunc","src","isFunction","originalArguments","_DYN_APPLY","proxyAssign","chkSet","isObject","_loop_1","isString","objHasOwn","objDefine","proxyFunctionAs","name","theFunc","overwriteTarget","proxyFunctions","functionsToProxy","isArray","arrForEach","theFuncName","createClassFromInterface","defaults","class_1","_this","objForEachKey","optimizeObject","theObject","objAssign","ObjClass","objExtend","obj1","obj2","obj3","obj4","obj5","obj6","theArgs","extended","argLen","_DYN_LENGTH","deep","idx","isBoolean","arg","isArgArray","isArgObj","prop","propOk","newValue","isNewArray","isPlainObject","clone","isFeatureEnabled","feature","cfg","rlt","ft","mode","strDocumentMode","strLocation","strConsole","strJSON","strCrypto","strMsCrypto","strReactNative","strMsie","strTrident","strXMLHttpRequest","_isTrident","_navUserAgentCheck","_enableMocks","_useXDomainRequest","_beaconsSupported","_hasProperty","theClass","property","supported","proto","strShimPrototype","tmp","isUndefined","getLocation","checkForMock","_enableMocks","mockLocation","getInst","strShimObject","strLocation","getConsole","strShimUndefined","strConsole","hasJSON","strJSON","getJSON","getCrypto","strCrypto","getMsCrypto","strMsCrypto","isReactNative","nav","getNavigator","strReactNative","isIE","_DYN_USER_AGENT","_navUserAgentCheck","_isTrident","userAgent","STR_EMPTY","_DYN_TO_LOWER_CASE","strContains","strMsie","strTrident","getIEVersion","userAgentStr","navigator_1","ua","doc","getDocument","_DYN_SPLIT","strDocumentMode","tridentVer","isBeaconsSupported","useCached","_beaconsSupported","hasNavigator","getNavigator","isFetchSupported","withKeepAlive","isSupported","getInst","request","_hasProperty","useXDomainRequest","_useXDomainRequest","strShimUndefined","isXhrSupported","strXMLHttpRequest","xmlHttpRequest","dispatchEvent","target","evnt","createCustomDomEvent","eventName","details","event","detail","isFunction","doc","getDocument","sendCustomEvent","evtName","cfg","customDetails","global","getGlobal","UInt32Mask","MaxUInt32","SEED1","SEED2","_mwcSeeded","_mwcW","_mwcZ","_mwcSeed","seedValue","_autoSeedMwc","now","utcNow","randomValue","maxValue","random32","signed","value","c","getCrypto","getMsCrypto","isIE","mwcRandom32","mwcRandom32","signed","_mwcZ","MaxUInt32","_mwcW","value","newId","maxLength","base64chars","number","random32","chars","result","STR_EMPTY","_DYN_LENGTH","version","instanceName","newId","_dataUid","_canAcceptData","target","_DYN_NODE_TYPE","_getCache","data","theCache","objDefine","createUniqueNamespace","name","includeVersion","normalizeJsName","STR_EMPTY","createElmNodeData","defValue","addDefault","_isConfigDefaults","value","isObject","objHasOwn","_getDefault","dynamicHandler","theConfig","cfgDefaults","defValue","isDefaultValid","isDefined","fallbacks","isArray","lp","_DYN_LENGTH","fallback","fbValue","asString","_resolveDefaultValue","theValue","newValue_1","isPlainObject","objForEachKey","key","_applyDefaultValue","name","defaultValue","isValid","setFn","mergeDf","reference","readOnly","blkDynamicValue","_DYN_RD_ONLY","_DYN_BLK_VAL","isUndefined","usingDefault","cfgValue","isNullOrUndefined","dfName","dfValue","CFG_HANDLER_LINK","symbolFor","BLOCK_DYNAMIC","FORCE_DYNAMIC","_cfgDeepCopy","source","target_1","isArray","_DYN_LENGTH","isPlainObject","objForEachKey","key","value","getDynamicConfigHandler","handler","blockDynamicConversion","_canMakeDynamic","getFunc","state","value","result","FORCE_DYNAMIC","BLOCK_DYNAMIC","isPlainObject","isArray","throwInvalidAccess","message","throwTypeError","arrayMethodsToPatch","_throwDynamicError","logger","name","desc","e","_DYN_THROW_INTERNAL","dumpObj","_patchArray","state","target","isArray","arrForEach","method","orgMethod","args","_i","result","_DYN_APPLY","_makeDynamicObject","_getOwnPropGetter","propDesc","objGetOwnPropertyDescriptor","_createDynamicProperty","theConfig","value","detail","handler","arrIndexOf","_DYN_PUSH","idx","_DYN_SPLICE","checkDynamic","isObjectOrArray","_getProperty","_canMakeDynamic","CFG_HANDLER_LINK","activeHandler","_setProperty","newValue","throwInvalidAccess","isReferenced","objForEachKey","key","UNDEFINED_VALUE","theValue","_setDynamicProperty","_DYN_LOGGER","getter","valueState","newIsObjectOrArray","objDefine","isDynamic","_setDynamicPropertyState","flags","inPlace","rdOnly","blkProp","blockDynamicConversion","objDefineProp","_DYN_HDLR","symPrefix","symPostfix","_createState","cfgHandler","_a","dynamicPropertySymbol","newSymbol","dynamicPropertyReadOnly","dynamicPropertyReferenced","dynamicPropertyBlockValue","dynamicPropertyDetail","_waitingHandlers","_watcherTimer","theState","_useHandler","activeHandler","callback","prevWatcher","arrForEach","detail","_DYN_SET_DF","_DYN_RD_ONLY","e","logger","_DYN_LOGGER","_DYN_THROW_INTERNAL","dumpObj","_notifyWatchers","notifyHandlers","_DYN_CANCEL","watcherFailures_1","handler","_DYN_PUSH","_DYN_LENGTH","throwAggregationError","_addWatcher","scheduleTimeout","idx","arrIndexOf","_trackHandler","details","_DYN_BLK_VAL","_DYN_HDLR","_DYN_NOTIFY","_createAndUseHandler","state","configHandler","handler","_createDynamicHandler","logger","target","inPlace","_a","dynamicHandler","getDynamicConfigHandler","uid","createUniqueNamespace","newTarget","_cfgDeepCopy","theState","_notifyWatchers","_DYN_NOTIFY","_setValue","name","value","_setDynamicProperty","e","_throwDynamicError","_watch","_block","allowUpdate","details","prevUpd","isUndefined","_ref","_setDynamicPropertyState","_rdOnly","_blkPropValue","_applyDefaults","theConfig","defaultValues","objForEachKey","_applyDefaultValue","cfgHandler","_DYN_LOGGER","_DYN_SET_DF","_DYN_WATCH","_DYN_RD_ONLY","_DYN_BLK_VAL","objDefine","_createState","_makeDynamicObject","_logInvalidAccess","message","_DYN_WARN_TO_CONSOLE","_DYN_THROW_INTERNAL","throwInvalidAccess","createDynamicConfig","config","defaultConfig","onConfigChange","CFG_HANDLER_LINK","STR_NOT_DYNAMIC_ERROR","dumpObj","runTargetUnload","target","isAsync","_DYN_UNLOAD","doUnloadAll","targets","done","result","createPromise","resolved","getLength","doAwaitResponse","arrSlice","ChannelControllerPriority","_stringToBoolOrDefault","theValue","defaultValue","theConfig","isNullOrUndefined","isBoolean","asString","_DYN_TO_LOWER_CASE","cfgDfMerge","cfgDfSet","setter","cfgDfValidate","validator","fallBackName","cfgDfBoolean","cfgDfString","defaultValue","isString","asString","STR_EMPTY","listenerFuncs","STR_EVENTS_SENT","STR_EVENTS_DISCARDED","STR_EVENTS_SEND_REQUEST","STR_PERF_EVENT","_aiNamespace","_debugListener","_listenerProxyFunc","name","config","args","dbgExt","getDebugExt","listener","_DYN_APPLY","_getExtensionNamespace","target","getInst","ns","getDebugListener","lp","_DYN_LENGTH","_a","STR_WARN_TO_CONSOLE","AiNonUserActionablePrefix","AiUserActionablePrefix","AIInternalMessagePrefix","defaultValues","_logFuncs","_sanitizeDiagnosticText","text","_DYN_REPLACE","STR_EMPTY","_logToConsole","func","message","theConsole","getConsole","logFunc","isFunction","_InternalLogMessage","msgId","msg","isUserAct","properties","_self","_DYN_MESSAGE_ID","_DYN_MESSAGE","strProps","hasJSON","getJSON","diagnosticText","safeGetLogger","core","config","_DYN_LOGGER","DiagnosticLogger","_messageCount","_messageLogged","_loggingLevelConsole","_loggingLevelTelemetry","_maxInternalMessageLimit","_enableDebug","_unloadHandler","dynamicProto","_self","_setDefaultsFromConfig","_DYN_THROW_INTERNAL","severity","msgId","msg","properties","isUserAct","message","_InternalLogMessage","dumpObj","logFunc","_logFuncs","STR_WARN_TO_CONSOLE","isUndefined","_DYN_MESSAGE","_debugExtMsg","messageKey","_DYN_MESSAGE_ID","_logInternalMessage","_logToConsole","_DYN_WARN_TO_CONSOLE","_DYN_LOG_INTERNAL_MESSAGE","_DYN_UNLOAD","isAsync","_areInternalMessagesThrottled","logMessage","AIInternalMessagePrefix","_DYN_PUSH","throttleLimitMessage","throttleMessage","onConfigChange","createDynamicConfig","defaultValues","details","_DYN_LOGGING_LEVEL_CONSOL4","name","data","dbgExt","getDebugExt","_DYN_DIAG_LOG","_getLogger","logger","DiagnosticLogger","_throwInternal","severity","msgId","msg","properties","isUserAct","_DYN_THROW_INTERNAL","_warnToConsole","message","_DYN_WARN_TO_CONSOLE","_logInternalMessage","_DYN_LOG_INTERNAL_MESSAGE","_a","_b","strToGMTString","strToUTCString","strCookie","strExpires","strIsCookieUseDisabled","strDisableCookiesUsage","strConfigCookieMgr","_supportsCookies","_allowUaSameSite","_parsedCookieValue","_doc","_cookieCache","_globalCookieConfig","rootDefaultConfig","cfgDfMerge","STR_DOMAIN","isNotNullOrUndefined","UNDEFINED_VALUE","_getDoc","getLazy","getDocument","_gblCookieMgr","config","logger","inst","createCookieMgr","_isMgrEnabled","cookieMgr","_isIgnoredCookie","cookieMgrCfg","name","isArray","arrIndexOf","_isBlockedCookie","_isCfgEnabled","rootConfig","cookieMgrConfig","isCfgEnabled","_DYN_ENABLED","isNullOrUndefined","cookieEnabled","isUndefined","safeGetCookieMgr","core","cookieCfg","_DYN_LOGGER","_path","_domain","unloadHandler","_enabled","_getCookieFn","_setCookieFn","_delCookieFn","createDynamicConfig","onConfigChange","details","_DYN_SET_DF","STR_PATH","_getCookieValue","_setCookieValue","enabled","areCookiesSupported","gblManager","value","maxAgeSec","domain","path","result","values","theValue","strTrim","STR_EMPTY","idx","strIndexOf","strLeft","_extractParts","strSubstring","setValue","isTruthy","_isIE","isIE","nowMs","utcNow","expireMs","expiry","_formatDate","location_1","getLocation","uaDisallowsSameSiteNone","getNavigator","_DYN_USER_AGENT","_formatCookieValue","_DYN_UNLOAD","isAsync","doc","e","_throwInternal","getExceptionName","dumpObj","_DYN_LENGTH","parts","_DYN_SPLIT","arrForEach","thePart","theDate","func","isFunction","cookieValue","objForEachKey","theCookie","userAgent","isString","strContains","strEndsWith","defaultValues","_runListeners","listeners","name","isAsync","callback","arrForEach","listener","scheduleTimeout","NotificationManager","config","perfEvtsSendAll","unloadHandler","_listeners","cfgHandler","createDynamicConfig","_DYN_WATCH","details","dynamicProto","_self","objDefine","_DYN_ADD_NOTIFICATION_LIS1","_DYN_PUSH","_DYN_REMOVE_NOTIFICATION_2","index","arrIndexOf","_DYN_SPLICE","STR_EVENTS_SENT","events","STR_EVENTS_DISCARDED","reason","STR_EVENTS_SEND_REQUEST","sendReason","STR_PERF_EVENT","perfEvent","_DYN_IS_CHILD_EVT","_DYN_IS_ASYNC","_DYN_UNLOAD","_finishUnload","waiting","asyncUnload","createPromise","resolve","doAwaitResponse","createAllPromise","strExecutionContextKey","strParentContextKey","strChildrenContextKey","_defaultPerfManager","PerfEvent","name","payloadDetails","isAsync","_self","utcNow","_DYN_NAME","_DYN_IS_ASYNC","_DYN_IS_CHILD_EVT","isFunction","theDetails_1","objDefine","_DYN_GET_CTX","key","_DYN_SET_CTX","value","ctx","_DYN_COMPLETE","childTime","childEvts","isArray","lp","_DYN_LENGTH","childEvt","_DYN_TIME","PerfManager","manager","dynamicProto","_self","src","payloadDetails","isAsync","PerfEvent","perfEvent","_DYN_COMPLETE","isFunction","STR_PERF_EVENT","_DYN_SET_CTX","key","value","ctx","strExecutionContextKey","_DYN_GET_CTX","doPerfActiveKey","doPerf","mgrSource","getSource","func","details","isAsync","perfMgr","STR_GET_PERF_MGR","perfEvt","currentActive","_DYN_GET_CTX","_DYN_SET_CTX","PerfEvent","strParentContextKey","children","strChildrenContextKey","_DYN_PUSH","ex","getGblPerfMgr","_defaultPerfManager","generateW3CId","hexValues","oct","STR_EMPTY","tmp","a","random32","clockSequenceHi","strSubstr","DEFAULT_VERSION","INVALID_VERSION","INVALID_TRACE_ID","INVALID_SPAN_ID","_isValid","value","len","invalidValue","_DYN_LENGTH","_formatValue","defValue","_formatFlags","result","createTraceParent","traceId","spanId","flags","version","_a","_DYN_VERSION","INVALID_VERSION","DEFAULT_VERSION","_DYN_TRACE_ID","isValidTraceId","generateW3CId","_DYN_SPAN_ID","isValidSpanId","strLeft","isValidTraceId","value","_isValid","INVALID_TRACE_ID","isValidSpanId","INVALID_SPAN_ID","formatTraceParent","value","flags","_formatFlags","_DYN_TRACE_FLAGS","_isValid","version","_DYN_VERSION","DEFAULT_VERSION","_formatValue","INVALID_TRACE_ID","INVALID_SPAN_ID","pluginStateData","createElmNodeData","_getPluginState","plugin","initializePlugins","processContext","extensions","initPlugins","lastPlugin","proxy","_DYN_GET_NEXT","pluginState","thePlugin","_DYN_GET_PLUGIN","_DYN_SET_NEXT_PLUGIN","STR_PROCESS_TELEMETRY","isInitialized","_DYN_IS_INITIALIZED","_DYN_PUSH","arrForEach","core","STR_CORE","_DYN_INITIALIZE","_DYN_TEARDOWN","sortPlugins","plugins","extA","extB","result","bHasProcess","STR_PRIORITY","createDistributedTraceContext","parentCtx","trace","_DYN_NAME","newValue","_DYN_TRACE_ID","isValidTraceId","_DYN_SPAN_ID","isValidSpanId","_DYN_TRACE_FLAGS","newTraceFlags","strTelemetryPluginChain","strHasRunFlags","strGetTelCtx","_chainId","_getNextProxyStart","proxy","core","startAt","_DYN_GET_PLUGIN","_DYN_GET_NEXT","createTelemetryProxyChain","_createInternalContext","telemetryChain","dynamicHandler","_nextProxy","_onComplete","createDynamicConfig","_DYN_LOGGER","context","_moveNext","safeGetLogger","_resolveExtCfg","_getConfig","nextPlugin","_iterateChain","_addOnComplete","onComplete","that","args","_i","_DYN_PUSH","isUndefined","nextProxy","_DYN_LENGTH","arrForEach","completeDetails","e","_throwInternal","dumpObj","_getExtCfg","identifier","createIfMissing","idCfg","cfg","extCfg","STR_EXTENSION_CONFIG","defaultValues","newConfig","objForEachKey","field","defaultValue","isNullOrUndefined","cfgValue","_applyDefaultValue","_DYN_SET_DF","theValue","extConfig","rootConfig","cb","plugin","createProcessTelemetryContext","config","internalContext","_processNext","env","STR_PROCESS_TELEMETRY","_createNew","plugins","isArray","_DYN_PROCESS_NEXT","_DYN_CREATE_NEW","createProcessTelemetryUnloadContext","unloadState","_DYN_UNLOAD","createProcessTelemetryUpdateContext","updateState","isFunction","_DYN_UPDATE","firstProxy","add","lastProxy_1","thePlugin","newProxy","createTelemetryPluginProxy","hasProcessTelemetry","hasSetNext","_DYN_SET_NEXT_PLUGIN","chainId","_DYN_IDENTIFIER","STR_PRIORITY","proxyChain","_processTelemetry","_unloadPlugin","_updatePlugin","_getTelCtx","itemCtx","_processChain","processPluginFn","name","details","isAsync","hasRun","hasRunContext","doPerf","STR_CORE","nextId","STR_EMPTY","error","hasNextRun","_DYN_DIAG_LOG","_callProcessTelemetry","pluginState","_getPluginState","_DYN_TEARDOWN","STR_DISABLED","unloadCtx","_callTeardown","pluginCore","_DYN_IS_INITIALIZED","_DYN_IS_ASYNC","updateCtx","_callUpdate","objFreeze","createUnloadHandlerContainer","handlers","_addHandler","handler","_DYN_PUSH","_runHandlers","unloadCtx","unloadState","arrForEach","e","_throwInternal","_DYN_DIAG_LOG","dumpObj","createUnloadHookContainer","_hooks","_doUnload","logger","oldHooks","arrForEach","fn","e","_throwInternal","dumpObj","_addHook","hooks","arrAppend","_a","strGetPlugin","defaultValues","STR_EXTENSION_CONFIG","isNotNullOrUndefined","BaseTelemetryPlugin","_self","_isinitialized","_rootCtx","_nextPlugin","_unloadHandlerContainer","_hookContainer","_initDefaults","dynamicProto","_DYN_INITIALIZE","config","core","extensions","pluginChain","_setDefaults","_DYN_TEARDOWN","unloadCtx","unloadState","STR_CORE","result","unloadDone","theUnloadCtx","createProcessTelemetryUnloadContext","theUnloadState","_DYN_IS_ASYNC","_unloadCallback","_DYN_DIAG_LOG","_DYN_PROCESS_NEXT","_DYN__DO_TEARDOWN","_DYN_UPDATE","updateCtx","updateState","updateDone","theUpdateCtx","createProcessTelemetryUpdateContext","theUpdateState","_updateCallback","_DYN_GET_NEXT","proxyFunctionAs","objDefine","itemCtx","_getTelCtx","_DYN_IS_INITIALIZED","isInitialized","_DYN_SET_NEXT_PLUGIN","next","env","isFunction","STR_PROCESS_TELEMETRY","currentCtx","rootCtx","createProcessTelemetryContext","_DYN_CREATE_NEW","createDynamicConfig","safeGetLogger","_DYN_GET_PROCESS_TEL_CONT0","nextPlugin","createUnloadHookContainer","createUnloadHandlerContainer","_addInitializer","_initializers","id","telemetryInitializer","theInitializer","arrAppend","handler","arrForEach","initializer","idx","_DYN_SPLICE","_runInitializers","item","logger","doNotSendItem","telemetryInitializersCount","_DYN_LENGTH","i","_DYN_APPLY","e","_throwInternal","getExceptionName","dumpObj","TelemetryInitializerPlugin","_super","__extendsFn","_this","_id","_initDefaults","dynamicProto","_self","_base","STR_PROCESS_TELEMETRY","itemCtx","_DYN_DIAG_LOG","_DYN_PROCESS_NEXT","_DYN__DO_TEARDOWN","BaseTelemetryPlugin","_a","strValidationError","strNotificationManager","strSdkUnloadingError","strSdkNotInitialized","defaultConfig","objDeepFreeze","STR_EXTENSIONS","STR_CHANNELS","STR_EXTENSION_CONFIG","STR_CREATE_PERF_MGR","UNDEFINED_VALUE","_createPerfManager","core","notificationMgr","PerfManager","_validateExtensions","logger","channelPriority","allExtensions","coreExtensions","channels","extPriorities","arrForEach","ext","isNullOrUndefined","_DYN_INITIALIZE","throwError","extPriority","STR_PRIORITY","identifier","_DYN_IDENTIFIER","_warnToConsole","_DYN_PUSH","STR_CORE","_isPluginPresent","thePlugin","plugins","exists","plugin","_deepMergeConfig","details","target","newValues","merge","objForEachKey","key","value","isPlainObject","_findWatcher","listeners","newWatcher","theListener","idx","listener","lp","_addDelayedCfgListener","fnd","_DYN_SPLICE","_registerDelayedCfgListener","config","unloadHdl","onConfigChange","AppInsightsCore","_configHandler","_isInitialized","_logger","_eventQueue","_notificationManager","_perfManager","_cfgPerfManager","_cookieManager","_pluginChain","_configExtensions","_channelConfig","_channels","_isUnloading","_telemetryInitializerPlugin","_internalLogsEventName","_evtNamespace","_unloadHandlers","_hookContainer","_debugListener","_traceCtx","_instrumentationKey","_cfgListeners","_extensions","_pluginVersionStringArr","_pluginVersionString","_internalLogPoller","_internalLogPollerListening","_forceStopInternalLogPoller","dynamicProto","_self","_initDefaults","_DYN_IS_INITIALIZED","extensions","notificationManager","createDynamicConfig","_DYN_LOGGER","_addUnloadHook","_DYN_WATCH","extCfg","_initDebugListener","_initPerfManager","cfgExtensions","__spreadArrayFn","_initPluginChain","_DYN_LENGTH","teeController","_DYN_GET_PLUGIN","_throwInternal","_DYN_POLL_INTERNAL_LOGS","controls","channel","objFreeze","telemetryItem","doPerf","STR_GET_PERF_MGR","_notifyInvalidEvent","_DYN_NAME","_DYN_TIME","toISOString","_createTelCtx","_DYN_PROCESS_NEXT","_DYN_GET_PROCESS_TEL_CONT0","_DYN_GET_NOTIFY_MGR","NotificationManager","_DYN_ADD_NOTIFICATION_LIS1","_DYN_REMOVE_NOTIFICATION_2","createCookieMgr","cookieMgr","runTargetUnload","createPerfMgr","isFunction","getGblPerfMgr","perfMgr","eventQueue","event","eventName","_DYN_CANCEL","_startLogPoller","alwaysStart","_DYN_ENABLED","shouldStart","interval","isRunning","createTimeout","_flushInternalLogs","_DYN_STOP_POLLING_INTERNA3","proxyFunctions","_DYN_UNLOAD","isAsync","unloadComplete","cbTimeout","unloadState","_DYN_IS_ASYNC","result","createPromise","resolve","processUnloadCtx","createProcessTelemetryUnloadContext","_getPluginChain","_DYN_ON_COMPLETE","doUnloadAll","_doUnload","flushComplete","_flushChannels","_getPlugin","replaceExisting","addCb","_logOrThrowError","existingPlugin","updateState","_addPlugin","removed","removedPlugins_1","_removePlugins","newConfig","mergeExisting","deepExtend","cfg","theConfig","objHasOwn","_DYN_SET_DF","_DYN_NOTIFY","_doUpdate","createNew","createDistributedTraceContext","traceCtx","proxyFunctionAs","handler","unloadHook","hasDocument","_setPluginVersions","thePlugins","_addPluginVersions","_DYN_VERSION","ver","_DYN_LOGGING_LEVEL_CONSOL4","objDefine","newValue","STR_EMPTY","DiagnosticLogger","newLogger","arrAppend","TelemetryInitializerPlugin","createUniqueNamespace","createUnloadHandlerContainer","createUnloadHookContainer","theCtx","createProcessTelemetryContext","theExtensions","ChannelControllerPriority","sortPlugins","rootCtx","initializePlugins","_DYN_CREATE_NEW","pluginIdentifier","theExt","channelHosts","host","enabled","_getPluginState","STR_DISABLED","pluginState","_DYN_TEARDOWN","removeCb","pluginsToRemove","arrIndexOf","createTelemetryProxyChain","removeComplete","unloadChain","unloadCtx","newConfigExtensions","newChannelConfig","queue","newQueue","logMessage","item","_DYN_MESSAGE_ID","_InternalLogMessage","_DYN_MESSAGE","callBack","sendReason","waiting","doneIterating","cbTimer","doCallback","flushCtx","handled_1","scheduleTimeout","disableDbgExt","getDebugListener","enablePerfMgr","getSetValue","updateCtx","createProcessTelemetryUpdateContext","message","manager","STR_EVENTS_DISCARDED","hooks","strOnPrefix","strAttachEvent","strAddEventHelper","strDetachEvent","strRemoveEventListener","strEvents","strVisibilityChangeEvt","strPageHide","strUnload","strBeforeUnload","strPageHideNamespace","createUniqueNamespace","strPageShowNamespace","rRemoveEmptyNs","rRemoveTrailingEmptyNs","_guid","elmNodeData","createElmNodeData","eventNamespace","_normalizeNamespace","name","_DYN_REPLACE","STR_EMPTY","_getEvtNamespace","eventName","evtNamespace","_a","theNamespace_1","isArray","arrForEach","parsedEvent","_DYN_TYPE","_DYN_SPLIT","_getRegisteredEvents","target","evtName","addDefault","aiEvts","elmNodeData","strEvents","registeredEvents","_doDetach","obj","handlerRef","useCapture","_DYN_TYPE","strRemoveEventListener","strDetachEvent","strOnPrefix","_doAttach","result","strAddEventHelper","strAttachEvent","_doUnregister","events","unRegFn","idx","_DYN_LENGTH","theEvent","_DYN_HANDLER","_DYN_SPLICE","_unregisterEvents","eventCache","objForEachKey","evtType","objKeys","mergeEvtNamespace","theNamespace","namespaces","newNamespaces","isArray","_getEvtNamespace","_DYN_SPLIT","eventOn","eventName","evtNamespace","_a","registeredEvent","_guid","_DYN_PUSH","eventOff","evtName_1","found_1","regEvent","addEventHandler","eventName","callback","evtNamespace","result","w","getWindow","eventOn","doc","getDocument","removeEventHandler","eventOff","_addEventListeners","events","listener","excludeEvents","added","_DYN_LENGTH","arrForEach","name","arrIndexOf","addEventListeners","isArray","removeEventListeners","addPageUnloadEventListener","strBeforeUnload","strUnload","strPageHide","removePageUnloadEventListener","addPageHideEventListener","_handlePageVisibility","evt","newNamespaces","mergeEvtNamespace","strPageHideNamespace","pageUnloadAdded","strVisibilityChangeEvt","removePageHideEventListener","aiInstrumentHooks","cbNames","_arrLoop","arr","fn","lp","_DYN_LENGTH","_doCallbacks","hooks","callDetails","cbArgs","hookCtx","type","hook","idx","cbks","cb","ctx","_DYN_APPLY","err","orgEx","hookErrorCb","_createFunctionHook","aiHook","_a","funcThis","orgArgs","funcArgs","_DYN_NAME","_replaceArg","_createArgs","getInst","target","theArgs","arg","_DYN_PUSH","value","theFunc","_getOwner","name","checkPrototype","checkParentProto","owner","objHasOwnProperty","_getObjProto","InstrumentProto","funcName","callbacks","InstrumentFunc","strShimPrototype","_createInstrumentHook","owner","funcName","fn","callbacks","aiHook","aiInstrumentHooks","newFunc","_createFunctionHook","theHook","id","_arrLoop","hook","idx","_DYN_SPLICE","_DYN_PUSH","InstrumentFunc","target","checkPrototype","checkParentProto","_getOwner","strShimFunction","InstrumentEvent","target","evtName","callbacks","checkPrototype","checkParentProto","owner","_getOwner","_createInstrumentHook","DisabledPropertyName","SampleRate","ProcessLegacy","HttpMethod","DEFAULT_BREEZE_ENDPOINT","DEFAULT_BREEZE_PATH","strNotSpecified","strIkey","RequestHeaders","createValueMap","_DYN_SPLIT","_DYN_LENGTH","_DYN_TO_LOWER_CASE","_DYN_INGESTIONENDPOINT","_DYN_TO_STRING","_DYN_REMOVE_ITEM","_DYN_NAME","_DYN_MESSAGE","_DYN_COUNT","_DYN_PRE_TRIGGER_DATE","_DYN_DISABLED","_DYN_INTERVAL","_DYN_DAYS_OF_MONTH","_DYN_DATE","_DYN_GET_UTCDATE","_DYN_STRINGIFY","_DYN_PATHNAME","_DYN_CORRELATION_HEADER_E0","_DYN_EXCEPTIONS","_DYN_PARSED_STACK","_DYN_PROPERTIES","_DYN_MEASUREMENTS","_DYN_SIZE_IN_BYTES","_DYN_TYPE_NAME","_DYN_SEVERITY_LEVEL","_DYN_PROBLEM_GROUP","_DYN_IS_MANUAL","_DYN__CREATE_FROM_INTERFA1","_DYN_ASSEMBLY","_DYN_FILE_NAME","_DYN_HAS_FULL_STACK","_DYN_LEVEL","_DYN_METHOD","_DYN_LINE","_DYN_DURATION","_DYN_RECEIVED_RESPONSE","dataSanitizeKeyAndAddUniqueness","logger","key","map","origLength","_DYN_LENGTH","field","dataSanitizeKey","i","uniqueField","strSubstring","dsPadNumber","name","nameTrunc","strTrim","asString","_throwInternal","dataSanitizeString","value","maxLength","valueTrunc","dataSanitizeUrl","url","dataSanitizeInput","dataSanitizeMessage","message","messageTrunc","dataSanitizeException","exception","exceptionTrunc","dataSanitizeProperties","properties","tempProps_1","objForEachKey","prop","isObject","hasJSON","getJSON","_DYN_STRINGIFY","e","dataSanitizeMeasurements","measurements","tempMeasurements_1","measure","dataSanitizeId","id","_DYN_TO_STRING","input","_msgId","inputTrunc","num","s","strSubstr","_document","getDocument","_htmlAnchorIdx","_htmlAnchorElement","urlParseUrl","url","anchorIdx","anchorCache","tempAnchor","urlParseHost","_DYN_LENGTH","urlGetAbsoluteUrl","result","a","urlGetCompleteUrl","method","absoluteUrl","urlParseHost","url","inclPort","fullHost","urlParseFullHost","match","_DYN_LENGTH","isString","result","protocol","_DYN_TO_LOWER_CASE","port","_internalEndpoints","DEFAULT_BREEZE_ENDPOINT","DEFAULT_BREEZE_PATH","_correlationIdPrefix","isInternalApplicationInsightsEndpoint","endpointUrl","arrIndexOf","_DYN_TO_LOWER_CASE","correlationIdCanIncludeCorrelationHeader","config","requestUrl","currentHost","_DYN_CORRELATION_HEADER_E0","_DYN_LENGTH","requestHost","urlParseUrl","_DYN_TO_LOWER_CASE","strIndexOf","urlParseFullHost","includedDomains","matchExists_1","arrForEach","domain","regex","excludedDomains","correlationIdGetCorrelationContext","responseHeader","correlationId","correlationIdGetCorrelationContextValue","RequestHeaders","_correlationIdPrefix","key","keyValues","_DYN_SPLIT","keyValue","AjaxHelperParseDependencyPath","logger","absoluteUrl","method","commandName","target","name","data","parsedUrl","_DYN_PATHNAME","pathName","dataSanitizeString","dateTimeUtilsNow","perf","getPerformance","now","utcNow","dateTimeUtilsDuration","start","end","result","isNullOrUndefined","createDistributedTraceContextFromTrace","telemetryTrace","parentCtx","trace","_DYN_NAME","newValue","isValidTraceId","isValidSpanId","newTraceFlags","StorageType","createEnumStyle","DistributedTracingModes","_canUseLocalStorage","_canUseSessionStorage","_storagePrefix","_getLocalStorageObject","utlCanUseLocalStorage","_getVerifiedStorageObject","StorageType","storageType","isNullOrUndefined","getGlobal","uid","_DYN_TO_STRING","storage","getInst","name_1","fail","_DYN_REMOVE_ITEM","_getSessionStorageObject","utlCanUseSessionStorage","utlDisableStorage","utlSetStoragePrefix","storagePrefix","utlEnableStorage","reset","utlGetLocalStorage","logger","name","e","_throwInternal","getExceptionName","dumpObj","utlSetLocalStorage","data","utlRemoveStorage","utlGetSessionStorage","logger","name","storage","_getSessionStorageObject","e","_canUseSessionStorage","_throwInternal","getExceptionName","dumpObj","utlSetSessionStorage","data","utlRemoveSessionStorage","_DYN_REMOVE_ITEM","THROTTLE_STORAGE_PREFIX","ThrottleMgr","core","namePrefix","_self","_canUseLocalStorage","_logger","_config","_localStorageObj","_isTriggered","_namePrefix","_queue","_isReady","_isSpecificDaysGiven","_initConfig","msgId","localObj","_getLocalStorageObjByKey","cfg","_getCfgByKey","_canThrottle","_isTrigger","queue","_getQueueByKey","_DYN_LENGTH","items","arrForEach","item","_flushMessage","_DYN_MESSAGE","result_1","objForEachKey","key","isFlushed","isReady","flushAll","isNullOrUndefined","msgID","message","severity","saveUnsentMsg","isSampledIn","_canSampledIn","localStorageObj","canThrottle","throttled","number","isTriggered","_DYN_COUNT","_DYN_PRE_TRIGGER_DATE","localStorageName","_getLocalStorageName","_resetLocalStorage","i","_sendMessage","safeGetLogger","_setCfgByKey","isNotNullOrUndefined","onConfigChange","details","coreConfig","utlCanUseLocalStorage","configMgr","config","_a","_b","curCfg","_DYN_DISABLED","configInterval","_DYN_INTERVAL","_getIntervalConfig","limit","interval","monthInterval","dayInterval","_DYN_DAYS_OF_MONTH","canUseLocalStorage","curDate","_getThrottleDate","date","_DYN_DATE","monthCheck","monthExpand","_checkInterval","dayCheck","arrIndexOf","_DYN_GET_UTCDATE","daySpan","msgKey","prefix","fix","_isTriggeredOnCurDate","preTriggerDate","_getLocalStorageObj","value","logger","storageName","storageObj","obj","curObj","dateStr","utlSetLocalStorage","strTrim","_DYN_STRINGIFY","start","current","_throwInternal","randomValue","utlGetLocalStorage","isTrigger","_FIELDS_SEPARATOR","_FIELD_KEY_VALUE_SEPARATOR","parseConnectionString","connectionString","kvPairs","_DYN_SPLIT","result","arrReduce","fields","kv","kvParts","_DYN_LENGTH","key","_DYN_TO_LOWER_CASE","value","objKeys","locationPrefix","_DYN_INGESTIONENDPOINT","DEFAULT_BREEZE_ENDPOINT","Envelope","logger","data","name","_this","_self","_DYN_NAME","dataSanitizeString","strNotSpecified","toISOString","Event","logger","name","properties","measurements","_self","_DYN_NAME","dataSanitizeString","strNotSpecified","_DYN_PROPERTIES","dataSanitizeProperties","_DYN_MEASUREMENTS","dataSanitizeMeasurements","NoMethod","strError","strStack","strStackDetails","strErrorSrc","strMessage","strDescription","_stringify","value","convertToString","result","isString","_DYN_STRINGIFY","isFunction","_DYN_TO_STRING","_formatMessage","theEvent","errorType","evtMessage","strIndexOf","_isExceptionDetailsInternal","isObject","_isExceptionInternal","_isStackDetails","details","isArray","_convertStackObj","errorStack","src","items","_DYN_SPLIT","_getOperaStack","errorMessage","stack","lines","lp","_DYN_LENGTH","entry","_getStackFromErrorObj","errorObj","_DYN_MESSAGE","e","_formatStackTrace","stackDetails","arrForEach","_parseStack","parsedStack","frames","level_1","totalSizeInBytes_1","frame","theFrame","_StackFrame","parsedFrame","_DYN_SIZE_IN_BYTES","exceptionParsedStackThreshold","left","right","size","acceptedLeft","acceptedRight","lSize","rSize","howMany","_getErrorType","typeName","_DYN_NAME","funcNameRegex","results","_formatErrorCode","Exception","logger","exception","properties","measurements","severityLevel","id","_self","_DYN_EXCEPTIONS","_DYN_PROPERTIES","_DYN_MEASUREMENTS","_DYN_SEVERITY_LEVEL","_DYN_PROBLEM_GROUP","isNullOrUndefined","_DYN_IS_MANUAL","_ExceptionDetails","dataSanitizeProperties","dataSanitizeMeasurements","message","url","lineNumber","columnNumber","error","evt","errorSrc","_a","_DYN_TYPE_NAME","exceptions","arrMap","ex","_DYN__CREATE_FROM_INTERFA1","exceptionData","__assignFn","_b","problemGroup","isManual","exceptionDetailsInterface","assembly","fileName","line","_DYN_HAS_FULL_STACK","_ExceptionDetails","logger","exception","properties","_self","_isExceptionDetailsInternal","_DYN_TYPE_NAME","_DYN_MESSAGE","strStack","_DYN_PARSED_STACK","_DYN_HAS_FULL_STACK","error","evt","isError","strError","dataSanitizeString","_getErrorType","strNotSpecified","dataSanitizeMessage","_formatMessage","stack","strStackDetails","_getStackFromErrorObj","_parseStack","isArray","arrMap","frame","_DYN_ASSEMBLY","_DYN_FILE_NAME","dataSanitizeException","_formatStackTrace","_DYN_LENGTH","_a","parsedStack","exceptionDetailsInterface","_StackFrame","_DYN__CREATE_FROM_INTERFA1","exceptionDetails","__assignFn","_StackFrame","sourceFrame","level","_self","_DYN_SIZE_IN_BYTES","frame","_DYN_LEVEL","_DYN_METHOD","NoMethod","_DYN_ASSEMBLY","strTrim","_DYN_FILE_NAME","_DYN_LINE","matches","_DYN_LENGTH","DataPoint","Metric","logger","name","value","count","min","max","stdDev","properties","measurements","_self","dataPoint","DataPoint","_DYN_COUNT","_DYN_NAME","dataSanitizeString","strNotSpecified","_DYN_PROPERTIES","dataSanitizeProperties","_DYN_MEASUREMENTS","dataSanitizeMeasurements","strEmpty","msToTimeSpan","totalms","ms","strEmpty","sec","min","hour","days","_DYN_LENGTH","isCrossOriginError","message","url","lineNumber","columnNumber","error","isString","PageView","logger","name","url","durationMs","properties","measurements","id","_self","dataSanitizeId","dataSanitizeUrl","_DYN_NAME","dataSanitizeString","strNotSpecified","_DYN_DURATION","msToTimeSpan","_DYN_PROPERTIES","dataSanitizeProperties","_DYN_MEASUREMENTS","dataSanitizeMeasurements","RemoteDependencyData","logger","id","absoluteUrl","commandName","value","success","resultCode","method","requestAPI","correlationContext","properties","measurements","_self","_DYN_DURATION","msToTimeSpan","dataSanitizeString","dependencyFields","AjaxHelperParseDependencyPath","dataSanitizeUrl","_DYN_NAME","_DYN_PROPERTIES","dataSanitizeProperties","_DYN_MEASUREMENTS","dataSanitizeMeasurements","Trace","logger","message","severityLevel","properties","measurements","_self","strNotSpecified","_DYN_MESSAGE","dataSanitizeMessage","_DYN_PROPERTIES","dataSanitizeProperties","_DYN_MEASUREMENTS","dataSanitizeMeasurements","_DYN_SEVERITY_LEVEL","PageViewPerformance","logger","name","url","unused","properties","measurements","cs4BaseData","_self","dataSanitizeUrl","_DYN_NAME","dataSanitizeString","strNotSpecified","_DYN_PROPERTIES","dataSanitizeProperties","_DYN_MEASUREMENTS","dataSanitizeMeasurements","_DYN_DURATION","_DYN_RECEIVED_RESPONSE","Data","baseType","data","SeverityLevel","createEnumStyle","_aiNameFunc","baseName","aiName","name","_aiApplication","_aiDevice","_aiLocation","_aiOperation","_aiSession","_aiUser","_aiCloud","_aiInternal","ContextTagKeys","_super","__extendsFn","createClassFromInterface","createTelemetryItem","item","baseType","envelopeName","logger","customProperties","systemProperties","_a","dataSanitizeString","strNotSpecified","isNullOrUndefined","throwError","iKey","strIkey","telemetryItem","_DYN_NAME","toISOString","objForEachKey","prop","value","TelemetryItemCreator","Extensions","CtxTagKeys","ContextTagKeys","createDomEvent","eventName","event","isFunction","doc","getDocument","PropertiesPluginIdentifier","BreezeChannelIdentifier","AnalyticsPluginIdentifier","_DYN_TO_STRING","_DYN_IS_STORAGE_USE_DISAB0","_DYN__ADD_HOOK","_DYN_CORE","_DYN_DATA_TYPE","_DYN_ENVELOPE_TYPE","_DYN_DIAG_LOG","_DYN_TRACK","_DYN_TRACK_PAGE_VIEW","_DYN_TRACK_PREVIOUS_PAGE_1","_DYN_SEND_PAGE_VIEW_INTER2","_DYN_GET_ENTRIES_BY_TYPE","_DYN_START_TIME","_DYN_DURATION","_DYN_SEND_PAGE_VIEW_PERFO3","_DYN_POPULATE_PAGE_VIEW_P4","_DYN_HREF","_DYN_SEND_EXCEPTION_INTER5","_DYN_EXCEPTION","_DYN_ERROR","_DYN__ONERROR","_DYN_ERROR_SRC","_DYN_LINE_NUMBER","_DYN_COLUMN_NUMBER","_DYN_MESSAGE","_DYN__CREATE_AUTO_EXCEPTI6","_DYN_ADD_TELEMETRY_INITIA7","_DYN_OVERRIDE_PAGE_VIEW_D8","_DYN_AUTO_TRACK_PAGE_VISI9","_DYN_IS_BROWSER_LINK_TRAC10","_DYN_LENGTH","_DYN_ENABLE_AUTO_ROUTE_TR11","_DYN_ENABLE_UNHANDLED_PRO12","_DYN_AUTO_UNHANDLED_PROMI13","_DYN_IS_PERFORMANCE_TIMIN14","_DYN_GET_PERFORMANCE_TIMI15","_DYN_NAVIGATION_START","_DYN_SHOULD_COLLECT_DURAT16","_DYN_IS_PERFORMANCE_TIMIN17","_DYN_RESPONSE_START","_DYN_REQUEST_START","_DYN_LOAD_EVENT_END","_DYN_RESPONSE_END","_DYN_CONNECT_END","_DYN_PAGE_VISIT_START_TIM18","PageViewManager","appInsights","overridePageViewDuration","core","pageViewPerformanceManager","dynamicProto","_self","queueTimer","itemQueue","pageViewPerformanceSent","_logger","_flushChannels","isAsync","_startTimer","scheduleTimeout","allItems","doFlush","arrForEach","item","_DYN_LENGTH","_addQueue","cb","_DYN_TRACK_PAGE_VIEW","pageView","customProperties","name","isNullOrUndefined","doc","getDocument","uri","location_1","getLocation","_DYN_HREF","_DYN_IS_PERFORMANCE_TIMIN14","_DYN_SEND_PAGE_VIEW_INTER2","isWebWorker","_throwInternal","pageViewSent","customDuration","start","_DYN_GET_PERFORMANCE_TIMI15","_DYN_NAVIGATION_START","dateTimeUtilsDuration","_DYN_SHOULD_COLLECT_DURAT16","duration","_DYN_DURATION","maxDurationLimit","processed","_DYN_IS_PERFORMANCE_TIMIN17","pageViewPerformance","_DYN_POPULATE_PAGE_VIEW_P4","_DYN_SEND_PAGE_VIEW_PERFO3","e","getExceptionName","dumpObj","unloadCtx","unloadState","doFlush_1","MAX_DURATION_ALLOWED","botAgentNames","_isPerformanceTimingSupported","perf","getPerformance","_isPerformanceNavigationTimingSupported","_DYN_GET_ENTRIES_BY_TYPE","_DYN_LENGTH","_isPerformanceTimingDataReady","timing","_DYN_NAVIGATION_START","_DYN_RESPONSE_START","_DYN_REQUEST_START","_DYN_LOAD_EVENT_END","_DYN_RESPONSE_END","_DYN_CONNECT_END","_getPerformanceTiming","_getPerformanceNavigationTiming","_shouldCollectDuration","durations","_i","_navigator","getNavigator","userAgent","isGoogleBot","i","strIndexOf","PageViewPerformanceManager","core","_logger","safeGetLogger","dynamicProto","_self","_DYN_POPULATE_PAGE_VIEW_P4","pageViewPerformance","navigationTiming","total","network","request","response","dom","_DYN_DURATION","_DYN_START_TIME","dateTimeUtilsDuration","_throwInternal","_DYN_SHOULD_COLLECT_DURAT16","msToTimeSpan","_DYN_GET_PERFORMANCE_TIMI15","_DYN_IS_PERFORMANCE_TIMIN14","_DYN_IS_PERFORMANCE_TIMIN17","PageVisitTimeManager","logger","pageVisitTimeTrackingHandler","prevPageVisitDataKeyName","dynamicProto","_self","_DYN_TRACK_PREVIOUS_PAGE_1","currentPageName","currentPageUrl","prevPageVisitTimeData","restartPageVisitTimer","e","_warnToConsole","dumpObj","pageName","pageUrl","prevPageVisitData","stopPageVisitTimer","utlCanUseSessionStorage","utlGetSessionStorage","throwError","currPageVisitDataStr","getJSON","PageVisitData","utlSetSessionStorage","pageVisitEndTime","utcNow","pageVisitDataJsonStr","hasJSON","_DYN_PAGE_VISIT_START_TIM18","utlRemoveSessionStorage","objDefine","PageVisitData","pageName","pageUrl","_DYN_PAGE_VISIT_START_TIM18","utcNow","Timing","logger","name","_self","_events","_throwInternal","url","properties","measurements","start","end","duration","dateTimeUtilsDuration","_a","strEvent","_dispatchEvent","target","evnt","_getReason","error","reason","isString","isFunction","_DYN_TO_STRING","dumpObj","MinMilliSeconds","defaultValues","objDeepFreeze","cfgDfSet","_chkConfigMilliseconds","cfgDfBoolean","_DYN_AUTO_TRACK_PAGE_VISI9","_DYN_OVERRIDE_PAGE_VIEW_D8","_DYN_ENABLE_UNHANDLED_PRO12","_DYN_AUTO_UNHANDLED_PROMI13","cfgDfValidate","_chkSampling","_DYN_IS_STORAGE_USE_DISAB0","_DYN_IS_BROWSER_LINK_TRAC10","_DYN_ENABLE_AUTO_ROUTE_TR11","cfgDfString","value","defValue","_updateStorageUsage","extConfig","isUndefined","utlDisableStorage","utlEnableStorage","AnalyticsPlugin","_super","__extendsFn","_this","AnalyticsPluginIdentifier","_eventTracking","_pageTracking","_pageViewManager","_pageViewPerformanceManager","_pageVisitTimeManager","_preInitTelemetryInitializers","_isBrowserLinkTrackingEnabled","_browserLinkInitializerAdded","_enableAutoRouteTracking","_historyListenerAdded","_disableExceptionTracking","_autoExceptionInstrumented","_enableUnhandledPromiseRejectionTracking","_autoUnhandledPromiseInstrumented","_extConfig","_autoTrackPageVisitTime","_trackAjaxAttempts","_prevUri","_currUri","_evtNamespace","dynamicProto","_self","_base","_addHook","_DYN__ADD_HOOK","_initDefaults","safeGetCookieMgr","_DYN_CORE","env","itemCtx","event","customProperties","telemetryItem","createTelemetryItem","Event","_DYN_DATA_TYPE","_DYN_ENVELOPE_TYPE","_DYN_DIAG_LOG","_DYN_TRACK","e","_throwInternal","getExceptionName","name","properties","measurements","trace","Trace","metric","Metric","_DYN_TRACK_PAGE_VIEW","pageView","inPv","__assignFn","_DYN_TRACK_PREVIOUS_PAGE_1","_DYN_SEND_PAGE_VIEW_INTER2","systemProperties","doc","getDocument","perf","getPerformance","navigationEntries","_DYN_GET_ENTRIES_BY_TYPE","loadEventStart","_DYN_START_TIME","duration","_DYN_DURATION","PageView","_DYN_SEND_PAGE_VIEW_PERFO3","pageViewPerformance","PageViewPerformance","inPvp","_DYN_POPULATE_PAGE_VIEW_P4","url","measurement","loc","getLocation","_DYN_HREF","_DYN_SEND_EXCEPTION_INTER5","exception","theError","_DYN_EXCEPTION","_DYN_ERROR","isError","strNotSpecified","exceptionPartB","Exception","_DYN__ONERROR","evt","_window","getWindow","errorSrc","_DYN_ERROR_SRC","_DYN_LINE_NUMBER","_DYN_COLUMN_NUMBER","_DYN_MESSAGE","isCrossOriginError","_sendCORSException","_DYN__CREATE_AUTO_EXCEPTI6","errorString","_DYN_ADD_TELEMETRY_INITIA7","telemetryInitializer","config","core","extensions","pluginChain","isNullOrUndefined","throwError","mergeEvtNamespace","createUniqueNamespace","arrForEach","initializer","_populateDefaults","PageViewPerformanceManager","PageViewManager","PageVisitTimeManager","pageName","pageUrl","pageVisitTime","trackPageVisitTime","Timing","pageViewItem","hasWindow","_updateExceptionTracking","_updateLocationChange","unloadCtx","unloadState","eventOff","identifier","onConfigChange","ctx","createProcessTelemetryContext","utlSetStoragePrefix","_addDefaultTelemetryInitializers","browserLinkPaths_1","dropBrowserLinkRequests","envelope","RemoteDependencyData","remoteData","i","_DYN_LENGTH","strIndexOf","locn","InstrumentEvent","callDetails","message","lineNumber","columnNumber","_addUnhandledPromiseRejectionTracking","win","hasHistory","_history","getHistory","strShimUndefined","_addHistoryListener","_getDistributedTraceCtx","distributedTraceCtx","PropertiesPluginIdentifier","context","createDistributedTraceContextFromTrace","history","namePrefix","_popstateHandler","createDomEvent","_locationChangeHandler","generateW3CId","traceLocationName","dataSanitizeString","scheduleTimeout","uri","eventOn","_location","severity","msgId","msg","isUserAct","location","objDefine","BaseTelemetryPlugin","_DYN_FEATURE_OPT_IN","_DYN_ON_CFG_CHANGE_RECEIV0","_DYN_NON_OVERRIDE_CONFIGS","_DYN_SCHEDULE_FETCH_TIMEO1","replaceByNonOverrideCfg","cfg","nonOverrideConfigs","curLevel","maxLevel","exceedMaxLevel","curCfg_1","objExtend","objForEachKey","key","nonOverrideVal","isObject","F","M","ON","OFF","resolveCdnFeatureCfg","field","cdnCfg","userOptInDetails","_a","cdnFt","_DYN_FEATURE_OPT_IN","cdnM","cdnOnV","cdnOffV","userFt","userM","userOnV","userOffV","blockCdn","mFld","onFld","offFld","mode","onV","offV","applyCdnfeatureCfg","core","optInMap","cdnConfig_1","featureVal","isNullOrUndefined","config","val","setValueByKey","_overrideCdnCfgByFeature","ftVal","dVal","target","_a","EVENT_NAME","STR_GET_METHOD","FETCH_TIMEOUT","udfVal","defaultNonOverrideCfg","_defaultConfig","objDeepFreeze","_DYN_ON_CFG_CHANGE_RECEIV0","_DYN_SCHEDULE_FETCH_TIMEO1","_DYN_NON_OVERRIDE_CONFIGS","CfgSyncPlugin","_super","__extendsFn","_this","_extensionConfig","_mainConfig","_evtName","_evtNamespace","_cfgUrl","_timeoutHandle","_receiveChanges","_broadcastChanges","_blkCdnCfg","_fetchTimeout","_retryCnt","_onCfgChangeReceive","_nonOverrideConfigs","_fetchFn","_overrideFetchFn","_overrideSyncFn","_paused","dynamicProto","_self","_base","_initDefaults","config","core","extensions","pluginChain","mergeEvtNamespace","createUniqueNamespace","_populateDefaults","_clearScheduledTimer","_setupTimer","_setCfg","customDetails","_sendCfgsyncEvents","eventName","_updateEventListenerName","unloadCtx","unloadState","_eventOff","identifier","onConfigChange","ctx","createProcessTelemetryContext","preBlkCdn","isNullOrUndefined","_onFetchComplete","newEvtName","_getFetchFnInterface","isAutoSync","global_1","getGlobal","eventOff","isFunction","sendCustomEvent","name","_addEventListener","isFetchSupported","_fetchSender","isXhrSupported","_xhrSender","url","oncomplete","global","fetchFn","init","request","doAwaitResponse","result","response","_doOnComplete","res","xhr_1","status","JSON_1","getJSON","cdnCfg","cfg","applyCdnfeatureCfg","global_2","eventOn","event","cfgEvent","newCfg","isPlainObject","_replaceTartgetByKeys","level","_cfg","replaceByNonOverrideCfg","scheduleTimeout","env","itemCtx","BaseTelemetryPlugin","STR_DURATION","_DYN_TAGS","_DYN_DEVICE_TYPE","_DYN_DATA","_DYN_NAME","_DYN_TRACE_ID","_DYN_LENGTH","_DYN_STRINGIFY","_DYN_MEASUREMENTS","_DYN_DATA_TYPE","_DYN_ENVELOPE_TYPE","_DYN_TO_STRING","_DYN_ON_LINE","_DYN_IS_ONLINE","_DYN__GET","_DYN_ENQUEUE","_DYN_COUNT","_DYN_EVENTS_LIMIT_IN_MEM","_DYN_PUSH","_DYN_EMIT_LINE_DELIMITED_0","_DYN_CLEAR","_DYN_BATCH_PAYLOADS","_DYN_CREATE_NEW","_DYN_MARK_AS_SENT","_DYN_CLEAR_SENT","_DYN_BUFFER_OVERRIDE","_DYN__BUFFER__KEY","_DYN__SENT__BUFFER__KEY","_DYN__MAX__BUFFER__SIZE","_DYN_TRIGGER_SEND","_DYN_DIAG_LOG","_DYN__SENDER","_DYN_CUSTOM_HEADERS","_DYN_MAX_BATCH_SIZE_IN_BY1","_DYN_ONUNLOAD_DISABLE_BEA2","_DYN_IS_BEACON_API_DISABL3","_DYN_ENABLE_SESSION_STORA4","_DYN__BUFFER","_DYN_INSTRUMENTATION_KEY","_DYN_DISABLE_XHR","_DYN_ONUNLOAD_DISABLE_FET5","_DYN_CONVERT_UNDEFINED","_DYN_MAX_BATCH_INTERVAL","_DYN_BASE_TYPE","_DYN_SAMPLE_RATE","_DYN__XHR_READY_STATE_CHA6","_DYN__ON_ERROR","_DYN__ON_PARTIAL_SUCCESS","_DYN__ON_SUCCESS","_DYN_ITEMS_ACCEPTED","_DYN_ITEMS_RECEIVED","_DYN_SET_REQUEST_HEADER","_DYN_EVENTS_SEND_REQUEST","_DYN_GET_SAMPLING_SCORE","_DYN_GET_HASH_CODE_SCORE","strBaseType","strBaseData","strProperties","strTrue","_setValueIf","target","field","value","setValue","isTruthy","_extractPartAExtensions","logger","item","env","envTags","_DYN_TAGS","itmExt","itmTags","extUser","CtxTagKeys","extApp","extDevice","_DYN_DEVICE_TYPE","web","envData","_DYN_DATA","envBaseData","envProps","extOs","_DYN_NAME","extTrace","dataSanitizeString","_DYN_TRACE_ID","tgs","i","_DYN_LENGTH","tg","objForEachKey","key","theTags","__assignFn","EnvelopeCreator","optimizeObject","_extractPropsAndMeasurements","data","properties","measurements","isNullOrUndefined","isNumber","isString","hasJSON","getJSON","_DYN_STRINGIFY","_convertPropsUndefinedToCustomDefinedValue","customUndefinedValue","_createEnvelope","envelopeType","telemetryItem","envelope","Envelope","SampleRate","toISOString","iKeyNoDashes","EnvelopeCreatorInit","_throwInternal","DependencyEnvelopeCreator","customMeasurements","_DYN_MEASUREMENTS","customProperties","bd","_warnToConsole","method","HttpMethod","remoteDepData","RemoteDependencyData","STR_DURATION","Data","_DYN_DATA_TYPE","_DYN_ENVELOPE_TYPE","EventEnvelopeCreator","Event","eventName","eventData","ExceptionEnvelopeCreator","exData","Exception","MetricEnvelopeCreator","baseData","props","baseMetricData","Metric","PageViewEnvelopeCreator","duration","currentContextId","id","name","url","_DYN_TO_STRING","pageTags","pageViewData","PageView","PageViewPerformanceEnvelopeCreator","PageViewPerformance","TraceEnvelopeCreator","message","severityLevel","Trace","_disableEvents","target","evtNamespace","eventOff","createOfflineListener","parentEvtNamespace","_a","_document","getDocument","_navigator","getNavigator","_isListening","_onlineStatus","_evtNamespace","mergeEvtNamespace","createUniqueNamespace","_enableEvents","getWindow","isNullOrUndefined","_DYN_ON_LINE","enabled","eventOn","_setOnline","_setOffline","_isOnline","result","_unload","win","isUndefined","_DYN_IS_ONLINE","BaseSendBuffer","logger","config","_buffer","_bufferFullMessageSent","_DYN__GET","buffer","dynamicProto","_self","_DYN_ENQUEUE","payload","_DYN_COUNT","_DYN_EVENTS_LIMIT_IN_MEM","_throwInternal","_DYN_PUSH","_DYN_LENGTH","size","lp","_DYN_EMIT_LINE_DELIMITED_0","_DYN_CLEAR","_DYN_BATCH_PAYLOADS","batch","_DYN_CREATE_NEW","newLogger","newConfig","canUseSessionStorage","items","newBuffer","SessionStorageSendBuffer","ArraySendBuffer","arrForEach","_super","__extendsFn","_this","_base","_DYN_MARK_AS_SENT","_DYN_CLEAR_SENT","SessionStorageSendBuffer","_super","__extendsFn","logger","config","_this","_bufferFullMessageSent","_namePrefix","_a","_DYN_BUFFER_OVERRIDE","utlGetSessionStorage","utlSetSessionStorage","getItem","setItem","dynamicProto","_self","_base","bufferItems","_getBuffer","_DYN__BUFFER__KEY","notDeliveredItems","_DYN__SENT__BUFFER__KEY","buffer","_DYN_LENGTH","_DYN__MAX__BUFFER__SIZE","_setBuffer","_DYN_ENQUEUE","payload","_DYN_COUNT","_throwInternal","_DYN__GET","_DYN_CLEAR","_DYN_MARK_AS_SENT","_removePayloadsFromBuffer","sentElements","_DYN_CLEAR_SENT","_DYN_CREATE_NEW","newLogger","newConfig","canUseSessionStorage","unsentItems","sentItems","newBuffer","ArraySendBuffer","arrForEach","payloads","remaining","value","isFunction","arrIndexOf","_DYN_PUSH","key","prefixedKey","bufferJson","buffer_1","getJSON","isString","isArray","e","getExceptionName","dumpObj","_DYN_STRINGIFY","BaseSendBuffer","Serializer","logger","dynamicProto","_self","input","output","_serializeObject","getJSON","_DYN_STRINGIFY","e","_throwInternal","isFunction","_DYN_TO_STRING","source","name","circularReferenceCheck","_serializeStringMap","isArray","_serializeArray","objForEachKey","field","contract","isRequired","isHidden","isPresent","isObj","isObject","value","sources","i","_DYN_LENGTH","item","_DYN_PUSH","map","expectedType","num","MIN_INPUT_LENGTH","HashCodeScoreGenerator","key","score","input","_DYN_LENGTH","hash","SamplingScoreGenerator","_self","hashCodeGenerator","HashCodeScoreGenerator","keys","ContextTagKeys","_DYN_GET_SAMPLING_SCORE","item","score","_DYN_TAGS","_DYN_GET_HASH_CODE_SCORE","_DYN_TRACE_ID","Sample","sampleRate","logger","_logger","safeGetLogger","_DYN_SAMPLE_RATE","SamplingScoreGenerator","envelope","samplingPercentage","isSampledIn","Metric","_DYN_DATA_TYPE","_DYN_GET_SAMPLING_SCORE","_a","_b","UNDEFINED_VALUE","FetchSyncRequestSizeLimitBytes","_getResponseText","xhr","defaultAppInsightsChannelConfig","objDeepFreeze","cfgDfValidate","isTruthy","DEFAULT_BREEZE_ENDPOINT","DEFAULT_BREEZE_PATH","_DYN_EMIT_LINE_DELIMITED_0","cfgDfBoolean","_DYN_MAX_BATCH_INTERVAL","_DYN_MAX_BATCH_SIZE_IN_BY1","_DYN_ENABLE_SESSION_STORA4","_DYN_IS_BEACON_API_DISABL3","_DYN_DISABLE_XHR","_DYN_ONUNLOAD_DISABLE_FET5","_DYN_ONUNLOAD_DISABLE_BEA2","_DYN_INSTRUMENTATION_KEY","_chkSampling","_DYN_CUSTOM_HEADERS","_DYN_CONVERT_UNDEFINED","_DYN_EVENTS_LIMIT_IN_MEM","_DYN_BUFFER_OVERRIDE","value","EnvelopeTypeCreator","Event","EventEnvelopeCreator","Trace","TraceEnvelopeCreator","PageView","PageViewEnvelopeCreator","PageViewPerformance","PageViewPerformanceEnvelopeCreator","Exception","ExceptionEnvelopeCreator","Metric","MetricEnvelopeCreator","RemoteDependencyData","DependencyEnvelopeCreator","Sender","_super","__extendsFn","_this","BreezeChannelIdentifier","_consecutiveErrors","_retryAt","_lastSend","_paused","_timeoutHandle","_serializer","_stamp_specific_redirects","_headers","_syncFetchPayload","_fallbackSender","_syncUnloadSender","_offlineListener","_evtNamespace","_endpointUrl","_orgEndpointUrl","_maxBatchSizeInBytes","_beaconSupported","_customHeaders","_disableTelemetry","_instrumentationKey","_convertUndefined","_isRetryDisabled","_maxBatchInterval","_sessionStorageUsed","_bufferOverrideUsed","_namePrefix","_enableSendPromise","dynamicProto","_self","_base","_initDefaults","_clearScheduledTimer","_checkMaxSize","_setupTimer","isAsync","callBack","sendReason","_DYN_TRIGGER_SEND","e","_throwInternal","_DYN_DIAG_LOG","getExceptionName","dumpObj","_doUnloadSend","name","config","core","extensions","pluginChain","identifier","Serializer","_DYN__SENDER","diagLog","mergeEvtNamespace","createUniqueNamespace","createOfflineListener","onConfigChange","details","utlSetStoragePrefix","ctx","createProcessTelemetryContext","senderConfig","objDefine","arrForEach","customHeader","isBeaconsSupported","bufferOverride","canUseSessionStorage","utlCanUseSessionStorage","namePrefix","shouldUpdate","_DYN__BUFFER","_DYN_CREATE_NEW","SessionStorageSendBuffer","ArraySendBuffer","Sample","_validateInstrumentationKey","isInternalApplicationInsightsEndpoint","_DYN_LENGTH","sendPostFunc","useXDomainRequest","_xdrSender","isXhrSupported","_xhrSender","isFetchSupported","_fetchSender","_beaconSender","_fetchKeepAliveSender","telemetryItem","itemCtx","diagLogger","_DYN_BASE_TYPE","_isSampledIn","SampleRate","_DYN_SAMPLE_RATE","defaultEnvelopeIkey","aiEnvelope_1","doNotSendItem_1","_DYN_TAGS","ProcessLegacy","_warnToConsole","payload","buffer","_DYN_ENQUEUE","_DYN__XHR_READY_STATE_CHA6","countOfItemsInPayload","_checkResponsStatus","_formatErrorMessageXhr","async","forcedSender","result","_DYN_CLEAR","_DYN_COUNT","_notifySendRequest","ieVer","getIEVersion","unloadCtx","unloadState","runTargetUnload","_DYN__ON_ERROR","message","event","_DYN_CLEAR_SENT","_DYN__ON_PARTIAL_SUCCESS","results","failed","retry","errors","_i","errors_1","error","extracted","_isRetriable","_DYN_PUSH","_DYN__ON_SUCCESS","_DYN_ITEMS_ACCEPTED","_resendPayload","_DYN_ITEMS_RECEIVED","xdr","responseText","_parseResponse","_formatErrorMessageXdr","envelope","incomingPayload","incomingSize","_DYN_IS_ONLINE","status","responseUrl","errorMessage","res","response","_checkAndUpdateEndPointUrl","offlineBackOffMultiplier","isNullOrUndefined","_doBeaconSend","nav","getNavigator","url","batch","_DYN_BATCH_PAYLOADS","plainTextBatch","queued","_DYN_MARK_AS_SENT","isArray","droppedPayload","lp","thePayload","thePromise","resolveFunc","rejectFunc","endPointUrl","DisabledPropertyName","_DYN_SET_REQUEST_HEADER","RequestHeaders","objKeys","headerName","createPromise","resolve","reject","payloadSize","_doFetchSender","requestHeaders","batchLength","ignoreResponse","responseHandled","init","request","doAwaitResponse","response_1","resp","getJSON","linearFactor","payload_1","item","_setRetryTime","SlotDelayInSeconds","delayInSeconds","backOffSlot","backOffDelay","retryAfterTimeSpan","utcNow","retryInterval","timerValue","scheduleTimeout","statusCode","_window","getWindow","hostingProtocol","endpointUrl","_getNotifyMgr","func","sendRequest","manager","_DYN_EVENTS_SEND_REQUEST","instrumentationKey","disableValidation","disableIKeyValidationFlag","UUID_Regex","regexp","objExtend","orig","iKey","logger","convertUndefined","__assignFn","creator","BaseTelemetryPlugin","STR_DURATION","STR_PROPERTIES","_DYN_REQUEST_URL","_DYN_INST","_DYN_LENGTH","_DYN_TRACE_ID","_DYN_SPAN_ID","_DYN_TRACE_FLAGS","_DYN_CONTEXT","_DYN_ABORTED","_DYN_TRACE_ID0","_DYN_SPAN_ID1","_DYN__ADD_HOOK","_DYN_CORE","_DYN_INCLUDE_CORRELATION_2","_DYN_GET_ABSOLUTE_URL","_DYN_HEADERS","_DYN_REQUEST_HEADERS","_DYN_SET_REQUEST_HEADER","_DYN_TRACK_DEPENDENCY_DAT3","_DYN_START_TIME","_DYN_TO_LOWER_CASE","_DYN_ENABLE_REQUEST_HEADE4","_DYN_ENABLE_AJAX_ERROR_ST5","_DYN_ENABLE_AJAX_PERF_TRA6","_DYN_MAX_AJAX_CALLS_PER_V7","_DYN_EXCLUDE_REQUEST_FROM8","_DYN_ADD_REQUEST_CONTEXT","_DYN_DISABLE_AJAX_TRACKIN9","_DYN_AJAX_PERF_LOOKUP_DEL10","_DYN_DISABLE_FETCH_TRACKI11","_DYN_ENABLE_RESPONSE_HEAD12","_DYN_STATUS","_DYN_STATUS_TEXT","_DYN_HEADER_MAP","_DYN_OPEN_DONE","_DYN_SEND_DONE","_DYN_REQUEST_SENT_TIME","_DYN_ABORT_DONE","_DYN_GET_TRACE_ID","_DYN_GET_TRACE_FLAGS","_DYN_METHOD","_DYN_ERROR_STATUS_TEXT","_DYN_STATE_CHANGE_ATTACHE13","_DYN_RESPONSE_TEXT","_DYN_RESPONSE_FINISHED_TI14","_DYN__CREATE_TRACK_ITEM","_DYN_RESPONSE","_DYN_GET_ALL_RESPONSE_HEA15","_DYN_GET_PART_APROPS","_DYN_PERF_MARK","_DYN_NAME","_DYN_PERF_TIMING","_DYN_EXCEPTION","_DYN_AJAX_DIAGNOSTICS_MES16","_DYN_CORRELATION_CONTEXT","_DYN_AJAX_TOTAL_DURATION","_DYN_EVENT_TRACE_CTX","_calcPerfDuration","resourceEntry","start","end","result","from","to","dateTimeUtilsDuration","_setPerfDuration","props","name","value","_setPerfValue","msToTimeSpan","strPerf","perfData","_populatePerfData","ajaxData","dependency","_DYN_PERF_TIMING","STR_PROPERTIES","propsSet","strName","strStart","strEnd","strDomainLookup","strConnect","strRedirect","strRequest","strResponse","strStartTime","strDomainLookupStart","strDomainLookupEnd","strConnectStart","strConnectEnd","strRequestStart","strRequestEnd","strResponseStart","strResponseEnd","strRedirectStart","strRedirectEnd","strTransferSize","strEncodedBodySize","strDecodedBodySize","strServerTiming","duration","STR_DURATION","serverTiming","server_1","arrForEach","idx","normalizeJsName","newValue","objForEachKey","key","val","isString","isNumber","_DYN_PERF_MARK","XHRMonitoringState","self","_DYN_OPEN_DONE","_DYN_SEND_DONE","_DYN_ABORT_DONE","_DYN_STATE_CHANGE_ATTACHE13","ajaxRecord","traceId","spanId","logger","traceCtx","_a","self","_logger","strResponseText","_DYN_PERF_MARK","_DYN_REQUEST_HEADERS","_DYN_AJAX_TOTAL_DURATION","_DYN_ABORTED","_DYN_REQUEST_URL","_DYN_METHOD","_DYN_STATUS","_DYN_REQUEST_SENT_TIME","_DYN_RESPONSE_FINISHED_TI14","XHRMonitoringState","_DYN_TRACE_ID","_DYN_SPAN_ID","_DYN_TRACE_FLAGS","_DYN_EVENT_TRACE_CTX","_DYN_TRACE_ID0","_DYN_GET_TRACE_ID","_DYN_SPAN_ID1","_DYN_GET_TRACE_FLAGS","dynamicProto","urlGetAbsoluteUrl","dataSanitizeUrl","urlGetCompleteUrl","_DYN__CREATE_TRACK_ITEM","ajaxType","enableRequestHeaderTracking","getResponse","dateTimeUtilsDuration","dependency","_DYN_GET_ABSOLUTE_URL","_DYN_NAME","_DYN_START_TIME","STR_PROPERTIES","props","_populatePerfData","objKeys","_DYN_LENGTH","response","correlationContext","_DYN_CORRELATION_CONTEXT","_DYN_HEADER_MAP","_DYN_ERROR_STATUS_TEXT","responseType","_DYN_STATUS_TEXT","_DYN_RESPONSE","_DYN_GET_PART_APROPS","partA","traceExt","Extensions","isNullOrUndefined","_a","AJAX_MONITOR_PREFIX","strDiagLog","AJAX_DATA_CONTAINER","STR_FETCH","ERROR_HEADER","ERROR_PREFIX","ERROR_POSTFIX","ERROR_NOT_SENT","CORRELATION_HEADER_ERROR","CUSTOM_REQUEST_CONTEXT_ERROR","FAILED_TO_CALCULATE_DURATION_ERROR","_markCount","_supportsFetch","_global","getGlobal","isNullOrUndefined","strShimPrototype","_supportsAjaxMonitoring","ajaxMonitorInstance","ajaxDataId","_b","result","isXhrSupported","proto","ieVer","getIEVersion","xhr","xhrData","theOpen","e","_throwInternalCritical","_DYN_EXCEPTION","dumpObj","_getAjaxData","_addSharedXhrHeaders","name","value","headers","_isHeaderSet","isPresent","arrForEach","header","_getFailedAjaxDiagnosticsMessage","ajaxData","_DYN_REQUEST_URL","msgId","message","properties","isUserAct","_throwInternal","_throwInternalWarning","_createErrorCallbackFunc","internalMessage","callDetails","_DYN_INST","_indexOf","match","strIndexOf","_addHandler","container","id","theFunc","theHandler","initializer","idx","_processDependencyContainer","core","details","getExceptionName","_processDependencyListeners","listeners","input","init","initializersCount","_DYN_LENGTH","_DYN_CORE","_DYN_TRACE_ID","_DYN_SPAN_ID","_DYN_TRACE_FLAGS","_DYN_CONTEXT","_DYN_ABORTED","_DYN_TRACE_ID0","_DYN_SPAN_ID1","BLOB_CORE","DfltAjaxCorrelationHeaderExDomains","objFreeze","_internalExcludeEndpoints","_defaultConfig","_DYN_MAX_AJAX_CALLS_PER_V7","_DYN_DISABLE_AJAX_TRACKIN9","_DYN_DISABLE_FETCH_TRACKI11","_DYN_EXCLUDE_REQUEST_FROM8","_DYN_ENABLE_REQUEST_HEADE4","_DYN_ENABLE_RESPONSE_HEAD12","_DYN_ENABLE_AJAX_ERROR_ST5","_DYN_ENABLE_AJAX_PERF_TRA6","_DYN_AJAX_PERF_LOOKUP_DEL10","_DYN_ADD_REQUEST_CONTEXT","AjaxMonitor","_super","__extendsFn","_this","_fetchInitialized","_xhrInitialized","_currentWindowHost","_extensionConfig","_enableRequestHeaderTracking","_enableAjaxErrorStatusText","_trackAjaxAttempts","_context","_isUsingW3CHeaders","_isUsingAIHeaders","_markPrefix","_enableAjaxPerfTracking","_maxAjaxCallsPerView","_enableResponseHeaderTracking","_disabledUrls","_disableAjaxTracking","_disableFetchTracking","_excludeRequestFromAutoTrackingPatterns","_addRequestContext","_evtNamespace","_ajaxDataId","_dependencyHandlerId","_dependencyListeners","_dependencyInitializers","_ignoreHeaders","_maxAjaxPerfLookupAttempts","_ajaxPerfLookupDelay","_distributedTracingMode","_appId","_polyfillInitialized","dynamicProto","_self","_base","_addHook","_DYN__ADD_HOOK","_initDefaults","config","extensions","pluginChain","mergeEvtNamespace","createUniqueNamespace","_populateDefaults","_instrumentXhr","_instrumentFetch","_populateContext","dependency","_reportDependencyInternal","_DYN_INCLUDE_CORRELATION_2","currentWindowHost","correlationIdCanIncludeCorrelationHeader","_DYN_GET_ABSOLUTE_URL","_DYN_HEADERS","RequestHeaders","_DYN_REQUEST_HEADERS","appId","traceFlags","traceParent","formatTraceParent","createTraceParent","_DYN_SET_REQUEST_HEADER","_DYN_TRACK_DEPENDENCY_DAT3","systemProperties","_DYN_START_TIME","item","createTelemetryItem","RemoteDependencyData","dependencyListener","dependencyInitializer","location","getLocation","_DYN_TO_LOWER_CASE","onConfigChange","ctx","createProcessTelemetryContext","iKey","strSubstring","propExt","PropertiesPluginIdentifier","_canIncludeHeaders","rlt","key","fetch","global","isPolyfill","InstrumentFunc","fetchData","_isDisabledRequest","_createFetchRecord","newInit","fetchData_1","response","_reportFetchMetrics","_DYN_STATUS","ajaxResponse","_DYN_STATUS_TEXT","_DYN_HEADER_MAP","_DYN_CORRELATION_CONTEXT","_getFetchCorrelationContext","responseHeaderMap_1","reason","isWebWorker","_hookProto","target","funcName","callbacks","InstrumentProto","method","url","async","_isMonitoredXhrInstance","_DYN_OPEN_DONE","_openHandler","_attachToOnReadyStateChange","context","_DYN_SEND_DONE","_createMarkId","_DYN_REQUEST_SENT_TIME","dateTimeUtilsNow","_DYN_ABORT_DONE","request","isDisabled","theUrl","isString","regex","theRegex","idx2","DisabledPropertyName","isInternalApplicationInsightsEndpoint","excludeAjaxDataValidation","ajaxValidation","initialized","_getDistributedTraceCtx","distributedTraceCtx","createDistributedTraceContextFromTrace","traceID","_DYN_GET_TRACE_ID","generateW3CId","spanID","strSubstr","xhrRequestData","ajaxDataCntr","ajaxRecord","_DYN_GET_TRACE_FLAGS","_DYN_METHOD","_DYN_ERROR_STATUS_TEXT","_DYN_STATE_CHANGE_ATTACHE13","eventOn","_onAjaxComplete","exceptionText","_DYN_AJAX_DIAGNOSTICS_MES16","_getResponseText","responseType","_DYN_RESPONSE_TEXT","_DYN_RESPONSE_FINISHED_TI14","_reportXhrError","failedProps","errorProps","_findPerfResourceEntry","_DYN__CREATE_TRACK_ITEM","_getAjaxCorrelationContext","_DYN_RESPONSE","_DYN_GET_ALL_RESPONSE_HEA15","arr","strTrim","responseHeaderMap_2","line","parts","STR_PROPERTIES","__assignFn","sysProperties","_DYN_GET_PART_APROPS","responseHeadersString","index","responseHeader","correlationIdGetCorrelationContext","type","performance_1","getPerformance","isFunction","markId","entries","_DYN_PERF_MARK","initiatorType","trackCallback","reportError","perfMark","performance","maxAttempts","retryDelay","requestUrl","attempt","locateResourceTiming","perfTiming","lp","entry","_DYN_NAME","_DYN_PERF_TIMING","scheduleTimeout","requestHeaders","_getFailedFetchDiagnosticsMessage","status","getResponse","_reportFetchError","initializers","itemCtx","BaseTelemetryPlugin","Application","Device","Version","Internal","config","unloadHookContainer","_this","unloadHook","onConfigChange","prefix","Location","_DYN_SESSION_MANAGER","_DYN_UPDATE","_DYN_IS_USER_COOKIE_SET","_DYN_IS_NEW_USER","_DYN_GET_TRACE_CTX","_DYN_TELEMETRY_TRACE","_DYN_APPLY_SESSION_CONTEX0","_DYN_APPLY_APPLICATION_CO1","_DYN_APPLY_DEVICE_CONTEXT","_DYN_APPLY_OPERATION_CONT2","_DYN_APPLY_USER_CONTEXT","_DYN_APPLY_OPERATING_SYST3","_DYN_APPLY_LOCATION_CONTE4","_DYN_APPLY_INTERNAL_CONTE5","_DYN_ACCOUNT_ID","_DYN_GET_SESSION_ID","_DYN_NAME_PREFIX","_DYN_SESSION_COOKIE_POSTF6","_DYN_USER_COOKIE_POSTFIX","_DYN_ID_LENGTH","_DYN_GET_NEW_ID","_DYN_LENGTH","_DYN_AUTOMATIC_SESSION","_DYN_AUTHENTICATED_ID","_DYN_ACQUISITION_DATE","_DYN_RENEWAL_DATE","_DYN_JOIN","_DYN_COOKIE_SEPARATOR","_DYN_AUTH_USER_COOKIE_NAM7","SESSION_COOKIE_NAME","ACQUISITION_SPAN","RENEWAL_SPAN","COOKIE_UPDATE_INTERVAL","Session","_SessionManager","config","core","unloadHookContainer","self","_storageNamePrefix","_cookieUpdatedTimestamp","_logger","safeGetLogger","_cookieManager","safeGetCookieMgr","_sessionExpirationMs","_sessionRenewalMs","dynamicProto","_self","unloadHook","onConfigChange","details","ACQUISITION_SPAN","RENEWAL_SPAN","sessionCookiePostfix","_DYN_NAME_PREFIX","SESSION_COOKIE_NAME","_DYN_AUTOMATIC_SESSION","Session","_DYN_UPDATE","nowMs","utcNow","isExpired","session","_initializeAutomaticSession","timeSinceAcqMs","_DYN_ACQUISITION_DATE","timeSinceRenewalMs","_DYN_RENEWAL_DATE","_renew","COOKIE_UPDATE_INTERVAL","_setCookie","_setStorage","now","isValid","cookieValue","isFunction","_initializeAutomaticSessionWithData","storageValue","utlGetLocalStorage","sessionData","sessionReset","tokens","_DYN_LENGTH","acqMs","renewalMs","_throwInternal","e","getExceptionName","dumpObj","getNewId","_DYN_GET_NEW_ID","newId","_DYN_ID_LENGTH","utlCanUseLocalStorage","acq","renewalPeriodMs","acqTimeLeftMs","cookie","maxAgeSec","cookieDomain","_DYN_JOIN","guid","renewal","utlSetLocalStorage","TelemetryTrace","id","parentId","name","logger","_self","generateW3CId","location","getLocation","dataSanitizeString","_validateUserInput","id","User","config","core","unloadHookContainer","_logger","safeGetLogger","_cookieManager","safeGetCookieMgr","_storageNamePrefix","dynamicProto","_self","objDefine","unloadHook","onConfigChange","userCookiePostfix","_DYN_USER_COOKIE_POSTFIX","cookie","_DYN_IS_NEW_USER","params","_DYN_COOKIE_SEPARATOR","_DYN_LENGTH","_DYN_IS_USER_COOKIE_SET","_generateNewId","newCookie","_generateNewCookie","_setUserCookie","_DYN_JOIN","name_1","_DYN_NAME_PREFIX","utlRemoveStorage","_DYN_ACCOUNT_ID","authCookie","_DYN_AUTH_USER_COOKIE_NAM7","authCookieString","_DYN_AUTHENTICATED_ID","theConfig","getNewId","_DYN_GET_NEW_ID","newId","_DYN_ID_LENGTH","userId","acqStr","toISOString","oneYear","authenticatedUserId","accountId","storeInCookie","isInvalidInput","_throwInternal","_DYN_UPDATE","user_id","user_cookie","strExt","strTags","_removeEmpty","target","name","objKeys","_DYN_LENGTH","_nullResult","TelemetryContext","core","defaultConfig","previousTraceCtx","unloadHookContainer","_this","logger","dynamicProto","_self","_DYN_GET_SESSION_ID","Application","Internal","hasWindow","_DYN_SESSION_MANAGER","_SessionManager","Device","Location","User","traceId","parentId","name_1","_DYN_TELEMETRY_TRACE","TelemetryTrace","Session","session","sesId","isString","autoSession","_DYN_AUTOMATIC_SESSION","_DYN_APPLY_SESSION_CONTEX0","evt","itemCtx","setValue","getSetValue","Extensions","_DYN_APPLY_OPERATING_SYST3","_DYN_APPLY_APPLICATION_CO1","application","tags","CtxTagKeys","_DYN_APPLY_DEVICE_CONTEXT","device","extDevice","_DYN_APPLY_INTERNAL_CONTE5","internal","dataSanitizeString","_InternalLogMessage","PageView","_DYN_APPLY_LOCATION_CONTE4","location","_DYN_APPLY_OPERATION_CONT2","telemetryTrace","extTrace","isNullOrUndefined","web","_DYN_APPLY_USER_CONTEXT","user","_DYN_ACCOUNT_ID","extUser","_DYN_AUTHENTICATED_ID","ext","_a","undefString","nullValue","_defaultConfig","objDeepFreeze","_DYN_ACCOUNT_ID","_DYN_GET_SESSION_ID","_DYN_NAME_PREFIX","_DYN_SESSION_COOKIE_POSTF6","_DYN_USER_COOKIE_POSTFIX","_DYN_ID_LENGTH","_DYN_GET_NEW_ID","PropertiesPlugin","_super","__extendsFn","_this","PropertiesPluginIdentifier","_extensionConfig","_distributedTraceCtx","_previousTraceCtx","_context","dynamicProto","_self","_base","_initDefaults","objDefine","config","core","extensions","pluginChain","_populateDefaults","event","itemCtx","isNullOrUndefined","PageView","theContext","_DYN_SESSION_MANAGER","_DYN_UPDATE","userCtx","_DYN_IS_USER_COOKIE_SET","_processTelemetryInternal","_DYN_IS_NEW_USER","message","_InternalLogMessage","getNavigator","_logInternalMessage","unloadCtx","unloadState","_DYN_GET_TRACE_CTX","traceCtx","identifier","onConfigChange","ctx","createProcessTelemetryContext","utlSetStoragePrefix","TelemetryContext","createDistributedTraceContextFromTrace","_DYN_TELEMETRY_TRACE","breezeChannel","BreezeChannelIdentifier","evt","getSetValue","_DYN_APPLY_SESSION_CONTEX0","_DYN_APPLY_APPLICATION_CO1","_DYN_APPLY_DEVICE_CONTEXT","_DYN_APPLY_OPERATION_CONT2","_DYN_APPLY_USER_CONTEXT","_DYN_APPLY_OPERATING_SYST3","_DYN_APPLY_LOCATION_CONTE4","_DYN_APPLY_INTERNAL_CONTE5","BaseTelemetryPlugin","PropertiesPlugin_default","_AUTHENTICATED_USER_CONTEXT","_TRACK","STR_SNIPPET","STR_GET_COOKIE_MGR","STR_START_TRACK_PAGE","STR_STOP_TRACK_PAGE","STR_FLUSH","STR_START_TRACK_EVENT","STR_STOP_TRACK_EVENT","STR_ADD_TELEMETRY_INITIALIZER","STR_ADD_TELEMETRY_INITIALIZERS","STR_POLL_INTERNAL_LOGS","STR_GET_PLUGIN","STR_EVT_NAMESPACE","STR_TRACK_EVENT","_TRACK","STR_TRACK_TRACE","STR_TRACK_METRIC","STR_TRACK_PAGE_VIEW","STR_TRACK_EXCEPTION","STR_TRACK_DEPENDENCY_DATA","STR_SET_AUTHENTICATED_USER_CONTEXT","_AUTHENTICATED_USER_CONTEXT","STR_CLEAR_AUTHENTICATED_USER_CONTEXT","_DYN_VERSION","_DYN_QUEUE","_DYN_CONNECTION_STRING","_DYN_ENDPOINT_URL","_DYN_INSTRUMENTATION_KEY","_DYN_ONUNLOAD_FLUSH","_DYN_CONTEXT","_DYN_ADD_HOUSEKEEPING_BEF0","_DYN_SEND_MESSAGE","_DYN_IS_THROTTLED","_DYN_UPDATE_SNIPPET_DEFIN1","_a","_b","_c","_internalSdkSrc","_ignoreUpdateSnippetProperties","STR_SNIPPET","IKEY_USAGE","CDN_USAGE","SDK_LOADER_VER","UNDEFINED_VALUE","default_throttle_config","defaultConfigValues","_DYN_CONNECTION_STRING","_DYN_ENDPOINT_URL","_DYN_INSTRUMENTATION_KEY","cfgDfValidate","_chkDiagLevel","value","AppInsightsSku","snippet","_this","dependencies","properties","_sender","_snippetVersion","_evtNamespace","_houseKeepingNamespace","_core","_config","_analyticsPlugin","_cfgSyncPlugin","_throttleMgr","_iKeySentMessage","_cdnSentMessage","_sdkVerSentMessage","dynamicProto","_self","_initDefaults","objDefine","arrForEach","key","_DYN_VERSION","_DYN_QUEUE","cfgHandler","createDynamicConfig","AnalyticsPlugin","PropertiesPlugin_default","AjaxMonitor","Sender","AppInsightsCore","_addUnloadHook","onConfigChange","cs","parseConnectionString","ingest","DEFAULT_BREEZE_PATH","STR_FLUSH","async","callBack","result","doPerf","createPromise","resolve","waiting","flushDone","channel","_DYN_ONUNLOAD_FLUSH","legacyMode","logger","notificationManager","throwUnsupported","_updateSnippetProperties","snippetVer","isNullOrUndefined","_DYN_CONTEXT","objForEachKey","field","isString","isFunction","arrIndexOf","ThrottleMgr","sdkSrc","_findSdkSourceFile","STR_POLL_INTERNAL_LOGS","_DYN_ADD_HOUSEKEEPING_BEF0","defaultEnable","isFeatureEnabled","_DYN_SEND_MESSAGE","_DYN_IS_THROTTLED","_DYN_UPDATE_SNIPPET_DEFIN1","proxyAssign","name","isArray","length_1","i","call","exception","properties_1","appInsightsInstance","hasWindow","hasDocument","performHousekeeping_1","STR_GET_PLUGIN","loadedPlugin","PropertiesPluginIdentifier","propertiesPlugin","added_1","mergeEvtNamespace","STR_EVT_NAMESPACE","details","coreConfig","analyticsPlugin","ctx","createProcessTelemetryContext","extConfig","AnalyticsPluginIdentifier","_removePageEventHandlers","excludePageUnloadEvents","addPageUnloadEventListener","addPageHideEventListener","isReactNative","_throwInternal","isAsync","unloadComplete","cbTimeout","unloadDone","_unloadCallback","unloadState","proxyFunctions","STR_GET_COOKIE_MGR","STR_TRACK_EVENT","STR_TRACK_PAGE_VIEW","STR_TRACK_EXCEPTION","STR_TRACK_TRACE","STR_TRACK_METRIC","STR_START_TRACK_PAGE","STR_STOP_TRACK_PAGE","STR_START_TRACK_EVENT","STR_STOP_TRACK_EVENT","_getCurrentDependencies","STR_TRACK_DEPENDENCY_DATA","STR_ADD_TELEMETRY_INITIALIZER","context","STR_SET_AUTHENTICATED_USER_CONTEXT","STR_CLEAR_AUTHENTICATED_USER_CONTEXT","createUniqueNamespace","CfgSyncPlugin","removePageUnloadEventListener","removePageHideEventListener","hooks","dependencyInitializer","_findSdkSourceFile","_internalSdkSrc","sdkSrc","isModule","cdns","scrpt","url_1","src_1","arrForEach","value","idx","strIndexOf","_DYN_TO_LOWER_CASE","_DYN_BLK_VAL","_DYN_LENGTH","_DYN_RD_ONLY","_DYN_NOTIFY","_DYN_WARN_TO_CONSOLE","_DYN_THROW_INTERNAL","_DYN_SET_DF","_DYN_WATCH","_DYN_LOGGER","_DYN_APPLY","_DYN_PUSH","_DYN_SPLICE","_DYN_HDLR","_DYN_CANCEL","_DYN_INITIALIZE","_DYN_IDENTIFIER","_DYN_IS_INITIALIZED","_DYN_GET_PLUGIN","_DYN_NAME","_DYN_TIME","_DYN_PROCESS_NEXT","_DYN_GET_PROCESS_TEL_CONT2","_DYN_UNLOAD","_DYN_LOGGING_LEVEL_CONSOL4","_DYN_CREATE_NEW","_DYN_TEARDOWN","_DYN_MESSAGE_ID","_DYN_MESSAGE","_DYN_IS_ASYNC","_DYN_DIAG_LOG","_DYN__DO_TEARDOWN","_DYN_UPDATE","_DYN_GET_NEXT","_DYN_SET_NEXT_PLUGIN","_DYN_USER_AGENT","_DYN_NODE_TYPE","_DYN_REPLACE","_DYN_LOG_INTERNAL_MESSAGE","_DYN_IS_CHILD_EVT","_DYN_GET_CTX","_DYN_SET_CTX","_DYN_COMPLETE","aggregationErrorType","throwAggregationError","message","sourceErrors","createCustomError","self","args","_DYN_LENGTH","theMessage","arrForEach","srcError","idx","dumpObj","UNDEFINED_VALUE","STR_EMPTY","STR_CORE","STR_DISABLED","STR_EXTENSION_CONFIG","STR_PROCESS_TELEMETRY","STR_PRIORITY","STR_PERF_EVENT","STR_GET_PERF_MGR","STR_NOT_DYNAMIC_ERROR","strGetPrototypeOf","rCamelCase","rNormalizeInvalid","rLeadingNumeric","_getObjProto","isNotNullOrUndefined","value","isNullOrUndefined","normalizeJsName","name","isString","_DYN_REPLACE","rCamelCase","_all","letter","rNormalizeInvalid","rLeadingNumeric","match","strContains","search","strIndexOf","_createProxyFunction","source","funcName","srcFunc","src","isFunction","originalArguments","_DYN_APPLY","proxyFunctionAs","target","name","source","theFunc","overwriteTarget","isUndefined","_createProxyFunction","strLocation","strConsole","strJSON","strCrypto","strMsCrypto","strMsie","strTrident","_isTrident","_navUserAgentCheck","_enableMocks","getLocation","checkForMock","_enableMocks","mockLocation","getInst","strShimObject","strLocation","getConsole","strShimUndefined","strConsole","hasJSON","strJSON","getJSON","getCrypto","strCrypto","getMsCrypto","strMsCrypto","isIE","nav","getNavigator","_DYN_USER_AGENT","_navUserAgentCheck","_isTrident","userAgent","STR_EMPTY","_DYN_TO_LOWER_CASE","strContains","strMsie","strTrident","UInt32Mask","MaxUInt32","SEED1","SEED2","_mwcSeeded","_mwcW","_mwcZ","_mwcSeed","seedValue","_autoSeedMwc","now","utcNow","random32","signed","value","c","getCrypto","getMsCrypto","MaxUInt32","isIE","_mwcSeeded","_autoSeedMwc","mwcRandom32","UInt32Mask","mwcRandom32","signed","_mwcZ","MaxUInt32","_mwcW","value","newId","maxLength","base64chars","number","random32","chars","result","STR_EMPTY","_DYN_LENGTH","version","instanceName","newId","_dataUid","_canAcceptData","target","_DYN_NODE_TYPE","_getCache","data","theCache","objDefine","createUniqueNamespace","name","includeVersion","normalizeJsName","STR_EMPTY","createElmNodeData","defValue","addDefault","_isConfigDefaults","value","isObject","objHasOwn","_getDefault","dynamicHandler","theConfig","cfgDefaults","defValue","isDefaultValid","isDefined","fallbacks","isArray","lp","_DYN_LENGTH","fallback","fbValue","asString","_resolveDefaultValue","theValue","newValue_1","isPlainObject","objForEachKey","key","_applyDefaultValue","name","defaultValue","isValid","setFn","mergeDf","reference","readOnly","blkDynamicValue","_DYN_RD_ONLY","_DYN_BLK_VAL","isUndefined","usingDefault","cfgValue","isNullOrUndefined","dfName","dfValue","CFG_HANDLER_LINK","symbolFor","BLOCK_DYNAMIC","FORCE_DYNAMIC","_cfgDeepCopy","source","target_1","isArray","_DYN_LENGTH","isPlainObject","objForEachKey","key","value","getDynamicConfigHandler","handler","blockDynamicConversion","_canMakeDynamic","getFunc","state","value","result","FORCE_DYNAMIC","BLOCK_DYNAMIC","isPlainObject","isArray","throwInvalidAccess","message","throwTypeError","arrayMethodsToPatch","_throwDynamicError","logger","name","desc","e","_DYN_THROW_INTERNAL","dumpObj","_patchArray","state","target","isArray","arrForEach","method","orgMethod","args","_i","result","_DYN_APPLY","_makeDynamicObject","_getOwnPropGetter","propDesc","objGetOwnPropertyDescriptor","_createDynamicProperty","theConfig","value","detail","handler","arrIndexOf","_DYN_PUSH","idx","_DYN_SPLICE","checkDynamic","isObjectOrArray","_getProperty","_canMakeDynamic","CFG_HANDLER_LINK","activeHandler","_setProperty","newValue","throwInvalidAccess","isReferenced","objForEachKey","key","UNDEFINED_VALUE","theValue","_setDynamicProperty","_DYN_LOGGER","getter","valueState","newIsObjectOrArray","objDefine","isDynamic","_setDynamicPropertyState","flags","inPlace","rdOnly","blkProp","blockDynamicConversion","objDefineProp","_DYN_HDLR","symPrefix","symPostfix","_createState","cfgHandler","_a","dynamicPropertySymbol","newSymbol","dynamicPropertyReadOnly","dynamicPropertyReferenced","dynamicPropertyBlockValue","dynamicPropertyDetail","_waitingHandlers","_watcherTimer","theState","_useHandler","activeHandler","callback","prevWatcher","arrForEach","detail","_DYN_SET_DF","_DYN_RD_ONLY","e","logger","_DYN_LOGGER","_DYN_THROW_INTERNAL","dumpObj","_notifyWatchers","notifyHandlers","_DYN_CANCEL","watcherFailures_1","handler","_DYN_PUSH","_DYN_LENGTH","throwAggregationError","_addWatcher","scheduleTimeout","idx","arrIndexOf","_trackHandler","details","_DYN_BLK_VAL","_DYN_HDLR","_DYN_NOTIFY","_createAndUseHandler","state","configHandler","handler","objDefine","_createDynamicHandler","logger","target","inPlace","_a","dynamicHandler","getDynamicConfigHandler","uid","createUniqueNamespace","newTarget","_cfgDeepCopy","theState","_notifyWatchers","_DYN_NOTIFY","_setValue","name","value","_setDynamicProperty","e","_throwDynamicError","_watch","_block","allowUpdate","details","prevUpd","isUndefined","_ref","_setDynamicPropertyState","_rdOnly","_blkPropValue","_applyDefaults","theConfig","defaultValues","objForEachKey","_applyDefaultValue","cfgHandler","_DYN_LOGGER","_DYN_SET_DF","_DYN_WATCH","_DYN_RD_ONLY","_DYN_BLK_VAL","_createState","_makeDynamicObject","_logInvalidAccess","message","_DYN_WARN_TO_CONSOLE","_DYN_THROW_INTERNAL","throwInvalidAccess","createDynamicConfig","config","defaultConfig","onConfigChange","CFG_HANDLER_LINK","STR_NOT_DYNAMIC_ERROR","dumpObj","_aiNamespace","_getExtensionNamespace","target","getInst","_aiNamespace","getDebugExt","config","ns","_a","STR_WARN_TO_CONSOLE","AiNonUserActionablePrefix","AiUserActionablePrefix","AIInternalMessagePrefix","defaultValues","_logFuncs","_sanitizeDiagnosticText","text","_DYN_REPLACE","STR_EMPTY","_logToConsole","func","message","theConsole","getConsole","logFunc","isFunction","_InternalLogMessage","msgId","msg","isUserAct","properties","_self","_DYN_MESSAGE_ID","_DYN_MESSAGE","strProps","hasJSON","getJSON","diagnosticText","safeGetLogger","core","config","_DYN_LOGGER","DiagnosticLogger","_messageCount","_messageLogged","_loggingLevelConsole","_loggingLevelTelemetry","_maxInternalMessageLimit","_enableDebug","_unloadHandler","dynamicProto","_self","_setDefaultsFromConfig","_DYN_THROW_INTERNAL","severity","msgId","msg","properties","isUserAct","message","_InternalLogMessage","dumpObj","logFunc","_logFuncs","STR_WARN_TO_CONSOLE","isUndefined","_DYN_MESSAGE","_debugExtMsg","messageKey","_DYN_MESSAGE_ID","_logInternalMessage","_logToConsole","_DYN_WARN_TO_CONSOLE","_DYN_LOG_INTERNAL_MESSAGE","_DYN_UNLOAD","isAsync","_areInternalMessagesThrottled","logMessage","AIInternalMessagePrefix","_DYN_PUSH","throttleLimitMessage","throttleMessage","onConfigChange","createDynamicConfig","defaultValues","details","_DYN_LOGGING_LEVEL_CONSOL4","name","data","dbgExt","getDebugExt","_DYN_DIAG_LOG","_getLogger","logger","DiagnosticLogger","_throwInternal","severity","msgId","msg","properties","isUserAct","_DYN_THROW_INTERNAL","strExecutionContextKey","strParentContextKey","strChildrenContextKey","PerfEvent","name","payloadDetails","isAsync","_self","utcNow","_DYN_NAME","_DYN_IS_ASYNC","_DYN_IS_CHILD_EVT","isFunction","theDetails_1","objDefine","_DYN_GET_CTX","key","strParentContextKey","strChildrenContextKey","strExecutionContextKey","_DYN_SET_CTX","value","ctx","_DYN_COMPLETE","childTime","childEvts","isArray","lp","_DYN_LENGTH","childEvt","_DYN_TIME","PerfManager","manager","dynamicProto","_self","src","payloadDetails","isAsync","PerfEvent","perfEvent","_DYN_COMPLETE","isFunction","STR_PERF_EVENT","_DYN_SET_CTX","key","value","ctx","strExecutionContextKey","_DYN_GET_CTX","doPerfActiveKey","doPerf","mgrSource","getSource","func","details","isAsync","perfMgr","STR_GET_PERF_MGR","perfEvt","currentActive","_DYN_GET_CTX","_DYN_SET_CTX","PerfEvent","strParentContextKey","children","strChildrenContextKey","_DYN_PUSH","ex","generateW3CId","hexValues","oct","STR_EMPTY","tmp","a","random32","clockSequenceHi","strSubstr","pluginStateData","createElmNodeData","_getPluginState","plugin","strTelemetryPluginChain","strHasRunFlags","strGetTelCtx","_chainId","_getNextProxyStart","proxy","core","startAt","_DYN_GET_PLUGIN","_DYN_GET_NEXT","createTelemetryProxyChain","_createInternalContext","telemetryChain","dynamicHandler","_nextProxy","_onComplete","createDynamicConfig","_DYN_LOGGER","context","_moveNext","safeGetLogger","_resolveExtCfg","_getConfig","nextPlugin","_iterateChain","_addOnComplete","onComplete","that","args","_i","_DYN_PUSH","isUndefined","nextProxy","_DYN_LENGTH","arrForEach","completeDetails","e","_throwInternal","dumpObj","_getExtCfg","identifier","createIfMissing","idCfg","cfg","extCfg","STR_EXTENSION_CONFIG","defaultValues","newConfig","objForEachKey","field","defaultValue","isNullOrUndefined","cfgValue","_applyDefaultValue","_DYN_SET_DF","theValue","extConfig","rootConfig","cb","plugin","createProcessTelemetryContext","config","internalContext","_processNext","env","STR_PROCESS_TELEMETRY","_createNew","plugins","isArray","_DYN_PROCESS_NEXT","_DYN_CREATE_NEW","createProcessTelemetryUnloadContext","unloadState","_DYN_UNLOAD","createProcessTelemetryUpdateContext","updateState","isFunction","_DYN_UPDATE","firstProxy","add","lastProxy_1","thePlugin","newProxy","createTelemetryPluginProxy","hasProcessTelemetry","hasSetNext","_DYN_SET_NEXT_PLUGIN","chainId","_DYN_IDENTIFIER","STR_PRIORITY","proxyChain","_processTelemetry","_unloadPlugin","_updatePlugin","_getTelCtx","itemCtx","_processChain","processPluginFn","name","details","isAsync","hasRun","hasRunContext","doPerf","STR_CORE","nextId","STR_EMPTY","error","hasNextRun","_DYN_DIAG_LOG","_callProcessTelemetry","pluginState","_getPluginState","_DYN_TEARDOWN","STR_DISABLED","unloadCtx","_callTeardown","pluginCore","_DYN_IS_INITIALIZED","_DYN_IS_ASYNC","updateCtx","_callUpdate","objFreeze","createUnloadHandlerContainer","handlers","_addHandler","handler","_DYN_PUSH","_runHandlers","unloadCtx","unloadState","arrForEach","e","_throwInternal","_DYN_DIAG_LOG","dumpObj","_maxHooks","_hookAddMonitor","createUnloadHookContainer","_hooks","_doUnload","logger","oldHooks","arrForEach","fn","e","_throwInternal","dumpObj","_maxHooks","_DYN_LENGTH","_hookAddMonitor","_addHook","hooks","arrAppend","_a","strGetPlugin","defaultValues","STR_EXTENSION_CONFIG","isNotNullOrUndefined","BaseTelemetryPlugin","_self","_isinitialized","_rootCtx","_nextPlugin","_unloadHandlerContainer","_hookContainer","_initDefaults","dynamicProto","_DYN_INITIALIZE","config","core","extensions","pluginChain","_setDefaults","_DYN_TEARDOWN","unloadCtx","unloadState","STR_CORE","result","unloadDone","theUnloadCtx","createProcessTelemetryUnloadContext","theUnloadState","_DYN_IS_ASYNC","_unloadCallback","_DYN_DIAG_LOG","_DYN_PROCESS_NEXT","_DYN__DO_TEARDOWN","_DYN_UPDATE","updateCtx","updateState","updateDone","theUpdateCtx","createProcessTelemetryUpdateContext","theUpdateState","_updateCallback","_DYN_GET_NEXT","proxyFunctionAs","objDefine","itemCtx","_getTelCtx","_DYN_IS_INITIALIZED","isInitialized","_DYN_SET_NEXT_PLUGIN","next","env","isFunction","STR_PROCESS_TELEMETRY","currentCtx","rootCtx","createProcessTelemetryContext","_DYN_CREATE_NEW","createDynamicConfig","safeGetLogger","_DYN_GET_PROCESS_TEL_CONT2","nextPlugin","createUnloadHookContainer","createUnloadHandlerContainer","PropertiesPluginIdentifier","AnalyticsPluginIdentifier","ApplicationinsightsAngularpluginErrorService","analyticsPlugin","errorService","isFunction","idx","error","arrForEach","t","ɵɵdefineInjectable","undefValue","defaultAngularExtensionConfig","objDeepFreeze","AngularPlugin","BaseTelemetryPlugin","_injector","_analyticsPlugin","_propertiesPlugin","_angularCfg","_eventSubscription","_isPageInitialLoad","_prevRouter","_errorServiceInstance","dynamicProto","_self","_base","_initDefaults","config","core","extensions","pluginChain","onConfigChange","details","PropertiesPluginIdentifier","AnalyticsPluginIdentifier","isArray","pageViewTelemetry","event","NavigationEnd","pvt","pageView","location","getLocation","generateW3CId","_throwInternal","unloadCtx","unloadState","asyncCallback","itemCtx","ɵɵdirectiveInject","Injector","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","rf","ctx","getRandomValues","rnds8","rng","regex_default","validate","uuid","regex_default","validate_default","byteToHex","i","stringify","arr","offset","uuid","validate_default","stringify_default","v4","options","buf","offset","rnds","rng","i","stringify_default","v4_default","uuid","v4","tabId","uuid","bootstrapApplicationInsights","applicationInsights","enabled","instrumentationKey","tcs","graphqlUri","appInsightsPlugin","AngularPlugin","console","warn","config","disableCorrelationHeaders","disableExceptionTracking","autoTrackPageVisitTime","enableDebug","environment","production","maxAjaxCallsPerView","disableCookiesUsage","loggingLevelConsole","ApplicationInsights","queue","loadAppInsights","initializeTelemetry","appInsights","addTelemetryInitializer","env","baseData","properties","baseType","exceptions","find","e","typeName","message","includes","target","isGraphQLRequest","__trackMe","type","operationNameSet","gqlOperationType","gqlOperationName","variables","data","operationName","tags","name","operationId","id","split","Number","responseCode","opId","patchTelemetryProps","href","window","location","AppInsightsService","constructor","_config","_initialized$","BehaviorSubject","intialized$","asObservable","pipe","filter","init","getValue","value","next","ɵɵinject","TcsConfigurationService","factory","ɵfac","providedIn","AgentBase","agentIdentifier","generateRandomHexString","globalInstance","#callMethod","methodName","_len","args","_key","warn","name","attributes","host","value","persist","error","customAttributes","callback","timeStamp","id","featureNames","SR_EVENT_EMITTER_TYPES","message","options","parent","functionName","featureNames","FEATURE_NAMES","isEnabled","name","agentIdentifier","getConfigurationValue","getEnabledFeatures","enabledFeatures","featureName","getFeatureDependencyNames","feature","FEATURE_NAMES","InstrumentBase","FeatureBase","agentIdentifier","aggregator","featureName","auto","getConfigurationValue","registerDrain","single","argsObjFromInstrument","loadedSuccessfully","resolve","importLater","__async","session","canEnableSessionTracking","setupAgentSession","e","warn","FEATURE_NAMES","#shouldImportAgg","drain","lazyFeatureLoader","Aggregate","isBrowserScope","onWindowLoad","hasReplayPrerequisite","Instrument","InstrumentBase","FEATURE_NAME","agentIdentifier","aggregator","auto","Aggregator","SharedContext","parent","type","name","params","newMetrics","customParams","bucket","aggregateMetrics","metrics","oldMetrics","mapOwn","key","value","oldMetric","newMetric","updateMetric","mergeMetric","types","results","hasData","i","metric","updateCounterMetric","createMetricObject","Agent","AgentBase","options","agentIdentifier","globalScope","warn","Aggregator","setNREUMInitializedAgent","Instrument","instr","FEATURE_NAMES","configure","enabledFeatures","getEnabledFeatures","featuresToStart","a","b","featurePriority","InstrumentCtor","dependencies","getFeatureDependencyNames","featName","stringify","err","newrelic","gosNREUM","Instrument","InstrumentBase","FEATURE_NAME","agentIdentifier","aggregator","auto","isBrowserScope","subscribeToVisibilityChange","handle","now","windowAddEventListener","Instrument","InstrumentBase","FEATURE_NAME","agentIdentifier","aggregator","auto","UncaughtError","message","filename","lineno","colno","newrelic","stringify","castError","error","canTrustError","UncaughtError","castPromiseRejectionEvent","promiseRejectionEvent","prefix","castErrorEvent","errorEvent","Instrument","InstrumentBase","FEATURE_NAME","#replayRunning","agentIdentifier","aggregator","auto","error","handle","castError","now","SR_EVENT_EMITTER_TYPES","isRunning","globalScope","promiseRejectionEvent","castPromiseRejectionEvent","eventListenerOpts","errorEvent","castErrorEvent","#abort","index","prop","id","obj","type","globalScope","getOrSet","dataSize","data","stringify","DT","agentIdentifier","parsedOrigin","loaderConfig","getLoaderConfig","accountId","agentId","trustKey","spanId","generateSpanId","traceId","generateTraceId","timestamp","payload","appId","version","transactionId","parentType","sampled","priority","hasBtoa","globalScope","stringify","allowed","dtConfig","dt","getConfigurationValue","getConfiguration","i","allowedOrigin","parseUrl","responseSizeFromXhr","xhr","lastSize","type","dataSize","handlers","handlersLen","origRequest","originals","origXHR","Instrument","InstrumentBase","FEATURE_NAME","agentIdentifier","aggregator","auto","DT","type","args","ctx","group","handle","initiators","globalScope","resource","params","metrics","addUrl","FEATURE_NAMES","wrapFetch","wrapXhr","subscribeToEvents","ee","handler","dt","onNewXhr","onOpenXhrStart","onOpenXhrEnd","onSendXhrStart","onXhrCbTime","onXhrLoadAdded","onXhrLoadRemoved","onXhrResolved","onAddEventListenerEnd","onRemoveEventListenerEnd","onFnEnd","onFetchBeforeStart","onFetchStart","onFnStart","onFetchDone","xhr","end","event","captureXhrData","eventListenerOpts","ffVersion","loaderConfig","getLoaderConfig","payload","added","data","context","size","dataSize","now","evt","e","i","time","onload","cb","useCapture","idString","id","methodName","opts","url","isBrowserScope","parseUrl","addHeaders","clone","key","headersObj","fetchArguments","dtPayload","target","method","_","res","hasUndefinedHostname","responseSize","responseSizeFromXhr","header","SUPPORTABILITY_METRIC","parsed","BST_RESOURCE","RESOURCE","START","END","FEATURE_NAME","FN_END","FN_START","PUSH_STATE","constants_exports","Instrument","InstrumentBase","agentIdentifier","aggregator","auto","canEnableSessionTracking","deregisterDrain","thisInstrumentEE","wrapHistory","wrapEvents","args","target","now","handle","FEATURE_NAMES","observer","list","entries","FEATURE_NAME","START","END","BODY","CB_END","JS_TIME","FETCH","FN_START","CB_START","FN_END","constants_exports","Instrument","InstrumentBase","agentIdentifier","aggregator","_this","auto","isBrowserScope","depth","startHash","tracerEE","jsonpEE","wrapJsonP","promiseEE","wrapPromise","timerEE","wrapTimer","xhrEE","wrapXhr","eventsEE","fetchEE","wrapFetch","historyEE","wrapHistory","mutationEE","wrapMutation","startTimestamp","endTimestamp","_len","args","_key","handle","timestamp","trackURLChange","eventListenerOpts","unusedArgs","hashChangedDuringCb","now","time","ee","type","#abort","Instrument","InstrumentBase","FEATURE_NAME","agentIdentifier","aggregator","auto","Instrument","InstrumentBase","FEATURE_NAME","#mode","agentIdentifier","aggregator","auto","session","PREFIX","DEFAULT_KEY","hasReplayPrerequisite","SR_EVENT_EMITTER_TYPES","#apiStartOrRestartReplay","#canPreloadRecorder","#preloadStartRecording","e","handle","isRunning","MODE","isPreloadAllowed","#alreadyStarted","trigger","__async","Recorder","TRIGGERS","BrowserAgent","Agent","args","__spreadProps","__spreadValues","Instrument","tabId","uuid","initializeTelemetry","newRelic","setCustomAttribute","window","location","href","NewRelicService","constructor","_config","_initialized$","BehaviorSubject","intialized$","asObservable","pipe","filter","init","getValue","value","enabled","options","distributed_tracing","cors_use_newrelic_header","cors_use_tracecontext_headers","allowed_origins","tcs","graphqlUri","privacy","cookies_enabled","ajax","deny_list","info","beacon","errorBeacon","licenseKey","loaderConfig","applicationID","sa","loader_config","BrowserAgent","next","ɵɵinject","TcsConfigurationService","factory","ɵfac","providedIn","GlobalDataContextService","constructor","_store","_gql","fetch","upsertEntitiesFromGraphQL","undefined","fetchPolicy","resolve","route","state","ɵɵinject","StoreService","GlobalDataContextService_FetchGQL","factory","ɵfac","providedIn","UserDataContextService","constructor","_store","_gql","_auth","_global","_initialized","_onDestroy$","Subject","syncUserData","__async","firstValueOrUndefined","_fetch","pipe","take","init","accessClaims$","filterNull","subscribe","fetch","ngOnDestroy","next","complete","upsertEntitiesFromGraphQL","ɵɵinject","StoreService","UserDataContextService_FetchGQL","AuthenticationService","GlobalDataContextService","factory","ɵfac","providedIn","getUserViewModel","person$","store","company$","pipe","undefinedOrSwitchMap","p","select","selectCompanyById","companyId","filterNull","withLatestFrom","switchMap","c","of","undefined","selectAccessibleItemEntitiesByPersonId","id","map","ai","UserViewModel","companyCode","toArray","UserService","distinctUser$","_user$","distinctUntilChanged","a","b","user","_user","loggedInUser$","_loggedInUser$","asObservable","impersonatedUser$","_impersonatedUser$","user$","userId$","u","userDetails$","name","firstName","lastName","emailaddress","email","loggedInUserHasPermissionAnyScope","permission","hasPermissionAnyScope","_permissionsService","hasAccessibleCompany","hasPermissionAnyGlobalRole","hasRoleAnyScope","role","hasAnyRoleAnyScope","roles","hasGlobalRole","hasAnyGlobalRole","isImpersonating","combineLatest","loggedInUser","constructor","_impersonation","_store","_auth","_personFetch","_userEmailService","_appInsightsService","_newRelicService","_userDataContext","ReplaySubject","_onDestroy$","Subject","authenticated$","idClaims$","accessClaims$","debounceTime","accessToken","a1","a2","sub","accessClaims","setLoginEmail","employeeNumber","EmployeeNumber","employeeId","getTrailingDigits","byEmployeeId$","selectPersonByEmployeeId","byEmail$","selectPersonByEmail","person","personId","getById","__async","syncUserData","share","isEqual","toJS","takeUntil","subscribe","impersonated$","impersonatedUserId$","impId","authn","imp","next","filter","auth","setLatestEmail","intialized$","userEmail","appInsights","setAuthenticatedUserContext","clearAuthenticatedUserContext","newRelic","setUserId","setCustomAttribute","addTelemetryInitializer","item","patchTelemetryProps","userId","userCompanyCode","err","console","error","ngOnDestroy","complete","ɵɵinject","PermissionsService","ImpersonationService","StoreService","AuthenticationService","PersonEntityFetchService","UserEmailService","AppInsightsService","NewRelicService","UserDataContextService","factory","ɵfac","providedIn","OpsCommand","OpsFeature","OpsFeatures","ActivationRules","AddActivationRule","DeleteActivationRule","UpdateActivationRule","ActiveAlerts","AcknowledgeAlert","AddActiveAlert","CleanupActiveAlerts","CleanupCardActiveAlerts","DeleteActiveAlert","SnoozeAlert","UpdateActiveAlert","ActiveTimelines","DeleteActiveTimeline","UpdateActiveTimeline","Alerts","AddAlert","CopyAlert","DeleteAlert","UpdateAlert","ApplicationNotifications","AddApplicationNotification","DeleteApplicationNotification","DismissApplicationNotification","UpdateApplicationNotification","AssignmentDelayedReasons","AddAssignmentDelayedReason","DeleteAssignmentDelayedReason","UpdateAssignmentDelayedReason","CancellationCategories","AddCancellationCategory","DeleteCancellationCategory","UpdateCancellationCategory","CancellationReasons","AddCancellationReason","DeleteCancellationReason","UpdateCancellationReason","CancellationSecondaryReasons","AddCancellationSecondaryReason","DeleteCancellationSecondaryReason","UpdateCancellationSecondaryReason","CardLinks","AddCardLink","DeleteCardLink","UpdateCardLink","CardNoteArchives","AddCardNoteArchive","DeleteCardNoteArchive","UpdateCardNoteArchive","CardNotes","AddCardNote","DeleteCardNote","UpdateCardNote","CardReOpenReasons","AddCardReOpenReason","DeleteCardReOpenReason","UpdateCardReOpenReason","Cards","AddCard","ChangeCardCallStatus","ChangeUnit","CleanupCards","CloseCard","CreateSystemCrewNotification","DeleteCard","GenerateCardReport","GenerateCardSummaryChange","GenerateCardSummaryChangeV2","LinkCards","ReOpenCard","RequestAdditionalUnits","SendPatientInfo","SetCardLockStatus","UnDeleteCard","UpdateCard","UpdateCardBillable","UpdateCardDiversionType","UpdateCardSearchIndex","UpdateGmrCadNumber","UpdatePlannedCardCompletionTime","ConfigurationSettings","AddConfigurationSetting","UpdateConfigurationSetting","DeclineCategories","AddDeclineCategory","DeleteDeclineCategory","UpdateDeclineCategory","DeclineReasons","AddDeclineReason","DeleteDeclineReason","UpdateDeclineReason","DeclineSecondaryReasons","AddDeclineSecondaryReason","DeleteDeclineSecondaryReason","UpdateDeclineSecondaryReason","DiversionReasons","AddDiversionReason","DeleteDiversionReason","UpdateDiversionReason","EscortRequests","AddEscortRequest","DeleteEscortRequest","UpdateEscortRequest","EstimatedDurations","MakeEstimatedDurationOfficial","UpdateEstimatedDurations","UpdateTripLegDuration","UpdateWaypointDuration","ExternalActions","AddExternalAction","CleanupPendingExternalActions","DeleteExternalAction","DisregardExternalAction","UpdateExternalAction","ExternalActionTypes","AddExternalActionType","DeleteExternalActionType","UpdateExternalActionType","FacilityNonAcceptanceReasons","AddFacilityNonAcceptanceReason","DeleteFacilityNonAcceptanceReason","UpdateFacilityNonAcceptanceReason","FirewallRules","AddFirewallRule","DeleteFirewallRule","UpdateFirewallRule","FlightFollowingReports","AddFlightFollowingReport","DeleteFlightFollowingReport","UpdateFlightFollowingReport","LocationHazardAttachments","DeleteLocationHazardAttachment","GenerateLocationHazardAttachmentUrl","LocationHazards","AddLocationHazard","DeleteLocationHazard","UpdateLocationHazard","MedicalControlContactLogEntries","AddMedicalControlContactLogEntry","DeleteMedicalControlContactLogEntry","UpdateMedicalControlContactLogEntry","MessageStatusUpdates","AddMessageStatusUpdate","NextDueTypes","AddNextDueType","DeleteNextDueType","UpdateNextDueType","NonReferralReasons","AddNonReferralReason","DeleteNonReferralReason","UpdateNonReferralReason","NotificationGroupMembers","AddNotificationGroupMember","DeleteNotificationGroupMember","UpdateNotificationGroupMember","NotificationGroups","AddNotificationGroup","DeleteNotificationGroup","UpdateNotificationGroup","UpsertPersonNotificationGroups","NotificationRecipients","AddNotificationRecipient","AddNotificationRecipients","DeleteNotificationRecipient","DeleteNotificationRecipients","UpdateNotificationRecipient","UpdateRecipientMessageStatus","Notifications","AddNotification","DeleteNotification","SendNotification","UpdateNotification","NotificationSubscriptions","AddNotificationSubscription","DeleteNotificationSubscription","UpdateNotificationSubscription","NotificationTemplates","AddNotificationTemplate","CopyNotificationTemplate","DeleteNotificationTemplate","UpdateNotificationTemplate","OemActivities","AddOemActivity","DeleteOemActivity","UpdateOemActivity","OemAssets","AddOemAsset","DeleteOemAsset","UpdateOemAsset","OemPlanChangeRequests","AddOemPlanChangeRequest","DeleteOemPlanChangeRequest","UpdateOemPlanChangeRequest","OemPlans","AddOemPlan","DeleteOemPlan","UpdateOemPlan","OfferAlgorithms","AddOfferAlgorithm","CopyOfferAlgorithm","DeleteOfferAlgorithm","UpdateOfferAlgorithm","Operations","ActivateUnit","AddOperation","ArriveVehicle","CancelOperation","ChangeVehicle","CreateGroundRun","CreateMaintenanceOperation","CreateTrainingOperation","DeclineOrAbortOperation","DeleteOperation","DepartVehicle","PlaceUnitOnStandby","RepositionUnit","UndoArriveVehicle","UndoDepartVehicle","UpdateOperation","UpdateOperationContactInfo","UpdateRiskAnalysis","OutOfServiceEventNotes","AddOutOfServiceEventNote","DeleteOutOfServiceEventNote","UpdateOutOfServiceEventNote","OutOfServiceEvents","AddOutOfServiceEvent","AddUnitOutOfServiceEvent","AddVehicleOutOfServiceEvent","BeginOutOfServiceEvent","DeleteOutOfServiceEvent","EndOutOfServiceEvent","UpdateOutOfServiceEvent","OutOfServiceReasons","AddOutOfServiceReason","DeleteOutOfServiceReason","UpdateOutOfServiceReason","OutOfServiceSecondaryReasons","AddOutOfServiceSecondaryReason","DeleteOutOfServiceSecondaryReason","UpdateOutOfServiceSecondaryReason","PassdownLogs","AcknowledgePassdownLog","AddPassdownLog","DeletePassdownLog","UpdatePassdownLog","PositionReportAlerts","AddPositionReportAlert","DeletePositionReportAlert","UpdatePositionReportAlert","PositionReports","AddPositionReport","ConfirmPositionReport","DeletePositionReport","UpdatePositionReport","QuestionChoices","UpsertQuestionChoice","QuestionnaireQuestionResponseNotes","AddQuestionnaireQuestionResponseNote","DeleteQuestionnaireQuestionResponseNote","UpdateQuestionnaireQuestionResponseNote","UpsertQuestionnaireQuestionResponseNote","QuestionnaireQuestionResponses","AddQuestionnaireQuestionResponse","DeleteQuestionnaireQuestionResponse","UpdateQuestionnaireQuestionResponse","UpdateQuestionnaireQuestionResponseDeep","QuestionnaireResponses","AddQuestionnaireResponse","DeleteQuestionnaireResponse","SubmitQuestionnaireResponse","UpdateQuestionnaireResponse","UpdateQuestionnaireResponseDeep","Questionnaires","AddQuestionnaire","DeleteQuestionnaire","UpdateQuestionnaire","QuestionnaireSectionQuestions","DeleteQuestionnaireSectionQuestion","UpsertQuestionnaireSectionQuestion","QuestionnaireSections","DeleteQuestionnaireSection","UpsertQuestionnaireSection","Questions","AddQuestion","DeleteQuestion","UpdateQuestion","ReceivingFacilityRequests","AcceptReceivingFacilityRequest","AddReceivingFacilityRequestDeclineHistory","CancelReceivingFacilityRequest","DeleteReceivingFacilityRequest","DenyReceivingFacilityRequest","DivertReceivingFacilityRequest","ReferReceivingFacilityRequest","RendezvousRequests","AddRendezvousRequest","DeleteRendezvousRequest","UpdateRendezvousRequest","RequesterRoles","AddRequesterRole","DeleteRequesterRole","UpdateRequesterRole","Requesters","UpdateRequester","UpdateRequesterSpecialtyTeam","UpdateTransferCenterCallInfo","RequestLocations","UpdateReceivingFacilityAutoAcceptance","UpdateRequestLocation","RequestPatients","AddRequestPatient","DeleteRequestPatient","UpdateChiefComplaint","UpdatePatientClinicalInfo","UpdatePatientInfo","UpdateRequestPatient","Requests","AcknowledgeExternalRequest","BeginAssignment","CancelRequest","CancelRequestFromTransferCenter","ChangeCallType","ChangeRequestCancellationReason","ChangeRequestType","CreateRequest","DelayAssignment","DuplicateRequest","ReactivateRequest","ReactivateRequestFromTransferCenter","RecalculateCandidates","UpdateRequest","UpdateRequestAtlo","UpdateRequestPublicUtilityInfo","UpdateRequestRegion","UpdateRequestSafetyQuestions","UpdateRequestStandbyStatus","TimelineItems","AddTimelineItem","DeleteTimelineItem","UpdateTimelineItem","UpsertTimelineItem","Timelines","AddTimeline","DeleteTimeline","UpdateTimeline","Timestamps","AddEmsReport","AddTimestamp","DeleteTimestamp","ReSendToDataWarehouse","SendToImageTrend","UpdateEmsReport","UpdateTimestamp","TimestampTypes","AddTimestampType","DeleteTimestampType","UpdateTimestampType","TrackedMessages","DeliverTrackedMessage","SendMessage","UpdateTrackedMessage","TransferReasons","AddTransferReason","DeleteTransferReason","UpdateTransferReason","TransportOfferOptions","UpdateTransportOfferOption","TransportOffers","AcceptTransportOffer","AddCancellation","AddDecline","AddTransportOffer","BeginTransportOffer","CancelTransportOffer","DeclineAndAssignNewTransportOffer","DeclineTransportOffer","DeclineTransportOfferAndDelayAssignment","DeleteTransportOffer","InitiateTransportCheck","OfferWithBulkSkip","ReferTransportOffer","SkipTransportOffer","UpdateCancellation","UpdateDecline","UpdateOfferRank","UpdateSkip","UpdateTransportOffer","UpdateTransportOfferEta","TransportReasons","AddTransportReason","DeleteTransportReason","UpdateTransportReason","TripLegManifestEntries","AddManifestEntry","DeleteManifestEntry","UpdateManifestEntry","TripLegs","UpdateOdometerReadings","TripPassengers","AddTripPassenger","DeleteTripPassenger","UpdateTripPassenger","Trips","AddTrip","AddTripLegManifestEntry","CalculateEtas","ConfirmManifest","CreatePrecautionaryLanding","CreatePrecautionaryLandingV2","DeleteTrip","DeleteTripLegManifestEntry","InsertWaypoint","MergePostAndDropoffWaypoints","MergeUnitOriginAndPickupWaypoints","ModifyWaypoint","RecalculateTripMileage","RemoveWaypoint","SplitUnitOriginAndPickupWaypoints","SplitUnitPostAndDropoffWaypoints","SwapWaypoint","UpdateTrip","UnitActivationRules","AddUnitActivationRule","DeleteUnitActivationRule","UpdateUnitActivationRule","UnitEMSystemMappings","AddUnitEMSystemMapping","DeleteUnitEMSystemMapping","UpdateUnitEMSystemMapping","UnitNotes","AddUnitNote","DeleteUnitNote","UpdateUnitNote","UnitPositions","AddUnitPosition","DeleteUnitPosition","RemoveTeamMemberFromUnitPosition","UpdateUnitPosition","UpsertUnitPosition","Units","AddUnit","AssignVehicle","DelayUnit","DeleteUnit","DisableUnit","EnableUnit","EnsureThirdPartyUnit","EnsureThirdPartyUnits","HideUnit","MarkAsPilotUpdated","ReassignVehicle","RemoveDelayFromUnit","RemoveVehicleFromUnit","ReturnUnitToService","SwapUnitVehicles","TakeUnitOutOfService","TeleportUnit","UnhideUnit","UpdatePilotUnitConfiguration","UpdateUnit","UpdateUnitConfiguration","UnitShifts","AddUnitShift","DeleteUnitShift","UpdateUnitShift","VehicleDispositions","AddVehicleDisposition","DeleteVehicleDisposition","UpdateVehicleDisposition","Waypoints","AddWaypoint","DeleteWaypoint","UpdateWaypoint","WebOrderLogs","AcknowledgeWebOrderLog","AddWebOrderLog","OperationsMutations","constructor","_executor","addActivationRule","command","options","execute","name","mutation","gql","variables","deleteActivationRule","updateActivationRule","acknowledgeAlert","addActiveAlert","cleanupActiveAlerts","cleanupCardActiveAlerts","deleteActiveAlert","snoozeAlert","updateActiveAlert","deleteActiveTimeline","updateActiveTimeline","addAlert","copyAlert","deleteAlert","updateAlert","addApplicationNotification","deleteApplicationNotification","dismissApplicationNotification","updateApplicationNotification","addAssignmentDelayedReason","deleteAssignmentDelayedReason","updateAssignmentDelayedReason","addCancellationCategory","deleteCancellationCategory","updateCancellationCategory","addCancellationReason","deleteCancellationReason","updateCancellationReason","addCancellationSecondaryReason","deleteCancellationSecondaryReason","updateCancellationSecondaryReason","addCardLink","deleteCardLink","updateCardLink","addCardNoteArchive","deleteCardNoteArchive","updateCardNoteArchive","addCardNote","deleteCardNote","updateCardNote","addCardReOpenReason","deleteCardReOpenReason","updateCardReOpenReason","addCard","changeCardCallStatus","changeUnit","cleanupCards","closeCard","createSystemCrewNotification","deleteCard","generateCardReport","generateCardSummaryChange","generateCardSummaryChangeV2","linkCards","reOpenCard","requestAdditionalUnits","sendPatientInfo","setCardLockStatus","unDeleteCard","updateCard","updateCardBillable","updateCardDiversionType","updateCardSearchIndex","updateGmrCadNumber","updatePlannedCardCompletionTime","addConfigurationSetting","updateConfigurationSetting","addDeclineCategory","deleteDeclineCategory","updateDeclineCategory","addDeclineReason","deleteDeclineReason","updateDeclineReason","addDeclineSecondaryReason","deleteDeclineSecondaryReason","updateDeclineSecondaryReason","addDiversionReason","deleteDiversionReason","updateDiversionReason","addEscortRequest","deleteEscortRequest","updateEscortRequest","makeEstimatedDurationOfficial","updateEstimatedDurations","updateTripLegDuration","updateWaypointDuration","addExternalAction","cleanupPendingExternalActions","deleteExternalAction","disregardExternalAction","updateExternalAction","addExternalActionType","deleteExternalActionType","updateExternalActionType","addFacilityNonAcceptanceReason","deleteFacilityNonAcceptanceReason","updateFacilityNonAcceptanceReason","addFirewallRule","deleteFirewallRule","updateFirewallRule","addFlightFollowingReport","deleteFlightFollowingReport","updateFlightFollowingReport","deleteLocationHazardAttachment","generateLocationHazardAttachmentUrl","addLocationHazard","deleteLocationHazard","updateLocationHazard","addMedicalControlContactLogEntry","deleteMedicalControlContactLogEntry","updateMedicalControlContactLogEntry","addMessageStatusUpdate","addNextDueType","deleteNextDueType","updateNextDueType","addNonReferralReason","deleteNonReferralReason","updateNonReferralReason","addNotificationGroupMember","deleteNotificationGroupMember","updateNotificationGroupMember","addNotificationGroup","deleteNotificationGroup","updateNotificationGroup","upsertPersonNotificationGroups","addNotificationRecipient","addNotificationRecipients","deleteNotificationRecipient","deleteNotificationRecipients","updateNotificationRecipient","updateRecipientMessageStatus","addNotification","deleteNotification","sendNotification","updateNotification","addNotificationSubscription","deleteNotificationSubscription","updateNotificationSubscription","addNotificationTemplate","copyNotificationTemplate","deleteNotificationTemplate","updateNotificationTemplate","addOemActivity","deleteOemActivity","updateOemActivity","addOemAsset","deleteOemAsset","updateOemAsset","addOemPlanChangeRequest","deleteOemPlanChangeRequest","updateOemPlanChangeRequest","addOemPlan","deleteOemPlan","updateOemPlan","addOfferAlgorithm","copyOfferAlgorithm","deleteOfferAlgorithm","updateOfferAlgorithm","activateUnit","addOperation","arriveVehicle","cancelOperation","changeVehicle","createGroundRun","createMaintenanceOperation","createTrainingOperation","declineOrAbortOperation","deleteOperation","departVehicle","placeUnitOnStandby","repositionUnit","undoArriveVehicle","undoDepartVehicle","updateOperation","updateOperationContactInfo","updateRiskAnalysis","addOutOfServiceEventNote","deleteOutOfServiceEventNote","updateOutOfServiceEventNote","addOutOfServiceEvent","addUnitOutOfServiceEvent","addVehicleOutOfServiceEvent","beginOutOfServiceEvent","deleteOutOfServiceEvent","endOutOfServiceEvent","updateOutOfServiceEvent","addOutOfServiceReason","deleteOutOfServiceReason","updateOutOfServiceReason","addOutOfServiceSecondaryReason","deleteOutOfServiceSecondaryReason","updateOutOfServiceSecondaryReason","acknowledgePassdownLog","addPassdownLog","deletePassdownLog","updatePassdownLog","addPositionReportAlert","deletePositionReportAlert","updatePositionReportAlert","addPositionReport","confirmPositionReport","deletePositionReport","updatePositionReport","upsertQuestionChoice","addQuestionnaireQuestionResponseNote","deleteQuestionnaireQuestionResponseNote","updateQuestionnaireQuestionResponseNote","upsertQuestionnaireQuestionResponseNote","addQuestionnaireQuestionResponse","deleteQuestionnaireQuestionResponse","updateQuestionnaireQuestionResponse","updateQuestionnaireQuestionResponseDeep","addQuestionnaireResponse","deleteQuestionnaireResponse","submitQuestionnaireResponse","updateQuestionnaireResponse","updateQuestionnaireResponseDeep","addQuestionnaire","deleteQuestionnaire","updateQuestionnaire","deleteQuestionnaireSectionQuestion","upsertQuestionnaireSectionQuestion","deleteQuestionnaireSection","upsertQuestionnaireSection","addQuestion","deleteQuestion","updateQuestion","acceptReceivingFacilityRequest","addReceivingFacilityRequestDeclineHistory","cancelReceivingFacilityRequest","deleteReceivingFacilityRequest","denyReceivingFacilityRequest","divertReceivingFacilityRequest","referReceivingFacilityRequest","addRendezvousRequest","deleteRendezvousRequest","updateRendezvousRequest","addRequesterRole","deleteRequesterRole","updateRequesterRole","updateRequester","updateRequesterSpecialtyTeam","updateTransferCenterCallInfo","updateReceivingFacilityAutoAcceptance","updateRequestLocation","addRequestPatient","deleteRequestPatient","updateChiefComplaint","updatePatientClinicalInfo","updatePatientInfo","updateRequestPatient","acknowledgeExternalRequest","beginAssignment","cancelRequest","cancelRequestFromTransferCenter","changeCallType","changeRequestCancellationReason","changeRequestType","createRequest","delayAssignment","duplicateRequest","reactivateRequest","reactivateRequestFromTransferCenter","recalculateCandidates","updateRequest","updateRequestAtlo","updateRequestPublicUtilityInfo","updateRequestRegion","updateRequestSafetyQuestions","updateRequestStandbyStatus","addTimelineItem","deleteTimelineItem","updateTimelineItem","upsertTimelineItem","addTimeline","deleteTimeline","updateTimeline","addEmsReport","addTimestamp","deleteTimestamp","reSendToDataWarehouse","sendToImageTrend","updateEmsReport","updateTimestamp","addTimestampType","deleteTimestampType","updateTimestampType","deliverTrackedMessage","sendMessage","updateTrackedMessage","addTransferReason","deleteTransferReason","updateTransferReason","updateTransportOfferOption","acceptTransportOffer","addCancellation","addDecline","addTransportOffer","beginTransportOffer","cancelTransportOffer","declineAndAssignNewTransportOffer","declineTransportOffer","declineTransportOfferAndDelayAssignment","deleteTransportOffer","initiateTransportCheck","offerWithBulkSkip","referTransportOffer","skipTransportOffer","updateCancellation","updateDecline","updateOfferRank","updateSkip","updateTransportOffer","updateTransportOfferEta","addTransportReason","deleteTransportReason","updateTransportReason","addManifestEntry","deleteManifestEntry","updateManifestEntry","updateOdometerReadings","addTripPassenger","deleteTripPassenger","updateTripPassenger","addTrip","addTripLegManifestEntry","calculateEtas","confirmManifest","createPrecautionaryLanding","createPrecautionaryLandingV2","deleteTrip","deleteTripLegManifestEntry","insertWaypoint","mergePostAndDropoffWaypoints","mergeUnitOriginAndPickupWaypoints","modifyWaypoint","recalculateTripMileage","removeWaypoint","splitUnitOriginAndPickupWaypoints","splitUnitPostAndDropoffWaypoints","swapWaypoint","updateTrip","addUnitActivationRule","deleteUnitActivationRule","updateUnitActivationRule","addUnitEMSystemMapping","deleteUnitEMSystemMapping","updateUnitEMSystemMapping","addUnitNote","deleteUnitNote","updateUnitNote","addUnitPosition","deleteUnitPosition","removeTeamMemberFromUnitPosition","updateUnitPosition","upsertUnitPosition","addUnit","assignVehicle","delayUnit","deleteUnit","disableUnit","enableUnit","ensureThirdPartyUnit","ensureThirdPartyUnits","hideUnit","markAsPilotUpdated","reassignVehicle","removeDelayFromUnit","removeVehicleFromUnit","returnUnitToService","swapUnitVehicles","takeUnitOutOfService","teleportUnit","unhideUnit","updatePilotUnitConfiguration","updateUnit","updateUnitConfiguration","addUnitShift","deleteUnitShift","updateUnitShift","addVehicleDisposition","deleteVehicleDisposition","updateVehicleDisposition","addWaypoint","deleteWaypoint","updateWaypoint","acknowledgeWebOrderLog","addWebOrderLog","OrgCommand","OrgFeature","OrgFeatures","AccessibleItems","AddAccessibleItem","DeleteAccessibleItem","UpdateAccessibleItem","Agencies","AddAgency","DeleteAgency","UpdateAgency","AgencyLocations","AddAgencyLocation","DeleteAgencyLocation","UpdateAgencyLocation","Airports","AddAirport","DeleteAirport","UpdateAirport","BaseControlZones","AddBaseControlZone","DeleteBaseControlZone","UpdateBaseControlZone","BaseMedicalControlContacts","AddBaseMedicalControlContact","DeleteBaseMedicalControlContact","UpdateBaseMedicalControlContact","Bases","AddBase","DeleteBase","UpdateBase","Capabilities","AddCapability","DeleteCapability","UpdateCapability","CommunicationCenters","AddCommunicationCenter","DeleteCommunicationCenter","UpdateCommunicationCenter","CommunicationCenterTransportOfferOptions","AddCommunicationCenterTransportOfferOption","DeleteCommunicationCenterTransportOfferOption","UpdateCommunicationCenterTransportOfferOption","Companies","AddCompany","DeleteCompany","UpdateCompany","CompleteFlightInstances","AddCompleteFlightInstance","DeleteCompleteFlightInstance","UpdateCompleteFlightInstance","ControlZones","AddControlZone","DeleteControlZone","UpdateControlZone","Departments","AddDepartment","DeleteDepartment","UpdateDepartment","EntityCapabilities","AddEntityCapability","DeleteEntityCapability","ExternalReferences","AddExternalReference","DeleteExternalReference","UndeleteExternalReference","UpdateExternalReference","Fbos","AddFbo","DeleteFbo","UpdateFbo","FuelTanks","AddFuelTank","DeleteFuelTank","UpdateFuelTank","Locations","AddLocation","DeleteLocation","RefreshLocationsFromGMRWorkday","UpdateLocation","MedicalFacilities","AddMedicalFacility","ApproveMedicalFacility","ArchiveMedicalFacility","ClearPendingArchiveMedicalFacility","DeleteMedicalFacility","MergeMedicalFacilities","SubmitMedicalFacilityForApproval","UnmarkMedicalFacilityAsDuplicate","UpdateMedicalFacility","MedicalFacilityContacts","AddMedicalFacilityContact","DeleteMedicalFacilityContact","UpdateMedicalFacilityContact","MedicalFacilityPhysicians","AddMedicalFacilityPhysician","DeleteMedicalFacilityPhysician","UpdateMedicalFacilityPhysician","MedicalFacilityUnits","AddMedicalFacilityUnit","DeleteMedicalFacilityUnit","UpdateMedicalFacilityUnit","People","AddOutOfComplianceCrewMember","AddPerson","AuthorizeClientSyncAccess","DeletePerson","RefreshPeopleFromGMRWorkdayV2","RemoveCrewMemberFromOutOfCompliance","ResetPassword","SetRoleScope","UpdateOutOfComplianceCrewMember","UpdatePerson","UpdateTcsRealtimeTrackingTab","Physicians","AddPhysician","DeletePhysician","UpdatePhysician","ProgramBases","AddProgramBase","DeleteProgramBase","UpdateProgramBase","Programs","AddProgram","DeleteProgram","UpdateProgram","RegionBases","AddRegionBase","DeleteRegionBase","UpdateRegionBase","RegionGroups","AddRegionGroup","DeleteRegionGroup","UpdateRegionGroup","Regions","AddRegion","AddTransferCenterRegion","DeleteRegion","UpdateRegion","SpecialtyTeamMembers","AddExistingSpecialtyTeamMember","AddSpecialtyTeamMember","DeleteSpecialtyTeamMember","UpdateSpecialtyTeamMember","SpecialtyTeams","AddSpecialtyTeam","DeleteSpecialtyTeam","UpdateSpecialtyTeam","SupportRequests","AddSupportRequest","DeleteSupportRequest","SubmitSupportRequest","UpdateSupportRequest","Timezones","AddTimezone","DeleteTimezone","UpdateTimezone","TransferCenters","AddTransferCenter","DeleteTransferCenter","UpdateTransferCenter","TrmUsers","AddPreApprovedTrmUser","ApproveTrmUser","DeactivateTrmUser","DeleteTrmUser","DenyTrmUser","RegisterTrmUser","UpdateTrmUser","VehicleConfigurationClasses","AddVehicleConfigurationClass","DeleteVehicleConfigurationClass","UpdateVehicleConfigurationClass","VehicleControlZones","AddVehicleControlZone","DeleteVehicleControlZone","UpdateVehicleControlZone","VehicleMaintenances","AddVehicleMaintenance","DeleteVehicleMaintenance","UpdateVehicleMaintenance","UpsertVehicleMaintenanceParameters","VehicleMakes","AddVehicleMake","DeleteVehicleMake","UpdateVehicleMake","VehicleModels","AddVehicleModel","DeleteVehicleModel","UpdateVehicleModel","Vehicles","AddVehicle","ChangeVehicleFlightLogProcess","DeleteVehicle","EnsureThirdPartyVehicleAndUnit","HideVehicle","SetVehicleControlZoneId","UndeleteVehicle","UnhideVehicle","UpdateVehicle","VehicleStateInspections","AddVehicleStateInspection","DeleteVehicleStateInspection","UpdateVehicleStateInspection","OrganizationMutations","constructor","_executor","addAccessibleItem","command","options","execute","name","mutation","gql","variables","deleteAccessibleItem","updateAccessibleItem","addAgency","deleteAgency","updateAgency","addAgencyLocation","deleteAgencyLocation","updateAgencyLocation","addAirport","deleteAirport","updateAirport","addBaseControlZone","deleteBaseControlZone","updateBaseControlZone","addBaseMedicalControlContact","deleteBaseMedicalControlContact","updateBaseMedicalControlContact","addBase","deleteBase","updateBase","addCapability","deleteCapability","updateCapability","addCommunicationCenter","deleteCommunicationCenter","updateCommunicationCenter","addCommunicationCenterTransportOfferOption","deleteCommunicationCenterTransportOfferOption","updateCommunicationCenterTransportOfferOption","addCompany","deleteCompany","updateCompany","addCompleteFlightInstance","deleteCompleteFlightInstance","updateCompleteFlightInstance","addControlZone","deleteControlZone","updateControlZone","addDepartment","deleteDepartment","updateDepartment","addEntityCapability","deleteEntityCapability","addExternalReference","deleteExternalReference","undeleteExternalReference","updateExternalReference","addFbo","deleteFbo","updateFbo","addFuelTank","deleteFuelTank","updateFuelTank","addLocation","deleteLocation","refreshLocationsFromGMRWorkday","updateLocation","addMedicalFacility","approveMedicalFacility","archiveMedicalFacility","clearPendingArchiveMedicalFacility","deleteMedicalFacility","mergeMedicalFacilities","submitMedicalFacilityForApproval","unmarkMedicalFacilityAsDuplicate","updateMedicalFacility","addMedicalFacilityContact","deleteMedicalFacilityContact","updateMedicalFacilityContact","addMedicalFacilityPhysician","deleteMedicalFacilityPhysician","updateMedicalFacilityPhysician","addMedicalFacilityUnit","deleteMedicalFacilityUnit","updateMedicalFacilityUnit","addOutOfComplianceCrewMember","addPerson","authorizeClientSyncAccess","deletePerson","refreshPeopleFromGMRWorkdayV2","removeCrewMemberFromOutOfCompliance","resetPassword","setRoleScope","updateOutOfComplianceCrewMember","updatePerson","updateTcsRealtimeTrackingTab","addPhysician","deletePhysician","updatePhysician","addProgramBase","deleteProgramBase","updateProgramBase","addProgram","deleteProgram","updateProgram","addRegionBase","deleteRegionBase","updateRegionBase","addRegionGroup","deleteRegionGroup","updateRegionGroup","addRegion","addTransferCenterRegion","deleteRegion","updateRegion","addExistingSpecialtyTeamMember","addSpecialtyTeamMember","deleteSpecialtyTeamMember","updateSpecialtyTeamMember","addSpecialtyTeam","deleteSpecialtyTeam","updateSpecialtyTeam","addSupportRequest","deleteSupportRequest","submitSupportRequest","updateSupportRequest","addTimezone","deleteTimezone","updateTimezone","addTransferCenter","deleteTransferCenter","updateTransferCenter","addPreApprovedTrmUser","approveTrmUser","deactivateTrmUser","deleteTrmUser","denyTrmUser","registerTrmUser","updateTrmUser","addVehicleConfigurationClass","deleteVehicleConfigurationClass","updateVehicleConfigurationClass","addVehicleControlZone","deleteVehicleControlZone","updateVehicleControlZone","addVehicleMaintenance","deleteVehicleMaintenance","updateVehicleMaintenance","upsertVehicleMaintenanceParameters","addVehicleMake","deleteVehicleMake","updateVehicleMake","addVehicleModel","deleteVehicleModel","updateVehicleModel","addVehicle","changeVehicleFlightLogProcess","deleteVehicle","ensureThirdPartyVehicleAndUnit","hideVehicle","setVehicleControlZoneId","undeleteVehicle","unhideVehicle","updateVehicle","addVehicleStateInspection","deleteVehicleStateInspection","updateVehicleStateInspection","TcsCustomPermission","tcsPermissions","Object","values","OpsCommand","OrgCommand","buildTcsPermissions","roles","UserRole","permissions","permissionSets","__spreadValues","FleetStatus","ViewFleetStatusDashboard","ViewFixedWingFleetStatus","ViewRotorWingFleetStatus","ViewGroundFleetStatus","CrewMemberCompliance","AddOutOfComplianceCrewMember","UpdateOutOfComplianceCrewMember","RemoveCrewMemberFromOutOfCompliance","RestrictedUnitFields","EditUnitRegion","EditUnitAdministrationFlag","OpsReadonly","ReadOnlyCommCentersWithinScope","AccessRegionsWithoutCommCenterAssignment","ViewCards","ViewCrewMemberPII","ViewPatientPII","ViewFullCardDetails","DisplaySensitiveDetails","OpsFeatures","OrgFeatures","grants","all","AccessPublicPages","AsbDataManager","OrgFeature","Vehicles","AddVehicleMaintenance","DeleteVehicleMaintenance","UpdateVehicleMaintenance","AsbViewer","AccessAsb","AviationDataManager","VehicleModels","FuelTanks","ManageOrg","ChangeVehicleCompany","AccessInsights","AviationSupervisor","ManageVehicleOos","ManageOperations","inherits","Pilot","Biller","ImageTrend","ResendImageTrend","ResendCardToDataWarehouse","BillerCorrectionsTeam","UpdateCardBillable","Communications","Units","filter","p","TeleportUnit","DisableUnit","RemoveVehicleFromUnit","RemoveDelayFromUnit","DelayUnit","AccessCommCentersWithinScope","ReOpenCard","AddMedicalControlContactLogEntry","OpsFeature","Timestamps","QuestionnaireResponses","ReceivingFacilityRequests","ActiveAlerts","PassdownLogs","CommunicationsSupervisor","Operations","TransportOffers","Alerts","LocationHazards","NotificationGroups","Agencies","AgencyLocations","Airports","Fbos","Locations","Physicians","Cards","Requests","UnitActivationRules","SpecialtyTeams","SpecialtyTeamMembers","AddMedicalFacility","DeleteMedicalFacility","UpdateMedicalFacility","UpdateBase","UpdateVehicle","ViewDeletedCards","UpdateVehicleCapabilities","DeleteTransferCenterCall","UpdateVehicleStateInspection","ViewNotificationsFromAllUsers","FleetStatusOperations","FleetStatusViewer","Clinical","External","QaSupervisor","QaManager","ComplianceManager","GlobalDataManager","ConfigurationSettings","TimestampTypes","CancellationReasons","DeclineReasons","TransportReasons","DeclineSecondaryReasons","CancellationSecondaryReasons","OperationsDataManager","AddCompany","ViewPermissionMatrix","GlobalPermissionsManager","Developer","CommunicationCenters","Programs","Bases","Regions","RegionGroups","People","NotificationTemplates","OfferAlgorithms","OutOfServiceReasons","OutOfServiceSecondaryReasons","Timelines","Questions","Questionnaires","TransferCenters","TransferReasons","DiversionReasons","UpdateCompany","SetupTransferCenterRegion","SetUnitBase","OperationsPermissionsManager","OCC","AccessControlZonesWithinScope","OccReader","Executive","ViewFleetStatusAllCompanies","Stakeholder","EditUnitBase","EditUnitName","EditUnitAbbreviation","LockCard","ViewLockedCards","AccessSupport","ManageCancellationReasons","ManageDeclineReasons","FixedWingCoordinator","ProgramManager","AviationPermissionsManager","RemoteUser","TrmProgramAdmin","OpsReader","ReadonlyOperations","OosViewer","AccessOosRum","OosMaintenanceController","ManageOosRum","CompanyQueryService","constructor","_store","getCompanyByCode","code","select","selectCompanyByCompanyCode","getCompanies","selectAllCompanyEntities","pipe","map","c","valueSeq","toArray","ɵɵinject","Store","factory","ɵfac","providedIn","getCompanyCode","state","route","root","companyCode","params","firstChild","CompanyContextService","company$","_onNavigationEnd$","company","getValue","postGuardCompany","_onGuardCheckEnd$","filterInvalidCompany","constructor","router","companyQuery","_onDestroy$","Subject","BehaviorSubject","undefined","events","pipe","filter","e","GuardsCheckEnd","map","shouldActivate","distinctUntilChanged","filterNull","switchMap","cc","getCompanies","companies","find","c","toLocaleLowerCase","takeUntil","subscribe","NavigationEnd","ngOnDestroy","next","complete","ɵɵinject","Router","CompanyQueryService","factory","ɵfac","providedIn","selectCardByOperationId","operationId","createSelector","selectAllCards","cards","find","c","selectCardByRequestId","requestId","selectCardByCardNumber","cardNumber","createSelector","selectAllCards","cards","find","c","selectCardById","id","get","selectCardSummariesByControlZoneCompanyId","companyId","selectAllCardSummaryEntities","selectAllUnitSummaryEntities","selectVehicleControlZoneEntitiesByCompanyId","selectBaseControlZoneEntitiesByCompanyId","units","vehiclesControlZones","baseControlZones","vids","map","v","vehicleId","baseIds","b","baseId","valueSeq","filter","unit","u","unitSummaryId","includes","selectCardSummariesByControlZoneId","controlZoneId","selectVehicleControlZoneEntitiesByControlZoneId","selectBaseControlZoneEntitiesByControlZoneId","vehicleControlZones","selectCardSummariesByRegions","regionIds","status","selectAllCardSummaries","regionId","length","sortBy","selectCardSummariesByRegionId","selectNewWebOrderCardsByRegions","regionIds","createSelector","selectCardSummariesByRegions","cards","filter","c","apiWebhookSubscriptionId","status","CardStatus","AwaitingAssignment","webOrderAcknowledgedTime","selectWebOrderStandbyActivationRequestedCardsByRegion","regionId","selectCardSummariesByRegionId","operation","OperationStatus","OnStandby","request","standbyActivationRequested","selectCardSummaryByUnitId","unitId","selectAllCardSummaries","find","selectCardsByPatientName","nameLike","selectAllCardEntities","selectAllRequestPatientEntities","patients","isNullOrWhitespace","compare","a1","a2","toLocaleLowerCase","includes","hasName","p","first","last","isNullOrEmpty","firstName","lastName","segments","split","map","n","trim","join","reqIds","requestId","toOrderedSet","selectOperationCardSummariesByCommCenterIds","commCenterIds","AwaitingLaunch","Underway","communicationCenterId","sortBy","cardNumber","valueSeq","isOffered","offer","status","TransportOfferStatus","Offered","response","TransportOfferResponse","Pending","selectTransportOfferById","id","createSelector","selectAllTransportOffers","transportOffers","find","t","selectFirstTransportOfferByUnitId","unitId","excludedId","selectTransportOffersByRequestId","requestId","offers","filter","o","valueSeq","selectFirstCandidateTransportOfferByRequestId","sortBy","rank","first","selectCandidateTransportOffersByRequestId","Candidate","selectMappedOffersByRequestId","ignored","Cancelled","Skipped","includes","selectAvailableOrRespondedTransportOffersByRequestId","Responded","Accepted","selectSkippedOrDeclinedTransportOffersByRequestId","Declined","Aborted","selectCancelledOrDeclinedTransportOffersByRequestId","selectAutoDeclineTransportOffersByRequestId","takeWhile","declineReasonId","selectOfferedOrAcceptedTransportByRequestId","selectActiveTransportOfferByRequestId","declinableOffers","acceptedOffer","get","undefined","selectPreviousOrCurrentReferralOffers","currentOffer","createSelector","selectTransportOfferEntitiesByRequestId","requestId","transportOffers","filter","o","status","TransportOfferStatus","Candidate","isReferral","declineReasonId","id","selectOperationByCardNumber","cardNumber","createSelector","selectAllCards","selectAllOperations","cards","operations","find","c","undefined","operation","card","id","operationId","selectOperationByCardId","cardId","selectUnitSummariesByControlZoneCompanyId","companyId","includeDisabled","createSelector","selectAllUnitSummaryEntities","selectVehicleControlZoneEntitiesByCompanyId","selectBaseControlZoneEntitiesByCompanyId","units","vehiclesControlZones","baseControlZones","vids","map","v","vehicleId","baseIds","b","baseId","valueSeq","filter","u","contains","isEnabled","selectUnitSummariesByControlZoneId","controlZoneId","selectVehicleControlZoneEntitiesByControlZoneId","selectBaseControlZoneEntitiesByControlZoneId","selectUnitSummariesByCompanyId","selectUnitSummaryEntitiesByCompanyId","selectUnitSummariesByRegionId","regionId","includeHidden","selectUnitSummaryEntitiesByRegionId","byHiddenStatus","selectUnitSummariesByRegions","regionIds","nameOrTailLike","status","selectAllVehicleSummaryEntities","vehicles","includes","c","length","unit","matchUnitOrVehicle","toIndexedSeq","selectUnitSummariesByRegionsAndUnits","unitIds","undefined","id","selectUnitSummariesByCurrentCompany","currentCompanyId","excludeDispatchByCurrentCompany","companyIds","vehicleTypes","canIncludeCompany","canIncludeVehicle","vehicle","dispatchCompanyId","type","vehicleIds","vehiclesSeq","selectUnitByCardNumber","cardNumber","selectOperationByCardNumber","selectAllUnits","operation","find","unitId","selectUnitSummaryByCardId","cardId","createSelector","selectOperationByCardId","selectAllUnitSummaryEntities","operation","units","undefined","find","unit","id","unitId","selectUnitSummaryByVehicleId","vehicleId","u","selectNonThirdPartyUnitByBaseId","baseId","selectAllUnits","isHidden","isThirdPartyUnit","selectAvailableUnitsByCompanyId","companyId","selectUnitSummaryEntitiesByCompanyId","selectAllCardSummaryEntities","operations","valueSeq","filter","byStatusAndNonActiveOperations","UnitStatus","Available","selectUnitByTeamMemberId","teamMemberId","selectAllUnitPostions","positions","position","p","status","cards","card","OperationStatus","Completed","Cancelled","selectNonCandidateUnitsForRequest","requestId","selectTransportOffersByRequestId","offers","o","byHiddenStatus","includehidden","getOrElse","matchUnitOrVehicle","vehicles","nameOrTailLike","vehicle","v","abbreviation","toLocaleLowerCase","includes","registrationNumber","selectDepartmentByCode","departmentCode","createSelector","selectAllDepartments","departments","valueSeq","find","d","code","selectOperationsRegionGroupByCompanyId","companyId","createSelector","selectRegionGroupsByCompanyId","selectDepartmentByCode","regionGroups","dep","find","rg","departmentId","id","selectAllRegionGroups","valueSeq","filter","selectRegionsByCompanyId","companyId","createSelector","selectAllRegions","regions","filter","r","selectOperationsRegionsByCompanyId","selectOperationsRegionGroupByCompanyId","rg","valueSeq","regionGroupId","id","Seq","Indexed","selectRegionById","regionId","get","selectRegionByCardNumber","cardNumber","selectAllCards","selectAllOperations","selectAllUnits","selectAllUnitSummaryEntities","selectAllRequests","cards","operations","units","unitSummaries","requests","card","find","c","getRegion","selectRegionByCardId","cardId","operationId","operation","unitId","unit","region","requestId","request","selectRegionsByCommunicationCenterId","commicationCenterId","createSelector","selectAllRegions","regions","filter","r","communicationCenterId","AccessibleItemAuthorizationService","constructor","_userService","_store","getAccessibleItems","type","user$","pipe","switchMap","u","of","select","selectAccessibleItemEntitiesByPersonId","id","map","ais","toArray","filter","ai","ɵɵinject","UserService","Store","factory","ɵfac","providedIn","OpsReaderAuthorizationService","constructor","_user","_accessibleItems","_permissions","_store","_companyContextService","isReadonlyForCommCenter","commCenterId","getReadonlyCommCenters","pipe","map","_","find","cc","id","isReadonlyForCompany","companyId","ccs","isReadonlyForCommCenterAndCurrentCompany","getReadonlyCommCentersForCurrentCompany","company$","filterNull","switchMap","company","user$","user","of","Seq","Indexed","accessibleItems$","getAccessibleItems","commCenters$","select","selectAllCommunicationCenterEntities","companies","filter","c","valueSeq","combineLatest","accessibleItems","commCenters","_hasScopedPermission","companyAi","ai","entityId","type","EntityType","Company","commCenterAi","CommunicationCenter","scope","userRoles","hasPermission","toArray","r","UserRole","Developer","TcsCustomPermission","ReadOnlyCommCentersWithinScope","ɵɵinject","UserService","AccessibleItemAuthorizationService","PermissionsService","Store","CompanyContextService","factory","ɵfac","providedIn","CommCenterAuthorizationService","constructor","_user","_accessibleItems","_permissions","_store","_companyContextService","_opsReaderAuthz","isAuthorizedForCommCenter","commCenterId","includeReadonlyCommCenters","getAuthorizedCommCenters","undefined","pipe","map","_","find","cc","id","isAuthorizedForCompany","companyId","_isAuthorizedForCompany","getAuthorizedCommCentersForCurrentCompany","company$","filterNull","switchMap","company","user$","undefinedOrSwitchMap","user","readonlyCommCenters$","getReadonlyCommCenters","of","Seq","Indexed","commCenters$","select","selectAllCommunicationCenterEntities","commCenters","filter","c","valueSeq","accessibleItems$","getAccessibleItems","combineLatest","accessibleItems","readonlyCommCenters","_checkUserAllAccessiblePermissions","concat","_checkAuthorizedForCompany","ccs","readonlyAuthorized$","isReadonlyForCompany","readonlyAuthorized","count","isReadonlyAuthorized","commCenterAi","ai","entityId","type","EntityType","CommunicationCenter","_hasScopedPermission","allCommunicationCentersAccessible","allCompaniesAccessible","companyAi","Company","scope","userRoles","hasPermission","toArray","TcsCustomPermission","AccessCommCentersWithinScope","ɵɵinject","UserService","AccessibleItemAuthorizationService","PermissionsService","Store","CompanyContextService","OpsReaderAuthorizationService","factory","ɵfac","providedIn","ControlZoneAuthorizationService","constructor","_user","_accessibleItems","_permissions","_store","isAuthorizedForCompany","companyId","getAuthorizedControlZones","pipe","map","czs","find","cz","user$","switchMap","user","of","accessibleItems$","getAccessibleItems","controlZones$","select","selectAllControlZoneEntities","filter","valueSeq","combineLatest","accessibleItems","controlZones","_hasScopedPermission","cc","companyAi","ai","entityId","type","EntityType","Company","controlZoneAi","id","ControlZone","toArray","scope","userRoles","hasPermission","TcsCustomPermission","AccessControlZonesWithinScope","ɵɵinject","UserService","AccessibleItemAuthorizationService","PermissionsService","Store","factory","ɵfac","providedIn","RegionAuthorizationService","constructor","_user","_store","_commCenterAuthorization","_opsReaderAuthorization","_permissions","isAuthorizedForCompanyCode","regionId","companyCode","getAuthorizedRegionsByCompanyCode","pipe","map","regions","find","r","id","select","selectCompanyByCompanyCode","switchMap","c","getAuthorizedRegions","of","Seq","Indexed","companyId","authorizedCommCenters$","getAuthorizedCommCenters","regions$","selectRegionEntitiesByCompanyId","combineLatest","user$","user","authorizedCommCenters","authorizedCommCenterIds","cc","sortBy","_","name","filter","withCommCenter","communicationCenterId","includes","withoutCommCenter","hasPermissionAnyScope","TcsCustomPermission","AccessRegionsWithoutCommCenterAssignment","valueSeq","ɵɵinject","UserService","Store","CommCenterAuthorizationService","OpsReaderAuthorizationService","PermissionsService","factory","ɵfac","providedIn","getUrl","route","flatMap","pathFromRoot","map","ss","url","u","path","join","getCompanyCodeFromRoute","getRouteParam","getRegionIdFromRoute","getCardNumberFromRoute","getRouteParam","route","paramName","pathFromRoot","map","p","params","find","flatMapUserRoles","withUserRoles","filter","_","userRoles","flatMap","u","toSet","selectCardSummaryAccessibleItemsForUser","userId","card","communicationCenterId","companyId","controlZoneId","createSelector","selectAccessibleItemEntitiesByPersonId","accesibleItems","ais","EntityType","Company","CommunicationCenter","ControlZone","map","type","id","find","_","entityId","filter","ai","Seq","Indexed","selectCardSummaryAccessibleItemEntityIds","cardId","selectCardSummaryById","selectAllVehicleEntities","selectAllControlZoneEntities","selectAllCommunicationCenterEntities","selectAllRegionEntities","vehicles","controlZones","commCenters","regions","region","regionId","r","undefined","commCenter","c","vehicle","vehicleId","get","controlZone","selectCardAccessibleItemEntityIds","selectCardById","selectRegionByCardId","selectUnitSummaryByCardId","unit","CardAuthorizationService","constructor","_user","_permissions","_store","_gql","_storeService","isAuthorizedForCardNumber","cardNumber","select","selectCardByCardNumber","pipe","valueOrSwitchMap","upsertEntitiesFromGraphQL","q","data","cards","byCardNumber","switchMap","permissionsToCheck","isLocked","TcsCustomPermission","ViewLockedCards","ManageOperations","ReadonlyOperations","of","hasPermissionForCardId","hasPermission","cardAccessibleItemIds","permission","permissions","Array","isArray","user$","u","t","concat","roles","flatMapUserRoles","p","toArray","hasPermissionForCardSummaryId","cai","ɵɵinject","UserService","PermissionsService","Store","FetchCardEntitiesGQL","StoreService","factory","ɵfac","providedIn","OpsAuthorizationService","constructor","_commCenterAuthz","_controlZoneAuthz","_regionAuthz","_cardAuthz","_user","_store","isAuthorizedForRoute","route","companyCode","isAuthorizedForCompanyCode","pipe","switchMap","isAuthorized","of","regionId","getRegionIdFromRoute","cardNumber","getCardNumberFromRoute","isAuthorizedForCardNumber","select","selectCompanyByCompanyCode","c","isAuthorizedForCompanyId","id","companyId","hasAllCommCenterAccessForCompany$","user$","withLatestFrom","hasAccessibleCompany","map","user","hasCompanyAccess","allCommunicationCentersAccessible","combineLatest","isAuthorizedForCompany","grants","find","hasPermission","distinctUntilChanged","ɵɵinject","CommCenterAuthorizationService","ControlZoneAuthorizationService","RegionAuthorizationService","CardAuthorizationService","UserService","Store","factory","ɵfac","providedIn","OrgAuthorizationService","constructor","_commCenterAuthz","_user","_store","isAuthorizedForCompanyCode","companyCode","select","selectCompanyByCompanyCode","pipe","switchMap","c","isAuthorizedForCompanyId","id","of","companyId","hasGlobalRoleWithManageOrgAccess$","hasAccessibleCompany","withLatestFrom","hasPermissionAnyGlobalRole","TcsCustomPermission","ManageOrg","map","hasCompanyAccess","hasGlobalRoleOrgAccess","hasManageOrgAndCommCenterAccess$","hasPermissionAnyScope","isAuthorizedForCompany","hasScope","hasCommCenterAccess","combineLatest","hasGlobalRoleWithManageOrgAccess","hasManageOrgAndCommCenterAccess","distinctUntilChanged","ɵɵinject","CommCenterAuthorizationService","UserService","Store","factory","ɵfac","providedIn","OosAuthorizationService","constructor","_accessibleItems","_user","_permissions","_store","_companyContextService","isAuthorizedForRoute","route","companyCode","isAuthorizedForCompanyCode","pipe","switchMap","isAuthorized","of","select","selectCompanyByCompanyCode","c","isAuthorizedForCompanyId","id","companyId","combineLatest","_isAuthorizedForCompany","map","grants","find","hasPermission","distinctUntilChanged","isAuthorizedForCommCenter","commCenterId","getAuthorizedCommCenters","undefined","_","cc","isAuthorizedToManageCommCenter","TcsCustomPermission","ManageOosRum","getAuthorizedCommCentersForCurrentCompany","permission","company$","filterNull","company","user$","undefinedOrSwitchMap","user","commCenters$","selectAllCommunicationCenterEntities","commCenters","filter","valueSeq","accessibleItems$","getAccessibleItems","accessibleItems","_checkUserAllAccessiblePermissions","_checkAuthorizedForCompany","ccs","Seq","Indexed","count","commCenterAi","ai","entityId","type","EntityType","CommunicationCenter","_hasScopedPermission","companyAi","Company","userRoles","scope","permissionToCheck","AccessOosRum","toArray","ɵɵinject","AccessibleItemAuthorizationService","UserService","PermissionsService","Store","CompanyContextService","factory","ɵfac","providedIn","InsightsAuthorizationService","constructor","_opsAuthz","_user","_store","isAuthorizedForCompanyCode","companyCode","select","selectCompanyByCompanyCode","pipe","switchMap","c","isAuthorizedForCompanyId","id","of","companyId","hasGlobalRoleWithInsightsAccess$","hasAccessibleCompany","withLatestFrom","hasPermissionAnyGlobalRole","TcsCustomPermission","AccessInsights","map","hasCompanyAccess","hasGlobalRoleOrgAccess","combineLatest","hasPermissionAnyScope","hasGlobalRoleWithInsightsAccess","hasOpsAccess","hasInsightsAccess","distinctUntilChanged","ɵɵinject","OpsAuthorizationService","UserService","Store","factory","ɵfac","providedIn"],"x_google_ignoreList":[0,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,252,253,254,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,553,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930]}